/* auth */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background:
  linear-gradient(180deg, rgba(0,0,0,.55), #000 78%), url('/brand/hero.jpg') center top / cover no-repeat; }
.auth .box { width: 100%; max-width: 420px; }
.auth .logo { width: 150px; height: 150px; margin: 0 auto 6px; object-fit: contain; }
.auth h1 { text-align: center; font-size: 24px; text-transform: uppercase; letter-spacing: .14em; }
.auth .sub { text-align: center; color: var(--muted); margin: 6px 0 22px; }

/* menu */
.menu { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: flex; justify-content: flex-end; }
.menu .sheet { width: min(320px, 86vw); background: var(--surface); border-left: 1px solid var(--line); height: 100%; padding: 20px; padding-top: max(20px, env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 6px; }
.menu a, .menu button.item { display: block; text-align: left; width: 100%; background: none; border: 0; color: var(--text); font: inherit; font-size: 17px; padding: 14px 10px; border-radius: 10px; text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button.item:hover { background: var(--surface-2); }

/* home */
.hero-cta { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); padding: 26px 20px; background:
  linear-gradient(100deg, rgba(0,0,0,.92) 35%, rgba(0,0,0,.35)), url('/brand/hero.jpg') right center / cover no-repeat; }
.hero-cta h1 { margin: 6px 0 8px; }
.hero-cta p { margin: 0 0 18px; color: #cfcfcf; max-width: 440px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }
.section-title .count { color: var(--dim); font-size: 14px; }
.jobcard { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.jobcard + .jobcard { margin-top: 8px; }
.jobcard .jt { width: 76px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; display: grid; place-items: center; color: var(--dim); font-size: 22px; overflow: hidden; }
.jobcard .jt img { width: 100%; height: 100%; object-fit: cover; }
.jobcard .jm { flex: 1; min-width: 0; }
.jobcard .reg { font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: .04em; }
.jobcard .who { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jobcard .chev { color: var(--dim); font-size: 22px; }
.empty { color: var(--dim); text-align: center; padding: 30px 10px; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* capture wizard */
.steps { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step-dot { flex: none; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font-family: var(--head); font-weight: 600; font-size: 13px; display: grid; place-items: center; cursor: pointer; }
.step-dot.done { background: var(--green-soft); border-color: rgba(30,158,58,.6); color: #7fe39a; }
.step-dot.current { background: #fff; color: #000; border-color: #fff; }
.progress { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #fff 50%, var(--red)); transition: width .3s; }
.capture { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .capture { grid-template-columns: 230px 1fr; align-items: start; } }
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; place-items: center; }
.diagram svg { width: 100%; max-width: 180px; height: auto; }
@media (max-width: 759px) { .diagram { grid-template-columns: 96px 1fr; gap: 14px; place-items: center start; } .diagram svg { max-width: 96px; } }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.shot img, .shot video { width: 100%; max-height: 62vh; object-fit: contain; background: #000; }
.camera-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 260px; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); cursor: pointer; text-align: center; padding: 20px; transition: border-color .15s; }
.camera-btn:hover { border-color: #fff; }
.camera-btn .ic { width: 78px; height: 78px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 34px; }
.camera-btn .t { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 16px; }
.uploading { position: absolute; inset: 0; background: rgba(0,0,0,.75); display: grid; place-items: center; text-align: center; gap: 10px; align-content: center; }
.uploading .bar { width: 70%; height: 6px; background: rgba(255,255,255,.15); border-radius: 6px; overflow: hidden; }
.uploading .bar i { display: block; height: 100%; background: #fff; width: 0; transition: width .2s; }
.actions { display: flex; gap: 10px; }
.actions .btn { flex: 1; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0 calc(12px + var(--safe-b)); background: linear-gradient(transparent, #000 30%); }

/* job page */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; padding: 10px 8px; border-radius: 999px; cursor: pointer; }
.tabs button.on { background: #fff; color: #000; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair .thumb { aspect-ratio: 4/3; }
.pair-row + .pair-row { margin-top: 14px; }
.pair-row h3 { font-size: 14px; margin-bottom: 6px; color: var(--muted); font-family: var(--body); font-weight: 600; }
.sigbox { background: #fff; border-radius: 10px; padding: 8px; max-width: 300px; }
.sigbox img { width: 100%; }
.quote { border-left: 3px solid var(--green); padding: 4px 0 4px 14px; font-style: italic; color: #ddd; }
.quote.red { border-color: var(--red); }
.emailrow { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.emailrow:first-child { border-top: 0; }
iframe.preview { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list td { padding: 12px 6px; border-top: 1px solid var(--line); vertical-align: middle; }
