/* =============================================================
   LiLo Brand Studio: client brand dashboard
   Same system as The Next Level Brand Experience.
   Palette: Rust, Driftwood, Greige, Linen, Ink (60/30/10).
   Type: Times New Roman makes the statement, Lato does the reading.
   Sharp corners. Paper plates on linen. Rust spent like punctuation.
   ============================================================= */

:root {
  --linen:      #F2EFEA;
  --linen-deep: #E1DBD4;
  --greige:     #C8BEB2;
  --driftwood:  #A8957E;
  --driftwood-d:#8A7660;
  --ink:        #161616;
  --ink-soft:   #6B6660;
  --ink-mute:   rgba(22, 22, 22, 0.45);
  --rust:       #AF493B;
  --rust-d:     #9D4134;
  --rust-l:     rgba(175, 73, 59, 0.08);
  --white:      #FFFFFF;

  --serif: 'Times New Roman', Times, serif;
  --sans:  'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1120px;

  --emboss-raised:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(168,149,126,0.26),
    0 1px 2px rgba(22,22,22,0.05),
    0 14px 34px rgba(22,22,22,0.085);
  --emboss-soft:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(168,149,126,0.18),
    0 4px 14px rgba(22,22,22,0.045);
  --emboss-pressed:
    inset 0 2px 4px rgba(22,22,22,0.07),
    inset 0 -1px 0 rgba(255,255,255,0.85);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--linen); }
body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--linen);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rust); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--rust-d); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700;
  color: var(--rust); margin: 0 0 12px;
}
.eyebrow a { color: inherit; }
.eyebrow--light { color: var(--driftwood); }
.quiet { color: var(--ink-soft); font-size: 14px; }
.hint { font-size: 12px; color: var(--ink-soft); margin-top: 10px; letter-spacing: 0.02em; }
.mono { font-family: Consolas, 'Courier New', monospace; font-size: 12.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  transition: all .15s ease; text-decoration: none; white-space: nowrap;
}
.btn--primary { background: var(--rust); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(22,22,22,0.25); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--text { background: transparent; border: 0; color: var(--ink-soft); padding: 8px 0; letter-spacing: 0.08em; }
.btn--text:hover { color: var(--rust); }
.btn--sm { padding: 10px 16px; font-size: 11px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, #454140 0%, #2a2828 38%, var(--ink) 72%, #100f0e 100%);
  color: var(--white);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.18), inset 0 -2px 0 rgba(0,0,0,0.75);
}
.topbar__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; gap: 18px;
}
.topbar__brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.topbar__brand:hover { color: var(--white); }
.topbar__stamp { height: 30px; width: auto; }
.topbar__wordmark { font-family: var(--serif); font-size: 17px; letter-spacing: 0.02em; }
.topbar__client {
  margin-left: auto; font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--driftwood);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__right { display: flex; align-items: center; }
.topbar__link { color: rgba(255,255,255,0.75); font-size: 12px; letter-spacing: 0.08em; }
.topbar__link:hover { color: var(--driftwood); }
.topbar__signout { margin: 0; }
.topbar__signout button {
  background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.72);
  font-size: 11px; letter-spacing: 0.08em; padding: 6px 12px;
}
.topbar__signout button:hover { color: var(--driftwood); border-color: var(--driftwood); }
.preview-bar {
  background: var(--rust); color: var(--white); text-align: center;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 16px;
}

/* ---------- File-folder tabs ---------- */
.ftabs {
  position: sticky; top: 60px; z-index: 55;
  background: var(--linen);
  border-bottom: 1px solid var(--greige);
}
.admin-preview .ftabs { top: 89px; }
.ftabs__inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px 0;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.ftabs__inner::-webkit-scrollbar { display: none; }
.ftab {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 11px 18px 10px;
  background: var(--white);
  border: 1px solid var(--greige); border-bottom: 0;
  margin-bottom: -1px;
  color: var(--ink-soft);
  font-size: 13px; letter-spacing: 0.04em;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: color .15s ease, background .15s ease;
}
.ftab:hover { color: var(--ink); }
.ftab__num { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--driftwood); }
.ftab.is-current {
  background: var(--linen-deep); color: var(--ink); font-weight: 700;
  border-color: var(--greige);
  box-shadow: inset 0 2px 0 var(--rust);
}
.ftab.is-current .ftab__num { color: var(--rust); }

