/* Strategy, calendar, briefs, media & budget, report, clients, workforce, team, settings. */

.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--sp-6); align-items: start; }
.split-side { position: sticky; top: calc(var(--topbar-h) + 12px); min-width: 0; }
@media (max-width: 1180px) { .split { grid-template-columns: minmax(0, 1fr); } .split-side { position: static; } }
.mt { margin-top: 8px; }
.hr { border: 0; border-top: 1px solid var(--divider); width: 100%; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.link { color: var(--primary-text); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.client-mark { display: inline-grid; place-items: center; border-radius: 14px; color: #fff; font-weight: 700; flex: none; }
.ch-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px 3px 8px; border-radius: 999px; color: var(--text); background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.ch-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* strategy map */
.sw-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sw-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--divider); background: var(--surface-2); cursor: pointer; transition: opacity var(--d-base), border-color var(--d-base), background var(--d-base), box-shadow var(--d-base); }
.sw-item:hover { border-color: var(--border-strong); }
.sw-id, .link-id { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); height: fit-content; flex: none; direction: ltr; }
.sw-item.is-linked, .rec-btn.is-linked { border-color: var(--primary); background: var(--primary-soft); }
.sw-item.is-focus, .rec-btn.is-focus { box-shadow: 0 0 0 3px var(--focus); border-color: var(--primary); }
.sw-item.is-dim, .rec-btn.is-dim { opacity: .42; }
.rec-btn { cursor: pointer; transition: opacity var(--d-base), border-color var(--d-base), background var(--d-base), box-shadow var(--d-base); }
.why { padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }

/* calendar */
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.cal-title { font-size: var(--fs-lg); font-weight: 700; min-width: 140px; text-align: center; }
.cal-sum { display: flex; align-items: center; gap: 16px; min-width: min(360px, 100%); flex: 1; max-width: 460px; }
.cal-sum b { font-size: var(--fs-2xl); display: block; line-height: 1; }
.cal-sum span { font-size: var(--fs-xs); color: var(--text-3); }
.cal-filters { padding: 0 20px 14px; border-bottom: 1px solid var(--divider); }
.divider-v { width: 1px; height: 22px; background: var(--border-strong); align-self: center; margin-inline: 4px; }
.cal-body { padding: 16px 20px 20px; }
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.cal-head > div { text-align: center; font-size: var(--fs-xs); font-weight: 700; color: var(--text-3); padding: 6px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-cell { min-height: 112px; background: var(--surface-2); border: 1px solid var(--divider); border-radius: var(--r-md); padding: 8px; text-align: start; display: flex; flex-direction: column; gap: 6px; font: inherit; color: inherit; cursor: pointer; transition: border-color var(--d-fast), background var(--d-fast), transform var(--d-base) var(--ease-out); position: relative; min-width: 0; }
.cal-cell:hover { border-color: var(--primary); background: var(--surface); transform: translateY(-1px); }
.cal-cell.is-out { background: transparent; border-color: transparent; pointer-events: none; }
.cal-cell.is-off { background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 6px, var(--surface-3) 6px, var(--surface-3) 7px); }
.cal-cell.is-ramadan { background: color-mix(in srgb, var(--attn) 9%, var(--surface-2)); border-color: var(--attn-border); }
.cal-cell.is-today { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cal-d { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; }
.is-today .cal-d { background: var(--primary); color: var(--on-primary); }
.cal-posts { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-post { display: flex; align-items: center; gap: 5px; font-size: 11.5px; line-height: 1.3; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); min-width: 0; }
.cal-post i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex: none; }
.cal-post b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-more { font-size: 11px; color: var(--text-3); font-weight: 600; padding-inline: 4px; }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; }
.cal-dots i { width: 7px; height: 7px; border-radius: 50%; }
.legend-ramadan { width: 14px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--attn) 22%, var(--surface)); border: 1px solid var(--attn-border); display: inline-block; }
@media (max-width: 1100px) { .cal-cell { min-height: 84px; padding: 6px; } .cal-post b { display: none; } .cal-post { padding: 0; background: none; } .cal-posts { flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 759px) { .cal-body { padding: 12px; } .cal-cell { min-height: 52px; } .cal-posts { display: none; } .cal-dots { display: flex; } .cal-head, .cal-grid { gap: 3px; } .cal-bar { padding: 12px; } .cal-filters { padding-inline: 12px; } .cal-title { min-width: 0; font-size: var(--fs-md); } }
.agenda { display: flex; flex-direction: column; gap: 14px; }
.agenda-day { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--divider); }
.agenda-day.is-today { color: var(--primary-text); }
.agenda-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); text-align: start; cursor: pointer; font: inherit; color: inherit; margin-bottom: 6px; transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.agenda-item:hover { border-color: var(--primary); box-shadow: var(--shadow-1); }
.ag-bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }

/* briefs */
.bcard2 { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); cursor: pointer; border-block-start: 4px solid var(--c); transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base); }
.bcard2:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.proof { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--divider); border-radius: var(--r-md); }
.proof svg { color: var(--primary); flex: none; margin-top: 3px; }

