/* JetKopi shared styles. Tokens match the demo screens (CLAUDE.md §9). */
:root {
  --yellow: #FF8A1F;
  --yellow-edge: #D9650A;
  --ink: #0A1F4F;
  --ink-2: #15306B;
  --muted: #4B5160;
  --muted-2: #5B6270;
  --line: #E3E5EA;
  --line-2: #EEF0F3;
  --ground: #F3F4F6;
  --card: #FFFFFF;
  --green: #1E9E55;
  --green-ink: #11663A;
  --green-bg: #E5F5EA;
  --orange-ink: #A04A00;
  --red: #B42318;
  --link: #1F3FBF;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 20px;
  --tap: 44px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; }

.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px; }

.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 900; font-size: 21px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px; border-radius: 14px; border: 1px solid #C9CDD6;
  background: var(--card); color: var(--ink); font: 600 16px var(--font-body);
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--yellow); border: none; box-shadow: 0 3px 0 var(--yellow-edge); font-family: var(--font-display); font-weight: 900; }
.btn-dark { background: var(--ink); color: #fff; border: none; }
.btn-danger { background: var(--red); color: #fff; border: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.code { font-family: var(--font-display); font-weight: 900; letter-spacing: .12em; }

.muted { color: var(--muted-2); }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Customer page (send.html) ---------- */

.send-page .phone {
  max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
}

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 4px 10px; }
.topbar-link { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 10px 0; }

.view { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.view-center { justify-content: center; align-items: center; text-align: center; gap: 16px; }
.grow { flex: 1; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted-2); }
.eyebrow-light { color: #C9CDD6; }

.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--ink);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.err-icon { width: 72px; height: 72px; border-radius: 50%; background: #FDECEA; color: var(--red); display: grid; place-items: center; }
.err-title { font-size: 26px; font-weight: 900; max-width: 320px; }
.err-text { max-width: 320px; margin: 0; }

.shop-card { padding: 18px 20px; }
.shop-name { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1.1; margin-top: 8px; overflow-wrap: anywhere; text-transform: uppercase; }
.shop-district { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 15px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.pill-green { background: var(--green-bg); color: var(--green-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.code-strip {
  background: var(--ink); border-radius: 18px; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.code-strip-text { display: flex; flex-direction: column; }
.code-strip-hint { font-size: 13px; color: #C9CDD6; }
.code-strip-code { font-size: 40px; color: var(--yellow); letter-spacing: .14em; }

.big-btn {
  min-height: 128px; border-radius: 24px; background: var(--yellow); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 3px 0 var(--yellow-edge); cursor: pointer; text-align: center; padding: 14px;
  -webkit-tap-highlight-color: transparent;
}
.big-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-edge); }
.big-btn-title { font-family: var(--font-display); font-weight: 900; font-size: 30px; }
.big-btn-sub { font-size: 14px; font-weight: 500; color: #4A2200; }

.outline-btn {
  min-height: 76px; border-radius: 20px; background: var(--card); border: 2px solid var(--ink); color: var(--ink);
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; text-align: left; cursor: pointer;
  font: inherit;
}
.outline-btn-text { display: flex; flex-direction: column; gap: 2px; }
.outline-btn-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.outline-btn-sub { font-size: 14px; color: var(--muted); }

.trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 600; padding: 8px 0; }

.alert { margin: 0; background: #FDECEA; color: #8A1C12; border-radius: 14px; padding: 12px 14px; font-size: 15px; }

.mini-shop {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px;
}
.mini-shop-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mini-shop-label { font-size: 12px; font-weight: 600; color: var(--muted-2); }
.mini-shop-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-chip { background: var(--ink); color: var(--yellow); border-radius: 10px; padding: 6px 10px; font-size: 18px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 4px 0; }
.section-head h2 { font-size: 22px; font-weight: 800; }

.file-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; }
.file-row + .file-row { border-top: 1px solid var(--line-2); }
.file-badge { width: 46px; height: 52px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.badge-pdf { background: #FDECEA; color: #A8231A; }
.badge-img { background: #E6EEFF; color: #1F3FBF; }
.badge-word { background: #E3F0FB; color: #0B4F8A; }
.badge-excel { background: #E5F5EA; color: #11663A; }
.badge-ppt { background: #FFF0E0; color: #8A4300; }
.file-text { flex: 1; min-width: 0; }
.file-name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 14px; color: var(--muted-2); margin-top: 2px; }
.file-note { color: var(--green-ink); }
.icon-btn { width: var(--tap); height: var(--tap); border: none; background: transparent; border-radius: 12px; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }

.add-btn {
  min-height: 56px; border: 2px dashed #B9BEC8; border-radius: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; cursor: pointer;
}

/* "Dosya ekle" on the code screen: send more files to the same code */
.add-more {
  min-height: 72px; border-radius: 20px; background: #FFF4EA; border: 2px dashed var(--yellow); color: var(--ink);
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.add-more > svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--yellow); }
.add-more:active { transform: translateY(1px); }
.add-more-text { display: flex; flex-direction: column; gap: 2px; }
.add-more-title { font-family: var(--font-display); font-weight: 900; font-size: 20px; }
.add-more-sub { font-size: 14px; color: var(--muted); }

.meter { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.meter-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); gap: 12px; }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-big { height: 14px; width: 100%; }
.bar-fill { height: 100%; width: 0; border-radius: 99px; transition: width .2s ease; }
.bar-ink { background: var(--ink); }
.bar-yellow { background: var(--yellow); }

.bottom-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.send-btn {
  min-height: 64px; border: none; border-radius: 18px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 900 24px var(--font-display); cursor: pointer;
}
.send-btn:disabled { opacity: .5; cursor: not-allowed; }
.link-btn { min-height: var(--tap); border: none; background: transparent; color: var(--muted); font: 600 15px var(--font-body); cursor: pointer; }

.upload-card { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 22px; }
.upload-icon { width: 72px; height: 72px; border-radius: 50%; background: #FFEBD9; display: grid; place-items: center; }
.upload-title { font-size: 28px; font-weight: 900; }
.upload-card .meter-row { width: 100%; }

.code-card {
  background: var(--ink); border-radius: 28px; padding: 24px 20px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.digits { display: flex; gap: 10px; }
.digit {
  width: 86px; height: 104px; border-radius: 18px; background: var(--ink-2); color: var(--yellow);
  font: 900 76px/1 var(--font-display); display: grid; place-items: center;
}
.code-say { font-size: 19px; font-weight: 600; color: #fff; }
.code-sub { font-size: 16px; color: #C9CDD6; margin-top: -8px; }

.status-card { display: flex; align-items: center; gap: 12px; padding: 18px; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: #C9CDD6; }
.status-waiting, .status-ready { background: #F07A10; box-shadow: 0 0 0 5px #FFEBD9; }
.status-done { background: var(--green); box-shadow: 0 0 0 5px var(--green-bg); }
.status-expired, .status-gone { background: #9AA0AC; }
.status-arrived, .status-doneOut { background: var(--green); box-shadow: 0 0 0 5px var(--green-bg); }

.out-card { display: flex; flex-direction: column; gap: 12px; }
.out-head { display: flex; align-items: center; gap: 12px; background: var(--green-bg); border-radius: 18px; padding: 14px 16px; }
.out-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex-shrink: 0; }
.out-head-text { display: flex; flex-direction: column; gap: 2px; }
.out-head-text b { font: 900 20px var(--font-display); color: #0E5530; }
.out-head-text span { font-size: 14px; color: var(--green-ink); }
.out-card .file-row .btn { flex-shrink: 0; }
.save-all { min-height: 76px; }
.save-all .big-btn-title { font-size: 24px; }
.status-text { font-size: 17px; font-weight: 700; }
.info { margin: 0; font-size: 14px; color: var(--muted); padding: 0 6px; }

.legal { text-align: center; font-size: 13px; color: var(--muted-2); padding: 14px 8px 4px; }

@media (max-width: 360px) {
  .digit { width: 72px; height: 92px; font-size: 64px; }
  .shop-name { font-size: 26px; }
  .big-btn-title { font-size: 26px; }
}

/* ---------- Shared small pieces ---------- */

.small { font-size: 13px; }
.center { text-align: center; }
.btn-block { width: 100%; }
.btn-sm { min-height: var(--tap); padding: 0 14px; font-size: 15px; }
.btn-xl { min-height: 64px; padding: 0 32px; font-size: 22px; color: var(--ink); }
.notice { margin: 0; background: var(--green-bg); color: var(--green-ink); border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Privacy notice ---------- */

.legal-page { max-width: 760px; padding: 28px 16px 56px; display: flex; flex-direction: column; gap: 16px; }
.legal-page h1 { font-size: 30px; font-weight: 900; margin-top: 8px; }
.legal-page h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.legal-page p { margin: 0 0 8px; }
.legal-page ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- QR poster (qr.html), printed on A4 ---------- */

.qr-page { background: var(--ground); }
.qr-bar-shop::before { content: " · "; color: #6F86BF; }
.qr-bar-shop:empty::before { content: none; }

/* Poster on the left, scaled by qr.js to fit the window; actions on the right. */
.qr-layout {
  max-width: 1280px; margin: 0 auto; padding: 24px; display: grid;
  grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start;
}
.qr-stage {
  min-width: 0; display: grid; place-items: center; padding: 24px; border-radius: 24px;
  background: radial-gradient(70% 60% at 50% 30%, #E9ECF2 0%, #D3D8E2 100%);
}
.poster-fit { position: relative; width: calc(210mm * var(--s, .5)); height: calc(297mm * var(--s, .5)); }
.poster-fit .poster { position: absolute; top: 0; left: 0; transform: scale(var(--s, .5)); transform-origin: top left; }

.qr-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.qr-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.qr-title { font-size: 28px; font-weight: 900; }
.qr-lead { margin: -6px 0 0; color: var(--muted); font-size: 15px; }
.qr-print {
  min-height: 60px; border: none; border-radius: 16px; background: var(--yellow); color: var(--ink); cursor: pointer;
  box-shadow: 0 3px 0 var(--yellow-edge); font: 900 22px var(--font-display);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.qr-print:hover { filter: brightness(1.04); }
.qr-print:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-edge); }
.qr-print:disabled { opacity: .5; cursor: progress; }
.qr-field { display: flex; flex-direction: column; gap: 8px; }
.qr-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ground); }
.seg button {
  min-height: 44px; border: none; border-radius: 11px; background: transparent; cursor: pointer;
  font: 700 15px var(--font-body); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 31, 79, .16); }
.seg-dot { width: 14px; height: 14px; border-radius: 50%; }
.seg-dot-color { background: conic-gradient(var(--yellow) 0 50%, var(--ink) 0); }
.seg-dot-bw { background: conic-gradient(#000 0 50%, #fff 0); box-shadow: inset 0 0 0 1.5px #000; }
.qr-tips { margin: 0; padding: 14px 16px 14px 34px; border-radius: 14px; background: #FFF4EA; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.qr-tips li::marker { color: var(--yellow-edge); }
.qr-small { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.qr-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--ground); }
.qr-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px ui-monospace, monospace; }
.qr-danger {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  border: 1px dashed #E3B4AF; background: #FFF8F7;
}
.qr-danger b { font-size: 15px; }
.qr-danger p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.qr-danger .btn { flex: none; }

@media screen and (max-width: 1000px) {
  .qr-layout { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .qr-side { position: static; order: -1; }
  .qr-stage { padding: 16px; }
}

.poster {
  width: 210mm; height: 297mm; background: #fff; color: var(--ink);
  box-shadow: 0 18px 50px rgba(10, 31, 79, .28); box-sizing: border-box; padding: 14mm 16mm 12mm;
  display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.poster-logo { height: 20mm; width: auto; }
.poster-logo-bw { display: none; height: 26mm; }
.poster-band {
  width: 100%; margin-top: 8mm; padding: 7mm 6mm; border-radius: 6mm; background: var(--yellow); color: var(--ink);
}
.poster-call { font: 800 15pt var(--font-body); letter-spacing: .08em; }
.poster-name { font: 900 34pt/1.05 var(--font-display); margin-top: 2mm; text-transform: uppercase; overflow-wrap: anywhere; }
.poster-district { font: 500 15pt var(--font-body); margin-top: 1.5mm; }
.poster-qr-frame { margin-top: 9mm; padding: 6mm; border: 2mm solid var(--ink); border-radius: 7mm; background: #fff; }
.poster-qr { width: 112mm; height: 112mm; }
.poster-qr svg { display: block; width: 100%; height: 100%; }
.poster-url { margin-top: 3mm; font: 600 11pt var(--font-body); color: var(--muted); letter-spacing: .02em; }
.poster-steps {
  list-style: none; margin: 9mm 0 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5mm;
}
.poster-steps li { display: flex; flex-direction: column; align-items: center; gap: 3mm; font: 700 14pt var(--font-body); }
.poster-num {
  width: 13mm; height: 13mm; border-radius: 50%; background: var(--ink); color: var(--yellow);
  display: grid; place-items: center; font: 900 18pt var(--font-display);
}
.poster-claim { margin-top: auto; font: 800 20pt var(--font-display); }
.poster-note { margin-top: 2mm; font: 500 12pt var(--font-body); color: var(--muted); }

/* Black & white printers: no colour fills, black outlines instead. */
.bw .poster-logo-color { display: none; }
.bw .poster-logo-bw { display: block; }
.bw .poster { color: #000; }
.bw .poster-band { background: #fff; border: 1.2mm solid #000; color: #000; }
.bw .poster-qr-frame { border-color: #000; }
.bw .poster-num { background: #000; color: #fff; }
.bw .poster-url, .bw .poster-note { color: #333; }

@page { size: A4 portrait; margin: 0; }
@media print {
  html, body, .qr-page { background: #fff; }
  .no-print { display: none !important; }
  .qr-layout, .qr-stage { display: block; padding: 0; margin: 0; max-width: none; background: none; border-radius: 0; }
  .poster-fit { width: auto; height: auto; }
  .poster-fit .poster { position: static; transform: none; }
  .poster { margin: 0; box-shadow: none; page-break-after: avoid; }
}

/* ---------- Form fields (admin) ---------- */

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input {
  min-height: 46px; border: 1.5px solid #D5D9E1; border-radius: 12px; padding: 0 12px;
  font: 500 16px var(--font-body); color: var(--ink); background: #FAFBFC;
}
.field input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(255, 138, 31, .35); }

/* ---------- Panel ---------- */

.brand-logo { display: block; height: 32px; width: auto; }
.brand-logo-lg { height: 48px; }
.brand-logo-dark { display: block; height: 40px; width: auto; }

.pbar { background: #021747; color: #fff; } /* matches the dark logo's background */
.pbar-in { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.pbar-sep { width: 1px; height: 22px; background: #24427F; }
.pbar-shop { font-size: 17px; font-weight: 600; }
.pbar-note { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #C9CDD6; }
.pbar-note.on { color: #8FE0B0; }
.pbar-btn {
  min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #24427F; background: transparent;
  color: #fff; font: 600 15px var(--font-body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}

.accept-switch {
  min-height: 40px; padding: 0 6px 0 14px; border-radius: 999px; border: none; background: var(--green); color: #fff;
  font: 700 15px var(--font-body); display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
}
.accept-switch.off { background: var(--red); }
.accept-switch:disabled { opacity: .7; cursor: progress; }
.accept-track { width: 44px; height: 26px; border-radius: 99px; background: #fff; display: flex; align-items: center; padding: 0 3px; box-sizing: border-box; justify-content: flex-end; }
.accept-switch.off .accept-track { justify-content: flex-start; }
.accept-knob { width: 20px; height: 20px; border-radius: 50%; background: var(--green); }
.accept-switch.off .accept-knob { background: var(--red); }
a.pbar-btn { text-decoration: none; }
.stopped-bar { background: var(--red); color: #fff; text-align: center; font-weight: 700; padding: 8px 16px; font-size: 15px; }

.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(10, 31, 79, .55);
  display: grid; place-items: center; padding: 16px;
}
.overlay-card { max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 32px 28px; }
.overlay-card h1 { font-size: 30px; font-weight: 900; }
.overlay-card p { margin: 0; }
.overlay-icon { width: 72px; height: 72px; border-radius: 50%; background: #FFEBD9; display: grid; place-items: center; }

/* Account not usable yet (pending approval, suspended, licence ended) */
.panel-blocked .tabbar, .panel-blocked #btn-accepting, .panel-blocked #sound-state, .panel-blocked #pbar-qr { display: none !important; }
.acct { display: grid; place-items: center; padding: 32px 0; }
.acct-card { max-width: 560px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 36px 32px; }
.acct-card h1 { font-size: 30px; font-weight: 900; }
.acct-text { margin: 0; color: var(--muted); font-size: 17px; }
.acct-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #FFEBD9; color: #C25400; }
.acct-icon[data-state="suspended"], .acct-icon[data-state="expired"] { background: #FDECEA; color: var(--red); }
.acct-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 6px 0 0; padding: 16px 18px; width: 100%; text-align: left; background: var(--ground); border-radius: 14px; font-size: 15px; }
.acct-info dt { color: var(--muted-2); font-weight: 600; }
.acct-info dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.acct-card .small { margin: 0; }

/* ---------- Admin ---------- */

.btn-google { min-height: 52px; padding: 0 22px; gap: 12px; font-size: 17px; }
.btn-google svg { background: #fff; border-radius: 50%; padding: 3px; width: 26px; height: 26px; }
.admin { display: flex; flex-direction: column; gap: 16px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.admin-head h1 { font-size: 30px; font-weight: 900; }
.admin-search {
  min-height: 44px; width: min(360px, 100%); padding: 0 14px; border: 1.5px solid #D5D9E1; border-radius: 12px;
  font: 500 15px var(--font-body); color: var(--ink); background: #fff;
}
.admin-search:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 138, 31, .35); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-filters button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: 600 14px var(--font-body); color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
}
.admin-filters button b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--ground); display: grid; place-items: center; font-size: 13px; }
.admin-filters button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-filters button[aria-selected="true"] b { background: var(--yellow); color: var(--ink); }
.admin-filters [data-filter="pending"] b:not(:empty) { background: #FFEBD9; color: #A04A00; }

.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.admin-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 16px; padding: 18px 20px;
}
.admin-row-pending { border-left-color: var(--yellow); }
.admin-row-suspended, .admin-row-expired { border-left-color: var(--red); }
.admin-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.admin-title b { font: 900 20px var(--font-display); }
.admin-district { color: var(--muted-2); font-size: 14px; }
.admin-badge { border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.admin-badge-active { background: var(--green-bg); color: var(--green-ink); }
.admin-badge-pending { background: #FFEBD9; color: #A04A00; }
.admin-badge-suspended, .admin-badge-expired { background: #FDECEA; color: #8A1C12; }
.admin-badge-muted { background: var(--ground); color: var(--muted); }
.admin-info { display: grid; grid-template-columns: repeat(5, auto); grid-auto-flow: column; grid-template-rows: auto auto; justify-content: start; gap: 2px 28px; margin: 10px 0 0; font-size: 14px; }
.admin-info dt { color: var(--muted-2); font-size: 12px; font-weight: 600; }
.admin-info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.admin-info a { color: var(--link); text-decoration: none; }
.admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 360px; }
.btn-ghost-danger { color: var(--red); border-color: #F1C4BF; }
.btn-ghost-danger:hover { background: #FDECEA; }
.admin-empty { text-align: center; color: var(--muted); padding: 40px 0; margin: 0; }

.admin-dlg { max-width: 460px; }
.admin-dlg-wide { max-width: 620px; }
.admin-form { display: flex; flex-direction: column; gap: 14px; }
.admin-form h2 { margin: 0; }
.admin-form > p { margin: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.admin-grid-full { grid-column: 1 / -1; }
.lic-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.link-box { width: 100%; border: 1.5px solid #D5D9E1; border-radius: 12px; padding: 10px 12px; font: 500 13px ui-monospace, monospace; color: var(--ink); background: var(--ground); resize: none; }

@media (max-width: 900px) {
  .admin-row { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; max-width: none; }
  .admin-info { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: auto 1fr; gap: 4px 16px; }
}
@media (max-width: 560px) {
  .admin-grid { grid-template-columns: 1fr; }
  .lic-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pwrap { max-width: 1280px; margin: 0 auto; padding: 24px 24px 48px; display: flex; flex-direction: column; gap: 18px; }
#v-inbox, #v-job { display: flex; flex-direction: column; gap: 20px; }
#v-inbox[hidden], #v-job[hidden] { display: none; }

.inbox-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.inbox-head h1 { font-size: 32px; font-weight: 900; }
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  border-radius: 14px; padding: 12px 18px; font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(10, 31, 79, .3);
}

/* Tab bar: one tab per waiting job, labelled with its code. */
.tabbar { background: #fff; border-bottom: 1px solid var(--line); }
.tabbar-in { display: flex; align-items: center; gap: 8px; padding: 8px 24px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; padding: 8px 2px 4px; scrollbar-width: thin; }
.tab {
  flex-shrink: 0; position: relative; min-height: 56px; border: 1px solid var(--line); background: var(--ground);
  border-radius: 14px; padding: 6px 14px; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; cursor: pointer; color: var(--ink); font: inherit; text-align: left;
}
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-code { font-size: 26px; line-height: 1; letter-spacing: .08em; }
.tab.active .tab-code { color: var(--yellow); }
.tab-sub { font-size: 12px; color: var(--muted-2); margin-top: 3px; white-space: nowrap; }
.tab.active .tab-sub { color: #C9CDD6; }
.tab-warn:not(.active) { border-color: #F2A7A0; background: #FDECEA; }
.tab-warn:not(.active) .tab-sub { color: var(--red); font-weight: 700; }
.tab-new:not(.active) { background: #FFEBD9; border: 2px solid var(--yellow); animation: tab-pulse 1.2s ease-in-out 3; }
.tab-badge {
  position: absolute; top: -8px; right: -6px; background: var(--yellow); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: .04em; border-radius: 6px; padding: 2px 5px;
}
@keyframes tab-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 138, 31, .45); } }
@media (prefers-reduced-motion: reduce) { .tab-new:not(.active) { animation: none; } }
.tab-all { flex-direction: row; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-top: 4px; }
.tab-all-count {
  background: var(--ink); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; padding: 0 6px;
  display: grid; place-items: center; font-size: 13px;
}
.tab-all.active .tab-all-count { background: var(--yellow); color: var(--ink); }
.tabbar-hint { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-2); }
.tab-send {
  flex-direction: row; align-items: center; gap: 8px; margin-top: 4px; font-weight: 700; font-size: 15px;
  background: #fff; border: 2px dashed #B9BEC8;
}
.tab-send.active { border-style: solid; }
.tab-send.active svg { color: var(--yellow); }

/* "Koda dosya gönder" view */
#v-send { display: flex; flex-direction: column; }
#v-send[hidden] { display: none; }
.send-layout { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
.send-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.send-title { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.send-code { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.send-code-input {
  width: 100%; height: 76px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink);
  font-size: 48px; text-align: center; letter-spacing: .3em; padding: 0 0 0 .3em;
}
.send-code-input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
.send-match {
  border-radius: 14px; padding: 10px 14px; background: var(--ground); color: var(--muted);
  display: flex; flex-direction: column; gap: 2px; font-size: 14px;
}
.send-note { margin: 0; }
.send-files { min-width: 0; }
.send-files:has(.send-list:empty) .drop { min-height: 320px; }
.send-list { overflow-y: auto; }
.send-list:empty { display: none; }
.send-match-ok { background: var(--green-bg); color: var(--green-ink); }
.send-match-ok b { color: #0E5530; font-size: 16px; }
.send-match-bad { background: #FDECEA; color: #8A1C12; font-weight: 600; }
.send-files { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.drop {
  min-height: 120px; border: 2px dashed #B9BEC8; border-radius: 16px; background: #FAFAFB; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  text-align: center; padding: 12px;
}
.drop:hover, .drop.drop-hover { border-color: var(--ink); background: #FFF2E6; }
.send-list { list-style: none; margin: 0; padding: 0; }
.send-row { cursor: default; border-top: 1px solid var(--line-2); }
.send-out-btn {
  min-height: 64px; border: none; border-radius: 18px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 900 22px var(--font-display); cursor: pointer;
}
.send-out-btn:disabled { opacity: .45; cursor: not-allowed; }
.sent-box { display: flex; flex-direction: column; gap: 8px; }
.sent-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }

.to-send-btn {
  min-height: 44px; border-radius: 12px; border: 2px dashed #B9BEC8; background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none;
}
.to-send-btn:hover { border-color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.jcard {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 5px;
}
.jcard:hover { border-color: var(--ink); }
.jcard-new { border: 3px solid var(--yellow); box-shadow: 0 8px 24px rgba(217, 101, 10, .25); padding: 12px 14px; }
.jcard-badge {
  position: absolute; top: 12px; right: 12px; background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; border-radius: 7px; padding: 3px 7px;
}
.jcard-code { font-size: 56px; line-height: 1; letter-spacing: .08em; }
.jcard-sum { font-size: 15px; font-weight: 600; }
.jcard-sub { font-size: 13px; color: var(--muted-2); }
.jcard .bar { height: 6px; margin-top: 4px; }
.jcard-left { font-size: 13px; color: var(--muted); }
.jcard-left.warn { color: var(--red); font-weight: 700; }
.bar-green { background: var(--green); }
.bar-orange { background: var(--red); } /* time running out */

.empty { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 28px; }

/* "Tümü" welcome area */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 26px 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #1E6BFF 0%, rgba(30, 107, 255, 0) 55%),
              linear-gradient(135deg, #021747 0%, #0A2A6B 100%);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 31, .35) 0%, rgba(255, 138, 31, 0) 70%); pointer-events: none;
}
.hero-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero-greet { font-size: 15px; font-weight: 600; color: #B9C8F0; }
.hero-title { font: 900 36px/1.1 var(--font-display); overflow-wrap: anywhere; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 12px;
  background: rgba(255, 255, 255, .12); color: #E3E9FB; font-size: 14px; font-weight: 600;
}
.hero-badge-on { background: rgba(30, 158, 85, .25); color: #B8F0CF; }
.hero-badge-off { background: rgba(180, 35, 24, .4); color: #FFD7D3; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.hero-qr {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 12px 16px 12px 12px;
}
.mini-qr { width: 92px; height: 92px; background: #fff; border-radius: 10px; padding: 7px; box-sizing: border-box; flex-shrink: 0; }
.mini-qr svg { display: block; width: 100%; height: 100%; }
.hero-qr-text { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.hero-qr-text b { font-size: 15px; }
.hero-qr-url { font-size: 13px; color: #B9C8F0; }
.hero-qr-btn {
  margin-top: 4px; min-height: 36px; padding: 0 14px; border-radius: 10px; background: var(--yellow); color: var(--ink);
  display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; text-decoration: none;
}
.inbox-head h2 { font-size: 22px; font-weight: 800; }

.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 34px 20px; border-radius: 22px; background: #fff; border: 2px dashed #D3D8E4;
}
.empty-state[hidden] { display: none; }
.empty-state b { font: 800 20px var(--font-display); }
.empty-state span { color: var(--muted); max-width: 420px; }
.empty-pulse { position: relative; width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 6px; }
.empty-pulse img { position: relative; z-index: 1; }
.empty-pulse::before, .empty-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 138, 31, .22);
  animation: pulse-ring 2.4s ease-out infinite;
}
.empty-pulse::after { animation-delay: 1.2s; }
@keyframes pulse-ring { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .empty-pulse::before, .empty-pulse::after { animation: none; opacity: .5; } }

.steps-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.steps-strip li {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  counter-increment: step;
}
.steps-strip li span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.steps-strip b { font-size: 15px; }
.steps-strip small, .quick small { font-size: 13px; color: var(--muted); }
.step-icon, .quick-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: #EAF1FF; color: #1E5BD8;
}
.steps-strip li:nth-child(2) .step-icon { background: #FFEBD9; color: #C25400; }
.steps-strip li:nth-child(3) .step-icon { background: #EEF0F3; color: var(--ink); }
.steps-strip li:nth-child(4) .step-icon { background: var(--green-bg); color: var(--green-ink); }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.quick {
  display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; font: inherit; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.quick:hover { border-color: var(--ink); transform: translateY(-1px); }
.quick span:last-child { display: flex; flex-direction: column; gap: 2px; }
.quick b { font-size: 15px; }
.quick-icon { background: var(--ink); color: var(--yellow); }
.hint { background: var(--card); border: 1px dashed #C9CDD6; border-radius: 14px; padding: 12px 16px; font-size: 15px; color: var(--muted); }
.hint b { color: var(--ink); }

.settings { display: flex; flex-direction: column; gap: 12px; }
.settings-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.settings-label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.settings-label b { color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: var(--tap); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }

/* Job detail: narrow work column on the left, preview fills the rest of the screen. */
.panel-page.job-open .pwrap { max-width: none; padding-top: 10px; padding-bottom: 12px; gap: 8px; }
#v-job { gap: 10px; }
.job-layout { display: grid; grid-template-columns: minmax(360px, 500px) minmax(0, 1fr); gap: 14px; align-items: start; }
.job-main .back-link { min-height: 32px; }
.job-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.job-head { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.job-head-row { display: flex; align-items: center; gap: 14px; }
.job-code { font-size: 42px; line-height: 1; letter-spacing: .08em; }
.job-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.job-meta span:first-child { color: var(--ink); font-weight: 600; font-size: 15px; }

.dl-btn {
  min-height: 52px; border: none; border-radius: 14px; background: var(--yellow); color: var(--ink);
  box-shadow: 0 3px 0 var(--yellow-edge); display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 6px 14px; cursor: pointer; text-align: left;
}
.dl-btn:disabled { opacity: .6; cursor: progress; }
.dl-text { display: flex; flex-direction: column; min-width: 0; }
.dl-title { font: 900 19px var(--font-display); }
.dl-path { font: 500 12px var(--font-body); color: #4A2200; overflow-wrap: anywhere; }
.job-head .notice { padding: 8px 12px; font-size: 14px; }

.job-files { list-style: none; margin: 0; padding: 4px 0; max-height: calc(100vh - 470px); min-height: 120px; overflow-y: auto; }
.jfile {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 5px 10px 5px 12px; cursor: pointer;
}
.jfile + .jfile { border-top: 1px solid var(--line-2); }
.jfile:hover { background: #FAFAFB; }
.jfile.active { background: #FFEBD9; }
.jfile .file-badge { width: 38px; height: 40px; font-size: 10px; border-radius: 7px; }
.jfile-text { min-width: 0; }
/* Long names wrap to two lines instead of being cut; the full name is in the tooltip. */
.jfile-name {
  font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.jfile-meta { font-size: 12px; color: var(--muted-2); }
.jfile-new { box-shadow: inset 4px 0 0 var(--yellow); }
.jfile-new-badge { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--yellow); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.jfile-actions { display: flex; gap: 6px; }
.mini-btn {
  min-height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid #C9CDD6; background: #fff; color: var(--ink);
  font: 600 13px var(--font-body); display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
}
.mini-btn:hover { border-color: var(--ink); }
.mini-btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.mini-btn-icon { width: 36px; padding: 0; justify-content: center; }
.mini-btn:disabled { opacity: .6; cursor: progress; }
.jfile-note { font-size: 12px; color: var(--muted); background: var(--ground); border-radius: 8px; padding: 6px 8px; white-space: nowrap; }

.done-btn {
  min-height: 56px; border: none; border-radius: 16px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 900 20px var(--font-display); cursor: pointer;
}
.done-btn:disabled { opacity: .6; cursor: progress; }
.done-note { margin: 0; }

.preview {
  position: sticky; top: 10px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  height: calc(100vh - 96px); min-height: 480px;
}
.preview-head { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 4px; }
.preview-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-body {
  position: relative; flex: 1; min-height: 0; background: #DCDFE5; border-radius: 10px;
  display: grid; place-items: center; overflow: hidden;
}
.preview-body > p { padding: 16px; }
.preview-hint {
  position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 5px 10px; border-radius: 8px;
  background: rgba(10, 31, 79, .82); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none;
}
.no-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 360px; padding: 24px; text-align: center; color: var(--muted); font-size: 15px; }
.no-preview b { color: var(--ink); font-size: 18px; }
.no-preview-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); margin-bottom: 4px; }
.preview-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

.zoom-bar { display: flex; align-items: center; gap: 6px; }
.zoom-level { min-width: 52px; text-align: center; font: 700 13px var(--font-body); color: var(--muted); }
.zoom-box {
  position: absolute; inset: 0; overflow: auto; display: flex; overscroll-behavior: contain;
}
.zoom-img {
  display: block; margin: auto; max-width: none; background: #fff; flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(10, 31, 79, .15); user-select: none; -webkit-user-drag: none;
}
.zoom-box.pannable { cursor: grab; }
.zoom-box.panning { cursor: grabbing; }

/* Desktop job view fills the window exactly: file list and preview stretch to the bottom edge. */
@media (min-width: 901px) {
  body.panel-page.job-open { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
  body.job-open .pwrap { flex: 1; min-height: 0; width: 100%; }
  body.job-open #v-job { flex: 1; min-height: 0; }
  body.job-open .job-layout { flex: 1; min-height: 0; align-items: stretch; }
  body.job-open .job-main { min-height: 0; }
  body.job-open .job-files { flex: 1 1 auto; min-height: 0; max-height: none; }
  body.job-open .preview { position: static; height: auto; min-height: 0; }
  body.job-open #v-send { flex: 1; min-height: 0; }
  body.job-open .send-layout { flex: 1; min-height: 0; align-items: stretch; }
  body.job-open .send-side { min-height: 0; overflow-y: auto; }
  body.job-open .send-files { display: flex; flex-direction: column; min-height: 0; }
  body.job-open .send-files .drop { flex-shrink: 0; }
  body.job-open .send-files:has(.send-list:empty) .drop { flex: 1; }
  body.job-open .send-list { flex: 1; min-height: 0; }
}

@media (max-width: 900px) {
  .job-layout, .send-layout { grid-template-columns: 1fr; }
  .job-files { max-height: none; }
  .preview { position: static; height: 75vh; }
  .zoom-bar #zoom-100 { display: none; }
  .tabbar-in { padding: 6px 16px; }
  .tabbar-hint { display: none; }
}

.confirm { border: none; border-radius: 22px; padding: 24px; max-width: 420px; width: calc(100% - 32px); }
.confirm::backdrop { background: rgba(10, 31, 79, .55); }
.confirm h2 { font-size: 22px; font-weight: 900; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .pbar-in, .pwrap { padding-left: 16px; padding-right: 16px; }
  .inbox-head h1 { font-size: 26px; }
  .job-code { font-size: 60px; }
}
