/* PucaFlow portal. Brand: Forest Green, Teal, Cream. One memorable element: the setup path on the left. */
:root {
  --forest: #0B3D2E;
  --forest-2: #134F3D;
  --teal: #2FB89E;
  --teal-deep: #1E8A75;
  --cream: #FAF8EF;
  --paper: #FFFFFF;
  --ink: #1E2A26;
  --muted: #5B6B65;
  --line: #DCE5E0;
  --amber: #B7791F;
  --red: #B42318;
  --radius-s: 6px;
  --radius-m: 12px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.55 var(--text); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; color: var(--forest); margin: 0 0 .5em; }
h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
.boot { padding: 40px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---- sign-in ---- */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.signin-side { background: var(--forest); color: var(--cream); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.signin-side img { width: 190px; }
.signin-side blockquote { font-family: var(--display); font-size: 1.7rem; line-height: 1.25; margin: 0; max-width: 18ch; }
.signin-side small { color: #A9C9BD; }
.signin-main { display: grid; place-items: center; padding: 32px 16px; }
.signin-box { width: 100%; max-width: 400px; }
@media (max-width: 760px) { .signin { grid-template-columns: 1fr; } .signin-side { padding: 24px; } .signin-side blockquote { font-size: 1.3rem; margin-top: 16px; } }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; align-items: start; background: linear-gradient(to right, var(--forest) 300px, transparent 300px); }
.rail { background: var(--forest); color: var(--cream); padding: 28px 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rail-logo img { width: 150px; display: block; margin-bottom: 26px; }
.rail-business { font-family: var(--display); font-size: 1.15rem; margin-bottom: 4px; }
.rail-status { color: #A9C9BD; font-size: .88rem; margin-bottom: 26px; }

/* The setup path: a line that fills with teal as steps are completed. */
.path { list-style: none; margin: 0; padding: 0; position: relative; --fill: 0%; }
.path::before, .path::after { content: ""; position: absolute; left: 15px; top: 16px; width: 3px; border-radius: 3px; }
.path::before { bottom: 16px; background: rgba(250, 248, 239, .18); }
.path::after { height: var(--fill); max-height: calc(100% - 32px); background: var(--teal); transition: height .6s ease; }
.path li { position: relative; z-index: 1; }
.path a { display: grid; grid-template-columns: 33px 1fr; gap: 12px; align-items: center; color: var(--cream); text-decoration: none; padding: 7px 8px 7px 0; border-radius: var(--radius-s); }
.path a:hover .step-label { text-decoration: underline; }
.path .dot { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--text); background: var(--forest); border: 3px solid rgba(250, 248, 239, .35); color: #CFE3DA; }
.path li.done .dot { background: var(--teal); border-color: var(--teal); color: var(--forest); }
.path li.current .dot { border-color: var(--cream); color: var(--cream); }
.path li.current a { font-weight: 700; }
.rail-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(250, 248, 239, .15); display: grid; gap: 6px; }
.rail-foot a, .rail-foot button { color: #CFE3DA; background: none; border: 0; padding: 4px 0; font: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.rail-foot a:hover, .rail-foot button:hover { color: var(--cream); text-decoration: underline; }

.main { padding: 40px clamp(16px, 4vw, 56px) 80px; max-width: 980px; }
.step-head { margin-bottom: 26px; }
.step-head .kicker { color: var(--teal-deep); font-weight: 700; margin-bottom: 6px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 24px; margin-bottom: 20px; }
.panel.quiet { background: transparent; border-style: dashed; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: none; }
  .rail { position: static; height: auto; padding: 18px 16px; }
  .rail-logo img { width: 120px; margin-bottom: 14px; }
  .path { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
  .path::before, .path::after { display: none; }
  .path a { grid-template-columns: 33px; }
  .path .step-label { display: none; }
  .path li.current .step-label { display: none; }
  .rail-foot { display: flex; gap: 18px; margin-top: 12px; padding-top: 10px; }
  .row { grid-template-columns: 1fr; }
}

/* ---- forms ---- */
label.field { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 700; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=tel], textarea, select {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); width: 100%;
  padding: 10px 12px; border: 1.5px solid #C7D3CD; border-radius: var(--radius-s);
}
textarea { min-height: 96px; resize: vertical; }
textarea.tall { min-height: 190px; }
input:focus, textarea:focus, select:focus { border-color: var(--teal-deep); outline: none; box-shadow: 0 0 0 3px rgba(47, 184, 158, .25); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; margin-bottom: 8px; }
.choices { display: grid; gap: 8px; }
.choice { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--paper); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--teal-deep); background: #F1FAF7; }
.choice input { margin-top: 4px; accent-color: var(--teal-deep); }
.choice strong { display: block; }
.choice span { color: var(--muted); font-size: .92rem; }
.choices.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: flex; gap: 6px; align-items: center; font-weight: 400; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
button.primary, button.secondary, a.button {
  font: 700 1rem var(--text); border-radius: var(--radius-s); padding: 11px 18px; cursor: pointer; border: 2px solid var(--forest); text-decoration: none; display: inline-block;
}
button.primary { background: var(--forest); color: var(--cream); }
button.primary:hover { background: var(--forest-2); }
button.secondary, a.button { background: transparent; color: var(--forest); }
button.secondary:hover, a.button:hover { background: #EEF4F1; }
button[disabled] { opacity: .55; cursor: wait; }
button.link { background: none; border: 0; padding: 0; color: var(--teal-deep); font: inherit; text-decoration: underline; cursor: pointer; }

.notice { padding: 12px 14px; border-radius: var(--radius-s); margin: 12px 0; border-left: 4px solid var(--teal-deep); background: #EEF8F5; }
.notice.warn { border-color: var(--amber); background: #FBF4E6; }
.notice.error { border-color: var(--red); background: #FCEDEC; }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--forest); color: var(--cream); padding: 12px 16px; border-radius: var(--radius-s); max-width: 360px; box-shadow: 0 6px 24px rgba(11, 61, 46, .25); z-index: 10; }

pre.code, code.code { font: .88rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; background: #F3F5F2; border: 1px solid var(--line); border-radius: var(--radius-s); }
pre.code { padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 8px 0 12px; }
code.code { padding: 1px 6px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }

/* ---- replies preview: shown as the email the customer will receive ---- */
.mail { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); overflow: hidden; }
.mail-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); display: grid; gap: 2px; }
.mail-head b { color: var(--ink); }
.mail-body { padding: 16px; white-space: pre-wrap; font-size: .98rem; }
.mail-body .ai-line { color: var(--muted); font-size: .9rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { font: inherit; padding: 6px 12px; border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected=true] { border-color: var(--forest); background: var(--forest); color: var(--cream); }

/* ---- report ---- */
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.figure { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; }
.figure .n { font-family: var(--display); font-size: 2rem; color: var(--forest); line-height: 1.1; }
.figure .l { color: var(--muted); font-size: .92rem; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 150px 1fr 40px; gap: 10px; align-items: center; font-size: .92rem; }
.bar i { display: block; height: 12px; background: var(--teal); border-radius: 6px; }
table.dns { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.dns th, table.dns td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.dns td.v { word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; }
.ok { color: var(--teal-deep); font-weight: 700; }
.wait { color: var(--amber); font-weight: 700; }
table.clients { width: 100%; border-collapse: collapse; }
table.clients th, table.clients td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .path::after { transition: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
input[type=color] { width: 72px; height: 44px; padding: 3px; border: 1.5px solid #C7D3CD; border-radius: var(--radius-s); background: var(--paper); }
/* ---- install progress, status, operator table ---- */
.progress { margin-top: 14px; }
.progress-bar { height: 10px; border-radius: 6px; background: #E6EEEA; overflow: hidden; margin-bottom: 8px; }
.progress-bar i { display: block; height: 100%; background: var(--teal); border-radius: 6px; transition: width .6s ease; }
.bad { color: var(--red); font-weight: 700; }
.figure .n.bad { color: var(--red); }
.figure .n.wait { color: var(--amber); }
.main.wide { max-width: 1320px; }
.table-wrap { overflow-x: auto; }
table.clients td { vertical-align: top; font-size: .95rem; }
table.clients td.actions { white-space: nowrap; }
table.clients td.actions .link { display: block; margin-top: 6px; }
ul.people { padding-left: 18px; }
ul.people li { margin-bottom: 4px; }
details.panel summary { cursor: pointer; font-weight: 700; color: var(--forest); }
details.panel[open] summary { margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .progress-bar i { transition: none; } }
