:root {
  color-scheme: light;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: #20221f;
  background: #f7f7f4;
  --bg: #f7f7f4;
  --sidebar: #eaeae5;
  --surface: #fff;
  --text: #20221f;
  --muted: #62655c;
  --line: #e3e4dc;
  --accent: #d3fb78;
  --on-accent: #20221f;
  --tint: color-mix(in srgb, var(--accent) 14%, #fff);
  --chart: color-mix(in srgb, var(--accent) 60%, #364124);
  --radius: 13px;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #4b6b2733; outline-offset: 2px; }
a { color: inherit; }
img { max-width: 100%; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.loading { padding: 35px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100svh; }
.sidebar { background: var(--sidebar); border-right: 1px solid #ddded5; height: 100svh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 29px 17px 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 740; font-size: 23px; letter-spacing: -.85px; }
.sidebar .brand { margin: 0 10px 48px; align-self: start; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; }
.sidebar-top > .icon-btn, .mobile-header { display: none; }
.brand-mark { width: 36px; height: 36px; background: var(--accent); color: var(--on-accent); border-radius: 10px; display: grid; place-items: center; }
.brand-mark .icon { width: 24px; height: 24px; stroke-width: 1.65; }
.nav { display: grid; gap: 5px; overflow-y: auto; }
.nav-feed-group { min-width: 0; }
.nav-link.nav-custom-feed, .nav-link.nav-sub-link { min-height: 36px; margin-left: 10px; font-size: 13px; }
.nav-feed-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link .nav-feed-disclosure { width: 14px; height: 14px; margin-inline-start: auto; }
.nav-count:not(:empty) + .nav-feed-disclosure { margin-inline-start: 0; }
.nav-link[aria-expanded=false] .nav-feed-disclosure, .nav-settings:not([open]) .nav-feed-disclosure { transform: rotate(-90deg); }
.nav-custom-feeds > .icon-btn { margin: 2px 0 1px 16px; }
.nav-custom-feed .icon, .nav-sub-link .icon { width: 15px; height: 15px; }
.nav-settings { min-width: 0; }
.nav-settings summary { list-style: none; cursor: pointer; }
.nav-settings summary::-webkit-details-marker { display: none; }
.nav-link { min-height: 44px; display: flex; align-items: center; gap: 11px; color: #51544b; padding: 0 12px; border-radius: 8px; text-decoration: none; font-weight: 560; font-size: 14px; }
.nav-link:hover { background: #f1f1ec; color: var(--text); }
.nav-link[aria-current] { background: #fff; box-shadow: 0 1px 2px #2528200a; color: var(--text); font-weight: 680; }
.nav-link[aria-current] .icon { color: #30382a; }
.nav-link.is-drop-target { background: var(--tint); box-shadow: inset 0 0 0 2px #536e40; color: var(--text); }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 720; padding: 3px 7px; line-height: 1; background: var(--accent); color: var(--on-accent); border-radius: 5px; }
.nav-count:empty { display: none; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #d9dbd3; padding: 16px 4px 1px 7px; display: flex; align-items: center; gap: 9px; }
.avatar { display: grid; place-items: center; border-radius: 9px; width: 33px; height: 33px; background: #dddeda; color: #464941; flex: none; }
.account { min-width: 0; display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.account strong { color: var(--text); font-size: 13px; }
.sidebar-bottom button { margin-left: auto; }
.topbar { height: 67px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(24px, 4.3vw, 70px); }
.breadcrumb, .top-date { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 550; }
.breadcrumb .icon, .top-date .icon { width: 15px; height: 15px; }
.breadcrumb strong { color: var(--text); font-weight: 650; }
.workspace { width: min(100%, 1190px); padding: 43px clamp(24px, 4.3vw, 70px) 65px; margin: 0 auto; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-title h1 { min-width: 0; overflow-wrap: anywhere; }
.page-title:has(.feed-heading-actions .btn) { flex-wrap: wrap; }
.feed-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; flex: none; max-width: 100%; margin-inline-start: auto; }
.feed-heading-actions .btn { font-size: 12px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(38px, 4.6vw, 57px); line-height: 1.04; font-weight: 690; letter-spacing: -.07em; }
.btn { border: 1px solid #dfdfd8; border-radius: 8px; min-height: 38px; background: #fff; padding: 7px 12px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; text-decoration: none; font-size: 13px; font-weight: 625; white-space: nowrap; }
.btn:hover { border-color: #a7ab9c; background: #fafbf8; }
.btn .icon { width: 15px; height: 15px; }
.btn-primary, .btn-primary:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn-primary:hover { filter: saturate(1.12) brightness(.96); }
.btn-danger { color: #9a3025; }
.icon-btn { background: transparent; border: 1px solid transparent; border-radius: 8px; color: #5e6157; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; flex: none; }
.icon-btn:hover, .icon-btn[aria-pressed=true] { color: var(--text); background: var(--tint); border-color: var(--line); }
.icon-btn[aria-pressed=true] .icon { fill: color-mix(in srgb, var(--accent) 65%, white); }
.toolbar { margin: 28px 0 20px; display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.search { display: flex; gap: 9px; align-items: center; position: relative; flex: 1 1 270px; }
.search > .icon { position: absolute; left: 12px; color: var(--muted); width: 17px; height: 17px; pointer-events: none; }
.field, .select { height: 40px; border: 1px solid #dfdfd8; border-radius: 8px; background: #fff; color: var(--text); width: 100%; padding: 0 12px; font-size: 13px; }
.search .field { padding-left: 38px; }
.field::placeholder { color: #73766d; }
.filter-select { position: relative; display: flex; align-items: center; max-width: min(225px, 100%); }
.filter-select .icon { width: 15px; height: 15px; position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.filter-select .chevron { right: 9px; left: auto; width: 13px; }
.filter-select .select { appearance: none; min-width: 131px; padding: 0 30px 0 33px; text-overflow: ellipsis; font-weight: 590; }
.date-filter { position: relative; }
.date-filter > summary { list-style: none; min-height: 40px; }
.date-filter > summary::-webkit-details-marker { display: none; }
.date-filter[open] > summary { border-color: #a7ab9c; }
.date-popover { position: absolute; top: 46px; right: 0; z-index: 2; display: grid; gap: 10px; background: #fff; padding: 14px; width: 245px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px #22291b16; }
.date-popover label { display: grid; gap: 4px; font-size: 12px; font-weight: 630; }
.date-popover .actions { justify-content: space-between; }
.tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #dedfd7; margin-bottom: 21px; }
.tabs { display: flex; gap: 21px; }
.tab { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 1px 9px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; font-weight: 620; white-space: nowrap; }
.tab[aria-pressed=true] { border-bottom-color: var(--chart); color: var(--text); }
.tab-count { font-size: 11px; font-weight: 690; color: #54574e; background: #e9eae4; padding: 2px 6px; border-radius: 5px; }
.tab[aria-pressed=true] .tab-count { background: var(--accent); color: var(--on-accent); }
.order { color: var(--muted); font-size: 12px; padding-bottom: 8px; white-space: nowrap; }
.order .icon { width: 14px; height: 14px; margin-right: 3px; }
.feed { display: grid; gap: 15px; }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; box-shadow: 0 2px 4px #292c2104; }
.card { padding: 19px 22px 15px; }
.card-top, .card-actions, .section-heading, .actions { display: flex; gap: 9px; align-items: center; }
.card-top { justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.card-top > .card-meta { margin-inline-end: auto; }
.card-top > [draggable=true] { cursor: grab; }
.card-top > [draggable=true]:active { cursor: grabbing; }
.card-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--muted); font-size: 11px; font-weight: 570; line-height: 1.4; }
.card-meta .icon { width: 13px; height: 13px; }
.card-feed { padding: 2px 6px; border-radius: 5px; background: var(--tint); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.card-feed:hover { text-decoration: underline; }
.source-dot { width: 7px; height: 7px; background: var(--chart); border-radius: 50%; }
.dot-separator { color: #8b8e83; }
.topic { font-size: 11px; font-weight: 620; color: #52554f; background: #f1f2ed; padding: 4px 8px; border-radius: 5px; overflow-wrap: anywhere; }
.card h2 { font-weight: 680; font-size: clamp(19px, 2.25vw, 26px); letter-spacing: -.043em; line-height: 1.23; overflow-wrap: anywhere; }
.card-description { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.55; overflow-wrap: anywhere; }
.card-text { color: #464a40; white-space: pre-wrap; line-height: 1.55; font-size: 13px; margin-top: 12px; overflow-wrap: anywhere; }
.card-actions { justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.card-actions [data-action="download-card"] { margin-inline-end: auto; }
.card-actions .btn { min-height: 33px; font-size: 12px; }
.card-actions .icon-btn { height: 33px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr)); gap: 8px; margin-top: 15px; }
.metric { padding: 10px 12px; border: 1px solid #ecede7; border-radius: 8px; background: #f8f9f5; min-width: 0; }
.metric:first-child { background: var(--tint); }
.metric-label, .metric-detail { font-size: 11px; color: #5e6257; line-height: 1.35; overflow-wrap: anywhere; }
.metric dd { margin: 0; }
.metric strong { display: block; font-size: 22px; line-height: 1.12; letter-spacing: -.05em; font-weight: 690; margin: 4px 0; overflow-wrap: anywhere; }
.card-tables { display: grid; gap: 12px; margin-top: 15px; min-width: 0; }
.card-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.card-table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.45; text-align: left; }
.card-table caption { padding: 10px 12px; font-weight: 650; text-align: left; }
.card-table th, .card-table td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; min-width: 95px; }
.card-table th { background: #f8f9f5; color: var(--muted); font-weight: 650; }
.card-table td { color: var(--text); }
.card-lists { display: grid; gap: 12px; margin-top: 15px; }
.card-list { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; line-height: 1.5; }
.card-list h3 { font-size: 13px; font-weight: 650; }
.card-list ul, .card-list ol { margin: 8px 0 0; padding-left: 20px; }
.card-list li { overflow-wrap: anywhere; }
.card-list li + li { margin-top: 5px; }
.card-checklist ul { list-style: none; padding-left: 0; }
.card-checklist label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.card-checklist input { flex: none; margin: 3px 0 0; accent-color: var(--chart); }
.card-checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.charts { display: grid; gap: 9px; margin-top: 12px; }
.chart { margin: 0; padding: 10px 12px 7px; border: 1px solid #ecede7; border-radius: 8px; }
.chart figcaption { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.plot { display: block; width: 100%; height: clamp(94px, 12vw, 128px); overflow: visible; }
.chart-grid { stroke: #e8e9e2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis { stroke: #c6cabe; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-series { stroke: var(--chart); stroke-width: 2.5; vector-effect: non-scaling-stroke; fill: none; }
.chart-point { fill: var(--chart); }
.chart-bar { fill: color-mix(in srgb, var(--chart) 60%, #ebeedf); }
.chart-bar:last-child { fill: var(--chart); }
.chart-detail { font-size: 11px; color: var(--muted); margin-top: 6px; }
.chart-detail ol { padding-left: 18px; columns: 2; }
.chart-labels { position: relative; height: 16px; color: var(--muted); font-size: 10px; }
.chart-labels span { position: absolute; transform: translateX(-50%); max-width: 18%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-scale { color: var(--muted); font-size: 10px; margin-top: 7px; display: flex; justify-content: space-between; gap: 6px; }
.images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 9px; margin-top: 12px; }
.images figure { margin: 0; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
.images img { width: 100%; max-height: 410px; object-fit: contain; display: block; background: #f8f8f5; border-radius: 6px; }
.images figcaption, .images button { margin-top: 5px; font-size: 12px; color: var(--muted); }
.empty { padding: 43px 22px; text-align: center; border: 1px dashed #d8d9d0; border-radius: var(--radius); background: #fafaf7; }
.empty .illustration { margin: 0 auto 12px; width: 45px; height: 45px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); }
.empty h2 { font-size: 18px; letter-spacing: -.02em; }
.empty p { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 370px; margin: 6px auto 0; }
.empty .btn { margin-top: 14px; }
.load-more { justify-self: center; margin-top: 7px; }
.panels { display: grid; gap: 14px; margin-top: 28px; }
.sources-tabs { margin-bottom: 0; }
.panel { padding: 20px 22px; }
.section-heading { justify-content: space-between; margin-bottom: 6px; }
.panel h2 { font-size: 20px; font-weight: 670; letter-spacing: -.04em; }
.panel p, .helper { font-size: 13px; color: var(--muted); line-height: 1.55; }
.endpoint, .snippet { font-family: 'Cascadia Mono', Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; background: #f5f5f0; border: 1px solid var(--line); border-radius: 8px; padding: 11px; margin: 10px 0 0; font-size: 12px; line-height: 1.6; }
.token-list, .activity-list { margin-top: 11px; max-height: 540px; overflow: auto; }
.list-row { border-top: 1px solid var(--line); min-height: 58px; padding: 9px 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.list-row strong { font-size: 13px; overflow-wrap: anywhere; }
.list-row p { font-size: 12px; overflow-wrap: anywhere; }
.list-row .actions { justify-content: flex-end; flex-wrap: wrap; flex: none; }
.token-reveal { padding: 13px; margin-top: 12px; background: var(--tint); border: 1px solid var(--line); border-radius: 9px; }
.token-reveal strong { font-size: 14px; display: block; margin-bottom: 3px; }
.token-reveal .actions { margin-top: 10px; }
.status { font-size: 11px; border-radius: 6px; background: #eeefe9; color: #53564d; padding: 4px 7px; white-space: nowrap; }
.status.ready { background: #e8f1dd; color: #395827; }
.status.failed { background: #ffece8; color: #8f3a31; }
.form { display: grid; gap: 15px; }
.form[hidden] { display: none; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; min-width: 0; }
.form .external-mcp-remove-token { display: flex; align-items: center; }
.form .external-mcp-remove-token[hidden] { display: none; }
.oauth-client-settings > summary { cursor: pointer; font-size: 13px; }
.oauth-client-settings > :not(summary) { margin-top: 10px; }
.oauth-client-settings code { overflow-wrap: anywhere; }
.form .schedule-enabled { display: flex; align-items: center; }
.form .schedule-enabled[hidden] { display: none; }
.schedule-fields { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.schedule-fields[hidden] { display: none; }
.schedule-fields label[hidden] { display: none; }
.schedule-prompt { display: grid; gap: 6px; }
.schedule-composer { position: relative; border: 1px solid #dfdfd8; border-radius: 10px; background: var(--surface); }
.schedule-composer textarea { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; }
.schedule-composer textarea:focus { outline: none; }
.schedule-connection-status { padding: 5px 10px 1px; }
.schedule-connection-status p { font-size: 12px; }
.schedule-selected-connectors { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.schedule-selected-connectors[hidden] { display: none; }
.schedule-selected-connectors li { display: flex; align-items: center; gap: 5px; max-width: 100%; overflow-wrap: anywhere; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--tint); color: var(--text); font-size: 12px; font-weight: 650; }
.schedule-selected-connectors .icon { width: 14px; height: 14px; }
.schedule-composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; }
.schedule-connectors summary { list-style: none; cursor: pointer; }
.schedule-connectors summary::-webkit-details-marker { display: none; }
.schedule-connectors[open] summary { background: var(--tint); }
.schedule-connector-menu { position: absolute; z-index: 1; bottom: calc(100% + 8px); inset-inline: -1px; display: grid; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 22px #23271b24; background: var(--surface); font-size: 13px; }
.schedule-connector-menu strong, .schedule-connector-menu .helper { padding: 5px 9px 3px; color: var(--muted); font-weight: 550; }
.schedule-connector-list { display: grid; gap: 2px; max-height: 168px; overflow-y: auto; padding: 2px; }
.schedule-connector-list:empty { display: none; }
.form .schedule-connector-list label, .schedule-connector-add { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 5px 9px; border-radius: 6px; cursor: pointer; font-weight: 500; }
.schedule-connector-list label { position: relative; }
.schedule-connector-list input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.schedule-connector-list label:hover, .schedule-connector-add:hover { background: var(--bg); }
.schedule-connector-list label:has(input:checked) { background: var(--tint); }
.schedule-connector-list label:has(input:focus-visible) { outline: 2px solid #4b6b2733; outline-offset: -2px; }
.schedule-connector-list span { overflow-wrap: anywhere; }
.schedule-connector-menu .icon { width: 16px; height: 16px; color: var(--muted); }
.schedule-connector-check { display: none; align-items: center; gap: 3px; margin-inline-start: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
input:checked ~ .schedule-connector-check { display: inline-flex; }
.schedule-connector-add { border: 0; background: transparent; text-align: start; }
.schedule-model { min-width: 0; max-width: min(80%, 250px); padding: 5px 4px; border: 0; border-radius: 4px; background: var(--surface); color: var(--text); font-size: 12px; }
#schedule-dialog { width: min(550px, calc(100% - 28px)); max-height: calc(100dvh - 28px); }
.schedule-actions { flex-wrap: wrap; }
.schedule-actions #run-schedule-preview { margin-inline-end: auto; }
#schedule-preview-status:empty { display: none; }
.schedule-preview .card { box-shadow: none; }
.form .helper { font-weight: 400; font-size: 12px; }
.form .actions { margin-top: 3px; }
.form-error { color: #9a3025; font-size: 13px; }
.settings-form { max-width: 100%; }
.settings-form .form-fields { max-width: 510px; display: grid; gap: 13px; }
.swatches { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.swatch, .color-picker { background: var(--swatch); width: 32px; height: 32px; border-radius: 8px; border: 1px solid #0002; padding: 0; }
.swatch[aria-pressed=true] { outline: 2px solid #35382f; outline-offset: 2px; }
.color-picker { padding: 2px; background: white; }
.auth { min-height: 100svh; display: grid; place-items: center; padding: 28px 18px 42px; }
.auth-inner { width: min(100%, 390px); }
.auth-inner.auth-setup { width: min(100%, 465px); }
.auth-logo { display: flex; width: max-content; margin: 0 auto 21px; }
.auth-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(21px, 5vw, 31px); box-shadow: 0 4px 14px #292c2108; }
.auth-panel h1 { font-size: clamp(25px, 5vw, 31px); line-height: 1.1; letter-spacing: -.055em; }
.auth-panel > p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 8px 0 21px; }
.auth-panel > .auth-step { margin: 0 0 10px; font-size: 12px; font-weight: 650; }
.auth-fields { border: 0; min-inline-size: 0; margin: 0; padding: 0; }
.auth-fields:not([hidden]) { display: grid; gap: 15px; }
.auth-actions { display: flex; gap: 10px; margin-top: 3px; }
.auth-actions .btn-primary { flex: 1; min-height: 43px; }
.auth-back[hidden] { display: none; }
.auth-link { display: block; width: fit-content; margin: 16px auto 0; font-size: 13px; color: var(--muted); }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; box-shadow: 0 10px 32px #23271b24; color: var(--text); width: min(425px, calc(100% - 28px)); }
dialog::backdrop { background: #25282075; }
dialog h2 { font-size: 22px; letter-spacing: -.04em; }
dialog p { font-size: 13px; line-height: 1.55; color: var(--muted); }
dialog .actions { justify-content: flex-end; }
.agent-dialog { width: min(590px, calc(100% - 28px)); }
.source-choices { display: grid; gap: 9px; margin: 20px 0; }
.source-choices .btn { justify-content: flex-start; }
.note-text { height: auto; padding-block: 10px; resize: vertical; }
.agent-dialog > p { margin-top: 7px; }
.agent-dialog .agent-step { margin: 14px 0 4px; font-size: 12px; }
.agent-dialog .agent-instruction { font-size: 16px; font-weight: 600; }
.agent-token-form { margin-top: 15px; }
.agent-token-form label { font-weight: 400; }
.agent-prompt { display: block; width: 100%; height: min(260px, 38dvh); resize: vertical; color: var(--text); }
.agent-dialog .copy-status { min-height: 20px; margin-bottom: 6px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 5; display: grid; gap: 6px; max-width: calc(100vw - 36px); }
.toast { background: #252820; color: #fff; border-radius: 8px; padding: 11px 14px; font-size: 13px; box-shadow: 0 4px 14px #2224; }
.toast.error { background: #8d382e; }
@media (max-width: 900px) { .layout { grid-template-columns: 182px minmax(0, 1fr); } .workspace { padding-top: 35px; } }
@media (max-width: 720px) {
  .layout { display: block; }
  .sidebar:not(:popover-open), .breadcrumb { display: none; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; margin: 0; width: min(310px, calc(100% - 40px));
    height: 100dvh; padding: 15px 14px max(14px, env(safe-area-inset-bottom));
    color: var(--text); border: 0; border-right: 1px solid var(--line); box-shadow: 10px 0 36px #25282024;
  }
  .sidebar::backdrop { background: #25282060; }
  .sidebar-top { margin-bottom: 14px; }
  .sidebar .brand { margin: 0 0 0 7px; align-self: center; }
  .sidebar .nav { padding: 3px; margin-bottom: 10px; overscroll-behavior: contain; }
  .sidebar-bottom { flex: none; }
  .topbar { padding: 0 15px; gap: 10px; height: 57px; }
  .mobile-header { display: flex; align-items: center; gap: 8px; }
  .mobile-header > .icon-btn, .sidebar-top > .icon-btn { display: grid; width: 42px; height: 42px; }
  .mobile-header > .icon-btn .icon { width: 22px; height: 22px; }
  .mobile-brand { gap: 7px; font-size: 21px; }
  .mobile-brand .brand-mark { width: 30px; height: 30px; }
  .top-date { text-align: right; }
  .workspace { padding: 28px 15px 38px; }
  .date-popover { right: auto; left: 0; }
  .card, .panel { padding: 14px; }
  .toasts { bottom: max(12px, env(safe-area-inset-bottom)); right: 10px; }
}
@media (max-width: 400px) {
  .top-date { font-size: 10px; }.top-date .icon { display: none; }
  .toolbar { gap: 7px; }.search { flex-basis: 100%; }
  .tabs { gap: 13px; }.order .icon { display: none; }
  .tabs-row:has(#tabs) { flex-wrap: wrap; row-gap: 0; }
  .list-row { align-items: flex-start; flex-direction: column; }
}