/* ---------- Page ---------- */
body.studio {
  background-color: var(--linen);
  background-image:
    linear-gradient(rgba(242,239,234,0.86), rgba(242,239,234,0.86)),
    url('/img/photography/backdrop2.jpg');
  background-size: auto, cover;
  background-position: center, center 30%;
  background-attachment: fixed, fixed;
  overflow-x: hidden;
}
.studio-page { max-width: var(--container); margin: 0 auto; padding: 28px 24px 72px; }

/* Cinematic cover, from Next Level */
.vcover { position: relative; height: clamp(280px, 32vw, 400px); background: var(--ink); }
.vcover::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--vcover-img); background-size: cover; background-position: center 32%;
  filter: saturate(0.7) contrast(1.02) brightness(0.97);
}
.vcover__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(22,22,22,0.86) 0%, rgba(22,22,22,0.48) 44%, rgba(22,22,22,0.06) 100%),
    linear-gradient(0deg, rgba(22,22,22,0.68) 0%, rgba(22,22,22,0) 46%);
}
.vcover__inner {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding: 30px 44px 34px; color: var(--white);
}
.vcover__topbar { display: flex; justify-content: space-between; gap: 16px; }
.vcover__eyebrow { font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase; font-weight: 700; color: var(--driftwood); }
.vcover__prepared { font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255,255,255,0.5); text-align: right; line-height: 1.9; }
.vcover__prepared span { color: rgba(255,255,255,0.88); }
.vcover__bottom { max-width: 720px; }
.vcover__titlewrap { display: flex; align-items: baseline; gap: 20px; }
.vcover__num { font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); line-height: 1; color: rgba(255,255,255,0.55); }
.vcover__rule { width: 46px; height: 1px; background: var(--rust); align-self: center; flex-shrink: 0; }
.vcover__title {
  font-family: var(--serif); font-size: clamp(42px, 6.4vw, 82px); line-height: 0.98;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.055em;
}
.vcover__title--name { text-transform: none; letter-spacing: 0.01em; font-size: clamp(40px, 6vw, 76px); }
.vcover__accent {
  display: block; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 38px);
  color: var(--driftwood); margin: -0.35em 0 0 clamp(70px, 11vw, 150px); letter-spacing: 0.01em;
}
.vcover__accent--tag { margin: 12px 0 0; font-size: clamp(18px, 2.2vw, 26px); color: rgba(255,255,255,0.82); }
.vcover__desc { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.82); margin-top: 14px; max-width: 46ch; }

/* ---------- Sheets: paper plates on linen ---------- */
.chapter, .ov { display: flex; flex-direction: column; gap: 36px; margin-top: 36px; }
.sheet {
  position: relative;
  background: var(--linen);
  border: 1px solid var(--greige);
  padding: 52px 60px 44px;
  margin-right: 14px;
  /* Offset plate behind the sheet: stacked paper, drawn with shadows so it never covers the sheet */
  box-shadow: var(--emboss-raised), 14px 14px 0 0 var(--linen-deep), 14px 14px 0 1px var(--greige);
}
.sheet__head { margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--greige); }
.sheet__title { font-size: clamp(28px, 3.4vw, 40px); }
.sheet--empty { text-align: center; padding: 72px 40px; }
.sheet--empty .sheet__title { margin-bottom: 12px; }
.sheet--hw { border-top: 3px solid var(--rust); }

