/* MATRİO tasarım sistemi: nötr yüzeyler, tek vurgu rengi, ince kenarlık. Renk yalnızca durum ve eylem için kullanılır. */
:root {
  --bg: #F7F8FA; --surface: #FFFFFF; --surface-2: #F4F5F7; --hover: #F2F4F7;
  --border: #E4E7EC; --border-2: #D0D5DD;
  --text: #101828; --text-2: #475467; --text-3: #667085;
  --accent: #3F51C7; --accent-h: #3444A9; --accent-soft: #EEF1FD; --on-accent: #FFFFFF;
  --ok: #067647; --ok-bg: #ECFDF3; --ok-mark: #17B26A;
  --warn: #B54708; --warn-bg: #FFFAEB; --warn-mark: #F79009;
  --bad: #B42318; --bad-bg: #FEF3F2; --bad-mark: #F04438;
  --mute: #475467; --mute-bg: #F2F4F7; --mute-mark: #98A2B3;
  --c1: #3F51C7; --c2: #12A594; --c3: #F79009; --c4: #C2417A; --c5: #6E7BF2; --c6: #7A8CA3; --c7: #8A63D2; --c8: #98A2B3;
  --shadow: 0 1px 2px rgba(16,24,40,.06); --shadow-pop: 0 12px 32px -8px rgba(16,24,40,.18), 0 2px 6px rgba(16,24,40,.06);
  --font: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --sw: 232px; color-scheme: light;
  /* chart.js uyumluluğu için eski adlar */
  --petrol: var(--accent); --petrol-t: var(--accent-soft); --ink: var(--text); --ink2: var(--text-2); --ink3: var(--text-3); --rule: var(--border); --rule2: var(--border-2); --paper: var(--surface); --wash: var(--surface-2); --canvas: var(--bg);
}
:root[data-theme="dark"] {
  --bg: #0D0F13; --surface: #14171D; --surface-2: #1A1E26; --hover: #1D222B;
  --border: #262B35; --border-2: #343A47;
  --text: #ECEEF2; --text-2: #A8AFBD; --text-3: #8089A0;
  --accent: #8E9CFF; --accent-h: #A9B4FF; --accent-soft: #1E2342; --on-accent: #0D0F13;
  --ok: #55D6A0; --ok-bg: #11291F; --ok-mark: #2FBF86; --warn: #F5B14C; --warn-bg: #2E2410; --warn-mark: #E8A02A;
  --bad: #FF9188; --bad-bg: #371716; --bad-mark: #F25A50; --mute: #A8AFBD; --mute-bg: #1F242D; --mute-mark: #5B6475;
  --c1: #8E9CFF; --c2: #3CC9B7; --c3: #F5B14C; --c4: #E36FA3; --c5: #6E7BF2; --c6: #8FA0B8; --c7: #AE8BE6; --c8: #6B7486;
  --shadow: none; --shadow-pop: 0 14px 36px -8px rgba(0,0,0,.6); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; } button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; } a { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mute { color: var(--text-2); } .faint { color: var(--text-3); } .nowrap { white-space: nowrap; } .right { text-align: right; } .mono { font-family: var(--mono); font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ---------- giriş ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.login-box { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px 28px 24px; box-shadow: var(--shadow-pop); }
.login-box .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: .02em; margin-bottom: 18px; }
.login-box h1 { font-size: 20px; font-weight: 650; margin-bottom: 4px; } .login-box p { color: var(--text-2); margin-bottom: 16px; }
.login-box label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 5px; }
.login-box .input { width: 100%; height: 38px; }
.login-box .btn { width: 100%; height: 38px; justify-content: center; margin-top: 16px; }
.login-err { min-height: 20px; margin-top: 10px; color: var(--bad); font-weight: 600; font-size: 13px; } .login-note { margin-top: 10px; font-size: 12.5px; color: var(--text-3); }

