/* The client studio: what panel.css does not cover (forms, dialog, toast, drop zones, the invoice document, the phone bar). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.panel .btn[aria-busy="true"], .panel .btn[disabled] { opacity: .55; cursor: default; pointer-events: none; }
.panel button { cursor: pointer; }
.panel .btn { cursor: pointer; }
.panel .btn--alarm { background: var(--alarm); }
.panel .btn--alarm:hover { background: #8f2620; }
.panel .link { color: var(--blue-ink); font-weight: 500; background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(36,74,158,.35); }
.panel .link:hover { text-decoration-color: currentColor; }
.quiet { background: none; border: 0; padding: 4px 0; color: var(--a-soft); font-size: 14.5px; text-align: left; }
.quiet:hover { color: var(--a-ink); }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* sidebar bits */
.side .brand { display: flex; align-items: center; gap: 12px; }
.side .me { margin-top: 0; }
.side .me > span { min-width: 0; overflow-wrap: anywhere; }
.side .signout { padding: 6px 10px 0 54px; }
.mtop, .mfoot { display: none; }
.top .dtop { flex: 1; }

/* forms */
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 15px; color: var(--a-soft); font-weight: 500; }
.field input { width: 100%; min-height: 52px; padding: 0 18px; border: 2px solid transparent; border-radius: 16px; background: #fff; font-size: 17px; box-shadow: 0 1px 2px rgba(29,29,31,.06); transition: border-color .2s; }
.field input:focus { outline: none; border-color: var(--blue); }
.field input[readonly] { color: var(--a-soft); }
.field .hint { font-size: 14.5px; color: var(--a-soft); }
.field.bad input { border-color: var(--alarm); }
.field .err { font-size: 15px; color: var(--alarm); }
.field.bad .hint { display: none; }
.fields { display: grid; gap: 18px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.panel .search { box-shadow: 0 1px 2px rgba(29,29,31,.06); }
.panel .search input:focus-visible { outline: none; }
.panel .search:focus-within { box-shadow: 0 0 0 2px var(--blue) !important; }

/* dialog and toast */
dialog { width: min(480px, calc(100vw - 32px)); border: 0; padding: 32px; background: #fff; color: var(--a-ink); border-radius: 28px; box-shadow: 0 30px 80px rgba(29,29,31,.22); }
dialog::backdrop { background: rgba(29,29,31,.3); }
dialog h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 8px; }
dialog .actions { margin-top: 24px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--a-ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: 16px; box-shadow: 0 10px 30px rgba(29,29,31,.25); z-index: 30; }
.toast.bad { background: var(--alarm); }
.toast[hidden] { display: none; }

/* overview extras */
.quick { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 22px; }
.quick a { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; color: var(--blue-ink); font-weight: 500; }
.quick svg { width: 17px; height: 17px; }
.note p.body { white-space: pre-wrap; }
.check li { padding: 14px 0; }
.check li:first-child { padding-top: 0; }
.check li:last-child { padding-bottom: 0; }
.check li + li { border-top: 1px solid var(--a-line); }
.calm { color: var(--a-soft); font-size: 16px; }
.empty { max-width: 560px; margin: 40px 0; }
.empty h2 { margin-bottom: 18px; }
.confirming { color: var(--a-soft); font-size: 15px; }

/* files */
.tbl .fname a { font-weight: 500; }
.tbl .fname a:hover { text-decoration: underline; }
.tbl td.date { white-space: nowrap; color: var(--a-soft); }
.ask + .ask { margin-top: 22px; }
.drop { transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop small { display: block; margin-top: 4px; font-size: 14.5px; }
.drop .go { margin-top: 12px; }
.bar { height: 6px; border-radius: 99px; background: rgba(29,29,31,.08); margin: 14px auto 0; max-width: 280px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.sent { margin-top: 12px; }
.sent li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 4px; font-size: 15.5px; }
.sent li + li { border-top: 1px solid var(--a-line); }
.sent a { font-weight: 500; overflow-wrap: anywhere; }
.sent small { color: var(--a-soft); font-size: 14px; margin-left: 8px; }
.sub { margin: 26px 0 4px; font-size: 15px; font-weight: 600; color: var(--a-soft); }

/* hosting */
.hostpick { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hp { border: 0; text-align: left; font: inherit; color: inherit; }
.hp h4 { font-size: 26px; }
.site-say { margin-top: 18px; color: #45454A; font-size: 16px; }
.site-say a { color: var(--blue-ink); font-weight: 500; }
.dom.three { grid-template-columns: repeat(3, 1fr); }
.hostform { margin-top: 22px; }

/* the invoice document */
.docbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; max-width: 820px; }
.doc { max-width: 820px; background: #fff; border-radius: 28px; padding: 48px; box-shadow: 0 1px 2px rgba(29,29,31,.05), 0 20px 60px rgba(29,29,31,.08); }
.doc .top2 { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.doc .docname { height: 28px; width: auto; max-width: 100%; }
.doc address { font-style: normal; color: var(--a-soft); font-size: 15.5px; margin-top: 12px; line-height: 1.55; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.doc .dates { margin-top: 8px; color: var(--a-soft); font-size: 15.5px; text-align: right; }
.doc .dates b { color: var(--a-ink); font-weight: 500; }
.doc .to { margin: 36px 0 28px; }
.doc .to span, .doc .pay h3 { display: block; color: var(--a-soft); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.doc .tbl td.r, .doc .tbl th.r { padding-right: 0; }
.doc .total td { font-weight: 600; font-size: 17px; padding-top: 18px; }
.doc .state { margin-top: 22px; }
.doc .pay { margin-top: 32px; padding: 24px; background: var(--a-alt); border-radius: 22px; }
.doc .pay .bank { margin-top: 8px; }

@media (max-width: 860px) {
  .mtop { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
  .dtop { display: none; }
  .mtop select { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 999px; padding: 0 14px; background: rgba(29,29,31,.07); font: 500 15px var(--sans); color: var(--a-ink); }
  .top { gap: 10px; }
  .top .acts .btn { padding: 0 14px; }
  .mfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; font-size: 15px; color: var(--a-soft); }
  .mfoot span { min-width: 0; overflow-wrap: anywhere; }
  .page { padding-top: 12px; }
  .phead h1 { font-size: 34px; gap: 12px; }
  .fields.two { grid-template-columns: 1fr; }
  .bank { grid-template-columns: 1fr; }
  .doc { padding: 26px; }
  .doc .dates { text-align: left; }
  .dom.three { grid-template-columns: 1fr; }
  .journey.big .stages { font-size: 12.5px; }
  .journey.big .stages b { font-size: 13px; }
  /* tables become stacked rows on phones */
  .tbl.stack tr:has(th) { display: none; }
  .tbl.stack, .tbl.stack tbody { display: block; }
  .tbl.stack tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--a-line); }
  .tbl.stack tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .tbl.stack tr:first-child { padding-top: 0; }
  .tbl.stack td { display: block; padding: 0; border: 0; }
  .tbl.stack td:first-child { grid-column: 1 / -1; }
  .tbl.stack td.r { text-align: right; padding: 0; }
  .tbl.stack td:empty { display: none; }
  .tbl.inv td:last-child { grid-column: 1 / -1; text-align: left; }
  .tbl.inv td.r:last-child { text-align: left; }
}

@media (max-width: 600px) { .journey.big .stages, .ptabs .lg { display: none; } }

/* print: only the document */
@media print {
  body.panel { background: #fff; }
  .side, .top, .noprint, .mfoot, .toast { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  .doc { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  .doc .pay { border: 1px solid #ccc; background: none; }
  .panel .chip { box-shadow: none; border: 1px solid #ccc; }
}

/* sign in */
body.gate { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: #fff; }
.gate-in { width: min(460px, 100%); }
.gate .brand { display: flex; justify-content: center; margin-bottom: 26px; }
.gate .tile { background: var(--a-alt); border-radius: 28px; padding: 40px 36px; }
.gate h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -.01em; }
.gate .lede { margin-top: 10px; color: var(--a-soft); font-size: 16.5px; }
.gate form { margin-top: 28px; }
.gate .btn { width: 100%; }
.gate .alt { margin-top: 20px; text-align: center; font-size: 15.5px; color: var(--a-soft); }
.gate .alt a { color: var(--blue-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(36,74,158,.35); }
@media (max-width: 480px) { .gate .tile { padding: 30px 22px; } }
[hidden] { display: none !important; }
