/* Content dashboard. Orion's brand (logo, Onsite / Proto Mono, bone + ink + orange, teal and blue as support) on a
   glass layer: translucent panels over a slow ambient background. Light is the default; [data-theme="dark"] is the
   dark theme. Channels are colour-coded from Orion's palette (.ch-*). The client never restyles this. */
:root {
  color-scheme: light;
  --mono: 'Onsite', 'Proto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --label: 'JetBrains Mono', 'Onsite', 'Proto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: #F3EDE1; --bg-2: #EFE7D8; --fg-rgb: 28, 24, 19; --bg-rgb: 243, 237, 225;
  --ink: #1C1813; --t-2: #3E372D; --ink-dim: #3B342B; --t-mute: #4A4237; --t-faint: #5E5548; --ink-faint: #D6CDBB;
  --line: rgba(28, 24, 19, .09); --line-strong: rgba(28, 24, 19, .18); --field: rgba(28, 24, 19, .5);
  --orange: #E24A15; --orange-soft: #B8430C; --orange-text: #A33A0A; --orange-display: #E24A15; --on-orange: #12100D;
  --good: #17664C; --good-text: #17664C; --warn: #6E5108; --warn-text: #6E5108; --bad: #B23E26; --bad-text: #B23E26; --blue-text: #2E4A6B;
  --glass: rgba(255, 253, 248, .58); --glass-strong: rgba(255, 253, 248, .84); --glass-line: rgba(255, 255, 255, .8);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 14px 34px -22px rgba(70, 45, 20, .45), 0 2px 6px -3px rgba(70, 45, 20, .12);
  --shadow-up: inset 0 1px 0 rgba(255, 255, 255, .8), 0 22px 40px -22px rgba(70, 45, 20, .55), 0 4px 10px -4px rgba(70, 45, 20, .16);
  --orb-a: rgba(226, 74, 21, .26); --orb-b: rgba(14, 107, 120, .22); --orb-c: rgba(46, 74, 107, .16);
  --r-lg: 18px; --r: 12px; --r-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0907; --bg-2: #100E0B; --fg-rgb: 232, 220, 194; --bg-rgb: 10, 9, 7;
  --ink: #E8DCC2; --t-2: #CFC6B1; --ink-dim: #B8AE97; --t-mute: #B8AE97; --t-faint: #A39A86; --ink-faint: #3A362D;
  --line: rgba(232, 220, 194, .08); --line-strong: rgba(232, 220, 194, .18); --field: rgba(232, 220, 194, .42);
  --orange-soft: #F26A2E; --orange-text: #FF7D45; --orange-display: #F26A2E;
  --good: #3FAE8B; --good-text: #5FC7A6; --warn: #C9A23A; --warn-text: #D6B14C; --bad: #D9705A; --bad-text: #E8866E; --blue-text: #9DB6DC;
  --glass: rgba(232, 220, 194, .04); --glass-strong: rgba(26, 23, 18, .72); --glass-line: rgba(232, 220, 194, .1);
  --shadow: inset 0 1px 0 rgba(232, 220, 194, .05), 0 18px 40px -22px rgba(0, 0, 0, .9);
  --shadow-up: inset 0 1px 0 rgba(232, 220, 194, .08), 0 26px 44px -22px rgba(0, 0, 0, 1);
  --orb-a: rgba(226, 74, 21, .2); --orb-b: rgba(14, 107, 120, .2); --orb-c: rgba(46, 74, 107, .22);
}
/* the sidebar and code blocks are dark in both themes */
.sidebar, pre.code {
  --bg: #0A0907; --fg-rgb: 232, 220, 194; --ink: #E8DCC2; --ink-dim: #B8AE97; --t-mute: #B8AE97; --t-faint: #A39A86;
  --line: rgba(232, 220, 194, .08); --line-strong: rgba(232, 220, 194, .18); --orange-text: #FF7D45;
}

