/* Device mock-ups. Each screen is drawn at real size (1280 x 800 desktop, 390 x 820 phone) and zoomed by fit.js. */
.mock.dk, .mock.ph { display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.4; background: #fff; color: #111517; }
.mock .screen-body { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.mock svg.ic { display: inline-block; vertical-align: middle; flex: none; }
.browser { height: 40px; flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: #e8ebed; border-bottom: 1px solid #d3d8db; }
.browser .dots { display: flex; gap: 8px; }
.browser .dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.browser .dots i + i { background: #febc2e; }
.browser .dots i + i + i { background: #28c840; }
.browser .url { flex: 0 1 520px; margin: 0 auto; transform: translateX(-40px); height: 26px; border-radius: 8px; background: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #5b666b; font-size: 13px; }
.ph .status { height: 50px; flex: none; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 32px 6px 40px; font-weight: 600; font-size: 15px; background: var(--sb-bg); color: var(--sb-fg); }
.ph .status .sig { display: flex; align-items: flex-end; gap: 2px; }
.ph .status .sig i { width: 3px; background: currentColor; border-radius: 1px; height: 6px; }
.ph .status .sig i + i { height: 9px; }
.ph .status .sig i + i + i { height: 12px; }
.ph .status .sig b { width: 24px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; margin-left: 6px; background: linear-gradient(90deg, currentColor 70%, transparent 70%); background-clip: content-box; padding: 1px; }

/* ---------- Tagatron ---------- */
.tg { --c: #2dd4ee; --c2: #6cebfb; --line: #28323f; --p: #121821; --p2: #1a2230; --s1: #dbe4ee; --s3: #9aabbe; --s4: #788a9e; --s5: #5b6b7d;
  --disp: "Chakra Petch", "Avenir Next Condensed", "DIN Alternate", ui-monospace, Menlo, monospace; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  height: 100%; display: flex; color: var(--s1); font-size: 14px;
  background: radial-gradient(circle at 100% 0, rgba(45,212,238,.1), transparent 40%), radial-gradient(circle at 0 0, rgba(239,65,54,.07), transparent 35%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 30px 30px, linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 30px 30px, #0a0d12; }
.tg-side { width: 224px; flex: none; display: flex; flex-direction: column; background: rgba(18,24,33,.7); border-right: 1px solid var(--line); }
.tg-brand { display: flex; align-items: center; gap: 10px; padding: 20px 16px; }
.tg-brand img { filter: drop-shadow(0 0 6px rgba(45,212,238,.5)); border-radius: 8px; }
.tg-word { font-family: var(--disp); font-weight: 700; font-size: 18px; letter-spacing: .2em; color: #eef3f8; text-shadow: 0 0 10px rgba(45,212,238,.35); }
.tg-sub { font: 9px var(--mono); letter-spacing: .14em; color: var(--s4); margin-top: 2px; }
.tg-rule { height: 1px; margin: 0 16px 12px; background: linear-gradient(90deg, transparent, var(--c), transparent); box-shadow: 0 0 8px var(--c); }
.tg-nav a { display: flex; justify-content: space-between; align-items: center; margin: 2px 8px; padding: 8px 12px; border-left: 2px solid transparent; font: 600 13px var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--s4); }
.tg-nav a.on { color: var(--c); border-left-color: var(--c); background: rgba(45,212,238,.1); box-shadow: inset 0 0 14px rgba(45,212,238,.12); }
.tg-count { background: rgba(239,65,54,.25); color: #ff6457; font: 10px var(--mono); padding: 1px 6px; border-radius: 2px; }
.tg-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 16px; font: 10px var(--mono); letter-spacing: .14em; color: var(--s5); display: flex; align-items: center; gap: 8px; }
.tg-dot { width: 7px; height: 7px; border-radius: 50%; background: #37e08a; box-shadow: 0 0 8px #37e08a; display: inline-block; }
.tg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tg-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; border-bottom: 1px solid var(--line); background: rgba(18,24,33,.6); }
.tg-banner { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 2px; font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tg-banner.live { color: #37e08a; background: #0e2a1d; border: 1px solid rgba(55,224,138,.4); }
.tg-user { display: flex; align-items: center; gap: 12px; font: 12px var(--mono); color: var(--s4); }
.tg-btn { display: inline-block; padding: 4px 10px; border-radius: 2px; font-size: 12px; font-weight: 600; background: var(--p2); border: 1px solid #3a4757; color: var(--s1); white-space: nowrap; }
.tg-btn.pri { background: var(--c); border-color: var(--c); color: #0a0d12; box-shadow: 0 0 12px rgba(45,212,238,.35); }
.tg-btn.ok { background: #37e08a; border-color: #37e08a; color: #0a0d12; }
.tg-btn.ghost { background: transparent; border-color: transparent; color: var(--s3); }
.tg-page { flex: 1; min-height: 0; overflow: hidden; padding: 24px; }
.tg-main .tg-page > * { max-width: 896px; margin-left: auto; margin-right: auto; }
.tg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.tg-kick { font: 11px var(--mono); letter-spacing: .22em; color: var(--c); }
.tg-h1 { font: 600 24px var(--disp); text-transform: uppercase; letter-spacing: .04em; color: #eef3f8; margin: 4px 0 4px; }
.tg-subt { margin: 0; color: var(--s4); font-size: 14px; max-width: 672px; }
.tg-select { width: 224px; display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: var(--p); border: 1px solid var(--line); border-radius: 2px; color: var(--s1); font-size: 13px; }
.tg-select.sm { margin-left: auto; width: 180px; }
.tg-select.xs { width: 176px; font-size: 12px; padding: 4px 8px; }
.tg-card { background: linear-gradient(rgba(255,255,255,.025), transparent 40px), var(--p); border: 1px solid var(--line); border-radius: 2px; padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 30px -16px rgba(0,0,0,.85); }
.tg-page .tg-card + .tg-card { margin-top: 12px; }
.tg-bulk { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; margin-bottom: 12px; background: rgba(45,212,238,.1); border: 1px solid rgba(45,212,238,.4); border-radius: 2px; }
.tg-bulk b { color: var(--c); }
.tg-mono { font: 12px var(--mono); color: var(--s3); }
.tg-mono.dim { color: var(--s5); }
.tg-label { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--s4); }
.tg-qtop { display: flex; align-items: center; gap: 10px; }
.tg-qtop b { color: #eef3f8; font-weight: 600; }
.tg-ts { margin-left: auto; white-space: nowrap; }
.tg-check, .tg-box { width: 15px; height: 15px; flex: none; border: 1px solid #3a4757; border-radius: 2px; display: inline-grid; place-items: center; background: var(--p2); }
.tg-check.on, .tg-box.on { background: var(--c); border-color: var(--c); color: #0a0d12; }
.tg-badge { font: 11px var(--mono); padding: 1px 6px; border-radius: 2px; background: #1a222c; color: #9fb3c6; box-shadow: inset 0 0 0 1px #3a4757; }
.tg-prop { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tg-chip { font: 12px var(--mono); color: var(--c2); background: rgba(45,212,238,.1); border: 1px solid rgba(45,212,238,.4); padding: 1px 8px; border-radius: 2px; }
.tg-chip b { opacity: .6; font-weight: 400; }
.tg-conf { width: 96px; height: 8px; background: var(--p2); border-radius: 1px; overflow: hidden; margin-left: 6px; }
.tg-conf i { display: block; height: 100%; background: #f5b13a; }
.tg-conf i.good { background: #37e08a; box-shadow: 0 0 8px #37e08a; }
.tg-why { margin: 8px 0 6px; color: #9aabbe; }
.tg-link { font: 11px var(--mono); letter-spacing: .1em; color: var(--c); display: flex; align-items: center; gap: 4px; }
.tg-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tg-range { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tg-range .tg-label { margin-right: 6px; }
.tg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.tg-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-page .tg-stats .tg-card + .tg-card { margin-top: 0; }
.tg-val { font: 600 24px var(--disp); color: #eef3f8; margin: 6px 0 2px; }
.tg-bar { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 12px; padding: 5px 0; }
.tg-bar .tg-mono:last-child { text-align: right; }
.tg-track { height: 12px; background: var(--p2); }
.tg-track i { display: block; height: 100%; background: var(--c); box-shadow: 0 0 10px rgba(45,212,238,.4); }
.tg-narrow > * { max-width: 768px; margin-left: auto; margin-right: auto; }
.tg-set h4 { margin: 0; font: 600 14px var(--disp); text-transform: uppercase; letter-spacing: .08em; color: #eef3f8; }
.tg-set p { margin: 2px 0 12px; font-size: 12px; color: var(--s4); }
.tg-irow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.tg-irow b { font-weight: 600; flex: 1; }
.tg-pill { font: 11px var(--mono); padding: 1px 7px; border-radius: 2px; }
.tg-pill.live { color: #37e08a; background: #0e2a1d; box-shadow: inset 0 0 0 1px rgba(55,224,138,.4); }
.tg-pill.learn { color: var(--c); background: #0a2531; box-shadow: inset 0 0 0 1px rgba(45,212,238,.4); }
.tg-inline { display: flex; align-items: center; gap: 12px; }
.tg-slider { position: relative; width: 320px; height: 4px; background: var(--p2); border-radius: 2px; }
.tg-slider i { display: block; height: 100%; background: var(--c); }
.tg-slider b { position: absolute; top: -6px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #eef3f8; box-shadow: 0 0 8px var(--c); }
.tg-input { width: 128px; padding: 5px 10px; background: var(--p); border: 1px solid var(--line); border-radius: 2px; font-family: var(--mono); }
/* phone */
.tg-ph { flex-direction: column; font-size: 15px; }
.tg-phbar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(18,24,33,.85); }
.tg-phbar img { width: 30px; height: 30px; border-radius: 7px; }
.tg-phbar .tg-word { font-size: 16px; flex: 1; }
.tg-phbanner { padding: 10px 18px 0; }
.tg-ph .tg-page { padding: 16px 18px; }
.tg-ph .tg-h1 { font-size: 22px; }
.tg-ph .tg-qtop { flex-wrap: wrap; }
.tg-ph .tg-qtop b { flex-basis: 100%; order: 3; }
.tg-ph .tg-ts { order: 2; }
.tg-ph .tg-why { font-size: 14px; }
.tg-ph .tg-bar { grid-template-columns: 116px 1fr 30px; gap: 8px; }
.tg-ph .tg-irow { flex-wrap: wrap; }
.tg-ph .tg-slider { width: 150px; }

/* ---------- Oti ---------- */
.oti { --navy: #23395B; --line: #D6D6D6; --mut: #737373; height: 100%; background: #F5F5F5; color: #1E1E1E; font-size: 15px; }
.oti-nav { height: 60px; background: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.18); color: #fff; }
.oti-in { max-width: 1160px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.oti-logo { display: flex; align-items: center; gap: 8px; font: italic 600 21px "Playfair Display", Georgia, serif; }
.oti-nav nav { display: flex; gap: 2px; }
.oti-nav nav a { padding: 6px 12px; border-radius: 6px; font-size: 14px; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 6px; }
.oti-nav nav a.on { color: #fff; background: rgba(255,255,255,.14); }
.oti-red { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 6px; line-height: 18px; }
.oti-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.7); }
.oti-user a { color: rgba(255,255,255,.7); text-decoration: underline; }
.oti-role { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.oti-role.contractor { background: #dcfce7; color: #166534; }
.oti-role.manager { background: #e0e7ff; color: #3730a3; }
.oti-role.admin { background: #fef3c7; color: #92400e; }
.oti-page { max-width: 1160px; margin: 0 auto; padding: 28px 24px; }
.oti-h { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.oti-h h3 { margin: 0; font: 300 30px Georgia, "Times New Roman", serif; color: var(--navy); }
.oti-h p { margin: 4px 0 0; }
.oti-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; box-shadow: 0 1px 3px rgba(35,57,91,.08); }
.oti-card + .oti-card { margin-top: 16px; }
.oti-ct { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin-bottom: 10px; }
.oti-muted { color: var(--mut); font-size: 13px; margin: 0 0 10px; }
.oti-lab, .oti-entry label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: #444; }
.oti-input { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 6px; padding: 7px 10px; background: #fff; font-size: 14px; font-weight: 400; color: #1E1E1E; min-width: 0; }
.oti-input.ph { color: #a3a3a3; }
.oti-input.w { width: 240px; }
.oti-entry { display: grid; grid-template-columns: 170px 170px 90px 1fr auto; gap: 12px; align-items: end; background: #F5F5F5; border-radius: 6px; padding: 12px; margin-bottom: 8px; }
.oti-btns { display: flex; gap: 6px; }
.oti-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 8px 18px; font-size: 14px; font-weight: 500; border: 1.5px solid transparent; white-space: nowrap; }
.oti-btn.sm { padding: 5px 14px; font-size: 12px; }
.oti-btn.xs { padding: 4px 10px; font-size: 12px; }
.oti-btn.pri { background: #FFD166; color: var(--navy); font-weight: 600; }
.oti-btn.sec, .oti-btn.out { border-color: var(--navy); color: var(--navy); }
.oti-btn.ok { background: #2f8f5b; color: #fff; }
.oti-btn.dan { background: #dc2626; color: #fff; }
.oti-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.oti-actions .oti-muted { margin: 0 auto 0 0; }
.oti-actions.left { justify-content: flex-start; }
.oti-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.oti-t th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--mut); padding: 8px 14px; border-bottom: 2px solid #e5e5e5; }
.oti-t td { padding: 10px 14px; border-bottom: 1px solid #eee; white-space: nowrap; }
.oti-t .r { text-align: right; }
.oti-t tr.tot td { font-weight: 700; border-bottom: 0; }
.oti-t a { color: var(--navy); text-decoration: underline; }
.oti-sub td { background: #fafafa; }
.oti-rej { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.oti-rej .grow { flex: 1; }
.oti-acts { display: flex; gap: 6px; }
.oti-ib { width: 28px; height: 28px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 13px; border: 1.5px solid var(--navy); color: var(--navy); }
.oti-ib.ok { background: #2f8f5b; border-color: #2f8f5b; color: #fff; }
.oti-ib.no { background: #dc2626; border-color: #dc2626; color: #fff; }
.oti-pill { display: inline-block; border-radius: 99px; padding: 3px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.oti-pill.draft { background: #f1f5f9; color: #475569; }
.oti-pill.pending { background: #fffbeb; color: #92400e; }
.oti-pill.submitted { background: #dbeafe; color: #1d4ed8; }
.oti-pill.approved { background: #dcfce7; color: #166534; }
.oti-pill.authorised { background: #e0e7ff; color: #3730a3; }
.oti-pill.paid { background: var(--navy); color: #fff; }
.oti-pill.awaiting-payment { background: #fef9c3; color: #854d0e; }
.oti-pill.voided { background: #f1f5f9; color: #6b7280; }
.oti-mini { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 2px 7px; margin-right: 4px; background: #e5e7eb; color: #6b7280; }
.oti-mini.on { background: #dcfce7; color: #166534; }
.oti-filters { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.oti-filters .oti-input { width: 200px; }
.oti-filters .push { margin-left: auto; }
.oti-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mut); }
.oti-toggle i { width: 34px; height: 20px; border-radius: 99px; background: #d4d4d4; position: relative; }
.oti-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
/* phone */
.oti-ph .oti-in { gap: 12px; padding: 0 16px; }
.oti-ph .oti-in .oti-btn { margin-left: auto; }
.oti-ph .oti-page { padding: 20px 16px; }
.oti-ph .oti-h h3 { font-size: 26px; }
.oti-ph .oti-card { padding: 16px; }
.oti-ph .oti-entry { grid-template-columns: 1fr 1fr; }
.oti-ph .oti-entry .grow { grid-column: 1 / -1; }
.oti-ph .oti-btns { grid-column: 1 / -1; }
.oti-ph .oti-actions { flex-wrap: wrap; justify-content: flex-start; }
.oti-ph .oti-actions .oti-muted { flex-basis: 100%; }
.oti-ph .oti-input.w { width: auto; }
.oti-mrow { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #eee; }
.oti-mrow > div:first-child { flex: 1; min-width: 0; }
.oti-mrow .oti-muted { margin: 0; }
.oti-mrow .r { text-align: right; }
.oti-ph .oti-rej { flex-wrap: wrap; padding: 8px 0 12px; border-bottom: 1px solid #eee; }
.oti-ph .oti-rej .grow { flex-basis: 100%; }
.oti-ph .oti-acts .oti-ib { width: 26px; height: 26px; }
.oti-ph .oti-filters .oti-input { width: 170px; }
.oti-list .oti-pill { font-size: 10px; }

/* ---------- Tempo ---------- */
.tp { --navy: #1A2E4A; height: 100%; display: flex; background: #F0F4F8; font-family: "DM Sans", -apple-system, "Segoe UI", sans-serif; font-size: 14px; color: #1f2937; position: relative; }
.tp-side { width: 224px; flex: none; background: var(--navy); color: #fff; display: flex; flex-direction: column; }
.tp-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.tp-brand img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.tp-brand b { display: block; font-size: 18px; letter-spacing: -.02em; }
.tp-brand span { font-size: 12px; color: rgba(255,255,255,.35); }
.tp-nav { padding: 12px 8px; display: grid; gap: 2px; }
.tp-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-weight: 500; color: rgba(255,255,255,.5); }
.tp-nav a.on { color: #fff; background: rgba(255,255,255,.12); }
.tp-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.tp-user a { display: block; color: rgba(255,255,255,.3); }
.tp-av { width: 28px; height: 28px; border-radius: 50%; background: #E8930A; display: grid; place-items: center; font-weight: 700; }
.tp-main { flex: 1; min-width: 0; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
.tp-fb { position: absolute; right: 20px; bottom: 20px; background: var(--navy); color: #fff; border-radius: 99px; padding: 8px 14px; font-size: 13px; display: flex; gap: 6px; align-items: center; box-shadow: 0 10px 20px rgba(26,46,74,.3); }
.tp-tool { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-bottom: 1px solid #e5e7eb; color: #6b7280; }
.tp-tool b { color: #1f2937; font-weight: 600; margin: 0 4px; }
.tp-b { border: 1px solid #d1d5db; border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 500; color: #374151; background: #fff; white-space: nowrap; }
.tp-b.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.tp-b.navyo { border-color: var(--navy); color: var(--navy); }
.tp-arr { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font-size: 18px; color: #374151; }
.tp-conn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; border-radius: 99px; padding: 3px 10px; font-size: 12px; }
.tp-conn i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.tp-dis { font-size: 12px; color: #9ca3af; }
.tp-split { flex: 1; min-height: 0; display: flex; }
.tp-cal { --cw: calc((100% - 0px) / var(--n)); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp-heads { display: flex; border-bottom: 1px solid #e5e7eb; }
.tp-gut { width: 56px; flex: none; position: relative; }
.tp-dh { flex: 1; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid #e5e7eb; }
.tp-dh span { font-size: 11px; color: #9ca3af; letter-spacing: .04em; }
.tp-dh b { font-size: 15px; font-weight: 600; }
.tp-dh.today { background: #eff6ff; }
.tp-dh.today b { background: #2563eb; color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.tp-body { flex: 1; display: flex; position: relative; overflow: hidden; }
.tp-hr { position: absolute; left: 0; right: 0; }
.tp-hr span { position: absolute; right: 8px; top: -8px; font-size: 11px; color: #9ca3af; }
.tp-cols { flex: 1; position: relative; display: flex; --cw: calc(100% / var(--n)); background: repeating-linear-gradient(#fff 0 61px, #f3f4f6 61px 62px); }
.tp-col { flex: 1; border-left: 1px solid #e5e7eb; }
.tp-col.today { background: rgba(239,246,255,.45); }
.tp-ev { position: absolute; width: calc(var(--cw) - 7px); border-radius: 4px; padding: 3px 7px; color: #fff; overflow: hidden; font-size: 12px; border-left: 3px solid rgba(0,0,0,.18); }
.tp-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-ev i { font-style: normal; opacity: .75; font-size: 11px; }
.tp-ev.focus { background: #1967D2; border-left-color: #1557B0; }
.tp-ev.habit { background: #0B8043; border-left-color: #097336; }
.tp-ev.routine { background: #8E24AA; border-left-color: #7B1FA2; }
.tp-ev.m1 { background: #7986CB; } .tp-ev.m2 { background: #039BE5; } .tp-ev.m3 { background: #33B679; } .tp-ev.m4 { background: #F4511E; } .tp-ev.m5 { background: #616161; }
.tp-ev.rsvp { background: #FEF3C7; color: #92400E; border: 2px solid #F59E0B; }
.tp-rsvp { position: absolute; top: 3px; right: 4px; font-size: 8px; font-weight: 700; background: #F59E0B; color: #fff; border-radius: 3px; padding: 0 3px; }
.tp-ev.tent { background: rgba(3,155,229,.08); color: #039BE5; border: 1.5px dashed #039BE5; }
.tp-ev.dec { background: #f1f3f4; color: #bdc1c6; border-left-color: #e0e0e0; }
.tp-ev.dec b { text-decoration: line-through; }
.tp-now { position: absolute; width: var(--cw); height: 2px; background: #ef4444; z-index: 2; }
.tp-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.tp-panel { width: 288px; flex: none; border-left: 1px solid #e5e7eb; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tp-pt { font-size: 17px; }
.tp-pm { font-size: 12px; color: #9ca3af; }
.tp-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.tp-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #f3f4f6; color: #4b5563; }
.tp-badge.focus { background: #312e81; color: #fff; }
.tp-lab { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #9ca3af; margin-top: 8px; }
.tp-tog { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; }
.tp-tog i { width: 34px; height: 20px; border-radius: 99px; background: #e5e7eb; position: relative; }
.tp-tog i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tp-tog.on i { background: #f59e0b; }
.tp-tog.on i::after { left: 16px; }
.tp-note { margin: 0; font-size: 13px; color: #4b5563; }
.tp-del { margin-top: auto; color: #dc2626; font-size: 13px; }
.tp-pg { max-width: 672px; margin: 0 auto; padding: 32px 24px; width: 100%; }
.tp-pg h3 { margin: 0; font-size: 21px; font-weight: 700; color: #111827; }
.tp-pg > p { margin: 4px 0 18px; color: #6b7280; }
.tp-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.tp-mc { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #fff; }
.tp-mtop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.tp-mtop .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp-mtop .grow span { font-size: 12px; color: #6b7280; }
.tp-mi { width: 36px; height: 36px; flex: none; border-radius: 10px; background: #EEF2FF; color: #4f46e5; display: grid; place-items: center; }
.tp-mb { display: flex; gap: 8px; }
.tp-better { background: #f9fafb; border-top: 1px solid #e5e7eb; padding: 12px 16px 14px; }
.tp-better .tp-lab { margin: 0 0 8px; }
.tp-slot { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; }
.tp-slot b { display: block; font-size: 13px; font-weight: 600; }
.tp-slot span:not(.tp-b) { font-size: 12px; color: #6b7280; }
.tp-keep { font-size: 12px; color: #6b7280; text-decoration: underline; }
.tp-log { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; color: #374151; }
.tp-log span + span { color: #6b7280; }
/* phone */
.tp-ph { flex-direction: column; background: #fff; }
.tp-tabs { flex: none; display: flex; background: var(--navy); padding: 8px 4px 24px; }
.tp-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: rgba(255,255,255,.5); }
.tp-tabs a.on { color: #fff; }
.tp-tool.ph { padding: 10px 14px; }
.tp-ph .tp-mtop { flex-wrap: wrap; }
.tp-ph .tp-mb { flex-basis: 100%; }
.tp-ph .tp-pg { padding: 20px 16px; }

/* ---------- Office Bot ---------- */
.ob-chat { height: 100%; display: flex; background: #fff; color: #1d1c1d; font-size: 15px; }
.ob-rail { width: 64px; flex: none; background: #121016; color: rgba(255,255,255,.65); display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 14px; }
.ob-ws { width: 36px; height: 36px; border-radius: 9px; background: #e8e8e8; color: #121016; display: grid; place-items: center; font-weight: 800; }
.ob-side { width: 250px; flex: none; background: #1d1a22; color: rgba(255,255,255,.7); padding: 12px 0; font-size: 15px; }
.ob-wsn { color: #fff; font-weight: 800; font-size: 18px; padding: 4px 18px 14px; display: flex; gap: 4px; align-items: center; }
.ob-grp { padding: 12px 18px 4px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.ob-side a { display: flex; align-items: center; gap: 8px; padding: 4px 18px 4px 26px; }
.ob-side a.on { background: #3c6fd1; color: #fff; }
.ob-side a img { border-radius: 4px; }
.ob-dm { width: 18px; height: 18px; border-radius: 4px; background: #e8836b; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ob-dm.b { background: #4f9dde; }
.ob-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ob-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 18px; }
.ob-head img { border-radius: 6px; }
.ob-tabs { display: flex; gap: 22px; padding: 0 20px; border-bottom: 1px solid #e3e3e3; font-size: 14px; }
.ob-tabs a { padding: 8px 0; color: #616061; }
.ob-tabs a.on { color: #1d1c1d; font-weight: 700; box-shadow: inset 0 -2px 0 #1264a3; }
.ob-blocks { flex: 1; overflow: hidden; padding: 16px 20px 0; max-width: 760px; }
.ob-sec { margin-bottom: 10px; line-height: 1.45; }
.ob-sec.small { font-size: 14px; }
.ob-sub { color: #616061; }
.ob-blocks hr { border: 0; border-top: 1px solid #e3e3e3; margin: 14px 0; }
.ob-btn { display: inline-block; border: 1px solid #c4c4c4; border-radius: 6px; padding: 5px 14px; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.ob-btn.pri { background: #007a5a; border-color: #007a5a; color: #fff; }
.ob-ul { margin: 0 0 6px; padding-left: 20px; }
.ob-ul li { margin-bottom: 6px; }
.ob-blocks code { font-size: 12px; background: #f6f6f6; border: 1px solid #e3e3e3; border-radius: 3px; padding: 1px 4px; color: #c01343; }
.ob-fb { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ob-fb .ob-btn { margin: 0; }
.ob-chat.ph { flex-direction: column; }
.ob-phhead { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 18px; border-bottom: 1px solid #e3e3e3; }
.ob-phhead img { border-radius: 7px; }
.ob-chat.ph .ob-blocks { padding: 14px 16px 0; }
.ob-chat.ph .ob-fb { flex-direction: column; align-items: flex-start; }
.ob-admin { --cy: #00FFF5; height: 100%; background: #fff; color: #0f172a; }
.ob-bar { background: #080C10; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.ob-bin { max-width: 1024px; margin: 0 auto; height: 56px; padding: 0 24px; display: flex; align-items: center; gap: 10px; }
.ob-bin > b { font-family: "Space Grotesk", "Avenir Next", sans-serif; font-weight: 600; margin-right: 22px; }
.ob-bin img { filter: drop-shadow(0 0 5px rgba(255,16,240,.6)); }
.ob-bin nav { display: flex; gap: 20px; font-size: 14px; }
.ob-bin nav a { color: rgba(255,255,255,.5); }
.ob-bin nav a.on { color: var(--cy); font-weight: 500; }
.ob-me { margin-left: auto; font-size: 13px; color: rgba(255,255,255,.4); display: flex; gap: 14px; }
.ob-body { max-width: 1024px; margin: 0 auto; padding: 26px 32px; }
.ob-h { display: flex; justify-content: space-between; align-items: center; }
.ob-h h3, .ob-h3 { margin: 0; font: 400 22px Audiowide, "Avenir Next", "Futura", sans-serif; letter-spacing: .02em; }
.ob-cyan { background: var(--cy); color: #000; font-weight: 600; font-size: 14px; border-radius: 8px; padding: 8px 14px; box-shadow: 0 0 14px rgba(0,255,245,.5); }
.ob-p { color: #64748b; font-size: 14px; margin: 6px 0 18px; }
.ob-t { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; font-size: 14px; }
.ob-t th { background: #080C10; color: rgba(255,255,255,.45); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-align: left; padding: 10px 14px; }
.ob-t td { padding: 11px 14px; border-top: 1px solid #e2e8f0; white-space: nowrap; }
.ob-t.faded { opacity: .6; }
.ob-type { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.ob-type.tog { background: #F5FF00; color: #000; }
.ob-type.exec { background: #080C10; color: #FF10F0; border: 1px solid rgba(255,16,240,.4); box-shadow: 0 0 8px rgba(255,16,240,.35); }
.ob-type.sm { font-size: 10px; padding: 2px 6px; letter-spacing: 0; }
.ob-sent { background: rgba(0,255,245,.1); color: #00897B; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.ob-ns { color: #94a3b8; font-size: 13px; }
.ob-acts { display: flex; gap: 6px; }
.ob-ia { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: #475569; }
.ob-ia.send { background: rgba(0,255,245,.12); color: #00897B; }
.ob-ia.del { color: #dc2626; }
.ob-past { margin: 22px 0 10px; font-size: 14px; font-weight: 600; color: #475569; display: flex; gap: 6px; align-items: center; }
.ob-admin.ph .ob-bin { padding: 0 16px; }
.ob-admin.ph .ob-bin svg { margin-left: auto; }
.ob-admin.ph .ob-body { padding: 18px 16px; }
.ob-defaults { border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px; display: grid; gap: 4px; margin-bottom: 18px; font-size: 14px; }
.ob-defaults span { color: #64748b; font-size: 13px; }
.ob-defaults .ob-out { justify-self: start; border: 1px solid #cbd5e1; border-radius: 6px; padding: 3px 10px; color: #0f172a; margin-top: 4px; }
.ob-wk { border-left: 2px solid var(--cy); padding-left: 10px; margin-bottom: 10px; display: flex; flex-direction: column; }
.ob-wk b { font-size: 12px; letter-spacing: .08em; }
.ob-wk span { font-size: 12px; color: #00897B; }
.ob-day { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ob-day.today { border-color: rgba(0,255,245,.6); box-shadow: 0 0 0 1px rgba(0,255,245,.3); }
.ob-dl { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.ob-today { border: 1px solid #00897B; color: #00897B; font-size: 11px; border-radius: 6px; padding: 0 6px; }
.ob-yn { display: flex; gap: 6px; }
.ob-yn span { width: 60px; height: 32px; border: 1px solid #cbd5e1; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #475569; }
.ob-yn span.in { background: var(--cy); border-color: var(--cy); color: #000; }
.ob-yn span.out { background: #e2e8f0; border-color: #e2e8f0; }
.ob-parts { flex-basis: 100%; display: flex; gap: 6px; }
.ob-parts span { font-size: 12px; border: 1px solid #e2e8f0; border-radius: 99px; padding: 3px 10px; color: #475569; }
.ob-parts span.on { background: var(--cy); border-color: var(--cy); color: #000; font-weight: 600; }

/* ---------- Retrobuddy ---------- */
.rb { --peri: #5B78C5; height: 100%; display: flex; flex-direction: column; background: #fff; font-family: Geist, Inter, -apple-system, sans-serif; color: #0f172a; position: relative; }
.rb-head { height: 56px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid #e2e8f0; background: #fff; }
.rb-logo { display: flex; align-items: center; gap: 8px; font-size: 18px; color: #1A8A50; }
.rb-title { flex: 1; display: flex; flex-direction: column; align-items: center; font-size: 14px; }
.rb-title > div { display: flex; gap: 8px; align-items: center; }
.rb-title span:not(.rb-phase) { font-size: 11px; color: #64748b; }
.rb-phase { font-size: 11px; font-weight: 600; border-radius: 99px; padding: 1px 8px; }
.rb-phase.vote { background: #fef3c7; color: #b45309; }
.rb-phase.disc { background: #dcfce7; color: #15803d; }
.rb-phase.write { background: #dbeafe; color: #1d4ed8; }
.rb-timer { font: 600 13px ui-monospace, Menlo, monospace; background: #f1f5f9; border-radius: 99px; padding: 4px 10px; }
.rb-out { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.rb-fac { background: #1A8A50; color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.rb-red { background: #E0436A; color: #fff; border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.rb-body { flex: 1; min-height: 0; display: flex; }
.rb-tools { width: 52px; flex: none; border-right: 1px solid #E2E8F0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; color: #475569; }
.rb-tools > span { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.rb-tools > span.on { background: #EEF2FF; border: 1px solid #C7D5F5; color: var(--peri); }
.rb-tools hr { width: 28px; border: 0; border-top: 1px solid #e2e8f0; margin: 4px 0; }
.rb-tools i { width: 24px; height: 24px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); }
.rb-tools i.on { border: 2.5px solid var(--peri); }
.rb-canvas { flex: 1; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  background: linear-gradient(90deg, transparent calc(50% - 1px), transparent 50%), #fff; }
.rb-canvas::before, .rb-canvas::after { content: ""; position: absolute; border: 0 dashed #DDE3F0; }
.rb-canvas::before { left: 50%; top: 0; bottom: 0; border-left-width: 2px; }
.rb-canvas::after { top: 50%; left: 0; right: 0; border-top-width: 2px; }
.rb-zone { padding: 18px 22px; position: relative; z-index: 1; }
.rb-zone h4 { margin: 0; font-size: 30px; font-weight: 700; color: var(--peri); }
.rb-zone > p { margin: 0 0 12px; color: #94A3B8; font-size: 14px; }
.rb-zone.wind, .rb-zone.anchor { text-align: right; }
.rb-notes { display: flex; gap: 12px; }
.rb-zone.wind .rb-notes, .rb-zone.anchor .rb-notes { justify-content: flex-end; }
.rb-note { width: 150px; min-height: 140px; border-radius: 8px; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.12); display: flex; flex-direction: column; text-align: left; font-size: 13px; color: #1e293b; }
.rb-note.pop { box-shadow: 0 0 0 3px #facc15, 0 4px 10px rgba(0,0,0,.12); }
.rb-note p { margin: 0; flex: 1; }
.rb-nf { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #475569; }
.rb-ini { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.15); display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.rb-v { margin-left: auto; }
.rb-grey { filter: grayscale(1); opacity: .5; }
.rb-art { position: absolute; left: 50%; top: 50%; width: 400px; transform: translate(-50%, -50%); opacity: .95; z-index: 0; }
.rb-cur { position: absolute; z-index: 3; display: flex; align-items: flex-start; }
.rb-cur b { color: #0f172a; transform: rotate(-135deg); font-size: 16px; }
.rb-cur em { font-style: normal; color: #fff; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 1px 6px; margin: 14px 0 0 -2px; }
.rb-zoom { position: absolute; left: 14px; bottom: 14px; z-index: 3; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 6px 12px; font-size: 15px; color: #475569; display: flex; gap: 10px; }
.rb-zoom b { font-size: 12px; font-weight: 600; }
.rb.ph .rb-canvas { display: block; }
.rb.ph .rb-canvas::after, .rb.ph .rb-canvas::before { display: none; }
.rb-head.ph { gap: 10px; }
.rb-head.ph .rb-title { align-items: flex-start; }
.rb.ph .rb-zone { text-align: left; padding: 18px 16px; }
.rb.ph .rb-notes { flex-wrap: wrap; justify-content: flex-start !important; }
.rb.ph .rb-note { width: 165px; }
.rb-add { position: absolute; right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; background: #E0436A; color: #fff; font-size: 28px; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(224,67,106,.4); }
.rb-home { background: #f8fafc; }
.rb-me { margin-left: auto; font-size: 13px; color: #64748b; display: flex; gap: 12px; }
.rb-hb { padding: 28px 48px; }
.rb-hh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.rb-hh h3 { margin: 0; font-size: 24px; }
.rb-hh p { margin: 2px 0 0; color: #64748b; font-size: 14px; }
.rb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rb-bc { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; display: grid; gap: 6px; justify-items: start; }
.rb-bc span:last-child { color: #64748b; font-size: 12px; }
.rb-em { font-size: 26px; }
.rb-dim { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.rb-modal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 672px; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 22px 24px; display: grid; gap: 10px; }
.rb-mh { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.rb-modal label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.rb-in { border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px; font-weight: 400; font-size: 14px; }
.rb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rb-tpl { border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.rb-tpl.on { border-color: #1A8A50; background: #f0fdf4; }
.rb-tpl p { margin: 3px 0 8px; color: #64748b; font-size: 12px; }
.rb-tpl div { display: flex; flex-wrap: wrap; gap: 4px; }
.rb-tpl span { background: #f1f5f9; border-radius: 99px; padding: 1px 8px; font-size: 11px; color: #475569; }
.rb-mf { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.rb-modal.ph { position: static; transform: none; width: auto; height: 100%; border-radius: 0; box-shadow: none; padding: 18px 16px; align-content: start; }
.rb-modal.ph .rb-grid { grid-template-columns: 1fr; }

/* ---------- Mail Merge ---------- */
.mm { height: 100%; display: flex; flex-direction: column; background: #f9fbfd; font-family: Arial, Helvetica, sans-serif; color: #1f1f1f; font-size: 13px; }
.mm-top { display: flex; align-items: center; gap: 10px; padding: 8px 16px 4px; }
.mm-top > div { flex: 1; }
.mm-top b { font-size: 17px; font-weight: 400; }
.mm-menus { display: flex; gap: 14px; font-size: 13px; color: #444; margin-top: 2px; }
.mm-share { background: #c2e7ff; border-radius: 99px; padding: 8px 20px; font-weight: 600; }
.mm-av { width: 32px; height: 32px; border-radius: 50%; background: #E8836B; color: #fff; display: grid; place-items: center; font-weight: 700; }
.mm-tool { margin: 4px 12px; background: #edf2fa; border-radius: 99px; height: 36px; display: flex; align-items: center; gap: 16px; padding: 0 16px; color: #444; }
.mm-sep { width: 1px; height: 20px; background: #c7c7c7; }
.mm-fx { display: flex; align-items: center; gap: 12px; height: 28px; padding: 0 12px; border-bottom: 1px solid #e1e1e1; color: #444; background: #fff; }
.mm-fx span:first-child { width: 60px; }
.mm-fx i { color: #9aa0a6; }
.mm-work { flex: 1; min-height: 0; display: flex; }
.mm-sheet { flex: 1; min-width: 0; overflow: hidden; background: #fff; }
.mm-grid { border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.mm-grid th { background: #f8f9fa; color: #5f6368; font-weight: 400; height: 22px; border: 1px solid #e1e1e1; width: 130px; }
.mm-grid th:nth-child(4) { width: 170px; }
.mm-grid th:nth-child(7) { width: 230px; }
.mm-grid th.rn, .mm-grid td.rn { width: 44px; background: #f8f9fa; color: #5f6368; text-align: center; }
.mm-grid td { border: 1px solid #e1e1e1; height: 23px; padding: 0 6px; white-space: nowrap; overflow: hidden; }
.mm-grid td.r { text-align: right; }
.mm-grid td.h { font-weight: 700; }
.mm-grid td.h.log { background: #0F3D2E; color: #fff; }
.mm-grid tr.bad td:not(.rn) { background: #FCEAEA; }
.mm-grid td.lg { color: #1e6b3a; font-size: 12px; }
.mm-grid td.lg.sk { color: #b3261e; }
.mm-tabs { height: 38px; display: flex; align-items: center; gap: 18px; padding: 0 16px; background: #f8f9fa; border-top: 1px solid #e1e1e1; color: #444; }
.mm-tabs .on { background: #e1f0e6; color: #1E8E3E; font-weight: 700; padding: 6px 14px; border-radius: 6px; }
.mm-side { width: 320px; flex: none; background: #fff; border-left: 1px solid #dadce0; display: flex; flex-direction: column; box-shadow: -2px 0 6px rgba(0,0,0,.05); }
.mm-sh { display: flex; justify-content: space-between; align-items: flex-start; background: #0F3D2E; color: #fff; padding: 14px 16px; }
.mm-sh b { display: block; font: 17px Georgia, serif; }
.mm-sh span { font-size: 11px; color: rgba(255,255,255,.65); }
.mm-steps { display: flex; }
.mm-steps span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 8px 0; background: #F5F5F5; border-top: 2px solid #e0e0e0; color: #888; }
.mm-steps span.on { background: #eef6f0; border-top-color: #0F3D2E; color: #0F3D2E; }
.mm-sb { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.mm-sb label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #888; margin-top: 6px; }
.mm-sel { display: flex; justify-content: space-between; align-items: center; border: 1px solid #ccc; border-radius: 4px; padding: 7px 9px; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-chips code, .mm-conf code { font: 11px ui-monospace, Menlo, monospace; background: #eef6f0; border: 1px solid #b9d6c3; border-radius: 4px; padding: 2px 6px; color: #0F3D2E; }
.mm-prev { background: #F5F5F5; border-radius: 4px; padding: 10px 12px; font-size: 12px; }
.mm-prev b { color: #0F3D2E; }
.mm-prev p { margin: 6px 0 0; }
.mm-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.mm-o { border: 1.5px solid #0F3D2E; color: #0F3D2E; border-radius: 4px; padding: 6px 12px; font-weight: 700; }
.mm-p { background: #1E8E3E; color: #fff; border-radius: 4px; padding: 7px 14px; font-weight: 700; text-align: center; }
.mm-p.full { display: block; padding: 10px; }
.mm-sum { border-left: 3px solid; padding: 10px 12px; font-size: 12px; display: grid; gap: 4px; }
.mm-sum.amber { background: #fff8e1; border-color: #f57f17; }
.mm-iss { color: #c62828; font-size: 11px; }
.mm-hint { color: #6b6b6b; font-size: 11px; }
.mm-conf { background: #F5F5F5; padding: 10px 12px; display: grid; gap: 3px; font-size: 12px; color: #555; }
.mm-conf b { color: #1f1f1f; font-size: 14px; }
.mm-info { background: #e8f5f0; padding: 9px 12px; font-size: 11px; color: #2d4a3e; }
.mm-back { font-size: 11px; color: #0F3D2E; text-decoration: underline; }
.mm-mail { height: 100%; padding: 8px 18px; font-family: Roboto, -apple-system, sans-serif; color: #1f1f1f; }
.mm-mh { display: flex; justify-content: space-between; font-size: 20px; color: #444; padding: 6px 0 14px; }
.mm-mail h4 { margin: 0; font-size: 22px; font-weight: 400; }
.mm-tag { display: inline-block; background: #e8eaed; border-radius: 4px; padding: 1px 6px; font-size: 12px; margin: 6px 0 14px; }
.mm-from { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.mm-from b { display: block; }
.mm-from span { color: #666; font-size: 13px; }
.mm-fa { width: 40px; height: 40px; border-radius: 50%; background: #1E8E3E; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.mm-body p { margin: 0 0 12px; font-size: 15px; }
.mm-reply { display: flex; gap: 10px; margin-top: 18px; }
.mm-reply span { border: 1px solid #c7c7c7; border-radius: 99px; padding: 8px 18px; }
.mm-mob { height: 100%; background: #fff; }
.mm-mtop { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 15px; }
.mm-mob .mm-fx span:first-child { width: auto; }
.mm-grid.ph th { width: auto; }
.mm-grid.ph th:nth-child(2) { width: 110px; }
.mm-grid.ph th:nth-child(3) { width: 236px; }
.mm-grid.ph td { height: 30px; font-size: 13px; }

/* ---------- Our Week ---------- */
.ow { --plum: #3D2C5E; --peach: #FFB4A2; height: 100%; background: #fff; color: var(--plum); font-family: Inter, -apple-system, sans-serif; position: relative; font-size: 14px; }
.ow-nav { height: 60px; background: var(--plum); color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 28px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.ow-logo { font: 21px "Playfair Display", Georgia, serif; }
.ow-logo b { color: var(--peach); }
.ow-logo i { margin-left: 3px; }
.ow-hh { color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 4px; }
.ow-r { margin-left: auto; display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.8); }
.ow-nl { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ow-av { width: 32px; height: 32px; border-radius: 50%; background: var(--pc); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.ow-av.sm { width: 24px; height: 24px; font-size: 10px; }
.ow-av.dash { background: transparent; color: var(--pc); border: 1.5px dashed var(--pc); }
.ow-av.none { background: #eee; color: #999; --pc: #999; }
.ow-av-sm-none { width: 24px; height: 24px; border-radius: 50%; border: 1.5px dashed #c9c1d6; flex: none; }
.ow-body { max-width: 1152px; margin: 0 auto; padding: 22px 28px; display: flex; flex-direction: column; gap: 16px; }
.ow-entry { display: flex; gap: 10px; }
.ow-in { flex: 1; display: flex; align-items: center; justify-content: space-between; border: 2px solid #e4dcea; border-radius: 12px; padding: 12px 14px; color: #9a90ab; font-size: 15px; }
.ow-in b { width: 30px; height: 30px; border-radius: 8px; background: var(--peach); color: var(--plum); display: grid; place-items: center; }
.ow-cam { width: 50px; border: 2px solid #e4dcea; border-radius: 12px; display: grid; place-items: center; }
.ow-chips { display: flex; gap: 8px; overflow: hidden; margin-top: -6px; }
.ow-chips span { background: #f4f1f7; border-radius: 99px; padding: 5px 12px; font-size: 12px; white-space: nowrap; color: #5b4f70; }
.ow-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ow-card { border: 1px solid #ebe4f0; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(61,44,94,.06); background: #fff; }
.ow-ch { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ow-ch b { font-size: 15px; }
.ow-ch span { font-size: 12px; color: #8a809b; }
.ow-cnt { background: var(--peach); color: var(--plum) !important; font-weight: 700; border-radius: 99px; padding: 0 7px; }
.ow-lr { display: grid; grid-template-columns: 32px 50px 1fr 140px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.ow-lr span { color: #6e6480; }
.ow-lr i { height: 6px; border-radius: 99px; background: #f1edf5; overflow: hidden; }
.ow-lr em { display: block; height: 100%; }
.ow-mut { color: #8a809b; font-size: 12px; margin: 6px 0 0; }
.ow-task { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #f3eff6; }
.ow-task b { flex: 1; font-weight: 500; }
.ow-tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #d9d0e3; display: grid; place-items: center; color: #c0b6cd; }
.ow-ctl { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ow-ctl b { margin-left: 4px; font-size: 15px; }
.ow-ib { width: 30px; height: 30px; border: 1px solid #e4dcea; border-radius: 8px; display: grid; place-items: center; font-size: 18px; }
.ow-g { padding: 5px 10px; font-weight: 500; }
.ow-seg { display: flex; background: #f4f1f7; border-radius: 8px; padding: 2px; font-size: 12px; }
.ow-seg:first-of-type { margin-left: auto; }
.ow-seg span { padding: 4px 10px; border-radius: 6px; }
.ow-seg span.on { background: var(--peach); color: var(--plum); font-weight: 700; }
.ow-key { display: flex; align-items: center; gap: 14px; font-size: 13px; margin-bottom: 12px; }
.ow-k { display: flex; align-items: center; gap: 6px; }
.ow-add { color: #8a809b; }
.ow-imp { margin-left: auto; border: 1px solid #e4dcea; border-radius: 8px; padding: 4px 10px; font-size: 12px; }
.ow-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 12px; }
.ow-day { border: 1px solid #ebe4f0; border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.ow-day span { font-size: 11px; color: #8a809b; letter-spacing: .06em; }
.ow-day b { font-size: 22px; }
.ow-day i { width: 6px; height: 6px; border-radius: 50%; background: #E8836B; }
.ow-day.sel { background: var(--peach); border-color: var(--peach); }
.ow-day.sel span { color: var(--plum); }
.ow-panel { background: #faf8fc; border-radius: 12px; padding: 12px 14px; }
.ow-ph { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ow-today { background: #ffe4dc; color: #b4533b; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.ow-ev { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #ebe4f0; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; }
.ow-ev b { display: block; font-weight: 600; }
.ow-ev span { font-size: 12px; color: #8a809b; }
.ow-avs { display: flex; }
.ow-avs .ow-av + .ow-av { margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.ow-ask { position: absolute; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #3D2C5E, #5b4486); color: #fff; border-radius: 99px; padding: 10px 16px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px rgba(61,44,94,.35); }
.ow-cap { display: flex; gap: 10px; }
.ow-cap p { margin: 2px 0 0; font-size: 13px; color: #6e6480; }
.ow-cap code { font-size: 12px; background: #f4f1f7; border-radius: 4px; padding: 1px 4px; }
.ow-card hr { border: 0; border-top: 1px solid #f0ebf4; margin: 12px 0; }
.ow-ri { background: #faf8fc; border: 1px solid #efe9f4; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: grid; gap: 2px; }
.ow-ri b { font-weight: 600; font-size: 15px; }
.ow-ri .ow-mut { margin: 0; }
.ow-rb { display: flex; gap: 8px; margin-top: 6px; }
.ow-pri { background: var(--peach); color: var(--plum); border-radius: 8px; padding: 5px 12px; font-weight: 700; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.ow-gh { padding: 5px 10px; font-size: 13px; color: #6e6480; }
.ow.ph .ow-nav { padding: 0 16px; }
.ow.ph .ow-hh { display: none; }
.ow.ph .ow-body { padding: 16px; gap: 14px; }
.ow.ph .ow-chips { flex-wrap: wrap; }
.ow.ph .ow-in { font-size: 13px; }
.ow-dc { border: 1px solid #ebe4f0; border-radius: 12px; overflow: hidden; }
.ow-dch { background: #f4f1f7; padding: 6px 12px; font-weight: 600; font-size: 13px; }
.ow-dch.today { background: var(--peach); }
.ow-dc .ow-ev { margin: 8px; }
.ow-dc .ow-mut { margin: 8px 12px; }
.ow.ph .ow-ask { right: 16px; bottom: 16px; }
.ow-stack { display: flex; flex-direction: column; gap: 16px; }
