@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --page: #f4f6f3;
  --surface: #fff;
  --surface-2: #f8faf8;
  --ink: #172923;
  --ink-soft: #50615a;
  --muted: #829089;
  --line: #e8ede8;
  --jade: #176f5d;
  --jade-dark: #105544;
  --jade-light: #e8f4ef;
  --brass: #bd8a42;
  --brass-light: #fbf3e5;
  --coral: #c86d62;
  --blue: #63839c;
  --purple: #8174a0;
  --shadow: 0 14px 36px rgba(30, 55, 45, .055);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.auth-screen .app-shell { display: block; min-height: 100vh; }
.auth-screen .nav-rail, .auth-screen .workbench, .auth-screen .topbar, .auth-screen .mobile-tabbar { display: none; }
.auth-screen .main-content { padding: clamp(24px, 7vh, 80px) 20px; }
.login-panel { max-width: 460px; margin: auto; padding: clamp(24px, 5vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.login-brand { color: var(--jade-dark); text-decoration: none; font-size: 24px; font-weight: 800; }
.login-panel h1 { font-size: 24px; margin: 24px 0 8px; line-height: 1.5; }
.login-panel p, .account-editor > p { color: var(--ink-soft); }
.login-panel form, .account-editor form { display: grid; gap: 12px; }
.login-panel label, .account-editor label { font-weight: 600; margin-top: 8px; }
.login-panel input, .account-editor input, .account-editor select, .account-search input { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #aebcb4; border-radius: 8px; padding: 9px 12px; background: var(--surface); color: var(--ink); }
.login-panel input::placeholder, .account-search input::placeholder { color: var(--ink-soft); opacity: 1; }
.login-panel button { min-height: 44px; }
#loginNotice { min-height: 28px; color: var(--jade-dark); overflow-wrap: anywhere; }
.login-actions, .account-pagination, .account-editor-actions { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; }
.login-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.login-help p { margin-bottom: 0; font-size: 13px; }
.login-app-link { display: inline-flex; margin-top: 16px; }
.account-permissions { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.account-permissions p { margin-bottom: 0; color: var(--ink-soft); }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); gap: 28px; align-items: start; }
.account-layout h2 { font-size: 18px; margin: 0; }
.account-editor { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.account-editor small { color: var(--ink-soft); }
.account-editor input[readonly] { background: var(--surface-2); }
.account-search { display: grid; gap: 8px; }
.account-search > div { display: flex; gap: 8px; }
.account-search button { flex-shrink: 0; }
.account-list { list-style: none; padding: 0; margin: 0; }
.account-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-list li > div { display: grid; gap: 5px; overflow-wrap: anywhere; min-width: 0; }
.account-list li small, .account-list li span { color: var(--ink-soft); }
.account-list button { flex-shrink: 0; min-height: 44px; }
.account-audit { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.account-audit summary { cursor: pointer; font-weight: 600; }
.account-audit li { margin: 10px 0; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-editor { max-width: 540px; width: 100%; }
}
body { margin: 0; background: var(--page); color: var(--ink); font-family: inherit; font-size: 14px; line-height: 1.7; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(23, 111, 93, .3); outline-offset: 2px; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr) 292px; min-height: 100vh; max-width: 1800px; margin: auto; }
.nav-rail { position: sticky; top: 0; height: 100vh; min-height: 700px; display: flex; flex-direction: column; padding: 27px 19px 18px; background: #fff; border-left: 1px solid var(--line); z-index: 4; }
.brand-lockup { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 0 5px 30px; }
.brand-mark { width: 38px; height: 38px; border-radius: 13px 13px 13px 5px; background: var(--jade); display: flex; gap: 3px; align-items: center; justify-content: center; transform: rotate(-3deg); }
.brand-mark span { width: 3px; border-radius: 4px; background: #f9f5e9; display: block; transform: rotate(12deg); }
.brand-mark span:nth-child(1) { height: 12px; opacity: .7; }.brand-mark span:nth-child(2) { height: 20px; }.brand-mark span:nth-child(3) { height: 15px; opacity: .85; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.4; }
.brand-copy strong { font-size: 19px; font-weight: 800; letter-spacing: -.5px; }.brand-copy small { color: var(--muted); font-size: 10px; }
.rail-section-label { display: flex; align-items: center; justify-content: space-between; color: #97a29c; font-size: 10px; font-weight: 700; padding: 0 10px; margin: 0 0 8px; }
.primary-nav { display: grid; gap: 4px; }
.nav-link { border: 0; background: transparent; border-radius: 10px; min-height: 43px; padding: 0 11px; display: flex; align-items: center; gap: 11px; color: #617169; cursor: pointer; text-align: right; transition: background .2s, color .2s; }
.nav-link svg { width: 18px; height: 18px; }
.nav-link span:nth-child(2) { flex: 1; }
.nav-link:hover { background: #f5f8f6; color: var(--jade-dark); }
.nav-link.active { background: var(--jade-light); color: var(--jade-dark); font-weight: 700; }
.nav-link kbd { color: #9aa59f; font-size: 10px; border: 1px solid #dfe6e1; border-radius: 4px; padding: 0 5px; background: #fff; }
.nav-count { font-size: 10px; min-width: 20px; height: 20px; display: grid; place-items: center; background: #f0f3f0; border-radius: 7px; color: #829089; }
.new-dot { width: 6px; height: 6px; background: var(--brass); border-radius: 50%; }
.rail-divider { height: 1px; background: var(--line); margin: 22px 4px 18px; }
.mini-add { border: 0; background: transparent; color: var(--muted); padding: 3px; cursor: pointer; }
.mini-add svg { width: 16px; height: 16px; }
.recent-files { display: grid; gap: 3px; }
.recent-file { border: 0; background: transparent; border-radius: 8px; display: flex; align-items: center; gap: 9px; text-align: right; padding: 7px 10px; color: #617169; cursor: pointer; }
.recent-file:hover { background: #f5f8f6; color: var(--ink); }
.file-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot-amber { background: #d3a657; }.dot-coral { background: #d27d71; }.dot-blue { background: #7594aa; }
.rail-spacer { flex: 1; min-height: 35px; }
.index-status { display: flex; align-items: flex-start; gap: 9px; padding: 12px 10px; background: #f7f9f7; border-radius: 10px; margin: 0 0 12px; }
.status-pulse { width: 7px; height: 7px; background: #c08c42; border-radius: 50%; margin-top: 7px; box-shadow: 0 0 0 3px #f4ebdc; }
.index-status span:last-child, .profile-copy { display: flex; flex-direction: column; }
.index-status strong { font-size: 11px; font-weight: 700; }.index-status small { font-size: 10px; color: var(--muted); }
.profile-button { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 9px; text-align: right; padding: 7px 4px 2px; cursor: pointer; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; background: #eee8dc; color: #765a36; border-radius: 50%; font-weight: 700; }
.profile-copy { flex: 1; line-height: 1.45; }.profile-copy strong { font-size: 11px; }.profile-copy small { font-size: 10px; color: var(--muted); }.profile-chevron { width: 15px; height: 15px; color: #a7b0aa; }

.main-content { min-width: 0; padding: 0 35px 48px; }
.topbar { height: 76px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(223, 230, 224, .8); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.breadcrumb svg { width: 13px; height: 13px; transform: rotate(180deg); color: #aab4ae; }.breadcrumb strong { color: var(--ink-soft); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.demo-badge { color: #856431; background: #f9f0df; border: 1px solid #f1e4c9; border-radius: 20px; padding: 4px 10px; font-size: 10px; display: flex; align-items: center; gap: 6px; }
.demo-badge span { width: 5px; height: 5px; background: #bb8b45; border-radius: 50%; }
.icon-button { border: 0; background: transparent; display: inline-grid; place-items: center; width: 34px; height: 34px; color: #66776e; border-radius: 9px; cursor: pointer; }
.icon-button:hover { background: #e9efea; color: var(--jade); }.icon-button svg { width: 17px; height: 17px; }.icon-button.small { width: 28px; height: 28px; }
.mobile-menu { display: none; }
.view-container { max-width: 1000px; margin: 0 auto; }
.greeting { padding: 30px 0 19px; display: flex; align-items: flex-end; justify-content: space-between; }
.greeting h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.5; letter-spacing: -.7px; font-weight: 800; }
.greeting p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.greeting-date { display: flex; gap: 7px; align-items: center; color: #74837b; font-size: 11px; white-space: nowrap; padding-bottom: 5px; }.greeting-date svg { width: 15px; height: 15px; color: #a78c5d; }

.search-stage { background: var(--jade-dark); border-radius: 17px; padding: 25px 27px 20px; position: relative; overflow: hidden; color: white; box-shadow: 0 13px 28px rgba(16, 85, 68, .14); }
.search-stage::after { content: ""; position: absolute; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.075); border-radius: 50%; left: -100px; top: -160px; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 56px rgba(255,255,255,.02); pointer-events: none; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; }
.stage-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }.stage-head p { margin: 4px 0 17px; color: #c0d8cf; font-size: 11px; }
.stage-decoration { color: #b6d2c2; opacity: .74; display: flex; align-items: center; gap: 7px; font-size: 10px; margin: 3px 4px 0; }
.stage-decoration svg { width: 15px; height: 15px; }
.search-form { display: flex; position: relative; z-index: 1; align-items: center; gap: 10px; background: #fff; border-radius: 11px; padding: 5px 6px 5px 10px; box-shadow: 0 5px 15px rgba(5, 47, 36, .18); }
.search-form>svg { color: #769188; width: 18px; height: 18px; margin: 0 8px; }
.search-form input { flex: 1; width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; padding: 10px 0; font-size: 13px; min-width: 0; }
.search-form input::placeholder { color: #9ba8a1; }
.search-form button { border: 0; border-radius: 8px; min-height: 38px; background: var(--jade); color: #fff; padding: 0 19px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.search-form button:hover { background: #22836d; transform: translateY(-1px); }
.search-options { display: flex; align-items: center; gap: 7px; margin-top: 13px; position: relative; z-index: 1; }
.search-options>span { font-size: 10px; color: #bdd2c9; margin-left: 4px; }
.search-mode { border: 1px solid transparent; background: transparent; color: #bfd1c9; border-radius: 7px; padding: 4px 9px; font-size: 10px; cursor: pointer; }
.search-mode.active { color: #f4dcaa; border-color: rgba(235, 206, 145, .3); background: rgba(255,255,255,.07); }
.stage-shortcut { color: #bfd1c9; font-size: 10px; margin-right: auto; display: flex; gap: 5px; align-items: center; }.stage-shortcut kbd { color: #e0eee8; border: 1px solid rgba(255,255,255,.25); padding: 0 5px; border-radius: 4px; font-size: 9px; }

.quick-explore { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; }
.quick-explore>span { color: #8c9992; font-size: 10px; margin-left: 1px; }
.topic-chip { border: 1px solid #e5eae5; background: #fff; color: #53655b; border-radius: 18px; padding: 5px 11px; font-size: 10px; cursor: pointer; transition: all .2s; }
.topic-chip:hover { border-color: #9cbeae; color: var(--jade-dark); background: #eff7f3; }
.topic-chip .chip-mark { color: #b58950; margin-left: 5px; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; margin: 27px 0 12px; }
.section-title-row h2 { margin: 0; font-size: 15px; font-weight: 700; }.section-title-row p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.quiet-button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--jade); font-size: 10px; cursor: pointer; padding: 5px 0; }
.quiet-button svg { width: 14px; height: 14px; }
.result-list { display: grid; gap: 10px; }
.result-card { background: #fff; border: 1px solid #edf0ed; border-radius: 13px; padding: 16px 18px 14px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.result-card:hover { border-color: #cbdcd1; box-shadow: var(--shadow); transform: translateY(-1px); }
.result-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.source-label { display: flex; align-items: center; gap: 7px; min-width: 0; color: #62736b; font-size: 10px; }
.source-avatar { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 10px; font-weight: 700; flex: 0 0 auto; }
.source-telegram { background: #64889f; }.source-site { background: #a98858; }.source-eitaa { background: #51a58d; }
.source-label strong { color: #4c6056; font-weight: 600; }.source-label span:last-child { color: #96a19b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-actions { display: flex; gap: 3px; align-items: center; }
.result-actions button { border: 0; background: transparent; color: #98a39d; cursor: pointer; padding: 5px; display: grid; place-items: center; border-radius: 7px; }
.result-actions button:hover,.result-actions button.is-saved { color: var(--jade); background: #edf6f1; }.result-actions svg { width: 16px; height: 16px; }
.poem-text { white-space: pre-line; font-size: 16px; font-weight: 600; line-height: 2; color: #293d33; margin: 10px 0 9px; letter-spacing: -.2px; }
.result-summary { margin: 0; color: #7a8981; font-size: 10px; line-height: 1.8; max-width: 70ch; }
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #f0f3f0; margin-top: 13px; padding-top: 10px; }
.result-tags { display: flex; gap: 6px; flex-wrap: wrap; }.result-tag { color: #78877e; background: #f4f7f4; border-radius: 5px; padding: 2px 7px; font-size: 9px; }
.relevance { color: #698076; font-size: 9px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }.relevance span { display: block; width: 36px; height: 3px; border-radius: 2px; background: #e5ede7; }.relevance span i { display: block; height: 100%; border-radius: inherit; background: #5ba087; }
.results-empty { padding: 38px 20px; border: 1px dashed #d7e1d9; border-radius: 13px; color: var(--muted); text-align: center; background: rgba(255,255,255,.5); }.results-empty strong { display: block; color: var(--ink-soft); margin-bottom: 5px; }
.results-empty button { margin-top: 10px; border: 1px solid #d6e5db; color: var(--jade); background: #fff; border-radius: 7px; padding: 5px 12px; cursor: pointer; }

.workbench { position: sticky; top: 0; height: 100vh; min-height: 700px; padding: 28px 20px 18px; background: #f9fbf9; border-right: 1px solid #e4eae4; display: flex; flex-direction: column; }
.workbench-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }.workbench-heading>div { display: flex; align-items: center; gap: 9px; }.workbench-heading h2 { font-size: 13px; margin: 0; font-weight: 700; }
.section-mark { width: 8px; height: 8px; border-radius: 2px 2px 2px 0; background: #be9457; transform: rotate(-45deg); }
.daily-note { background: #f0f4ee; border-radius: 11px; padding: 14px 14px 12px; position: relative; overflow: hidden; }
.daily-note::before { content: ""; position: absolute; width: 50px; height: 50px; border: 1px solid rgba(115,144,122,.16); border-radius: 50%; left: -18px; bottom: -27px; }
.note-topline { display: flex; align-items: center; justify-content: space-between; color: #7c8e7c; font-size: 9px; }.note-topline svg { width: 15px; height: 15px; color: #b28a4f; }
.daily-note p { color: #324c3c; font-weight: 600; font-size: 12px; line-height: 2; margin: 11px 0 4px; position: relative; }
.note-source { color: #87958a; font-size: 9px; }
.text-action { display: flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--jade); font-size: 9px; padding: 8px 0 0; cursor: pointer; }
.text-action svg { width: 13px; height: 13px; transform: rotate(180deg); }
.workbench-section { margin-top: 25px; }.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }.section-heading h3 { margin: 0; font-size: 11px; font-weight: 700; }.section-heading button { border: 0; background: transparent; color: var(--jade); font-size: 9px; cursor: pointer; }
.mini-card { width: 100%; border: 0; background: transparent; padding: 7px 2px; display: flex; align-items: center; gap: 9px; text-align: right; cursor: pointer; border-radius: 8px; }
.mini-card:hover,.folder-row:hover { background: #f0f4f0; }
.mini-card-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; }
.icon-coral { background: #f7ecea; color: #b46b62; }.icon-blue { background: #eaf0f3; color: #64839a; }.icon-amber { background: #f6f0e5; color: #b18444; }
.mini-card>span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.45; }.mini-card strong { font-size: 10px; font-weight: 600; }.mini-card small { font-size: 9px; color: #8b9990; }.mini-card>svg { width: 13px; height: 13px; color: #aeb8b1; }
.folder-shortcuts { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 17px; }
.folder-row { width: 100%; border: 0; background: transparent; border-radius: 8px; display: flex; align-items: center; gap: 9px; padding: 6px 3px; text-align: right; cursor: pointer; }
.folder-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #f4eee2; color: #b28b4f; }.folder-icon svg { width: 15px; height: 15px; }.folder-purple { background: #f0edf5; color: #81749e; }
.folder-row>span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.45; flex: 1; }.folder-row strong { font-size: 10px; font-weight: 600; }.folder-row small { font-size: 9px; color: #8c9991; }.row-arrow { width: 13px; height: 13px; color: #aeb8b1; }
.workbench-footer { margin-top: auto; border-top: 1px solid #e7ece7; padding-top: 14px; color: #8a978e; font-size: 9px; display: flex; align-items: center; gap: 6px; }.footer-spark { color: #ba8f51; font-size: 14px; }

.page-heading { padding: 29px 0 19px; }.page-heading h1 { margin: 0; font-size: 26px; letter-spacing: -.6px; }.page-heading p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 7px 0 17px; }
.filter-select,.secondary-button,.primary-button { border: 1px solid #dfe7e0; border-radius: 8px; min-height: 36px; background: #fff; color: #52635a; padding: 0 12px; cursor: pointer; font-size: 11px; }
.secondary-button { display: inline-flex; align-items: center; gap: 6px; }.secondary-button svg,.primary-button svg { width: 15px; height: 15px; }
.primary-button { display: inline-flex; align-items: center; gap: 7px; background: var(--jade); border-color: var(--jade); color: white; padding: 0 14px; }.primary-button:hover { background: var(--jade-dark); }
.file-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.file-card { background: white; border: 1px solid #e8eee8; border-radius: 12px; padding: 16px; text-align: right; cursor: pointer; transition: border .2s, transform .2s; }.file-card:hover { border-color: #a9c7b5; transform: translateY(-2px); }
.file-card-top { display: flex; align-items: center; justify-content: space-between; }.file-cover { width: 36px; height: 36px; border-radius: 10px 10px 10px 4px; display: grid; place-items: center; color: #986f37; background: #f7eedc; }.file-cover svg { width: 18px; height: 18px; }.cover-green { background: #e8f1e9; color: #578065; }.cover-rose { background: #f6eaea; color: #b16c67; }.cover-blue { background: #e9eff3; color: #637f95; }
.file-card h3 { font-size: 13px; margin: 13px 0 2px; }.file-card p { margin: 0; color: #829088; font-size: 10px; }.file-card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eef2ee; margin-top: 13px; padding-top: 9px; color: #89968e; font-size: 9px; }
.file-card-foot span:last-child { color: var(--jade); }
.filter-row { display: flex; gap: 6px; overflow-x: auto; padding: 1px 0 10px; }.filter-pill { border: 1px solid #e0e7e1; background: #fff; color: #74837a; padding: 5px 11px; font-size: 10px; border-radius: 18px; white-space: nowrap; cursor: pointer; }.filter-pill.active { border-color: #b8d3c3; background: #eaf4ee; color: #1b654e; }
.cards-list { display: grid; gap: 10px; }.personal-card { background: #fff; border: 1px solid #e8eee8; border-radius: 12px; padding: 15px 17px; }.personal-card-head { display: flex; justify-content: space-between; align-items: center; }.personal-card h3 { margin: 10px 0 4px; font-size: 14px; }.personal-card p { margin: 0; color: #52655a; font-size: 12px; line-height: 2; }.personal-card-foot { display: flex; gap: 6px; margin-top: 11px; }
.type-label { color: #7a684b; background: #f7f0e4; border-radius: 5px; padding: 2px 7px; font-size: 9px; }.type-label.type-blue { color: #5d788b; background: #edf2f4; }.type-label.type-red { color: #a5655f; background: #f8eded; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }.source-card { background: white; border: 1px solid #e7ede7; border-radius: 12px; padding: 16px; }.source-card-top { display: flex; gap: 10px; align-items: center; }.source-card h3 { font-size: 12px; margin: 0; }.source-card p { color: #819087; font-size: 10px; margin: 2px 0 0; }.source-card .source-state { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; color: #849188; font-size: 9px; }.source-state strong { color: #9a773e; font-weight: 600; }
.source-list-toolbar { margin-top: 25px; }.source-registry { min-height: 100px; }.source-status { display: flex; flex-direction: column; gap: 2px; }.source-status strong { color: #886b3e !important; }.source-status small { color: #849188; font-size: 9px; }.source-state .secondary-button { min-height: 29px; font-size: 9px; padding: 0 8px; }.source-state .secondary-button svg { width: 13px; height: 13px; }
.source-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }.source-actions .secondary-button:disabled { opacity: .65; cursor: wait; }
.source-card .source-state { flex-wrap: wrap; gap: 8px; }
#historyAll, #historyResume { width: auto; padding: 0; margin-inline-end: 6px; accent-color: var(--jade); }
.indexing-overview { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 14px; padding: 14px; background: #fff; border: 1px solid #e7ede7; border-radius: 12px; }.indexing-overview>div:not(.indexing-top-concepts) { display: flex; flex-direction: column; gap: 3px; }.indexing-overview strong { color: var(--jade); font-size: 17px; }.indexing-overview span { color: #78877e; font-size: 9px; }.indexing-top-concepts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding-top: 9px; border-top: 1px solid #edf1ed; }.source-metrics { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 11px; color: #77877d; font-size: 9px; }.source-concepts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 9px; color: #6f7e75; font-size: 9px; }.telegram-connection-state { display: block; margin-top: 9px; color: #5d7867; font-size: 9px; line-height: 1.8; }.ai-consent-option { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px; border: 1px solid #e5ebe5; border-radius: 9px; cursor: pointer; }.ai-consent-option input { margin-top: 3px; accent-color: var(--jade); }.ai-consent-option span { display: grid; gap: 4px; }.ai-consent-option strong { font-size: 11px; }.ai-consent-option small { color: #75847b; font-size: 10px; line-height: 1.8; }
.assistant-layout { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 16px; align-items: start; }.assistant-panel { background: #fff; border: 1px solid #e8eee8; border-radius: 14px; overflow: hidden; }.assistant-intro { padding: 19px 20px 14px; background: #edf5f0; }.assistant-intro h2 { font-size: 15px; margin: 0; }.assistant-intro p { margin: 4px 0 0; color: #73847a; font-size: 10px; }.chat-messages { min-height: 190px; max-height: 330px; overflow-y: auto; padding: 16px 18px; display: grid; align-content: start; gap: 12px; }.chat-message { max-width: 90%; padding: 10px 12px; background: #f3f6f3; color: #53645a; border-radius: 11px 11px 3px 11px; font-size: 11px; line-height: 1.9; }.chat-message.user { margin-right: auto; background: var(--jade); color: #fff; border-radius: 11px 11px 11px 3px; }.chat-form { display: flex; gap: 8px; border-top: 1px solid #edf1ed; padding: 12px; }.chat-form input { flex: 1; min-width: 0; border: 1px solid #e4ebe4; border-radius: 8px; padding: 8px 11px; outline: 0; font-size: 11px; }.chat-form button { width: 36px; border: 0; border-radius: 8px; display: grid; place-items: center; background: var(--jade); color: white; cursor: pointer; }.chat-form button svg { width: 16px; height: 16px; transform: rotate(180deg); }.assistant-suggestions { background: white; border: 1px solid #e8eee8; border-radius: 12px; padding: 13px; }.assistant-suggestions h3 { font-size: 11px; margin: 0 0 8px; }.suggestion { display: block; width: 100%; text-align: right; border: 0; border-radius: 7px; background: transparent; color: #708077; padding: 7px; font-size: 10px; cursor: pointer; }.suggestion:hover { background: #f1f5f1; color: var(--jade); }
.settings-list { background: #fff; border: 1px solid #e7ede7; border-radius: 12px; overflow: hidden; }.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid #edf1ed; }.setting-row:last-child { border-bottom: 0; }.setting-row>span { display: flex; flex-direction: column; }.setting-row strong { font-size: 11px; }.setting-row small { color: #849188; font-size: 9px; }.setting-row select { border: 1px solid #e1e8e2; border-radius: 7px; background: #fff; color: #56675d; padding: 5px 8px; font-size: 10px; }
.info-callout { background: #faf4e9; border: 1px solid #f1e6d2; border-radius: 9px; padding: 12px 14px; color: #826b48; font-size: 10px; line-height: 1.9; margin-top: 14px; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; background: rgba(15, 35, 28, .38); backdrop-filter: blur(3px); }.dialog-backdrop[hidden] { display: none; }
.dialog { width: min(460px, 100%); background: #fff; border-radius: 15px; box-shadow: 0 25px 80px rgba(12, 42, 30, .2); padding: 22px; animation: dialog-in .2s ease-out; }.dialog h2 { font-size: 17px; margin: 0 0 6px; }.dialog>p { font-size: 11px; color: #7d8b83; margin: 0 0 15px; }.dialog label { display: block; font-size: 10px; color: #5e6f65; margin: 10px 0 5px; }.dialog input,.dialog textarea,.dialog select { width: 100%; border: 1px solid #dfe7e0; border-radius: 8px; padding: 9px 10px; outline: 0; color: var(--ink); background: #fff; font-size: 11px; }.dialog textarea { resize: vertical; min-height: 85px; }.dialog-actions { display: flex; justify-content: flex-start; gap: 8px; margin-top: 17px; }.dialog-x { float: left; }.dialog-note { font-size: 9px; color: #87948b; line-height: 1.8; margin-top: 10px; }.toast-region { position: fixed; z-index: 30; bottom: 22px; right: 50%; transform: translateX(50%); display: grid; gap: 8px; pointer-events: none; }.toast { background: #183d30; color: white; border-radius: 9px; padding: 9px 15px; box-shadow: 0 8px 22px rgba(10,40,28,.2); font-size: 11px; animation: toast-in .2s ease-out; }.toast.error { background: #813f39; }
.facet-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 48vh; overflow-y: auto; padding: 2px; }.facet-group { min-width: 0; border: 1px solid #e3ebe4; border-radius: 10px; padding: 8px; }.facet-group summary { display: flex; justify-content: space-between; gap: 8px; color: #345b48; font-size: 10px; font-weight: 700; cursor: pointer; }.facet-group summary span { color: #849188; font-size: 9px; font-weight: 400; }.dialog .facet-group .facet-search { margin: 8px 0; padding: 7px; font-size: 10px; }.facet-option-list { display: grid; gap: 3px; max-height: 145px; overflow-y: auto; }.dialog .facet-option-list .facet-option { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 0; padding: 5px 3px; color: #4c6154; cursor: pointer; }.dialog .facet-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--jade); }.facet-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.facet-option small,.facet-options-empty { color: #8a968e; font-size: 9px; }.facet-interpretation-warning { display: block; color: #8b6943; margin-top: 5px; }
.mobile-tabbar { display: none; }
.search-page .search-stage { margin-top: 3px; }.search-page .result-list { margin-top: 13px; }
.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; }
.search-experiences { display: flex; flex-wrap: wrap; gap: 6px; background: #eaf1ec; border-radius: 12px; padding: 5px; margin-bottom: 16px; }
.search-experiences button { flex: 1 1 180px; border: 0; border-radius: 9px; background: transparent; padding: 11px 15px; color: #536e5f; font: inherit; font-size: 12px; cursor: pointer; }
.search-experiences button.active { background: white; color: #175d47; box-shadow: 0 2px 6px #193e3010; font-weight: 700; }
.facet-workspace { border: 1px solid #dfe9e2; border-radius: 14px; padding: 16px; background: white; margin-bottom: 16px; }
.facet-workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.facet-workspace h2 { font-size: 15px; margin: 0; }.facet-workspace p { font-size: 11px; color: #6b7f72; line-height: 1.9; }
.facet-combination { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; padding: 10px 0 15px; font-size: 11px; }.facet-combination small { flex-basis: 100%; color: #728477; line-height: 1.8; }
.facet-picker-inline { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: none; overflow: visible; align-items: start; gap: 10px; }
.facet-picker-inline .facet-group { background: #fbfdfb; padding: 12px; }.facet-picker-inline summary { min-height: 30px; align-items: center; font-size: 12px; }
.facet-workspace input[type=search],.facet-workspace input[type=text] { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #d5e2d9; border-radius: 7px; padding: 9px; color: var(--ink); background: white; font: inherit; font-size: 12px; }
.facet-picker-inline .facet-search { margin: 8px 0; }.facet-picker-inline .facet-option-list { max-height: 210px; }
.facet-picker-inline .facet-option { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 7px; align-items: center; min-height: 36px; margin: 0; font-size: 11px; color: #385b46; cursor: pointer; padding: 3px; }
.facet-picker-inline input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--jade); margin: 0; }.facet-picker-inline .facet-option:has(input:checked) { background: #e8f4ec; border-radius: 6px; }
.facet-suggestion-box { margin-top: 15px; border-top: 1px solid #e3ebe5; padding-top: 12px; }.facet-suggestion-box summary { cursor: pointer; font-size: 12px; color: #38644c; }.facet-suggestion-box label { font-size: 11px; }
.facet-prompt-row { display: flex; gap: 8px; margin-top: 5px; }.facet-prompt-row button { flex-shrink: 0; }.facet-suggestions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }.facet-suggestion { display: flex; align-items: center; gap: 2px; border: 1px solid #e1e9e3; border-radius: 8px; padding: 3px; }
.search-experiences button:focus-visible,.facet-workspace input:focus-visible,.facet-workspace summary:focus-visible,.facet-workspace button:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }
@media (max-width: 1000px) { .facet-picker-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facet-picker-inline { grid-template-columns: minmax(0, 1fr); }.facet-workspace { padding: 12px; }.facet-prompt-row { flex-direction: column; }.facet-workspace input[type=search],.facet-workspace input[type=text] { font-size: 16px; } }
.tag-link { border: 1px solid #dce6de; cursor: pointer; font: inherit; font-size: 10px; min-height: 30px; padding: 4px 9px; transition: background .15s, border-color .15s; }
.tag-link:hover,.tag-link.active { color: #175d47; background: #e8f4ec; border-color: #98bfaa; }
.tag-link:focus-visible,.filter-pill:focus-visible,.selection-toolbar button:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }
.active-search-filters,.selection-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.active-search-filters:not(:empty) { margin-bottom: 12px; }
.active-search-filters svg { width: 13px; height: 13px; vertical-align: middle; }
.selection-toolbar { background: #edf5ef; border: 1px solid #d7e7dc; border-radius: 10px; padding: 12px; font-size: 11px; }
.selection-toolbar label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.selection-toolbar .primary-button { margin-inline-start: auto; }
.selection-toolbar button:disabled { opacity: .5; cursor: not-allowed; }
.result-select { display: grid; place-items: center; min-width: 32px; min-height: 32px; cursor: pointer; }
.result-select input,.selection-toolbar input { accent-color: var(--jade); width: 17px; height: 17px; cursor: pointer; }
.show-more { display: block; margin: 16px auto; }
.assignment-preview { border: 1px solid #dfe7e0; background: #f5f8f5; border-radius: 9px; padding: 12px; margin-top: 15px; font-size: 11px; overflow-wrap: anywhere; }
.assignment-preview div { display: flex; align-items: center; gap: 6px; margin: 5px 0; }
.assignment-preview svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--jade); }
.assignment-success { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: #175d47; background: #f1f8f3; border-radius: 9px; padding: 10px 12px; margin-top: 10px; font-size: 11px; }
.assignment-success span { display: inline-flex; align-items: center; gap: 6px; }
.assignment-success svg { width: 15px; height: 15px; flex-shrink: 0; }
.bot-channel-list { max-height: 280px; overflow-y: auto; margin-top: 12px; }
.dialog .bot-channel-option { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #dfe7e0; border-radius: 9px; cursor: pointer; }
.dialog .bot-channel-option[hidden] { display: none; }
.dialog .bot-channel-option input,.dialog #privateChannelsOnly { width: 18px; height: 18px; accent-color: var(--jade); }
.bot-channel-option span { display: grid; gap: 4px; }
.bot-channel-option small { color: #74837a; overflow-wrap: anywhere; }
.bot-channel-option:has(input:checked) { background: #eaf4ee; border-color: #98bfaa; }
.bot-channel-option:has(input:disabled) { opacity: .6; cursor: default; }
.channel-discovery-help { border: 1px solid #d5e6da; background: #f3f8f4; border-radius: 10px; padding: 14px; margin: 12px 0; color: #426251; font-size: 11px; line-height: 1.9; }
.channel-discovery-help strong { color: #1c5e47; }
.channel-discovery-help p { margin: 6px 0; }
.channel-discovery-help ol { margin: 4px 0; padding-inline-start: 20px; }
.channel-discovery-error { color: #8a463e; background: #fff3f1; padding: 8px; border-radius: 7px; overflow-wrap: anywhere; }
.channel-poll-diagnostics { display: grid; gap: 4px; background: #fff; border: 1px solid #e1ebe3; padding: 8px 10px; border-radius: 7px; margin: 8px 0; overflow-wrap: anywhere; }
.dialog { max-height: 85vh; overflow-y: auto; }
.personal-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
.card-source-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 11px; }
.card-source-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--jade); }
.card-source-links svg { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .selection-toolbar .primary-button { width: 100%; margin-inline-start: 0; }
  .result-meta { flex-wrap: wrap; gap: 8px; }
}
.section-empty { text-align: center; color: #819087; padding: 40px 18px; border: 1px dashed #dce5dd; border-radius: 12px; background: rgba(255,255,255,.45); }.section-empty svg { width: 28px; height: 28px; color: #9cb1a3; display: block; margin: 0 auto 8px; }.section-empty strong { display: block; color: #53665b; margin-bottom: 3px; font-size: 12px; }.section-empty button { margin-top: 10px; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(7px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.indexing-overview { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.result-title { margin: 10px 0 0; font-size: 13px; color: #24382e; line-height: 1.7; }
.result-byline { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; color: #6f8277; font-size: 10px; }
.full-text { margin: 0 0 8px; }.full-text summary { cursor: pointer; color: var(--jade); font-size: 10px; width: max-content; }.full-text summary:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; border-radius: 4px; }
.search-insight { display: grid; gap: 9px; margin-top: 12px; padding: 12px 14px; background: #fff; border: 1px solid #e3ebe5; border-radius: 12px; color: #4f6257; font-size: 11px; line-height: 1.8; }.search-insight.is-muted { color: #826b48; background: #faf4e9; border-color: #f1e6d2; }.search-insight .secondary-button { justify-self: start; }
.insight-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }.insight-row small { color: #84938a; font-size: 9px; margin-inline-start: auto; }
.insight-dot { display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: var(--jade); animation: insight-pulse 1s ease-in-out infinite alternate; }
@keyframes insight-pulse { from { opacity: .35; } to { opacity: 1; } }
.route-badge { padding: 2px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; color: #176f5d; background: #e5f2ec; }.route-badge.route-ai_answer { color: #6a4fa0; background: #efeaf8; }.route-badge.route-ai_expand { color: #8a6534; background: #f8efe0; }
.ai-answer { padding: 11px 13px; border-radius: 10px; background: #f3f8f5; border-inline-start: 3px solid var(--jade); }.ai-answer strong { font-size: 10px; color: var(--jade); }.ai-answer p { margin: 4px 0 0; white-space: pre-line; }
.review-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; margin-top: 14px; padding: 14px; background: #fff; border: 1px solid #e7ede7; border-radius: 12px; }.review-controls .ai-consent-option { margin: 6px 0; }.review-controls .ai-consent-option.is-disabled { opacity: .6; cursor: not-allowed; }.review-controls .dialog-note { grid-column: 1 / -1; }
.review-field { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 11px; color: #4f6257; }.review-field select { flex: 1; max-width: 420px; border: 1px solid #e1e8e2; border-radius: 7px; background: #fff; color: #3f5247; padding: 7px 9px; font-size: 11px; }
.review-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.review-progress { position: relative; margin-top: 12px; height: 26px; border-radius: 8px; background: #eef3ef; overflow: hidden; }.review-progress span { position: absolute; inset-block: 0; inset-inline-start: 0; background: #cfe5da; transition: width .3s ease; }.review-progress small { position: relative; display: block; text-align: center; line-height: 26px; font-size: 10px; color: #35503f; }
.review-list { display: grid; gap: 10px; }
.review-card { padding: 14px; background: #fff; border: 1px solid #e7ede7; border-radius: 12px; }.review-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }.review-card-head h3 { margin: 0; font-size: 12px; }.review-card-head small { color: #84938a; font-size: 9px; }
.review-changes { margin: 9px 0 0; padding-inline-start: 18px; color: #4f6257; font-size: 10px; line-height: 1.9; }
.review-error { color: #a5655f; font-size: 10px; }
.review-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }.review-compare>div { min-width: 0; padding: 10px; border-radius: 9px; background: #f7f9f7; }.review-compare>div:last-child { background: #f0f7f3; }.review-compare strong { font-size: 10px; color: #5a6c61; }.review-compare .poem-text { font-size: 13px; max-height: 260px; overflow: auto; overflow-wrap: anywhere; }.review-compare small { display: block; margin-top: 6px; color: #6f8277; font-size: 9px; }
@media (max-width: 720px) { .review-controls, .review-compare { grid-template-columns: 1fr; }.review-field { flex-direction: column; align-items: stretch; }.review-field select { max-width: none; }.insight-row small { margin-inline-start: 0; width: 100%; } }@media (min-width: 1450px) { .main-content { padding-right: 48px; padding-left: 48px; } }
@media (max-width: 1190px) { .app-shell { grid-template-columns: 225px minmax(0,1fr) 260px; }.main-content { padding-right: 24px; padding-left: 24px; }.nav-rail { padding-right: 15px; padding-left: 15px; }.workbench { padding-right: 15px; padding-left: 15px; } }
@media (max-width: 1020px) { .app-shell { grid-template-columns: 220px minmax(0,1fr); }.workbench { display: none; }.main-content { padding-right: 30px; padding-left: 30px; } }
@media (max-width: 720px) {
  .indexing-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 11px; }.indexing-top-concepts { grid-column: 1 / -1; }.source-metrics { gap: 6px 9px; }.source-concepts { line-height: 1.8; }
  body { padding-bottom: 66px; }.app-shell { display: block; min-height: 100vh; }.nav-rail { position: fixed; top: 0; bottom: 0; right: 0; width: min(290px, 83vw); height: auto; min-height: 0; box-shadow: -20px 0 50px rgba(21, 45, 34, .12); transform: translateX(105%); transition: transform .24s ease; }.nav-rail.open { transform: translateX(0); }.main-content { padding: 0 17px 35px; }.topbar { height: 59px; }.breadcrumb { font-size: 10px; }.topbar-actions { gap: 5px; }.mobile-menu { display: inline-grid; }.demo-badge { font-size: 9px; padding: 3px 8px; }.greeting { padding: 21px 0 14px; align-items: flex-start; flex-direction: column; gap: 3px; }.greeting h1 { font-size: 23px; }.greeting p { font-size: 10px; }.greeting-date { display: none; }.search-stage { padding: 18px 15px 14px; border-radius: 13px; }.stage-head h2 { font-size: 15px; }.stage-head p { font-size: 10px; margin-bottom: 13px; }.stage-decoration { font-size: 9px; }.search-form { gap: 5px; }.search-form>svg { margin: 0 5px; }.search-form input { font-size: 11px; }.search-form button { min-height: 35px; padding: 0 12px; font-size: 10px; }.search-options { gap: 2px; flex-wrap: wrap; }.search-options>span { font-size: 9px; }.search-mode { padding: 4px 7px; font-size: 9px; }.stage-shortcut { display: none; }.quick-explore { margin-top: 14px; gap: 6px; }.quick-explore>span { width: 100%; }.topic-chip { font-size: 9px; padding: 4px 9px; }.section-title-row { margin-top: 22px; }.section-title-row h2 { font-size: 13px; }.section-title-row p { font-size: 9px; }.result-list { gap: 8px; }.result-card { padding: 12px 12px 10px; border-radius: 11px; }.source-label { font-size: 9px; gap: 5px; }.source-avatar { width: 21px; height: 21px; }.result-actions button { padding: 4px; }.poem-text { font-size: 14px; margin: 8px 0 6px; }.result-summary { font-size: 9px; }.result-meta { margin-top: 9px; padding-top: 8px; }.result-tag { font-size: 8px; }.relevance { font-size: 8px; }.relevance span { width: 25px; }.page-heading { padding: 21px 0 14px; }.page-heading h1 { font-size: 22px; }.page-heading p { font-size: 10px; }.file-grid,.source-grid { grid-template-columns: 1fr; gap: 8px; }.file-card { padding: 13px; }.file-card h3 { margin-top: 9px; }.assistant-layout { grid-template-columns: 1fr; }.assistant-suggestions { order: -1; }.assistant-suggestions h3 { margin-bottom: 5px; }.assistant-suggestions .suggestion { display: inline-block; width: auto; margin: 2px; background: #f4f7f4; }.chat-messages { min-height: 150px; }.page-toolbar { margin-bottom: 12px; }.mobile-tabbar { position: fixed; z-index: 5; bottom: 0; right: 0; left: 0; height: 62px; display: flex; justify-content: space-around; align-items: center; background: rgba(255,255,255,.97); border-top: 1px solid #e3eae3; padding-bottom: env(safe-area-inset-bottom); }.mobile-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 20%; height: 100%; border: 0; background: transparent; color: #89958e; cursor: pointer; font-size: 8px; }.mobile-tabbar svg { width: 18px; height: 18px; }.mobile-tabbar button.active { color: var(--jade); font-weight: 700; }.toast-region { bottom: 76px; width: max-content; max-width: calc(100vw - 28px); }.dialog-backdrop { align-items: end; padding: 0; }.dialog { border-radius: 17px 17px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); width: 100%; max-height: 88vh; overflow-y: auto; }.breadcrumb strong { max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.result-actions a.source-link { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 999px; color: var(--jade); background: var(--jade-light); font-size: 10px; font-weight: 700; text-decoration: none; }
.result-actions a.source-link:hover, .result-actions a.source-link:focus-visible { background: #d6ece4; }
.result-actions a.source-link svg { width: 13px; height: 13px; }
.curated-badge { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; background: var(--brass-light); color: #8a6224; font-size: 10px; font-weight: 700; vertical-align: middle; }
.curated-badge svg { width: 11px; height: 11px; }
.edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.edit-history-box { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.edit-history { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.edit-history li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.edit-history button { padding: 4px 10px; font-size: 10px; }
.audit-card { margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 10px; }
.audit-card h2 { margin: 0 0 4px; font-size: 15px; }
.audit-card p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.audit-learned { color: var(--muted); }
.audit-result { display: grid; gap: 8px; }
@media (max-width: 640px) {
  .edit-grid { grid-template-columns: 1fr; }
  .result-actions a.source-link span { display: none; }
}
.provider-list { display: grid; gap: 10px; margin-bottom: 12px; }
.provider-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #e7ede7; border-radius: 12px; padding: 14px 16px; }
.provider-card.is-active { border-color: #7fb394; box-shadow: 0 0 0 2px #e4f2e9; }
.provider-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.provider-main small { color: #849188; font-size: 10px; overflow-wrap: anywhere; }
.provider-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.provider-toolbar { margin-bottom: 18px; }
.provider-result { font-size: 10px; }
.provider-result.is-good { color: #2f7a4f; }
.provider-result.is-bad { color: #b4412f; }
.provider-dialog-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.provider-dialog-tools #provResult { flex-basis: 100%; }