/* Topflight staff command center */
:root {
  --navy: #0a1a8c; --navy-deep: #050a5c; --ink: #0b1033; --muted: #5b6386; --line: #e3e6f2; --bg: #f6f7fb; --card: #fff;
  --gold: #c9821b; --gold-soft: #fdf1dd; --red: #b4232a; --red-soft: #fde8e8; --purple: #6b4fa0; --purple-soft: #efeaf8;
  --green: #17734a; --green-soft: #e3f4ea; --blue-soft: #e7eafb;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
.cc-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 22px; background: var(--navy-deep); color: #fff; }
.cc-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; white-space: nowrap; }
.cc-brand img { border-radius: 6px; background: #fff; padding: 2px; object-fit: contain; box-sizing: border-box; }
.cc-nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cc-nav a { color: #c9cff5; text-decoration: none; padding: 7px 11px; border-radius: 8px; white-space: nowrap; font-weight: 600; font-size: 14px; }
.cc-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.cc-nav a[aria-current="page"] { background: #fff; color: var(--navy-deep); }
.cc-user { font-size: 13px; color: #c9cff5; white-space: nowrap; }
.cc-main { max-width: 1240px; margin: 0 auto; padding: 22px 22px 80px; }
.cc-loading, .cc-empty { color: var(--muted); padding: 40px 0; text-align: center; }

.hero { background: var(--navy); color: #fff; border-radius: 14px; padding: 26px 28px; margin-bottom: 18px; }
.hero .eyebrow { letter-spacing: .22em; font-size: 12px; text-transform: uppercase; color: #ffcf8a; }
.hero .eyebrow.red::before { content: "●"; color: #ff5a5a; margin-right: 8px; }
.hero h1 { margin: 6px 0 4px; font-size: 30px; letter-spacing: .02em; }
.hero h1.big { font-size: clamp(44px, 8vw, 84px); line-height: 1; font-weight: 900; letter-spacing: .04em; }
.hero p { margin: 0; color: #cfd4f7; max-width: 560px; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hero-count { text-align: right; }
.hero-count b { display: block; font: 700 46px/1 var(--mono); color: #ffcf8a; }
.hero-count span { letter-spacing: .2em; font-size: 11px; text-transform: uppercase; color: #cfd4f7; }
.hero-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.hero-links a { color: #fff; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 14px 0 0; }
.tab, .chip { border: 1px solid transparent; background: transparent; color: #cfd4f7; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.tab[aria-pressed="true"] { background: #fff; color: var(--navy-deep); }
.tab.add { color: #fff; border-style: dashed; border-color: rgba(255,255,255,.35); }
.chips { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.chips .chip { color: var(--ink); border-radius: 0; border: 0; border-right: 1px solid var(--line); padding: 8px 14px; font-weight: 500; }
.chips .chip:last-child { border-right: 0; }
.chips .chip[aria-pressed="true"] { background: var(--blue-soft); font-weight: 700; }
.chip small { color: var(--muted); margin-left: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card .val { font: 700 30px/1.1 var(--mono); }
.card a.more { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }
.card.module { cursor: pointer; transition: transform .1s, box-shadow .1s; }
.card.module:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(10,26,140,.08); }

.summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 16px; }
.summary .label { letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.summary .row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.summary .bal { font: 800 44px/1.1 var(--mono); }
.neg { color: var(--gold); } .pos { color: var(--navy); }
.bar { height: 22px; border-radius: 4px; background: var(--blue-soft); overflow: hidden; display: flex; margin: 16px 0; }
.bar i { display: block; background: var(--navy); }
.bar i.over { background: repeating-linear-gradient(135deg, var(--gold) 0 5px, #e4a54a 5px 10px); }
.bar.sm { height: 8px; margin: 4px 0 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.stats div { color: var(--muted); font-size: 14px; }
.stats b { display: block; font: 600 20px var(--mono); color: var(--ink); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.toolbar .grow { flex: 1; min-width: 200px; }
.search { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6386' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 12px 50% no-repeat; }
.btn { border: 1px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: #c5cae3; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
select.btn { padding-right: 28px; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfbfe; position: sticky; top: 0; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: #f9faff; }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
td.idx { color: var(--muted); width: 40px; }
td.name { font-weight: 600; }
.muted { color: var(--muted); }
.dash { color: #b9bdd3; }

.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-left: 6px; }
.tag.dnc { background: var(--blue-soft); color: var(--navy); }
.tag.churned { background: var(--purple-soft); color: var(--purple); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.released { background: var(--gold-soft); color: #92560b; }

.dnc-wrap { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.az { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; font-size: 12px; }
.az a { text-decoration: none; color: var(--muted); padding: 1px 0; text-align: center; }
.az a.has { color: var(--navy); font-weight: 700; }
.letter { font: 800 18px var(--sans); color: var(--navy); padding: 16px 4px 6px; }
.dnc-row { display: grid; grid-template-columns: 14px 1fr 180px auto 28px; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; margin-bottom: 6px; cursor: pointer; }
.dnc-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.dnc-row .dot.red_marked { background: var(--red); } .dnc-row .dot.churned { background: var(--purple); }
.dnc-row .npn { font: 13px var(--mono); color: var(--muted); }
.dnc-row .note { grid-column: 2 / -1; color: var(--muted); font-size: 13px; }

.cc-modal { position: fixed; inset: 0; background: rgba(5,10,40,.45); z-index: 50; display: flex; justify-content: flex-end; }
.cc-modal[hidden] { display: none; }
.cc-modal-box { position: relative; background: #fff; width: min(560px, 100%); height: 100%; overflow: auto; padding: 26px 26px 40px; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.cc-x { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 28px; cursor: pointer; color: var(--muted); }
.cc-modal h2 { margin: 0 0 4px; }
.form { display: grid; gap: 12px; margin: 16px 0; }
.form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-weight: 400; color: var(--ink); background: #fff; }
.form textarea { min-height: 90px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-weight: 600; color: var(--ink); cursor: pointer; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.section { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.section h3 { margin: 0 0 10px; font-size: 15px; }
.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
.mini td, .mini th { padding: 7px 6px; position: static; background: none; }
.cc-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; }
.cc-toast.show { opacity: 1; }
.cc-toast.err { background: var(--red); }
.note-box { background: var(--gold-soft); border: 1px solid #f1d6a6; color: #6b4206; border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
@media (max-width: 720px) {
  .cc-top { flex-wrap: wrap; }
  .dnc-row { grid-template-columns: 14px 1fr auto; } .dnc-row .npn, .dnc-row .chev { display: none; }
  .form .two { grid-template-columns: 1fr; }
}

/* icons */
.ic { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.cc-nav a { display: inline-flex; align-items: center; gap: 7px; }
.cc-nav a .ic { opacity: .85; }
.card h3.with-ic { display: flex; align-items: center; gap: 8px; }
.card h3.with-ic .ic { color: var(--navy); }
.card.module { text-decoration: none; color: inherit; display: block; }
.mod-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--navy); margin-bottom: 14px; transition: background-color .2s, color .2s; }
.card.module:hover .mod-ic { background: var(--navy); color: #fff; }
.card.module h3 { color: var(--ink); font-size: 14px; }

/* home boards: Bulletin board + Quick links, side by side, vertical lists of equal height */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 14px; align-items: start; margin-bottom: 14px; }
.home-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.home-col .rprev { margin-bottom: 0; }
@media (max-width: 980px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }

/* collapsible lists on the home boxes */
.clip { position: relative; overflow: hidden; transition: max-height .32s ease; }
.clip.clipped::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(rgba(255,255,255,0), #fff 85%); pointer-events: none; transition: opacity .2s; }
.clip.clipped:hover::after { opacity: .55; }
.more-bar { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; margin-top: 4px; padding: 5px; border: 0; border-radius: 7px; background: none; color: var(--navy); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background-color .15s; }
.more-bar:hover, .clip.clipped:hover + .more-bar { background: var(--blue-soft); }
/* the row takes the calendar's height; the bulletin and quick links fill it and scroll */
.board { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 8px; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 2px 6px; }
.board-head .btn.sm { padding: 3px 10px; font-size: 12.5px; text-decoration: none; }
.board-head h2 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; letter-spacing: .02em; }
/* calendar header: My calendar, Show and + Add date wrap onto a second line instead of running past the box */
.board-head:has(.cal-tools) { flex-wrap: wrap; row-gap: 8px; }
.cal-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; margin-left: auto; }
.cal-tools .btn { white-space: nowrap; }
.board-head h2 .ic { color: var(--navy); }
.board-head .count { font-weight: 700; font-size: 11px; color: var(--navy); background: var(--blue-soft); border-radius: 999px; padding: 1px 7px; }
.board-note { margin: 0 2px 8px; font-size: 12.5px; color: var(--muted); }
.board-note.strong { display: flex; align-items: center; gap: 6px; color: #7a4a06; background: var(--gold-soft); border: 1px solid #f1dcb0; border-radius: 7px; padding: 4px 8px; font-size: 12px; font-weight: 600; margin: 0 0 6px; }
.board-note.strong .ic { flex-shrink: 0; color: #b7740f; }
.board-list { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; }
.board-empty { margin: 4px 2px; font-size: 13.5px; color: var(--muted); }

.post { min-width: 0; overflow: hidden; border-left: 3px solid var(--navy); border-radius: 6px; background: #f8f9fd; }
.post.important { border-left-color: var(--gold); background: #fffaf1; }
.post.urgent { border-left-color: var(--red); background: #fff6f6; }
.post.expired { opacity: .55; }
.post-line { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 1px; padding: 5px 9px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.post-line:hover .post-title { text-decoration: underline; }
.post-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ptag { flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--blue-soft); color: var(--navy); }
.ptag.important { background: var(--gold-soft); color: #92560b; }
.ptag.urgent { background: var(--red-soft); color: var(--red); }
.pinned { flex-shrink: 0; display: inline-flex; color: var(--muted); }
.newb { flex-shrink: 0; font-size: 10px; font-weight: 800; text-transform: uppercase; background: var(--gold); color: #fff; padding: 1px 5px; border-radius: 4px; }
.post-when { flex-shrink: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.post-title { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post.open .post-title { white-space: normal; overflow-wrap: anywhere; }
.post-peek { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { padding: 2px 10px 6px; }
.post-body { color: var(--ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--muted); min-height: 22px; flex-wrap: wrap; }
.post-actions { margin-left: auto; display: flex; gap: 6px; }

.qlink { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.qlink:hover { border-color: #c5cae3; box-shadow: 0 3px 10px rgba(10,26,140,.06); }
.qlink.open { border-color: #c5cae3; background: #fbfcff; }
.qlink-row { display: flex; align-items: center; min-width: 0; }
.qlink-main { flex: 1; display: flex; align-items: center; gap: 9px; padding: 5px 4px 5px 8px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.qlink-main:hover .qlink-title { text-decoration: underline; }
.qlink-ic { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--blue-soft); color: var(--navy); }
.qlink-ic.k-sheet { background: #e6f4ea; color: #137333; }
.qlink-ic.k-doc { background: #e8f0fe; color: #1a56c4; }
.qlink-ic.k-drive { background: #fef7e0; color: #a86500; }
.qlink-ic.k-form, .qlink-ic.k-clickup { background: #f3e8fd; color: #7b2cbf; }
.qlink-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.qlink-title { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qlink.open .qlink-title { white-space: normal; overflow-wrap: anywhere; }
.qlink-note { font-size: 12.5px; color: var(--muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qlink-go { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; margin-right: 4px; border-radius: 6px; color: var(--muted); }
.qlink-go:hover { background: var(--blue-soft); color: var(--navy); }
.qlink-more { padding: 0 10px 8px 43px; }
.qlink-full { font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.qlink-meta { margin-top: 4px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.qlink-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.qlink-actions .btn.sm { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 12.5px; text-decoration: none; }
@media (max-width: 560px) { .qlink-more { padding-left: 10px; } }

.linkbtn { border: 0; background: none; color: var(--navy); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 4px 0; cursor: pointer; }
.form select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr 1fr; } .stat { padding: 8px 10px; gap: 8px; } .stat-ic { display: none; } .stat-v { font-size: 16px; } }

/* summary stats (compact row) */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin-bottom: 18px; }
.stat > span:last-child { min-width: 0; }
.stat { min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.stat:hover { border-color: #c5cae3; box-shadow: 0 4px 14px rgba(10,26,140,.06); }
.stat-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--navy); flex-shrink: 0; }
.stat-l { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-v { display: block; font: 700 20px/1.2 var(--mono); }
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr 1fr; } .stat { padding: 8px 12px; } .stat-ic { display: none; } .stat-v { font-size: 17px; } }

/* account menu */
.cc-user { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: rgba(255,255,255,.1); }
.acct-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; letter-spacing: .02em; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 280px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(5,10,40,.18); padding: 6px; z-index: 40; }
.acct-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-hname { font-weight: 700; }
.acct-email { font-size: 13px; color: var(--muted); word-break: break-all; }
.acct-role { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--blue-soft); padding: 2px 7px; border-radius: 5px; }
.acct-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.acct-item:hover { background: #f3f5fc; }
.acct-item .ic { color: var(--muted); }
.acct-item.danger { color: var(--red); } .acct-item.danger .ic { color: var(--red); }
.prof-preview { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfe; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; }
.swatch input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.form label.swatch { display: inline-block; }
.sec-list { padding-left: 20px; line-height: 1.6; color: var(--ink); }
@media (max-width: 720px) { .cc-user { display: block; } .acct-name { display: none; } .acct-btn { padding: 3px; } }

/* ---------- layout: slim top bar + grouped sidebar ---------- */
.cc-top { gap: 12px; padding: 8px 18px; height: 56px; }
.cc-spacer { flex: 1; }
.cc-burger { display: none; border: 0; background: transparent; color: #fff; padding: 6px; border-radius: 8px; cursor: pointer; }
.cc-burger:hover { background: rgba(255,255,255,.1); }
.cc-shell { display: flex; align-items: flex-start; }
.cc-side { position: sticky; top: 56px; height: calc(100vh - 56px); width: 232px; flex-shrink: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); padding: 14px 10px 10px; overflow-y: auto; transition: width .22s cubic-bezier(.32,.72,0,1); z-index: 25; }
.cc-side .cc-nav { display: block; flex: 1; overflow: visible; }
.nav-group { margin-bottom: 14px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px; white-space: nowrap; }
.cc-side .cc-nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin-bottom: 2px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.cc-side .cc-nav a .ic { color: var(--muted); opacity: 1; }
.cc-side .cc-nav a:hover { background: #f1f3fb; color: var(--ink); }
.cc-side .cc-nav a[aria-current="page"] { background: var(--blue-soft); color: var(--navy); }
.cc-side .cc-nav a[aria-current="page"] .ic { color: var(--navy); }
.cc-collapse { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.cc-collapse:hover { background: #f1f3fb; color: var(--ink); }
.cc-collapse svg { transition: transform .22s; }
.cc-main { flex: 1; min-width: 0; max-width: 1240px; margin: 0 auto; }
html.nav-collapsed .cc-side { width: 64px; }
html.nav-collapsed .cc-side .cc-nav a span, html.nav-collapsed .nav-label, html.nav-collapsed .cc-collapse span { display: none; }
html.nav-collapsed .cc-side .cc-nav a, html.nav-collapsed .cc-collapse { justify-content: center; padding: 9px; }
html.nav-collapsed .nav-group { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
html.nav-collapsed .nav-group:last-child { border-bottom: 0; }
html.nav-collapsed .cc-collapse svg { transform: rotate(180deg); }
.cc-scrim { position: fixed; inset: var(--side-top, 56px) 0 0 0; background: rgba(5,10,40,.4); z-index: 24; }
@media (max-width: 900px) {
  .cc-burger { display: inline-grid; place-items: center; }
  .cc-top { flex-wrap: nowrap; }
  .cc-brand span { font-size: 12px; }
  .cc-side { position: fixed; left: 0; top: var(--side-top, 56px); height: calc(100vh - var(--side-top, 56px)); width: 260px; transform: translateX(-100%); transition: transform .22s cubic-bezier(.32,.72,0,1); box-shadow: 10px 0 30px rgba(5,10,40,.15); }
  html.nav-open .cc-side { transform: none; }
  html.nav-collapsed .cc-side { width: 260px; }
  html.nav-collapsed .cc-side .cc-nav a span, html.nav-collapsed .nav-label { display: initial; }
  html.nav-collapsed .cc-side .cc-nav a { justify-content: flex-start; padding: 8px 10px; }
  html.nav-collapsed .nav-group { border-bottom: 0; }
  .cc-collapse { display: none; }
}
@media (max-width: 560px) { .cc-top { padding: 8px 10px; gap: 8px; } .cc-brand span { font-size: 0; } .cc-brand span b { font-size: 14px; letter-spacing: .14em; } }

/* row selection + bulk delete */
th.ck, td.ck { width: 40px; padding-right: 0; }
td.ck input, th.ck input { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; }
tr.picked td { background: #eef1fc; }
.sel-pill { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 4px; background: #101a5c; color: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 14px 34px rgba(5,10,40,.3); font-size: 14px; }
.sel-pill .sep { color: #9aa3d6; margin: 0 6px; }
.pill-btn { border: 0; background: transparent; color: #d7dcf7; font: inherit; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.pill-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.pill-btn.danger { background: #c0262e; color: #fff; }
.pill-btn.danger:hover { background: #a51f26; }
.del-list { list-style: none; padding: 0; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; }
.del-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.del-list li:last-child { border-bottom: 0; }
.btn.danger-solid { background: var(--red); border-color: var(--red); color: #fff; }

/* main search: clearly outlined, blue icon, "/" to focus */
.search { height: 44px; border: 2px solid rgba(10,26,140,.3); border-radius: 10px; padding-left: 42px; padding-right: 40px; font-size: 15px; box-shadow: 0 1px 3px rgba(10,26,140,.08);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%230a1a8c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6.5'/%3E%3Cpath d='m14 14 4.5 4.5'/%3E%3C/svg%3E") 13px 50% no-repeat; transition: border-color .2s, box-shadow .2s; }
.search::placeholder { color: rgba(11,16,51,.5); }
.search:hover { border-color: rgba(10,26,140,.5); }
.search:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(10,26,140,.12); }
.search-wrap { position: relative; }
.search-wrap kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 11px var(--mono); color: var(--muted); border: 1px solid rgba(11,16,51,.2); border-radius: 4px; padding: 1px 6px; background: var(--bg); pointer-events: none; }
.search-wrap .search:not(:placeholder-shown) + kbd { display: none; }

/* requests board (kanban) */
.hero.slim { padding: 18px 24px; }
.hero.slim h1 { font-size: 24px; }
.hero.slim p { max-width: 720px; font-size: 14px; }
.req-tools .sel { padding: 0 12px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); max-width: 210px; }
.req-tools .btn { height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.btn.spin .ic { animation: ccspin 1s linear infinite; }
@keyframes ccspin { to { transform: rotate(360deg); } }
.req-status { font-size: 12.5px; color: var(--muted); margin: -4px 2px 12px; }
.req-status .neg { color: var(--red); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 12px; align-items: stretch; overflow-x: auto; padding-bottom: 6px; }
.kcol { display: flex; flex-direction: column; background: #eef0f8; border-radius: 12px; padding: 10px 8px 8px; min-width: 0; min-height: max(280px, calc(100vh - 330px)); transition: background-color .12s, box-shadow .12s; }
.kcol.over { background: #e1e8fb; box-shadow: inset 0 0 0 2px rgba(47,111,228,.45); }
.kdrop-line { height: 3px; border-radius: 2px; background: #2f6fe4; margin: -2px 2px; box-shadow: 0 0 0 3px rgba(47,111,228,.15); }
.kcol-head { display: flex; align-items: center; gap: 7px; padding: 0 4px 8px; flex-wrap: wrap; }
.kcol-head h2 { margin: 0; font-size: 14px; letter-spacing: .02em; }
.kcol-head .count { font-weight: 700; font-size: 11px; color: var(--navy); background: #fff; border-radius: 999px; padding: 1px 7px; }
.khint { flex-basis: 100%; font-size: 11.5px; color: var(--muted); padding-left: 15px; }
.kdot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.kdot.new { background: #2f6fe4; } .kdot.working { background: var(--gold); } .kdot.waiting { background: #6b4fa0; } .kdot.done { background: #17734a; }
.kcol-list { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 7px; min-height: 80px; max-height: calc(100vh - 290px); overflow-y: auto; border-radius: 8px; padding: 2px; transition: background-color .15s; scrollbar-width: thin; }
.kempty { margin: 6px 6px; font-size: 13px; color: var(--muted); }
.kcol .linkbtn { padding: 6px 6px 0; font-size: 12.5px; }
.rcard { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 8px; padding: 8px 10px; cursor: grab; min-width: 0; transition: box-shadow .15s, border-color .15s; }
.rcard:hover { box-shadow: 0 4px 12px rgba(10,26,140,.08); }
.rcard:focus-visible { outline: 2px solid var(--blue, #2f6fe4); outline-offset: 2px; }
.rcard.dragging { opacity: .45; }
.rcard-top { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.rkind { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rage { flex-shrink: 0; font-size: 11.5px; color: var(--muted); }
.rname { font-weight: 600; font-size: 14px; margin-top: 3px; overflow-wrap: anywhere; }
.rmail { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdetail { margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--ink, #1c2340); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rhand { display: inline-flex; vertical-align: -1px; margin-right: 4px; color: var(--muted); }
.kadd { margin-left: auto; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.kadd:hover, .kadd:focus-visible { background: #fff; border-color: var(--line, #dfe3ee); color: var(--navy); }
.rcard.fresh { animation: rfresh 1.6s ease-out; }
@keyframes rfresh { from { box-shadow: 0 0 0 3px rgba(47,111,228,.45); } to { box-shadow: 0 0 0 3px rgba(47,111,228,0); } }
.rdetails { white-space: normal; font-size: 14.5px; line-height: 1.5; }
.rfoot { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 22px; }
.rown { margin-left: auto; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.unowned { color: var(--muted); font-size: 12px; }
.rcom { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.rdue { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--blue-soft); color: var(--navy); }
.rdue.soon { background: var(--gold-soft); color: #92560b; }
.rdue.late { background: var(--red-soft); color: var(--red); }
.rcard.k-contract { border-left-color: #2f6fe4; } .rcard.k-contract .rkind, .rkind.k-contract { color: #1a56c4; }
.rcard.k-newagent { border-left-color: var(--navy); }
.rcard.k-release { border-left-color: var(--gold); } .rcard.k-release .rkind, .rkind.k-release { color: #92560b; }
.rcard.k-support { border-left-color: #17734a; } .rcard.k-support .rkind, .rkind.k-support { color: #17734a; }
.rcard.k-rewards { border-left-color: #6b4fa0; } .rcard.k-rewards .rkind, .rkind.k-rewards { color: #6b4fa0; }
.rcard.k-ascend { border-left-color: #0f7c86; } .rcard.k-ascend .rkind, .rkind.k-ascend { color: #0f7c86; }
.rdraw h2 { margin: 6px 0 4px; }
.rdraw-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; padding-right: 34px; }
.rcontact { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.rcontact .btn { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.rcontrols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.rcontrols label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rcontrols select, .rcontrols input { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); min-width: 0; }
.ranswers { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; max-height: 300px; overflow-y: auto; }
.ranswers dt { color: var(--muted); } .ranswers dd { margin: 0; overflow-wrap: anywhere; }
.ranswers dt.full { grid-column: 1 / -1; color: var(--ink); font-weight: 600; margin-top: 4px; }
.rnotes { display: grid; gap: 8px; margin-bottom: 8px; }
.rnote { background: #f8f9fd; border-radius: 8px; padding: 7px 10px; font-size: 14px; }
.rnote-meta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.rnote-form { display: grid; gap: 6px; justify-items: end; }
.rnote-form textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; resize: vertical; }
@media (max-width: 720px) { .req-tools { flex-wrap: wrap; } .req-tools .sel { flex: 1; max-width: none; } .kanban { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; } .kcol { scroll-snap-align: start; } .rcontrols { grid-template-columns: 1fr 1fr; } .ranswers { grid-template-columns: 1fr; } }
.avatar.sm { background: var(--navy); }

/* home: requests preview under the boards */
.rprev { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 8px; margin-bottom: 14px; }
.rprev-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.rps { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f2f4fb; color: var(--ink); text-decoration: none; font-size: 12.5px; }
.rps b { font-family: var(--mono); font-size: 13px; }
.rps:hover { background: var(--blue-soft); }
.rps.strong { background: var(--blue-soft); color: var(--navy); font-weight: 600; }
.rps.late { background: var(--red-soft); color: var(--red); font-weight: 600; }
.rps.sep { width: 1px; padding: 0; background: var(--line); border-radius: 0; margin: 2px 2px; }
.rprev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rprev-list a { display: flex; align-items: center; gap: 10px; padding: 6px 9px; border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 7px; text-decoration: none; color: inherit; min-width: 0; }
.rprev-list a:hover { box-shadow: 0 3px 10px rgba(10,26,140,.06); border-color: #c5cae3; }
.rprev-list a.k-contract { border-left-color: #2f6fe4; } .rprev-list a.k-release { border-left-color: var(--gold); } .rprev-list a.k-support { border-left-color: #17734a; } .rprev-list a.k-rewards { border-left-color: #6b4fa0; } .rprev-list a.k-ascend { border-left-color: #0f7c86; }
.rprev-list .rkind { flex: 0 1 190px; }
.rp-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rprev-list .rown { margin-left: 0; width: 22px; }
@media (max-width: 720px) { .rprev-list .rkind { display: none; } .rprev-list .rage { display: none; } }

.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* team calendar */
.cal { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 8px; min-width: 0; }
.cal-nav { display: flex; align-items: center; gap: 4px; margin: 0 2px 4px; font-size: 13.5px; }
.cal-nav b { min-width: 120px; text-align: center; }
.cal-arrow { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--navy); cursor: pointer; }
.cal-arrow:hover { background: var(--blue-soft); }
.cal-nav .linkbtn { margin-left: auto; padding: 0 4px; font-size: 12.5px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cw { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); padding: 2px 0; }
.cd { position: relative; height: 30px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; padding: 0 0 8px; font-variant-numeric: tabular-nums; }
.cd.pad { cursor: default; }
.cd:hover:not(.pad) { background: #f0f2fa; }
.cd.past { color: #9aa0b8; }
.cd.has { font-weight: 700; }
.cd.today { background: var(--navy); color: #fff; }
.cd.today:hover { background: var(--navy); }
.cd.sel { box-shadow: inset 0 0 0 2px #2f6fe4; }
.cdots { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; justify-content: center; gap: 2px; }
.cdots i, .ev .ev-date::after { width: 5px; height: 5px; border-radius: 50%; background: #2f6fe4; }
.cdots i.deadline { background: var(--red); } .cdots i.meeting { background: #6b4fa0; } .cdots i.training { background: #17734a; } .cdots i.closed { background: var(--gold); }
.cd.today .cdots i { box-shadow: 0 0 0 1px #fff; }
.cal-list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 2px 5px; font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 8px; }
.cal-list-head .linkbtn { padding: 0; font-size: 12px; }
.cal-list { display: grid; gap: 4px; }
.ev { border: 1px solid var(--line); border-left: 3px solid #2f6fe4; border-radius: 7px; background: #fff; min-width: 0; }
.ev.deadline { border-left-color: var(--red); } .ev.meeting { border-left-color: #6b4fa0; } .ev.training { border-left-color: #17734a; } .ev.closed { border-left-color: var(--gold); }
.ev.open { background: #fbfcff; }
.ev-line { width: 100%; display: flex; align-items: center; gap: 9px; padding: 4px 8px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ev-line:hover .ev-title { text-decoration: underline; }
.ev-date { flex-shrink: 0; display: grid; justify-items: center; width: 30px; line-height: 1; }
.ev-date b { font-size: 15px; } .ev-date span { font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.ev-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ev-title { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.open .ev-title { white-space: normal; overflow-wrap: anywhere; }
.ev-when { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-when b { color: var(--navy); }
.ev.deadline .ev-when b { color: var(--red); }
.ev-more { padding: 0 9px 7px 47px; }
.ev-note { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ev-meta { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ev-actions .btn.sm { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 12.5px; text-decoration: none; }

/* scrolling lists with a "more" hint (Calendar, Quick links) */
.scrolly { position: relative; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d3d7e8 transparent; padding-right: 2px; --fade: 34px; }
.scrolly.more-below { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent); }
.scrolly.more-above { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px); mask-image: linear-gradient(to bottom, transparent, #000 18px); }
.scrolly.more-above.more-below { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px, #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to bottom, transparent, #000 18px, #000 calc(100% - var(--fade)), transparent); }
.scroll-hint { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 3px auto 0; padding: 1px 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: color .15s, background-color .15s; }
.scroll-hint span { display: inline-block; animation: hintbob 1.8s ease-in-out 2; }
.scroll-hint:hover { color: var(--navy); background: var(--blue-soft); }
@keyframes hintbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }

/* universal search in the home banner */
.gsearch { position: relative; margin-top: 14px; max-width: 760px; }
.gsearch-box { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px 0 14px; background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(3, 10, 70, .25); color: var(--navy); }
.gsearch-box:focus-within { box-shadow: 0 0 0 3px rgba(240, 180, 80, .55), 0 6px 20px rgba(3, 10, 70, .25); }
.gsearch-box .ic { flex-shrink: 0; }
.gsearch-box .search { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; box-shadow: none !important; background: none; padding: 0 !important; font: inherit; font-size: 16px; color: var(--ink); }
.gsearch-box kbd { flex-shrink: 0; font: 600 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; background: #f6f7fb; }
.gsearch-results { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: min(62vh, 520px); overflow-y: auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(10, 26, 140, .18); padding: 6px; scrollbar-width: thin; }
.gs-group + .gs-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.gs-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 3px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gs-head .ic { color: var(--navy); }
.gs-head span { margin-left: auto; font-weight: 600; letter-spacing: 0; text-transform: none; }
.gs-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 6px 30px 6px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.gs-item.active { background: var(--blue-soft); }
.gs-title { font-weight: 600; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-sub { font-size: 12.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-ext { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.gs-item mark { background: #ffe8a8; color: inherit; border-radius: 2px; padding: 0 1px; }
.gs-empty { margin: 0; padding: 12px; font-size: 14px; color: var(--muted); }
.post.flash { animation: ccflash 1.6s ease 1; }
@keyframes ccflash { 0%, 40% { box-shadow: 0 0 0 3px rgba(240, 180, 80, .8); } 100% { box-shadow: none; } }
@media (max-width: 560px) { .gsearch-box kbd { display: none; } .gsearch-box .search { font-size: 15px; } }
.form-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row label[hidden] { display: none; }
.ev-rep { display: inline-flex; vertical-align: -1px; margin-right: 4px; color: var(--muted); }
.ev-yours { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--navy); }
.rcard.k-ghl { border-left-color: #475569; } .rcard.k-ghl .rkind, .rkind.k-ghl { color: #475569; }
.rprev-list a.k-ghl { border-left-color: #475569; }
.rforms-web { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.rforms-list { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.rform { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.rform:hover { background: #f4f6fc; }
.rform[hidden] { display: none; }
.search.sm { height: 36px; font-size: 14px; margin-bottom: 6px; }
.rel-badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; vertical-align: 1px; white-space: nowrap; }
.rel-badge.red { background: var(--red); }
.rel-badge.orange { background: #d9822b; }
.rel-note { margin-top: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.45; }
.rel-note.red { background: var(--red-soft); color: var(--red); border: 1px solid rgba(200, 40, 40, .25); }
.rel-note.orange { background: #fff3e4; color: #9a5310; border: 1px solid #f3cf9f; }

/* ---------- New Agents tracker ---------- */
.kanban.five { grid-template-columns: repeat(5, minmax(220px, 1fr)); }
.kdot.na-new { background: #2f6fe4; } .kdot.na-call { background: var(--gold); } .kdot.na-waiting { background: #6b4fa0; } .kdot.na-onboarding { background: #0f7c86; } .kdot.na-done { background: #17734a; }
.rcard.na { border-left: 3px solid #c7cde0; }
.rcard.na.na-orange { border-left-color: #e08a1e; }
.rcard.na.na-red { border-left-color: var(--red); background: #fff8f8; }
.rkind.na-call { display: inline-flex; align-items: center; gap: 4px; color: #92560b; }
.na-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.na-flag { font-size: 11px; font-weight: 600; border-radius: 5px; padding: 2px 6px; line-height: 1.3; }
.na-flag.red { background: var(--red-soft); color: var(--red); }
.na-flag.orange { background: #fdf0de; color: #9a5a08; }
.rps.soon { background: #fdf0de; color: #9a5a08; font-weight: 600; }
.na-note { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 8px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.na-note.red { background: var(--red-soft); color: var(--red); }
.na-note.orange { background: #fdf0de; color: #9a5a08; }
.na-note.grey { background: #eef0f6; color: var(--muted); font-weight: 500; }
.na-sec h3 { display: flex; align-items: center; gap: 6px; }
.na-hint { margin: -2px 0 8px; font-size: 12.5px; }
.na-when { margin-bottom: 8px; }
.na-checks { display: grid; gap: 6px; }
.na-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.na-check input { width: 17px; height: 17px; accent-color: var(--navy); }
.na-check input:disabled + span { color: var(--muted); }
.na-lost .table-wrap { margin-top: 4px; }
.na-lost tr { cursor: pointer; }

/* ---------- Team & access ---------- */
.team-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.team-note svg { flex-shrink: 0; margin-top: 2px; color: var(--navy); }
.team-add { display: flex; gap: 8px; align-items: center; max-width: 760px; margin: 0 0 16px; }
.team-input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line, #d5d9ea); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; }
.team-input:focus, .team-sel:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,26,140,.12); }
.team-sel { height: 38px; border: 1px solid var(--line, #d5d9ea); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; color: inherit; cursor: pointer; }
.team-sel:disabled { cursor: default; background: #f6f7fb; }
.team-who { display: flex; align-items: center; gap: 10px; }
.team-who .muted { font-size: 12.5px; }
.team-table td { vertical-align: middle; }
.team-table tr { cursor: default; }
.team-table tr.off td { opacity: .6; }
.team-table tr.sep td { background: var(--soft, #f6f7fb); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); opacity: 1; }
.team-table .tag { font-size: 11px; font-weight: 600; background: #e7eafb; color: var(--navy); border-radius: 5px; padding: 1px 6px; }
.role-pill { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #eef0f6; color: var(--ink, #1c2340); }
.role-pill.owner { background: #fdf0de; color: #8a5208; }
.role-pill.admin { background: #e7eafb; color: var(--navy); }
.state { font-size: 12.5px; font-weight: 700; }
.state.on { color: #17734a; } .state.off { color: var(--red); } .state.warn { color: #9a5a08; }
.note-box.team-note.linked { background: #e9f5ee; border-color: #bfe1cc; color: #145c3b; }
.note-box.team-note.linked svg { color: #17734a; }
.team-foot { font-size: 13px; margin-top: 10px; }

/* Agent directory: contracting and general notes in the agent panel */
.section h3 .count { font-weight: 700; font-size: 11px; color: var(--navy); background: var(--blue-soft); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.agent-note { border-left: 3px solid var(--blue-soft); padding: 4px 0 4px 10px; margin: 0 0 10px; }
.agent-note-meta { font-size: 12.5px; color: var(--muted, #667); display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; }
.agent-note-meta b { color: var(--ink, inherit); }
.agent-note-tools { margin-left: auto; display: flex; gap: 6px; }
.agent-note-tools .linkbtn { padding: 0 2px; font-size: 12px; }
.agent-note-tools .linkbtn.danger { color: #b42318; }
.agent-note-body { margin-top: 3px; white-space: normal; overflow-wrap: anywhere; }
.agent-note-add { margin-top: 6px; }
.agent-note-add textarea { min-height: 54px; }

/* Agent directory: Remove from directory (warning pop-up and the "removed" banner) */
.warn-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(5, 10, 92, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.warn-box { background: #fff; border-radius: 14px; max-width: 460px; width: 100%; padding: 24px 24px 20px; box-shadow: 0 20px 60px rgba(5, 10, 92, .35); border-top: 5px solid var(--red); }
.warn-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.warn-box h2 { margin: 0 0 8px; font-size: 19px; }
.warn-body p { margin: 0 0 8px; }
.warn-list { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.warn-list li { margin: 4px 0; }
.warn-reason { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.warn-reason input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-weight: 400; color: var(--ink); }
.warn-box .actions { margin-top: 16px; }
.removed-banner { background: var(--red-soft); border: 1px solid #f3c4c4; border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; font-size: 13.5px; }

/* Carrier Submissions */
.carrier-chip { display: inline-block; color: #fff; border-radius: 6px; padding: 2px 9px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sst { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; border: 0; }
.sst.requested { background: #eceef4; color: #4a5170; }
.sst.contract_sent { background: var(--blue-soft); color: var(--navy); }
.sst.pending { background: var(--gold-soft); color: #8a5a00; }
.sst.done { background: var(--green-soft); color: var(--green); }
.sst.completed { background: #cfeedd; color: #0d5634; }
.sst-sel { cursor: pointer; appearance: none; -webkit-appearance: none; padding: 3px 22px 3px 10px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 11px) 50%, calc(100% - 7px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.sub-board { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sub-group + .sub-group { border-top: 1px solid var(--line); }
.sub-head { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fafbfe; border: 0; padding: 10px 14px; cursor: pointer; font: inherit; }
.sub-head:hover { background: #f1f3fb; }
.sub-head .tri { color: var(--muted); font-size: 11px; width: 10px; }
.sub-group .table-wrap { border: 0; border-radius: 0; margin: 0; }
.sub-table { table-layout: fixed; width: 100%; }
.sub-table td { overflow-wrap: anywhere; }
.sub-table tbody tr { cursor: pointer; }
.sub-table tbody tr:hover { background: #f6f7fd; }
.sub-note { font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #fff4d6; color: #8a5a00; border-radius: 4px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
.sub-mini tr.clickable { cursor: pointer; }
.sub-mini tr.clickable:hover { background: #f6f7fd; }
@media (max-width: 760px) { .sub-table col { width: auto !important; } .sub-table { table-layout: auto; min-width: 680px; } }

/* Carrier Submissions: carrier cards, work queue, carriers manager */
.sub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.sub-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.sub-card:hover { border-color: #c5cbe6; }
.sub-card.on { outline: 2px solid var(--navy); outline-offset: -1px; }
.sub-card .big { font-size: 20px; font-weight: 800; margin-top: 6px; }
.sub-card .sm { font-size: 12px; color: var(--muted); }
.late { color: var(--red); font-weight: 700; }
.sub-more { text-align: center; padding: 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sw { width: 24px; height: 24px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; display: inline-block; padding: 0; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px #fff inset; }
.cm-tools { text-align: right; white-space: nowrap; }
.cm-tools .linkbtn { padding: 0 4px; font-size: 12px; }
.cm-tools .linkbtn.danger { color: var(--red); }
/* Agent directory: Possible duplicates */
.dup-count { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 7px; margin-left: 4px; }
.dup-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.dup-why { display: inline-block; font-size: 11px; font-weight: 700; background: #fff4d6; color: #8a5a00; border-radius: 4px; padding: 1px 6px; margin-bottom: 6px; }
.dup-sides { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 8px; align-items: start; }
.dup-vs { text-align: center; color: var(--muted); font-weight: 700; padding-top: 4px; }
.dup-side { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.dup-side > span { display: flex; flex-direction: column; font-size: 13px; }
.dup-side > span .muted { font-size: 12px; }
.dup-card .actions { margin-top: 8px; align-items: center; }

/* Multi-select everywhere: board cards in Select mode, the home boxes' pick lists, the bottom bar */
#cc-selbar[hidden] { display: none; }
.head-btns { display: flex; gap: 6px; align-items: center; }
.kanban.selecting .rcard, #nboard.selecting .rcard { cursor: pointer; padding-left: 34px; position: relative; }
.rcard .kpick { position: absolute; left: 10px; top: 12px; width: 16px; height: 16px; margin: 0; pointer-events: none; accent-color: var(--navy); }
.rcard.picked { outline: 2px solid var(--navy); outline-offset: -1px; background: #f3f5ff; }
.pick-all { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; margin: 6px 0 8px; }
.pick-all input, .pick-row input { width: auto; margin: 0; accent-color: var(--navy); }
.pick-list { border: 1px solid var(--line); border-radius: 10px; max-height: 55vh; overflow: auto; }
.pick-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.pick-row:first-child { border-top: 0; }
.pick-row:hover { background: #f6f7fd; }
.pick-row > span { display: flex; flex-direction: column; font-size: 13.5px; }
.pick-row > span .muted { font-size: 12px; }
.tbl .ck, .sub-table .ck { width: 38px; }
.tbl tr.picked td, .sub-table tr.picked td { background: #f3f5ff; }

/* Agent lookup: suggestions from the Agent directory under a name field */
.lk-wrap { position: relative; }
.lk-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(5,10,40,.18); overflow: hidden; max-height: 320px; overflow-y: auto; }
.lk-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; background: #fff; border: 0; border-top: 1px solid var(--line); padding: 8px 12px; font: inherit; cursor: pointer; }
.lk-item:first-child { border-top: 0; }
.lk-item span { font-size: 12px; color: var(--muted); font-weight: 400; }
.lk-item:hover, .lk-item.on { background: #eef1fc; }
.lk-foot { font-size: 11px; color: var(--muted); padding: 5px 12px; background: #fafbfe; border-top: 1px solid var(--line); }
.lk-note { font-size: 12px; color: var(--green); margin-top: 4px; font-weight: 500; }
.lk-note.warn { color: #8a5a00; background: #fff4d6; padding: 6px 8px; border-radius: 6px; }
/* Possible duplicates: folded details under each side */
.dup-more { margin: 4px 0 0 24px; font-size: 12.5px; }
.dup-more summary { cursor: pointer; color: var(--navy); font-weight: 600; width: max-content; }
.dup-facts { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fafbfe; }
.dup-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.dup-facts span { color: var(--muted); }
.dup-facts b { font-weight: 600; text-align: right; }

/* US dates: MM/DD/YYYY text field + calendar button, the real date input hidden behind it */
.usd { position: relative; display: flex; align-items: stretch; width: 100%; }
.usd .usd-text { flex: 1; min-width: 0; padding-right: 36px; }
.usd .usd-text.bad { border-color: var(--red); background: #fff8f8; }
.usd .usd-cal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: 4px 6px; border-radius: 6px; cursor: pointer; display: flex; }
.usd .usd-cal:hover { background: var(--blue-soft); color: var(--navy); }
.usd .usd-native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.usd-hint { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; letter-spacing: .02em; }

/* Home layout: drag and resize widgets (GridStack); each widget fills its tile and its list scrolls inside it */
.home-tools { display: flex; justify-content: flex-end; margin: -4px 0 6px; min-height: 30px; }
.home-edit-btn { display: inline-flex; align-items: center; gap: 6px; }
.home-edit { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--blue-soft); border: 1px solid #cdd4f3; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.home-edit b { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); }
.home-edit-btns { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.gs-home { margin: 0 -7px 10px; }
.gs-home .grid-stack-item.gs-off { display: none; }
.gs-home .grid-stack-item-content { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; }
.gs-home .grid-stack-item-content > section { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; overflow: hidden; }
.gs-home .board-list, .gs-home .cal-list, .gs-home .rprev .rprev-list { flex: 1; min-height: 0; max-height: none !important; overflow: auto; }
.gs-home .more-bar, .gs-home .scroll-hint { display: none !important; }
.gs-home .cal { overflow: auto; }
.gs-home .home-numbers { overflow: auto; }
.gs-home .home-numbers .stats-row { margin: 0; }
.gs-home.gs-editing .grid-stack-item-content { outline: 2px dashed #9aa6e6; outline-offset: -1px; }
.gs-handle { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 6px 4px 10px; border-radius: 10px 10px 0 0; cursor: move; user-select: none; }
.gs-hide { border: 0; background: rgba(255,255,255,.15); color: #fff; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-size: 12px; }
.gs-hide:hover { background: rgba(255,255,255,.3); }
.gs-home.gs-editing .grid-stack-item-content > section { pointer-events: none; opacity: .92; }
/* if the layout tool can't load, or on a phone, widgets simply stack */
.gs-home.gs-fallback { display: flex; flex-direction: column; gap: 14px; margin: 0 0 10px; }
.gs-home.gs-fallback .grid-stack-item { position: static; }
