@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing:border-box; }
  body, h1, h2, h3, p { margin:0; }
  button, input, select { font:inherit; }
  button, a, input, select { -webkit-tap-highlight-color:transparent; }
  button { cursor:pointer; }
  button:disabled { cursor:not-allowed; }
  img { max-width:100%; display:block; }
  button, input, select { border-radius:0; }
  [hidden] { display:none !important; }
}

@layer base {
  :root { --paper:#fafaf7; --ink:#131613; --dark:#101311; --card:#202622; --card-hover:#28302a; --line:#343d36; --lime:#d9f76b; --muted:#a6b0a8; --light-line:#dcdfd5; --quiet:#697267; --danger:#ffb4a7; font-family:Inter,"SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-synthesis:none; color-scheme:dark; }
  html { min-height:100%; background:var(--dark); }
  body { min-width:320px; min-height:100dvh; color:var(--paper); background:var(--dark); font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; }
  button { touch-action:manipulation; color:inherit; }
  button, a { outline-offset:4px; }
  :focus-visible { outline:3px solid #759c18; }
  .dark-pane :focus-visible, dialog :focus-visible { outline-color:var(--lime); }
  svg { width:22px; height:22px; flex-shrink:0; vertical-align:middle; }
  a { color:inherit; }
  .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline:none; }
  h1 { font-size:26px; font-weight:680; letter-spacing:-.7px; line-height:1.2; }
  h2 { font-size:22px; font-weight:620; letter-spacing:-.45px; line-height:1.3; }
  h3 { font-size:16px; font-weight:600; }
  .skip-link { position:fixed; z-index:50; top:10px; left:10px; padding:10px 20px; border-radius:12px; background:var(--lime); color:var(--ink); transform:translateY(-160%); }
  .skip-link:focus { transform:none; }
  .noscript { padding:40px; }
  .connection-banner, .update-banner { padding:10px 20px; background:#26351c; color:#edf8ce; font-size:14px; text-align:center; }
  .update-banner { background:var(--lime); color:var(--ink); display:flex; justify-content:center; align-items:center; gap:16px; }
  .update-banner button { border:0; background:transparent; color:inherit; font-weight:650; text-decoration:underline; padding:6px 4px; min-height:36px; }
}

@layer components {
  .app-shell { max-width:980px; margin:0 auto; }
  .light-pane { color:var(--ink); background:var(--paper); color-scheme:light; border-radius:0 0 28px 28px; padding:20px 20px 24px; position:relative; z-index:1; }
  .toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:24px; }
  .brand { border:0; padding:0; min-height:44px; background:none; display:flex; align-items:center; gap:10px; color:var(--ink); text-align:left; }
  .brand-mark { width:40px; height:40px; border-radius:13px; display:grid; place-items:center; background:var(--ink); color:var(--lime); }
  .brand img.brand-mark { display:block; background:transparent; border-radius:0; }
  .brand-name { display:block; font-size:20px; font-weight:730; letter-spacing:-.7px; line-height:1.2; }
  .toolbar-actions { display:flex; align-items:center; gap:6px; }
  .icon-button, .info-button { border:1px solid transparent; background:#eff0e9; border-radius:50%; width:44px; min-width:44px; height:44px; padding:0; display:grid; place-items:center; position:relative; }
  .icon-button:hover { background:#e3e7dc; }
  .icon-button.dark, .dark-pane .info-button { background:#29312b; color:#c6d1be; }
  .icon-button.dark:hover, .dark-pane .info-button:hover { background:#394536; }
  .history-dot { position:absolute; width:7px; height:7px; background:#5d7b1d; border:2px solid var(--paper); border-radius:50%; top:7px; right:8px; }
  #search-form { display:grid; gap:16px; }
  .mode-switch { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:15px; background:#e9ece3; }
  .mode-button { display:flex; align-items:center; justify-content:center; gap:8px; border:0; background:transparent; color:#64705c; border-radius:11px; min-height:44px; padding:8px; font-size:16px; font-weight:600; transition:background .18s,color .18s; }
  .mode-button svg { width:18px; height:18px; }
  .mode-button[aria-selected="true"] { background:var(--lime); color:var(--ink); box-shadow:0 1px 2px #2632000a; }
  #search-fields { position:relative; min-width:0; }
  .input-wrap { display:flex; align-items:center; min-width:0; height:58px; border:1.5px solid #c7cec0; border-radius:15px; background:#fff; transition:border-color .2s,box-shadow .2s; }
  .input-wrap:focus-within { border-color:#7f9b36; box-shadow:0 0 0 3px #a7c05a28; }
  .input-wrap.invalid { border-color:#bc473c; box-shadow:0 0 0 3px #c6523310; }
  .country-control { width:101px; flex-shrink:0; position:relative; margin-right:2px; }
  .country-control::after { content:""; position:absolute; right:0; top:50%; transform:translateY(-50%); width:1px; height:24px; background:#e1e4dc; }
  .country-control select { appearance:none; width:100%; color:var(--ink); border:0; background:transparent; font-size:14px; font-weight:600; padding:16px 24px 16px 11px; cursor:pointer; }
  .country-control svg { position:absolute; right:7px; top:50%; transform:translateY(-50%); pointer-events:none; width:14px; height:14px; }
  .query-input { min-width:0; width:100%; border:0; outline:0; background:transparent; color:var(--ink); font-size:16px; font-weight:500; padding:15px 9px; }
  .query-input::placeholder { color:#858e7e; font-weight:400; }
  .query-input:focus-visible { outline:none; }
  .input-icon { margin-left:16px; color:#727b6b; }
  .input-action { flex-shrink:0; height:44px; width:44px; border:0; padding:0; display:grid; place-items:center; color:#727b6b; background:none; border-radius:11px; margin-right:5px; }
  .input-action:hover { background:#f0f2ea; color:var(--ink); }
  .input-action svg { width:18px; height:18px; }
  .field-help { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .field-help.error { position:static; width:auto; height:auto; margin:8px 1px 0; overflow:visible; clip:auto; white-space:normal; color:#a5362d; font-size:14px; line-height:1.45; }
  .search-button { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:56px; padding:8px 9px 8px 18px; border:0; border-radius:15px; color:var(--paper); background:var(--ink); font-size:16px; font-weight:620; text-align:left; }
  .search-button:hover { background:#2e362d; }
  .search-glyph { height:38px; width:38px; display:grid; place-items:center; border-radius:11px; color:var(--ink); background:var(--lime); }
  .search-glyph svg { width:21px; height:21px; }
  .dark-pane { padding:24px 20px 32px; min-width:0; }
  .panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; }
  .panel-heading h2 { margin:0 0 5px; }
  .panel-copy { font-size:14px; color:var(--muted); max-width:36em; overflow-wrap:anywhere; }
  .heading-group { display:flex; align-items:center; gap:10px; min-width:0; }
  .heading-group h2 { margin:0; }
  .results-count { color:#8f9c88; font-size:16px; font-weight:450; letter-spacing:0; margin-left:0; }
  .demo-pill { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-height:44px; padding:10px 11px; border:1px solid #424d39; border-radius:9px; background:transparent; color:#bcc9ae; font-size:12px; line-height:1.4; font-weight:550; white-space:nowrap; position:relative; }
  .demo-pill:hover { color:var(--lime); border-color:#708355; background:#d9f76b08; }
  .section-row { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:16px; min-height:32px; }
  .section-row h2, .section-row h3 { font-size:20px; font-weight:620; letter-spacing:-.35px; }
  .text-button { border:0; padding:10px 0 10px 8px; min-height:44px; background:transparent; color:var(--lime); font-size:14px; font-weight:500; white-space:nowrap; }
  .text-button:hover { text-decoration:underline; }
  .text-button.danger { color:var(--danger); }
  .empty-history { display:flex; align-items:center; justify-content:center; gap:10px; padding:26px 16px; color:#9eac94; border:1px dashed #36432f; border-radius:16px; font-size:14px; }
  .empty-history svg { width:21px; height:21px; color:#93a586; }
  .empty-history strong { font-size:14px; font-weight:450; }
  .sample-section { margin-top:22px; }
  .sample-section > p, .sample-section > h3, .sample-label { font-size:12px; font-weight:450; color:#9ead94; margin-bottom:10px; }
  .sample-chips { display:flex; flex-wrap:wrap; gap:8px; }
  .sample-chip { display:inline-flex; align-items:center; gap:8px; border:1px solid #34432b; border-radius:12px; padding:10px 12px; min-height:44px; background:#1c2519; color:#d5e1cb; font-size:14px; font-weight:450; }
  .sample-chip svg { width:16px; height:16px; color:#afc895; }
  .sample-chip:hover { background:#283522; border-color:#586e44; }
  .result-list { display:grid; gap:10px; }
  .result-card { background:var(--card); border:1px solid #354034; border-radius:17px; display:flex; align-items:center; overflow:hidden; min-width:0; transition:background .2s,border-color .2s; }
  .result-card:hover { background:var(--card-hover); border-color:#53634a; }
  .result-main { border:0; padding:15px 4px 15px 15px; background:transparent; display:flex; align-items:center; gap:12px; text-align:left; min-width:0; flex:1; min-height:76px; }
  .avatar { width:44px; height:44px; flex-shrink:0; border-radius:50%; background:#3b4c36; color:#e0edcf; display:grid; place-items:center; font-weight:550; font-size:16px; letter-spacing:-.4px; border:1px solid #71826466; overflow:hidden; }
  .avatar img { width:100%; height:100%; object-fit:cover; }
  .avatar.alt { background:#3b414c; color:#cbd6ed; border-color:#5f6d8a; }
  .avatar.warm { background:#514435; color:#e8d6bc; border-color:#7d6953; }
  .avatar.large { width:76px; height:76px; font-size:28px; border:3px solid #fff; box-shadow:0 2px 8px #1520160c; }
  .result-text { min-width:0; }
  .result-name { font-size:16px; font-weight:600; letter-spacing:-.15px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .result-sub { display:block; margin-top:3px; font-size:14px; color:#aab5a6; font-weight:400; }
  .copy-button { flex-shrink:0; width:44px; height:44px; margin:0 10px 0 3px; border:0; border-radius:12px; background:#2a342b; color:#c2d0b7; display:grid; place-items:center; }
  .copy-button svg { width:18px; height:18px; }
  .copy-button:hover { background:#3d4b37; color:var(--lime); }
  .recent-list { display:grid; gap:9px; }
  .history-item { display:flex; align-items:center; min-width:0; border:1px solid #303b30; background:#1b221c; border-radius:15px; }
  .history-main { background:none; border:0; display:flex; gap:11px; align-items:center; padding:14px 13px; min-width:0; text-align:left; flex:1; }
  .history-main:hover { color:var(--lime); }
  .history-icon { width:36px; height:36px; border:1px solid #3a4635; border-radius:10px; background:#283026; color:#c1d4ae; display:grid; place-items:center; flex-shrink:0; }
  .history-icon svg { width:17px; height:17px; }
  .history-query { font-size:14px; font-weight:550; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .history-meta { font-size:12px; color:#9aa990; display:block; margin-top:3px; }
  .history-time { font-size:12px; color:#a7b09f; margin-left:auto; padding-left:5px; white-space:nowrap; }
  .history-item > .icon-button { margin-right:8px; border-radius:11px; background:transparent; color:#8e9a87; }
  .history-item > .icon-button:hover { color:var(--danger); background:#ffb4a710; }
  .history-item > .icon-button svg { width:18px; height:18px; }
  .subpage .toolbar { margin-bottom:18px; }
  .subpage-heading { display:flex; align-items:center; gap:16px; }
  .subpage-heading h1 { font-size:24px; }
  .back-button { border:0; background:none; color:#56604e; display:inline-flex; align-items:center; gap:5px; padding:0 2px 0 0; min-height:44px; font-size:14px; }
  .back-button svg { width:18px; height:18px; }
  .back-button:hover { color:var(--ink); }
  .filter-tabs { display:flex; gap:8px; margin-top:18px; }
  .filter-tab { border:1px solid #d9dfd0; background:transparent; color:#58644f; font-size:14px; font-weight:550; border-radius:11px; padding:9px 15px; min-height:44px; }
  .filter-tab[aria-pressed="true"] { background:var(--ink); color:var(--paper); border-color:var(--ink); }
  .group-label { font-size:14px; color:#a9b6a1; margin:16px 1px 8px; font-weight:500; }
  .group-label:first-child { margin-top:0; }
  .empty-status { display:flex; justify-content:flex-end; margin-bottom:-10px; }
  .large-empty { text-align:center; padding:30px 10px; }
  .empty-symbol { margin:0 auto 18px; width:62px; height:62px; border:1px solid #46533d; border-radius:20px; background:#242f21; color:var(--lime); display:grid; place-items:center; }
  .empty-symbol svg { width:26px; height:26px; }
  .large-empty h2 { font-size:22px; margin-bottom:8px; }
  .large-empty p { color:var(--muted); font-size:14px; line-height:1.6; max-width:340px; margin:0 auto; }
  .primary-light { border:0; background:var(--lime); color:var(--ink); min-height:48px; border-radius:12px; padding:12px 18px; font-size:16px; font-weight:600; }
  .primary-light:hover { background:#e7ff9f; }
  .secondary-dark { border:1px solid #45503e; background:#252e23; color:#e3ebdc; min-height:48px; border-radius:12px; padding:12px 18px; font-size:16px; font-weight:500; }
  .secondary-dark:hover { background:#343f30; }
  .empty-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:20px; }
  .settings-group { margin-bottom:24px; }
  .settings-group:last-of-type { margin-bottom:0; }
  .settings-group h2 { font-size:14px; color:#b7c5ae; letter-spacing:0; margin:0 0 10px 1px; font-weight:500; }
  .settings-card { border:1px solid #36432f; background:#1f281d; border-radius:16px; overflow:hidden; }
  .setting-row { display:flex; align-items:center; gap:12px; padding:16px; min-height:72px; }
  .setting-row + .setting-row { border-top:1px solid #35402f; }
  .setting-row > svg { width:20px; height:20px; color:#b4cba1; }
  .setting-text { min-width:0; flex:1; }
  .setting-title { display:block; font-size:16px; font-weight:500; }
  .setting-description { display:block; font-size:12px; line-height:1.55; color:#9bab90; margin-top:4px; }
  .switch { position:relative; width:47px; height:28px; flex-shrink:0; border:0; border-radius:40px; background:#505b48; padding:3px; }
  .switch::before { content:""; position:absolute; inset:-8px -2px; }
  .switch::after { content:""; display:block; height:22px; width:22px; background:#d1d8cb; border-radius:50%; transition:transform .2s; }
  .switch[aria-checked="true"] { background:var(--lime); }
  .switch[aria-checked="true"]::after { background:#26331e; transform:translateX(19px); }
  .row-button { display:flex; width:100%; text-align:left; text-decoration:none; color:inherit; background:none; border:0; }
  .row-button:hover { background:#2c3826; }
  .setting-value { color:#b7c9a8; font-size:14px; white-space:nowrap; }
  .install-card { display:flex; align-items:center; gap:13px; padding:16px; background:var(--lime); color:#182010; border-radius:16px; width:100%; text-align:left; border:0; min-height:64px; }
  .install-card:hover { background:#e5ff8e; }
  .install-card > svg { height:24px; width:24px; }
  .install-card .setting-description { color:#52612d; }
  .app-version { text-align:center; color:#7d8e73; font-size:12px; margin:24px 0 0; }
  .profile-head { display:flex; align-items:center; gap:16px; margin:16px 0 20px; }
  .profile-head > div { min-width:0; }
  .profile-name { font-size:25px; letter-spacing:-.6px; line-height:1.2; margin:0; }
  .profile-country { color:var(--quiet); font-size:14px; margin-top:6px; }
  .phone-chip { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:14px 16px; border:1px solid #d7dece; background:#eef1e8; border-radius:14px; font-size:17px; font-weight:550; width:100%; color:#293123; min-height:54px; }
  .phone-chip svg { width:18px; height:18px; }
  .alias-row { display:flex; align-items:center; gap:12px; padding:12px 13px; border:1px solid #35432d; border-radius:15px; background:#1f281c; margin-bottom:9px; }
  .alias-row .avatar { width:36px; height:36px; font-size:13px; }
  .alias-row > span:not(.avatar) { flex:1; font-size:16px; }
  .alias-row .copy-button { margin:0; }
  .profile-name, .alias-row > span:not(.avatar), .loading-query, .large-empty strong { overflow-wrap:anywhere; min-width:0; }
  dialog { border:1px solid #48513f; padding:24px; color:#f3f6ee; background:#1f281e; border-radius:24px; width:min(380px,calc(100% - 32px)); box-shadow:0 30px 100px #0009; overflow:visible; }
  dialog::backdrop { background:#071006ac; backdrop-filter:blur(6px); }
  .dialog-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
  .dialog-header h2 { font-size:22px; letter-spacing:-.4px; }
  .dialog-header .icon-button { background:#303b2b; color:#c2d0b7; }
  .dialog-copy { color:#afbea5; font-size:14px; line-height:1.65; }
  .dialog-copy p + p { margin-top:12px; }
  .dialog-copy ol { padding-left:20px; }
  .dialog-copy li { padding-left:3px; margin:8px 0; }
  .dialog-actions { display:flex; flex-direction:column; gap:9px; margin-top:22px; }
  .dialog-actions button { width:100%; }
  .danger-button { border:0; background:#f2b4a6; color:#422118; border-radius:12px; min-height:48px; font-size:16px; font-weight:600; padding:12px 18px; }
  .loading-dialog { text-align:center; padding-top:30px; }
  .loading-orbit { position:relative; width:70px; height:70px; border:1px solid #48583d; border-radius:50%; margin:0 auto 20px; display:grid; place-items:center; color:var(--lime); }
  .loading-orbit::before { content:""; position:absolute; inset:-2px; border:3px solid transparent; border-top-color:var(--lime); border-radius:50%; animation:spin 1.2s linear infinite; }
  .loading-orbit svg { width:26px; height:26px; }
  .loading-dialog h2 { font-size:22px; margin-bottom:8px; }
  .loading-query { display:inline-block; color:#c6d5bb; font-size:14px; margin-top:5px; }
  .loading-caption { font-size:12px; color:#93a586; margin-top:10px; }
  .toast { position:fixed; bottom:max(24px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); background:#e9f5d8; color:#1b2a11; box-shadow:0 6px 28px #0005; border:1px solid #d0e7ae; padding:12px 18px; border-radius:13px; font-size:14px; z-index:100; max-width:calc(100% - 32px); width:max-content; text-align:center; }
  @keyframes spin { to { transform:rotate(360deg); } }
  .reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation:none !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}

@layer responsive {
  @media (max-width:899px) {
    .search-panel + .dark-pane { min-height:calc(100dvh - 310px); }
  }
  @media (min-width:600px) and (max-width:899px) {
    .app-shell { max-width:540px; }
    .light-pane, .dark-pane { padding-left:28px; padding-right:28px; }
  }
  @media (min-width:900px) {
    body { padding:48px 28px; background:radial-gradient(ellipse at 20% 0%,#263020 0,transparent 48%),var(--dark); }
    .app-shell { display:block; border:1px solid #354031; border-radius:28px; overflow:hidden; box-shadow:0 25px 70px #0003; background:#111610; min-height:560px; }
    .light-pane { border-radius:0 0 26px 26px; padding:26px 28px; }
    .toolbar { margin-bottom:22px; }
    .brand-name { font-size:21px; }
    #search-form { display:grid; grid-template-columns:216px minmax(0,1fr) 142px; gap:12px; align-items:start; }
    .mode-switch { min-height:58px; padding:5px; }
    .mode-button { min-height:46px; }
    .search-button { min-height:58px; padding-left:16px; }
    .dark-pane { padding:28px; min-height:360px; }
    .panel-heading { margin-bottom:22px; }
    .section-row h2, .section-row h3, h2 { font-size:22px; }
    .result-main { padding:16px 6px 16px 17px; min-height:80px; gap:14px; }
    .result-name { font-size:17px; }
    .copy-button { margin-right:15px; }
    .history-main { padding:15px 16px; }
    .history-query { font-size:16px; }
    .history-time { font-size:14px; }
    .empty-history { padding:32px 20px; }
    .sample-section { margin-top:24px; }
    .subpage .toolbar { margin-bottom:20px; }
    .subpage-heading { gap:20px; }
    .subpage-heading h1 { font-size:26px; }
    .large-empty { padding:38px 16px; }
    .profile-head { margin:16px 0 20px; }
    .phone-chip { max-width:420px; }
    .profile-name { font-size:28px; }
    .settings-group h2 { font-size:14px; }
    .setting-row { padding:17px 18px; }
    .app-version { margin-top:24px; }
  }
  @media (max-width:359px) {
    .light-pane { padding-left:16px; padding-right:16px; }
    .dark-pane { padding-left:16px; padding-right:16px; }
    .brand { gap:8px; }
    .brand-name { font-size:18px; }
    .brand-mark { width:36px; height:36px; border-radius:11px; }
    .toolbar-actions { gap:4px; }
    .country-control { width:98px; }
    .country-control select { padding-left:9px; }
    .query-input { padding-left:7px; padding-right:4px; }
    .input-action { margin-right:3px; }
    .history-main { padding:12px 10px; gap:9px; }
    .history-time { display:none; }
    .profile-name { font-size:23px; }
    .setting-row { gap:10px; padding:14px 12px; }
  }
  @media (prefers-reduced-motion:reduce) {
    *, *::before, *::after { animation:none !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  }
  @media (display-mode:standalone) {
    .light-pane { padding-top:max(20px,env(safe-area-inset-top)); }
    .dark-pane { padding-bottom:max(32px,env(safe-area-inset-bottom)); }
  }
}

/* Match the site's warm paper, forest ink, citron and directory typography. */
@layer responsive {
  :root {--paper:#fafaf5;--ink:#18251e;--dark:#1d342a;--lime:#d9f86a;--card:#294237;--card-hover:#334d40;--muted:#c2d0c3;--light-line:#d8ded3}
  .app-shell {background:var(--dark)}
  .light-pane {border-radius:0;padding-bottom:23px}
  .toolbar,.subpage .toolbar {margin:0 0 18px;padding-bottom:13px;border-bottom:1px solid var(--light-line)}
  .brand-name {font-weight:720;letter-spacing:-1px}
  .toolbar-actions .icon-button {background:transparent;border:1px solid #d6dfd1;border-radius:12px}
  .toolbar-actions .icon-button:hover {background:#eaf0e4}
  .folio,.input-label,.sample-title>span,.sample-chip small,.phone-chip small,.alias-row i {
    font:600 11px/1.45 ui-monospace,Consolas,monospace;letter-spacing:.075em;text-transform:uppercase}
  .folio {display:flex;align-items:center;gap:9px;color:#4b614e}
  .folio::before {content:"";width:21px;height:3px;background:#76963d}
  .search-intro {margin:6px 0 20px}
  .search-intro h1 {font-size:clamp(35px,7.8vw,48px);line-height:1.08;letter-spacing:-.058em;margin-top:5px}
  .search-intro em {font-family:Georgia,"Times New Roman",serif;font-weight:normal;color:#456248}
  #search-form {gap:12px}
  .mode-switch {background:#e9ede2;border-radius:11px;padding:3px}
  .mode-button {border-radius:8px;min-height:44px;font-size:15px}
  .mode-button[aria-selected=true] {background:var(--lime)}
  .input-label {display:block;color:#526550;margin-bottom:5px}
  .input-wrap {height:54px;border-radius:10px;border-color:#bfcab9}
  .query-input,.paper-number,.phone-chip b {font-variant-numeric:tabular-nums}
  .search-button {border-radius:10px;min-height:50px;padding:6px 8px 6px 16px}
  .search-glyph {width:34px;height:34px;border-radius:7px}
  .dark-pane {padding-top:22px}
  .sample-section {margin:0 0 24px}
  .sample-title {display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:12px}
  .sample-title h2,.history-section h2,.heading-group h2 {font-size:21px;letter-spacing:-.045em}
  .sample-title>span {color:#c2d2bf;font-size:9px}
  .sample-chips {display:grid;gap:0;border:1px solid #496253;border-radius:13px;overflow:hidden;background:#253f32}
  .sample-chip {min-width:0;background:transparent;border:0;border-radius:0;display:flex;align-items:center;text-align:left;padding:12px;gap:12px;color:var(--paper);min-height:64px}
  .sample-chip+.sample-chip {border-top:1px solid #455e4e}
  .sample-chip:hover {background:#314d3e}
  .sample-icon {width:33px;height:33px;display:grid;place-items:center;border-radius:8px;background:#334e3f}
  .sample-icon svg {color:#dbf3a5}
  .sample-chip small,.sample-chip b,.phone-chip small,.phone-chip b {display:block}
  .sample-chip small {font-size:9px;color:#c3d3bd}
  .sample-chip b {font-size:16px;font-weight:580;letter-spacing:-.025em}
  .forward {margin-left:auto;color:var(--lime);font:20px/1 Arial}
  .empty-history {border:0;border-top:1px solid #475e50;border-radius:0;padding:14px 0;justify-content:flex-start;color:#c3d1c4}
  .history-section .section-row {margin-bottom:5px}
  .record-nav {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:-8px}
  .record-nav .demo-pill {color:#425541;background:transparent;border:0;padding-right:0}
  .record-nav .demo-pill::before {content:"";width:7px;height:7px;background:#73923b;border-radius:50%;margin-right:6px}
  .summary-block {border-left:3px solid #a0bd54;padding:3px 0 5px 14px;margin-top:12px}
  .summary-block .folio::before {display:none}
  .summary-block h1 {margin-top:4px;font-size:clamp(26px,7vw,36px);line-height:1.15;letter-spacing:-.055em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  .panel-heading {margin-bottom:14px}
  .results-count {display:inline-flex;align-items:center;justify-content:center;min-width:29px;padding:3px 7px;border:1px solid #536c57;color:#d7efaf;border-radius:6px;font:600 11px/1.3 ui-monospace,Consolas,monospace}
  .result-list {gap:0;border-radius:14px;overflow:hidden;border:1px solid #d8dece;background:#f6f7ef;color:var(--ink)}
  .result-card,.result-card:hover {background:transparent;border:0;border-radius:0;color:var(--ink)}
  .result-card+.result-card {border-top:1px solid #d4dccd}
  .result-main {min-height:79px;padding:12px 5px 12px 13px;gap:11px;color:var(--ink)}
  .result-main:hover {background:#eaf0df}
  .result-name {font-weight:650;letter-spacing:-.025em;white-space:normal;overflow-wrap:anywhere}
  .result-sub {color:#50654e;font-size:15px;font-variant-numeric:tabular-nums}
  .result-chevron {margin-left:auto;color:#5a7358;font-size:24px;font-weight:350;padding-right:4px}
  .result-card .copy-button {background:#e6ecdf;color:#3f543d;border-radius:9px;margin-right:9px}
  .result-card .avatar {border-radius:12px}
  .result-card .avatar:not(:has(img)) {background:#e0e9cd;color:#3d5035;border-color:#c5d3b5}
  .result-card .avatar.alt {background:#dfe9e4;color:#3b574b}
  .result-card .avatar.warm {background:#ece4d4;color:#634f37}
  .result-main:focus-visible,.sample-chip:focus-visible {outline:3px solid #6e872d;outline-offset:-4px}
  .profile-pane {padding-bottom:19px}
  .identity-card {position:relative;isolation:isolate;overflow:hidden;border-radius:15px;margin-top:10px;padding:20px;color:var(--paper);background:#1d342a}
  .identity-card::before {content:"";z-index:-1;position:absolute;inset:0 0 0 52%;background:repeating-linear-gradient(118deg,transparent 0 22px,#89a88424 22px 23px),linear-gradient(113deg,transparent 44%,#304d3d 44%)}
  .identity-card .folio {color:#d9e6cd;font-size:10px}
  .identity-card .folio::before {background:var(--lime);width:17px}
  .profile-head {margin:18px 0;gap:13px}
  .profile-head .avatar.large {width:59px;height:59px;border:2px solid #d6e1cb;border-radius:15px}
  .profile-name {font:normal clamp(29px,8vw,42px)/1.05 Georgia,"Times New Roman",serif;letter-spacing:-.045em}
  .profile-country {color:#d1decd;margin-top:4px}
  .phone-chip {max-width:none;border:0;border-top:1px solid #718674;border-radius:0;padding:12px 0 0;background:transparent;color:var(--paper);text-align:left}
  .phone-chip small {font-size:9px;color:#c7d5c3}
  .phone-chip b {font-size:clamp(17px,4.7vw,22px);letter-spacing:-.035em;font-weight:580}
  .copy-tag {display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:620;color:var(--lime);padding:6px 0 6px 5px}
  .copy-tag svg {width:15px;height:15px}
  .profile-record {background:var(--paper);color:var(--ink);min-height:0}
  .profile-record .results-count {border-color:#c7d2bd;background:#eaf0e0;color:#465d3d}
  .alias-list {border-block:1px solid #ccd6c6}
  .alias-row {background:transparent;border:0;border-radius:0;margin:0;padding:7px 0;gap:15px}
  .alias-row+.alias-row {border-top:1px solid #dce3d7}
  .alias-row i {color:#577052;font-style:normal}
  .alias-row .copy-button {background:#eaf0e3;color:#40583c;border-radius:9px}
  .profile-record .text-button {color:#405f3c;padding-inline:0}
  .profile-pane+.profile-record {padding-top:4px}
  .app-shell:has(.profile-pane),body:has(.profile-pane),html:has(.profile-pane) {background:var(--paper)}
  .profile-record :focus-visible,.result-list :focus-visible {outline-color:#6e872d}
  @media(min-width:900px) {
    body {background:#e9eee3}
    .app-shell {max-width:920px;border-radius:19px;box-shadow:0 15px 48px #1526191c;border-color:#cbd5c7}
    #search-form {grid-template-columns:195px minmax(0,1fr) 185px;align-items:end}
    .mode-switch,.search-button {min-height:54px}
    .sample-chips {grid-template-columns:1fr 1fr}
    .sample-chip+.sample-chip {border-top:0;border-left:1px solid #455e4e}
    .profile-pane,.profile-record {padding-inline:clamp(28px,6vw,82px)}
    .identity-card {padding:24px 29px}
    .search-panel+.dark-pane,.matches-pane {min-height:250px}
  }
  @media(max-width:359px) {
    .sample-title>span {font-size:8px}
    .identity-card {padding:16px}
  }
}
@layer responsive {
  .result-text.with-number {display:flex;flex-direction:column;gap:2px}
  .with-number .result-sub {order:-1;margin:0;font-size:16px;font-weight:650;color:var(--ink);letter-spacing:-.025em}
  .with-number .result-name {font-size:13px;font-weight:480;color:#50654e}
}

@layer responsive {
  .toolbar-actions [aria-current=page] {background:var(--lime);border-color:#b8ce80;color:var(--ink)}
  .utility-header {padding-bottom:18px}
  .utility-nav {margin-top:-13px}
  .utility-title {padding-top:3px}
  .utility-title h1 {font-size:clamp(35px,7.8vw,48px);line-height:1.08;letter-spacing:-.058em;margin-top:4px}
  .utility-title em {font:italic 1.05em/1 Georgia,"Times New Roman",serif;color:#456248;letter-spacing:-.055em}
  .utility-header .filter-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:18px;padding:3px;border-radius:11px;background:#e9ede2}
  .filter-tabs .filter-tab {display:flex;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:6px 3px;border:0;border-radius:8px;background:transparent;color:#4b5b49}
  .filter-tabs .filter-tab[aria-pressed=true] {background:var(--lime);color:var(--ink)}
  .filter-tab span {font:550 11px/1.2 ui-monospace,Consolas,monospace;background:#273d2110;padding:3px 5px;border-radius:4px}
  .archive-pane .section-row {margin-bottom:7px}
  .archive-pane .group-label {display:flex;align-items:center;gap:9px;color:#c7d6c2;margin:0 0 9px;font:600 10px/1.5 ui-monospace,Consolas,monospace;letter-spacing:.09em;text-transform:uppercase}
  .archive-pane .group-label:after {content:"";height:1px;background:#496351;flex:1}
  .history-day + .history-day {margin-top:18px}
  .history-ledger {overflow:hidden;background:#f6f7ef;border:1px solid #cbd6c5;border-radius:14px;color:var(--ink)}
  .history-ledger .history-item {background:transparent;border:0;border-radius:0}
  .history-ledger .history-item+.history-item {border-top:1px solid #d4dccd}
  .history-ledger .history-main {gap:10px;min-height:75px;padding:12px 7px 12px 12px;color:var(--ink)}
  .history-ledger .history-main:hover {background:#eaf0df}
  .history-ledger .history-icon {height:34px;width:34px;background:#e4edda;border-color:#cbd8c0;color:#496448}
  .history-ledger .history-query {font-weight:650;font-size:15px;letter-spacing:-.025em;white-space:normal;overflow-wrap:anywhere;line-height:1.3;font-variant-numeric:tabular-nums}
  .history-ledger .history-meta,.history-ledger .history-time {font-size:12px;color:#51654e}
  .history-ledger .history-time {display:block;font:11px ui-monospace,Consolas,monospace}
  .history-ledger .history-item>.icon-button {color:#596955;margin:0 6px 0 0;width:44px;min-width:44px;height:44px}
  .history-ledger .history-item>.icon-button:hover {color:#893431;background:#f4e7e1}
  .history-ledger :focus-visible {outline:3px solid #627d36;outline-offset:-4px}
  .archive-empty {padding:20px 17px;border:1px solid #496351;border-radius:14px;background:#243e32}
  .archive-empty .empty-symbol {width:42px;height:42px;border-radius:10px;margin:0 0 12px;background:#324d3e}
  .archive-empty p {color:#c6d5c4;font-size:14px;margin:5px 0 16px}
  .archive-empty .primary-light {min-height:44px;padding:8px 15px;font-size:14px}
  .preferences-pane {background:var(--paper);color:var(--ink);padding-top:2px}
  html:has(.preferences-pane),body:has(.preferences-pane),.app-shell:has(.preferences-pane) {background:var(--paper)}
  .preferences-pane .settings-group {margin-bottom:18px}
  .preferences-pane h2,.preferences-pane .settings-group h2 {margin:0 0 10px;color:var(--ink);font-size:20px;line-height:1.2;font-weight:640;letter-spacing:-.045em}
  .preferences-pane .settings-card {border-radius:13px;border:1px solid #cdd7c5;background:#f2f5ec}
  .preferences-pane .setting-row {min-height:48px;gap:10px;padding:9px 12px}
  .preferences-pane .setting-row+.setting-row {border-top:1px solid #d2ddca}
  .preferences-pane .pref-control {display:flex;align-items:center;width:100%;min-height:68px;color:var(--ink);background:none;border:0;text-align:left}
  .preferences-pane .pref-control:hover,.preferences-pane .row-button:hover {background:#e8eee0}
  .pref-control .utility-icon {display:grid;place-items:center;width:32px;height:32px;flex:none;background:#e2ead8;color:#476044;border-radius:9px}
  .pref-control .utility-icon svg,.preferences-pane .setting-row>svg {width:17px;height:17px;color:#50674b}
  .pref-control .switch {background:#63745f;width:40px;height:24px;border:1px solid #596954;padding:2px;pointer-events:none}
  .pref-control .switch::after {height:18px;width:18px;background:white}
  .pref-control[aria-checked=true] .switch {background:var(--lime);border-color:#8aa34f}
  .pref-control[aria-checked=true] .switch::after {background:var(--ink);transform:translateX(15px)}
  .pref-control .setting-title {font-size:15px;font-weight:650}
  .pref-control .setting-description {margin:1px 0 0;font-size:12px;color:#53664f}
  .install-module {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:17px;margin-bottom:19px;border-radius:13px;background:repeating-linear-gradient(117deg,transparent 0 30px,#89a88417 30px 31px),var(--dark)}
  .install-module h2 {color:var(--paper);font-size:18px;margin:0}
  .offline-indicator {display:flex;align-items:center;gap:6px;color:#d9e6d3;font-size:12px;margin-top:4px}
  .offline-indicator i {width:7px;height:7px;border:1px solid currentColor;border-radius:50%}
  .offline-indicator.ready i {background:var(--lime);border-color:var(--lime)}
  .install-action {display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;white-space:nowrap;padding:8px 11px;border:0;border-radius:8px;background:var(--lime);color:var(--ink);font-weight:650;font-size:13px}
  .install-action svg {width:15px;height:15px}
  .about-module .settings-card {background:transparent}
  .about-module .setting-text {font-size:14px;font-weight:570}
  .preferences-pane .setting-value {color:#52644e;font-size:13px}
  .about-module .row-button>span[aria-hidden] {color:#60765a}
  .preferences-pane .app-version {color:#566a51;text-align:left;font:10px ui-monospace,Consolas,monospace;letter-spacing:.06em;margin:18px 0 0}
  .preferences-pane :focus-visible {outline-color:#547528;outline-offset:-3px}
  @media (min-width:900px){
    .utility-header,.preferences-pane,.archive-pane {padding-inline:clamp(28px,6vw,82px)}
    .utility-header .filter-tabs {max-width:430px}
    .preferences-pane {display:grid;grid-template-columns:1.15fr 1fr;gap:0 22px;align-content:start}
    .preferences-pane .about-module {grid-column:2;grid-row:1/3}
    .preferences-pane .install-module {grid-column:1}
    .preferences-pane .app-version {grid-column:1/-1}
  }
  @media (max-width:359px) {
    .history-ledger .history-icon {width:28px;height:28px}
    .history-ledger .history-main {gap:7px}
    .install-module {padding:13px 11px}
  }
}