/* ---------- yerleşim ---------- */
.app { display: grid; grid-template-columns: var(--sw) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .15s; }
.app.rail { --sw: 60px; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 12px 10px; z-index: 40; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 700; font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .sep { height: 1px; background: var(--border); margin: 8px 6px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; }
.me { display: flex; align-items: center; gap: 9px; padding: 4px 6px 8px; min-width: 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.me b { display: block; font-size: 13px; line-height: 1.2; } .me span { font-size: 12px; color: var(--text-3); }
.side-foot button.me { width: 100%; height: auto; justify-content: flex-start; gap: 9px; padding: 6px; margin-bottom: 4px; text-align: left; color: var(--text); }
.app .side-foot .me .avatar { display: grid; } .me .k { margin-left: auto; display: flex; } .me .k svg { width: 15px; height: 15px; }
.pwform label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 5px; } .pwform .input { width: 100%; height: 38px; } .pwform .btn { margin-top: 14px; }
.side-foot .row { display: flex; gap: 4px; }
.side-foot button { flex: 1; height: 30px; border: 0; background: none; border-radius: 6px; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.side-foot button:hover { background: var(--hover); color: var(--text); }
.app.rail .nav a span, .app.rail .brand span, .app.rail .me div, .app.rail .side-foot button span { display: none; } .app.rail .nav a { justify-content: center; padding: 0; } .app.rail .me { justify-content: center; } .app.rail .side-foot .row { flex-direction: column; }
.main { min-width: 0; } .page { padding: 20px 28px 64px; max-width: 1480px; margin: 0 auto; }
.topbar { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { font-size: 20px; line-height: 28px; font-weight: 650; letter-spacing: -.005em; } .page-head p { color: var(--text-2); margin-top: 2px; max-width: 70ch; }
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); text-decoration: none; margin-bottom: 4px; background: none; border: 0; padding: 0; } .crumb:hover { color: var(--accent); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- bileşenler: buton, girdi, rozet ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 6px; background: var(--surface); color: var(--text); font-weight: 500; font-size: 13.5px; white-space: nowrap; box-shadow: var(--shadow); }
.btn:hover { background: var(--hover); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .btn.primary:hover { background: var(--accent-h); border-color: var(--accent-h); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; } .btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12.5px; } .btn.icon { width: 32px; padding: 0; justify-content: center; }
.btn .count { background: var(--accent); color: var(--on-accent); border-radius: 99px; font-size: 11.5px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; font-weight: 600; }
.input, .select { height: 32px; padding: 0 10px; border: 1px solid var(--border-2); border-radius: 6px; background: var(--surface); color: var(--text); min-width: 0; font-size: 13.5px; }
.input::placeholder { color: var(--text-3); } .input.invalid { border-color: var(--bad-mark); } textarea.input { height: auto; padding: 8px 10px; }
.input:disabled { background: var(--surface-2); color: var(--text-3); }
.search { position: relative; flex: 1 1 260px; max-width: 420px; } .search svg { position: absolute; left: 10px; top: 8px; color: var(--text-3); pointer-events: none; } .search .input { width: 100%; padding-left: 32px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--mute-bg); color: var(--mute); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.accent { background: var(--accent-soft); color: var(--accent); }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; flex-wrap: nowrap; }
.seg button { height: 26px; padding: 0 10px; border: 0; background: none; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.seg button:hover { color: var(--text); } .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .fld > span, .fld > legend { font-size: 12.5px; font-weight: 600; color: var(--text-2); } .fld .help { font-size: 12.5px; color: var(--text-3); font-weight: 400; } .fld .err { font-size: 12.5px; color: var(--bad); font-weight: 500; }
.menu { position: relative; display: inline-block; } .pop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; max-height: 340px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-pop); padding: 4px; z-index: 50; display: none; }
.menu.open .pop { display: block; } .pop.r { left: auto; right: 0; }
.pop .item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; color: var(--text); font-size: 13.5px; } .pop .item:hover { background: var(--hover); } .pop .item small { display: block; color: var(--text-3); font-size: 12.5px; }
.pop label { display: flex; gap: 9px; align-items: center; padding: 6px 8px; border-radius: 6px; cursor: pointer; } .pop label:hover { background: var(--hover); }
.pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }

/* ---------- araç çubuğu ve etiketler ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.toolbar .grow { flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.tagx { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px 0 9px; background: var(--accent-soft); color: var(--accent); border: 0; border-radius: 6px; font-size: 12.5px; font-weight: 500; }
.tagx b { width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center; font-weight: 600; font-size: 11px; } .tagx:hover b { background: rgba(63,81,199,.18); }
.fresh { margin-left: auto; font-size: 12.5px; color: var(--text-3); display: inline-flex; gap: 6px; align-items: center; } .fresh::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mute-mark); } .fresh.ok::before { background: var(--ok-mark); } .fresh.warn::before { background: var(--warn-mark); } .fresh.bad::before { background: var(--bad-mark); }

/* ---------- özet şeridi ve bölümler ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.kpis.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis > div { padding: 14px 16px; border-left: 1px solid var(--border); min-width: 0; } .kpis > div:first-child { border-left: 0; }
.kpis .lab { font-size: 12.5px; color: var(--text-2); } .kpis .val { font-size: 22px; line-height: 30px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis .chg { font-size: 12.5px; font-weight: 500; display: inline-flex; gap: 4px; align-items: center; color: var(--text-3); } .kpis .txt { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.up { color: var(--ok) !important; } .down { color: var(--bad) !important; } .flat { color: var(--text-3); }
.section { margin-top: 24px; } .sh { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; min-height: 26px; } .sh a { font-size: 13px; text-decoration: none; font-weight: 500; } .sh a:hover { text-decoration: underline; }
.section h2 { font-size: 15px; font-weight: 650; } .section .sub { color: var(--text-2); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } .grid21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; } .panel.flush { padding: 0; overflow: hidden; }
.note { background: var(--accent-soft); color: var(--text); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }

/* ---------- tablo ---------- */
.tbl { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: auto; max-height: calc(100vh - 250px); min-height: 100px; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.t th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: left; padding: 9px 14px; font-weight: 600; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.t th.s { cursor: pointer; user-select: none; } .t th.s:hover { color: var(--text); } .t th .ar { color: var(--accent); margin-left: 4px; font-size: 10px; }
.t td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; } .t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; } .t tbody tr.click:hover td { background: var(--hover); } .t tbody tr.sel td { background: var(--accent-soft); }
.t td .sub { display: block; color: var(--text-3); font-size: 12.5px; } .t td b { font-weight: 600; } .t td.r, .t th.r { text-align: right; } .t td.num { text-align: right; white-space: nowrap; }
.t .clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t tr.lost td:first-child { box-shadow: inset 3px 0 0 var(--bad-mark); }
.t .rowact { display: flex; gap: 4px; justify-content: flex-end; } .t .rowact .btn { opacity: .0; } .t tr:hover .rowact .btn, .t tr:focus-within .rowact .btn { opacity: 1; }
.skel td { padding: 14px; } .skel i { display: block; height: 10px; border-radius: 3px; background: var(--surface-2); }
.empty { padding: 48px 20px; text-align: center; color: var(--text-2); } .empty b { display: block; font-size: 15px; color: var(--text); margin-bottom: 4px; } .empty .btn { margin-top: 12px; }
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 48px 20px; color: var(--text-2); }
.spin { width: 16px; height: 16px; border: 2px solid var(--border-2); border-top-color: var(--accent); border-radius: 50%; animation: sp .8s linear infinite; } @keyframes sp { to { transform: rotate(360deg); } }
.errbox { background: var(--bad-bg); color: var(--bad); border-radius: 8px; padding: 12px 14px; font-weight: 500; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--text-2); font-size: 13px; flex-wrap: wrap; } .pager .pn { display: flex; gap: 6px; align-items: center; }