/* channel colours, from Orion's palette. --ch is the mark, --ch-t the readable text tone. */
.ch-ig { --ch: #E24A15; --ch-t: #A33A0A; } .ch-li { --ch: #2E4A6B; --ch-t: #2E4A6B; } .ch-web { --ch: #0E6B78; --ch-t: #0B5560; }
.ch-vid { --ch: #1C1813; --ch-t: #1C1813; } .ch-ai { --ch: #B88A12; --ch-t: #6E5108; } .ch-me { --ch: #8C2A12; --ch-t: #7A2410; }
.ch-dep { --ch: #17664C; --ch-t: #17664C; } .ch-x { --ch: #6B6154; --ch-t: #3B342B; }
:root[data-theme="dark"] .ch-ig { --ch: #F26A2E; --ch-t: #FF7D45; } :root[data-theme="dark"] .ch-li { --ch: #5B7FB5; --ch-t: #9DB6DC; }
:root[data-theme="dark"] .ch-web { --ch: #2A9AAA; --ch-t: #6CCBD8; } :root[data-theme="dark"] .ch-vid { --ch: #E8DCC2; --ch-t: #E8DCC2; }
:root[data-theme="dark"] .ch-ai { --ch: #C9A23A; --ch-t: #D6B14C; } :root[data-theme="dark"] .ch-me { --ch: #C7604A; --ch-t: #E8866E; }
:root[data-theme="dark"] .ch-dep { --ch: #3FAE8B; --ch-t: #5FC7A6; } :root[data-theme="dark"] .ch-x { --ch: #A39A86; --ch-t: #B8AE97; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--mono); font-weight: 400; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* ambient background: three soft orbs that drift slowly behind the glass */
body::before, body::after { content: ""; position: fixed; inset: -20vmax; pointer-events: none; z-index: 0; }
body::before { background: radial-gradient(38vmax 34vmax at 78% 22%, var(--orb-a), transparent 62%), radial-gradient(40vmax 36vmax at 24% 82%, var(--orb-b), transparent 62%); animation: drift-a 36s ease-in-out infinite alternate; }
body::after { background: radial-gradient(30vmax 28vmax at 55% 55%, var(--orb-c), transparent 64%); animation: drift-b 44s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-5vmax, 4vmax, 0) rotate(8deg); } }
@keyframes drift-b { to { transform: translate3d(7vmax, -5vmax, 0); } }
h1, h2, h3, h4, h5, p, dl, dd, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1 { text-wrap: balance; }
a { color: var(--orange-text); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--ink); }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--on-orange); padding: 8px 14px; border-radius: var(--r-sm); z-index: 40; }
.skip:focus { left: 8px; }
.offscreen { position: fixed; left: -9999px; top: 0; }
.boot { position: relative; padding: 20vh 16px; text-align: center; color: var(--t-mute); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.glass { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); }

/* ── shell ── */
.app { position: relative; z-index: 2; display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; align-self: start; z-index: 25; display: flex; flex-direction: column; padding: 22px 0 0; color: var(--ink);
  background: radial-gradient(ellipse 120% 32% at 0% 0%, rgba(3, 53, 60, .95) 0%, rgba(3, 53, 60, .45) 45%, rgba(3, 53, 60, 0) 100%), linear-gradient(180deg, #0A0907 0%, #0A0907 80%, #722408 93%, #E24A15 100%); }
:root[data-theme="dark"] .sidebar { border-right: 1px solid var(--line); background: rgba(10, 9, 7, .5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.brand { padding: 0 20px 20px; display: flex; align-items: center; }
.logo { height: 26px; width: auto; display: block; flex: none; }
.client { display: flex; align-items: center; gap: 10px; margin: 0 12px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 11px; background: rgba(232, 220, 194, .05); }
.client .fav { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(140deg, #E24A15, #8C2A12); display: grid; place-items: center; font-size: 12px; color: #FBF5EA; font-weight: 500; flex: none; }
.client .tx { font-size: 13.5px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 16px; }
.nav-sec { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--t-faint); padding: 0 10px; margin: 20px 0 8px; font-weight: 500; }
.nav-sec:first-child { margin-top: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.35; color: var(--ink-dim); text-decoration: none; position: relative; transition: background .2s, color .2s; }
.nav-item .icon { width: 15px; height: 15px; flex: none; display: inline-flex; opacity: .75; }
.nav-item .icon svg, .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.7; }
.nav-tx { display: flex; flex-direction: column; min-width: 0; }
.nav-tx small { font-size: 12px; color: var(--t-faint); letter-spacing: .02em; }
.nav-item.active { background: rgba(232, 220, 194, .1); color: var(--ink); box-shadow: inset 0 1px 0 rgba(232, 220, 194, .08); }
.nav-item.active .icon { opacity: 1; color: var(--orange-text); }
.nav-item:hover:not(.active) { background: rgba(232, 220, 194, .05); color: var(--ink); }
.bdg { margin-left: auto; min-width: 22px; text-align: center; font-size: 12px; padding: 2px 6px; border-radius: 99px; border: 1px solid var(--line); color: var(--t-faint); flex: none; font-weight: 500; font-variant-numeric: tabular-nums; }
.bdg.hot { border-color: transparent; color: #12100D; background: #F26A2E; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 60px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 30px; background: rgba(var(--bg-rgb), .5); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); position: sticky; top: 0; z-index: 20; }
.top-logo { display: none; }
.tback { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 10px; border-radius: 99px; font-size: 13px; color: var(--ink); text-decoration: none; flex: none; transition: transform .25s var(--ease), box-shadow .25s; }
.tback:hover { color: var(--ink); transform: translateX(-2px); box-shadow: var(--shadow-up); }
.ic { width: 16px; height: 16px; display: inline-flex; flex: none; }
.crumb { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--orange-text); }
.crumb b { color: var(--ink); font-weight: 400; }
.crumb .sep { color: var(--t-faint); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.tbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; border-radius: 99px; padding: 6px 14px; font-size: 13px; color: var(--ink-dim); cursor: pointer; transition: color .2s, box-shadow .25s; }
.tbtn:hover { color: var(--ink); box-shadow: var(--shadow-up); }
.usr { display: flex; align-items: center; gap: 9px; padding-left: 12px; border-left: 1px solid var(--line); }
.ava { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--on-orange); display: grid; place-items: center; font-size: 13px; font-weight: 500; flex: none; }
.usr .nm { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; white-space: nowrap; }
.usr .pl { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); font-weight: 500; }

.view { position: relative; padding: 30px 30px 60px; max-width: 1620px; width: 100%; }
.phead h1, .piece-head h1 { font-size: clamp(28px, 3.3vw, 44px); line-height: 1.06; letter-spacing: -.035em; margin: 15px 0 0; }
.phead h1 em { font-style: normal; color: var(--orange-display); }
.lede { font-size: 15px; line-height: 1.65; color: var(--ink-dim); margin-top: 14px; max-width: 50em; }
.lede b { color: var(--ink); font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); font-weight: 500; }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--ch, var(--orange)); box-shadow: 0 0 10px var(--ch, var(--orange)); flex: none; animation: pulse 2.4s ease-in-out infinite; }
.piece-head .eyebrow { color: var(--ch-t, var(--t-mute)); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.link { display: inline-block; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); text-decoration: none; border-bottom: 1px solid var(--ink-faint); padding-bottom: 2px; transition: color .18s, border-color .18s; font-weight: 500; }
.link:hover { color: var(--orange-text); border-color: var(--orange); }

/* entrance: only when the route or the view changes */
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.enter .phead, .enter .piece-head, .enter .cal-bar, .enter .legend, .enter .banner, .enter .actions { animation: rise .55s var(--ease) both; }
.enter .cal-bar { animation-delay: 60ms; } .enter .legend { animation-delay: 110ms; }
.enter .day, .enter .mrow, .enter .block, .enter .side-col > * { animation: rise .6s var(--ease) both; animation-delay: calc(140ms + var(--i, 0) * 55ms); }
.enter .card { animation: rise .6s var(--ease) both; animation-delay: calc(220ms + var(--i, 0) * 45ms); }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .28s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ── calendar ── */
.recheck { margin-top: 26px; border-radius: var(--r); padding: 18px 20px; }
.recheck h2 { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--warn-text); font-weight: 500; margin-bottom: 12px; }
.recheck h2 i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.recheck ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.recheck a { color: var(--ink); }

