/* ============================================================
   AlpineDash — "the daily edition" (v4)
   Solvr is the job slip; the dash is the morning paper. One
   warm sheet of newsprint on the navy desk — the only rectangle
   on the page. Everything inside is typography and rules:
   masthead over a double rule, the greeting as the headline
   with a pull-quote, a scoreboard strip, offices as editions,
   sections opened by heavy bars + small caps, columns divided
   by a vertical newspaper rule. The huddle is the Editor's
   Note — the one boxed item, double-ruled, on cream.
   No glass, no blobs, no pills. style.css is untouched.
   ============================================================ */

#app {
  max-width: 1160px;
}
.topbar-inner {
  max-width: 1160px;
}

/* ---- the desk: navy, brushed like Solvr's silver ---- */
html {
  background: #0f1b33;
}
body::before {
  background: linear-gradient(168deg, #22355c 0%, #16264a 32%, #0d1832 72%, #162444 100%);
}

/* ---- topbar: slim silver utility bar ---- */
.topbar {
  background: linear-gradient(168deg, #f8fafc 0%, #e6ebf1 45%, #cfd8e3 100%);
  border-bottom: 1px solid #b7c2d2;
}
.topbar .brand {
  color: var(--ink);
}
.topbar .brand-solvr {
  color: var(--accent);
}
.topbar .brand-logo-chip {
  border: 1px solid var(--line);
}
.topbar .iconbtn {
  border-color: rgba(19, 32, 58, 0.35);
  color: var(--navy);
}
.topbar .iconbtn:hover {
  background: rgba(19, 32, 58, 0.08);
  border-color: rgba(19, 32, 58, 0.6);
}
.topbar .userchip {
  background: var(--navy);
  color: #fff;
}

/* ============================================================
   THE SHEET
   ============================================================ */
.sheet {
  background: #fdfbf6;
  border: 1px solid rgba(4, 9, 20, 0.65);
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(3, 7, 16, 0.5);
  padding: 22px clamp(16px, 3.5vw, 44px) 20px;
  margin: 16px 0 34px;
}
.sheet--page {
  padding-top: 18px;
}
/* white cards from shared styles (account page) sit quietly on the paper */
.sheet .card {
  border-radius: 0;
  border-color: var(--line);
  box-shadow: none;
  background: #fff;
}

/* ---- masthead ---- */
.mast {
  text-align: center;
  border-bottom: 4px double var(--ink);
  padding: 4px 0 14px;
  margin-bottom: 18px;
}
.mast-top {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--muted);
  margin: 0 0 4px;
}
.mast-name {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 50px);
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
}
.mast-dash {
  color: var(--accent);
}
.mast-line {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ---- headline row: the greeting is the day's lead ---- */
.headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin: 2px 0 16px;
}
.dash-greet {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.dash-greet .grad {
  color: var(--accent);
}
.pullquote {
  max-width: 300px;
  flex: none;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-top: 4px;
}
.dash-quote-by {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---- scoreboard strip ---- */
.scoreboard {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-bottom: 14px;
}
.dstat {
  flex: 1 1 0;
  min-width: 130px;
  padding: 9px 18px 10px;
  border-left: 1px solid var(--line-strong);
}
.dstat:first-child {
  border-left: none;
  padding-left: 2px;
}
.dstat-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.15;
  color: var(--ink);
}
.dstat-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ---- offices as editions ---- */
.dash-seg {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin: 0 0 20px;
}
.dash-seg::before {
  content: "EDITIONS";
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-right: 12px;
}
.dash-seg .seg-btn {
  flex: none;
  border: none;
  background: none;
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 6px 12px;
}
.dash-seg .seg-btn:hover {
  background: none;
  color: var(--ink);
}
.dash-seg .seg-btn.is-active {
  background: none;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ---- columns with a newspaper rule between ---- */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0 30px;
  align-items: start;
}
.dash-main,
.dash-rail {
  min-width: 0;
}
.dash-rail {
  border-left: 1px solid var(--line-strong);
  padding-left: 30px;
}

/* ---- sections: heavy bar + small caps, no boxes ---- */
.sec {
  padding: 0 0 22px;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  border-top: 3px solid var(--ink);
  padding-top: 8px;
  margin-bottom: 10px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}
.sec-head .dcount {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  padding: 0;
}
.sec-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  font-style: italic;
  color: var(--accent);
  white-space: nowrap;
}
.btn-mini {
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.dcadence {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- editor's note: the one boxed thing on the page ---- */
.sec--note {
  border: 3px double var(--ink);
  background: #f8f3e2;
  padding: 12px 16px 14px;
  margin-bottom: 22px;
}
.sec--note .sec-head {
  border-top: none;
  padding-top: 0;
}
.dhuddle {
  white-space: pre-line;
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 6px;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* ---- shared bits: notes, subs, empties ---- */
.dnote {
  font-size: 12px;
  color: var(--muted);
  margin: -2px 0 10px;
}
.dsub {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 14px 0 4px;
}
.dempty {
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0;
}
.dall-done {
  color: var(--green);
  font-weight: 600;
  margin-top: 8px;
}
.dmanage {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.dmanage:hover {
  text-decoration: underline;
}
.dash-rail > .dmanage {
  display: block;
  text-align: right;
  margin: -12px 0 18px;
}

/* ---- rows ---- */
.drow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.drow:first-of-type,
.dsub + .drow {
  border-top: none;
}
.drow-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.drow-link:hover .dtext {
  color: var(--accent);
}
.dtext {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.dno {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: 2px 7px;
  white-space: nowrap;
}
.dmeta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.dchip {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 2px 7px;
  white-space: nowrap;
}
.dx {
  flex: none;
}
.pill-due {
  background: var(--amber-tint);
  color: var(--amber);
}
.is-done .dtext {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
}

/* square checkboxes — ballot boxes on newsprint */
.dcheck {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.dcheck:hover {
  border-color: var(--accent);
}
.dcheck.is-checked {
  background: var(--green);
  border-color: var(--green);
}

/* ---- checklist progress ---- */
.dbar {
  height: 5px;
  background: #eee8d8;
  margin-bottom: 8px;
  overflow: hidden;
}
.dbar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease;
}
.dbar-fill.is-full {
  background: var(--green);
}

/* ---- forms ---- */
.dform {
  margin-bottom: 12px;
}
.dform-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.dform-row .input {
  flex: 1;
  min-width: 130px;
}
.dform-row .select {
  min-width: 130px;
}
.mono-input {
  font-family: var(--mono);
}
.dann-input {
  min-height: 64px;
  margin-bottom: 8px;
}
.dpin-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ---- bulletin ---- */
.dann {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.dann:first-of-type {
  border-top: none;
}
.dann-body {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.dann.is-pinned .dann-body {
  font-weight: 600;
}
.dmeta-line {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}
.dtack {
  float: right;
  width: 9px;
  height: 9px;
  margin: 4px 2px 0 8px;
  background: var(--red);
  box-shadow: 1px 1px 0 rgba(3, 7, 16, 0.25);
}

/* ---- celebrations ---- */
.dbday {
  font-size: 16px;
}
.dbday-input {
  max-width: 90px;
  text-align: center;
}

/* ---- sheet footer ---- */
.dash-foot {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border-top: 4px double var(--ink);
  padding-top: 10px;
  margin: 4px 0 0;
}
.dash-foot a {
  color: var(--accent);
  text-decoration: none;
}

/* ============================================================
   OFF-SHEET SCREENS (login, enroll) — still on the navy desk
   ============================================================ */
.login-wrap .login-title,
.login-wrap .page-sub {
  color: #fff;
}
.login-wrap .page-sub {
  color: #93a5c4;
}
.login-title .grad {
  color: #9db9f0;
}
.login-logo {
  background: #fff;
  border: 1px solid rgba(5, 10, 22, 0.55);
  border-radius: var(--r);
  padding: 10px 14px;
}
.pin-dot {
  border-color: #5a6f96;
}
.pin-dot.is-filled {
  background: #fff;
  border-color: #fff;
}
.pin-key.is-ghost {
  color: #93a5c4;
}
.pin-key.is-ghost:hover {
  color: #fff;
}
.pin-error {
  color: #ff96a6;
}
.spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
}
.toast {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================================
   SMALLER PRESSES
   ============================================================ */
@media (max-width: 900px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-rail {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    padding-top: 16px;
    margin-top: 4px;
  }
  .pullquote {
    display: none;
  }
}
@media (max-width: 620px) {
  #app {
    padding-left: 8px;
    padding-right: 8px;
  }
  .sheet {
    padding-left: 14px;
    padding-right: 14px;
    margin-top: 10px;
  }
  .dstat {
    flex: 1 1 40%;
    padding: 8px 12px 9px;
  }
  .dstat:nth-child(odd) {
    border-left: none;
    padding-left: 2px;
  }
  .dstat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .dash-seg {
    flex-wrap: wrap;
  }
  .dmeta {
    display: none;
  }
  .drow .dx {
    margin-left: auto;
  }
}
