:root { --pri: #1F2933; --acc: #7C3AED; --font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --r: 12px; --bg: #F6F5FB; --card: #fff; --ink: #1b1f27; --mut: #667085; --line: #E4E2EE; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.4; padding-bottom: 76px; }
a { color: var(--acc); }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: calc(var(--r) * .6); padding: 8px 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--acc) 40%, transparent); border-color: var(--acc); }
input[type=checkbox] { width: auto; }
input[type=color] { padding: 2px; height: 38px; }
h2, h3, h4 { margin: 0 0 8px; }
h4 { margin-top: 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); }
.muted { color: var(--mut); } .small { font-size: 13px; }
.grow { flex: 1; }

.btn { background: var(--acc); color: #fff; border: 0; border-radius: var(--r); padding: 8px 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: transparent; color: var(--pri); border: 1px solid var(--line); background: #fff; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger { background: #c0352b; }
.btn.sammi { background: #fff; color: var(--pri); border: 2px solid var(--acc); }
.badge { background: #e11d48; color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; }
.x { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--mut); cursor: pointer; padding: 0 6px; }

.top { background: var(--pri); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; }
.brandMark { width: 42px; height: 42px; border-radius: 10px; background: var(--acc); display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .03em; }
.brandName { font-weight: 800; font-size: 18px; }
.brandSub { font-size: 12px; opacity: .8; }
.sync { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: #aaa; }
.sync.ok { background: #34d399; } .sync.bad { background: #f87171; }
.topBtns { display: flex; gap: 8px; flex-wrap: wrap; }
.top .btn.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.mic { width: 10px; height: 14px; border: 2px solid currentColor; border-radius: 6px; display: inline-block; position: relative; }
.mic::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 2px; height: 4px; background: currentColor; transform: translateX(-50%); }

.tabs { display: flex; gap: 4px; padding: 8px 18px 0; background: var(--pri); overflow-x: auto; position: sticky; top: 66px; z-index: 19; }
.tabs button { border: 0; background: transparent; color: rgba(255,255,255,.75); padding: 10px 16px; font-weight: 700; border-radius: var(--r) var(--r) 0 0; cursor: pointer; }
.tabs button.on { background: var(--bg); color: var(--pri); }
main { max-width: 1240px; margin: 0 auto; padding: 18px; }
.banner { background: var(--acc); color: #fff; padding: 10px 18px; text-align: center; }
.banner .btn { background: #fff; color: var(--acc); margin-left: 8px; }
.note { background: color-mix(in srgb, var(--acc) 10%, #fff); border: 1px solid color-mix(in srgb, var(--acc) 30%, #fff); padding: 10px 14px; border-radius: var(--r); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.card.hot { border: 2px solid var(--acc); }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-align: center; }
.kpi b { display: block; font-size: 26px; color: var(--pri); }
.kpi span { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.listRow, .inboxRow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.listRow:first-of-type { border-top: 0; }
.rowBtns { display: flex; gap: 6px; align-items: center; }
.rowBtns.wrap { flex-wrap: wrap; }
.quote { border-left: 3px solid var(--acc); padding: 4px 10px; margin: 6px 0; color: #374151; background: #faf9ff; white-space: pre-wrap; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef0f4; color: #374151; }
.st-todo { background: #eef0f4; color: #475467; }
.st-emailed { background: #e0ecff; color: #1e40af; }
.st-replied { background: #ede9fe; color: #5b21b6; }
.st-call { background: #fef3c7; color: #92400e; }
.st-camp { background: #ffedd5; color: #9a3412; }
.st-offer { background: #dcfce7; color: #166534; }
.st-committed { background: #166534; color: #fff; }
.st-no { background: #f3f4f6; color: #9ca3af; }
.sectionTitle { margin: 6px 0 10px; }
.playerCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.pCard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pCardTop { display: flex; gap: 10px; align-items: center; }
.addCard { border: 2px dashed var(--line); background: transparent; justify-content: center; align-items: center; font-weight: 700; color: var(--mut); cursor: pointer; min-height: 160px; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; object-fit: cover; flex: none; }
.av.big { width: 64px; height: 64px; font-size: 22px; }
.pipe { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.pipeCell { border-radius: 6px; padding: 5px 2px; text-align: center; }
.pipeCell b { display: block; font-size: 17px; }
.pipeCell span { font-size: 9.5px; line-height: 1.1; display: block; }
.late { color: #c0352b; font-weight: 700; } .soon { color: #b45309; font-weight: 700; }

.split { display: grid; grid-template-columns: 270px 1fr; gap: 16px; align-items: start; }
.side { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 130px; }
.side label { font-size: 13px; color: var(--mut); display: flex; flex-direction: column; gap: 3px; }
.sideHead { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.sideItem { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid transparent; background: transparent; padding: 7px; border-radius: var(--r); cursor: pointer; width: 100%; }
.sideItem span { display: flex; flex-direction: column; }
.sideItem small { color: var(--mut); }
.sideItem.on, .sideItem:hover { background: color-mix(in srgb, var(--acc) 9%, #fff); border-color: color-mix(in srgb, var(--acc) 25%, #fff); }
.editor { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.edHead { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; align-content: flex-start; }
fieldset.wide { grid-column: 1 / -1; }
legend { font-weight: 800; padding: 0 6px; color: var(--pri); }
fieldset label { flex: 1 1 180px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--mut); }
fieldset label.short { flex: 0 1 110px; }
fieldset label.full { flex: 1 1 100%; }
fieldset label.chk { flex: 1 1 100%; flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.statRows { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; width: 100%; }
.statRow { display: flex; gap: 6px; align-items: center; }
.statRow input:first-child { flex: 1.3; } .statRow input:nth-child(2) { flex: 1; }
.statRow.film { grid-column: 1 / -1; } .statRow.film input:nth-child(2) { flex: 2.5; }
.photoPick { flex-direction: row !important; align-items: center; gap: 8px !important; }
.photoPick input { width: auto; border: 0; padding: 0; }
.empty { text-align: center; padding: 40px; }

.toolbar { display: flex; gap: 10px; align-items: end; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar label { display: flex; flex-direction: column; font-size: 13px; color: var(--mut); min-width: 220px; }
.addCollege { display: grid; grid-template-columns: 1.1fr 1.5fr .9fr 1fr 1.3fr auto; gap: 8px; }
.tableCard { padding: 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfaff; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stSel { font-weight: 700; border: 0; border-radius: 99px; padding: 4px 8px; width: auto; }

.emailCard { display: flex; flex-direction: column; gap: 10px; }
.emRow { display: flex; gap: 10px; align-items: center; }
.emRow > span { width: 64px; color: var(--mut); font-size: 13px; flex: none; }
#emBody { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.5; }

.replyForm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.replyForm label { display: flex; flex-direction: column; font-size: 13px; color: var(--mut); gap: 3px; }
.replyForm .full { grid-column: 1 / -1; }
.replyForm .btn { grid-column: 1 / -1; justify-self: start; }
.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.tlDate { font-weight: 700; color: var(--mut); }
.hist { list-style: none; padding: 0; margin: 0; max-height: 160px; overflow: auto; font-size: 13px; }
.hist li { padding: 3px 0; } .hist span { color: var(--mut); display: inline-block; width: 56px; }

.cmdBar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 18px; display: flex; gap: 8px; z-index: 25; }
.modalWrap { position: fixed; inset: 0; background: rgba(15, 17, 26, .55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow: auto; }
.modal { background: #fff; border-radius: calc(var(--r) + 4px); padding: 22px; width: 100%; max-width: 620px; position: relative; }
.modal.wide { max-width: 940px; background: var(--bg); }
.modalX { position: absolute; right: 12px; top: 8px; border: 0; background: transparent; font-size: 28px; cursor: pointer; color: var(--mut); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--mut); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.staffRow { grid-template-columns: 1fr 1fr auto; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.logoPrev { height: 40px; vertical-align: middle; }
.linkBox { display: flex; gap: 8px; margin-bottom: 12px; }
.linkRow { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.linkRow span { flex: 1; }
.qrBig { display: flex; justify-content: center; margin: 10px 0; }
.qrBig svg { width: 200px; height: 200px; }
.previewBar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 30px 12px 0; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 40; box-shadow: -10px 0 40px rgba(0,0,0,.18); padding: 16px; overflow: auto; }
.drawerHead { display: flex; justify-content: space-between; align-items: center; font-size: 18px; position: relative; min-height: 34px; }
.sammiTop { display: flex; gap: 12px; align-items: center; background: color-mix(in srgb, var(--acc) 8%, #fff); border-radius: var(--r); padding: 10px; margin: 8px 0; }
.sammiTop p { margin: 4px 0; }
.sammiQr { flex: none; background: #fff; border-radius: 8px; }
.sq { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; margin-bottom: 10px; }
.sqTo { font-weight: 800; color: var(--pri); }
.sqText { white-space: pre-wrap; margin: 6px 0 8px; font-size: 14px; }

.toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); background: var(--pri); color: #fff; padding: 10px 18px; border-radius: 99px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 90vw; text-align: center; }
.listening { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); background: #fff; border: 2px solid var(--acc); border-radius: var(--r); padding: 12px 16px; z-index: 61; display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.2); max-width: 92vw; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: #e11d48; animation: pu 1s infinite; flex: none; }
@keyframes pu { 50% { transform: scale(1.5); opacity: .5; } }

/* ---------- Profile (shared by preview and public page) ---------- */
.pfWrap { max-width: 900px; margin: 0 auto; }
.pf { font-family: var(--font); color: var(--ink); }
.pfHead { background: var(--pri); color: #fff; border-radius: var(--r); padding: 22px; display: flex; gap: 20px; align-items: center; position: relative; overflow: hidden; }
.pfHead::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--acc); opacity: .35; }
.pfPhoto { width: 120px; height: 120px; border-radius: var(--r); object-fit: cover; border: 3px solid #fff; flex: none; position: relative; z-index: 1; }
.pfInitials { background: var(--acc); display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #fff; }
.pfWho { position: relative; z-index: 1; flex: 1; min-width: 0; }
.pfTag { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; opacity: .85; }
.pfName { font-size: 34px; margin: 4px 0; line-height: 1.1; color: #fff; }
.pfNum { opacity: .7; font-weight: 600; }
.pfLine { font-size: 16px; opacity: .92; }
.pfLogo { position: absolute; right: 0; top: 0; height: 64px; background: #fff; border-radius: 10px; padding: 4px; }
.pfGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.pfBox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-top: 14px; }
.pfGrid .pfBox { margin-top: 0; }
.pfBox h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--pri); border-bottom: 3px solid var(--acc); display: inline-block; padding-bottom: 3px; margin-bottom: 12px; }
.pfBox h2 small { text-transform: none; letter-spacing: 0; color: var(--mut); font-weight: 500; }
.pfFacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.pfFacts dt { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.pfFacts dd { margin: 0; font-weight: 700; }
.pfStats { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pfStat { background: color-mix(in srgb, var(--acc) 8%, #fff); border-radius: calc(var(--r) * .7); padding: 10px 6px; text-align: center; }
.pfStat b { display: block; font-size: 22px; color: var(--pri); }
.pfStat span { font-size: 12px; color: var(--mut); }
.pfVideo { position: relative; padding-top: 56.25%; border-radius: var(--r); overflow: hidden; margin-bottom: 10px; background: #000; }
.pfVideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pfFilm { margin: 0; padding-left: 18px; } .pfFilm li { margin: 4px 0; } .pfFilm span { color: var(--mut); font-size: 13px; }
.pfText { white-space: pre-wrap; margin: 0; }
.pfMuted { color: var(--mut); }
.pfContactGrid { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.pfContactGrid > div { flex: 1 1 200px; }
.pfLabel { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.pfStrong { font-weight: 800; font-size: 17px; }
.pfQr { flex: 0 0 110px !important; }
.pfForm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pfForm textarea, .pfForm select, .pfForm .pfBtn, .pfForm .pfMsg { grid-column: 1 / -1; }
.pfForm .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.pfBtn { background: var(--acc); color: #fff; border: 0; border-radius: var(--r); padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.pfBtn.ghost { background: #fff; color: var(--pri); border: 1px solid var(--line); }
.pfThanks { font-weight: 700; color: #166534; }
.pfFoot { text-align: center; color: var(--mut); font-size: 12px; padding: 18px; }
.profilePage { padding: 18px 12px 40px; }
.pfTools { max-width: 900px; margin: 0 auto 12px; display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .cols2, .split, .formGrid, .pfGrid { grid-template-columns: 1fr; }
  .side { position: static; }
  .addCollege { grid-template-columns: 1fr 1fr; }
  .replyForm { grid-template-columns: 1fr 1fr; }
  .tabs { top: 0; position: relative; }
  .top { position: relative; }
  .lbl { display: none; }
}
@media (max-width: 560px) {
  .pfHead { flex-direction: column; text-align: center; }
  .pfName { font-size: 28px; }
  .pfLogo { display: none; }
  .pfFacts, .pfForm, .two { grid-template-columns: 1fr; }
  .pipe span { display: none; }
  main { padding: 12px; }
}
@media print {
  body { background: #fff; padding: 0; }
  .top, .tabs, .cmdBar, .banner, .pfTools, .pfInterest, .toast, .drawer, .legal-footer, #legal-notice { display: none !important; }
  body.printing > *:not(#modal) { display: none !important; }
  body.printing .modalWrap { position: static; background: none; padding: 0; }
  body.printing .modal { box-shadow: none; padding: 0; background: #fff; }
  body.printing .previewBar, body.printing .modalX, body.printing .pfInterest { display: none; }
  .pfVideo { display: none; }
  .pfHead, .pfStat, .pfInitials { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pfBox { break-inside: avoid; }
}