.weeks { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 26px; }
.week { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border-radius: var(--r); color: var(--ink-dim); text-decoration: none; }
.week.on { border-color: var(--orange); color: var(--ink); }
.week-id { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.week-theme { font-size: 12.5px; color: var(--t-faint); }
.week-n { font-size: 12px; letter-spacing: .06em; color: var(--orange-text); }

.cal-bar { position: relative; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 34px; padding: 12px 14px; border-radius: var(--r-lg); }
.cal-nav { display: flex; gap: 6px; flex: none; }
.cal-arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(var(--fg-rgb), .05); border: 1px solid var(--line); text-decoration: none; transition: background .2s, transform .25s var(--ease); }
a.cal-arrow:hover { background: var(--ink); color: var(--bg); transform: scale(1.06); }
span.cal-arrow { opacity: .35; }
.cal-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; flex: 1 1 260px; }
.cal-title .n { font-size: 12.5px; letter-spacing: .1em; color: var(--orange-text); }
.cal-title h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.cal-range { font-size: 13px; color: var(--t-mute); font-variant-numeric: tabular-nums; }
.cal-theme { flex-basis: 100%; font-size: 13.5px; color: var(--t-mute); }
.cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(var(--fg-rgb), .07); }
.seg button { border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--t-mute); padding: 7px 16px; border-radius: 99px; min-height: 34px; transition: background .25s var(--ease), color .2s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: var(--glass-strong); color: var(--ink); box-shadow: var(--shadow); }
select, input[type=text], input[type=url], textarea { font: inherit; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; }
select { min-height: 40px; font-size: 13.5px; border-radius: 99px; padding: 6px 12px 6px 16px; }
select:hover, input:hover, textarea:hover { border-color: var(--field); }
.filter { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); }
.filter select { text-transform: none; letter-spacing: 0; font-weight: 400; }

.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.lg { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 13px 6px 11px; border-radius: 99px; font-size: 13px; color: var(--ink-dim); cursor: pointer; background: var(--glass); border: 1px solid var(--glass-line); transition: background .25s, color .2s, transform .25s var(--ease), box-shadow .25s; }
.lg:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.lg i { width: 9px; height: 9px; border-radius: 50%; background: var(--ch, var(--ink)); flex: none; }
.lg small { font-size: 12px; color: var(--t-faint); font-variant-numeric: tabular-nums; }
.lg[aria-pressed="true"] { background: color-mix(in srgb, var(--ch, var(--ink)) 14%, var(--glass-strong)); border-color: color-mix(in srgb, var(--ch, var(--ink)) 55%, transparent); color: var(--ink); box-shadow: var(--shadow); }
.legend.filtered .lg[aria-pressed="false"] { opacity: .6; }

