/* © 2026 Cromulent, Inc. All Rights Reserved.
   claim-desk.css - the teacher's desk, on claim.css's ground and tokens: the library, a new seminar, and the steps in
   their five beats. Quiet like the door: hairlines, mono labels, crimson only on the one button and the stop. */

.desk-top { align-items: center; }
.desk-top .where { margin: 0 auto 0 18px; font: 500 11px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); }
.desk-top nav form { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--soft); font: inherit; cursor: pointer; }
button.link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.desk { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 60rem; margin: 0 auto;
  padding: clamp(32px, 7vh, 72px) 24px 120px; }
.desk.narrow { max-width: 40rem; }
.desk h1 { margin: 0; font: 800 clamp(34px, 4.6vw, 52px)/1.08 var(--face); letter-spacing: -.035em; text-wrap: balance; }
.desk .lede { text-align: left; margin: 16px 0 0; font-size: 18px; line-height: 28px; max-width: 34em; }
.eyebrow { margin: 0 0 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); }
.eyebrow a { color: var(--muted); text-decoration: none; }
.eyebrow a:hover { color: var(--ink); }
.desk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.run { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.run a.link { color: var(--soft); font: 600 15px var(--face); text-decoration: underline; text-underline-offset: 4px; }
.run a.link:hover { color: var(--ink); }
.said { margin: 24px 0 0; padding: 10px 14px; border-left: 2px solid var(--line); color: var(--soft); font-size: 15px; }
.undo { margin: 8px 0 0 16px; }
.empty { margin: 32px 0 0; color: var(--muted); }

.button, .desk button[type="submit"]:not(.link):not(.quiet), .editor button[value="save"] {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--crimson); color: #fff; font: 600 16px var(--face); text-decoration: none; cursor: pointer;
  box-shadow: 0 0 22px rgba(213, 18, 73, .35); }
