/* Shared type, surfaces and interaction states for the private workspace. */
:root {
  --paper: #f6f3ec;
  --white: #fffdf8;
  --ink: #202e2b;
  --deep: #193c36;
  --quiet: #495952;
  --bronze: #776344;
  --rule: #d5d6c9;
  --gutter: clamp(20px, 5.5vw, 68px);
  --panel-border: #deded2;
  --radius: 12px;
}
html { scroll-padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
body { -webkit-text-size-adjust: 100%; }
header { background: var(--paper); border-color: var(--rule); padding-top: env(safe-area-inset-top); }
.top, main { padding-left: max(var(--gutter),env(safe-area-inset-left)); padding-right: max(var(--gutter),env(safe-area-inset-right)); }
.top { min-height: 62px; }
.top .brand.card-lockup { color: var(--ink); font-size: 18px; line-height: 1.02; gap: 9px; }
.top .brand.card-lockup img { width: 30px; height: 39px; }
.top .paper-entry { color: var(--deep); text-decoration-thickness: 1px; }
.guide, .back { color: var(--quiet); }
.play { border-color: #728379; }
h1,h2,h3,legend,.amount { font-synthesis: none; text-wrap: pretty; }
h1 { font-size: clamp(43px, 9vw, 72px); line-height: 1.02; margin: 8px 0; }
h2,legend { font-size: clamp(29px, 5.8vw, 38px); line-height: 1.08; }
h3 { font-size: clamp(26px, 5.6vw, 33px); }
.page-title .intro,.login-title .intro { max-width: 52ch; line-height: 1.48; }
.eyebrow { font-size: 10.5px; letter-spacing: .125em; }
.login-title .eyebrow::before,.page-title .eyebrow::before { width: 23px; }
.page-title { max-width: 870px; }
.login-picture,.studio-scene { isolation: isolate; }
.login-picture { height: clamp(154px, 24svh, 255px); }
.studio-scene { height: clamp(88px, 14svh, 142px); }
.login-picture::after,.studio-scene::after {
  inset: auto 0 -1px;
  height: 40%;
  background: linear-gradient(to bottom,rgba(246,243,236,0),rgba(246,243,236,.12) 22%,rgba(246,243,236,.56) 54%,rgba(246,243,236,.95) 89%,var(--paper) 99%);
}
.studio-scene::after { height: 48%; }
.studio-scene+.workspace { padding-top: 12px; }
.entry { padding-top: 8px; padding-bottom: max(35px,env(safe-area-inset-bottom)); }
.login h1 { font-size: clamp(48px, 10vw, 78px); line-height: 1; margin-block: 8px 7px; }
.loginform,.setup fieldset,.paper-lead,.baseline,.card,.empty-state { border-radius: var(--radius); }
.loginform {
  padding: 14px 17px 17px;
  margin-top: 20px;
  border: 1px solid var(--panel-border);
  background: var(--white);
}
.loginform label:first-of-type { margin-top: 0; }
label { font-size: 14px; line-height: 1.35; margin: 15px 0 6px; }
input:not([type=checkbox],[type=hidden]),select,textarea {
  min-height: 46px; border-color: #aab5a8; border-radius: 6px;
  background: #fffefa; color: var(--ink); font-family: var(--ui);
  font-size: max(16px,1em); line-height: 1.4;
}
input:focus,select:focus,textarea:focus { outline: 2px solid #50796a; outline-offset: 1px; }
.primary,.secondary { min-height: 44px; border-radius: 6px; font-weight: 400; line-height: 1.3; }
.secondary { background: var(--white); border-color: #abb7ab; }
.login-actions { display: flex; gap: 8px; align-items: stretch; margin-top: 17px; }
.login-actions .primary { width: auto; min-width: 0; flex: 1; margin: 0; }
.login-actions .install-button { margin: 0; white-space: nowrap; }
.login-actions .install-button[hidden] { display: none; }
.workspace { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
.toolbar { margin: 19px 0 23px; gap: 8px; }
.search { border-color: #abb6ab; border-radius: 6px; padding-inline: 10px; }
.search input[type=search] { min-height: 44px; }
.search .textbtn { min-width: 44px; justify-content: flex-end; }
.toolbar .primary { padding-inline: 12px; }
.listhead { gap: 12px; align-items: center; padding-bottom: 9px; }
.listhead span,.cardbottom,small,.baselinefoot { font-size: 12.5px; }
.results-meta { display: flex; gap: 10px; align-items: center; }
.results-meta .textlink { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.project-grid { gap: 10px; padding-block: 12px; }
.card {
  border: 1px solid var(--panel-border); padding: 14px 16px 11px;
  background: var(--white);
}
.card h3 { margin: 7px 0 4px; }
.card .cardbottom { margin-top: 10px; padding-top: 9px; border-top: 1px solid #e6e6db; gap: 12px; }
.card .status { font-size: 12px; color: #41574b; }
.card .eyebrow { color: #6c614f; }
.card:focus-visible,.primary:focus-visible,.secondary:focus-visible,a:focus-visible,button:focus-visible,summary:focus-visible {
  outline: 2px solid #936713; outline-offset: 3px;
}
.cardbottom span[aria-hidden] { color: var(--deep); font: 17px var(--ui); }
.empty-state { padding: 17px; background: var(--white); border: 1px solid var(--panel-border); }
.empty-state h3 { margin-bottom: 4px; }
.empty-state p { font-size: 14px; color: var(--quiet); }
.section { margin-top: clamp(22px,4vw,33px); }
.line,.paper-amount { gap: 12px; }
.line dd,.paper-amount span:last-child,.baseline .amount,.margin-row,.fin-item>span:last-child { font-variant-numeric: tabular-nums; }
.line dd { min-width: 0; }
.listhead .textlink { flex-shrink: 0; }
.profit-link {
  display: inline-flex; align-items: center; gap: 17px; min-height: 44px;
  margin-top: 8px; padding-inline: 14px; border: 1px solid #8ea99d;
  border-radius: 6px; font-size: 14px; color: var(--white);
}
.profit-link span { font-size: 18px; }
.baseline,.paper-lead { background: var(--deep); color: var(--white); }
.baseline .amount,.paper-lead h2 { overflow-wrap: anywhere; }
.baseline .line dd, .paper-lead h2 { color: var(--white); }
.section>.ordercard,.workspace>.ordercard { margin-top: 10px; }
.ordercard .next-action { margin-top: 8px; }
.op-tabs,.paper-nav { column-gap: clamp(12px,4vw,23px); flex-wrap: wrap; }
.op-tabs a,.paper-nav a { align-items: center; display: inline-flex; }
.paper h1 { font-size: clamp(44px,9vw,76px); }
.paper-amount span:last-child { text-align: right; }
.setup { max-width: 760px; margin-top: 22px; }
.setup fieldset {
  position: relative; padding: 3px 16px 17px; margin: 0 0 17px;
  background: var(--white); border: 1px solid var(--panel-border);
}
.setup legend { float: left; width: 100%; margin: 12px 0 3px; padding: 0; font-size: 26px; }
.setup legend + * { clear: both; }
fieldset label { margin-top: 12px; }
.check { padding-block: 6px; }
.check input { flex-shrink: 0; }
.check:has(input:checked) { color: var(--deep); }
.operation .primary,.operation .secondary { margin-top: 16px; }
.fin-item>div { min-width: 0; }
.fin-item h3 { line-height: 1.1; }
.fin-item>span:last-child { max-width: 44%; }
.install-steps { padding-inline-start: 1.5em; color: var(--quiet); }
.install-steps li::marker { color: var(--deep); }
dialog {
  padding: 14px 20px 20px; border-color: #c5c9bc; border-radius: 14px;
  max-height: min(85dvh,720px); box-shadow: 0 18px 72px #112c2329;
}
dialog::backdrop { background: #1428209c; }
dialog .dialogtop { margin-bottom: 14px; }
dialog p { color: var(--quiet); }
.dialogtop .textbtn { min-width: 48px; justify-content: flex-end; }
@media (hover:hover) {
  .card:hover { border-color: #96aa99; }
  .secondary:hover { background: #eff2e9; }
  .profit-link:hover { background: #2b4d42; }
}
@media (min-width:740px) {
  .top { min-height: 74px; }
  .login-picture { height: clamp(230px,34svh,410px); }
  .studio-scene { height: clamp(135px,17svh,205px); }
  .studio-scene+.workspace { padding-top: 19px; }
  .entry { padding-top: 17px; }
  .login { max-width: 1050px; grid-template-columns: minmax(0,1.18fr) minmax(280px,.82fr); align-items:center; }
  .loginform { margin: 0; padding: 20px 24px 23px; }
  .login-title .intro { font-size: 17px; }
  .project-grid { column-gap: 16px; row-gap: 14px; }
  .card { padding: 18px 20px 15px; }
  .setup fieldset { padding: 6px 22px 23px; }
  .setup legend { margin-top: 16px; }
}
@media (max-width:739px) and (max-height:700px) {
  .login-picture { height: clamp(95px,19svh,134px); }
  .studio-scene { height: 76px; }
  .entry { padding-top: 5px; }
  .loginform { margin-top: 13px; }
}
@media (max-width:370px) {
  :root { --gutter: 16px; }
  .top { padding-inline: max(12px,env(safe-area-inset-left)); column-gap: 6px; }
  .top .brand.card-lockup { gap: 6px; font-size: 16px; }
  .top .brand.card-lockup img { width: 26px; height: 34px; }
  .search { padding-inline: 8px; }
  .search .textbtn { min-width: 34px; }
  .toolbar .primary { padding-inline: 9px; }
  .op-pair { grid-template-columns: 1fr; gap: 0; }
  .login h1 { font-size: 46px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; }
}

