/* DTN Paper Planner — Blueline Timanager look */
:root {
  --teal: #13806b; --teal2: #e3f1ed; --ink: #22262b; --ink2: #5b6470; --muted: #9097a1;
  --line: #d4d8de; --line2: #e7e9ed; --band: #eceef5; --paper: #ffffff; --paper2: #f4f5f7; --cover: #1d1e20;
  --green: #2f7d4f; --green2: #e4f2e9; --amber: #a86a12; --amber2: #fbf0dc; --red: #b23b3b; --red2: #fbeaea;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #2a2b2e; font-size: 15px; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4 { font-family: "Roboto Condensed", "Arial Narrow", sans-serif; font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.sp { flex: 1; }
.muted { color: var(--muted); } .small { font-size: 13px; } .pad { padding: 18px; }
.red { color: var(--red); }

/* form controls (used in sheets, settings, auth) */
.in, .form input:not([type=checkbox]), .form select, .form textarea, .auth-card input, .auth-card select,
.sheet input:not([type=checkbox]), .sheet select, .sheet textarea, .ov input:not([type=checkbox]) {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 16px; min-height: 42px;
}
textarea { resize: vertical; line-height: 1.45; }
.in:focus, .form input:focus, .form select:focus, .form textarea:focus, .auth-card input:focus, .sheet input:focus, .sheet select:focus, .sheet textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; border-color: transparent; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 12px; }
label > input, label > select, label > textarea { margin-top: 5px; color: var(--ink); font-weight: 400; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--teal); }
.btn.danger { color: var(--red); border-color: #e7c4c4; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn.block { width: 100%; margin-top: 8px; }
.link { background: none; border: 0; color: var(--teal); padding: 6px 0; font-size: 14px; }
.icon-btn { background: #fff; border: 1px solid var(--line); border-radius: 8px; min-width: 34px; min-height: 34px; color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px; }
.pill2 { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--teal2); color: var(--teal); vertical-align: middle; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tag.ok { background: var(--green2); color: var(--green); } .tag.wait { background: var(--amber2); color: var(--amber); } .tag.off { background: #eee; color: #777; }

/* auth */
.center-screen { min-height: 100%; display: flex; align-items: center; justify-content: center; color: #cfd3d8; }
.auth { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 28px 16px; background: radial-gradient(circle at 30% 20%, #34363a, #1a1b1d); }
.card { background: #fff; border-radius: 14px; padding: 18px; }
.auth-card { width: 100%; max-width: 420px; padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.brand { font-size: 28px; margin: 0 0 18px; color: var(--ink); }
.brand span { color: var(--teal); font-weight: 400; font-style: italic; }
.tabs { display: flex; gap: 4px; background: var(--paper2); padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.tab { flex: 1; border: 0; background: none; padding: 10px; border-radius: 8px; font-weight: 600; color: var(--ink2); }
.tab.active { background: var(--teal); color: #fff; }
.msg { min-height: 20px; font-size: 14px; color: var(--teal); margin: 12px 0 0; }

/* shell */
.app { display: flex; flex-direction: column; height: 100%; }
.top { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--cover); color: #e8eaed; border-bottom: 1px solid #000; flex: none; }
.year { border: 0; background: transparent; font-family: "Roboto Condensed", sans-serif; font-size: 24px; font-weight: 700; color: #fff; padding: 2px 4px; }
.year span { font-size: 13px; color: #9aa0a6; }
.pill { display: flex; background: #2c2e31; border: 1px solid #3a3d41; border-radius: 999px; overflow: hidden; }
.pill button { border: 0; background: transparent; color: #cfd3d8; padding: 8px 13px; font-size: 14px; font-weight: 500; white-space: nowrap; position: relative; }
.pill button.active { background: var(--teal); color: #fff; }
.datenav { display: flex; align-items: center; gap: 4px; }
.arrow { border: 0; background: transparent; color: #e8eaed; font-size: 24px; width: 34px; height: 34px; line-height: 1; }
.todaybtn { border: 1px solid #3a3d41; background: #2c2e31; color: #7fd6c2; border-radius: 999px; padding: 7px 16px; font-weight: 600; }
.me { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; font-weight: 700; flex: none; }
.badge { display: inline-block; background: var(--red); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; min-width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 99px; padding: 0 4px; margin-left: 5px; }
.stage { flex: 1; display: flex; min-height: 0; }
main { flex: 1; overflow: auto; padding: 16px 10px 24px 16px; -webkit-overflow-scrolling: touch; background: radial-gradient(circle at 20% 10%, #303235, #1c1d1f 70%); }
.mtabs { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 0; width: 42px; flex: none; background: #1c1d1f; }
.mtab { border: 0; border-radius: 0 7px 7px 0; font-size: 10px; letter-spacing: .06em; font-weight: 700; color: #4a4f57; padding: 12px 0; width: 34px; }
.mtab.on { color: var(--teal); width: 42px; box-shadow: 0 0 0 1px #ddd; }
.bottomnav { display: none; }
#status { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); background: #111; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 60; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
#status.show { opacity: .95; }
.menu { position: fixed; right: 14px; top: 54px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.35); width: 280px; z-index: 45; padding: 8px; }
.menu .who { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu .who b { display: block; } .menu .who span { font-size: 13px; color: var(--ink2); word-break: break-all; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; }
.menu button:hover { background: var(--paper2); }

/* the book */
.book { display: flex; justify-content: center; min-width: 1060px; max-width: 1700px; margin: 0 auto; position: relative; }
.book .page { background: var(--paper); display: flex; flex: 1; min-width: 0; box-shadow: 0 6px 24px rgba(0,0,0,.45); padding: 14px 10px 18px; }
.book .page.left { border-radius: 6px 0 0 6px; padding-right: 16px; background: linear-gradient(90deg, #fff 96%, #eef0f2); }
.book .page.right { border-radius: 0 6px 6px 0; padding-left: 16px; background: linear-gradient(270deg, #fff 96%, #eef0f2); }
.book:not(.single)::after { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 34px; transform: translateX(-50%); pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 10px, #9ea3aa 10px 13px, #5e636a 13px 15px, transparent 15px 17px, #9ea3aa 17px 20px, #5e636a 20px 22px, transparent 22px 34px);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 30%, #000 70%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 30%, #000 70%, transparent 100%); }
.book.single { min-width: 0; max-width: 1400px; }
.book.single .page { border-radius: 6px; }
.page.col { flex-direction: column; padding: 22px 26px; }

/* sidebar */
.sb { width: 178px; flex: none; padding: 0 10px 0 2px; display: flex; flex-direction: column; }
.minical { font-size: 11px; font-family: "Roboto Condensed", sans-serif; }
.minical .mt { color: var(--teal); font-size: 16px; text-align: center; margin-bottom: 4px; }
.minical .mg { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; row-gap: 2px; }
.minical b { font-weight: 400; color: var(--ink2); }
.minical span { line-height: 17px; cursor: pointer; color: var(--ink); }
.minical span.w { background: var(--band); }
.minical span.t { color: #fff; background: var(--teal); border-radius: 2px; font-weight: 700; }
.sbh { background: var(--band); color: var(--teal); font-family: "Roboto Condensed", sans-serif; font-size: 15px; text-align: center; padding: 5px 0; margin: 18px 0 4px; border-radius: 2px; }
.ln { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--line2); background: transparent; font-size: 13px; padding: 4px 2px; color: var(--ink); border-radius: 0; }
.ln:focus { outline: none; border-bottom-color: var(--teal); background: #f6fbfa; }

/* day columns */
.dc { flex: 1; min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line2); }
.dh { display: flex; gap: 6px; align-items: flex-start; padding: 2px 6px 0; min-height: 68px; cursor: pointer; }
.dnum { font-family: "Roboto Condensed", sans-serif; font-size: 46px; line-height: .95; color: var(--teal); }
.dmeta { padding-top: 3px; line-height: 1.15; }
.dname { font-family: "Roboto Condensed", sans-serif; font-size: 16px; }
.dsub { font-size: 10.5px; color: var(--ink2); }
.tdy { font-size: 10px; letter-spacing: .14em; font-weight: 700; color: var(--teal); margin-top: 2px; }
.dc.today .dh { background: var(--teal2); }
.chips { min-height: 20px; padding: 2px 6px; display: flex; flex-wrap: wrap; gap: 3px; }
.chip2 { font-size: 10px; background: var(--band); color: var(--ink2); padding: 1px 6px; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-decoration: none; border: 0; }
.chip2.hol { background: var(--teal); color: #fff; }
.chip2.fu { background: var(--amber2); color: var(--amber); cursor: pointer; }
.pri { background: var(--band); padding: 4px 6px 6px; min-height: 92px; margin-right: 1px; }
.plab { font-family: "Roboto Condensed", sans-serif; color: var(--teal); font-size: 15px; margin-bottom: 1px; }
.pri .ln { border-bottom-color: #d8dbe5; font-size: 12.5px; padding: 3px 1px; }
.pri .pr { display: flex; align-items: center; gap: 4px; }
.pri .pr input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--teal); margin: 0; flex: none; }
.pri .pr.done .ln { text-decoration: line-through; color: var(--muted); }
.slots { margin-top: 6px; border-top: 1px solid var(--line); }
.slots .r { height: 25px; border-bottom: 1px solid var(--line2); position: relative; display: flex; align-items: stretch; }
.slots .r.b { border-bottom: 1px solid var(--line); }
.slots .r.now { box-shadow: inset 3px 0 0 var(--teal); background: #f6fbfa; }
.tl { width: 20px; flex: none; padding: 5px 0 0 3px; font-size: 11px; color: var(--ink); font-family: "Roboto Condensed", sans-serif; }
.slots .r.b .tl { font-size: 9px; color: var(--muted); padding-top: 7px; }
.slots .r input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 12px; padding: 0 3px; }
.slots .r input:focus { outline: none; background: #f3faf8; box-shadow: inset 0 -2px 0 var(--teal); }
.blk { flex: 1; min-width: 0; margin: 1px 2px 1px 0; background: #dfe3ea; border-left: 3px solid #2557a7; border-radius: 2px; padding: 3px 4px; font-size: 11.5px; line-height: 1.2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #1f2a3a; text-decoration: none; }
.blk b { font-weight: 400; color: #33415a; margin-right: 2px; }
.tocal { border: 0; background: transparent; color: var(--muted); font-size: 11px; padding: 0 4px; opacity: 0; }
.slots .r:hover .tocal, .slots .r input:focus + .tocal { opacity: 1; }
.sunmini { padding: 14px 6px 0; }
.dayside { width: 330px; flex: none; padding: 0 6px 0 16px; }
.dayside .sbh:first-child { margin-top: 0; }

/* follow-ups + counters (Day page) */
.fu-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; border-bottom: 1px solid var(--line2); padding: 3px 0; }
.fu-row.over .fu-name small { color: var(--red); }
.fu-name { background: none; border: 0; text-align: left; padding: 4px 0; min-width: 0; flex: 1; }
.fu-name b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-name small { color: var(--muted); font-size: 12px; }
.fu-acts { display: flex; gap: 4px; }
.fu-group { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 2px; }
.counter { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line2); font-size: 14px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 17px; line-height: 1; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-family: "Roboto Condensed", sans-serif; font-size: 18px; color: var(--teal); }
.dayside textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line2); background: repeating-linear-gradient(180deg, transparent 0 23px, var(--line2) 23px 24px); line-height: 24px; font-size: 13.5px; padding: 0 2px; min-height: 120px; }
.dayside textarea:focus { outline: none; }

/* month */
.mhead { display: flex; align-items: baseline; gap: 16px; }
.mhead h1 { font-weight: 400; color: var(--teal); font-size: 36px; margin: 0 0 12px; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mh2 { font-family: "Roboto Condensed", sans-serif; color: var(--teal); font-size: 15px; padding: 6px 8px; background: var(--band); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mc { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 6px; cursor: pointer; overflow: hidden; }
.mc.out { color: #c2c6cc; } .mc.today { background: var(--teal2); }
.mct { display: flex; align-items: baseline; gap: 6px; }
.dn3 { font-family: "Roboto Condensed", sans-serif; font-size: 24px; color: var(--teal); }
.mc.out .dn3 { color: #c2c6cc; }
.wkn { margin-left: auto; font-size: 10px; color: var(--muted); }
.mev2 { font-size: 11px; background: #dfe3ea; border-left: 3px solid #2557a7; padding: 1px 4px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mev2.p { background: var(--band); border-left-color: var(--teal); }
.mev2.fu { background: var(--amber2); border-left-color: var(--amber); }
.mev2.more { background: none; border: 0; color: var(--muted); }

/* worksheets (Top 100 / Top 25) */
.wshead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wshead h1 { font-size: 34px; margin: 0; letter-spacing: .01em; }
.wssub { font-family: "Roboto Condensed", sans-serif; font-style: italic; font-size: 19px; color: var(--teal); }
.wstools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 0 12px; }
.wstools input[type=search] { width: 240px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.sortsel { width: auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; }
.chip.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip b { font-weight: 700; opacity: .6; margin-left: 2px; }
.chip-due:not(.active) { border-color: var(--red); color: var(--red); }
.counts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); margin-top: 8px; }
.counts b { font-family: "Roboto Condensed", sans-serif; font-size: 20px; color: var(--teal); margin-right: 3px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ws { border-collapse: collapse; width: 100%; min-width: 900px; border: 2px solid var(--ink); }
table.ws th { font-weight: 500; font-size: 14px; background: var(--band); border: 1px solid #b9bec7; border-bottom: 2px solid var(--ink); padding: 9px 6px; text-align: left; }
table.ws td { border: 1px solid #c9cdd4; padding: 0 4px; height: 36px; }
table.ws td.n { width: 34px; font-size: 12px; color: var(--ink2); }
table.ws tr.due td { background: #fdf6e6; } table.ws tr.over td { background: var(--red2); }
table.ws input.cell { width: 100%; border: 0; background: transparent; padding: 7px 3px; font-size: 14.5px; }
table.ws input.cell:focus { outline: none; background: #f3faf8; box-shadow: inset 0 -2px 0 var(--teal); }
table.ws input[type=date] { border: 0; background: transparent; font-size: 13.5px; width: 100%; padding: 6px 2px; }
table.ws select { border: 0; background: transparent; font-size: 13.5px; font-weight: 600; width: 100%; padding: 6px 2px; }
table.ws .c { text-align: center; }
.cname { background: none; border: 0; text-align: left; padding: 6px 2px; width: 100%; font-size: 14.5px; font-weight: 600; }
.cname small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.macho { display: flex; gap: 2px; justify-content: center; }
.macho button { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid transparent; background: transparent; font-size: 12.5px; color: var(--ink2); padding: 0; }
.macho button.on { border-color: var(--teal); color: var(--teal); font-weight: 700; }
.star { border: 0; background: transparent; font-size: 19px; color: #c9cdd4; padding: 0 4px; line-height: 1; }
.star.on { color: #d9a400; }
.acts { display: flex; gap: 4px; justify-content: flex-end; white-space: nowrap; }
.st-contacted { color: #2557a7; } .st-appt { color: var(--amber); } .st-presented, .st-kitchen { color: #6b3fa0; }
.st-appsub, .st-recruited, .st-client { color: var(--green); } .st-notnow { color: var(--muted); }
.empty { padding: 40px 18px; text-align: center; color: var(--muted); }

/* promotions / goals / team / settings (sheet card on the cover) */
.wsheet { background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.45); max-width: 1240px; margin: 0 auto 16px; }
.sheet-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 22px 12px; border-bottom: 1px solid var(--line); }
.sheet-h h2 { font-size: 30px; margin: 0; min-width: 160px; }
.seg { display: inline-flex; background: var(--paper2); border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--ink2); }
.seg button.on { background: var(--teal); color: #fff; }
table.grid { border-collapse: collapse; width: 100%; min-width: 720px; }
table.grid th { font-size: 13px; font-weight: 500; text-align: left; padding: 9px 8px; border-bottom: 2px solid var(--ink); background: var(--band); white-space: nowrap; }
table.grid td { border-bottom: 1px solid var(--line2); padding: 3px 6px; vertical-align: middle; }
table.grid input.cell { width: 100%; border: 0; background: transparent; padding: 8px 4px; font-size: 15px; border-radius: 4px; }
table.grid input.cell:focus { outline: none; background: #f3faf8; box-shadow: inset 0 -2px 0 var(--teal); }
table.grid input[type=checkbox] { width: 21px; height: 21px; accent-color: var(--teal); }
table.grid tr.past td { opacity: .45; }
.del { border: 0; background: transparent; color: var(--muted); font-size: 18px; padding: 2px 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; padding: 16px 22px; }
.pc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.pc .k { font-size: 12px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; }
.pc .v { font-family: "Roboto Condensed", sans-serif; font-size: 28px; margin: 6px 0 8px; color: var(--teal); }
.pc .v small { font-family: Inter, sans-serif; font-size: 13px; color: var(--muted); font-weight: 500; }
.bar { height: 8px; background: var(--paper2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.pc.ok { border-color: var(--green); } .pc.ok .bar i { background: var(--green); } .pc.ok .v { color: var(--green); }
.reached { margin: 0 22px 4px; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.reached.yes { background: var(--green2); color: var(--green); } .reached.no { background: var(--amber2); color: var(--amber); }
.rule { color: var(--ink2); font-size: 13.5px; padding: 0 22px 4px; line-height: 1.5; }
.sec { padding: 16px 22px 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec h3 { margin: 0; font-size: 19px; flex: 1; color: var(--teal); font-weight: 400; }
.body { padding: 16px 22px; }
.goal { display: grid; grid-template-columns: 220px 120px 1fr; gap: 16px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.goal input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.goal span { font-size: 14px; color: var(--ink2); }
.pipe { display: grid; grid-template-columns: 150px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; padding: 3px 0; }
.team-table .tr { display: grid; grid-template-columns: 2fr repeat(5, 1fr) 0.8fr 1.6fr 0.7fr; gap: 8px; padding: 10px 22px; border-top: 1px solid var(--line2); align-items: center; }
.team-table .th { font-size: 12px; color: var(--ink2); background: var(--band); border-top: 0; }
.form { padding: 16px 22px; max-width: 640px; }
.form .btn { margin: 4px 8px 4px 0; }

/* contact sheet (modal) */
.modal { position: fixed; inset: 0; background: rgba(10,12,14,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .modal { align-items: center; } }
.sheet { background: #fff; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; border-radius: 14px 14px 0 0; padding: 18px 18px calc(18px + var(--safe-b)); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
@media (min-width: 700px) { .sheet { border-radius: 14px; } }
.sheet h2 { margin: 0; color: var(--teal); font-weight: 400; font-size: 24px; }
body.noscroll { overflow: hidden; }
.sheet-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet .sheet-name { font-family: "Roboto Condensed", sans-serif; font-size: 24px !important; font-weight: 700; border-color: transparent !important; padding-left: 0 !important; color: var(--teal); }
.sheet-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.outcome { background: var(--amber2); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.outcome-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 500px) { .sheet-grid { grid-template-columns: 1fr; } }
.log h3 { color: var(--teal); font-weight: 400; font-size: 18px; margin: 8px 0; }
.log-add { display: flex; gap: 8px; margin-bottom: 8px; }
.log-row { font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line2); }
.log-row span { display: inline-block; min-width: 92px; color: var(--muted); font-size: 13px; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }

/* responsive */
@media (max-width: 1180px) { .pill button { padding: 8px 9px; font-size: 13px; } }
@media (max-width: 1100px) { .mtabs { display: none; } main { padding: 12px; } }
@media (max-width: 900px) {
  .dayside { width: auto; padding: 14px 0 0; }
  .book.single .page:not(.col) { flex-wrap: wrap; }
  .book.single .sb { display: none; }
  .goal { grid-template-columns: 1fr 100px; } .goal > div { grid-column: 1 / -1; }
  .team-table .th { display: none; }
  .team-table .tr { grid-template-columns: 1fr 1fr 1fr; padding: 10px 14px; }
  .team-table .tr > span:first-child { grid-column: 1 / -1; }
  .team-table .tr > span[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); }
}
@media (max-width: 760px) {
  .pill, .year { display: none; }
  main { padding: 8px 6px calc(74px + var(--safe-b)); }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--cover); border-top: 1px solid #000; padding: 6px 2px calc(6px + var(--safe-b)); z-index: 30; }
  .bottomnav button { flex: 1; border: 0; background: transparent; font-size: 12px; font-weight: 600; color: #aab0b7; padding: 8px 2px; white-space: nowrap; }
  .bottomnav button.active { color: #7fd6c2; }
  #status { bottom: calc(80px + var(--safe-b)); }
  .page.col { padding: 14px 10px; }
  .wshead h1 { font-size: 24px; }
  .mc { min-height: 62px; padding: 2px; } .mev2 { display: none; } .dn3 { font-size: 17px; }
  .sheet-h, .rule, .sec, .cards, .body, .form { padding-left: 14px; padding-right: 14px; }
  .reached { margin: 0 14px 4px; }
}

/* schedules toggle bar */
.ovbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 1700px; margin: 0 auto 10px; }
.ovlab { color: #9aa0a6; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.ovchip { --c: #13806b; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #3a3d41; background: #2c2e31; color: #9aa0a6; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.ovchip i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); }
.ovchip.on { color: #fff; border-color: var(--c); }
.ovchip.on i { background: var(--c); }
.ovchip.add { color: #7fd6c2; border-style: dashed; }
.form .ovchip { background: #fff; color: var(--ink2); border-color: var(--line); }
.form .ovchip.on { color: var(--ink); border-color: var(--c); }
.ovrow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.ckrow { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); margin: 6px 0; }
.ckrow input { width: 18px; height: 18px; accent-color: var(--teal); }
.ckrow i { width: 12px; height: 12px; border-radius: 3px; }
.slots .r .blk + input, .slots .r .blk + .blk + input { flex: 0 0 22%; }
.slots .r .blk { flex: 1 1 auto; }

/* board + service */
.boardwrap { max-width: 1500px; }
.boardframe { display: block; width: 100%; height: calc(100vh - 190px); min-height: 520px; border: 0; border-top: 1px solid var(--line); }
.svcform { max-width: 720px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.feebox { min-height: 10px; margin: 4px 0 12px; }
.feebox .ckrow { background: var(--amber2); color: var(--amber); padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.team-table .tr.off { opacity: .55; }

/* Calendar / Lists sub-tabs */
.subtabs{display:flex;gap:6px;justify-content:center;padding:8px 10px 4px}
.subtabs button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:999px;padding:6px 16px;font:inherit;font-weight:600;cursor:pointer;position:relative}
.subtabs button.on{background:var(--teal);border-color:var(--teal);color:#fff}

.fc-lib{background:#fff;color:var(--ink);border-radius:8px;box-shadow:0 6px 24px rgba(0,0,0,.45);margin-top:16px}
.subtabs{position:sticky;top:0;z-index:6;background:transparent}

/* training */
.trainwrap { max-width: 1100px; overflow: hidden; }
.trainframe { border-top: 0; height: calc(100vh - 120px); }
