/* My Ember Works
   One stylesheet for both the crew tools and the homeowner portal. */

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('caveat.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --ember: #e95429;
  --ember-dark: #c8421c;
  --ember-soft: #fdeee8;
  --ink: #1b1917;
  --ink-2: #4c4541;
  --muted: #8b8079;
  --line: #e8e1da;
  --line-soft: #f2ece6;
  --bg: #faf7f4;
  --card: #ffffff;
  --ok: #16805a;
  --ok-soft: #e6f4ee;
  --warn: #b57708;
  --warn-soft: #fdf3df;
  --bad: #c9372c;
  --bad-soft: #fdeceb;
  --info: #2a6fb0;
  --info-soft: #e9f2fa;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(27, 25, 23, .05), 0 8px 24px -12px rgba(27, 25, 23, .18);
  --shadow-lg: 0 2px 4px rgba(27, 25, 23, .05), 0 24px 48px -20px rgba(27, 25, 23, .3);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ember-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.02em; font-weight: 680; }
h1 { font-size: 27px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
small { font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.strong { font-weight: 650; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 26px; }
.mb0 { margin-bottom: 0; } .mb1 { margin-bottom: 8px; } .mb2 { margin-bottom: 16px; } .mb3 { margin-bottom: 26px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.hide { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { text-decoration: none; background: var(--line-soft); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-dark); border-color: var(--ember-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-danger { color: var(--bad); border-color: #eccbc8; background: #fff; }
.btn-danger:hover { background: var(--bad-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--line-soft); }
.btn-sm { padding: 5px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------------- forms */

label, .label {
  display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-2);
  margin-bottom: 5px; letter-spacing: .01em;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=datetime-local], input[type=tel],
input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(233, 84, 41, .14);
}
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b8079' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 180px; margin-bottom: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--ember); flex: none; }

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px;
}
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); background: #fdfbf9; border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 18px; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-side { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
}

/* ------------------------------------------------------------------ badges */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--line-soft); color: var(--ink-2);
  white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.done { background: var(--ok-soft); color: var(--ok); }
.badge.muted { background: var(--line-soft); color: var(--muted); }
.badge.ember { background: var(--ember-soft); color: var(--ember-dark); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------------------------------------------------------------- progress */

.progress {
  height: 9px; background: var(--line-soft); border-radius: 999px; overflow: hidden;
}
.progress > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #f0763f, var(--ember));
  transition: width .5s ease;
}
.progress.lg { height: 14px; }

.ring { display: block; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-linecap: round; }
.ring .track { stroke: var(--line-soft); }
.ring .bar { stroke: url(#emberGrad); transition: stroke-dashoffset .8s ease; }

/* ------------------------------------------------------------------ tables */

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 700; padding: 9px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fdfbf9; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------ flashes */

.flash {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
  font-size: 14px; font-weight: 550; border: 1px solid transparent;
}
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: #c6e6d8; }
.flash.error { background: var(--bad-soft); color: var(--bad); border-color: #f2cfcc; }
.flash.info { background: var(--info-soft); color: var(--info); border-color: #cfe2f2; }

.empty {
  text-align: center; padding: 44px 20px; color: var(--muted);
}
.empty h3 { color: var(--ink-2); }

/* =================================================================== STAFF */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px; flex: none; background: #17150f; color: #cfc7bf;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px;
  color: #fff; font-weight: 700; letter-spacing: -.01em;
}
.sidebar .brand img { width: 30px; height: auto; }
.sidebar .brand span { font-size: 15px; line-height: 1.15; }
.sidebar .brand small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ember); font-weight: 700; }
.sidebar nav { padding: 6px 10px; overflow-y: auto; flex: 1; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: #b9b0a8; font-size: 14px; font-weight: 550; margin-bottom: 2px;
}
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.sidebar nav a.on { background: var(--ember); color: #fff; }
.sidebar nav .sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #6d635b; padding: 16px 11px 6px; font-weight: 700; }
.sidebar nav a .pill { margin-left: auto; background: var(--ember); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.sidebar nav a.on .pill { background: rgba(0,0,0,.28); }
.sidebar .who { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.sidebar .who strong { color: #fff; display: block; font-size: 13.5px; }
.sidebar .who a { color: #8f857d; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 24px; display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 19px; margin: 0; }
.topbar .sub { font-size: 12.5px; color: var(--muted); }
.content { padding: 22px 24px 60px; max-width: 1240px; width: 100%; }

.clockchip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--ok-soft);
  color: var(--ok); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 650;
}
.clockchip .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.mobilebar { display: none; }
.bottomnav { display: none; }

@media (max-width: 900px) {
  /* The sidebar becomes an off-canvas drawer rather than disappearing, so the
     full navigation is still reachable on a phone. */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; height: 100dvh;
    width: 272px; max-width: 84vw; z-index: 60;
    transform: translateX(-101%); transition: transform .22s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .5);
  }
  body.navopen .sidebar { transform: none; }
  .navscrim {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 55;
  }
  .navtoggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-right: -4px; flex: none;
    background: transparent; border: 0; border-radius: 9px;
    color: #cdcbc7; cursor: pointer; padding: 0;
  }
  .navtoggle:active { background: rgba(255, 255, 255, .1); }
  .mobilebar {
    display: flex; align-items: center; gap: 12px; justify-content: space-between;
    background: #17150f; color: #fff; padding: 11px 16px; position: sticky; top: 0; z-index: 40;
  }
  .mobilebar .brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 700; font-size: 15px; }
  .mobilebar .brand img { width: 26px; }
  .mobilebar a { color: #cfc7bf; }
  .topbar { padding: 12px 16px; top: 48px; }
  .content { padding: 16px 14px 96px; }
  .bottomnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px -12px rgba(0,0,0,.4);
  }
  .bottomnav a {
    flex: 1; text-align: center; font-size: 10.5px; font-weight: 650; color: var(--muted);
    padding: 5px 2px; border-radius: 10px; letter-spacing: .01em;
  }
  .bottomnav a:hover { text-decoration: none; }
  .bottomnav a svg { display: block; margin: 0 auto 2px; }
  .bottomnav a.on { color: var(--ember); }
}

/* ------------------------------------------------------------- staff bits */

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px; box-shadow: var(--shadow); }
.stat .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 25px; font-weight: 700; letter-spacing: -.025em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.stat .n { font-size: 12.5px; color: var(--muted); }

