:root {
  --bg: #f4f7f7; --surface: #ffffff; --surface-2: #eef3f3; --border: #dfe8e8;
  --text: #132326; --muted: #556a6e; --faint: #87999c;
  --brand: #0f766e; --brand-2: #14b8a6; --brand-soft: #ccfbf1;
  --ok: #16a34a; --ok-soft: #dcfce7; --bad: #dc2626; --bad-soft: #fee2e2; --frz: #0284c7; --frz-soft: #e0f2fe;
  --warn-bg: #fff7e6; --warn: #92400e;
  --radius: 14px; --shadow: 0 1px 2px rgba(21, 20, 43, .06), 0 4px 16px rgba(21, 20, 43, .05);
  --nav-w: 210px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1214; --surface: #141c1f; --surface-2: #1c272a; --border: #29373b;
    --text: #e6f0f0; --muted: #9db3b5; --faint: #6f8689;
    --brand: #5eead4; --brand-2: #2dd4bf; --brand-soft: #123532;
    --ok: #4ade80; --ok-soft: #133524; --bad: #f87171; --bad-soft: #3d1a1d; --frz: #38bdf8; --frz-soft: #0f2c3d;
    --warn-bg: #3a2a10; --warn: #fcd34d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.okc { color: var(--ok); } .badc { color: var(--bad); }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Yerleşim ---------- */
.shell { display: flex; min-height: 100vh; }
.nav { width: var(--nav-w); flex: none; background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; }
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; padding: 4px 10px 18px; }
.nav .logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 550; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { background: var(--brand-soft); color: var(--brand); }
.nav .spacer { flex: 1; }
main { flex: 1; min-width: 0; padding: 24px 28px 100px; max-width: 1100px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; margin: 0; flex: 1; min-width: 140px; }
.bottom-nav { display: none; }