/* ---------- A piece ---------- */
.piece { padding: 30px 0; border-bottom: 1px solid rgba(200,190,178,0.6); scroll-margin-top: 140px; transition: background .6s ease; }
.piece:first-of-type { padding-top: 0; }
.piece:last-child { border-bottom: 0; padding-bottom: 0; }
.piece.is-target { background: var(--rust-l); }
.piece__head { margin-bottom: 18px; }
.piece__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.piece__title { font-size: 24px; }
.piece__actions { margin-top: 14px; }

.tag {
  display: inline-block; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700;
  padding: 4px 9px; border: 1px solid currentColor;
}
.tag--final { color: var(--driftwood-d); }
.tag--review { color: var(--rust); background: var(--rust-l); }
.tag--hw { color: var(--white); background: var(--rust); border-color: var(--rust); }
.tag--sent { color: var(--ink); }
.tag--draft { color: var(--ink-mute); border-style: dashed; }
.mode { font-size: 11px; letter-spacing: 0.06em; color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 14px; }

.copy {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(22,22,22,0.18); color: var(--ink-soft);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 11px;
}
.copy:hover { color: var(--rust); border-color: var(--rust); }

/* statement */
.statement {
  margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.32;
  color: var(--ink); padding-left: 24px; border-left: 2px solid var(--rust); max-width: 30em;
}
.statement__sub { margin-top: 14px; color: var(--ink-soft); font-size: 15px; padding-left: 26px; }

/* text */
.prose p { margin: 0 0 14px; font-weight: 300; font-size: 17px; line-height: 1.7; max-width: 42em; }
.prose p:last-child { margin-bottom: 0; }
.prose--note { margin-top: 18px; }
.prose--note p { font-size: 15px; color: var(--ink-soft); }

/* words */
.words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.words li {
  font-family: var(--serif); font-size: 22px; padding: 10px 22px; background: var(--white);
  border: 1px solid var(--greige); box-shadow: var(--emboss-soft);
}

/* list */
.blist { margin: 0; padding: 0; list-style: none; }
.blist li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid rgba(200,190,178,0.45); font-size: 16px; }
.blist li:last-child { border-bottom: 0; }
.blist li::before { content: ''; position: absolute; left: 0; top: 21px; width: 12px; height: 1px; background: var(--rust); }
.blist li strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; margin-bottom: 2px; }
.blist li span { color: var(--ink-soft); font-size: 15px; }
.blist--num { counter-reset: n; }
.blist--num li { padding-left: 40px; counter-increment: n; }
.blist--num li::before { content: counter(n, decimal-leading-zero); width: auto; height: auto; background: none; top: 9px; font-family: var(--serif); font-style: italic; color: var(--rust); font-size: 16px; }

/* cards */
.cards { display: grid; gap: 18px; }
.cards--1 { grid-template-columns: 1fr; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--greige); padding: 24px 22px; box-shadow: var(--emboss-soft); }
.card__eyebrow { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--driftwood-d); margin-bottom: 8px; }
.card__title { font-size: 22px; margin-bottom: 10px; }
.card__body p { font-size: 14.5px; line-height: 1.6; color: #3a3a3a; margin: 0 0 8px; }
.card__quote { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--greige); font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--rust); }

/* table */
.tablewrap { overflow-x: auto; }
.btable { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--greige); }
.btable th { text-align: left; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--driftwood-d); padding: 12px 18px; border-bottom: 1px solid var(--greige); background: var(--linen); }
.btable td { padding: 14px 18px; border-bottom: 1px solid rgba(200,190,178,0.55); font-size: 15px; vertical-align: top; }
.btable tr:last-child td { border-bottom: 0; }
.btable .td-first { font-family: var(--serif); font-size: 17px; width: 36%; }