.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.day { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 300px; padding: 12px; border-radius: var(--r-lg); }
.day-head { display: flex; align-items: center; gap: 10px; padding: 2px 2px 10px; border-bottom: 1px solid var(--line); }
.day-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; flex: none; }
.day-name { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); }
.day-count { margin-left: auto; font-size: 12px; color: var(--t-faint); font-variant-numeric: tabular-nums; }
.day.today { border-color: color-mix(in srgb, var(--orange) 45%, var(--glass-line)); }
.day.today .day-num { background: var(--orange); color: var(--on-orange); box-shadow: 0 6px 16px -6px var(--orange); }
.day.today .day-name { color: var(--orange-text); }
.empty { color: var(--t-faint); font-size: 13px; letter-spacing: .04em; padding: 6px 2px; }

.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ch) 13%, transparent), color-mix(in srgb, var(--ch) 5%, transparent)), var(--glass-strong);
  border: 1px solid color-mix(in srgb, var(--ch) 26%, var(--glass-line)); box-shadow: inset 3px 0 0 var(--ch), var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: inset 3px 0 0 var(--ch), var(--shadow-up); }
.thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--bg-2); display: block; transition: transform .6s var(--ease); }
.thumb-wrap { overflow: hidden; display: block; }
.card:hover .thumb { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 7px; padding: 13px 14px 15px 16px; align-items: flex-start; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; width: 100%; }
.lbl { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ch-t, var(--t-mute)); }
.card-time { font-size: 12px; color: var(--t-mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-title { font-size: 14.5px; line-height: 1.4; color: var(--ink); overflow-wrap: break-word; max-width: 100%; }
.card-who { font-size: 12.5px; color: var(--t-faint); line-height: 1.5; }

/* state bubbles: the whole bubble carries the state colour */
.chip { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .03em; line-height: 1.35; padding: 4px 10px; border-radius: 11px; margin-top: 2px; background: #E2D9C7; color: #2C261E; }
.chip-BORRADOR { background: #CFC5B0; color: #2C261E; }
.chip-EN_REVISION { background: #F2C230; color: #2E2200; }
.chip-APROBADO { background: #17664C; color: #F3FBF7; }
.chip-PUBLICADO { background: #1C1813; color: #F3EDE1; }
.chip-BLOQUEADO { background: #B23E26; color: #FFF5F0; }
.chip-recheck { background: #E24A15; color: #12100D; }
.chip-late { background: #B23E26; color: #FFF5F0; }
.chip-due { background: #E24A15; color: #12100D; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.late-tx { color: var(--bad-text) !important; }
.card:has(.chip-late) { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.pill.late { outline: 1.5px solid var(--bad); outline-offset: -1.5px; }
.pill-late { font-style: normal; font-size: 12px; font-weight: 500; color: var(--bad-text); flex: none; align-self: center; margin-left: auto; }
.pill-late + .st { margin-left: 0; }
.chip-current { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); margin-left: 8px; }
:root[data-theme="dark"] .chip-PENDIENTE { background: rgba(232, 220, 194, .16); color: #E8DCC2; }
:root[data-theme="dark"] .chip-BORRADOR { background: rgba(232, 220, 194, .26); color: #E8DCC2; }
:root[data-theme="dark"] .chip-APROBADO { background: #2E9273; color: #06140F; }
:root[data-theme="dark"] .chip-PUBLICADO { background: #E8DCC2; color: #12100D; }
:root[data-theme="dark"] .chip-BLOQUEADO { background: #D9705A; color: #1A0A06; }

/* state filter: a dropdown whose options are the same bubbles */
.sdrop { position: relative; }
.sbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 5px 12px 5px 14px; border-radius: 99px; font-size: 13.5px; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--line-strong); cursor: pointer; transition: border-color .2s, box-shadow .25s; }
.sbtn:hover, .sbtn[aria-expanded="true"] { border-color: var(--field); box-shadow: var(--shadow); }
.sbtn .chip { margin: 0; }
.sbtn .ic { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.sbtn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.smenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; list-style: none; margin: 0; padding: 8px; min-width: 250px; border-radius: var(--r); background: #FCF8F0; border: 1px solid var(--line-strong); box-shadow: 0 24px 44px -20px rgba(60, 40, 20, .5); -webkit-backdrop-filter: none; backdrop-filter: none; display: grid; gap: 2px; animation: rise .25s var(--ease) both; }
:root[data-theme="dark"] .smenu { background: #17140F; box-shadow: 0 24px 44px -20px #000; }
.smenu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 8px; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; font-size: 13.5px; color: var(--ink); text-align: left; }
.smenu button:hover, .smenu button[aria-selected="true"] { background: rgba(var(--fg-rgb), .07); }
.smenu .chip { margin: 0; }
.smenu small { font-size: 12px; color: var(--t-faint); font-variant-numeric: tabular-nums; }

/* month view */
.month { display: grid; gap: 10px; }
.mhead, .mrow { display: grid; grid-template-columns: 132px repeat(5, minmax(0, 1fr)); gap: 10px; }
.mhead span { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); padding: 0 12px; }
.mw { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: var(--r); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.mw:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); color: var(--ink); }
.mw b { font-weight: 500; font-size: 14px; }
.mw small { font-size: 12px; color: var(--t-mute); }
.mw .week-n { margin-top: auto; }
.mcell { display: flex; flex-direction: column; gap: 6px; min-height: 118px; padding: 10px; border-radius: var(--r); min-width: 0; }
.mcell.today { border-color: color-mix(in srgb, var(--orange) 45%, var(--glass-line)); }
.mdate { font-size: 13px; color: var(--t-mute); font-variant-numeric: tabular-nums; display: flex; gap: 6px; align-items: center; }
.mdate .mday { display: none; }
.mcell.today .mdate b { background: var(--orange); color: var(--on-orange); border-radius: 99px; padding: 0 7px; font-weight: 500; }
.mdate b { font-weight: 400; }
.pill { display: flex; align-items: baseline; gap: 7px; min-height: 28px; padding: 6px 9px 6px 11px; border-radius: 7px; font-size: 12.5px; line-height: 1.3; color: var(--ink); text-decoration: none; min-width: 0;
  background: color-mix(in srgb, var(--ch) 13%, var(--glass-strong)); box-shadow: inset 3px 0 0 var(--ch); transition: transform .25s var(--ease), background .2s; }
.pill:hover { color: var(--ink); transform: translateX(2px); background: color-mix(in srgb, var(--ch) 22%, var(--glass-strong)); }
.pill b { font-weight: 500; color: var(--ch-t); flex: none; }
.pill span { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-width: 0; }
.pill .st { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; flex: none; align-self: center; background: var(--t-faint); }
.st-EN_REVISION { background: #E9B41E !important; } .st-APROBADO { background: var(--good) !important; } .st-PUBLICADO { background: var(--ink) !important; }
.st-BLOQUEADO { background: var(--bad) !important; } .st-recheck { background: var(--orange) !important; }

.btn { font: inherit; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; min-height: 44px; padding: 11px 18px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--glass); color: var(--ink-dim); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color .2s, color .2s, background .2s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { color: var(--ink); border-color: var(--field); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); box-shadow: 0 10px 22px -12px var(--orange); }
.btn.primary:hover { background: #F26A2E; border-color: #F26A2E; color: var(--on-orange); box-shadow: 0 14px 26px -12px var(--orange); }
.btn.tiny { min-height: 34px; font-size: 12px; padding: 6px 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── piece view ── */
.back { margin-bottom: 26px; }
.piece-head h1 { max-width: 26ch; }
.piece-head h1:focus { outline: none; }
.when { margin-top: 14px; color: var(--ink-dim); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.banner { margin-top: 22px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); font-size: 15px; line-height: 1.6; max-width: 62em; }
.banner-EN_REVISION { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 9%, var(--glass)); }
.banner-recheck { border-color: color-mix(in srgb, var(--orange) 45%, transparent); background: color-mix(in srgb, var(--orange) 8%, var(--glass)); }
.banner-APROBADO, .banner-PUBLICADO { border-color: color-mix(in srgb, var(--good) 40%, transparent); background: color-mix(in srgb, var(--good) 9%, var(--glass)); }
.banner-BLOQUEADO { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 9%, var(--glass)); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.inline-form, .editor { border-radius: var(--r-lg); padding: 19px; margin-top: 12px; display: grid; gap: 12px; max-width: 62em; animation: rise .4s var(--ease) both; }
.editor { max-width: none; margin-top: 0; }
.inline-form label, .ed-block label { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.hint { color: var(--ink-dim); font-size: 14px; line-height: 1.6; max-width: 62em; }
textarea, input[type=text], input[type=url] { width: 100%; font-size: 16px; line-height: 1.6; }
textarea { resize: vertical; }
textarea.mono { font-size: 14px; }
.ed-block { display: grid; gap: 8px; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; margin-top: 30px; align-items: start; }
.col-main { display: grid; gap: 13px; min-width: 0; }
.block { border-radius: var(--r-lg); padding: 19px 24px 26px; min-width: 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.block-head h2, .images h2, .versions h2, .history h2, .why h2 { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); }
.copytext { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.75; max-width: 68ch; color: var(--ink); }
.copytext.small { font-size: 14px; line-height: 1.65; }
.blank { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--ink); border-bottom: 1px dashed var(--warn-text); padding: 1px 4px; border-radius: 4px; }
.blank.dato { background: color-mix(in srgb, var(--blue-text) 14%, transparent); border-bottom-color: var(--blue-text); }
.blank-tag { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; color: var(--warn-text); white-space: nowrap; }
.blank.dato .blank-tag { color: var(--blue-text); }

.doc { font-size: 15.5px; line-height: 1.75; overflow-wrap: anywhere; }
.doc > * + * { margin-top: 14px; }
.doc h2, .doc h3 { font-size: 20px; line-height: 1.3; margin-top: 32px; letter-spacing: -.02em; color: var(--ink); }
.doc h4, .doc h5 { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); margin-top: 26px; }
.doc p, .doc li, .doc blockquote { max-width: 70ch; }
.doc ul, .doc ol { padding-left: 24px; display: grid; gap: 6px; }
.doc li::marker { color: var(--orange-text); }
.doc li.deep { margin-left: 22px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.doc blockquote { border-left: 1px solid var(--orange); padding: 2px 0 2px 16px; color: var(--ink-dim); }
.doc code { font-family: inherit; font-size: .92em; background: rgba(var(--fg-rgb), .07); padding: 1px 5px; border-radius: 4px; }
pre.code { position: relative; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 50px 18px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; font-family: var(--mono); }
pre.code code { background: none; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
pre.code .btn { background: rgba(232, 220, 194, .06); }
.copy-code { position: absolute; top: 8px; right: 8px; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); border-bottom: 1px solid var(--line-strong); }

/* ── preview: how the post will look once published. Platform-neutral light surface, system type. ── */
.tabs { justify-self: start; }
.preview { border-radius: var(--r-lg); padding: 19px 24px 30px; min-width: 0; }
.preview .block-head small { font-size: 12.5px; color: var(--t-faint); }
.pv { --ink: #111; --warn: #6E5108; --warn-text: #6E5108; --blue-text: #2E4A6B; max-width: 468px; margin: 8px auto 0; background: #fff; color: #111; border: 1px solid #DBDBDB; border-radius: 12px; overflow: hidden;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; line-height: 1.45; box-shadow: 0 30px 60px -34px rgba(40, 25, 10, .55); }
.pv-li { max-width: 552px; }
.pv a { color: #0A66C2; }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pv-ava { width: 38px; height: 38px; border-radius: 50%; background: #1C1813; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; }
.pv-li .pv-ava { width: 46px; height: 46px; }
.pv-name { font-weight: 600; display: block; }
.pv-sub { display: block; font-size: 12px; color: #666; }
.pv-media { position: relative; background: #0d0d0d; }
.pv-media img { display: block; width: 100%; height: auto; }
.pv-ig .pv-media img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.pv-nav { position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #111; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .2s; }
.pv-nav:hover { transform: scale(1.1); }
.pv-nav.l { left: 10px; } .pv-nav.r { right: 10px; }
.pv-nav .ic { width: 16px; height: 16px; }
.pv-count { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 99px; }
.pv-dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 0; }
.pv-dots i { width: 6px; height: 6px; border-radius: 50%; background: #C7C7C7; }
.pv-dots i.on { background: #0095F6; }
.pv-actions { display: flex; gap: 14px; padding: 10px 14px 6px; color: #111; }
.pv-actions .ic { width: 24px; height: 24px; }
.pv-actions .ic:last-child { margin-left: auto; }
.pv-text { padding: 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pv-li .pv-text { padding-bottom: 2px; }
.pv-text.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.pv-li .pv-text.clamp { -webkit-line-clamp: 4; line-clamp: 4; }
.pv-more { border: 0; background: none; cursor: pointer; font: inherit; color: #6B6B6B; padding: 4px 14px 14px; }
.pv-more:hover { color: #111; text-decoration: underline; }
.pv-bar { display: flex; justify-content: space-around; border-top: 1px solid #E6E6E6; padding: 11px 6px; font-size: 13px; font-weight: 600; color: #5E5E5E; }
.pv-note { margin: 16px auto 0; max-width: 552px; text-align: center; font-size: 13px; color: var(--t-faint); }
/* site pieces: the document sits in a browser frame with the address it is meant for */
.bbar { display: flex; align-items: center; gap: 7px; margin: -4px 0 18px; padding: 9px 12px; border-radius: 99px; background: rgba(var(--fg-rgb), .06); }
.bbar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(var(--fg-rgb), .22); flex: none; }
.bbar span { margin-left: 8px; font-size: 13px; color: var(--t-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* site preview: search snippet + the page in a browser frame. Neutral light surface, system type. */
.pv-label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-faint); margin: 18px 0 10px; }
.serp, .pg-frame { --ink: #111; --warn: #6E5108; --warn-text: #6E5108; --blue-text: #2E4A6B; --line: #E7E7E7; --line-strong: #D5D5D5; --t-mute: #5F6368; --fg-rgb: 20, 20, 20; --orange-text: #A33A0A;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #fff; color: #111; border: 1px solid #DBDBDB; border-radius: 12px; box-shadow: 0 30px 60px -36px rgba(40, 25, 10, .5); }
.serp { display: grid; gap: 4px; max-width: 640px; padding: 16px 18px; }
.serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.serp-site i { width: 28px; height: 28px; border-radius: 50%; background: #1C1813; color: #fff; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 600; flex: none; }
.serp-site b { display: block; font-size: 14px; font-weight: 400; color: #202124; line-height: 1.3; }
.serp-site small { display: block; font-size: 12px; color: #4D5156; line-height: 1.3; }
.serp-title { font-size: 20px; line-height: 1.3; color: #1A0DAB; }
.serp-desc { font-size: 14px; line-height: 1.55; color: #4D5156; }
.pg-frame { overflow: hidden; }
.pg-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #F1F1F1; border-bottom: 1px solid #E2E2E2; }
.pg-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CFCFCF; flex: none; }
.pg-bar span { margin-left: 10px; flex: 1; background: #fff; border-radius: 99px; padding: 4px 14px; font-size: 13px; color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-site { display: flex; align-items: center; gap: 18px; padding: 14px clamp(18px, 5%, 44px); border-bottom: 1px solid #EFEFEF; }
.pg-site b { font-size: 16px; margin-right: auto; }
.pg-site span { width: 54px; height: 8px; border-radius: 99px; background: #E6E6E6; }
.pg-banner { margin: 0; padding: 10px clamp(18px, 5%, 44px); background: #FFF6D8; color: #4A3900; font-size: 13px; }
.pg { padding: 30px clamp(18px, 5%, 44px) 40px; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.pg > * { max-width: 44em; }
.pg > * + * { margin-top: 14px; }
.pg h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.pg h2, .pg h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; margin-top: 38px; }
.pg-lead { font-size: 18px; line-height: 1.6; color: #222; }
.pg-lead > * + * { margin-top: 14px; }
.pg-byline, .pg-note { font-size: 13.5px; color: #5F6368; line-height: 1.55; }
.pg-note { padding: 14px 16px; background: #F6F6F6; border-radius: 8px; margin-top: 28px !important; }
.pg ul, .pg ol { padding-left: 22px; display: grid; gap: 6px; }
.pg a, .pg-link { color: #0B57D0; text-decoration: underline; text-underline-offset: 3px; }
.pg-btn { display: inline-block; margin: 4px 8px 0 0; padding: 11px 20px; border-radius: 99px; background: #111; color: #fff; font-weight: 600; font-size: 14.5px; }
.pg-btn + .pg-btn { background: #fff; color: #111; box-shadow: inset 0 0 0 1.5px #111; }
.pg .table { max-width: none; border: 1px solid #E7E7E7; border-radius: 10px; }
.pg table { font-size: 14px; }
.pg th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: #111; background: #F6F6F6; }
.pg-faq { display: grid; border-top: 1px solid #E7E7E7; }
.pg-faq details { border-bottom: 1px solid #E7E7E7; }
.pg-faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; list-style: none; position: relative; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 20px; font-weight: 400; color: #666; transition: transform .25s var(--ease); }
.pg-faq details[open] summary::after { transform: rotate(45deg); }
.pg-faq details p { padding: 0 0 16px; color: #333; }
.pg.changes { background: #FAFAFA; padding-top: 22px; display: grid; gap: 14px; }
.pg.changes > * + * { margin-top: 0; }
.pg-change { max-width: none !important; background: #fff; border: 1px solid #E7E7E7; border-radius: 12px; padding: 18px 20px 20px; display: grid; gap: 10px; }
.pg-change h2 { margin-top: 4px; font-size: 21px; }
.pg-where { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #0B5560; }
.pg-tag { display: block; font-size: 12px; font-weight: 600; color: #777; margin-top: 6px; }
.pg-diff { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid #EFEFEF; }
.pg-diff .was { color: #8A8A8A; text-decoration: line-through; font-size: 14.5px; }
.pg-diff .now { background: #E9F6EF; border-radius: 6px; padding: 6px 10px; }

.images { margin-top: 13px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 13px; margin-top: 14px; }
.gallery img { width: 100%; height: auto; display: block; border-radius: var(--r); border: 1px solid var(--glass-line); box-shadow: var(--shadow); background: var(--bg-2); }
figcaption { display: flex; align-items: center; gap: 14px; margin-top: 10px; }

.versions { display: grid; gap: 14px; justify-items: start; margin-top: 13px; }
.vlist { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.vlist strong { font-weight: 500; }
.vnote { display: block; color: var(--t-faint); font-size: 13px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; width: 100%; }
.side { border-radius: var(--r); padding: 16px 18px; min-width: 0; }
.side.now { border-color: var(--orange); }
.side h3 { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); margin-bottom: 10px; }

.side-col { display: grid; gap: 22px; position: sticky; top: 84px; padding: 20px; border-radius: var(--r-lg); }
.why p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--ink-dim); }
.facts { display: grid; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact dt { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-faint); margin-bottom: 4px; }
.fact dd { overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.55; }
.block-link { justify-self: start; }
.history ol { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 14px; }
.history li { border-left: 1px solid var(--line-strong); padding-left: 12px; }
.h-who { display: block; font-size: 14px; color: var(--ink); }
.h-when { display: block; font-size: 12px; letter-spacing: .04em; color: var(--t-faint); }
.h-text { margin-top: 5px; font-size: 14px; line-height: 1.6; color: var(--ink-dim); white-space: pre-wrap; overflow-wrap: anywhere; }

.foot { display: flex; justify-content: flex-end; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.foot a { color: var(--t-faint); text-decoration: none; }
.foot a:hover { color: var(--orange-text); }

/* ── sign-in ── */
.gate { position: relative; z-index: 2; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.gate-card { width: 100%; max-width: 460px; border-radius: 24px; padding: 34px 32px 36px; display: grid; gap: 14px; justify-items: start; animation: rise .6s var(--ease) both; }
.gate-logo { height: 30px; width: auto; filter: brightness(0); margin-bottom: 14px; }
:root[data-theme="dark"] .gate-logo { filter: none; }
.gate h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; }
.gate-p { font-size: 15px; line-height: 1.6; color: var(--ink-dim); }
.gate-p b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.gate-form { width: 100%; display: grid; gap: 10px; margin-top: 6px; }
.gate-form label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--t-mute); }
.gate-form input { width: 100%; font: inherit; font-size: 16px; min-height: 48px; border-radius: 12px; padding: 10px 14px; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--line-strong); }
.gate-form .btn { margin-top: 6px; }
.gate-err { min-height: 1.4em; font-size: 14px; color: var(--bad-text); }
.client-pick { flex: 1; min-width: 0; min-height: 0; background: none; border: 0; padding: 0; color: var(--ink); font-size: 13.5px; border-radius: 0; cursor: pointer; }
.client-pick option { color: #1C1813; }

#toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px) scale(.96); background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 99px; font-size: 13px; letter-spacing: .04em; opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); max-width: calc(100vw - 32px); text-align: center; z-index: 40; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
#toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .top-logo { display: flex; flex: none; }
  .top-logo .logo { height: 22px; filter: brightness(0); }
  :root[data-theme="dark"] .top-logo .logo { filter: none; }
  .crumb { display: none; }
  .weeks { display: grid; }
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day { min-height: 0; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
  .mhead, .mrow { grid-template-columns: 104px repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .topbar { padding: 0 16px; gap: 10px; }
  .view { padding: 22px 16px 40px; }
  .usr > span:last-child, .tbtn span:not(.ic):not(.keep) { display: none; }
  .tbtn { padding: 6px 10px; }
  .usr { padding-left: 0; border-left: 0; }
  .weeks { grid-template-columns: 1fr 1fr; }
  .cal-tools { margin-left: 0; width: 100%; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .card.has-thumb { flex-direction: row; }
  .card.has-thumb .thumb-wrap { width: 96px; flex: none; }
  .card.has-thumb .thumb { height: 100%; aspect-ratio: auto; }
  .mhead { display: none; }
  .mrow { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }
  .mcell { min-height: 0; }
  .mcell.none { display: none; }
  .mdate .mday { display: inline; }
  .block { padding: 16px 16px 20px; }
  .compare { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 calc(50% - 10px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── label font ──────────────────────────────────────────────────────────────
   Same rule as the dashboard design (orion-frontend/docs/dashboard-v2): every uppercase label is JetBrains Mono,
   13px/600 on paper; cream on dark (sidebar, dark theme) keeps 500 because it reads heavier. All other text is Onsite. */
.boot,
.nav-sec,
.crumb,
.usr .pl,
.eyebrow,
.link,
.recheck h2,
.week-id,
.filter,
.day-name,
.lbl,
.mhead span,
.btn,
.inline-form label,
.ed-block label,
.block-head h2,
.images h2,
.versions h2,
.history h2,
.why h2,
.blank-tag,
.doc h4,
.doc h5,
th,
.pv-label,
.side h3,
.fact dt,
.foot,
.gate-form label { font-family: var(--label); font-size: 13px; font-weight: 600; letter-spacing: .05em; }
:is(.sidebar, [data-theme="dark"]) .boot,
:is(.sidebar, [data-theme="dark"]) .nav-sec,
:is(.sidebar, [data-theme="dark"]) .crumb,
:is(.sidebar, [data-theme="dark"]) .usr .pl,
:is(.sidebar, [data-theme="dark"]) .eyebrow,
:is(.sidebar, [data-theme="dark"]) .link,
:is(.sidebar, [data-theme="dark"]) .recheck h2,
:is(.sidebar, [data-theme="dark"]) .week-id,
:is(.sidebar, [data-theme="dark"]) .filter,
:is(.sidebar, [data-theme="dark"]) .day-name,
:is(.sidebar, [data-theme="dark"]) .lbl,
:is(.sidebar, [data-theme="dark"]) .mhead span,
:is(.sidebar, [data-theme="dark"]) .btn,
:is(.sidebar, [data-theme="dark"]) .inline-form label,
:is(.sidebar, [data-theme="dark"]) .ed-block label,
:is(.sidebar, [data-theme="dark"]) .block-head h2,
:is(.sidebar, [data-theme="dark"]) .images h2,
:is(.sidebar, [data-theme="dark"]) .versions h2,
:is(.sidebar, [data-theme="dark"]) .history h2,
:is(.sidebar, [data-theme="dark"]) .why h2,
:is(.sidebar, [data-theme="dark"]) .blank-tag,
:is(.sidebar, [data-theme="dark"]) .doc h4,
:is(.sidebar, [data-theme="dark"]) .doc h5,
:is(.sidebar, [data-theme="dark"]) th,
:is(.sidebar, [data-theme="dark"]) .pv-label,
:is(.sidebar, [data-theme="dark"]) .side h3,
:is(.sidebar, [data-theme="dark"]) .fact dt,
:is(.sidebar, [data-theme="dark"]) .foot,
:is(.sidebar, [data-theme="dark"]) .gate-form label { font-weight: 500; letter-spacing: .07em; }
