:root {
  /* editor chrome: black and white, Apple style */
  --ink: #1d1d1f; --mute: #6e6e73; --faint: #86868b; --line: rgba(0, 0, 0, .1); --fill: #f5f5f7;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* brochure: the Freshman Academy document design */
  --pt: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --navy: #1c3a5e; --orange: #e07b34; --card: #eef2f7; --text: #33475a; --label: #5a6b7d; --rule: #d9dee6;
  --green: #1f7a52; --green-bg: #eaf6ef;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.4 var(--ui); color: var(--ink); background: var(--fill); -webkit-font-smoothing: antialiased; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
button, select, input { font: inherit; color: inherit; }

/* ---------- editor chrome ---------- */
#app { display: grid; grid-template: 52px 1fr / 288px 1fr; height: 100vh; }
#top { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); z-index: 10; }
.brand { font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin-right: auto; }
.btn { appearance: none; border: 0; background: var(--fill); padding: 7px 14px; border-radius: 980px; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn:hover { background: #e8e8ed; }
.btn.primary { background: #000; color: #fff; }
.btn.primary:hover { background: #333; }
.btn:disabled { opacity: .35; cursor: default; }

#side { overflow: auto; background: #fff; border-right: 1px solid var(--line); }
.field { display: block; margin: 8px 8px; }
.field span { display: block; font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.field input[type=text] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; outline: none; }
.field input[type=text]:focus { border-color: #000; }
.field.check { display: flex; gap: 8px; align-items: center; }
.field.check input { accent-color: #000; }

#canvas { overflow: auto; padding: 32px 24px 120px; }
#pages { display: contents; }
#canvas .page { margin: 0 auto 28px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 32px rgba(0, 0, 0, .08); }
#stage { position: absolute; left: -9999px; top: 0; width: 672px; visibility: hidden; font-family: var(--pt); }  /* same font as .page, or blocks are measured wrong */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #000; color: #fff; padding: 10px 18px; border-radius: 980px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
#toast.on { opacity: 1; }

/* ---------- page: US Letter at 96dpi, geometry measured from the original PDFs ---------- */
.page { position: relative; width: 816px; height: 1056px; background: #fff; color: var(--text); overflow: hidden; font-family: var(--pt); }
.page.off { display: none; }
.page > header { position: absolute; left: 72px; right: 72px; top: 62px; height: 34px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--navy); }
.page > footer { position: absolute; left: 72px; right: 72px; top: 990px; display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--label); }
.body { width: 672px; display: flex; flex-direction: column; gap: 18px; }
.page > .body { position: absolute; left: 72px; top: 127px; bottom: 96px; }
.page.over::after { content: "Content overflows this page. Shorten it or move a block to a new page."; position: absolute; left: 50%; transform: translateX(-50%); bottom: 58px; background: #000; color: #fff; font: 12px var(--ui); padding: 6px 14px; border-radius: 980px; white-space: nowrap; }

.logo { display: inline-flex; align-items: center; gap: .6em; font-size: 11px; color: var(--navy); }
.logo .shield { height: 3em; display: block; }
.logo .wm { font: 700 1em/1.1 var(--serif); letter-spacing: .02em; text-transform: uppercase; }

/* ---------- editable text ---------- */
.ed { outline: none; display: inline-block; max-width: 100%; min-width: 1ch; border-radius: 4px; }
.ed.ml { display: block; white-space: pre-wrap; }
.ed:hover { background: rgba(127, 127, 127, .12); }
.ed:focus { background: rgba(127, 127, 127, .18); }
.ed:empty::before { content: attr(data-ph); opacity: .35; }

/* ---------- cover ---------- */
.cover { background: var(--navy); color: #fff; }
.cover::before { content: ""; position: absolute; right: -150px; top: 70px; width: 600px; height: 655px; background: url(assets/shield-white.png) center / contain no-repeat; opacity: .04; }
.cover .logo { position: absolute; left: 72px; top: 74px; font-size: 25px; color: #fff; }
.cover .logo .shield { height: 2.3em; }
.cover .cv { position: absolute; left: 72px; right: 72px; top: 412px; }
.cover .eyebrow { color: #9fb3cc; font-size: 11.5px; letter-spacing: .26em; }
.cover hr { height: 3px; border: 0; margin: 15px 0 34px; border-radius: 2px; background: linear-gradient(var(--orange), var(--orange)) left top / 56px 3px no-repeat, linear-gradient(#4b6482, #4b6482) left 1px / 100% 1px no-repeat; }
.cover h1 { font-size: 53px; font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 22px; max-width: 600px; }
.cover .lede { font-size: 16px; line-height: 1.6; color: #c3d0e0; max-width: 560px; margin: 0; }
.cover .legal { position: absolute; left: 72px; right: 72px; top: 943px; padding-top: 22px; border-top: 1px solid #3d5879; font-size: 12px; color: #6f86a3; }

/* ---------- blocks ---------- */
.blk { position: relative; flex: none; border-radius: 14px; }
.blk[data-t=banner] { margin-bottom: 4px; }
.blk[data-t=heading] { margin-bottom: -5px; }
.blk[data-t=note] { margin-top: -6px; }
.blk:hover { outline: 1px solid rgba(0, 0, 0, .15); outline-offset: 6px; }
.blk.sel { outline: 2px solid #000; outline-offset: 6px; }
.err { padding: 16px; border: 1px dashed #000; border-radius: 12px; font-size: 13px; }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--label); }
.card { background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(28, 58, 94, .06); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 12px 0; }

.banner { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 20px; background: var(--navy); color: #fff; border-radius: 12px; }
.banner .num { min-width: 43px; height: 25px; line-height: 25px; text-align: center; background: var(--orange); color: #fff; font-weight: 700; font-size: 14.5px; border-radius: 6px; }
.banner h2 { margin: 0; font-size: 22px; font-weight: 700; }

.text { font-size: 15.4px; line-height: 1.6; color: var(--text); outline: none; }
.text b, .text strong { color: var(--navy); font-weight: 700; }
.text div, .text p { margin-top: .6em; }
.heading { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 700; color: var(--navy); }
.heading::before { content: ""; flex: none; width: 4px; height: 22px; background: var(--orange); border-radius: 2px; }
.note { margin: 0; font-size: 13.5px; color: var(--label); }
.callout { padding: 13px 20px; background: #fdf3ea; border-left: 4px solid var(--orange); border-radius: 12px; }
.callout .dot { display: none; }
.callout p { margin: 0; font-size: 15.4px; line-height: 1.6; color: var(--text); }
.callout b { font-weight: 700; color: var(--navy); }
.callout .ed { display: inline; }
.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; position: relative; font-size: 15.4px; line-height: 1.5; }
.bullets li { display: flex; gap: 12px; position: relative; }
.bullets li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: 8px; }

.row { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14.4px; line-height: 1.35; }
.row b { font-weight: 700; color: var(--navy); }
.row > :last-child { white-space: nowrap; }
.rows { position: relative; }
.pkgs { position: relative; display: grid; gap: 12px; grid-template-columns: repeat(var(--n), 1fr); }
.pkg { position: relative; display: flex; flex-direction: column; padding: 20px; }
.pkg .eyebrow { color: var(--orange); }
.pkg .price { text-align: right; font-size: 20px; font-weight: 700; color: var(--navy); padding: 2px 0 8px; border-bottom: 1px solid #c8d2df; }
.pkg .rows { margin-bottom: 9px; }
.pkg .total { margin-top: auto; border: 0; border-top: 2px solid var(--navy); padding: 12px 0 0; }
.pkg .total span { font-weight: 700; color: var(--navy); }

.mentor { display: flex; gap: 24px; padding: 16px 18px; }
.photo { position: relative; flex: none; width: 152px; height: 162px; border-radius: 10px; overflow: hidden; background: #dde4ed; cursor: pointer; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo.empty::after, .pic.empty::after { content: "Add photo"; position: absolute; inset: 0; display: grid; place-items: center; font: 12px var(--ui); color: var(--faint); }
.mentor .info { flex: 1; min-width: 0; }
.mentor .eyebrow { font-size: 10.5px; letter-spacing: .18em; }
.mentor .name { font-size: 22px; font-weight: 700; color: var(--navy); margin: 3px 0 2px; }
.mentor .sub { font-size: 14.4px; font-weight: 700; color: var(--orange); }
.mentor .bio { margin: 0; font-size: 14.2px; line-height: 1.48; color: var(--text); }
.mentor hr { margin: 9px 0; }

.ugrid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 9px; }
.uni { position: relative; padding: 9px 16px 8px; border-radius: 12px; }
.uni b { display: block; font-size: 14.6px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.uni small { font-size: 12.5px; color: var(--label); }
.uni em { font-style: normal; font-weight: 700; color: var(--orange); margin-left: 7px; }

.pricewrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hl { padding: 17px 24px; background: var(--green-bg); border-left: 4px solid var(--green); border-radius: 12px; }
.hl .eyebrow { color: #335a45; font-size: 11.5px; letter-spacing: .15em; }
.hl .big { font-size: 44px; font-weight: 700; line-height: 1; color: var(--green); margin: 8px 0 12px; }
.hl hr { border-top-color: #c8e2d3; margin: 0 0 10px; }
.hl .note { color: #3b5a4a; font-size: 14.5px; }
.bd { position: relative; padding: 20px 20px 18px; border-radius: 12px; }
.bd .eyebrow { margin-bottom: 8px; letter-spacing: .18em; }
.bd .row, .gl .row { border: 0; padding: 3px 0; font-size: 15px; }
.bd .row b, .gl .row b { color: var(--navy); }
.bd .total, .gl .total { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 10px; }
.bd .total span, .gl .total span { font-weight: 700; color: var(--navy); }

/* FreshStart blocks */
.lg { padding: 22px 24px; }
.lg .eyebrow { color: var(--orange); }
.lg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #c8d2df; }
.lg-sub { margin-top: 4px; font-size: 13.5px; color: var(--label); }
.lg-price { font-size: 17px; font-weight: 700; color: var(--navy); }
.lg-rows { position: relative; }
.lg-row { position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.lg-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.lg-row b { display: block; font-size: 16px; color: var(--navy); }
.lg-row p { margin: 3px 0 0; max-width: 430px; font-size: 13.8px; line-height: 1.45; color: var(--label); }
.lg-row > span { font-size: 15.5px; white-space: nowrap; }
.lc { padding: 22px 24px; }
.lc .eyebrow { color: var(--orange); margin-bottom: 12px; }
.lc .bullets { gap: 12px; }
.gl { position: relative; padding: 16px 24px 14px; }
.gl .eyebrow { margin-bottom: 8px; letter-spacing: .18em; }
.pcs { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 16px; }
.hl { position: relative; }
.hl .big small { margin-left: 8px; font-size: 17px; font-weight: 700; }
.sthead { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sthead .hint { font-size: 12.5px; font-weight: 700; color: var(--orange); }
.sgrid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.story { position: relative; padding: 11px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px #dde4ed; }
.story b { font-size: 16px; font-weight: 700; color: var(--navy); }
.story .arrow { color: var(--orange); font-weight: 400; }
.s-school { margin-top: 4px; font-size: 13.8px; font-weight: 700; color: var(--orange); }
.s-note { font-size: 13.8px; color: var(--label); }
.stfoot { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: 13.5px; color: var(--label); }
.stlink { position: relative; font-weight: 700; color: var(--orange); }
.cover-link { position: absolute; inset: 0; z-index: 1; pointer-events: none; }  /* printed as a PDF link; inert in the editor so text stays editable */

.stats { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.stat { position: relative; padding: 4px 20px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 10px; background: var(--orange); border-radius: 2px; }
.stat .v { font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--navy); }
.stat .l { color: var(--label); font-size: 14px; }

.img { margin: 0; }
.pic { position: relative; border-radius: 14px; overflow: hidden; background: var(--card); min-height: 160px; cursor: pointer; }
.pic img { display: block; width: 100%; max-height: 340px; object-fit: cover; }
.pic.empty::after { content: "Add image"; }
.img figcaption { font-size: 12.5px; color: var(--label); margin-top: 8px; }

/* ---------- block controls (screen only) ---------- */
.tb { display: none; position: absolute; right: 0; top: -40px; z-index: 8; gap: 2px; padding: 3px; background: #000; border-radius: 980px; white-space: nowrap; font-family: var(--ui); }
.blk.sel .tb { display: flex; }
.tb button { border: 0; background: none; color: #fff; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 980px; cursor: pointer; }
.tb button:hover { background: rgba(255, 255, 255, .2); }
.tb button.on { background: #fff; color: #000; }
.ctl { position: absolute; display: none; z-index: 6; width: 20px; height: 20px; border-radius: 50%; background: #000; color: #fff; font: 600 14px/20px var(--ui); font-style: normal; text-align: center; cursor: pointer; user-select: none; }
.ctl.add::before { content: "+"; }
.ctl.del::before { content: "\2212"; }
.blk.sel .ctl.add { display: block; right: -34px; bottom: 0; }
.blk.sel .ctl.del { top: -8px; right: -8px; }
.ctl.url { width: auto; padding: 0 9px; border-radius: 10px; font-size: 11px; }
.blk.sel .ctl.url { top: -8px; right: 22px; }
.blk.sel .stlink > .ctl.url { top: -22px; right: 0; }
.blk.sel *:hover > .ctl.url { display: block; }
.blk.sel .pcs > .ctl.add { top: 0; bottom: auto; }
.blk.sel .row > .ctl.del { top: 50%; margin-top: -10px; right: -14px; }
.blk.sel *:hover > .ctl.del { display: block; }
.blk.sel .rows > .ctl.add { right: auto; left: calc(50% - 10px); bottom: -11px; }
.blk.sel .pkgs > .ctl.add, .blk.sel .stats > .ctl.add { top: 0; bottom: auto; }
.blk.sel .bd > .ctl.add { right: auto; left: calc(50% - 10px); bottom: -10px; }

/* ---------- avatars, dialogs, home (editor chrome: black and white) ---------- */
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.sp { flex: 1; }
a.btn { text-decoration: none; display: inline-block; color: inherit; }
.av { display: inline-grid; place-items: center; flex: none; width: var(--s, 32px); height: var(--s, 32px); border-radius: 50%; overflow: hidden; vertical-align: middle; background: var(--fill); font-size: calc(var(--s, 32px) * .58); line-height: 1; }
.av img { display: block; width: 100%; height: 100%; object-fit: cover; }

.nameinput { min-width: 220px; max-width: 360px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; font: 600 15px var(--ui); letter-spacing: -.01em; outline: none; }
.nameinput:hover { background: var(--fill); }
.nameinput[aria-invalid=true] { box-shadow: 0 0 0 2px #000; background: var(--fill); }
.nameinput:focus { background: var(--fill); box-shadow: 0 0 0 2px #000; }
.status { font-size: 12px; color: var(--faint); min-width: 90px; }
.who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); margin-right: 8px; }
.conflict { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; max-width: min(820px, calc(100vw - 32px)); padding: 12px 16px; background: #000; color: #fff; border-radius: 18px; font-size: 13px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
.conflict[hidden] { display: none; }
.conflict .btn { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); white-space: nowrap; }
.conflict .btn.primary { background: #fff; color: #000; box-shadow: none; }
.gone { max-width: 420px; margin: 120px auto; text-align: center; }
.gone h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.02em; }
.gone p { margin: 0 0 20px; color: var(--mute); }

.modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; background: #fff; border-radius: 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, .25); }
.modal h2 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.modal .sub { margin: 0 0 20px; color: var(--mute); font-size: 15px; }
.modal .lbl { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 600; }
.modal input[type=text], .modal input[type=email], .modal input[type=password] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; outline: none; }
.modal input[type=text]:focus, .modal input[type=email]:focus, .modal input[type=password]:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.modal .btn { padding: 10px 18px; font-size: 14px; }
.faint { color: var(--faint); font-weight: 400; }
.av-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.av-opt { padding: 3px; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; line-height: 0; }
.av-opt .av { width: 100%; height: auto; aspect-ratio: 1; }
.av-opt:hover { background: var(--fill); }
.av-opt[aria-checked=true] { border-color: #000; }
.types { display: grid; gap: 10px; }
.type { display: block; width: 100%; padding: 14px 16px; text-align: left; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; }
.type:hover { background: var(--fill); }
.type b { display: block; font-size: 16px; }
.type span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--mute); }
.type[aria-checked=true] { border-color: #000; box-shadow: 0 0 0 1px #000; }
.opt[hidden] { display: none; }
.seg { display: inline-flex; padding: 3px; background: #e8e8ed; border-radius: 10px; }
.seg button { padding: 6px 14px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg button[aria-selected=true] { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

body.home { height: auto; min-height: 100%; }
.who-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px; border: 0; border-radius: 10px; background: none; font-size: 13px; font-weight: 500; cursor: pointer; }
.who-btn:hover { opacity: .65; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 56px 24px 96px; }
.wrap h1 { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.lede { margin: 8px 0 0; font-size: 18px; color: var(--mute); }
.bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 32px 0 20px; }
.bar input { width: 260px; max-width: 100%; padding: 8px 14px; border: 0; border-radius: 10px; background: #e8e8ed; font-size: 14px; outline: none; }
.bar input:focus { box-shadow: 0 0 0 2px #000; background: #fff; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.bcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.bcard:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 12px 32px rgba(0, 0, 0, .1); }
@media (prefers-reduced-motion: no-preference) { .bcard:hover { transform: translateY(-2px); } }
.bcard.add { align-items: center; justify-content: center; gap: 4px; min-height: 250px; border: 0; background: transparent; box-shadow: 0 0 0 1.5px var(--line) inset; color: var(--ink); cursor: pointer; font: inherit; }
.bcard.add:hover { background: #fff; }
.bcard.add .plus { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: #000; color: #fff; font-size: 30px; line-height: 1; padding-bottom: 3px; }
.bcard.add b { font-size: 16px; }
.bcard.add small { color: var(--faint); font-size: 13px; }
.bcard.skel { min-height: 250px; background: #e8e8ed; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) { .bcard.skel { animation: pulse 1.4s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: .5; } }
.thumb { position: relative; display: block; aspect-ratio: 4 / 3; text-decoration: none; color: #fff; background: #1c3a5e; }
.mini { height: 100%; padding: 20px 20px 0; font-family: var(--pt); }
.mini img { height: 26px; display: block; margin-bottom: 26px; }
.mini p { margin: 0 0 6px; font-size: 8.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #9fb3cc; }
.mini h4 { margin: 0; padding-top: 10px; border-top: 1px solid #4b6482; font-size: 18px; font-weight: 700; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge { position: absolute; bottom: 12px; right: 12px; padding: 3px 10px; border-radius: 980px; background: rgba(255, 255, 255, .92); color: #000; font: 600 11px var(--ui); }
.meta { padding: 14px 16px 16px; }
.nm { display: block; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; font-size: 12.5px; color: var(--ink); }
.by .faint { flex-basis: 100%; }
.acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.bcard:hover .acts, .bcard:focus-within .acts { opacity: 1; }
@media (hover: none) { .acts { opacity: 1; } }
.acts button { padding: 4px 10px; border: 0; border-radius: 980px; background: rgba(255, 255, 255, .92); font: 500 11.5px var(--ui); cursor: pointer; }
.acts button:hover { background: #fff; }
.empty, .none { grid-column: 1 / -1; color: var(--mute); }
.empty { padding: 40px 0; text-align: center; }
.empty b { color: var(--ink); font-size: 18px; }
.none { margin: 0; padding: 8px 0; }

/* ---------- sidebar: tabs, block tiles, mentors ---------- */
.tabs { position: sticky; top: 0; z-index: 3; display: flex; gap: 4px; padding: 10px 12px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px 7px; border: 0; border-radius: 10px; background: none; color: var(--mute); font-size: 11px; font-weight: 600; cursor: pointer; }
.tabs button:hover { background: var(--fill); }
.tabs button[aria-selected=true] { background: var(--fill); color: var(--ink); }
[data-i] { display: inline-flex; }
[data-i] svg, .ic svg { display: block; width: 22px; height: 22px; }
[data-pane] { padding-bottom: 32px; }
[data-pane][hidden] { display: none; }
[data-pane] > .field { margin: 14px 16px 0; }
.cap { margin: 12px 16px 4px; font-size: 12px; color: var(--faint); }
.grp { padding: 2px 12px 8px; }
.grp-h { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 4px; border: 0; background: none; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.grp-h svg { width: 12px; height: 12px; transition: transform .15s; }
.grp.shut .grp-h svg { transform: rotate(-90deg); }
.grp.shut .tiles { display: none; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 14px 2px 11px; border: 0; border-radius: 14px; background: var(--fill); color: var(--ink); font-size: 11.5px; font-weight: 500; line-height: 1.1; cursor: grab; }
.tile .ic svg { width: 26px; height: 26px; }
.tile span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:hover { background: #e8e8ed; }
.tile:active { cursor: grabbing; }

.mbar { display: flex; gap: 8px; padding: 12px 12px 0; }
.mbar input { flex: 1; min-width: 0; padding: 8px 12px; border: 0; border-radius: 10px; background: #e8e8ed; font-size: 13px; outline: none; }
.mbar input:focus { box-shadow: 0 0 0 2px #000; background: #fff; }
.mbar .btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; }
.mbar .btn svg { width: 14px; height: 14px; }
#mlist { padding: 0 8px; }
.mrow { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: grab; }
.mrow:hover { background: var(--fill); }
.mph { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #e8e8ed; color: var(--faint); }
.mph img { width: 100%; height: 100%; object-fit: cover; }
.mph svg { width: 20px; height: 20px; }
.mtx { min-width: 0; flex: 1; }
.mtx b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtx small { display: block; font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--mute); cursor: pointer; opacity: 0; }
.mic svg { width: 16px; height: 16px; }
.mrow:hover .mic, .mic:focus-visible { opacity: 1; }
.mic:hover { background: #e8e8ed; color: var(--ink); }
@media (hover: none) { .mic { opacity: 1; } }

.me-top { display: flex; gap: 14px; align-items: flex-end; }
.me-top .grow { flex: 1; }
.me-photo { display: grid; place-items: center; flex: none; width: 76px; height: 76px; padding: 0; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--fill); color: var(--faint); overflow: hidden; cursor: pointer; }
.me-photo svg { width: 24px; height: 24px; }
.me-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 15px/1.45 var(--ui); resize: vertical; outline: none; }
.modal textarea:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.modal .actions .sp { flex: 1; }

/* drag and drop on the page */
.grip { position: absolute; left: -34px; top: 4px; display: grid; place-items: center; width: 24px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--mute); box-shadow: 0 0 0 1px var(--line); cursor: grab; opacity: 0; z-index: 5; }
.grip svg { width: 16px; height: 16px; }
.blk:hover .grip, .blk.sel .grip { opacity: 1; }
.blk.dragging { opacity: .35; }
#dropline { position: fixed; z-index: 70; height: 4px; border-radius: 2px; background: #000; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); pointer-events: none; }
#dropline::before { content: "Drop here"; position: absolute; left: 0; top: -24px; padding: 2px 9px; border-radius: 980px; background: #000; color: #fff; font: 600 11px var(--ui); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
#dropline[hidden] { display: none; }

/* ---------- print: pages only ---------- */
@page { size: letter; margin: 0; }
@media print {
  html, body { height: auto; background: #fff; }
  #top, #side, #stage, #toast, .tb, .ctl, .grip, #dropline { display: none !important; }
  #app { display: block; height: auto; }
  #canvas { overflow: visible; padding: 0; }
  #canvas .page { margin: 0; box-shadow: none; break-after: page; }
  #canvas .page:last-child { break-after: auto; }
  .blk, .blk:hover, .blk.sel { outline: none; }
  .ed, .ed:hover, .ed:focus { background: none; }
  .ed:empty::before, .photo.empty::after, .pic.empty::after, .page.over::after { content: none; }
}

/* ---------- sign in, profile ---------- */
.msg { min-height: 1.4em; margin: 14px 0 0; color: #c5221f; font-size: 13px; }
.link { padding: 0; border: 0; background: none; color: #0066cc; font: inherit; cursor: pointer; }
.modal .pw { margin-top: 18px; font-size: 13px; }
.modal .pw summary { cursor: pointer; font-weight: 600; }
.av-opt[data-photo] { position: relative; }
.av.up { background: var(--fill); }

/* ---------- admin ---------- */
.panel.narrow { max-width: 420px; margin: 8vh auto 0; padding: 28px; background: #fff; border-radius: 24px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.panel .lbl { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 600; }
.panel input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; outline: none; }
.panel input:focus, .addbar input:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.panel .actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.addbar { display: flex; gap: 8px; margin: 28px 0 16px; max-width: 520px; }
.addbar .btn { flex: none; padding: 0 26px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.addbar input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; outline: none; }
.ulist { background: #fff; border-radius: 18px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.urow { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.urow:last-child { border-bottom: 0; }
.who2 { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.who2 b, .who2 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { padding: 3px 10px; border-radius: 980px; background: var(--fill); font-size: 12px; color: var(--mute); white-space: nowrap; }
.pill.on { background: var(--green-bg); color: var(--green); }
.urow .acts { display: flex; gap: 4px; }
.urow .acts button { padding: 6px 10px; border: 0; border-radius: 8px; background: none; font-size: 13px; cursor: pointer; }
.urow .acts button:hover { background: var(--fill); }
.ulist .none { margin: 0; padding: 28px; text-align: center; color: var(--mute); }
@media (max-width: 640px) { .urow { flex-wrap: wrap; } .who2 { flex-basis: 100%; } }