@media (max-width: 820px) {
  .nav { display: none; }
  main { padding: 16px 16px calc(90px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 0; }
  .bottom-nav a .i { font-size: 20px; line-height: 1; }
  .bottom-nav a.on { color: var(--brand); }
}

/* ---------- Bileşenler ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card h2 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card h2 .x { margin-left: auto; font-weight: 500; font-size: 13px; }
.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat .lbl { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .val { font-size: 24px; font-weight: 750; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.sec-title { font-size: 12px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); margin: 22px 2px 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0c1214; } }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 16px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); outline: none; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
label.f { display: block; }
label.f > span { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); margin: 0 0 5px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 110px; }
.row > .fix { flex: none; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > * { flex-shrink: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; cursor: pointer; font-weight: 650; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg.full { display: flex; } .seg.full button { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13.5px; font-weight: 550; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

.date-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 3px; }
.date-nav span { min-width: 150px; text-align: center; font-weight: 700; }

.bar .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; margin-bottom: 4px; }
.track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.fill { height: 100%; border-radius: 99px; background: var(--brand); transition: width .25s; }
.bars { display: flex; flex-direction: column; gap: 10px; }

.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.note { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.info { background: var(--brand-soft); color: var(--text); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
/* ---------- Tablo ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.tbl-wrap { overflow-x: auto; }

/* ---------- Modal + toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 25, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px 12px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 16px; width: 100%; max-width: 480px; padding: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal.wide { max-width: 760px; }
.modal h3 { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.modal h3 .icon-btn { margin-left: auto; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.modal .actions .left { margin-right: auto; }
@media (max-width: 560px) { .overlay { padding: 0; align-items: flex-end; } .modal { border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); } }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #1c1b33; color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 820px) { #toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.menu-pop { position: absolute; right: 8px; top: 52px; z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); padding: 6px; display: flex; flex-direction: column; min-width: 190px; }
.menu-pop button { border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.menu-pop button:hover { background: var(--surface-2); }
.menu-pop button:disabled { opacity: .45; cursor: default; }

/* ---------- Giriş ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login .card { width: 100%; max-width: 360px; padding: 24px; }
.login h1 { font-size: 20px; margin: 10px 0 16px; text-align: center; }
.login img { display: block; margin: 0 auto; width: 56px; height: 56px; border-radius: 14px; }

svg text { font-family: inherit; }
.chart { width: 100%; height: auto; display: block; }

/* ===================== ABS Health ===================== */
.sec-title { display: flex; align-items: center; gap: 8px; }
.stat { display: flex; flex-direction: column; color: var(--text); }
a.stat:hover { border-color: var(--brand); }
.stat .val small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.up { color: var(--bad); } .down { color: var(--ok); } .flat { color: var(--muted); }
.st-goal .val { color: var(--brand); }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.quick .btn { flex: 1; min-width: 120px; padding: 12px 14px; font-size: 15px; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.brand { background: var(--brand-soft); color: var(--brand); }

/* Liste satırı */
.card.list { padding: 4px 0; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li-ic { font-size: 20px; width: 28px; text-align: center; flex: none; }
.li-m { flex: 1; min-width: 0; }
.li-t { font-weight: 650; overflow-wrap: anywhere; }
.li-s { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.li-v { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.li-a { display: flex; gap: 2px; flex: none; }
.day-h { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 10px 14px 4px; border-bottom: 1px solid var(--border); background: var(--surface-2); }

/* Grafik (SVG) */
.chart-box { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--border); stroke-width: 1; }
.chart .ax { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .ln { fill: none; stroke: var(--brand-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; opacity: .55; }
.chart .ln.main { stroke: var(--brand); stroke-width: 2.5; opacity: 1; }
.chart .dot { fill: var(--surface); stroke: var(--brand-2); stroke-width: 1.5; }
.chart .goal { stroke: #d97706; stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .goal-t { fill: #d97706; font-size: 11px; font-weight: 700; }
.chart .bar { fill: var(--brand-2); }
.chart .bar.low { fill: #f59e0b; } .chart .bar.ok { fill: var(--brand); } .chart .bar.empty { fill: var(--surface-2); }
.chart .hl { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .hot { fill: transparent; cursor: crosshair; }
.ch-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--surface); font-size: 12.5px; font-weight: 600; padding: 5px 8px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .1s; z-index: 5; }
.ch-tip.on { opacity: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; background: var(--brand); }
.legend i.l2 { background: var(--brand-2); opacity: .6; } .legend i.g { background: #d97706; } .legend i.b2 { background: #f59e0b; height: 8px; }

/* Su */
.glasses { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.gl { width: 26px; height: 32px; border: 2px solid var(--brand-2); border-top: 0; border-radius: 0 0 7px 7px; position: relative; overflow: hidden; }
.gl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--f, 0%); background: color-mix(in srgb, var(--brand-2) 70%, transparent); }
.water-big { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.water-big .val { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.water-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.water-btns .btn { padding: 12px 16px; font-size: 15px; }

/* Yıldız (uyku kalitesi) */
.stars { display: inline-flex; gap: 2px; }
.stars button { border: 0; background: none; font-size: 26px; cursor: pointer; padding: 0 2px; color: var(--border); line-height: 1; }
.stars button.on { color: #f59e0b; }
.qual { color: #f59e0b; letter-spacing: -1px; }

/* Ölçü özet kartları */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mcard { text-align: left; cursor: pointer; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.mcard:hover { border-color: var(--brand); }
.mcard.on { border-color: var(--brand); background: var(--brand-soft); }
.mcard .n { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.mcard .v { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.mcard .d { font-size: 11.5px; color: var(--faint); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.unit-in { position: relative; } .unit-in input { padding-right: 38px !important; }
.unit-in em { position: absolute; right: 10px; bottom: 9px; font-style: normal; font-size: 13px; color: var(--faint); pointer-events: none; }

/* Telegram adımları + kod girişi (ABS Life'tan) */
.tg-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.tg-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.tg-step.ok .tg-n { background: var(--ok-soft); color: var(--ok); }
.tg-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.tg-b ol { margin: 0; padding-left: 18px; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.code-in { text-align: center; font-size: 26px !important; letter-spacing: 8px; font-variant-numeric: tabular-nums; }
.wrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.types .li { padding: 8px 4px; }
@media (max-width: 560px) { .quick .btn { min-width: calc(50% - 4px); } }

/* ---------- Antrenman (Aşama 2) ---------- */
.only-m { display: none; }
@media (max-width: 820px) { .only-m { display: inline-flex; } }
.title-in { font: inherit; font-weight: 700; border: 0 !important; background: transparent !important; padding: 2px 0 !important; box-shadow: none !important; width: 100%; }
.title-in:focus { border-bottom: 2px solid var(--brand) !important; border-radius: 0 !important; }
.inline-in { width: auto !important; display: inline-block; padding: 3px 6px !important; font-size: 13px; border-radius: 7px !important; }
.live { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); white-space: nowrap; }
.wex h2 a { color: var(--text); }
.wex h2 { flex-wrap: wrap; }
.sets { width: 100%; border-collapse: collapse; font-size: 14px; }
.sets th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 650; padding: 4px 4px; }
.sets td { padding: 3px 4px; }
.sets td.prev { white-space: nowrap; min-width: 64px; }
.sets .set-in { padding: 7px 8px !important; text-align: center; min-width: 54px; font-variant-numeric: tabular-nums; }
.sets tr[data-set] .set-in { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 30%, var(--border)); }
.sets .set-in::placeholder { color: var(--faint); opacity: .8; }
.setno { border: 0; background: var(--surface-2); border-radius: 7px; width: 30px; height: 30px; font-weight: 750; color: var(--muted); cursor: pointer; }
tr.warm .setno { background: #fef3c7; color: #92400e; }
@media (prefers-color-scheme: dark) { tr.warm .setno { background: #3a2a10; color: #fcd34d; } }
.restbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 40; background: var(--text); color: var(--surface); border-radius: 14px; padding: 8px 10px 8px 14px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.restbar b { font-size: 20px; font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; }
.restbar .btn { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--surface) 30%, transparent); }
@media (max-width: 820px) { .restbar { bottom: calc(78px + env(safe-area-inset-bottom)); } }
.pick { max-height: 52vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; }
.pick-it { width: 100%; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; cursor: pointer; color: var(--text); font: inherit; }
.pick-it:hover { background: var(--surface-2); }
.pick-it .li-m { display: flex; flex-direction: column; }
#wmin { width: 70px !important; }
.sets { width: auto; }
.sets .set-in { width: 96px; }
@media (max-width: 560px) { .sets .set-in { width: 100%; min-width: 50px; } .sets { width: 100%; } }

/* ---------- Tahliller / randevular (Aşama 3) ---------- */
.lv { font-weight: 750; font-variant-numeric: tabular-nums; }
.lv.lo { color: #d97706; } .lv.hi { color: var(--bad); } .lv.okv { color: var(--text); }
.chart .band { fill: var(--ok); opacity: .12; }
.chart .dot.low { fill: #d97706; stroke: #d97706; } .chart .dot.high { fill: var(--bad); stroke: var(--bad); }
.legend i.band-l { background: var(--ok); opacity: .35; height: 10px; }
.rbar { position: relative; display: inline-block; width: 110px; height: 8px; border-radius: 99px; background: var(--surface-2); vertical-align: middle; }
.rbar .band { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--ok) 45%, transparent); border-radius: 99px; }
.rbar .mk { position: absolute; top: -3px; width: 4px; height: 14px; margin-left: -2px; border-radius: 2px; background: var(--text); }
.rbar .mk.lo { background: #d97706; } .rbar .mk.hi { background: var(--bad); }
.li-rb { flex: none; }
@media (max-width: 560px) { .li-rb { display: none; } }
.labrows td { vertical-align: middle; }
.lab-in { width: 90px !important; text-align: center; }
.ref-in { width: 64px !important; padding: 6px 6px !important; font-size: 13px; text-align: center; }
.pick-wrap { position: relative; }
.pick-wrap .pick { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.2); max-height: 280px; }
/* Ek dosyalar (ABS Life'tan) */
.btn input[type=file] { display: none; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.file { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.fl-v { height: 130px; background: var(--surface-2); display: grid; place-items: center; position: relative; overflow: hidden; }
.fl-img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; display: grid; place-items: center; }
.fl-img img { width: 100%; height: 100%; object-fit: cover; }
.fl-ic { font-size: 44px; }
.fl-m { padding: 8px 10px 0; display: flex; flex-direction: column; min-width: 0; }
.fl-n { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-a { display: flex; gap: 6px; align-items: center; padding: 8px 10px 10px; }
.fl-a .icon-btn { margin-left: auto; }
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.viewer .v-c { width: 100%; height: 100%; display: grid; place-items: center; padding: 48px 12px; color: #ddd; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.viewer button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; z-index: 2; }
.viewer .v-x { top: 12px; right: 12px; font-size: 20px; }
.viewer .v-p { left: 12px; top: 50%; } .viewer .v-n { right: 12px; top: 50%; }
