:root { color-scheme: light; --ink: #123249; --muted: #596e7d; --blue: #1765b3; --pale: #eef5f9; --line: #d3dfe6; --danger: #a3292f; font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; color: var(--ink); background: #f8fafc; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-underline-offset: 3px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #3984ca; outline-offset: 4px; }
.topbar { min-height: 88px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 20px max(24px, calc((100vw - 1160px) / 2)); gap: 24px; }
.brand { font-size: 25px; font-weight: 750; color: var(--ink); text-decoration: none; letter-spacing: -.8px; white-space: nowrap; }
.brand span { margin-left: 9px; font-weight: 400; color: var(--muted); }
.account { display: flex; gap: 24px; align-items: center; font-size: 14px; }
#identity { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sign-out { white-space: nowrap; }
main { max-width: 1208px; padding: 48px 24px 64px; margin: 0 auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.13; letter-spacing: -1.6px; font-weight: 650; margin-bottom: 12px; }
h2 { font-size: 21px; font-weight: 650; letter-spacing: -.4px; margin-bottom: 10px; }
h3 { font-size: 20px; }
p { line-height: 1.65; color: var(--muted); max-width: 68ch; }
.muted, .footnote { color: var(--muted); font-size: 13px; }
.button { border: 1px solid var(--line); background: white; border-radius: 7px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; min-height: 44px; }
.button:hover { background: var(--pale); }
.primary { background: var(--blue); color: white; border-color: var(--blue); }
.primary:hover { background: #0c5294; }
.text-button { background: transparent; border: 0; padding: 10px 0; color: var(--blue); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.login-layout { min-height: 65vh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 80px; }
.intro h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -2.7px; }
.intro p { font-size: 19px; }
.file-mark { color: var(--blue); width: 84px; margin-bottom: 30px; }
.file-mark svg { display: block; width: 100%; }
.login-form { background: white; padding: 36px; border: 1px solid var(--line); border-radius: 12px; max-width: 470px; }
.login-form .button { width: 100%; }
#login-status:empty, #library-status:empty { display: none; }
#login-status { margin: 16px 0 0; font-size: 14px; }
.error { color: var(--danger); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.page-heading p { margin: 0; }
.totals { display: flex; gap: 64px; margin: 0 0 36px; padding: 0 0 30px; border-bottom: 1px solid var(--line); }
.totals dt { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.totals dd { font-size: 28px; font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -.8px; }
.upload-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; background: var(--pale); border-radius: 10px; padding: 28px; align-items: center; margin-bottom: 20px; }
.upload-panel p { font-size: 14px; margin-bottom: 0; }
.drop-zone { display: flex; gap: 20px; align-items: center; justify-content: center; border: 1px dashed #7d9bb0; border-radius: 7px; background: white; min-height: 112px; padding: 24px; position: relative; cursor: pointer; font-size: 14px; }
.drop-zone strong { color: var(--blue); }
.drop-zone input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone:focus-within, .drop-zone.dragging { outline: 3px solid #3984ca; outline-offset: 3px; background: #f1f8ff; }
.upload-queue { display: grid; gap: 9px; }
.queue-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px; border: 1px solid var(--line); background: white; border-radius: 6px; }
.queue-name { min-width: 0; overflow-wrap: anywhere; }
.queue-item p { margin: 5px 0 0; font-size: 13px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 38px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; background: white; }
th { color: var(--muted); font-weight: 500; font-size: 13px; padding: 13px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 20px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
td:nth-child(3), td:nth-child(4) { text-align: right; }
th:nth-child(3), th:nth-child(4) { text-align: right; }
.image-cell { display: flex; align-items: center; gap: 16px; min-width: 230px; }
.thumbnail { width: 64px; height: 54px; object-fit: contain; background: var(--pale); border-radius: 5px; flex: none; }
.file-name { display: block; font-weight: 600; color: var(--ink); text-decoration: none; max-width: 300px; overflow-wrap: anywhere; }
.file-detail { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.share-actions { display: flex; gap: 8px; white-space: nowrap; }
.share-actions .button { padding: 8px 11px; font-size: 12px; }
.empty-state { background: white; border: 1px solid var(--line); padding: 48px 24px; text-align: center; border-radius: 8px; }
.empty-state p { margin: 0 auto; }
.footnote { margin-top: 24px; }
.load-more { display: flex; margin: 24px auto; }
.viewer main { max-width: 1100px; }
.viewer h1 { font-size: 28px; letter-spacing: -.8px; overflow-wrap: anywhere; }
.viewer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.viewer-heading p { font-size: 14px; }
.image-stage { background: #e4edf3; border-radius: 9px; padding: 24px; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.image-stage img { display: block; max-width: 100%; max-height: 75vh; object-fit: contain; }
#viewer-status { margin-top: 16px; }
.message-page { max-width: 720px; padding-top: 100px; }
.message-page .brand { display: block; margin-bottom: 48px; }
@media (max-width: 760px) {
  .topbar { min-height: 72px; padding: 16px 20px; }
  main { padding: 32px 20px; }
  .login-layout { grid-template-columns: 1fr; gap: 24px; min-height: auto; }
  .intro h1 { font-size: 42px; letter-spacing: -1.8px; }
  .file-mark { width: 56px; margin-bottom: 20px; }
  .login-form { padding: 24px; max-width: none; }
  .totals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-heading { align-items: flex-start; }
  .page-heading .button { flex: none; font-size: 12px; padding: 9px; }
  .upload-panel { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 8px; }
  .viewer-heading { display: block; margin-bottom: 24px; }
  .image-stage { padding: 12px; }
  .queue-item { align-items: flex-start; gap: 12px; }
  .account { gap: 12px; }
  #identity { max-width: 105px; }
}