.button:hover, .desk button[type="submit"]:not(.link):not(.quiet):hover { background: #e51e55; }
button.quiet { height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; background: transparent;
  color: var(--ink); font: 600 15px var(--face); cursor: pointer; }
button.quiet:hover { border-color: var(--muted); }
button[disabled] { opacity: .6; cursor: progress; }

/* the library */
.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 6px; min-height: 112px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: 14px; background: rgba(23, 10, 14, .72); text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--muted); }
.card b { font: 600 19px/1.3 var(--face); letter-spacing: -.01em; }
.card span { font: 400 12px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.card p { margin: 4px 0 8px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.card form { margin-top: auto; }
.kept { margin-top: auto; }
.shelf { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.shelf .cards { margin-top: 16px; }

/* forms on the desk */
.desk label { display: block; margin-top: 18px; font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); }
.desk input:not([type="hidden"]):not([type="file"]), .desk select, .desk textarea {
  display: block; width: 100%; margin-top: 8px; min-height: 44px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(20, 7, 11, .85); color: var(--ink); font: 400 16px/1.4 var(--face);
  letter-spacing: 0; text-transform: none; }
.desk textarea { resize: vertical; }
.desk input:focus, .desk select:focus, .desk textarea:focus { outline: none; border-color: var(--glow); }
.desk input[type="file"] { display: block; margin-top: 10px; color: var(--soft); font: 400 15px var(--face);
  letter-spacing: 0; text-transform: none; }
.desk input::placeholder, .desk textarea::placeholder { color: var(--muted); }
.desk .hint { position: static; text-align: left; margin: 8px 0 0; }
.setup { margin-top: 24px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.stack { flex-direction: column; align-items: stretch; width: 100%; max-width: 20rem; margin-top: 0; }

/* one seminar */
.editor { margin-top: 8px; }
.titlefield { margin-top: 0 !important; }
.titlefield span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.desk .editor .titlefield input { min-height: 0; margin-top: 0; padding: 4px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  background: transparent; font: 800 clamp(30px, 4.2vw, 48px)/1.1 var(--face); letter-spacing: -.035em; }
.desk .editor .titlefield input:focus { border-bottom-color: var(--glow); }
.arc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font: 500 11px/1 var(--mono); letter-spacing: .2em;
  text-transform: uppercase; color: var(--line); }
.arc .on { color: var(--soft); }
.sourcebox { margin-top: 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(23, 10, 14, .6); }
.sourcebox summary { cursor: pointer; font: 600 16px var(--face); }
.sourcebox summary span { margin-left: 10px; font: 400 12px var(--mono); letter-spacing: .04em; color: var(--muted); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.quad { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; }
.steps .beat h2 { margin: 40px 0 6px; display: flex; align-items: center; gap: 14px; font: 600 12px/1 var(--mono);
  letter-spacing: .32em; text-transform: uppercase; color: var(--glow); }
.steps .beat h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stepcard { margin-top: 10px; padding: 16px 20px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(23, 10, 14, .72); scroll-margin-top: 24px; }
.stepcard:target { border-color: var(--glow); }
.stephead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stephead .num { font: 500 12px var(--mono); color: var(--muted); }
.stephead b { font: 600 17px var(--face); }
.stephead .does { flex: 1; min-width: 12rem; font-size: 14px; color: var(--muted); }
.moves { display: flex; gap: 14px; font-size: 14px; }
.stepcard .prompt { margin-top: 12px; }
/* a step's room tools: one quiet line that opens in place, never a second page */
.tools { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.tools summary, p.tools { cursor: pointer; margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); }
.tools summary span, p.tools span { margin-left: 10px; letter-spacing: .04em; text-transform: none; color: var(--soft); }
.tools summary:hover { color: var(--ink); }
p.tools { cursor: default; opacity: .55; }
.tools p.tools { margin-top: 16px; }
.tools .hint { position: static; max-width: 34rem; }
.tool { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.tool legend { margin: 0 0 10px; padding: 0; font: 500 11px/1 var(--mono); letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); }
.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; }
.desk .segmented label.segment { margin: 0; font: 600 14px/1 var(--face); letter-spacing: 0; text-transform: none; }
.segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segment span { display: block; padding: 11px 16px; color: var(--soft); cursor: pointer; }
.segment + .segment span { border-left: 1px solid var(--line); }
.segment input:checked + span { background: var(--crimson); color: #fff; }
.segment input:focus-visible + span { outline: 2px solid var(--glow); outline-offset: -2px; }
.addrow { display: flex; gap: 12px; align-items: flex-end; margin-top: 28px; }
.addrow label { flex: 1; max-width: 22rem; }
.sticky { position: sticky; bottom: 0; z-index: 3; margin: 28px -24px 0; padding: 16px 24px;
  background: linear-gradient(transparent, var(--void) 30%); }
.remove { margin-top: 48px; }
.remove .link { color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .desk-top .where { display: none; }
  .desk-top nav { gap: 16px; font-size: 14px; }
  .desk-top nav a:not(.pill) { display: inline; }
  .desk { padding-top: 28px; }
  .moves { width: 100%; }
  .addrow { flex-direction: column; align-items: stretch; }
}
.desk input[type="file"]::file-selector-button { margin-right: 14px; height: 40px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: 10px; background: transparent; color: var(--ink); font: 600 15px var(--face); cursor: pointer; }

/* ---- the class list ---- */
.classlist { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.classlist th { text-align: left; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.classlist td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.classlist .pin { font-family: var(--mono); letter-spacing: .1em; }

/* the seminar's music: one quiet line above the steps (claim_music) */
.seminar-tools { margin: 6px 0 22px; border-top: 0; padding-top: 0; }
.tool .level { display: block; max-width: 22rem; }
.tool .level input { width: 100%; accent-color: var(--crimson); }

/* ==== THE DESK, matured (Maestro, 2026-11-11: "claim is too barebones" / "I want to mature it"): library cards as
   framed sheets with the seminar's shape drawn across them; the steps on a timeline spine, each beat numbered with a
   line on what it is for; the content and the cards on the house sheet. ==== */
.desk-head h1 { font-size: clamp(40px, 5.4vw, 64px); }
.card, .stepcard, .sourcebox { position: relative; border: 0; background: var(--sheet);
  box-shadow: inset 0 1px 0 rgba(249, 83, 123, .12), 0 0 0 1px var(--hair), 0 26px 60px -40px rgba(0, 0, 0, .9); }
.card { padding: 20px 22px; gap: 8px; transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(249, 83, 123, .2), 0 0 0 1px var(--edge),
  0 30px 60px -36px rgba(213, 18, 73, .45); }
.card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent); opacity: .7; }
.card b { font-size: 21px; }
.card .strip { display: flex; gap: 3px; height: 6px; margin: 10px 0 0; }
.card .strip i { display: block; flex-basis: 0; border-radius: 2px; background: rgba(246, 238, 240, .1); }
.card .strip i.on { background: linear-gradient(90deg, var(--crimson), var(--glow)); opacity: .85; }
.card .strip i.on:nth-child(2) { opacity: 1; } .card .strip i.on:nth-child(4) { opacity: .65; }
.card .strip-names { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.card .strip-names em { font-style: normal; opacity: .45; } .card .strip-names em.on { opacity: 1; }
.card .open { margin-top: auto; padding-top: 12px; font: 600 13px/1 var(--face); letter-spacing: 0; color: var(--glow); }
.shelf-card { --sheet: linear-gradient(180deg, rgba(48, 14, 24, .78), rgba(20, 8, 12, .82)); }
.shelf { border-top: 0; position: relative; }
.shelf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--crimson), var(--line) 30%, transparent); }
.shelf h2.eyebrow { color: var(--glow); }
.desk > .empty { padding: 22px 24px; border: 1px dashed rgba(246, 238, 240, .16); border-radius: 14px; color: var(--soft); }
/* the beats and the spine */
.arc { gap: 6px 22px; }
.arc span { display: inline-flex; align-items: center; gap: 8px; }
.arc span::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--line); }
.arc span.on::before { background: linear-gradient(90deg, var(--crimson), var(--glow)); }
.steps { position: relative; padding-left: 34px; }
.steps::before { content: ""; position: absolute; left: 11px; top: 46px; bottom: 30px; width: 1px;
  background: linear-gradient(180deg, var(--crimson), var(--line) 12%, var(--line) 88%, transparent); }
