/* BIM City Studio — Inside the packs. Same palette and type as site/assets/style.css. */
:root {
  --ink: #1F2329; --muted: #5E636E; --line: #E6E8EC; --soft: #F6F7F9; --white: #FFFFFF;
  --blue-fill: #DCE8F7; --blue-ink: #2D5F9E; --blue-display: #5B86C4; --blue-line: #A9C4E8; --blue-soft: #EFF4FB;
  --mint-fill: #DCF1E5; --mint-ink: #2B7350; --mint-display: #4C9A72; --mint-line: #9FD4B6; --mint-soft: #EEF8F2;
  --lilac-fill: #E9E2F7; --lilac-ink: #6548A8; --lilac-display: #8A6CC8; --lilac-line: #C7B6EC; --lilac-soft: #F4F0FB;
  --peach-fill: #FCE4D6; --peach-ink: #A04C27; --peach-display: #C46A3C; --peach-line: #EDB394;
  --red: #C8372D; --amber: #D98A12; --green: #2B8A57;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'Cascadia Mono', monospace;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.upper { text-transform: uppercase; letter-spacing: .06em; }
.blue { color: var(--blue-display); } .mint { color: var(--mint-display); } .lilac { color: var(--lilac-display); }
.label { margin: 0 0 18px; font: 13px var(--mono); color: var(--muted); }
.h1 { margin: 0; font-weight: 700; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.035em; }
.h2 { margin: 0; font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; }
.h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.lead { margin: 22px 0 0; max-width: 560px; font-size: 18px; color: var(--muted); }
.fine { font-size: 13px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 24px; }
.btn { border: 0; border-radius: 99px; padding: 10px 20px; font-weight: 600; font-size: 14px; background: var(--ink); color: #fff; }
.btn:hover { background: #000; }
.search { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: 15px var(--sans); background: var(--soft); }
.search:focus { outline: none; border-color: var(--blue-line); background: #fff; }
.count { font: 13px var(--mono); color: var(--muted); font-weight: 400; }

/* ---------- top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px 28px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand b { font-size: 19px; letter-spacing: -0.01em; }
.brand span { font: 12px var(--mono); padding: 3px 10px; border-radius: 99px; background: var(--blue-fill); color: var(--blue-ink); }
.chapters { display: flex; gap: 22px; font-size: 14px; font-weight: 500; margin-right: auto; }
.chapters a { text-decoration: none; padding: 6px 0; color: var(--muted); }
.chapters a.on { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.chapters a.c-blue.on { color: var(--blue-ink); box-shadow: inset 0 -2px var(--blue-line); }
.chapters a.c-mint.on { color: var(--mint-ink); box-shadow: inset 0 -2px var(--mint-line); }
.chapters a.c-lilac.on { color: var(--lilac-ink); box-shadow: inset 0 -2px var(--lilac-line); }
.pill-link { flex: none; padding: 9px 16px; border-radius: 99px; background: var(--blue-ink); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.pill-link:hover { background: #244d82; color: #fff; }
.progress { height: 2px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-display), var(--mint-display), var(--lilac-display)); }

/* ---------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 36px; }
.hero-stats div { padding: 12px 12px; border-radius: 14px; background: var(--soft); }
.hero-stats b { display: block; font-size: 30px; line-height: 1; letter-spacing: -0.03em; }
.hero-stats span { display: block; margin-top: 6px; font: 11.5px/1.3 var(--mono); color: var(--muted); }
.hero-plan { margin: 0; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(31,35,41,.25); }
.plan-head { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.vt-list { display: flex; flex-wrap: wrap; gap: 6px; }
.vt-list button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12.5px; font-weight: 500; transition: background .2s, border-color .2s; }
.vt-list button:hover { border-color: var(--blue-line); }
.vt-list button[aria-selected="true"] { background: var(--blue-fill); border-color: var(--blue-line); color: var(--blue-ink); }
.plan-stage { position: relative; }
#plan { width: 100%; height: auto; display: block; }
#plan .fade { transition: fill .45s ease, stroke .45s ease, opacity .45s ease; }
.plan-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 16px 10px; min-height: 28px; font-size: 12px; color: var(--muted); }
.plan-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.12); }
.plan-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.wall-in { animation: wallin .5s ease both; }
@keyframes wallin { from { opacity: 0; } }
.draw-in { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- chapters */
.chapter { padding: 88px 0; position: relative; }
.chapter.c-blue { background: linear-gradient(180deg, var(--blue-soft), #fff 420px); }
.chapter.c-mint { background: linear-gradient(180deg, var(--mint-soft), #fff 420px); }
.chapter.c-lilac { background: linear-gradient(180deg, var(--lilac-soft), #fff 420px); }
.chapter-head { max-width: 760px; margin-bottom: 36px; }
.chapter-head .muted { font-size: 17px; margin: 14px 0 0; }
.chip { display: inline-block; font: 12.5px var(--mono); padding: 5px 12px; border-radius: 99px; margin-bottom: 16px; }
.c-blue .chip { background: var(--blue-fill); color: var(--blue-ink); }
.c-mint .chip { background: var(--mint-fill); color: var(--mint-ink); }
.c-lilac .chip { background: var(--lilac-fill); color: var(--lilac-ink); }
.chapter > .wrap > .card, .chapter .grid2 { margin-top: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.namer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); }
.seg button { border: 0; background: none; border-radius: 9px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }


/* ---------- build-up explorer */
.buildup { display: grid; grid-template-columns: 330px minmax(0, 1fr); overflow: hidden; }
.bu-side { border-right: 1px solid var(--line); padding: 16px; background: var(--soft); display: flex; flex-direction: column; gap: 12px; max-height: 720px; }
.bu-side .seg { background: #fff; }
.bu-types { list-style: none; margin: 0; padding: 0; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.bu-types button { width: 100%; text-align: left; border: 0; background: none; border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.35; }
.bu-types button:hover { background: #fff; }
.bu-types button[aria-selected="true"] { background: #fff; box-shadow: inset 3px 0 var(--blue-display), 0 1px 3px rgba(0,0,0,.06); }
.bu-types b { font-weight: 600; display: block; }
.bu-types span { color: var(--muted); font-size: 12px; }
.bu-main { padding: 22px 24px; min-width: 0; }
.bu-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 13px var(--mono); min-height: 34px; }
.bu-name .tok { padding: 4px 9px; border-radius: 8px; background: var(--soft); position: relative; }
.bu-name .tok em { position: absolute; top: -17px; left: 2px; font: 10px var(--mono); font-style: normal; color: var(--muted); white-space: nowrap; }
.bu-name .t-org { background: var(--blue-fill); color: var(--blue-ink); }
.bu-name .t-fn { background: var(--mint-fill); color: var(--mint-ink); }
.bu-name .t-cat { background: var(--lilac-fill); color: var(--lilac-ink); }
.bu-name .t-mm { background: var(--peach-fill); color: var(--peach-ink); }
.bu-name .t-lay { background: #fff; border: 1px dashed var(--line); }
.bu-name .t-lay.hi { border-color: var(--ink); }
.bu-name .slash { color: var(--muted); }
.bu-name { padding-top: 16px; }
#buSvg { width: 100%; height: auto; display: block; margin: 8px 0; }
#buSvg .lay { transition: opacity .2s; }
#buSvg.hovering .lay:not(.hi) { opacity: .25; }
.bu-ctrl { display: flex; align-items: center; gap: 12px; }
.bu-ctrl input { flex: 1; max-width: 260px; accent-color: var(--blue-ink); }
.bu-layers { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.bu-layers li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; cursor: default; }
.bu-layers li.hi { border-color: var(--ink); }
.bu-layers i { width: 16px; height: 16px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.15); }
.bu-layers b { font: 12px var(--mono); margin-left: auto; color: var(--muted); font-weight: 400; }

/* ---------- sheets + families */
.sheets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.sheets button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0; overflow: hidden; text-align: left; transition: transform .2s, box-shadow .2s; }
.sheets button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.sheets img { aspect-ratio: 720 / 509; width: 100%; height: auto; object-fit: cover; }
.sheets span { display: block; padding: 7px 10px; font-size: 12.5px; font-weight: 600; }

/* ---------- namer */
.namer-out { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; font: clamp(18px, 2.6vw, 30px) var(--mono); margin-bottom: 18px; }
.namer-out span { padding: 6px 10px; border-radius: 10px; transition: background .25s; }
.namer-out span.sep { padding: 6px 2px; color: var(--muted); }
.namer-out span.flash { animation: flash .6s; }
@keyframes flash { 0% { background: var(--mint-fill); } 100% { background: transparent; } }
.namer-out .ext { color: var(--muted); }
.namer-fields { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.namer-fields label { display: flex; flex-direction: column; gap: 4px; font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.namer-fields select, .namer-fields input { font: 14px var(--mono); padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; width: 100%; }
.namer-fields small { text-transform: none; letter-spacing: 0; font-size: 11px; line-height: 1.3; min-height: 28px; }
.namer-check { margin-top: 18px; display: grid; gap: 6px; max-width: 640px; }
#namerTest { font-family: var(--mono); }
.verdict-ok { color: var(--green); } .verdict-bad { color: var(--red); }
.verdict-list { margin: 4px 0 0; padding-left: 18px; }

/* ---------- LOIN */
.loin-stage { position: relative; margin: 6px 0 22px; }
.loin-stage input { width: calc(100% * 5 / 6); margin: 0 0 0 calc(100% / 12); accent-color: var(--mint-ink); }
.loin-ticks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); font: 12px var(--mono); color: var(--muted); }
.loin-ticks button { border: 0; background: none; text-align: center; padding: 4px 2px; font: inherit; color: inherit; line-height: 1.3; }
.loin-ticks button.on { color: var(--mint-ink); font-weight: 500; }
.loin-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.loin-heat { display: flex; flex-direction: column; gap: 14px; }
.loin-group h4 { margin: 0 0 6px; font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.loin-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(6, 22px); gap: 3px; align-items: center; font-size: 13px; border-radius: 8px; padding: 1px 4px; cursor: pointer; }
.loin-row:hover, .loin-row.on { background: var(--mint-soft); }
.loin-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loin-row i { height: 16px; border-radius: 4px; background: var(--soft); transition: background .3s, transform .3s; }
.loin-row i.y { background: var(--mint-line); }
.loin-row i.y.cur { background: var(--mint-ink); }
.loin-row i.cur { outline: 2px solid var(--mint-ink); outline-offset: 1px; }
.loin-detail { position: sticky; top: 100px; align-self: start; border-radius: 16px; background: var(--mint-soft); padding: 20px; }
.loin-detail h4 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.loin-detail dl { margin: 14px 0 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; }
.loin-detail dt { font: 12px var(--mono); color: var(--muted); padding-top: 2px; }
.loin-detail dd { margin: 0; }
.loin-detail .state { display: inline-block; padding: 3px 10px; border-radius: 99px; font: 12px var(--mono); background: #fff; }
.loin-detail .state.y { background: var(--mint-ink); color: #fff; }
.lod { margin-top: 16px; height: 110px; }

/* ---------- terminal + tree */
.term { border-radius: 14px; background: #15181D; color: #D9DEE6; overflow: hidden; margin-bottom: 12px; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #20242B; font: 12px var(--mono); color: #8B93A1; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3F48; }
.term-bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 12px 14px; height: 210px; overflow: auto; font: 12px/1.55 var(--mono); white-space: pre-wrap; }
.term .ok { color: #7FD1A4; } .term .dim { color: #8A92A0; }
.tree { margin-top: 14px; font: 13px/1.5 var(--mono); max-height: 300px; overflow: auto; }
.tree details { margin-left: 14px; }
.tree > details { margin-left: 0; }
.tree summary { cursor: pointer; padding: 2px 6px; border-radius: 6px; list-style: none; }
.tree summary::before { content: "▸ "; color: var(--muted); }
.tree details[open] > summary::before { content: "▾ "; }
.tree summary.leaf::before { content: "· "; }
.tree summary:hover, .tree summary.on { background: var(--mint-soft); }
.readme { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--mint-soft); font-size: 13px; white-space: pre-wrap; }

/* ---------- checklists */
.cl-wrap { position: relative; width: 120px; height: 120px; margin: 18px auto 8px; }
.ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--soft); stroke-width: 10; }
.ring circle + circle { stroke: var(--mint-display); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset .5s ease; }
.cl-score { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cl-score b { font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.cl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 330px; overflow: auto; }
.cl label { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 13.5px; cursor: pointer; align-items: flex-start; }
.cl label:hover { background: var(--soft); }
.cl input { accent-color: var(--mint-ink); margin-top: 3px; }
.cl input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--mint-line); }
.cl em { margin-left: auto; font: 11px var(--mono); color: var(--muted); font-style: normal; white-space: nowrap; padding-left: 8px; }

/* ---------- document shelf */
.docs { margin-top: 28px; }
.docs h3 { margin-bottom: 14px; }
.shelf { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.doc { flex: none; width: 190px; border: 0; background: none; padding: 0; text-align: left; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-start; }
.doc .cover { aspect-ratio: 210 / 297; border-radius: 6px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 1px 0 var(--line), 3px 3px 0 -1px #fff, 3px 3px 0 0 var(--line), 6px 6px 0 -1px #fff, 6px 6px 0 0 var(--line); transition: transform .25s, box-shadow .25s; }
.doc:hover .cover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 18px 30px -18px rgba(0,0,0,.4); }
.doc img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc .ph { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; font: 11px var(--mono); color: var(--muted); }
.doc .ph b { font: 700 16px/1.2 var(--sans); color: var(--ink); }
.doc span { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.doc small { display: block; margin-top: 3px; font: 11px/1.45 var(--mono); color: var(--muted); }

/* ---------- fee calculator */
.fee { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: hidden; }
.fee-in { border-right: 1px solid var(--line); }
.fee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 16px 0 22px; }
.fee-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.fee-grid input, .fee-grid select { font: 15px var(--mono); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #FFFBEA; color: var(--ink); width: 100%; }
.fee-grid input[type=range] { padding: 0; background: none; border: 0; accent-color: var(--lilac-ink); }
.fee-grid .rng { display: flex; justify-content: space-between; gap: 8px; }
.fee-grid .rng b { font: 500 13px var(--mono); color: var(--ink); }
.fee-stick { position: sticky; top: 90px; }
.missions { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.missions li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 64px 80px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; font-size: 13.5px; }
.missions li:hover { background: var(--soft); }
.missions li.off { color: var(--muted); }
.missions li.off .fee-n { text-decoration: line-through; }
.missions input[type=checkbox] { accent-color: var(--lilac-ink); width: 16px; height: 16px; }
.missions small { display: block; font-size: 11.5px; color: var(--muted); }
.missions .days, .missions .fee-n { font: 13px var(--mono); text-align: right; }
.missions .days input { width: 56px; font: 13px var(--mono); padding: 3px 5px; border: 1px solid var(--line); border-radius: 6px; background: #FFFBEA; text-align: right; }
.missions .grp { font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 8px 2px; display: block; }
.fee-out { background: var(--lilac-soft); }
.fee-total { margin: 4px 0 0; font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.fee-bar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; margin: 22px 0 8px; background: #fff; }
.fee-bar i { height: 100%; transition: flex-grow .45s ease; min-width: 0; }
.fee-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.fee-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.fee-ratios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 22px; }
.fee-ratios div { background: #fff; border-radius: 12px; padding: 10px 12px; }
.fee-ratios b { display: block; font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fee-ratios span { font: 11px var(--mono); color: var(--muted); }
.pay { list-style: none; margin: 12px 0 0; padding: 0; position: relative; }
.pay li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.pay li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--lilac-display); }
.pay b { font: 13px var(--mono); font-weight: 500; }
.pay small { font: 11px var(--mono); color: var(--muted); }

/* ---------- tracking log */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.kpis div { background: var(--soft); border-radius: 12px; padding: 10px 12px; transition: background .3s; }
.kpis b { display: block; font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpis span { font: 11px var(--mono); color: var(--muted); }
.kpis .bad b { color: var(--red); }
.kpis .good b { color: var(--green); }
.kpis div.bump { background: var(--lilac-fill); }
.tbl-wrap { overflow: auto; max-height: 460px; border: 1px solid var(--line); border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { position: sticky; top: 0; background: var(--soft); text-align: left; font: 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; white-space: nowrap; z-index: 1; }
.tbl td { padding: 7px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td.m { font: 12px var(--mono); white-space: nowrap; }
.tbl tr.red td { background: #FDECEA; }
.tbl tr.amber td { background: #FFF4DF; }
.tbl tr.green td { background: #E7F5EC; }
.pill { border: 0; border-radius: 99px; padding: 3px 10px; font: 11.5px var(--mono); white-space: nowrap; }
.pill.New, .pill.Requested { background: #FFE9C7; color: #8A5300; }
.pill.Open { background: var(--blue-fill); color: var(--blue-ink); }
.pill.Closed, .pill.Approved { background: var(--mint-fill); color: var(--mint-ink); }
.pill.Rejected { background: #FBD5D1; color: var(--red); }
.pill.OK { background: var(--mint-fill); color: var(--mint-ink); }
.pill.Remarks { background: #FFE9C7; color: #8A5300; }
.pill.Refused { background: #FBD5D1; color: var(--red); }
button.pill:hover { filter: brightness(.95); }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--mono); fill: var(--muted); }
.chart .val { fill: var(--ink); font-weight: 500; }
.chart rect.bar { transition: height .4s ease, y .4s ease, width .4s ease; }
.resv { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.resv svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

/* ---------- the project, phase by phase */
.phases { padding: 24px 0 88px; }
.chip-ink { background: var(--ink); color: #fff; }
.ph-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.ph-scroll { overflow-x: auto; padding-bottom: 4px; }
.ph-grid { display: grid; grid-template-columns: minmax(210px, 1.7fr) repeat(6, minmax(88px, 1fr)); min-width: 780px; }
.ph-corner { align-self: end; padding: 0 0 10px; }
.ph-head { padding: 8px 6px 10px; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; gap: 6px; transition: background .3s; }
.ph-head.on { background: var(--blue-soft); }
.ph-head.off .ph-pick { opacity: .45; }
.ph-pick { border: 0; background: none; text-align: left; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ph-pick span { font-size: 11.5px; color: var(--muted); }
.ph-pick b { font-size: 13.5px; line-height: 1.25; }
.ph-head.on .ph-pick span { color: var(--blue-ink); }
.ph-mine { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.ph-mine input { accent-color: var(--ink); margin: 0; }
.ph-name { border: 0; background: none; display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 0; text-align: left; font-size: 13.5px; border-top: 1px solid var(--line); transition: opacity .3s; }
.ph-name:not([disabled]):hover span { text-decoration: underline; text-underline-offset: 3px; }
.ph-name[disabled] { cursor: default; color: var(--ink); }
.ph-name i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ph-cell { border-top: 1px solid var(--line); display: flex; align-items: center; transition: background .3s, opacity .3s; min-height: 34px; }
.ph-cell.on { background: var(--blue-soft); }
.ph-cell.off { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--soft) 6px 12px); }
.ph-row.unused { opacity: .3; }
.bar { position: relative; display: block; height: 12px; width: calc(100% - 12px); margin: 0 6px; border-radius: 99px; background: var(--l); box-shadow: inset 0 0 0 1px var(--c); }
.bar.l { margin-left: 0; width: calc(100% - 6px); border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: inset 0 1px 0 var(--c), inset 0 -1px 0 var(--c), inset -1px 0 0 var(--c); }
.bar.r { margin-right: 0; width: calc(100% - 6px); border-top-right-radius: 0; border-bottom-right-radius: 0; box-shadow: inset 0 1px 0 var(--c), inset 0 -1px 0 var(--c), inset 1px 0 0 var(--c); }
.bar.l.r { width: 100%; box-shadow: inset 0 1px 0 var(--c), inset 0 -1px 0 var(--c); }
.bar.s::after { content: ""; position: absolute; left: -2px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px #fff; }
.bar.l.s::after { left: 6px; }
.ph-corner, .ph-name { position: sticky; left: 0; z-index: 2; background: #fff; }
.ph-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.ph-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; margin-top: 18px; padding: 20px; border-radius: 16px; background: var(--blue-soft); }
.ph-text { margin: 6px 0 0; font-size: 17px; line-height: 1.55; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chip { border: 1px solid var(--c); background: var(--l); border-radius: 99px; padding: 4px 11px; font-size: 12.5px; font-weight: 500; }
.ph-chip[disabled] { cursor: default; color: var(--ink); }
.ph-chip:not([disabled]):hover { background: #fff; }
.ph-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); font-size: 15px; }
.strip { display: inline-flex; gap: 2px; }
.strip i { width: 10px; height: 6px; border-radius: 2px; background: var(--line); }
.strip i.u { background: var(--l); box-shadow: inset 0 0 0 1px var(--c); }
.strip i.s { background: var(--c); }
.when { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 11px 4px 9px; font: 11.5px var(--mono); color: var(--muted); margin-bottom: 14px; }
.when:hover { border-color: var(--ink); color: var(--ink); }
.doc-when { display: flex; align-items: center; gap: 6px; margin-top: 4px; font: 11px var(--mono); color: var(--muted); }

/* ---------- compare */
.choose { padding-top: 96px; padding-bottom: 96px; }
.cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 16px; }
.cmp article { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s, box-shadow .25s; }
.cmp article.pick { border-color: var(--ink); box-shadow: 0 24px 48px -28px rgba(0,0,0,.35); transform: translateY(-4px); }
.cmp h3 { margin: 0; font-size: 18px; }
.cmp .price { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.cmp .price small { font: 12px var(--mono); color: var(--muted); letter-spacing: 0; font-weight: 400; }
.cmp ul { margin: 6px 0 auto; padding: 0; list-style: none; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.cmp li::before { content: "✓"; color: var(--mint-ink); margin-right: 8px; font-weight: 700; }
.cmp a.btn { text-align: center; text-decoration: none; margin-top: 16px; }
.cmp .tag { font: 12px var(--mono); color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); }

/* ---------- viewer */
.viewer { position: fixed; inset: 0; z-index: 50; background: rgba(21,24,29,.94); display: flex; flex-direction: column; }
.viewer[hidden] { display: none; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #fff; }
.viewer-bar span:first-child { font-weight: 600; margin-right: auto; }
.viewer-bar button { border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; border-radius: 50%; width: 38px; height: 38px; font-size: 18px; }
.viewer-stage { flex: 1; overflow: hidden; position: relative; cursor: grab; touch-action: none; }
.viewer-stage.drag { cursor: grabbing; }
.viewer-stage img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 0 0; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; user-select: none; -webkit-user-drag: none; }

/* ---------- sheet lightbox: same as the gallery on /templates/ */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; gap: 12px; padding: 24px 16px; background: rgba(15, 18, 22, .88); }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); background: #fff; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.lightbox figcaption { color: #e8eaed; font-size: 14px; margin-top: 12px; text-align: center; }
.lightbox figcaption b { color: #fff; margin-right: 6px; }
.lightbox button { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 28px; line-height: 1; cursor: pointer; flex: none; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 640px) { .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 16px; } .lightbox .lb-prev { left: 16px; } .lightbox .lb-next { right: 16px; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .draw-in { animation: none; stroke-dashoffset: 0; }
  * { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .buildup, .fee, .loin-body, .dash, .resv, .ph-story { grid-template-columns: minmax(0, 1fr); }
  .bu-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 320px; }
  .fee-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .namer-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .loin-detail { position: static; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .chapters { display: none; }
  .topbar-in { justify-content: space-between; }
    .topbar-in { flex-wrap: nowrap; }
  .grid2, .cmp { grid-template-columns: minmax(0, 1fr); }
  .namer-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fee-grid { grid-template-columns: 1fr; }
  .fee-ratios { grid-template-columns: 1fr 1fr 1fr; }
  .chapter { padding: 60px 0; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-grid { grid-template-columns: 138px repeat(6, 72px); min-width: 0; width: max-content; }
  .ph-name { font-size: 12.5px; padding-right: 6px; box-shadow: 6px 0 8px -6px rgba(0,0,0,.15); }
  .ph-pick b { font-size: 12.5px; }
  .sheets { grid-template-columns: 1fr 1fr; }
  .missions li { grid-template-columns: 22px minmax(0, 1fr) 54px 70px; gap: 6px; }
  .loin-ticks span { display: none; }
}
/* phone tap targets: at least 24 px high */
.foot a { display: inline-block; padding-block: 2px; }
.loin-ticks button { min-height: 26px; }
input[type=range] { height: 24px; }

/* ---------- language switch (EN · ΕΛ · FR), same look as the site's */
.lang-switch { flex: none; display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.lang-switch a { padding: 4px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: inherit; }
.lang-switch a[aria-current="true"] { background: var(--blue-fill); color: var(--blue-ink); font-weight: 600; }
@media (max-width: 760px) { .topbar-in { gap: 10px; } .lang-switch { margin-left: auto; } .lang-switch a { padding: 4px 7px; } .brand b { white-space: nowrap; } }
@media (max-width: 480px) { .brand span { display: none; } .pill-link { padding: 8px 12px; font-size: 13px; } }

/* Break line (07/11/2026): the drawing-symbol for "the drawing continues", above the pack choice:
   the tour was a preview, the rest is in the pack. Same symbol set as /assets/style.css. */
.choose { position: relative; }
.choose::before { content: ""; position: absolute; top: 40px; left: calc(50% - 160px); width: 320px; height: 22px; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 22'%3E%3Cpath d='M0 11 H8 L12 2 L20 20 L24 11 H32' fill='none' stroke='%235E636E' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / 32px 22px no-repeat,
  linear-gradient(#B8BEC6, #B8BEC6) left center / calc(50% - 16px) 1.5px no-repeat,
  linear-gradient(#B8BEC6, #B8BEC6) right center / calc(50% - 16px) 1.5px no-repeat; }
@media (max-width: 760px) { .choose::before { position: static; display: block; width: min(320px, 100%); margin: 0 auto 28px; } } /* phones: .wrap drops the section's top padding, so the break line sits in the flow above the heading */

/* Language switch, Revit-style codes ENG · FRA · GRE (08/11/2026): squarer, like a ribbon toggle */
.lang-switch { border-radius: 6px; font-size: 12px; letter-spacing: .06em; }
.lang-switch a { border-radius: 4px; padding: 4px 8px; }
/* 11/11/2026: the name is the Studio's bold sans on both sites (Dimitris's choice); Cormorant Garamond is loaded for the headlines */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin.woff2) format('woff2'); }
.brand b { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; text-transform: none; }
/* 11/11/2026 · PAPER AND INK, the same as site/assets/style.css */
body { background-color: #F3F0E8; background-image: linear-gradient(rgba(31,35,41,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(31,35,41,.055) 1px, transparent 1px); background-size: 32px 32px; }
.topbar { background: rgba(243,240,232,.92); border-bottom: 1.5px solid var(--ink); }
.card { border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.lang-switch { background: #fff; border-color: var(--ink); }