/* media & budget */
.calc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1280px) { .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-height: 150px; transition: border-color var(--d-base), background var(--d-base); }
.calc.is-ok { border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.calc.is-missing { background: var(--surface-2); border-style: dashed; border-color: var(--attn-border); }
.calc-id { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); direction: ltr; }
.calc-name { font-size: var(--fs-sm); color: var(--text-2); font-weight: 500; line-height: 1.5; }
.calc-val { font-size: var(--fs-xl); font-weight: 700; margin-top: auto; line-height: 1.3; }
.calc-missing { margin-top: auto; display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-sm); color: var(--attn-text); line-height: 1.5; }
.calc-missing svg { margin-top: 3px; flex: none; }
.alloc { list-style: none; display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
.alloc li { display: flex; gap: 10px; align-items: center; }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--divider); border-radius: var(--r-md); }
.unit { margin-inline-start: 6px; color: var(--text-3); font-weight: 400; font-size: var(--fs-xs); }
.suggest { display: flex; align-items: flex-start; gap: 8px; text-align: start; width: 100%; padding: 8px 10px; margin-top: 6px; background: var(--primary-soft); border: 1px dashed var(--primary); color: var(--primary-text); border-radius: var(--r-sm); cursor: pointer; font: inherit; font-size: var(--fs-sm); font-weight: 600; transition: background var(--d-fast); }
.suggest:hover { background: var(--primary-soft-2); }
.suggest em { display: block; font-style: normal; font-weight: 400; font-size: var(--fs-xs); color: var(--text-2); }
.suggest svg { margin-top: 2px; flex: none; }

/* report */
.report-doc { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px 48px 48px; box-shadow: var(--shadow-1); overflow: hidden; }
.report-head { border-bottom: 2px solid var(--text); padding-bottom: 18px; margin-bottom: 24px; }
.report-head h2 { font-size: var(--fs-2xl); font-weight: 700; margin-bottom: 6px; }
.report-sec { padding: 18px 0; border-top: 1px solid var(--divider); scroll-margin-top: calc(var(--topbar-h) + 12px); }
.report-sec h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); font-weight: 700; margin-bottom: 10px; }
.report-sec p, .report-sec li { line-height: 1.9; max-width: 72ch; }
.watermark { position: absolute; inset-block-start: 14px; inset-inline-end: 18px; font-size: 12px; font-weight: 700; color: var(--attn-text); background: var(--attn-soft); border: 1px solid var(--attn-border); padding: 3px 10px; border-radius: 999px; }
.watermark.is-final { color: var(--success-text); background: var(--success-soft); border-color: var(--success); }
.toc { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 9px 18px; font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; border-top: 1px solid var(--divider); }
.toc a:first-child { border-top: 0; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.toc a span { width: 22px; font-weight: 700; color: var(--text-3); font-size: 12px; }
.ack-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ack-list li { display: flex; gap: 8px; font-size: var(--fs-sm); color: var(--attn-text); background: var(--attn-soft); padding: 8px 10px; border-radius: var(--r-sm); line-height: 1.5; }
.ack-list li svg { flex: none; margin-top: 3px; }
@media (max-width: 759px) { .report-doc { padding: 24px 18px 28px; } }

/* workforce, team, settings */
.agent-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid var(--divider); }
.agent-stats div { display: flex; flex-direction: column; }
.agent-stats b { font-size: var(--fs-lg); line-height: 1.2; }
.agent-stats span { font-size: 11.5px; color: var(--text-3); }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.matrix { border: 0; min-width: 760px; }
.matrix th.sticky, .matrix td.sticky { position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 1; }
.matrix td .select { min-width: 120px; height: 38px; }
.dropzone { display: flex; align-items: center; gap: 16px; padding: 20px; border: 2px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); cursor: pointer; color: var(--text-2); transition: border-color var(--d-fast), background var(--d-fast); }
.dropzone:hover { border-color: var(--primary); background: var(--primary-soft); }
.access { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.access li { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--divider); font-size: var(--fs-sm); }
.access li:first-child { border-top: 0; }
.access .is-yes svg { color: var(--success); }
.access .is-no { color: var(--text-3); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-meter i { height: 5px; border-radius: 3px; background: var(--surface-3); }
.pw-meter i.on-1 { background: var(--danger); } .pw-meter i.on-2 { background: var(--attn); } .pw-meter i.on-3 { background: var(--info); } .pw-meter i.on-4 { background: var(--success); }
.pw-rules { list-style: none; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--text-3); }
.pw-rules li { display: flex; gap: 8px; align-items: center; }
.pw-rules li.ok { color: var(--success-text); }
.key-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.key-box code { flex: 1; font-family: var(--font-mono); font-size: var(--fs-md); }

/* design system page */
.ds-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.ds-nav { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 2px; }
.ds-nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.ds-nav a:hover { background: var(--surface-3); color: var(--text); }
.ds-sec { display: flex; flex-direction: column; gap: var(--sp-4); scroll-margin-top: calc(var(--topbar-h) + 12px); }
.ds-head h2 { font-size: var(--fs-xl); font-weight: 700; } .ds-head p { margin-top: 2px; max-width: 70ch; }
.sw-list { display: flex; flex-direction: column; gap: 8px; }
.sw { display: flex; align-items: center; gap: 10px; }
.sw-chip { width: 44px; height: 32px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; flex: none; }
.sw code { font-size: 12px; direction: ltr; } .sw small { color: var(--text-3); margin-inline-start: auto; font-size: 11px; }
.type-row { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--divider); }
.type-row code { font-size: 12px; color: var(--text-3); direction: ltr; }
.sp-bar { height: 12px; background: var(--primary); border-radius: 3px; display: block; }
.rad { width: 56px; height: 56px; background: var(--primary-soft-2); border: 1px solid var(--primary); display: block; margin-bottom: 6px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.icon-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); }
.icon-cell code { font-size: 10.5px; color: var(--text-3); direction: ltr; }
@media (max-width: 900px) { .ds-layout { grid-template-columns: minmax(0, 1fr); } .ds-nav { position: static; flex-direction: row; flex-wrap: wrap; } }

@media (max-width: 759px) { .cal-filters > .row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .cal-filters .chip { flex: none; } }
