/* The console (docs/phase-1-spec.md section 15B), on top of the cloud's
   shared sheet (/static/web/base.css): the RobinRise wordmark, the board
   of clients on the restaurant green, forms that open in place, and the
   one-time secrets a change shows. */

.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--ink); text-decoration: none; }
.wordmark strong { margin: 0; font: 750 23px/1 var(--display); letter-spacing: -0.02em; }

.wordmark span {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
}

.wordmark.big strong { font-size: 34px; }
.rail-foot span + span { margin-bottom: 2px; }

/* The board: how many clients there are and how many need a look. */
.board {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 24px 32px 22px;
  border-radius: 26px;
  background: var(--green);
  color: var(--cream);
}

.board p { margin: 0; color: var(--cream-soft); }

.board-figure {
  display: block;
  font: 700 76px/0.9 var(--display);
  font-stretch: 78%;
  letter-spacing: -0.025em;
}

.board .board-line { max-width: 34ch; color: var(--cream); font-weight: 600; }

.toolbar { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--ink-faint); }

input, select {
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.search input { width: 100%; padding-left: 38px; }

button {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 600 14px var(--text);
  cursor: pointer;
}

button.primary { border-color: var(--green); background: var(--green); color: var(--cream); }
button.danger { border-color: var(--chilli); background: var(--chilli); color: #fff; }
button.link { padding: 0; border: 0; background: none; color: var(--green); text-decoration: underline; }

/* Forms open in place: a summary that reads like a link, its form below. */
details > summary { color: var(--green); font-weight: 600; cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: " \25BE"; font-size: 0.8em; }
details[open] > summary::after { content: " \25B4"; }

details.add {
  padding: 10px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 251, 243, 0.6);
}

.panel details.add { margin: 12px 0 8px; }
details.add[open] { background: var(--paper); border-style: solid; }
details.add form { margin-top: 10px; }

.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.inline-form .problem { flex-basis: 100%; margin: 0; }
.stacked-form { display: grid; gap: 10px; }
.inline-form label, .stacked-form label { display: grid; gap: 4px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.inline-form label.check, label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }

details.confirm { position: relative; display: inline-block; }

details.confirm[open] > form {
  position: absolute;
  right: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  width: min(320px, 80vw);
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(26, 42, 31, 0.16);
  white-space: normal;
}

details.confirm form p { margin: 0; font-size: 14px; }
details.confirm label { display: grid; gap: 4px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }

.actions { text-align: right; }
.actions > * + * { margin-left: 14px; }
td.wrap { min-width: 16ch; max-width: 320px; white-space: normal; overflow-wrap: anywhere; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.panel-head h2 { margin: 0; font: 650 19px/1.3 var(--display); }
.panel h2 { margin-top: 0; }

/* Lines of a few facts each: owner logins and alerts. */
.rows { list-style: none; margin: 0; padding: 0; }

.rows li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.rows li:first-child { border-top: 0; }
.rows strong { font-weight: 600; overflow-wrap: anywhere; }
.note { display: block; color: var(--ink-soft); font-size: 12.5px; font-weight: 400; }

.dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; background: var(--ink-faint); }
.dot.good { background: var(--ok); }
.dot.warn { background: var(--amber); }
.dot.bad { background: var(--chilli); }
.dot.none { background: var(--line-strong); }

.client-name { font-weight: 650; text-decoration: none; color: var(--ink); }
.client-name:hover { color: var(--green); text-decoration: underline; }
.tag.live { background: var(--ok-wash); color: var(--ok); }
.tag.test { background: var(--amber-wash); color: var(--amber); }
.tag.off { background: #ece6d8; color: var(--ink-soft); }
.tag { margin-left: 0; }

.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; font-weight: 600; text-decoration: none; }
.back svg { width: 16px; height: 16px; }
.top p.soft { margin: 6px 0 0; max-width: 72ch; }

.code-chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: 600 14px/1.5 var(--text);
  letter-spacing: 0.02em;
  vertical-align: 5px;
}

/* A change's result, with a secret shown only now. */
.notice {
  margin-bottom: 14px;
  padding: 18px 22px;
  border: 2px solid var(--marigold);
  border-radius: 20px;
  background: #fff9e8;
}

.notice h2 { margin: 0 0 8px; font: 650 19px/1.3 var(--display); }
.notice p { margin: 8px 0 0; }
.secret-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.secret {
  font: 700 34px/1.1 var(--display);
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.secret.long {
  font: 500 15px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0;
  word-break: break-all;
}

button.copy { padding: 6px 12px; font-size: 13px; }

.report { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
.report div { display: grid; grid-template-columns: minmax(160px, 34%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.report div:first-child { border-top: 0; }
.report dt { color: var(--ink-soft); overflow-wrap: anywhere; }
.report dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.more { margin: 12px 0 4px; font-weight: 600; }

/* Sign in, the code and the welcome link. */
.signin .wordmark { margin-bottom: 6px; }
.signin .check { margin: 14px 0 0; }
.signin .check input { width: auto; margin: 0; }
.signin .hint { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }
.signin .code-input { font: 650 26px/1.2 var(--display); letter-spacing: 0.3em; text-align: center; }
.signin button.copy, .signin button.link { margin: 0; padding: 6px 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.signin button.link { padding: 0; border: 0; background: none; color: var(--green); }
.switch-person { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.signin .gone { margin: 0 0 8px; font: 650 22px/1.2 var(--display); }
.welcome main.narrow { max-width: 520px; }
.welcome h1 { margin-top: 14px; }

.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 22px 46px; counter-increment: step; }
.steps li + li { padding-top: 18px; border-top: 1px solid var(--line); }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font: 700 15px/1 var(--display);
}

.steps li + li::before { top: 18px; }
.steps h2 { margin: 2px 0 8px; font: 650 18px/1.3 var(--display); }
.steps p { margin: 6px 0; font-size: 14px; }
.qr { display: block; width: 100%; max-width: 220px; margin: 12px 0; border-radius: 8px; }
.qr .qr-light { fill: #fff; }
.qr .qr-dark { fill: #000; }
.setup-key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.setup-key output { font: 600 16px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .wordmark { flex-direction: row; align-items: center; }
  .wordmark strong { font-size: 19px; }
  .board { padding: 20px 18px 18px; border-radius: 22px; }
  .board-figure { font-size: 56px; }
  .actions { text-align: left; white-space: normal; }
  details.confirm[open] > form { left: 0; right: auto; }
  .report div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .secret { font-size: 28px; }
}
