/* CurrentCloud shared styles. Neutral white and gray, black actions,
   color only for status. Approved direction: design/dashboard-mockup.html */
:root {
  --ink: #161513; --muted: #6b6b6b; --faint: #a3a3a3;
  --line: #ebebeb; --page: #fdfdfd; --surface: #ffffff; --wash: #f7f7f7;
  --ok: #1d7a4c; --ok-bg: #e7f4ec; --wait: #8a5a00; --wait-bg: #fcf1d8;
  --bad: #a3271b; --bad-bg: #fbeae8;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--page); color: var(--ink);
  font: 400 14px/1.45 -apple-system, system-ui, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
[hidden] { display: none !important; }
h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 14px; font-weight: 600; }
h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Brand lockup: emblem the height of the capitals, on the text's line */
.brand { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.brand img { height: 17px; width: auto; display: block; }

/* Buttons */
button, .btn { font: inherit; color: inherit; cursor: pointer; }
.btn { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: #cfcfcf; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2a2825; }
.btn.small { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.wide { width: 100%; height: 40px; }
.btn.plain { border-color: transparent; background: none; color: var(--muted); }
.btn.plain:hover { color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: default; }

/* Form controls: fully styled, no system defaults */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-weight: 500; font-size: 13px; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=number], input:not([type]), textarea {
  appearance: none; -webkit-appearance: none; width: 100%; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid #dcdcdc; border-radius: 8px; padding: 8px 11px; min-height: 36px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, textarea:hover { border-color: #c4c4c4; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22,21,19,.08); }
textarea { resize: vertical; line-height: 1.5; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; flex: none;
  border: 1.5px solid #c4c4c4; border-radius: 5px; background: var(--surface); cursor: pointer; display: inline-grid; place-content: center; }
input[type=checkbox]:hover { border-color: #9c9c9c; }
input[type=checkbox]:checked { background: var(--ink); border-color: var(--ink); }
input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
label.check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; cursor: pointer; }
label.check small { display: block; color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-city { display: grid; grid-template-columns: 1fr 90px; gap: 0 14px; }

/* Messages */
.notice { border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; background: var(--wash); color: var(--muted); }
.notice:empty { display: none; }
.notice.error { background: var(--bad-bg); color: var(--bad); }
.notice.good { background: var(--ok-bg); color: var(--ok); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px; }
.rowline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.rowline:last-child { border-bottom: 0; }
.empty { padding: 18px; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px;
  font-size: 12px; font-weight: 500; background: var(--wash); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.list .minor { color: var(--muted); font-size: 13px; }
.scroll-x { overflow-x: auto; }

/* App shell with sidebar */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--wash); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 6px 8px 2px; }
.org { margin: 0 4px; padding: 9px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; gap: 9px; }
.org-badge { width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.org-name { font-weight: 500; line-height: 1.2; }
.org-sub { color: var(--muted); font-size: 12px; }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.side nav a { display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 7px 10px; border-radius: 7px; text-decoration: none; color: var(--muted); font-weight: 450; }
.side nav a svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.side nav a:hover { background: rgba(22,21,19,.045); color: var(--ink); }
.side nav a.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); font-weight: 500; }
.nav-label { padding: 12px 10px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.side-foot { margin-top: auto; padding: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); min-width: 0; }
.side-foot b { display: block; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot a { text-decoration: none; }
.side-foot a:hover { color: var(--ink); }
main.content { padding: 28px 36px 60px; min-width: 0; }
.wrap { max-width: 940px; margin: 0 auto; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sub { color: var(--muted); margin-top: 2px; }
section[id] { scroll-margin-top: 16px; }

/* Setup checklist */
.bar { height: 4px; background: var(--wash); border-radius: 2px; width: 120px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width .2s; }
.step { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #cfcfcf; display: grid; place-items: center; }
.dot.done { background: var(--ink); border-color: var(--ink); }
.dot.done::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.step-name { font-weight: 500; }
.step-desc { color: var(--muted); font-size: 13px; }
.price { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.done-text { color: var(--muted); font-size: 13px; padding: 0 11px; }

/* Website card */
.site { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 18px; align-items: center; }
.thumb { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--wash); }
.thumb-bar { height: 22px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 5px; padding: 0 9px; }
.thumb-bar span { width: 6px; height: 6px; border-radius: 50%; background: #dadada; }
.thumb-body { height: 128px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.thumb-body i { display: block; border-radius: 3px; background: #e2e2e2; height: 8px; }
.thumb-body i:nth-child(1) { width: 62%; height: 14px; background: #cdcdcd; }
.thumb-body i:nth-child(2) { width: 84%; } .thumb-body i:nth-child(3) { width: 70%; }
.thumb-body i:nth-child(4) { width: 76px; height: 22px; border-radius: 11px; background: var(--ink); margin-top: 8px; }
.site-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.addr { color: var(--muted); margin: 3px 0 14px; word-break: break-all; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Guides */
details.guide { border-bottom: 1px solid var(--line); }
details.guide:last-child { border-bottom: 0; }
details.guide summary { list-style: none; cursor: pointer; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; }
details.guide summary::-webkit-details-marker { display: none; }
details.guide summary::after { content: "›"; color: var(--faint); font-size: 18px; transition: transform .15s; }
details.guide[open] summary::after { transform: rotate(90deg); }
details.guide .guide-body { padding: 0 18px 16px; white-space: pre-wrap; color: #3b3b3b; }

.service-row { display: grid; grid-template-columns: 1.2fr .6fr 1.6fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }

/* Centered pages: sign-in and onboarding */
.center { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.panel { width: 100%; max-width: 400px; }
.panel.wide { max-width: 560px; }
.panel .brand { justify-content: center; margin-bottom: 26px; }
.panel .card-body { padding: 26px; }
.panel h1 { font-size: 20px; margin-bottom: 4px; }
.panel .lead { color: var(--muted); margin-bottom: 20px; }
.big-price { font-size: 26px; font-weight: 600; letter-spacing: -.01em; margin: 14px 0 2px; }
.totals { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.totals td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.totals tr.total td { font-weight: 600; border-bottom: 0; padding-top: 12px; }
.chosen { list-style: none; margin: 0 0 6px; padding: 0; }
.chosen li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.chosen li span:last-child { color: var(--muted); white-space: nowrap; }
.foot-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; }
  .side nav { flex-direction: row; overflow-x: auto; width: 100%; }
  .nav-label, .org-sub { display: none; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; gap: 10px; }
  main.content { padding: 20px 16px 48px; }
  .site { grid-template-columns: 1fr; }
  .step { grid-template-columns: 22px 1fr auto; }
  .step .price { display: none; }
  .grid2, .service-row { grid-template-columns: 1fr; }
  .top { align-items: flex-start; flex-direction: column; }
}

/* Website builder flow */
.builder-top { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px;
  background: var(--surface); border-bottom: 1px solid var(--line); }
.builder-top .mid { display: flex; align-items: center; gap: 10px; color: var(--muted); min-width: 0; }
.builder-top .mid b { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; align-items: start; }
.tpl { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; cursor: pointer; text-align: left; padding: 0; display: block; width: 100%; }
.tpl:hover { border-color: #cfcfcf; }
.tpl.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tpl-art { height: 150px; overflow: hidden; background: var(--wash); border-bottom: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 7px; }
.tpl-art i { display: block; height: 7px; border-radius: 3px; background: #e2e2e2; }
.tpl-meta { padding: 11px 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tpl-meta b { font-weight: 500; }
.progress-list { list-style: none; margin: 18px 0 0; padding: 0; }
.progress-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--muted); }
.progress-list li.done { color: var(--ink); }
.progress-list li.now { color: var(--ink); font-weight: 500; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #dcdcdc; border-top-color: var(--ink); animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* Photos */
.photos { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.photo { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--wash); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(22,21,19,.72); color: #fff;
  font-size: 14px; line-height: 1; display: grid; place-items: center; padding: 0; }
.photo button:hover { background: var(--ink); }
.photo-add { width: 96px; height: 96px; border-radius: 10px; border: 1.5px dashed #c9c9c9; background: var(--surface); color: var(--muted);
  display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 500; cursor: pointer; padding: 6px; }
.photo-add:hover { border-color: #9c9c9c; color: var(--ink); }
.photo-add:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.photo-add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-add.busy { opacity: .6; pointer-events: none; }
.photo.round, .photo-add.round { border-radius: 50%; }

.photo.logo { background: #fff; }
.photo.logo img { object-fit: contain; padding: 8px; }