.tabs { display: flex; gap: 3px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a {
  padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs a:hover { color: var(--ember-dark); text-decoration: none; }
.tabs a.on { color: var(--ember-dark); border-bottom-color: var(--ember); }
.tabs a .pill { background: var(--ember); color: #fff; font-size: 10.5px; padding: 0 6px; border-radius: 999px; margin-left: 5px; vertical-align: 1px; }

.projlist { display: grid; gap: 12px; }
.projcard {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); color: inherit;
  transition: border-color .12s, transform .08s;
}
.projcard:hover { text-decoration: none; border-color: #d7cdc3; transform: translateY(-1px); }
.projcard .title { font-weight: 680; font-size: 16px; letter-spacing: -.01em; }
.projcard .meta { font-size: 12.5px; color: var(--muted); }
.projcard .pct { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.phase {
  display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.phase:last-child { border-bottom: 0; }
.phase .marker { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); background: #fff; }
.phase.complete .marker { background: var(--ok); border-color: var(--ok); color: #fff; }
.phase.in_progress .marker { border-color: var(--ember); color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
.phase.blocked .marker { border-color: var(--warn); color: var(--warn); }
.phase .name { font-weight: 640; }

.tasklist { list-style: none; margin: 0; padding: 0; }
.tasklist li {
  display: flex; align-items: flex-start; gap: 11px; padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tasklist li:last-child { border-bottom: 0; }
.tasklist .tbody { flex: 1; min-width: 0; }
.tasklist .ttitle { font-weight: 570; }
.tasklist li.done .ttitle { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.tickbtn {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  border: 2px solid var(--line); background: #fff; cursor: pointer; padding: 0;
  display: grid; place-items: center; transition: background .12s, border-color .12s;
}
.tickbtn:hover { border-color: var(--ember); }
.tickbtn.on { background: var(--ok); border-color: var(--ok); }
.tickbtn svg { opacity: 0; }
.tickbtn.on svg { opacity: 1; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .item { position: relative; padding-bottom: 22px; }
.timeline .item:last-child { padding-bottom: 0; }
.timeline .item::before {
  content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 3px var(--bg);
}
.timeline .item.quiet::before { background: var(--line); }
.timeline .when { font-size: 12px; color: var(--muted); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.photo-grid a { display: block; position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--line-soft); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.05); }
.photo-grid .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px; font-size: 11.5px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); line-height: 1.3;
}
.photo-grid .hiddenflag { position: absolute; top: 6px; right: 6px; }

.chatlog { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; }
.msg .who { font-size: 11.5px; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.us { align-self: flex-end; background: var(--ember); color: #fff; border-bottom-right-radius: 4px; }
.msg .at { font-size: 11px; opacity: .65; margin-top: 3px; }

.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px 18px;
  text-align: center; color: var(--muted); background: #fdfbf9; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.hot { border-color: var(--ember); background: var(--ember-soft); color: var(--ember-dark); }

/* ================================================================== PORTAL */

.portal { background: var(--bg); min-height: 100vh; }
.portal-head {
  background: #17150f;
  background-image: radial-gradient(120% 140% at 12% -20%, #3a2a1d 0%, #17150f 62%);
  color: #fff; padding: 16px 20px;
}
.portal-head .inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.portal-head .brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.portal-head .brand img { width: 38px; }
.portal-head .brand b { display: block; font-size: 15px; letter-spacing: -.01em; }
.portal-head .brand small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ember); font-weight: 700; }
.portal-head a { color: #b9b0a8; font-size: 13px; }

.portal-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.portal-nav .inner { max-width: 1000px; margin: 0 auto; display: flex; gap: 4px; padding: 0 20px; overflow-x: auto; }
.portal-nav a {
  padding: 13px 14px; font-size: 14px; font-weight: 620; color: var(--ink-2);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.portal-nav a.on { color: var(--ember-dark); border-bottom-color: var(--ember); }
.portal-nav a:hover { text-decoration: none; color: var(--ember-dark); }
.portal-nav a .pill { background: var(--ember); color: #fff; font-size: 10.5px; padding: 0 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }

.portal-body { max-width: 1000px; margin: 0 auto; padding: 24px 20px 70px; }
.portal-foot { max-width: 1000px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: 12.5px; text-align: center; }

.hero {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; margin-bottom: 20px;
}
.hero .top { padding: 24px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.hero .headline { flex: 1 1 260px; min-width: 0; }
.hero .headline h1 { font-size: 26px; margin-bottom: 6px; }
.hero .ringwrap { flex: none; text-align: center; }
.hero .ringwrap .pctnum { font-size: 27px; font-weight: 720; letter-spacing: -.03em; }
.hero .ringwrap .pctlbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.hero .strip { display: flex; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.hero .strip div { flex: 1 1 150px; padding: 14px 20px; border-right: 1px solid var(--line-soft); }
.hero .strip div:last-child { border-right: 0; }
.hero .strip .k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.hero .strip .v { font-weight: 660; font-size: 15px; margin-top: 2px; }

.stepper { list-style: none; margin: 0; padding: 0; }
.stepper li { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.stepper li:last-child { padding-bottom: 0; }
.stepper li::before {
  content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line);
}
.stepper li:last-child::before { display: none; }
.stepper .mk {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff;
  border: 2px solid var(--line); display: grid; place-items: center; z-index: 1;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.stepper li.complete .mk { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.in_progress .mk { border-color: var(--ember); color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
.stepper li.blocked .mk { border-color: var(--warn); color: var(--warn); }
.stepper .nm { font-weight: 640; font-size: 15px; }
.stepper li.complete .nm { color: var(--ink-2); }

.loginwrap {
  min-height: 100vh; display: grid; place-items: center; padding: 30px 18px;
  background: #17150f;
  background-image: radial-gradient(130% 110% at 50% -10%, #4a3323 0%, #17150f 60%);
}

/* --------------------------------------------------- "my" brand lockup */

.lockup { text-align: center; margin-bottom: 26px; }
.lockup .my {
  font-family: 'Caveat', 'Segoe Script', 'Snell Roundhand', cursive;
  font-size: 58px; line-height: .8; color: var(--ember);
  display: block; margin-bottom: -6px; transform: rotate(-4deg);
  text-shadow: 0 2px 18px rgba(233, 84, 41, .45);
}
.lockup img { width: 132px; height: auto; display: block; margin: 0 auto; }
.lockup .tag {
  color: #a89e96; font-size: 13px; margin-top: 12px; letter-spacing: .01em;
}

.segmented {
  display: flex; background: var(--line-soft); border-radius: 11px; padding: 3px; margin-bottom: 20px;
}
.segmented button {
  flex: 1; font: inherit; font-size: 13.5px; font-weight: 650; padding: 9px 8px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.segmented button.on { background: #fff; color: var(--ember-dark); box-shadow: var(--shadow); }

/* The small cursive "my" used in the app chrome. */
.brandmy {
  font-family: 'Caveat', 'Segoe Script', 'Snell Roundhand', cursive;
  font-size: 20px; line-height: .85; color: var(--ember);
  text-transform: none; letter-spacing: 0; font-weight: 600;
}
.loginbox {
  width: 100%; max-width: 420px; background: #fff; border-radius: 18px;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,.6); padding: 30px 28px 26px;
}
.loginbox .logo { text-align: center; margin-bottom: 18px; }
.loginbox .logo img { width: 62px; }
.loginbox h1 { text-align: center; font-size: 21px; margin-bottom: 4px; }
.loginbox .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.loginbox .codeinput {
  text-transform: uppercase; letter-spacing: .16em; font-weight: 650; font-size: 17px; text-align: center;
}
.loginfoot { text-align: center; margin-top: 20px; color: #8f857d; font-size: 12.5px; }
.loginfoot a { color: #cfc7bf; }

/* --------------------------------------------------------------- printing */

.accesscard {
  max-width: 640px; margin: 0 auto; border: 2px solid var(--line); border-radius: 16px;
  padding: 34px; background: #fff; text-align: center;
}
.accesscard .code {
  font-size: 34px; font-weight: 750; letter-spacing: .14em; color: var(--ember-dark);
  background: var(--ember-soft); border-radius: 12px; padding: 14px 20px; display: inline-block; margin: 10px 0;
}

@media print {
  .noprint, .sidebar, .topbar, .mobilebar, .bottomnav, .tabs { display: none !important; }
  body { background: #fff; }
  .content { padding: 0; }
  .card { box-shadow: none; }
}

/* Sign-in: tighten the top on small screens. Vertically centring a tall box
   on a phone leaves a big empty band above the wordmark. */
@media (max-width: 640px) {
  .loginwrap { align-items: start; padding: 22px 14px 32px; min-height: 100dvh; }
  .lockup { margin-bottom: 18px; }
  .lockup .my { font-size: 44px; margin-bottom: 0; }
  .lockup .tag { margin-top: 8px; }
  .loginbox { padding: 24px 20px 22px; }
  .loginbox h1 { font-size: 19px; }
  .loginbox .sub { margin-bottom: 16px; }
}

/* The drawer toggle only exists on small screens. Scoped to a min-width query
   so it cannot override the mobile rules defined earlier in this file. */
@media (min-width: 901px) {
  .navtoggle, .navscrim { display: none !important; }
}
.navscrim[hidden] { display: none; }
