dialog{width:min(860px,94vw);max-height:91vh;border:1px solid var(--line);border-radius:14px;padding:0;color:var(--ink);box-shadow:0 24px 100px #25252930}
dialog::backdrop{background:#25252980;backdrop-filter:blur(3px)}
.dialogHead{position:sticky;top:0;background:white;border-bottom:1px solid var(--line);padding:20px 26px;display:flex;justify-content:space-between;align-items:center;z-index:2}
.dialogBody{padding:24px 26px}
.dialogFoot{padding:18px 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fffdf3}
.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.full{grid-column:1/-1}
label.field{display:block;font-size:14px;font-weight:600}
input,textarea,select{width:100%;margin-top:6px;border:1px solid #c8c7ca;border-radius:7px;background:white;padding:10px 12px;color:var(--ink);font-size:15px}
textarea{resize:vertical;min-height:90px}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23595960' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}
.help{font-size:13px;color:var(--muted);font-weight:400;margin:5px 0 0}
.instructions{background:#fffef9;border-radius:8px;padding:18px 21px;font-size:15px;margin-bottom:22px}
.instructions ol{padding-left:22px;margin:0}
.instructions li{margin:8px 0}
.code{font:13px/1.7 ui-monospace,monospace;background:#252529;color:#ebdae6;padding:15px;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere}
.evidenceGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.evidenceCard{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.evidenceCard img,.evidenceCard video{width:100%;height:180px;object-fit:contain;background:#252529}
.evidenceCard section{padding:17px}
.evidenceCard h3{font-size:15px;overflow-wrap:anywhere}
.noteBlock{padding:18px;border:1px solid var(--line);border-radius:8px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.error{color:#972850;font-size:14px}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-30%);background:#252529;color:white;padding:13px 23px;border-radius:9px;z-index:10;box-shadow:0 8px 25px #25252930}
.tabs{display:flex;gap:8px}
.tabs button.active{background:#f4edf2;border-color:#afa2b0;color:#713954}
.notice{background:#f4edf2;border:1px solid #ece6ef;color:#74314b;padding:13px 17px;border-radius:8px;font-size:14px;margin:14px 0}
.filter{max-width:220px;margin:0}
.loading{padding:50px;text-align:center}
button.link{padding:0;background:none;border:0;color:var(--green)}
.stepOpen{font-size:18px;color:#808086}
progress{width:100%;accent-color:var(--green)}

:root {
  --ink: #252529; --muted: #595960; --bg: #fffdf3; --line: #dfdfe0;
  --green: #713954; --soft: #f4edf2; --nav: #252529;
  font: 100%/1.55 "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink) }
[hidden] { display: none !important }
a { color: var(--green) }
button, input, select, textarea { font: inherit }
button { padding: .62rem 1rem; background: white; color: var(--ink); border: 1px solid #c8c7ca; border-radius: .45rem; cursor: pointer; font-size: .94rem; font-weight: 600 }
button:hover { background: #f4edf2 }
:focus-visible { outline: 3px solid #88638d; outline-offset: 3px }
button.primary { background: var(--green); color: white; border-color: var(--green) }
button.primary:hover { background: #572441 }
button:disabled { opacity: .6; cursor: wait }
.skip { position: fixed; top: -100px; left: 1rem; z-index: 6; background: white; padding: .7rem }
.skip:focus { top: .3rem }
.mast { background: var(--nav); color: white }
.mastInner, .navInner, .content { max-width: 1380px; margin: auto; padding-inline: clamp(1rem,4vw,4rem) }
.mastInner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: .75rem }
.brand { display: flex; gap: .7rem; align-items: center; color: white; text-decoration: none; font-size: 1.55rem; font-weight: 720; letter-spacing: -.05em }
.brand img { border-radius: 9px; border: 1px solid #88638d }
.utilities, .actions, .tabs, .row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center }
#sync { font-size: .875rem; color: #ebdae6 }
#installApp { background: transparent; color: white; border-color: #afa2b0 }
.nav { background: white; border-bottom: 1px solid var(--line) }
.navInner { display: flex; gap: 1.2rem; overflow-x: auto }
.nav button { flex: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: .95rem .3rem .8rem; background: transparent; color: var(--muted) }
.nav button.active { color: var(--green); border-color: var(--green) }
.nav button:hover { background: #f4edf2 }
.content { padding-block: 2rem 3rem }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.5rem }
.heading .actions { flex-shrink: 0 }
.eyebrow, .mini { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--green) }
h1 { margin: .35rem 0 .55rem; font-size: clamp(2rem,3vw,3rem); line-height: 1.12; letter-spacing: -.046em }
h2, h3 { line-height: 1.32; margin: 0; letter-spacing: -.025em }
h2 { font-size: 1.35rem } h3 { font-size: 1.12rem }
.lead, .muted, .stepDesc { color: var(--muted) }
.lead { max-width: 65ch }
.stats { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: .85rem; background: white; overflow: hidden }
.stat { padding: 1rem 1.35rem; min-width: 0 }
.stat + .stat { border-left: 1px solid var(--line) }
.stat label { display: block; font-size: .91rem; color: var(--muted) }
.stat strong { font: 650 2.15rem/1.45 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: -.055em }
.stat small { font-weight: 400; line-height: 1.4; font-family: system-ui,sans-serif; font-size: .875rem; letter-spacing: 0; color: var(--muted); margin-left: .45rem }
.stripe { height: 4px; background: #dfdfe0; border-radius: 8px }
.stripe i { display: block; height: 100%; background: var(--green) }
.principle, .instructions { background: #ece6ef; border-left: 4px solid #88638d; border-radius: .4rem }
.principle { display: flex; gap: .9rem; align-items: center; padding: .85rem 1.1rem; margin: 1.2rem 0; font-size: .94rem }
.principle strong { display: block } .icon { font-size: 1.45rem; color: var(--green) }
.layout { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(235px, 1fr); gap: 1.2rem; align-items: start }
.panel, .sideCard, .evidenceCard { background: white; border: 1px solid var(--line); border-radius: .8rem; min-width: 0; overflow: hidden }
.panelHead { padding: 1.2rem 1.35rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line) }
.panelHead p, .sideCard p { margin: .35rem 0 .75rem; color: var(--muted); font-size: .94rem }
.panelHead p { margin-bottom: 0 }
.step { padding: 1rem 1.35rem; display: flex; align-items: center; gap: .95rem; cursor: pointer }
.step + .step { border-top: 1px solid #dfdfe0 }
.step:hover, .step:focus-visible { background: #f4edf2 }
.stepNum { flex: none; width: 2.35rem; height: 2.35rem; display: grid; place-items: center; font: 600 .94rem ui-monospace,monospace; border-radius: .55rem; background: #f5f4ef; color: #595960 }
.stepNum.ok { background: #ece6ef }
.stepBody { flex: 1; min-width: 0 }
.stepTitle { font-weight: 650 } .stepDesc { font-size: .91rem; margin-top: .18rem }
.stepOpen { color: var(--green) }
.badge { display: inline-block; padding: .22rem .55rem; background: #f5f4ef; color: #595960; border-radius: .35rem; font-size: .875rem }
.confirmed { background: #f4edf2; color: #713954 }
.suspect, .crash { background: #f4edf2; color: #74314b }
.running { background: #ece6ef; color: #713954 }
.fail { background: #f6e1ea; color: #972850 }
.rightCol, .stack { display: grid; gap: 1rem }
.sideCard { padding: 1.25rem }
.sideCard.dark { background: var(--nav); color: white; border: 0 }
.dark p, .dark .mini { color: #ebdae6 } .dark button { margin-top: .5rem }
.empty, .loading { padding: 3.5rem 1.5rem; text-align: center; color: var(--muted) }
.empty b { color: var(--ink); font-size: 1.15rem }
.tableWrap { overflow-x: auto }
table { width: 100%; border-collapse: collapse; font-size: .94rem }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top }
th { background: #f5f4ef; color: #595960; font-size: .875rem } td p { margin: 0; overflow-wrap: anywhere }
tbody tr:hover { background: #fffef9 }
.evidenceGrid { grid-template-columns: repeat(auto-fit,minmax(min(275px,100%),1fr)) }
dialog { background: white }
.dialogHead h2 { font-size: 1.25rem }
.toast { left: 50%; transform: translateX(-50%) }
footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .85rem }
@media (max-width: 950px) {
  .heading { align-items: start; flex-direction: column; gap: .8rem }
  .layout { grid-template-columns: 1fr }
  .rightCol { grid-template-columns: repeat(auto-fit,minmax(205px,1fr)) }
}
@media (max-width: 640px) {
  .content { padding-block: 1.15rem 2rem }
  .mastInner { min-height: 64px }
  .brand { font-size: 1.25rem } .brand img { width: 34px; height: 34px }
  .utilities { justify-content: end; gap: .25rem .6rem }
  #sync { font-size: .8rem }
  .navInner { gap: .85rem } .nav button { padding-block: .72rem }
  .stats { grid-template-columns: 1fr 1fr }
  .stat { padding: .85rem } .stat:nth-child(3) { border-left: 0 }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line) }
  .panelHead { align-items: start; flex-wrap: wrap; padding: 1rem }
  .step { display: grid; grid-template-columns: 2rem minmax(0,1fr); gap: .3rem .65rem; padding: .9rem 1rem }
  .stepNum { width: 2rem; height: 2rem; align-self: start }
  .step .badge { grid-column: 2; justify-self: start } .stepOpen { display: none }
  .formGrid { grid-template-columns: 1fr } .full { grid-column: 1 }
  .dialogHead, .dialogBody, .dialogFoot { padding: 1rem }
  .dialogFoot { flex-wrap: wrap }
  .rightCol { grid-template-columns: 1fr }
  .tableWrap table { min-width: 620px }
  .toast { width: min(90vw,32rem) }
  footer { flex-direction: column; gap: .25rem }
}

/* Headings and ruled sections follow a printed workshop log. */
.mast { background: #fffdf3; color: var(--ink); border-top: 5px solid #713954 }
.brand { color: var(--ink); letter-spacing: -.055em }
.brand img { border: 0 }
#sync { color: var(--muted) }
#installApp { color: var(--ink); border-color: #c8c7ca }
.nav { background: #fffdf3; border-bottom: 1px solid #c8c7ca }
h1, .panelHead h2, .sideCard.dark h3 {
  font-family: "Baskervville", Georgia, "Times New Roman", serif;
  font-weight: 500; letter-spacing: -.038em;
}
h1 { font-size: clamp(2.5rem,4.2vw,4.1rem) }
.panelHead h2, .sideCard.dark h3 { font-size: 1.65rem }
.heading { margin-bottom: 1.7rem }
.stats { border-radius: 0; border-inline: 0; border-top: 2px solid #47474d; background: transparent }
.stat { padding-inline: 1.1rem }
.stat:first-child { padding-left: .25rem }
.stat strong { font-family: Georgia, serif; font-weight: 500 }
.stepNum { background: none; border-radius: 0; border-right: 1px solid #dfdfe0; font-family: Georgia, serif; font-size: 1.2rem }
.panel, .sideCard { border-radius: .35rem }
.dark .mini { color: #ebdae6 }
.dark button { background: #ebdae6; color: #595960; border: 0 }
.panelHead { background: #fffef9 }
.principle { background: #ece6ef }
@media(max-width:640px) { .stat:first-child { padding-left: .85rem } }

/* The next-step card uses a soft lavender surface on the milk background. */
.sideCard.dark { background: #ede8f1; color: var(--ink); border: 1px solid #d9d2de }
.dark p { color: #595960 }
.dark .mini { color: #65466e }
.dark button { background: #fffef9; color: #593952; border: 1px solid #c9bbc8 }
.dark button:hover { background: #f7f2f7 }

/* A fixed silver finish carries one narrow reflection across the title. */
.heading h1 {
  width: fit-content;
  max-width: 100%;
  padding: .12em .32em .20em;
  border-radius: .14em;
  background: #303035;
  color: #e5e5e8;
  line-height: 1.22;
}
.silver-title { display: inline-block; max-width: 100% }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .silver-title {
    color: transparent;
    background-image:
      linear-gradient(100deg, transparent 41%, #fff9 47%, white 50%, #fff9 53%, transparent 59%),
      linear-gradient(180deg, #f4f4f6 4%, #c3c3cb 42%, #a9a9b3 52%, #ededf0 86%);
    background-size: 250% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: 100% 0, center;
    -webkit-background-clip: text;
    background-clip: text;
    animation: silver-sweep 3.8s linear infinite;
  }
  @keyframes silver-sweep {
    from { background-position: 100% 0, center }
    to { background-position: 0% 0, center }
  }
}
.panelHead, .dialogHead { background: #eae5ef }
.stepTitle, .sideCard:not(.dark) h3, .evidenceCard h3 {
  width: fit-content; max-width: 100%;
  padding: .14em .55em;
  border-inline-start: 3px solid #cab9cb;
  border-radius: .15rem;
  background: #f7eff4; color: #3f3540;
}
@media (prefers-reduced-motion: reduce) {
  .silver-title { animation: none }
}
@media (forced-colors: active) {
  .silver-title { animation: none; color: CanvasText; background: none }
  .heading h1 { border: 1px solid CanvasText }
}
