/* Hastalık Atlası (2026-10-03 redesign: a hero with the search, subject-coloured cards, a reading page with numbered
   sections, a side navigation, a highlighted TUS box and a calm reference list). Subject themes: .at-dh, .at-pd, .at-x. */
.at-dh { --at-a: #1e6ff2; --at-b: #1347a8; --at-l: #eaf2ff; }
.at-pd { --at-a: #0f7c8c; --at-b: #0b5f6b; --at-l: #e6f4f6; }
.at-x { --at-a: #6d28d9; --at-b: #4c1d95; --at-l: #f3eefe; }
.at-gc { --at-a: #b45309; --at-b: #7c2d12; --at-l: #fff4e6; } .at-kd { --at-a: #be185d; --at-b: #831843; --at-l: #fdf0f6; }
.at-ur { --at-a: #0369a1; --at-b: #0c4a6e; --at-l: #e8f4fb; } .at-nr { --at-a: #7c3aed; --at-b: #4c1d95; --at-l: #f3eefe; }
.at-ps { --at-a: #4f46e5; --at-b: #312e81; --at-l: #eef0ff; } .at-dr { --at-a: #c2410c; --at-b: #7c2d12; --at-l: #fff1e8; }
.at-gz { --at-a: #0e7490; --at-b: #164e63; --at-l: #e6f6f9; } .at-kb { --at-a: #15803d; --at-b: #14532d; --at-l: #eaf7ee; }
.at-or { --at-a: #475569; --at-b: #1e293b; --at-l: #eef2f6; } .at-ac { --at-a: #dc2626; --at-b: #7f1d1d; --at-l: #fdecec; }

/* ---- home: hero with the search */
.at-hero { position: relative; overflow: hidden; margin: 8px 0 18px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, 0) 55%), linear-gradient(125deg, #0b1f3a 0%, #1347a8 50%, #6d28d9 100%);
  box-shadow: 0 24px 50px -30px rgba(19, 71, 168, .7); }
.at-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); pointer-events: none; }
.at-hero-in { position: relative; z-index: 1; padding: 30px clamp(18px, 4vw, 40px) 24px; max-width: 760px; }
.at-kick { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 5px 12px; }
.at-hero h1 { margin: 12px 0 6px; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.at-hero-lead { margin: 0 0 18px; color: rgba(255, 255, 255, .85); font-size: 16px; }
.at-sbox { display: flex; align-items: center; gap: 10px; background: #fff; color: #5b6b80; border-radius: 16px; padding: 4px 6px 4px 16px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.at-sbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; padding: 12px 6px; color: #0b1324; }
.at-sbox:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 10px 30px -12px rgba(0, 0, 0, .45); }
.at-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.at-chip { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.at-chip:hover { background: rgba(255, 255, 255, .18); }
.at-chip[aria-pressed="true"] { background: #fff; color: #1347a8; border-color: #fff; }
.at-quota { margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.at-quota a { color: #fff; font-weight: 700; }
.at-quota .tag.ok { background: #dcfce7; color: #15803d; }
.at-quota .muted { color: rgba(255, 255, 255, .85) !important; }
.at-count { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); }

/* ---- home: cards */
.at-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.at-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card, #fff);
  box-shadow: var(--shadow); text-decoration: none; color: inherit; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.at-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--at-a), var(--at-b)); }
.at-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); border-color: color-mix(in srgb, var(--at-a) 35%, var(--line)); }
.at-c-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.at-c-sub { font-size: 12px; font-weight: 800; color: var(--at-b); background: var(--at-l); border-radius: 999px; padding: 3px 10px; }
.at-code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 700; color: #334155; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; padding: 2px 7px; }
.at-c-name { margin-top: 4px; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.at-c-topic { font-size: 13px; color: var(--muted); font-weight: 600; }
.at-c-s { font-size: 14px; line-height: 1.55; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.at-c-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.at-c-go { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--at-a); }

/* ---- page: header */
.at-phero { position: relative; overflow: hidden; margin: 8px 0 0; padding: 22px clamp(18px, 4vw, 36px) 22px; border-radius: 24px 24px 0 0; color: #fff;
  background: radial-gradient(120% 160% at 100% 0%, rgba(255, 255, 255, .18) 0, rgba(255, 255, 255, 0) 55%), linear-gradient(125deg, var(--at-b), var(--at-a)); }
.at-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.at-crumbs a { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 4px 12px; }
.at-crumbs a:hover { background: rgba(255, 255, 255, .24); }
.at-crumbs span + span::before { content: "·"; margin-right: 10px; opacity: .7; }
.at-phero h1 { margin: 14px 0 4px; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.at-ph-en { margin: 0; color: rgba(255, 255, 255, .8); font-size: 15px; }
.at-icd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: rgba(255, 255, 255, .92); }
.at-phero .at-code { background: rgba(255, 255, 255, .95); border: 0; color: var(--at-b); font-size: 13px; }
.at-icd-n { font-size: 11px; opacity: .7; }
.at-ph-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.at-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 4px 11px; background: rgba(255, 255, 255, .16); color: #fff; }
.at-pill.ok { background: #fef3c7; color: #92400e; }
.at-sum { margin: 0 0 18px; padding: 18px clamp(18px, 4vw, 36px); background: var(--card, #fff); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 24px 24px;
  font-size: 17px; line-height: 1.65; color: var(--ink2); box-shadow: var(--shadow); }

/* ---- page: reading column */
.at-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.at-body { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.at-sec { margin: 0 0 26px; scroll-margin-top: calc(var(--hdr-h, 64px) + 12px); border-radius: 12px; }
.at-sh { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 20px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.at-n { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #1e6ff2, #6d28d9); }
.at-body p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.75; color: #1e293b; max-width: 72ch; }
.at-cite { border: 0; background: #eaf2ff; color: #1347a8; font: inherit; font-size: 11px; font-weight: 800; line-height: 1; padding: 2px 5px; margin-left: 2px; border-radius: 6px; cursor: pointer; vertical-align: super; }
.at-cite:hover { background: #1e6ff2; color: #fff; }
.at-refbox { background: #f8fafc; border: 1px solid #eef2f7; padding: 16px 18px; }
.at-refbox .at-n { background: #94a3b8; }
.at-refs { margin: 0; padding-left: 22px; }
.at-refs li { font-size: 13.5px; line-height: 1.55; color: var(--ink2); margin: 4px 0; padding: 2px 6px; border-radius: 6px; scroll-margin-top: calc(var(--hdr-h, 64px) + 12px); }
.at-body .at-disc { margin: 6px 0 0; font-size: 13px; line-height: 1.55; max-width: none; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
@keyframes atFlash { from { background: #fef3c7; } to { background: transparent; } }
.at-flash { animation: atFlash 1.6s ease-out; }

/* ---- page: side */
.at-side { position: sticky; top: calc(var(--hdr-h, 64px) + 12px); display: flex; flex-direction: column; gap: 14px; }
.at-side .panel { margin: 0; border-radius: 18px; }
.at-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.at-nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink2); padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.at-nav button:hover { background: #f1f5f9; color: var(--ink); }
.at-nav .at-n { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; background: #e2e8f0; color: #334155; }
.at-nav button:hover .at-n { background: linear-gradient(135deg, #1e6ff2, #6d28d9); color: #fff; }
.at-tus { background: linear-gradient(180deg, #fffbeb, #fff) !important; border-color: #fde68a !important; }
.at-tus h2 { color: #92400e; }
.at-tus ul { margin: 0; padding-left: 18px; } .at-tus li { margin: 6px 0; font-size: 14.5px; line-height: 1.55; }
.at-tus li::marker { color: #f59e0b; }
.at-tus button { width: 100%; margin-top: 10px; }
.at-ask textarea, .at-rq textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line); padding: 10px 12px; font: inherit; }
.at-ask textarea:focus { outline: 0; border-color: #1e6ff2; box-shadow: 0 0 0 3px #eaf2ff; }
.at-rq { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }

/* ---- page: preview (no full access) */
.at-lock { position: relative; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); overflow: hidden; }
.at-lock-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; filter: saturate(.6); opacity: .75; }
.at-lock-list li { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px dashed #cbd5e1; }
.at-lock-cta { margin-top: 18px; padding: 18px; border-radius: 16px; background: linear-gradient(120deg, #f5eeff, #eef4ff); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.at-lock-cta p { flex: 1; min-width: 220px; margin: 0; font-weight: 600; color: #334155; }

@media (max-width: 900px) {
  .at-cols { grid-template-columns: 1fr; }
  .at-side { position: static; }
  .at-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .at-card { transition: none; } .at-card:hover { transform: none; } .at-flash { animation: none; } }

.at-lang-note { margin: 0; padding: 10px clamp(18px, 4vw, 36px); background: #fff7e6; color: #92400e; font-size: 14px; font-weight: 600; border: 1px solid var(--line); border-top: 0; }

/* ---- ICD-11 browser */
.at-icd-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 16px; border-radius: 999px; background: #fff; color: #1347a8; font-weight: 800; font-size: 14px; text-decoration: none; }
.at-icd-btn:hover { background: #eaf2ff; }
.at-hero-s .at-hero-in { max-width: 980px; }
.at-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 6px; }
.at-pick label { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.at-pick select { font: inherit; font-size: 15px; padding: 11px 12px; border-radius: 12px; border: 0; background: #fff; color: #0b1324; max-width: 100%; }
.at-pick select:disabled { opacity: .6; }
.at-pick button { padding: 11px 18px; border-radius: 12px; }
.at-icd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.at-tree ul { list-style: none; margin: 0; padding: 0 0 0 16px; } .at-troot { padding-left: 0 !important; }
.at-tree li { margin: 2px 0; }
.at-th { display: flex; align-items: baseline; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.at-tree summary { list-style: none; } .at-tree summary::-webkit-details-marker { display: none; }
.at-tree summary::before { content: "▸"; color: #94a3b8; width: 10px; flex: none; transition: transform .15s; }
.at-tree details[open] > summary::before { transform: rotate(90deg); }
.at-th:hover { background: #f1f5f9; }
.at-tc { flex: none; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; font-weight: 800; color: #1347a8; background: #eaf2ff; border-radius: 7px; padding: 1px 7px; }
.at-tt { flex: 1; font-weight: 600; } .at-tn { flex: none; font-size: 12px; font-weight: 800; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 1px 8px; }
.at-tl > .at-th { cursor: default; } .at-tl > .at-th::before { content: ""; width: 10px; }
.at-tp a { display: block; padding: 4px 8px 4px 28px; border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--ink2); }
.at-tp a::before { content: "↳ "; color: #94a3b8; } .at-tp a:hover { background: #eef4ff; color: #1347a8; }
.at-learn { position: sticky; top: calc(var(--hdr-h, 64px) + 12px); background: linear-gradient(180deg, #f5f3ff, #fff) !important; border-color: #e4dafb !important; }
.at-q { font-size: 17px; font-weight: 700; margin: 6px 0 12px; }
.at-opts { display: grid; gap: 8px; }
.at-opts button { text-align: left; font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.at-opts button:hover:not(:disabled) { border-color: #a78bfa; background: #faf5ff; }
.at-opts button.ok { border-color: #16a34a; background: #ecfdf3; color: #15803d; } .at-opts button.bad { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }
.at-fb { min-height: 1.4em; margin: 10px 0 0; }
@media (max-width: 900px) { .at-icd-cols { grid-template-columns: 1fr; } .at-learn { position: static; } }

.at-sys { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.at-sys button { border: 0; background: none; color: #fff; font: inherit; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.at-sys button[aria-checked="true"] { background: #fff; color: #1347a8; }
.at-icd10 { margin-top: 6px; opacity: .92; }

.at-icdrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; }
.at-icdrow .at-icd-btn { margin-top: 0; }
.at-syspick { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.at-syspick select { font: inherit; font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 9px 12px; border-radius: 999px; border: 0; background: #fff; color: #1347a8; min-width: 210px; }

/* ---- page redesign (2026-10-03): glance strip, summary and exam cards, section cards, side tools */
.at-sum { border-radius: 0 0 24px 24px; font-size: 17.5px; }
.at-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin: 16px 0; }
.at-fact { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 16px; background: var(--card, #fff); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.at-fact-k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.at-fact b { font-size: 16px; color: var(--ink); }
.at-fact-code { font-family: ui-monospace, Consolas, monospace; font-size: 20px !important; color: #1347a8 !important; }
.at-fact-v { font-size: 13px; color: var(--ink2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.at-fact-q { background: linear-gradient(135deg, #eef4ff, #f5eeff); border-color: #dfe3fb; }
.at-quizbtn { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 9px 14px; font: inherit; font-weight: 800; font-size: 14px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #1e6ff2, #6d28d9); box-shadow: 0 8px 20px -10px rgba(30, 111, 242, .7); }
.at-quizbtn small { font-weight: 600; opacity: .85; }
.at-tuscard { margin: 0 0 18px; padding: 18px 22px; border-radius: 20px; background: linear-gradient(135deg, #fffbeb, #fff7ed); border: 1px solid #fde68a; }
.at-tuscard h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; color: #92400e; }
.at-tuscard ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 10px 22px; }
.at-tuscard li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: #422006; }
.at-tuscard li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 6px; background: #f59e0b; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

.at-body { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.at-body .at-sec { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px 8px; margin: 0 0 14px; box-shadow: var(--shadow); }
.at-sh { gap: 12px; font-size: 19px; margin-bottom: 12px; }
.at-si { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: #f1f5f9; }
.at-sec-tanim .at-si { background: #eaf2ff; } .at-sec-epidemiyoloji .at-si { background: #e6f6f9; } .at-sec-etiyopatogenez .at-si { background: #f3eefe; }
.at-sec-klinik .at-si { background: #fdf0f6; } .at-sec-tani .at-si { background: #eaf7ee; } .at-sec-ayirici_tani .at-si { background: #fff4e6; }
.at-sec-tedavi { border-left: 4px solid #16a34a !important; } .at-sec-tedavi .at-si { background: #dcfce7; } .at-sec-komplikasyon_prognoz .at-si { background: #fdecec; }
.at-rxnote { margin: -4px 0 12px !important; font-size: 13px !important; color: #15803d !important; font-weight: 600; }
.at-body .at-refbox { background: #f8fafc; box-shadow: none; }
.at-body .at-disc { border: 0; padding: 4px 6px; }

.at-card { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); }
.at-card h2 { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--ink); }
.at-nav button { gap: 10px; }
.at-nav button span { width: 22px; text-align: center; }
.at-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.at-chiplink { padding: 6px 12px; border-radius: 999px; background: #eaf2ff; color: #1347a8; font-weight: 800; font-size: 13px; text-decoration: none; }
.at-chiplink:hover { background: #1e6ff2; color: #fff; }

.at-ask { padding: 0; overflow: hidden; }
.at-ask-h { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, #0b1f3a, #1347a8); color: #fff; }
.at-ask-h h2 { color: #fff; margin: 0; } .at-ask-h p { margin: 2px 0 0; font-size: 12.5px; opacity: .8; }
.at-ask-av { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 20px; flex: none; }
.at-ask-log { max-height: 320px; overflow-y: auto; padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 8px; }
.at-ask-log:empty { display: none; }
.at-bub { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.at-bub.me { align-self: flex-end; background: #1e6ff2; color: #fff; border-bottom-right-radius: 4px; }
.at-bub.ai { align-self: flex-start; background: #f1f5f9; color: var(--ink); border-bottom-left-radius: 4px; }
.at-bub.warn { background: #fff7e6; color: #92400e; }
.at-bub-src { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink2); } .at-bub-lbl { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.at-ask-in { display: flex; gap: 8px; align-items: flex-end; padding: 12px 14px 14px; }
.at-ask-in textarea { flex: 1; resize: none; border-radius: 14px; border: 1.5px solid var(--line); padding: 10px 12px; font: inherit; font-size: 14px; }
.at-ask-in textarea:focus { outline: 0; border-color: #1e6ff2; box-shadow: 0 0 0 3px #eaf2ff; }
.at-ask-send { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 0; background: #1e6ff2; color: #fff; font-size: 16px; cursor: pointer; }
.at-ask-send:disabled { opacity: .5; }
.at-replink { border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); text-align: left; padding: 4px 6px; cursor: pointer; }
.at-replink:hover { color: #b91c1c; text-decoration: underline; }

.at-ex { border-color: #e4dafb; }
.at-ex-h { display: flex; gap: 12px; align-items: center; }
.at-ex-h h2 { margin: 0; }
.at-ex-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: linear-gradient(135deg, #f3eefe, #eaf2ff); flex: none; }
.at-ex-badge { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6d28d9; background: #f3eefe; border-radius: 999px; padding: 2px 8px; }
.at-ex-lead { margin: 10px 0 12px; font-size: 13px; line-height: 1.55; color: var(--ink2); }
.at-ex-list { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.at-ex-list legend { font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 6px; padding: 0; }
.at-ex-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.at-ex-opt:has(input:checked) { border-color: #6d28d9; background: #faf5ff; }
.at-ex-opt input { accent-color: #6d28d9; }
.at-ex-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6d28d9, #1e6ff2); flex: none; }
.at-ex-who { flex: 1; min-width: 0; display: flex; flex-direction: column; } .at-ex-who b { font-size: 14px; } .at-ex-who small { color: var(--muted); font-size: 12px; }
.at-fee { flex: none; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.at-fee.free { background: #dcfce7; color: #15803d; } .at-fee.paid { background: #fef3c7; color: #92400e; }
.at-ex-note { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 800; color: var(--muted); }
.at-ex-note textarea { border-radius: 12px; border: 1.5px solid var(--line); padding: 9px 11px; font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); resize: vertical; }
.at-ex-go { width: 100%; margin-top: 10px; border: 0; border-radius: 12px; padding: 11px; font: inherit; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6d28d9, #1e6ff2); cursor: pointer; }
.at-ex-go:disabled { opacity: .6; }
.at-ex-empty { padding: 14px; border-radius: 14px; background: #f8fafc; border: 1px dashed #cbd5e1; text-align: center; }
.at-ex-empty p { margin: 0 0 6px; font-weight: 700; } .at-ex-empty a { font-weight: 800; color: #6d28d9; text-decoration: none; }
.at-ex-hh { margin: 16px 0 8px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.at-ex-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.at-ex-hist li { display: flex; gap: 10px; font-size: 13px; } .at-ex-hist li > div { flex: 1; } .at-ex-hist small { display: block; color: var(--muted); } .at-ex-hist p { margin: 4px 0 0; color: var(--ink2); }
.at-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: #94a3b8; }
.st-open .at-dot { background: #f59e0b; } .st-approved .at-dot { background: #16a34a; } .st-changes .at-dot { background: #dc2626; }
.at-st { font-weight: 800; margin: 0 4px; } .st-approved .at-st { color: #15803d; } .st-changes .at-st { color: #b91c1c; } .st-open .at-st { color: #b45309; }
@media (max-width: 900px) { .at-body .at-sec { padding: 16px 16px 6px; } .at-glance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .at-glance { grid-template-columns: 1fr; } }
.at-ex-who .at-fee { align-self: flex-start; margin-top: 4px; }
.at-glance + .at-tuscard { margin-top: 0; }

/* ---- review desk redesign (2026-10-03) */
.at-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 10px; margin-top: 16px; }
.at-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; }
.at-kpi span { font-size: 16px; } .at-kpi b { font-size: 22px; font-weight: 800; } .at-kpi small { font-size: 12px; opacity: .85; font-weight: 600; }
.at-kpi.warn b { color: #fde68a; } .at-kpi.bad b { color: #fecaca; }
.at-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; padding: 4px; border-radius: 14px; background: #eef2f7; width: fit-content; max-width: 100%; }
.at-tabs button { border: 0; background: none; font: inherit; font-weight: 800; font-size: 14px; color: var(--ink2); padding: 9px 16px; border-radius: 11px; cursor: pointer; }
.at-tabs button span { margin-left: 4px; font-size: 12px; color: var(--muted); background: #fff; border-radius: 999px; padding: 1px 7px; }
.at-tabs button[aria-selected="true"] { background: #fff; color: #1347a8; box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.at-desk-lead { margin: 0 0 12px; color: var(--ink2); }
.at-empty { padding: 28px; text-align: center; border-radius: 18px; background: var(--card, #fff); border: 1px dashed #cbd5e1; color: var(--ink2); font-weight: 700; }
.at-rqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.at-rqcard { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.at-rqcard header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.at-rqcard h3 { margin: 6px 0 0; font-size: 17px; } .at-rqcard h3 a { color: var(--ink); text-decoration: none; } .at-rqcard h3 a:hover { color: #1347a8; }
.at-rqcard blockquote { margin: 0; padding: 10px 12px; border-left: 3px solid #a78bfa; background: #faf5ff; border-radius: 0 10px 10px 0; font-size: 14px; color: var(--ink2); }
.at-rqcard blockquote small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #6d28d9; margin-bottom: 2px; }
.at-rqcard textarea { border-radius: 12px; border: 1.5px solid var(--line); padding: 9px 11px; font: inherit; font-size: 14px; resize: vertical; }
.at-rqbtns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.at-ok, .at-chg { border-radius: 11px; padding: 9px 14px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.at-ok { border: 0; background: #16a34a; color: #fff; } .at-chg { border: 1.5px solid #fca5a5; background: #fff; color: #b91c1c; }
.at-open { margin-left: auto; font-weight: 800; font-size: 13px; color: #1347a8; text-decoration: none; }
.at-warnbox { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff7e6; color: #92400e; font-weight: 600; font-size: 14px; }
.at-ptool { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.at-psearch { display: flex; align-items: center; gap: 8px; background: var(--card, #fff); border: 1.5px solid var(--line); border-radius: 14px; padding: 4px 12px; }
.at-psearch input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 9px 2px; background: transparent; }
.at-fchips { display: flex; gap: 6px; flex-wrap: wrap; }
.at-fchips button { border: 1.5px solid var(--line); background: var(--card, #fff); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink2); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.at-fchips button span { color: var(--muted); font-weight: 800; margin-left: 2px; }
.at-fchips button[aria-pressed="true"] { background: #1347a8; border-color: #1347a8; color: #fff; } .at-fchips button[aria-pressed="true"] span { color: #c7d7fe; }
.at-plist { display: flex; flex-direction: column; gap: 8px; }
.at-prow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) auto; gap: 12px; align-items: center; padding: 12px 16px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; }
.at-prow-n { text-decoration: none; color: var(--ink); min-width: 0; } .at-prow-n b { display: block; font-size: 15px; } .at-prow-n small { color: var(--muted); font-size: 12.5px; }
.at-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.at-pl { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; white-space: nowrap; }
.at-pl.ok { background: #dcfce7; color: #15803d; } .at-pl.bad { background: #fee2e2; color: #b91c1c; } .at-pl.warn { background: #fef3c7; color: #92400e; } .at-pl.star { background: #ede9fe; color: #6d28d9; } .at-pl.mute { background: #f1f5f9; color: #64748b; }
.at-prow-a { font-size: 13px; font-weight: 800; color: #6d28d9; text-decoration: none; white-space: nowrap; }
.at-ledger { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.at-lcard { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.at-lcard header { display: flex; gap: 10px; align-items: center; } .at-lcard header b { display: block; }
.at-lcard dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.at-lcard dl div { background: #f8fafc; border-radius: 10px; padding: 8px 10px; } .at-lcard dt { font-size: 11px; color: var(--muted); font-weight: 800; } .at-lcard dd { margin: 2px 0 0; font-weight: 800; }
.at-lcard dl div.due { background: #fef3c7; } .at-lcard dl div.due dd { color: #92400e; }
.at-pay { border: 0; border-radius: 12px; padding: 10px; font: inherit; font-weight: 800; color: #fff; background: linear-gradient(135deg, #16a34a, #0f766e); cursor: pointer; }
@media (max-width: 760px) { .at-prow { grid-template-columns: 1fr; } .at-open { margin-left: 0; } }