.steps .beat { position: relative; }
.steps .beat h2 { margin-top: 44px; gap: 12px; }
.steps .beat h2 b { font-weight: 600; color: var(--ink); letter-spacing: .12em; }
.steps .beat h2::before { content: ""; position: absolute; left: -29px; width: 13px; height: 13px; border-radius: 3px;
  background: var(--crimson); box-shadow: 0 0 0 4px var(--void), 0 0 16px rgba(213, 18, 73, .7); transform: rotate(45deg); }
.steps .beat p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.stepcard { margin-top: 12px; }
.stepcard::before { content: ""; position: absolute; left: -27px; top: 22px; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--glow); background: var(--void); box-shadow: 0 0 0 4px var(--void); }
.stepcard::after { content: ""; position: absolute; left: -18px; top: 26px; width: 18px; height: 1px; background: var(--line); }
.stepcard:target { box-shadow: inset 0 1px 0 rgba(249, 83, 123, .2), 0 0 0 1px var(--glow); }
.stephead .num { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px;
  background: rgba(213, 18, 73, .12); color: var(--glow); font-weight: 600; }
.stephead b { font-size: 18px; }
.moves .link { font-size: 13px; color: var(--muted); }
.sourcebox { padding: 16px 20px; }
.sticky { backdrop-filter: blur(6px); }
@media (max-width: 760px) { .steps { padding-left: 24px; } .steps::before { left: 6px; }
  .steps .beat h2::before { left: -24px; } .stepcard::before { left: -22px; } .stepcard::after { left: -13px; width: 13px; } }
