/* Client dashboard — builds on the landing page tokens in ../style.css */
.auth { max-width: 420px; margin: 0 auto; padding: 70px 22px 90px; }
.auth h1 { font-size: 44px; margin-bottom: 8px; }
.auth .sub { text-align: left; margin: 0 0 26px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 20px 50px #2a242012; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.field input { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; outline: none; transition: border-color .15s; }
.field input:focus { border-color: var(--gold); }
.msg { font-size: 14px; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.msg.err { background: #fbe9e6; color: #9b2c1f; }
.msg.ok { background: #eaf4ea; color: #2d6a32; }
.linkbtn { background: none; border: 0; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* dashboard */
.dash { max-width: 980px; margin: 0 auto; padding: 34px 22px 100px; }
.dash-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-head h1 { font-size: 40px; }
.who { margin-left: auto; color: var(--ink3); font-size: 14px; display: flex; gap: 14px; align-items: center; }
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 14px; font-weight: 500; }
.pill.on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.w-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.w-title input { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; font-weight: 600; border: 0; border-bottom: 2px dashed transparent; background: transparent; outline: none; padding: 0; min-width: 0; width: 100%; color: var(--ink); }
.w-title input:hover, .w-title input:focus { border-bottom-color: var(--line); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--ink2); white-space: nowrap; }
.status.ready { background: #e3f1e4; color: #2d6a32; }
.status.processing, .status.queued { background: #fbefd9; color: #8a5a12; }
.status.failed { background: #fbe9e6; color: #9b2c1f; }
.meta { color: var(--ink3); font-size: 14px; margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink3); display: flex; gap: 10px; align-items: center; }
.steps li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink2); font-size: 13px; flex: none; }
.steps li.on { border-color: var(--gold2); color: var(--ink); }
.steps li.on b { background: var(--gold); color: #fff; }
.steps li.done b { background: var(--ink); color: var(--ivory); }
.section { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 16px; }
.section h2 { font-size: 28px; text-align: left; margin-bottom: 6px; }
.section .hint { color: var(--ink3); font-size: 14px; margin: 0 0 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--cream); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--ink2); margin-bottom: 14px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.drop { border: 2px dashed var(--line); border-radius: 18px; padding: 34px 20px; text-align: center; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--gold); background: #b88a4a0d; }
.drop .big { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 600; margin-bottom: 4px; }
.drop .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.drop.locked { opacity: .45; pointer-events: none; }
.bar { height: 10px; background: var(--cream); border-radius: 999px; overflow: hidden; margin: 14px 0 8px; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold2), var(--gold)); border-radius: 999px; transition: width .4s ease; }
.uprow { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink2); flex-wrap: wrap; }
.errs { font-size: 13px; color: #9b2c1f; margin-top: 8px; max-height: 120px; overflow: auto; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; }
.inline input { flex: 1; min-width: 200px; font: inherit; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; outline: none; }
.inline input:focus { border-color: var(--gold); }
.or { text-align: center; color: var(--ink3); font-size: 13px; margin: 16px 0; }
.share { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
.share .url { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; word-break: break-all; margin: 8px 0 12px; user-select: all; }
.qr { background: #fff; padding: 10px; border-radius: 14px; border: 1px solid var(--line); }
.qr img { display: block; width: 150px; height: 150px; image-rendering: pixelated; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; line-height: 1; }
.stats span { color: var(--ink3); font-size: 13px; }
.danger-zone { border-color: #f0d2cc; }
.btn-danger { background: #fff; color: #9b2c1f; box-shadow: inset 0 0 0 1.5px #e9b6ad; }
.btn-danger:hover { background: #fbe9e6; color: #9b2c1f; }
.empty-dash { text-align: center; padding: 60px 20px; color: var(--ink2); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table td, .adm-table th { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.adm-table tr { cursor: pointer; }
.adm-table tr:hover td { background: var(--cream); }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .share { grid-template-columns: 1fr; }
  .dash-head h1 { font-size: 32px; }
  .w-title input { font-size: 28px; }
  .who { margin-left: 0; width: 100%; }
}