/* ---------- grafik ve çubuklar ---------- */
.chart { width: 100%; position: relative; } .chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--text-3); font: 12px var(--font); } .chart .gl { stroke: var(--border); } .chart .hit { fill: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); } .legend span { display: inline-flex; gap: 6px; align-items: center; } .legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.bars { display: flex; flex-direction: column; gap: 8px; } .bar { display: grid; grid-template-columns: minmax(80px, 1.2fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; font-size: 13.5px; }
.bar .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar .tr { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; } .bar .tr i { display: block; height: 100%; background: var(--accent); border-radius: 4px; } .bar .v { font-weight: 600; text-align: right; white-space: nowrap; }
.bar.link { cursor: pointer; } .bar.link:hover .nm { color: var(--accent); }
.stack { display: flex; height: 22px; border-radius: 5px; overflow: hidden; gap: 2px; } .stack > div { min-width: 3px; display: grid; place-items: center; color: #fff; font-size: 11.5px; font-weight: 600; overflow: hidden; }
.rank { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); } .rank:last-child { border-bottom: 0; }
.rank .no { color: var(--text-3); font-weight: 600; font-size: 12.5px; } .rank .nm { overflow-wrap: anywhere; } .rank .nm span { display: block; color: var(--text-3); font-size: 12.5px; } .rank .v { font-weight: 600; text-align: right; } .rank.click { cursor: pointer; } .rank.click:hover .nm { color: var(--accent); }
.heat { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 11.5px; } .heat div { height: 20px; border-radius: 3px; } .heat .hd { height: auto; text-align: center; color: var(--text-3); } .heat .rl { line-height: 20px; color: var(--text-3); }
.cmp { display: grid; grid-template-columns: 84px repeat(2, minmax(0, 1fr)); gap: 4px 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); } .cmp:last-child { border-bottom: 0; } .cmp .big { font-size: 18px; font-weight: 650; } .cmp small { display: block; color: var(--text-3); font-size: 12.5px; }