/* palette */
.palette-strip { display: flex; height: 120px; border: 1px solid var(--greige); margin-bottom: 18px; box-shadow: var(--emboss-soft); }
.palette-strip span { display: block; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.swatch {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px;
  background: var(--white); border: 1px solid var(--greige); padding: 0 0 14px; box-shadow: var(--emboss-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
.swatch:hover { transform: translateY(-2px); box-shadow: var(--emboss-raised); }
.swatch__chip { display: block; width: 100%; height: 76px; margin-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.swatch__name { font-family: var(--serif); font-size: 19px; padding: 0 14px; }
.swatch__hex { font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); padding: 0 14px; font-family: Consolas, 'Courier New', monospace; }
.swatch__role { font-size: 12px; color: var(--ink-soft); padding: 4px 14px 0; line-height: 1.4; }

/* fonts */
.fonts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.font { background: var(--white); border: 1px solid var(--greige); padding: 26px 24px; box-shadow: var(--emboss-soft); }
.font__role { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--driftwood-d); }
.font__sample { font-size: 34px; line-height: 1.15; margin: 14px 0; }
.font__name { font-size: 13px; color: var(--ink-soft); }

/* images */
.figures { display: grid; gap: 20px; }
.figures--multi { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.figure { margin: 0; background: var(--white); border: 1px solid var(--greige); box-shadow: var(--emboss-soft); }
.figure__img { display: block; background: #fff; padding: 18px; }
.figure__img img { width: 100%; height: auto; max-height: 520px; object-fit: contain; margin: 0 auto; }
.figure figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--greige); font-size: 14px; }
.dl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }

/* options (still deciding) */
.options { list-style: none; margin: 0; padding: 0; counter-reset: o; }
.option {
  counter-increment: o; position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  padding: 16px 18px 16px 56px; background: var(--white); border: 1px solid var(--greige); margin-bottom: 10px;
}
.option::before { content: counter(o, decimal-leading-zero); position: absolute; left: 18px; top: 17px; font-family: var(--serif); font-style: italic; color: var(--driftwood); }
.option__text { font-family: var(--serif); font-size: 20px; flex: 1 1 320px; }
.option__flag { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--rust); }
.option__note { flex-basis: 100%; font-size: 13.5px; color: var(--ink-soft); }
.option.is-liked { border-left: 3px solid var(--rust); }

/* sitemap */
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.smpage { background: var(--white); border: 1px solid var(--greige); padding: 24px 22px; box-shadow: var(--emboss-soft); }
.smpage__num { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--driftwood-d); font-weight: 700; }
.smpage__name { font-size: 26px; margin: 8px 0 8px; }
.smpage__purpose { font-size: 14.5px; color: #3a3a3a; line-height: 1.55; }
.smpage__sections { margin: 14px 0 0; padding: 12px 0 0 18px; border-top: 1px solid var(--greige); font-size: 14px; color: var(--ink-soft); }
.smpage__sections li { padding: 3px 0; }

/* links */
.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: 12px 0; border-bottom: 1px solid rgba(200,190,178,0.55); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.links a { font-family: var(--serif); font-size: 19px; }
.links span { font-size: 14px; color: var(--ink-soft); }

/* homework */
.hw__intro { margin-bottom: 22px; }
.hw { display: flex; flex-direction: column; gap: 22px; }
.hw__field { display: flex; flex-direction: column; gap: 6px; }
.hw__label { font-family: var(--serif); font-size: 19px; }
.hw__help { font-size: 13.5px; color: var(--ink-soft); }
.hw textarea, .field input, .aform input, .aform textarea, .aform select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--greige); border-radius: 0;
  padding: 14px 16px; box-shadow: var(--emboss-pressed); line-height: 1.6;
}
.hw textarea:focus, .field input:focus, .aform input:focus, .aform textarea:focus, .aform select:focus { outline: none; border-color: var(--rust); }
.hw__answer { background: var(--white); border-left: 2px solid var(--driftwood); padding: 12px 16px; }
.hw__answer p { font-weight: 300; margin: 0 0 8px; }
.hw__empty { color: var(--ink-mute); font-style: italic; }
.hw__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.hw__status { font-size: 13px; color: var(--ink-soft); font-style: italic; font-family: var(--serif); }

