@charset "UTF-8";
:root {
  --blue: #314e87; --ink: #252a35; --muted: #626b79; --border: #e0e4eb;
  --surface: #fff; --background: #f2f3f5; --shadow: 0 8px 30px #252a3507; --radius: 24px;
  font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--background); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 550; letter-spacing: -.6px; }
button, input { font: inherit; }
button { cursor: pointer; transition: background .16s ease, border-color .16s ease; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.shell { max-width: 1480px; margin: auto; padding: 0 40px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 13px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: #263e6d; }
.secondary { background: white; border-color: var(--border); color: var(--ink); }
.secondary:hover { background: #eaf0f8; }
.full { width: 100%; }
.product-label { color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-layout { min-height: 100svh; display: grid; place-items: center; padding: 36px 0; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 36px; box-shadow: 0 16px 50px #252a3509; width: min(100%, 420px); }
.login-logo { display: block; width: 100%; max-width: 288px; height: auto; margin: 0 auto 30px; }
.login-card h1 { font-size: 29px; margin: 8px 0 12px; }
.login-description { color: var(--muted); font-size: 14px; line-height: 1.75; }
form { margin-top: 28px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
input { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #cdd4df; border-radius: 12px; background: #fafbfc; color: var(--ink); }
.password-label { margin-top: 22px; }
.password-wrap { position: relative; margin-bottom: 24px; }
.password-wrap input { padding-right: 88px; }
.password-toggle { position: absolute; right: 4px; top: 2px; min-height: 44px; min-width: 76px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--blue); font-size: 12px; }
.message { color: var(--blue); font-size: 13px; line-height: 1.65; margin-top: 16px; min-height: 22px; overflow-wrap: anywhere; }
.message.error { color: #923b36; }
.login-note { color: var(--muted); font-size: 12px; line-height: 1.6; padding-top: 20px; margin-top: 12px; border-top: 1px solid var(--border); text-align: center; }
.topbar { min-height: 100px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--border); }
.brand { display: block; max-width: 240px; flex-shrink: 0; }
.brand img { display: block; width: 100%; height: auto; }
.section-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 16px; background: #e9ecf0; }
.nav-item { min-height: 44px; padding: 10px 19px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); font-size: 13px; }
.nav-item.active { color: var(--blue); background: white; border-color: var(--border); box-shadow: 0 2px 6px #252a3505; }
.top-actions { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.user-label { font-size: 12px; color: var(--muted); max-width: 170px; overflow-wrap: anywhere; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0 0; }
.workspace-heading h1 { font-size: clamp(26px, 3vw, 36px); margin-top: 5px; }
.dashboard-message { margin: 10px 0 20px; }
.photo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: stretch; }
.photo-card, .history-section { background: var(--surface); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.card-heading h2 { font-size: 19px; }
.subtle-tag { font-size: 11px; color: var(--muted); background: #f2f4f7; padding: 8px 12px; border-radius: 10px; }
.photo-stage { position: relative; width: 100%; min-width: 0; aspect-ratio: 16 / 9; background: #eef0f3; border-radius: 17px; overflow: hidden; display: grid; place-items: center; }
.photo-stage > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.visual-state { color: var(--muted); font-size: 13px; line-height: 1.8; text-align: center; padding: 32px 20px; }
.image-expand { position: absolute; right: 14px; bottom: 14px; background: #fffffff2; border-color: white; box-shadow: var(--shadow); color: var(--ink); }
.photo-caption { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 16px; }
.metrics { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; }
.metric { background: white; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.metric h2 { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.metric strong { font-size: clamp(23px, 2.3vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -.7px; overflow-wrap: anywhere; }
.metric span, .metric small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.history-section { margin-top: 24px; }
.history-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.capture-card { width: 100%; min-width: 0; padding: 0; text-align: left; border: 1px solid var(--border); border-radius: 16px; background: white; color: var(--ink); overflow: hidden; }
.capture-card:hover { border-color: #93a6c6; }
.thumbnail { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #eef0f3; overflow: hidden; }
.thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.thumbnail > span { font-size: 11px; text-align: center; padding: 16px; }
.capture-info { display: block; padding: 15px; }
.capture-info strong { font-size: 13px; font-weight: 600; }
.capture-info small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border); padding-top: 18px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.pagination > div { display: flex; gap: 8px; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 25px 0; color: var(--muted); font-size: 11px; }
dialog { width: min(1100px, calc(100vw - 40px)); max-height: 92svh; border: 1px solid var(--border); border-radius: 24px; padding: 24px; background: white; color: var(--ink); box-shadow: 0 24px 80px #252a3533; }
dialog::backdrop { background: #252a35b3; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 21px; }
dialog > img { display: block; width: 100%; max-height: 68svh; object-fit: contain; background: #eef0f3; border-radius: 14px; }
dialog > p { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 16px; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 10; padding: 14px; background: var(--blue); color: white; border-radius: 12px; }
.skip-link:focus { top: 12px; }
@media (max-width: 1050px) {
  .shell { padding: 0 24px; }
  .topbar { gap: 20px; flex-wrap: wrap; padding: 20px 0; }
  .brand { max-width: 210px; }
  .user-label { max-width: 130px; }
  .photo-layout { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
  .metric { padding: 20px; }
}
@media (max-width: 700px) {
  .shell { padding: 0 16px; }
  .topbar { gap: 18px; }
  .brand { max-width: 200px; width: 56%; }
  .section-nav { order: 3; width: 100%; }
  .nav-item { flex: 1; }
  .top-actions { gap: 0; }
  .user-label { display: none; }
  .top-actions .button { padding: 10px 12px; font-size: 12px; }
  .workspace-heading { padding-top: 25px; gap: 12px; }
  .workspace-heading h1 { font-size: 26px; }
  .workspace-heading .button { padding: 10px 12px; font-size: 12px; }
  .workspace-heading .button svg { display: none; }
  .photo-card, .history-section { padding: 16px; border-radius: 20px; }
  .photo-layout { gap: 16px; }
  .card-heading h2 { font-size: 18px; }
  .subtle-tag { font-size: 10px; padding: 7px 9px; }
  .metrics { grid-template-columns: 1fr; gap: 10px; }
  .metric { padding: 18px 20px; border-radius: 18px; }
  .metric strong { font-size: 26px; }
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .capture-info { padding: 12px; }
  .capture-info small { font-size: 10px; }
  .pagination { flex-wrap: wrap; }
  .pagination > div { margin-left: auto; }
  .login-card { padding: 28px 24px; border-radius: 24px; }
  .login-logo { max-width: 260px; }
  dialog { width: calc(100vw - 24px); padding: 16px; }
  .dialog-heading h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
