:root {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #202222;
  background: #fafaf8;
  font-synthesis: none;
  --paper: #fafaf8;
  --ink: #202222;
  --muted: #626662;
  --line: #dcded6;
  --indigo: #483bc2;
  --indigo-dark: #342b98;
  --pale: #eeedf9;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a, input { outline-offset: 3px; }
:focus-visible { outline: 3px solid #7970df; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
svg { flex-shrink: 0; }
h1,h2,h3,p { margin: 0; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(100%); white-space: nowrap; border: 0; }
.boot,.boot-error { width: min(90%,600px); margin: 18vh auto; color: var(--muted); }
.boot-error { display: grid; gap: 20px; justify-items: start; }
.boot-error h1 { color: var(--ink); font-size: 34px; letter-spacing: -.04em; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 23px; font-weight: 730; letter-spacing: -1.3px; color: var(--ink); line-height: 1; }
.brand-mark { display: grid; place-items: center; background: var(--indigo); width: 37px; height: 37px; border-radius: 10px; color: white; }
.primary,.secondary,.quiet,.danger,.icon-link,.nav-btn,.menu-action,.crumb,.item-name { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: none; border: 0; text-decoration: none; }
.primary,.secondary,.danger,.quiet,.icon-link { min-height: 40px; border-radius: 8px; font-size: 14px; font-weight: 580; line-height: 1.2; padding: 10px 15px; }
.primary { background: var(--indigo); color: #fff; border: 1px solid var(--indigo); }
.primary:hover:not(:disabled) { background: var(--indigo-dark); }
.secondary { background: #fff; border: 1px solid #d4d6ce; color: #353933; }
.secondary:hover:not(:disabled) { background: #f4f5f0; border-color: #aaad9f; }
.quiet,.icon-link { color: #575b55; }
.quiet:hover:not(:disabled),.icon-link:hover { color: var(--ink); background: #edeee8; }
.danger { background: #9f3536; color: white; }
.danger:hover:not(:disabled) { background: #7b2627; }
.small { min-height: 35px; padding: 7px 12px; font-size: 13px; }
.icon-only,.icon-link { width: 35px; height: 35px; min-height: 35px; padding: 0; }
.text-field,.code-field { width: 100%; border: 1px solid #adb2a7; background: white; border-radius: 8px; min-height: 46px; padding: 11px 13px; color: var(--ink); }
.field-label { font-size: 13px; font-weight: 620; line-height: 1.5; display: block; }
.field-label > .text-field { display: block; margin-top: 7px; }
.auth-page { min-height: 100svh; background: #fafaf8; padding: 0 clamp(20px,5vw,80px) 40px; }
.auth-header { height: clamp(76px,10vh,105px); display: flex; align-items: center; max-width: 1430px; margin: auto; }
.auth-layout { max-width: 1430px; margin: 0 auto; display: grid; grid-template-columns: minmax(310px,.87fr) minmax(0,1.13fr); min-height: clamp(530px,74vh,810px); border: 1px solid var(--line); border-radius: 23px; overflow: hidden; background: #fff; }
.auth-panel { display: grid; align-items: center; justify-items: center; padding: clamp(30px,5vw,80px); }
.auth-content { width: 100%; max-width: 360px; }
.auth-content h1 { font-size: clamp(38px,4.2vw,69px); letter-spacing: -.07em; line-height: 1.02; font-weight: 615; margin: 0 0 17px; }
.auth-description { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 295px; }
.auth-form { margin-top: 33px; }
.auth-form .field-label { margin-bottom: 7px; }
.auth-form input + button { margin-top: 13px; }
.code-field { letter-spacing: .4em; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 24px; line-height: 1.2; }
.code-field::placeholder { color: #aaaead; }
.auth-submit { width: 100%; min-height: 46px; justify-content: flex-start; gap: 10px; }
.auth-submit svg:last-child { margin-left: auto; }
.auth-error { font-size: 14px; line-height: 1.5; color: #a0373a; overflow-wrap: anywhere; }
.auth-error:not(:empty) { margin-top: 12px; }
.auth-art { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; background: #e9e7fa; border-left: 1px solid #dedbed; }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(to right,rgba(67,56,142,.085) 1px,transparent 1px),linear-gradient(to bottom,rgba(67,56,142,.085) 1px,transparent 1px); background-size: 36px 36px; }
.paper-stack { position: relative; width: 42%; aspect-ratio: .76; transform: rotate(-9deg); }
.paper-sheet,.paper-back { position: absolute; inset: 0; border: 1px solid #8e87ce; border-radius: 3px; }
.paper-back-2 { background: #7165ce; transform: translate(14%,9%) rotate(16deg); }
.paper-back-1 { background: #b7b0ea; transform: translate(6%,4%) rotate(9deg); }
.paper-sheet { background: #fdfcfb; box-shadow: 0 10px 18px rgba(60,49,125,.1); padding: 10%; display: flex; flex-direction: column; align-items: flex-start; }
.paper-rule { height: 1.5%; min-height: 1px; width: 33%; background: #b4b1ca; display: block; margin-bottom: 2.6%; }
.paper-sheet > .paper-rule:nth-child(2) { width: 20%; }
.paper-headline { background: #5049a1; width: 70%; height: 4%; margin: 9% 0 6%; }
.paper-lines { width: 100%; height: 19%; }
.paper-lines .paper-rule { height: 6%; width: 96%; margin-bottom: 4.5%; }
.paper-lines .paper-rule:nth-child(2) { width: 81%; }
.paper-lines .paper-rule:last-child { width: 55%; }
.paper-art { display: flex; height: 39%; width: 100%; align-items: end; gap: 9%; border-bottom: 1px solid #bbb6d6; }
.paper-art i { display: block; width: 27%; height: 48%; background: #c1bbed; }
.paper-art i:nth-child(2) { height: 76%; background: #8174db; }
.paper-art i:nth-child(3) { height: 95%; background: #5145be; }
.paper-footer { width: 100%; height: 1%; background: #d4d2df; margin-top: auto; }
.print-art { background: #e2ebe5; border-left-color: #d0ded4; }
.print-art .art-grid { background-image: linear-gradient(to right,rgba(72,113,83,.09) 1px,transparent 1px),linear-gradient(to bottom,rgba(72,113,83,.09) 1px,transparent 1px); }
.shell { min-height: 100svh; display: grid; grid-template: 70px 1fr / 214px minmax(0,1fr); }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--line); background: #fff; }
.sidebar { border-right: 1px solid var(--line); padding: 32px 18px; background: #f4f5f0; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-btn { width: 100%; justify-content: flex-start; padding: 12px 13px; border-radius: 8px; font-size: 14px; font-weight: 545; color: #50564e; }
.nav-btn:hover { background: #ebede5; }
.nav-btn.active { color: var(--indigo-dark); background: #e6e3f6; font-weight: 630; }
.workspace { padding: clamp(27px,4.2vw,67px) clamp(24px,5.2vw,88px) 70px; position: relative; min-width: 0; }
.workspace > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.workspace.drop-active::after { content: "Drop files to upload"; position: absolute; inset: 14px; border: 2px dashed var(--indigo); border-radius: 13px; background: rgba(239,237,252,.93); color: var(--indigo-dark); display: grid; place-items: center; font-size: 20px; font-weight: 600; pointer-events: none; }
.breadcrumb,.picker-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; overflow-wrap: anywhere; }
.crumb { padding: 2px 0; color: var(--indigo-dark); font: inherit; text-align: left; }
.crumb:hover { text-decoration: underline; }
.title-row { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.title-row h1 { font-size: clamp(34px,3vw,49px); line-height: 1.12; font-weight: 610; letter-spacing: -.06em; overflow-wrap: anywhere; min-width: 0; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.queue-note { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pickup-address { margin-top: 5px; font-size: 13px; color: var(--muted); }
.print-shortcut { display: inline-flex; align-items: center; gap: 5px; color: var(--indigo-dark); text-underline-offset: 2px; overflow-wrap: anywhere; }
.listbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-top: 41px; margin-bottom: 15px; }
.list-title { display: flex; align-items: center; gap: 9px; }
.list-title h2 { font-size: 19px; letter-spacing: -.045em; font-weight: 620; }
.count { display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; background: #eceee7; color: #545a50; border-radius: 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.filter-box { display: flex; align-items: center; gap: 8px; color: #6d736a; border: 1px solid var(--line); border-radius: 7px; background: white; padding: 0 10px; }
.filter-box:focus-within { outline: 2px solid #8177df; }
.filter-field { width: 142px; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 13px; height: 35px; min-width: 0; }
.selection { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; background: #efedf9; border-radius: 8px; padding: 7px 10px; margin-bottom: 12px; }
.sel-count,.selection-tip { font-size: 12px; line-height: 1.4; color: #514b75; }
.sel-count { color: var(--indigo-dark); font-weight: 600; margin-right: 3px; }
.file-list { min-width: 0; }
.files-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 14px; }
.files-table th { background: #f1f2ec; font-weight: 560; color: var(--muted); font-size: 12px; height: 36px; }
.files-table th:first-child { border-radius: 6px 0 0 6px; }
.files-table th:last-child { border-radius: 0 6px 6px 0; }
.files-table td { border-bottom: 1px solid #e2e4db; padding-top: 12px; padding-bottom: 12px; }
.check-cell { width: 43px; text-align: center; }
.checkbox { width: 15px; height: 15px; margin: 0; accent-color: var(--indigo); cursor: pointer; vertical-align: middle; }
.size-cell,.date-cell { color: var(--muted); font-size: 13px; padding-left: 9px; font-variant-numeric: tabular-nums; }
.size-cell { width: 85px; }
.date-cell { width: 157px; }
.actions-cell { width: 44px; }
.item,.item-buttons { display: flex; align-items: center; gap: 10px; min-width: 0; }
.item-icon { width: 34px; height: 36px; display: grid; place-items: center; flex-shrink: 0; border-radius: 7px; }
.type-folder { background: #f5ead3; color: #8f692c; }
.type-pdf { background: #f9e8e5; color: #a54e48; }
.type-print { background: #e6e3f6; color: var(--indigo); }
.type-file { background: #e7ede9; color: #526e5a; }
.item-name { display: block; padding: 3px 0; text-align: left; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 550; color: #30352f; }
.item-name:hover { color: var(--indigo-dark); text-decoration: underline; }
.files-table tbody tr:hover { background: #f5f5f0; }
.files-table .selected,.files-table tr.selected:hover { background: #f1effa; }
.empty-state { text-align: center; padding: clamp(48px,7vw,102px) 15px; margin-top: 4px; border: 1px dashed #c7cbbf; border-radius: 12px; background: #f6f7f2; }
.empty-icon { display: grid; place-items: center; width: 63px; height: 63px; background: #e8e5f6; color: var(--indigo); border-radius: 17px; margin: 0 auto 17px; }
.empty-state h3 { font-size: 21px; font-weight: 605; letter-spacing: -.04em; }
.empty-state p { font-size: 14px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.empty-state button { margin-top: 17px; }
.dialog { color: var(--ink); width: min(405px,calc(100% - 28px)); max-height: 85svh; overflow-y: auto; border: 1px solid #d7d9d0; border-radius: 13px; padding: 22px; box-shadow: 0 18px 65px rgba(32,34,31,.19); }
.dialog::backdrop { background: rgba(30,30,40,.33); }
.dialog-header { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
.dialog-header h2 { font-weight: 620; letter-spacing: -.045em; line-height: 1.25; font-size: 23px; overflow-wrap: anywhere; padding-top: 3px; }
.dialog-header .icon-only { flex-shrink: 0; }
.dialog-note,.pdf-status,.picker-empty,.failure-list { font-size: 14px; line-height: 1.6; color: var(--muted); }
.pdf-status { margin-top: 16px; color: var(--ink); overflow-wrap: anywhere; }
.dialog-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 22px; }
.action-menu { display: grid; gap: 2px; }
.menu-action { width: 100%; justify-content: flex-start; text-align: left; font-size: 14px; font-weight: 540; padding: 10px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.menu-action:hover { background: #f1f2ed; }
.danger-text { color: #9b383a; }
.picker-trail { padding: 14px 0 6px; margin: 0; }
.picker-empty { padding: 12px 0; }
.failure-list { padding-left: 18px; overflow-wrap: anywhere; }
#notifications { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: min(640px,calc(100% - 28px)); z-index: 2; }
.notice { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 9px 10px 9px 16px; border-radius: 8px; background: #252a26; box-shadow: 0 5px 20px #141a1626; color: white; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.notice-error { background: #792f33; }
.notice .quiet { color: white; flex-shrink: 0; }
.notice .quiet:hover { background: #ffffff22; color: white; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 168px minmax(0,1fr); }
  .sidebar { padding: 25px 10px; }
  .workspace { padding: 31px 24px 60px; }
  .date-cell { width: 126px; }
  .size-cell { width: 69px; }
  .auth-panel { padding: 34px; }
}
@media (max-width: 690px) {
  .auth-page { padding: 0 17px 25px; }
  .auth-header { height: 69px; }
  .auth-layout { min-height: 0; grid-template-columns: 1fr; grid-template-rows: minmax(150px,24vh) auto; }
  .auth-art { grid-row: 1; border-left: 0; border-bottom: 1px solid #dad9e6; }
  .paper-stack { width: 91px; }
  .art-grid { background-size: 26px 26px; }
  .auth-panel { padding: 36px 26px 40px; }
  .auth-content { max-width: 420px; }
  .auth-content h1 { font-size: 43px; }
  .auth-description { max-width: 100%; }
  .shell { display: flex; flex-direction: column; }
  .topbar { padding: 12px 17px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 34px; height: 34px; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 7px 15px; }
  .nav { flex-direction: row; }
  .nav-btn { width: auto; padding: 9px 13px; }
  .workspace { flex: 1; padding: 25px 16px 55px; }
  .title-row { align-items: flex-start; flex-wrap: wrap; gap: 13px; }
  .title-row h1 { font-size: 37px; }
  .row-actions { gap: 6px; }
  .listbar { margin-top: 25px; }
  .date-cell { width: 104px; font-size: 12px; }
  .check-cell { width: 30px; }
  .size-cell { display: none; }
  .actions-cell { width: 33px; }
  .item { gap: 7px; }
  .item-icon { width: 27px; height: 30px; }
  .item-icon svg { width: 16px; height: 16px; }
  .filter-field { width: 125px; }
}
@media (max-width: 380px) {
  .auth-panel { padding: 28px 18px; }
  .workspace { padding-left: 10px; padding-right: 10px; }
  .date-cell { width: 79px; }
  .brand { gap: 8px; }
}