/* checklist */
.checks { list-style: none; margin: 0; padding: 0; }
.check { border-bottom: 1px solid rgba(200,190,178,0.55); }
.check label { display: flex; gap: 16px; padding: 14px 0; cursor: pointer; align-items: flex-start; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--driftwood); background: var(--white); margin-top: 2px; position: relative; }
.check input:checked + .check__box { background: var(--rust); border-color: var(--rust); }
.check input:checked + .check__box::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check input:focus-visible + .check__box { outline: 2px solid var(--rust); outline-offset: 2px; }
.check__text strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; }
.check__text span { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.check.is-checked .check__text strong { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--driftwood); }
.checklist .hw__status { margin-top: 12px; }

/* ---------- Overview ---------- */
.ov-welcome { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.ov-note__text p { font-family: var(--serif); font-size: 22px; line-height: 1.5; margin: 0 0 14px; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.byline img { width: 48px; height: 48px; object-fit: cover; object-position: center 20%; }
.byline p { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.byline em { display: block; font-family: var(--sans); font-style: normal; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--driftwood-d); margin-top: 3px; }
.ov-next { background: var(--ink); color: var(--white); padding: 30px 28px; }
.ov-next__date { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.ov-next__date span { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); margin-top: 6px; }
.ov-next__title { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,0.86); }
.ov-next__agenda { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,0.16); list-style: none; }
.ov-next__agenda li { font-size: 14px; color: rgba(255,255,255,0.78); padding: 4px 0 4px 18px; position: relative; }
.ov-next__agenda li::before { content: ''; position: absolute; left: 0; top: 14px; width: 9px; height: 1px; background: var(--rust); }

.hwlist { list-style: none; margin: 0; padding: 0; }
.hwlist__item a {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: baseline;
  padding: 16px 4px; border-bottom: 1px solid rgba(200,190,178,0.6); color: var(--ink);
}
.hwlist__item a:hover { background: rgba(255,255,255,0.5); color: var(--ink); }
.hwlist__tab { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--driftwood-d); }
.hwlist__title { font-family: var(--serif); font-size: 20px; }
.hwlist__due { font-size: 13px; color: var(--rust); white-space: nowrap; }
.hwlist__item.is-late .hwlist__due { font-weight: 700; }
.hwlist--sent .hwlist__due { color: var(--ink-soft); }
.hwlist__sent-label { margin-top: 28px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }

.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.glance__block--wide { grid-column: 1 / -1; }
.glance__label { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--driftwood-d); margin-bottom: 10px; }
.glance__statement { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; }
.glance__text { font-size: 17px; font-weight: 300; line-height: 1.7; max-width: 44em; }
.glance__palette { display: flex; height: 64px; border: 1px solid var(--greige); }
.glance__palette button { flex: 1; border: 0; padding: 0; }
.glance__words { font-family: var(--serif); font-size: 28px; }
.glance__words span { color: var(--rust); margin: 0 12px; }
.glance__more { display: inline-block; margin-top: 12px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 1px; background: var(--greige); }
.tl { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 38px; padding: 12px 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 113px; top: 19px; width: 11px; height: 11px; background: var(--linen); border: 1px solid var(--driftwood); transform: rotate(45deg); }
.tl__date { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); text-align: right; padding-top: 4px; }
.tl__label { font-family: var(--serif); font-size: 20px; }
.tl__detail { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
.tl--session::before { background: var(--driftwood); }
.tl--deadline .tl__label { color: var(--rust); }
.tl--milestone::before { background: var(--ink); border-color: var(--ink); }
.tl.is-past { opacity: 0.5; }
.tl.is-past::before { background: var(--greige); border-color: var(--greige); }
.tl.is-today::before { background: var(--rust); border-color: var(--rust); }

.sessions { display: flex; flex-direction: column; gap: 10px; }
.session { background: var(--white); border: 1px solid var(--greige); }
.session summary { list-style: none; cursor: pointer; display: flex; gap: 18px; align-items: baseline; padding: 18px 22px; }
.session summary::-webkit-details-marker { display: none; }
.session summary::after { content: '+'; margin-left: auto; font-family: var(--serif); font-size: 22px; color: var(--driftwood); line-height: 1; }
.session[open] summary::after { content: '\2212'; }
.session__date { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--driftwood-d); white-space: nowrap; }
.session__title { font-family: var(--serif); font-size: 21px; }
.session__body { padding: 0 22px 22px; }
.session__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 12px; }
.session__label { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--rust); margin-bottom: 4px; }