/* ---------- panel (drawer) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .15s; } .scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: var(--surface); z-index: 70; display: flex; flex-direction: column; transform: translateX(104%); transition: transform .18s ease; box-shadow: var(--shadow-pop); border-left: 1px solid var(--border); visibility: hidden; }
.drawer.on { transform: none; visibility: visible; } .drawer.narrow { width: min(520px, 100vw); }
.drawer-h { padding: 16px 20px 12px; display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid var(--border); } .drawer-h .tt { flex: 1; min-width: 0; } .drawer-h h2 { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; } .drawer-h p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.drawer-b { padding: 4px 20px 28px; overflow: auto; flex: 1; } .drawer-f { padding: 12px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: space-between; background: var(--surface); }
.blk { padding: 16px 0; border-bottom: 1px solid var(--border); } .blk:last-child { border-bottom: 0; } .blk h3 { font-size: 13px; font-weight: 650; color: var(--text-2); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.field { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 2px 12px; align-items: start; padding: 5px 0; } .field .k { color: var(--text-2); } .field .v { overflow-wrap: anywhere; font-weight: 500; }
.copy { background: none; border: 1px solid var(--border); border-radius: 5px; height: 22px; padding: 0 7px; font-size: 12px; color: var(--text-2); display: inline-flex; gap: 4px; align-items: center; } .copy:hover { background: var(--hover); color: var(--text); }
.dtable { width: 100%; border-collapse: collapse; } .dtable td { padding: 7px 0; border-bottom: 1px solid var(--border); vertical-align: top; } .dtable tr:last-child td { border-bottom: 0; } .dtable td:last-child { text-align: right; white-space: nowrap; font-weight: 600; } .dtable td.q { width: 44px; color: var(--text-2); text-align: left; font-weight: 400; }
.sumrow { display: flex; justify-content: space-between; padding: 3px 0; color: var(--text-2); } .sumrow.big { color: var(--text); font-weight: 650; font-size: 16px; border-top: 1px solid var(--border-2); margin-top: 6px; padding-top: 8px; }
.verdict { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); font-size: 13.5px; } .verdict.bad { background: var(--bad-bg); } .verdict.warn { background: var(--warn-bg); } .verdict.ok { background: var(--ok-bg); } .verdict .badge { margin-bottom: 6px; }
.steps { margin: 0; padding: 0; list-style: none; } .steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 10px; position: relative; padding-bottom: 12px; } .steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 1px; background: var(--border-2); } .steps li:last-child::before { display: none; }
.steps .dt { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mute-bg); color: var(--mute); } .steps .ok .dt { background: var(--ok-bg); color: var(--ok); } .steps .bad .dt { background: var(--bad-bg); color: var(--bad); } .steps .warn .dt { background: var(--warn-bg); color: var(--warn); }
.steps b { display: block; font-weight: 600; } .steps span { color: var(--text-2); font-size: 13px; }
.hist { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 6px; margin: 0 -6px; border-radius: 6px; cursor: pointer; align-items: center; } .hist:hover { background: var(--hover); } .hist small { display: block; color: var(--text-3); font-size: 12.5px; }
details.tech summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text-2); padding: 2px 0; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--border); } .fgroup:last-child { border-bottom: 0; } .fgroup > h3 { font-size: 13px; font-weight: 650; margin-bottom: 12px; } .fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .fgrid .full { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { height: 28px; padding: 0 11px; border: 1px solid var(--border-2); background: var(--surface); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); } .chip:hover { background: var(--hover); } .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.checks { max-height: 170px; overflow: auto; border: 1px solid var(--border-2); border-radius: 6px; padding: 4px; } .checks label { display: flex; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 4px; cursor: pointer; font-size: 13.5px; } .checks label:hover { background: var(--hover); }
.settings { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; } .subnav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; } .subnav a { padding: 7px 10px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-weight: 500; } .subnav a:hover { background: var(--hover); } .subnav a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sgroup { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); } .sgroup:last-child { border-bottom: 0; } .sgroup > h2 { font-size: 16px; font-weight: 650; } .sgroup > .sub { color: var(--text-2); margin: 2px 0 14px; max-width: 64ch; }
.savebar { display: flex; gap: 8px; align-items: center; margin-top: 14px; } .savebar .state { font-size: 13px; color: var(--text-3); } .savebar .state.ok { color: var(--ok); } .savebar .state.bad { color: var(--bad); } .savebar .state.dirty { color: var(--warn); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 8px; z-index: 100; opacity: 0; transition: all .18s; pointer-events: none; font-weight: 500; font-size: 13.5px; max-width: calc(100vw - 30px); box-shadow: var(--shadow-pop); } .toast.on { opacity: 1; transform: translate(-50%, 0); }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--text); color: var(--bg); border-radius: 6px; padding: 6px 9px; font-size: 12.5px; box-shadow: var(--shadow-pop); max-width: 280px; opacity: 0; transition: opacity .08s; } .tip.on { opacity: 1; }

/* ---------- tablet ve mobil ---------- */
@media (max-width: 1180px) { .app { --sw: 60px; } .app .nav a span, .app .brand span, .app .me div, .app .side-foot button span { display: none; } .app .nav a { justify-content: center; padding: 0; } .app .me { justify-content: center; } .app .side-foot .row { flex-direction: column; }
  .grid3, .grid21 { grid-template-columns: minmax(0, 1fr); } .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis > div:nth-child(4) { border-left: 0; } .kpis > div:nth-child(n+4) { border-top: 1px solid var(--border); } }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); } .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; transform: translateX(-104%); transition: transform .18s; box-shadow: var(--shadow-pop); }
  .sidebar.on { transform: none; } .app .nav a span, .app .brand span, .app .me div, .app .side-foot button span { display: inline; } .app .nav a { justify-content: flex-start; padding: 0 10px; } .app .me { justify-content: flex-start; } .app .side-foot .row { flex-direction: row; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; } .topbar b { font-size: 15px; letter-spacing: .04em; }
  .page { padding: 14px 14px 56px; } .grid2 { grid-template-columns: minmax(0, 1fr); } .kpis, .kpis.c4, .kpis.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis > div { border-left: 0 !important; border-top: 1px solid var(--border); } .kpis > div:nth-child(-n+2) { border-top: 0; } .kpis > div:nth-child(even) { border-left: 1px solid var(--border) !important; }
  .settings { grid-template-columns: minmax(0, 1fr); } .subnav { position: static; flex-direction: row; overflow-x: auto; } .fgrid { grid-template-columns: minmax(0, 1fr); } .search { max-width: none; flex-basis: 100%; }
  .tbl { border: 0; background: none; max-height: none; overflow: visible; } table.t, .t tbody, .t tr, .t td { display: block; } .t thead { display: none; }
  .t tr { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; padding: 6px 0; } .t td { border: 0; padding: 4px 14px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; } .t td::before { content: attr(data-l); color: var(--text-3); font-size: 12.5px; }
  .t td.r, .t td.num { text-align: left; } .t .clip { max-width: none; white-space: normal; } .t .rowact .btn { opacity: 1; } .t tr.lost { border-left: 3px solid var(--bad-mark); }
  .field { grid-template-columns: 92px minmax(0, 1fr) auto; } .bar { grid-template-columns: minmax(70px, 1fr) minmax(0, 1.4fr) auto; } .btn, .input, .select, .seg button, .chip { min-height: 36px; } .btn.sm { min-height: 30px; }
}
@media print { .sidebar, .toolbar, .tags, .topbar, .drawer, .scrim, .actions { display: none !important; } .app { display: block; } }
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation-duration: .01ms !important; } }

/* ---------- e-posta içeriği ve Matri rehberi ---------- */
.mailbody { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; max-height: 380px; overflow: auto; font: 13.5px/1.6 var(--font); overflow-wrap: anywhere; margin: 8px 0 0; }
.guide { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-2); margin-bottom: 8px; padding: 0 8px; font-weight: 500; font-size: 13px; text-align: left; }
.guide:hover { background: var(--hover); color: var(--text); } .guide svg { width: 26px; height: 26px; flex: none; }
.app.rail .guide span { display: none; } .app.rail .guide { justify-content: center; padding: 0; }
.tour-hl { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; position: relative; z-index: 5; }
.tour { position: fixed; right: 22px; bottom: 22px; z-index: 95; width: min(380px, calc(100vw - 28px)); display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 14px 14px 12px; box-shadow: var(--shadow-pop); }
.tour-bot { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; }
.tour-body { flex: 1; min-width: 0; } .tour-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.tour-step { font-size: 12px; color: var(--text-3); font-weight: 500; } .tour-x { border: 0; background: none; color: var(--text-3); width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; } .tour-x:hover { background: var(--hover); color: var(--text); }
.tour h2 { font-size: 15px; font-weight: 650; margin-bottom: 3px; } .tour p { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.tour-dots { display: flex; gap: 4px; margin: 10px 0; } .tour-dots i { flex: 1; height: 3px; border-radius: 2px; background: var(--border-2); } .tour-dots i.done { background: var(--accent); opacity: .5; } .tour-dots i.on { background: var(--accent); }
.tour-btns { display: flex; justify-content: flex-end; gap: 6px; }
@media (max-width: 860px) { .tour { right: 14px; left: 14px; bottom: 14px; width: auto; } }

/* ---------- tekrar siparişler */
.dupchip { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 18px; background: var(--hover); color: var(--text-2); border: 1px solid var(--border); vertical-align: 1px; white-space: nowrap; }
.dupchip.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.tbl tr.dupe td { opacity: .62; }

/* ---------- posta kutusu */
.mbx { display: grid; grid-template-columns: minmax(330px, 410px) minmax(0, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; height: clamp(520px, calc(100vh - 250px), 880px); }
.mbx-l { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--border); }
.mbx-list { flex: 1; overflow: auto; min-height: 0; }
.mbx-l .pager { padding: 8px 12px; border-top: 1px solid var(--border); font-size: 12.5px; }
.mbx-r { overflow: auto; min-height: 0; min-width: 0; padding: 20px 24px 28px; background: var(--surface); }
.mi { display: flex; gap: 10px; width: 100%; min-width: 0; overflow: hidden; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; align-items: flex-start; }
.mi:hover { background: var(--hover); } .mi:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mi.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.mi-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.mi-ic svg { width: 15px; height: 15px; }
.mi-ic.ok { background: var(--ok-bg); color: var(--ok); } .mi-ic.bad { background: var(--bad-bg); color: var(--bad); } .mi-ic.warn { background: var(--warn-bg); color: var(--warn); } .mi-ic.mute { background: var(--mute-bg); color: var(--mute); }
.mi-m { flex: 1; min-width: 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.mi-t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mi-t b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-t time { font-size: 12px; color: var(--text-3); flex: none; font-variant-numeric: tabular-nums; }
.mi-s { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mi-s i { font-weight: 400; color: var(--text-3); }
.mi-p { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-f { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-size: 12px; color: var(--text-3); min-width: 0; }
.mi-site { white-space: nowrap; } .mi-to { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mbx-back { display: none; margin-bottom: 12px; }
.mr-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; color: var(--text-3); }
.mr-empty svg { width: 34px; height: 34px; opacity: .6; } .mr-empty b { color: var(--text-2); font-size: 15px; } .mr-empty span { max-width: 300px; font-size: 13.5px; }
.mr-h h2 { font-size: 20px; line-height: 1.3; font-weight: 650; margin: 0 0 10px; overflow-wrap: anywhere; }
.mr-st { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-2); padding: 10px 12px; border-radius: 8px; background: var(--mute-bg); margin-bottom: 16px; flex-wrap: wrap; }
.mr-st.ok { background: var(--ok-bg); } .mr-st.bad { background: var(--bad-bg); } .mr-st.warn { background: var(--warn-bg); }
.mr-mark { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -6px 0 16px; font-size: 13px; }
.mr-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.mr-from { display: flex; gap: 12px; align-items: center; } .mr-from .avatar { width: 38px; height: 38px; flex: none; }
.mr-fm { min-width: 0; } .mr-fm b { font-size: 14.5px; } .mr-addr { color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; } .mr-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.mr-dl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13.5px; }
.mr-dl dt { color: var(--text-3); } .mr-dl dd { margin: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rc { display: inline-flex; gap: 6px; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--mute-bg); font-size: 12.5px; }
.rc i { font-style: normal; font-size: 11.5px; font-weight: 600; } .rc.ok { background: var(--ok-bg); } .rc.ok i { color: var(--ok); } .rc.bad { background: var(--bad-bg); } .rc.bad i { color: var(--bad); } .rc.warn { background: var(--warn-bg); } .rc.warn i { color: var(--warn); }
.mr-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.mr-frame { width: 100%; border: 1px solid var(--border); border-radius: 8px; background: #fff; display: block; min-height: 160px; }
.mr-att { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 13px; } .mr-att span { padding: 3px 9px; border: 1px solid var(--border); border-radius: 6px; } .mr-att i { font-style: normal; color: var(--text-3); }
.mr-tech { margin-top: 18px; }
@media (max-width: 999px) {
  .mbx { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .mbx-l { border-right: 0; } .mbx-list { max-height: none; overflow: visible; } .mbx-r { display: none; padding: 16px; }
  .mbx.reading .mbx-l { display: none; } .mbx.reading .mbx-r { display: block; } .mbx-back { display: inline-flex; }
}

/* ---------- müşteri mesajları */
.mtabs { margin-bottom: 12px; } .mtabs button { padding: 0 16px; height: 36px; font-weight: 500; } .mtabs i, .seg i[data-cnt] { font-style: italic; opacity: .7; font-weight: 400; }
.mi-av { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12.5px; display: grid; place-items: center; margin-top: 1px; }
.mr-rel { margin-top: 20px; } .mr-rel h3 { font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.mr-rel .hist { cursor: pointer; }

/* ---------- yuvarlak "şimdi güncelle" düğmesi */
.syncbtn { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); display: inline-grid; place-items: center; margin-left: 10px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.syncbtn:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.syncbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.syncbtn svg { width: 17px; height: 17px; } .syncbtn:disabled { cursor: progress; color: var(--accent); border-color: var(--accent); }
.syncbtn.spin svg { animation: syncspin 1s linear infinite; }
@keyframes syncspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .syncbtn.spin svg { animation-duration: 2.4s; } }

/* ---------- filtre listelerinde toplu seçim */
.bulk { display: flex; align-items: center; gap: 12px; font-size: 12.5px; margin-bottom: 6px; }
.linkbtn { border: 0; background: none; padding: 2px 0; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; border-radius: 4px; }
.linkbtn:hover { text-decoration: underline; } .linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- sipariş durumunu elle değiştirme */
.stform { margin: 4px 0 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.stform[hidden] { display: none; } .stform .fld { margin-bottom: 8px; } .stform p { font-size: 12.5px; margin: 0 0 10px; } .stform .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Matri sohbet ---------- */
.matri-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); box-shadow: var(--shadow-pop); display: grid; place-items: center; cursor: pointer; }
.matri-fab:hover { background: var(--accent-soft); } .matri-fab[hidden] { display: none; }
.matri { position: fixed; right: 22px; bottom: 22px; z-index: 96; width: min(430px, calc(100vw - 28px)); height: min(660px, calc(100vh - 44px)); display: none; flex-direction: column; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; box-shadow: var(--shadow-pop); overflow: hidden; }
.matri.on { display: flex; }
.matri-h { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.matri-av { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.matri-t { flex: 1; min-width: 0; line-height: 1.25; } .matri-t b { display: block; font-size: 14.5px; } .matri-t span { font-size: 12px; color: var(--text-3); }
.m-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.m-msg { display: flex; gap: 8px; align-items: flex-start; min-width: 0; } .m-msg.me { justify-content: flex-end; }
.m-av { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; }
.m-bub { border-radius: 12px; padding: 8px 11px; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
.m-msg.me .m-bub { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; max-width: 86%; }
.m-msg.bot .m-bub { background: var(--surface-2); border: 1px solid var(--border); border-top-left-radius: 4px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.m-text { margin: 0; } .m-text.warn { color: var(--warn); } .m-note { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.m-head { display: flex; flex-direction: column; gap: 1px; } .m-head b { font-size: 15px; } .m-head span { font-size: 12.5px; color: var(--text-2); }
.m-kv h4, .m-list h4 { margin: 0 0 4px; font-size: 12px; font-weight: 650; color: var(--text-2); }
.m-row { display: grid; grid-template-columns: minmax(84px, 120px) minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; padding: 4px 0; border-top: 1px solid var(--border); } .m-row:first-of-type { border-top: 0; }
.m-row .k { color: var(--text-2); font-size: 12.5px; } .m-row .v { font-weight: 500; overflow-wrap: anywhere; }
.m-list { display: flex; flex-direction: column; }
.m-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; text-align: left; padding: 7px 8px; margin: 0 -8px; border: 0; border-radius: 8px; background: none; color: var(--text); width: calc(100% + 16px); font: inherit; }
button.m-item { cursor: pointer; } button.m-item:hover, button.m-item:focus-visible { background: var(--hover); }
.m-item .t b { display: block; font-weight: 600; } .m-item small { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 1px; line-height: 1.4; } .m-item .r { font-size: 12.5px; color: var(--text-2); white-space: nowrap; text-align: right; }
.m-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .m-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.m-stat .l { display: block; font-size: 12px; color: var(--text-2); } .m-stat b { font-size: 18px; font-variant-numeric: tabular-nums; } .m-stat small { display: block; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.m-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 36px; }
.m-chips .chip { border: 1px solid var(--border-2); background: var(--surface); color: var(--text); border-radius: 99px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; } .m-chips .chip:hover { background: var(--accent-soft); border-color: var(--accent); }
.m-typing { display: inline-flex; gap: 4px; padding: 3px 0; } .m-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: mdot 1s infinite ease-in-out; } .m-typing i:nth-child(2) { animation-delay: .15s; } .m-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.m-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: var(--surface); } .m-form .input { flex: 1; height: 38px; }
.m-form .btn { height: 38px; }
@media (max-width: 860px) { .matri { right: 10px; left: 10px; bottom: 10px; width: auto; height: min(78vh, 640px); } .matri-fab { right: 14px; bottom: 14px; } .m-row { grid-template-columns: 92px minmax(0, 1fr) auto; } }
@media (prefers-reduced-motion: reduce) { .m-msgs { scroll-behavior: auto; } .m-typing i { animation: none; opacity: .6; } }