/* ---------- Files ---------- */
.filegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.filecard { background: var(--white); border: 1px solid var(--greige); box-shadow: var(--emboss-soft); display: flex; flex-direction: column; }
.filecard__preview { display: flex; align-items: center; justify-content: center; height: 170px; background: #fff; border-bottom: 1px solid var(--greige); padding: 14px; }
.filecard__preview img { max-height: 100%; width: auto; object-fit: contain; }
.filecard__ext { font-family: var(--serif); font-size: 30px; color: var(--driftwood); letter-spacing: 0.08em; }
.filecard__meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.filecard__label { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.filecard__note { font-size: 13px; color: var(--ink-soft); }
.filecard .dl { margin-top: auto; padding-top: 6px; }

/* ---------- Footer ---------- */
.sfoot { border-top: 1px solid var(--greige); background: var(--linen); }
.sfoot__inner { max-width: var(--container); margin: 0 auto; padding: 32px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sfoot__logo { height: 36px; width: auto; }
.sfoot p { font-size: 13px; color: var(--ink-soft); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--white); padding: 12px 20px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: all .2s ease; pointer-events: none; z-index: 100;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Sign in ---------- */
.signin-body { background: var(--linen); }
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.signin__photo { background-size: cover; background-position: center 30%; filter: saturate(0.75); }
.signin__panel { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(24px, 6vw, 88px); max-width: 620px; }
.signin__logo { height: 44px; width: auto; margin-bottom: 48px; align-self: flex-start; }
.signin__title { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin-bottom: 18px; }
.signin__title em { color: var(--rust); }
.signin__lede { font-weight: 300; font-size: 17px; color: #3a3a3a; margin-bottom: 30px; max-width: 30em; }
.signin__form { display: flex; flex-direction: column; gap: 14px; }
.signin__form [data-step] { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.signin__sent { font-family: var(--serif); font-style: italic; font-size: 18px; }
.signin__error { color: var(--rust); font-size: 14px; min-height: 20px; }

/* ---------- Admin ---------- */
body.admin { background: var(--ink); min-height: 100vh; }
html:has(body.admin) { background: var(--ink); }
.admin-page { max-width: 1040px; margin: 0 auto; padding: 32px 24px 80px; display: flex; flex-direction: column; gap: 24px; }
.apanel { background: var(--linen); border: 1px solid var(--greige); padding: 34px 38px; }
.apanel--alert { border-top: 3px solid var(--rust); }
.atitle { font-size: 40px; margin-bottom: 6px; }
.asub { font-size: 26px; margin-bottom: 18px; }
.aclients { display: flex; flex-direction: column; }
.aclient { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; padding: 16px 0; border-bottom: 1px solid var(--greige); color: var(--ink); }
.aclient:hover { color: var(--ink); background: rgba(255,255,255,0.5); }
.aclient__name { font-family: var(--serif); font-size: 22px; }
.aclient__who { font-size: 13px; color: var(--ink-soft); grid-column: 1; }
.aclient__stats { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; gap: 14px; font-size: 13px; color: var(--ink-soft); }
.aclient__stats b { color: var(--rust); }
.aform--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.aform label { display: flex; flex-direction: column; gap: 5px; }
.aform label > span, .afield legend { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.aform input, .aform textarea, .aform select { padding: 10px 12px; font-size: 14px; }
.aform__wide { grid-column: 1 / -1; }
.aform__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.afield { border: 1px solid var(--greige); padding: 16px; margin: 0; }
.achecks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.achecks label { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; }
.achecks input { width: auto; box-shadow: none; }
.astatus { font-size: 13px; color: var(--ink-soft); font-style: italic; }
.atab { border-top: 1px solid var(--greige); }
.atab summary { cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; font-family: var(--serif); font-size: 21px; }
.atab__count { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); }
.aitems { padding-bottom: 14px; }
.aitem { background: var(--white); border: 1px solid var(--greige); margin-bottom: 8px; scroll-margin-top: 80px; }
.aitem.is-draft { border-style: dashed; opacity: 0.85; }
.aitem.is-submitted { border-left: 3px solid var(--rust); }
.aitem.is-homework { border-left: 3px solid var(--driftwood); }
.aitem__line { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px 150px; gap: 12px; align-items: center; padding: 10px 12px; }
.aitem__line select, .aitem__line input { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--greige); background: var(--white); border-radius: 0; }
.aitem__line .is-saved { border-color: var(--driftwood); background: #f6f3ee; }
.aitem__toggle { background: none; border: 0; text-align: left; font-family: var(--serif); font-size: 17px; padding: 0; color: var(--ink); }
.aitem__toggle:hover { color: var(--rust); }
.aitem__kind { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.aitem__edit { padding: 14px 12px 16px; border-top: 1px solid var(--greige); display: flex; flex-direction: column; gap: 12px; }
.areview { background: var(--white); border: 1px solid var(--greige); padding: 22px 24px; margin-bottom: 14px; }
.areview__meta { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--driftwood-d); }
.areview__title { font-size: 24px; margin: 6px 0 14px; }
.areview__qa { margin-bottom: 14px; }
.areview__q { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.areview__a { border-left: 2px solid var(--rust); padding-left: 12px; }
.areview__a p { margin: 0 0 6px; font-weight: 300; }
.afiles { list-style: none; margin: 0 0 22px; padding: 0; }
.afile { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--greige); flex-wrap: wrap; }
.afile a { font-family: var(--serif); font-size: 17px; }
.afile span { font-size: 12px; color: var(--ink-soft); }
.afile .btn--text { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  body.studio { background-attachment: scroll, scroll; }
  .studio-page { padding: 16px 16px 48px; }
  .topbar__inner { padding: 0 16px; gap: 12px; }
  .topbar__wordmark { display: none; }
  .ftabs__inner { padding: 10px 16px 0; }
  .ftab { padding: 10px 14px 9px; font-size: 12.5px; }
  .vcover { height: clamp(220px, 58vw, 320px); }
  .vcover__inner { padding: 20px 22px 24px; }
  .vcover__prepared { display: none; }
  .vcover__titlewrap { gap: 14px; }
  .vcover__rule { width: 28px; }
  .vcover__accent { margin-left: 48px; }
  .vcover__accent--tag { margin-left: 0; }
  .chapter, .ov { gap: 26px; margin-top: 24px; }
  .sheet { padding: 30px 20px 28px; }
  .sheet { margin-right: 7px; box-shadow: var(--emboss-raised), 7px 7px 0 0 var(--linen-deep), 7px 7px 0 1px var(--greige); }
  .cards--2, .cards--3, .cards--4, .cards--5 { grid-template-columns: minmax(0, 1fr); }
  .ov-welcome { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ov-note__text p { font-size: 19px; }
  .glance { grid-template-columns: minmax(0, 1fr); }
  .hwlist__item a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .hwlist__tab { grid-column: 1 / -1; }
  .timeline::before { left: 8px; }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-left: 32px; }
  .tl::before { left: 3px; }
  .tl__date { text-align: left; }
  .statement { padding-left: 16px; }
  .palette-strip { height: 80px; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signin { grid-template-columns: minmax(0, 1fr); }
  .signin__photo { height: 32vh; }
  .signin__panel { padding: 36px 16px 48px; }
  .signin__logo { margin-bottom: 28px; }
  .apanel { padding: 24px 18px; }
  .aform--grid { grid-template-columns: minmax(0, 1fr); }
  .aitem__line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .aitem__toggle { grid-column: 1 / -1; }
}
