:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --primary: #0071e3;
  --primary-deep: #0077ed;
  --primary-soft: #e8f3ff;
  --blue: #007aff;
  --cyan: #32ade6;
  --green: #34c759;
  --amber: #ff9f0a;
  --red: #ff3b30;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.025), 0 12px 40px rgba(0, 0, 0, 0.045);
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif; font-synthesis: none; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 10; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 16px; border-right: 1px solid var(--line); background: rgba(247, 247, 249, 0.78); color: var(--ink); backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 26px; color: var(--ink); font-size: 20px; font-weight: 680; letter-spacing: -0.035em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #52a8ff, #087df1 58%, #0061c9); color: white; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(0,113,227,.2); font-size: 17px; font-weight: 700; }
.main-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-caption { margin: 23px 11px 8px; color: #86868b; font-size: 12px; font-weight: 650; text-transform: none; letter-spacing: .01em; }
.nav-item { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: #515154; cursor: pointer; font-size: 13px; text-align: left; transition: background .16s ease, color .16s ease, transform .16s ease; }
.nav-item:hover { color: var(--ink); background: rgba(0,0,0,.045); }
.nav-item:active { transform: scale(.985); }
.nav-item.active { color: var(--ink); background: rgba(0,0,0,.065); font-weight: 580; }
.nav-item.active-filter { color: var(--ink); font-weight: 580; }
.nav-icon { width: 18px; text-align: center; color: #6e6e73; font-size: 17px; }
.nav-item.active .nav-icon { color: var(--primary); }
.nav-badge { margin-left: auto; min-width: 23px; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.06); color: #6e6e73; font-size: 12px; text-align: center; }
.nav-dot { width: 7px; height: 7px; margin: 0 6px; border-radius: 50%; background: #687184; }
.violet { background: #af52de; }.blue { background: #007aff; }.cyan { background: #32ade6; }.amber { background: #ff9f0a; }.green { background: #34c759; }.slate { background: #8e8e93; }.rose { background: #e1262f; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 15px 9px 2px; border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; display: grid; flex: none; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #e5e5ea, #c7c7cc); color: #3a3a3c; font-size: 12px; font-weight: 700; box-shadow: inset 0 1px 1px rgba(255,255,255,.7); }
.sidebar-footer div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.sidebar-footer strong { font-size: 12px; color: var(--ink); }
.sidebar-footer span { overflow: hidden; color: #86868b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer .icon-button { margin-left: auto; color: #86868b; }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 8; height: 68px; display: flex; align-items: center; gap: 20px; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(245,245,247,.74); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); }
.search-field { width: min(460px, 48vw); display: flex; align-items: center; gap: 10px; color: #8b93a2; }
.search-field input, .registry-search input { width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 13px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: .16s ease; }
.icon-button:hover { background: rgba(0,0,0,.055); }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 590; transition: .18s ease; }
.button:active { transform: scale(.97); }
.button.primary { background: var(--primary); color: white; box-shadow: none; }
.button.primary:hover { background: var(--primary-deep); }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.78); color: #3a3a3c; box-shadow: 0 1px 1px rgba(0,0,0,.02); }
.button.secondary:hover { border-color: rgba(0,0,0,.12); background: white; }
.full { flex: 1; }
.mobile-menu { display: none; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #939baa; font-size: 12px; }
.breadcrumbs strong { color: #50596a; }

.content { max-width: 1510px; margin: 0 auto; padding: 46px 48px 72px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: #86868b; font-size: 12px; font-weight: 580; text-transform: none; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(32px, 3vw, 42px); font-weight: 680; line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.page-description { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: -.005em; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.metric-card, .panel { border: .5px solid rgba(0,0,0,.075); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric-card { position: relative; overflow: hidden; padding: 22px; }
.metric-card::after { display: none; }
.metric-card.accent-blue { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(232,244,255,.78)); }
.metric-card.accent-violet { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(244,237,255,.7)); }
.metric-card.accent-amber { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,246,230,.72)); }
.metric-card.accent-green { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(234,249,239,.72)); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.72); color: #636366; font-size: 13px; box-shadow: 0 1px 5px rgba(0,0,0,.05); }
.metric-card > strong { display: block; margin: 18px 0 8px; font-size: 30px; font-weight: 650; line-height: 1; letter-spacing: -.045em; }
.metric-card p { margin: 0; color: #8b93a2; font-size: 12px; }
.positive { color: var(--green); font-weight: 700; }.warning { color: #d48a17; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .75fr); gap: 16px; }
.panel { padding: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.text-button { border: 0; background: transparent; color: var(--primary); cursor: pointer; font-size: 12px; font-weight: 650; }
.task-list { border-top: 1px solid var(--line); }
.task-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 69px; border-bottom: 1px solid var(--line); cursor: pointer; }
.task-row input { position: absolute; opacity: 0; pointer-events: none; }
.custom-checkbox { width: 19px; height: 19px; flex: none; border: 1.5px solid #c7c7cc; border-radius: 50%; transition: .18s ease; }
.task-row input:checked + .custom-checkbox { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px white; }
.task-row input:checked ~ .task-copy { opacity: .48; text-decoration: line-through; }
.task-copy { min-width: 0; display: grid; gap: 5px; }
.task-copy strong { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.task-copy small, .client-cell small { color: #9199a7; font-size: 12px; }
.pill { margin-left: auto; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.pill.danger { background: #fff0f1; color: var(--red); }.pill.neutral { background: #f2f4f7; color: #727b8c; }
.add-row { margin-top: 13px; border: 0; background: transparent; color: var(--primary); cursor: pointer; font-size: 12px; font-weight: 650; }
.timer-panel { text-align: center; }
.timer-panel .panel-heading { text-align: left; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; font-weight: 700; }
.live-dot::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #e8f7f2; content: ""; }
.timer-display { margin: 25px 0 12px; font-variant-numeric: tabular-nums; font-size: clamp(32px, 4vw, 44px); font-weight: 550; letter-spacing: -.04em; }
.timer-task { margin-bottom: 6px; font-size: 12px; font-weight: 650; }.timer-meta { margin-bottom: 24px; color: #8f97a6; font-size: 12px; }
.timer-actions { display: flex; gap: 9px; }
.timer-stop { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff0ef; color: var(--red); cursor: pointer; }
.projects-panel { grid-column: 1 / -1; }
.project-table { display: grid; }
.project-row { display: grid; grid-template-columns: 1.45fr 1fr .55fr .55fr; align-items: center; min-height: 68px; border-top: 1px solid var(--line); color: #566073; font-size: 12px; }
.project-row.table-head { min-height: 35px; border: 0; color: #99a0ae; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.client-cell { display: flex; align-items: center; gap: 11px; }.client-cell > span { display: grid; gap: 5px; }.client-cell strong { color: var(--ink); font-size: 12px; }
.client-logo { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-style: normal; font-weight: 700; }.blue-bg{background:#eaf0ff;color:#4875dd}.violet-bg{background:#efedff;color:#675bdd}.green-bg{background:#e8f7f2;color:#278f6a}
.progress { width: min(100px, 75%); height: 5px; display: inline-block; overflow: hidden; margin-right: 9px; border-radius: 99px; background: #e5e5ea; vertical-align: middle; }.progress b { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.people { display: flex; }.people i { width: 27px; height: 27px; display: grid; place-items: center; margin-left: -5px; border: 2px solid white; border-radius: 50%; background: #edf0f6; color: #5e687a; font-size: 11px; font-style: normal; font-weight: 700; }

.templates-heading { align-items: center; }
.progress-summary { width: 255px; padding: 16px 18px; border: .5px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.progress-summary div { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 12px; }.progress-summary strong { color: var(--ink); }
.summary-progress { height: 6px; display: block; overflow: hidden; border-radius: 99px; background: #eceef3; }.summary-progress b { display: block; height: 100%; width: 8%; border-radius: inherit; background: var(--primary); transition: width .3s ease; }
.status-counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.status-counter { display: flex; align-items: center; gap: 12px; padding: 16px 17px; border: .5px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.84); box-shadow: 0 5px 20px rgba(0,0,0,.025); }
.counter-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--primary); font-size: 12px; font-weight: 800; }
.status-counter div { display: grid; gap: 3px; }.status-counter strong { font-size: 16px; }.status-counter span:last-child { color: var(--muted); font-size: 11px; }
.registry-toolbar { display: flex; align-items: center; gap: 11px; margin: 18px 0; }
.registry-search { width: min(310px, 35vw); min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: .5px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.86); color: #86868b; }
.segmented { display: flex; gap: 3px; padding: 3px; border: .5px solid var(--line); border-radius: 999px; background: #e9e9eb; }
.segmented button { min-height: 30px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: #6e6e73; cursor: pointer; font-size: 12px; font-weight: 590; }
.segmented button.active { background: white; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.09); }
.view-toggle { margin-left: auto; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 14px; }
.template-card { display: flex; flex-direction: column; min-height: 245px; overflow: hidden; border: .5px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: var(--shadow); transition: .22s ease; }
.template-card:hover { border-color: rgba(0,0,0,.12); transform: translateY(-3px); box-shadow: 0 18px 46px rgba(0,0,0,.075); }
.template-preview { position: relative; height: 112px; overflow: hidden; padding: 14px; background: linear-gradient(145deg, #eef7ff, #f5f5f7); }
.template-preview::after { position: absolute; width: 130px; height: 130px; right: -35px; bottom: -70px; border-radius: 50%; background: rgba(0,122,255,.07); content: ""; }
.mini-window { height: 100%; display: grid; grid-template-columns: 25px 1fr; gap: 7px; padding: 7px; border: .5px solid rgba(0,0,0,.1); border-radius: 9px; background: rgba(255,255,255,.9); box-shadow: 0 10px 24px rgba(0,0,0,.075); }
.mini-sidebar { border-radius: 5px; background: #e9e9eb; }.mini-main { display: grid; grid-template-rows: 8px 1fr; gap: 6px; }.mini-main::before { border-radius: 4px; background: #f2f2f4; content:""; }.mini-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }.mini-blocks i { border-radius: 5px; background: #f2f2f4; }.mini-blocks i:first-child { background: #e4f2ff; }
.template-body { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }.department-label { color: #818a9a; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 99px; font-size: 11px; font-weight: 750; }.status-pill::before { width: 5px; height: 5px; border-radius: 50%; content:""; }
.status-done { background: #eaf8ee; color: #248a3d; }.status-done::before { background: #34c759; }.status-progress { background: #e8f3ff; color: #0066cc; }.status-progress::before { background: #007aff; }.status-review { background: #fff5e5; color: #a96300; }.status-review::before { background: #ff9f0a; }.status-planned { background: #f0f0f2; color: #6e6e73; }.status-planned::before { background: #8e8e93; }
.template-card h3 { margin-bottom: 7px; font-size: 14px; }.template-card p { flex: 1; margin-bottom: 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: #9aa1ae; font-size: 11px; }.card-footer a { color: var(--primary); font-weight: 700; }.card-footer .disabled { color: #a6adba; pointer-events: none; }
.template-grid.list-view { grid-template-columns: 1fr; }.template-grid.list-view .template-card { min-height: 0; display: grid; grid-template-columns: 160px 1fr; }.template-grid.list-view .template-preview { height: auto; min-height: 150px; }
.empty-state { padding: 70px 20px; border: 1px dashed #d7dce5; border-radius: 14px; color: var(--muted); text-align: center; }.empty-state span { font-size: 28px; }.empty-state h3 { margin: 13px 0 7px; color: var(--ink); }.empty-state p { font-size: 12px; }.hidden { display: none !important; }
.decision-log { margin-top: 36px; padding: 26px; border: .5px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.86); box-shadow: var(--shadow); }.decision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 36px; }.decision-grid article { display: flex; gap: 12px; }.decision-grid article > span { color: #86868b; font-size: 12px; font-weight: 700; }.decision-grid strong { display: block; margin-bottom: 7px; font-size: 12px; }.decision-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

dialog { width: min(480px, calc(100vw - 30px)); padding: 0; border: .5px solid rgba(0,0,0,.1); border-radius: 22px; background: rgba(250,250,252,.96); box-shadow: 0 30px 90px rgba(0,0,0,.2); backdrop-filter: blur(24px); }dialog::backdrop { background: rgba(0,0,0,.26); backdrop-filter: blur(10px); }dialog form { padding: 26px; }.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }.dialog-heading h2 { font-size: 21px; }.dialog-heading .icon-button { font-size: 20px; }
dialog label { display: grid; gap: 7px; margin-bottom: 14px; color: #515154; font-size: 12px; font-weight: 650; }dialog input, dialog select, dialog textarea { width: 100%; padding: 11px 12px; border: .5px solid rgba(0,0,0,.13); border-radius: 11px; outline: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; }dialog input:focus, dialog select:focus, dialog textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,113,227,.14); }.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2, 1fr); }.template-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); }.status-counters { grid-template-columns: repeat(2, 1fr); }.decision-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .app-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; z-index: 20; width: 270px; transform: translateX(-100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); box-shadow: none; }.sidebar.open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,.16); }.mobile-menu { display: grid; }.topbar { height: 62px; padding: 0 18px; }.search-field { flex: 1; }.content { padding: 32px 18px 50px; }.page-heading { align-items: flex-start; flex-direction: column; }.metric-grid, .dashboard-grid, .template-grid, .status-counters { grid-template-columns: 1fr; }.projects-panel { overflow-x: auto; }.project-table { min-width: 680px; }.registry-toolbar { align-items: stretch; flex-wrap: wrap; }.registry-search { width: 100%; }.segmented { overflow-x: auto; }.view-toggle { display: none; }.progress-summary { width: 100%; }.template-grid.list-view .template-card { grid-template-columns: 1fr; }.template-grid.list-view .template-preview { min-height: 112px; }.breadcrumbs { display: none; }.topbar-actions .button.secondary { display: none; } }

/* Functional clarity layer: Apple-like discipline without decorative translucency. */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --ink: #171719;
  --muted: #5f6065;
  --line: #dfe0e4;
  --shadow: 0 1px 2px rgba(0,0,0,.035), 0 4px 14px rgba(0,0,0,.035);
  --radius: 14px;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #f8f8f9;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav-caption { color: #73747a; font-size: 12px; }
.nav-item { min-height: 42px; border-radius: 9px; color: #3f4045; font-size: 14px; font-weight: 500; }
.nav-item:hover { background: #ececef; }
.nav-item.active { color: #0057b8; background: #e3f0ff; font-weight: 650; }
.nav-badge { background: #e5e5e8; color: #55565c; font-weight: 650; }
.department-return {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 2px 1px;
  padding: 0 10px;
  border: 1px solid #d9dade;
  border-radius: 10px;
  background: #fff;
  color: #3f4045;
  font-size: 13px;
  font-weight: 650;
}
.department-return:hover { border-color: #c9cacf; background: #f1f1f3; }
.department-return .ui-icon { width: 18px; height: 18px; color: #6a6b71; }
.nav-memory {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fde1e3;
  color: #a5141f;
  font-size: 11px;
  font-weight: 700;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.search-field { color: #696a70; }
.search-field input, .registry-search input { font-size: 14px; }
.icon-button:hover { background: #ececef; }
.button { min-height: 40px; border-radius: 10px; font-size: 13px; font-weight: 650; }
.button.secondary { border-color: #d5d6da; background: #ffffff; color: #303136; }
.breadcrumbs { color: #73747a; font-size: 13px; }

.eyebrow { color: #65666c; font-size: 12px; font-weight: 600; }
h1 { font-size: clamp(32px, 3vw, 40px); font-weight: 720; }
h2 { font-size: 19px; font-weight: 700; }
.page-description { color: var(--muted); font-size: 15px; font-weight: 450; }

.metric-card, .panel { border: 1px solid var(--line); background: #ffffff; box-shadow: var(--shadow); }
.metric-card.accent-blue,
.metric-card.accent-violet,
.metric-card.accent-amber,
.metric-card.accent-green { background: #ffffff; }
.metric-top { color: #4f5055; font-size: 13px; font-weight: 650; }
.metric-icon { width: 32px; height: 32px; background: #eef0f3; color: #45464c; font-size: 14px; box-shadow: none; }
.accent-blue .metric-icon { background: #e7f2ff; color: #0066cc; }
.accent-violet .metric-icon { background: #f2eafd; color: #8944ab; }
.accent-amber .metric-icon { background: #fff1dc; color: #a45f00; }
.accent-green .metric-icon { background: #e7f7ec; color: #248a3d; }
.metric-card > strong { font-size: 32px; font-weight: 720; }
.metric-card p { color: #686970; font-size: 12px; }

.text-button, .add-row { color: #0066cc; font-size: 12px; }
.task-copy strong { font-size: 14px; }
.task-copy small, .client-cell small { color: #696a70; font-size: 12px; }
.pill { border-radius: 7px; font-size: 12px; font-weight: 700; }
.live-dot { color: #248a3d; font-size: 12px; }
.timer-task { font-size: 14px; }
.timer-meta { color: #696a70; font-size: 12px; }
.project-row { min-height: 70px; color: #45464c; font-size: 13px; }
.project-row.table-head { min-height: 38px; color: #696a70; font-size: 12px; font-weight: 700; }
.client-cell strong { font-size: 14px; }

.progress-summary { border: 1px solid var(--line); border-radius: 12px; background: #ffffff; }
.progress-summary div { font-size: 12px; font-weight: 600; }
.status-counter { border: 1px solid var(--line); border-radius: 12px; background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,.025); }
.status-counter strong { font-size: 19px; font-weight: 720; }
.status-counter span:last-child { font-size: 12px; }

.registry-search { min-height: 40px; border: 1px solid #d5d6da; border-radius: 10px; background: #ffffff; color: #686970; }
.segmented { border: 1px solid #d5d6da; border-radius: 10px; background: #e8e9ec; }
.segmented button { min-height: 32px; border-radius: 7px; color: #55565c; font-size: 12px; font-weight: 650; }
.template-card { border: 1px solid var(--line); border-radius: 14px; background: #ffffff; box-shadow: var(--shadow); }
.template-card:hover { border-color: #bfc1c7; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.07); }
.mini-window { border: 1px solid #d8d9dd; border-radius: 8px; background: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.department-label { color: #5f6065; font-size: 12px; }
.status-pill { border-radius: 7px; font-size: 12px; font-weight: 700; }
.status-pill::before { width: 6px; height: 6px; }
.template-card h3 { font-size: 16px; font-weight: 700; }
.template-card p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-footer { color: #73747a; font-size: 12px; }
.card-footer a { color: #0066cc; }
.card-footer .disabled { color: #85868c; }

.decision-log { border: 1px solid var(--line); background: #ffffff; box-shadow: var(--shadow); }
.decision-grid article > span { color: #73747a; font-size: 12px; }
.decision-grid strong { font-size: 13px; }
.decision-grid p { color: var(--muted); font-size: 12px; line-height: 1.5; }

dialog { border: 1px solid #d5d6da; border-radius: 16px; background: #ffffff; box-shadow: 0 24px 70px rgba(0,0,0,.22); backdrop-filter: none; }
dialog::backdrop { background: rgba(0,0,0,.36); backdrop-filter: none; }
dialog label { color: #3f4045; font-size: 12px; }
dialog input, dialog select, dialog textarea { border: 1px solid #cfd0d5; border-radius: 9px; background: #ffffff; font-size: 14px; }

@media (max-width: 760px) {
  .topbar { height: 62px; padding: 0 18px; }
  .content { padding: 32px 18px 50px; }
}

/* Legal workspace: live contracts and service catalog */
.contract-dialog { width: min(1120px, calc(100vw - 34px)); max-width: none; max-height: calc(100vh - 34px); padding: 0; overflow: auto; }
.contract-dialog > form { padding: 26px; }
.contract-source-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 20px; padding: 5px; border-radius: 14px; background: #f0f1f3; }
.contract-source-switch > button { min-height: 64px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 11px; padding: 9px 13px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #66676d; cursor: pointer; text-align: left; }
.contract-source-switch > button.active { border-color: #e5c7ca; background: #fff; color: #b51d27; box-shadow: 0 5px 15px rgba(35,36,40,.07); }
.contract-source-switch .ui-icon { width: 21px; height: 21px; justify-self: center; }
.contract-source-switch button > span:last-child { display: grid; gap: 3px; }
.contract-source-switch strong { color: #34353a; font-size: 13px; }
.contract-source-switch small { color: #8d8e94; font-size: 10px; }
.contract-builder-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .72fr); gap: 18px; }
.contract-builder-main, .contract-builder-side { min-width: 0; padding: 19px; border: 1px solid #e1e2e5; border-radius: 15px; background: #fff; }
.contract-builder-side { align-self: start; background: #fafafb; }
.contract-builder-main > h3, .contract-builder-side > h3, .contract-service-builder h3 { margin: 0 0 14px; color: #303136; font-size: 14px; }
.contract-builder-main label, .contract-builder-side > label, .contract-edo-fields label, .catalog-form-grid label { display: grid; gap: 7px; margin: 0 0 13px; color: #5e5f65; font-size: 11px; font-weight: 750; }
.contract-builder-main input:not([type="file"]), .contract-builder-side input:not([type="radio"]):not([type="file"]), .contract-edo-fields input, .catalog-form-grid input, .catalog-form-grid textarea { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid #d9dade; border-radius: 11px; outline: 0; background: #fff; color: #303136; font: inherit; font-size: 12px; font-weight: 550; }
.catalog-form-grid textarea { min-height: 96px; padding-top: 12px; resize: vertical; line-height: 1.5; }
.contract-builder-main input:focus, .contract-builder-side input:focus, .contract-edo-fields input:focus, .catalog-form-grid input:focus, .catalog-form-grid textarea:focus { border-color: #df6971; box-shadow: 0 0 0 3px rgba(226,38,49,.08); }
.legal-select { position: relative; display: block; }
.legal-select select { width: 100%; min-height: 44px; padding: 0 40px 0 13px; border: 1px solid #d9dade; border-radius: 11px; outline: 0; appearance: none; background: #fff; color: #303136; cursor: pointer; font-size: 12px; font-weight: 650; }
.legal-select select:focus { border-color: #df6971; box-shadow: 0 0 0 3px rgba(226,38,49,.08); }
.legal-select > .ui-icon { position: absolute; top: 50%; right: 13px; width: 16px; height: 16px; transform: translateY(-50%); color: #777980; pointer-events: none; }
.contract-service-builder { margin-top: 5px; padding-top: 18px; border-top: 1px solid #e5e6e8; }
.contract-service-builder > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.contract-service-builder h3 { margin-bottom: 0; }
.contract-service-builder a { color: #b81e27; font-size: 10px; font-weight: 750; text-decoration: none; }
.contract-service-builder > p { margin: 8px 0 14px; color: #8a8b91; font-size: 10px; line-height: 1.5; }
.contract-file-drop { position: relative; min-height: 92px; padding: 13px; border: 1px dashed #cfd1d6; border-radius: 12px; background: #fafafb; cursor: pointer; }
.contract-file-drop:hover { border-color: #df7a81; background: #fff9fa; }
.contract-file-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.contract-file-drop > span { min-height: 54px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 11px; }
.contract-file-drop > span .ui-icon { grid-row: 1 / 3; width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: #fce6e8; color: #c31f29; }
.contract-file-drop b { overflow: hidden; color: #3b3c42; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.contract-file-drop small { color: #909197; font-size: 9px; font-weight: 500; }
.contract-file-drop.compact { min-height: 82px; margin-top: 12px; background: #fff; }
.contract-signing-choice { display: grid; gap: 8px; margin: 2px 0 12px; padding: 0; border: 0; }
.contract-signing-choice legend { margin-bottom: 8px; color: #5e5f65; font-size: 11px; font-weight: 750; }
.contract-signing-choice label { position: relative; cursor: pointer; }
.contract-signing-choice input { position: absolute; opacity: 0; pointer-events: none; }
.contract-signing-choice label > span { min-height: 54px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 9px; padding: 8px 10px; border: 1px solid #dcdee2; border-radius: 11px; background: #fff; }
.contract-signing-choice label.active > span { border-color: #e0757c; background: #fff7f8; box-shadow: 0 0 0 2px rgba(226,38,49,.06); }
.contract-signing-choice .ui-icon { grid-row: 1 / 3; width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #f0f1f3; color: #72747b; }
.contract-signing-choice label.active .ui-icon { background: #f9dfe1; color: #bd2029; }
.contract-signing-choice b { color: #37383d; font-size: 11px; }
.contract-signing-choice small { color: #929399; font-size: 9px; font-weight: 500; }
.contract-edo-fields { display: grid; padding-top: 2px; }
.contract-source-rule { display: grid; grid-template-columns: 34px 1fr; gap: 10px; margin-top: 14px; padding: 11px; border-radius: 11px; background: #eef7f1; color: #287d47; }
.contract-source-rule > .ui-icon { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #dff0e5; }
.contract-source-rule p { display: grid; gap: 3px; margin: 0; }
.contract-source-rule strong { font-size: 10px; }
.contract-source-rule small { color: #63806c; font-size: 9px; line-height: 1.4; }
.retrospective-toggle { position: relative; min-height: 68px; grid-template-columns: 32px minmax(0,1fr) !important; align-items: center; gap: 11px !important; padding: 11px 13px; border: 1px solid #d9dade; border-radius: 12px; background: #fafafb; cursor: pointer; }
.retrospective-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.retrospective-toggle > span:last-child { display: grid; gap: 4px; }
.retrospective-toggle strong { color: #34353a; font-size: 11px; }
.retrospective-toggle small { color: #83858b; font-size: 9px; font-weight: 500; line-height: 1.45; }
.retrospective-check { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #cfd1d6; border-radius: 9px; background: #fff; color: transparent; }
.retrospective-check .ui-icon { width: 16px; height: 16px; }
.retrospective-toggle:has(input:checked) { border-color: #d9b46d; background: #fff9ed; }
.retrospective-toggle input:checked + .retrospective-check { border-color: #c28722; background: #c28722; color: #fff; }
.retrospective-fields { display: grid; gap: 0; margin-top: 12px; padding: 12px; border: 1px solid #ead6ae; border-radius: 12px; background: #fffaf0; }
.retrospective-fields > label { display: grid; gap: 7px; margin-top: 11px; color: #5e5f65; font-size: 11px; font-weight: 750; }
.retrospective-notice { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; }
.retrospective-notice > .ui-icon { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #f5e5c5; color: #956514; }
.retrospective-notice p { display: grid; gap: 3px; margin: 0; }
.retrospective-notice strong { color: #684b19; font-size: 10px; }
.retrospective-notice small { color: #8b744e; font-size: 9px; line-height: 1.4; }
.contract-signing-choice label.disabled { opacity: .48; cursor: not-allowed; }
.contract-form-status { min-height: 17px; margin: 13px 0 0; color: #388352; font-size: 11px; font-weight: 650; }
.contract-form-status.error { color: #bb202a; }
.contract-dialog .dialog-actions { margin-top: 4px; }
.contract-list { min-width: 1060px; }
.contract-list-head, .contract-list-row { grid-template-columns: 84px minmax(180px,1.35fr) minmax(190px,1.25fr) 108px 110px 122px 112px 28px; }
.contract-file-stack { display: flex; align-items: center; gap: 5px; }
.contract-file-stack .contract-file-button { width: 50px; }
.contract-file-button.signed { border-color: #bde0c8; background: #f0faf3; color: #278049; }
.contract-file-missing { color: #b24a4a; font-size: 9px; font-weight: 750; }
.contract-edo-file { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 8px; background: #e8f6ed; color: #287c45; font-size: 9px; font-weight: 800; }
.contract-edo-file .ui-icon { width: 14px; height: 14px; }
.contract-signing-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.contract-signing-actions label.button { cursor: pointer; }
#liveEdoDialog label { display: grid; gap: 7px; margin-bottom: 12px; color: #5e5f65; font-size: 11px; font-weight: 750; }
#liveEdoDialog input { min-height: 44px; padding: 0 13px; border: 1px solid #d9dade; border-radius: 10px; outline: none; font-size: 12px; }
#liveEdoDialog input:focus { border-color: #df6971; box-shadow: 0 0 0 3px rgba(226,38,49,.08); }
.legal-loading, .legal-error { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 10px; color: #85868c; text-align: center; }
.legal-error strong { color: #b4212a; }
.legal-error p { margin: 0; font-size: 11px; }

.service-catalog-page { max-width: 1420px; }
.catalog-explainer { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; gap: 10px; margin-bottom: 16px; padding: 15px; border: 1px solid #e0e1e4; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.catalog-explainer > div { min-width: 0; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; }
.catalog-flow-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #fbe3e5; color: #b71d27; font-size: 13px; font-weight: 850; }
.catalog-explainer p { display: grid; gap: 4px; margin: 0; }
.catalog-explainer strong { color: #34353a; font-size: 11px; }
.catalog-explainer small { color: #85868d; font-size: 9px; line-height: 1.45; }
.catalog-explainer > .ui-icon { width: 18px; height: 18px; justify-self: center; color: #a3a4aa; }
.catalog-toolbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 9px; border: 1px solid #dedfe2; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.catalog-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #eff0f2; }
.catalog-tabs button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: #74757b; cursor: pointer; font-size: 10px; font-weight: 750; }
.catalog-tabs button.active { background: #fff; color: #b51d27; box-shadow: 0 3px 10px rgba(35,36,40,.07); }
.catalog-table { overflow: hidden; border: 1px solid #dedfe2; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.catalog-table-head, .catalog-row { display: grid; grid-template-columns: minmax(190px,1.1fr) minmax(220px,1.5fr) 130px 125px 100px 24px; align-items: center; gap: 12px; padding: 0 17px; }
.catalog-table-head { min-height: 46px; border-bottom: 1px solid #e5e6e8; color: #8b8c92; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.catalog-row { width: 100%; min-height: 76px; border: 0; border-bottom: 1px solid #e7e8ea; background: #fff; color: #55565c; cursor: pointer; text-align: left; }
.catalog-row:last-child { border-bottom: 0; }
.catalog-row:hover { background: #fffafa; }
.catalog-name { min-width: 0; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; }
.catalog-name > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #e7f6ec; color: #2e8550; font-style: normal; font-size: 12px; font-weight: 850; }
.catalog-name > span { min-width: 0; display: grid; gap: 4px; }
.catalog-name strong { overflow: hidden; color: #34353a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-name small { color: #999aa0; font-size: 9px; }
.catalog-description { overflow: hidden; color: #6e6f75; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.catalog-row > strong, .catalog-row > span { font-size: 10px; }
.catalog-state { width: fit-content; padding: 6px 8px; border-radius: 7px; font-weight: 800; }
.catalog-state.active { background: #e7f6ec; color: #2c7e49; }
.catalog-state.inactive { background: #eff0f2; color: #777980; }
.catalog-row > .ui-icon { width: 16px; height: 16px; color: #999aa0; }
.catalog-empty { min-height: 300px; display: grid; place-items: center; align-content: center; gap: 8px; color: #929399; }
.catalog-empty .ui-icon { width: 28px; height: 28px; }
.catalog-empty strong { color: #4a4b50; font-size: 12px; }
.catalog-empty p { margin: 0; font-size: 10px; }
.catalog-dialog { width: min(680px, calc(100vw - 30px)); max-width: none; }
.catalog-form-grid { display: grid; grid-template-columns: 1fr 120px; gap: 0 12px; }
.catalog-form-grid .wide { grid-column: 1 / -1; }
.catalog-active-check { display: flex !important; align-items: center; gap: 10px !important; min-height: 44px; padding: 0 11px; border: 1px solid #d9dade; border-radius: 11px; background: #fafafb; cursor: pointer; }
.catalog-active-check input { width: 18px !important; min-height: 18px !important; accent-color: #d9232d; }
.catalog-active-check span { display: grid; gap: 2px; }
.catalog-active-check b { color: #34353a; font-size: 10px; }
.catalog-active-check small { color: #8c8d93; font-size: 8px; font-weight: 500; }

@media (max-width: 920px) {
  .contract-builder-grid { grid-template-columns: 1fr; }
  .contract-builder-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .contract-builder-side > h3, .contract-signing-choice, .contract-source-rule, .contract-file-drop.compact, .contract-edo-fields { grid-column: 1 / -1; }
  .catalog-explainer { grid-template-columns: 1fr; }
  .catalog-explainer > .ui-icon { transform: rotate(90deg); }
  .catalog-table { overflow: hidden; }
  .catalog-table-head { display: none; }
  .catalog-row { min-width: 0; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto 18px; gap: 12px; padding: 16px; }
  .catalog-name, .catalog-description { grid-column: 1 / -1; }
  .catalog-description { white-space: normal; }
  .catalog-price, .catalog-usage { display: grid; gap: 4px; }
  .catalog-price::before, .catalog-usage::before { color: #999aa0; font-size: 8px; font-weight: 800; text-transform: uppercase; }
  .catalog-price::before { content: "Базовая цена"; }
  .catalog-usage::before { content: "Используется"; }
}
@media (max-width: 620px) {
  .contract-dialog > form { padding: 18px; }
  .contract-source-switch { grid-template-columns: 1fr; }
  .contract-builder-main, .contract-builder-side { padding: 14px; }
  .contract-form-grid, .contract-builder-side, .catalog-form-grid { grid-template-columns: 1fr; }
  .contract-form-grid .wide, .catalog-form-grid .wide { grid-column: auto; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-tabs { overflow-x: auto; }
  .catalog-tabs button { flex: 1; }
}

/* Configurable sales pipelines */
.funnel-page { max-width: none; padding-right: 30px; padding-left: 30px; }
.pipeline-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.pipeline-switcher { position: relative; min-height: 39px; display: inline-flex; align-items: center; gap: 8px; padding: 0 34px 0 11px; border: 1px solid #d5d6da; border-radius: 9px; background: #fff; color: #77787e; font-size: 11px; font-weight: 700; }
.pipeline-switcher select { max-width: 220px; border: 0; outline: 0; appearance: none; background: transparent; color: #27282d; font-size: 12px; font-weight: 750; cursor: pointer; }
.pipeline-switcher > .ui-icon { position: absolute; right: 10px; width: 16px; height: 16px; pointer-events: none; }
.pipeline-kind, .deal-pipeline-chip, .deal-stage-chip { min-height: 27px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 7px; font-size: 11px; font-weight: 750; }
.pipeline-kind { background: #edf1f7; color: #536478; }
.pipeline-notice { min-height: 54px; display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 12px; padding: 10px 13px; border: 1px solid #d7d9de; border-radius: 11px; background: #fff; }
.pipeline-notice > .ui-icon { width: 31px; height: 31px; padding: 7px; border-radius: 8px; background: #f1f2f4; color: #515258; }
.pipeline-notice p { margin: 0; color: #65666c; font-size: 11px; line-height: 1.45; }.pipeline-notice strong { color: #303136; }
.pipeline-settings-button { margin-left: auto; }
.funnel-page .funnel-board { width: max-content; min-width: 100%; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(255px, 285px); }
.stage-dot.cyan { background: #2da9d4; }.stage-dot.violet { background: #9b59d0; }
.funnel-column.won-stage { background: #eaf5ed; }.funnel-column.won-stage .deal-card { border-color: #b9ddc3; }
.deal-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.deal-tag, .delivery-badge { min-height: 21px; display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 6px; background: #edf1f7; color: #536478; font-size: 10px; font-weight: 750; }
.delivery-badge { background: #e7f6ec; color: #287a40; }
.deal-card footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; }
.deal-source { overflow: hidden; color: #77787e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.column-add { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #bfc1c7; border-radius: 8px; background: transparent; color: #62636a; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }.column-add:hover { border-color: var(--primary); color: #a5141f; }.column-add .ui-icon { width: 14px; height: 14px; }
.pipeline-dialog { width: min(720px, calc(100vw - 30px)); }.pipeline-dialog form { padding: 24px; }
.pipeline-settings-head { display: flex; align-items: end; gap: 12px; margin-bottom: 14px; }.pipeline-settings-head label { flex: 1; display: grid; gap: 7px; color: #67686e; font-size: 11px; font-weight: 700; }.pipeline-settings-head select { min-height: 39px; padding: 0 10px; border: 1px solid #d5d6da; border-radius: 9px; background: #fff; color: #303136; font: inherit; }
.stage-editor { display: grid; gap: 7px; max-height: 390px; overflow-y: auto; padding: 2px; }.stage-editor-row { display: grid; grid-template-columns: 34px 42px minmax(0, 1fr) auto; gap: 7px; align-items: center; padding: 8px; border: 1px solid #e0e1e4; border-radius: 9px; background: #fafafa; }.stage-editor-row > span:first-child { color: #8a8b91; font-size: 12px; font-weight: 750; text-align: center; }.stage-editor-row input[type="color"] { width: 34px; height: 32px; padding: 2px; border: 1px solid #d6d7db; border-radius: 7px; background: #fff; }.stage-editor-row input[type="text"] { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid #d6d7db; border-radius: 7px; font: inherit; font-size: 11px; }.stage-editor-actions { display: flex; gap: 4px; }.stage-editor-actions button { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 7px; background: #eceef1; color: #5e5f65; cursor: pointer; }.stage-editor-actions .ui-icon { width: 15px; height: 15px; }.pipeline-add-stage { width: 100%; margin-top: 9px; }

/* Deal card */
.deal-page { max-width: 1420px; }.deal-page .back-link { display: inline-flex; align-items: center; gap: 7px; }.deal-page .back-link .ui-icon { width: 17px; height: 17px; }
.deal-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }.deal-titlebar h1 { max-width: 860px; margin: 9px 0 4px; font-size: clamp(28px, 3vw, 42px); }.deal-title-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #77787e; font-size: 11px; font-weight: 750; }.deal-pipeline-chip { background: #edf1f7; color: #536478; }.deal-stage-chip { background: #fde9eb; color: #a5141f; }
.deal-title-amount { min-width: 190px; display: grid; gap: 4px; text-align: right; }.deal-title-amount span, .deal-title-amount small { color: #77787e; font-size: 11px; }.deal-title-amount strong { color: #292a2f; font-size: 20px; font-variant-numeric: tabular-nums; }
.deal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }.deal-main { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.deal-tabs { min-height: 55px; display: flex; gap: 5px; align-items: end; padding: 0 18px; border-bottom: 1px solid var(--line); }.deal-tabs button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6a6b71; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }.deal-tabs button.active { border-color: var(--primary); color: #26272c; }.deal-tabs span { min-width: 20px; min-height: 20px; display: grid; place-items: center; border-radius: 6px; background: #eff0f2; font-size: 11px; }
.deal-panel { padding: 18px; }.deal-panel.hidden { display: none; }.deal-note-form { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; margin-bottom: 17px; padding: 12px; border: 1px solid #d9dade; border-radius: 10px; background: #fafafa; }.deal-note-form textarea { min-height: 54px; padding: 8px 9px; border: 0; outline: 0; resize: vertical; background: transparent; font: inherit; font-size: 12px; }.deal-note-form > div { display: flex; gap: 7px; align-items: center; }
.deal-timeline { position: relative; display: grid; }.deal-timeline::before { position: absolute; top: 18px; bottom: 18px; left: 17px; width: 1px; background: #e1e2e5; content: ""; }.deal-event { position: relative; display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 12px 0; }.timeline-icon { z-index: 1; width: 35px; height: 35px; padding: 9px; border-radius: 50%; background: #f0f1f3; color: #62636a; }.call-event .timeline-icon { background: #e7f6ec; color: #287a40; }.note-event .timeline-icon { background: #fde9eb; color: #a5141f; }.mail-event .timeline-icon { background: #e8f0fa; color: #3e6c9f; }.deal-event > div { min-width: 0; }.deal-event strong { color: #303136; font-size: 12px; }.deal-event p { margin: 5px 0 0; color: #686970; font-size: 11px; line-height: 1.45; }.deal-event time { color: #8a8b91; font-size: 11px; white-space: nowrap; }
.inline-call { min-height: 36px; display: grid; grid-template-columns: 28px minmax(80px, 190px) auto; gap: 8px; align-items: center; margin-top: 8px; padding: 4px 8px 4px 4px; border-radius: 8px; background: #f1f2f4; }.inline-call i { height: 18px; display: block; background: repeating-linear-gradient(90deg,#a8abb2 0 2px,transparent 2px 5px); mask: linear-gradient(180deg,transparent 10%,#000 40% 60%,transparent 90%); }.inline-call span { color: #686970; font-size: 11px; }.call-play-button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; }.call-play-button .ui-icon { width: 14px; height: 14px; }
.deal-subheading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }.deal-subheading h2, .deal-info-card h2 { font-size: 12px; }.deal-subheading p { margin: 4px 0 0; color: #77787e; font-size: 11px; }.deal-task-list, .call-list, .deal-file-list { display: grid; }.deal-task-list article, .call-list article, .deal-file-list article { min-height: 64px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-top: 1px solid #e7e8eb; }.deal-task-list strong, .call-list strong, .deal-file-list strong { color: #303136; font-size: 12px; }.deal-task-list p, .call-list p, .deal-file-list p { margin: 4px 0 0; color: #77787e; font-size: 11px; }.deal-task-type, .file-icon { width: 34px; height: 34px; display: grid; place-items: center; padding: 8px; border-radius: 8px; background: #f0f1f3; color: #62636a; }.file-icon { padding: 0; color: #a5141f; font-size: 12px; font-weight: 800; }.call-list > article > span:last-child, .deal-file-list small { color: #77787e; font-size: 11px; }.integration-chip { color: #287a40; font-size: 11px; font-weight: 700; }
.deal-aside { display: grid; gap: 12px; }.deal-info-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.deal-info-card .section-heading { margin-bottom: 12px; }.text-button { border: 0; background: transparent; color: #a5141f; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }.next-action-main, .handoff-head { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: center; }.next-action-main > .ui-icon, .handoff-head > .ui-icon { width: 34px; height: 34px; padding: 8px; border-radius: 8px; background: #fde9eb; color: #a5141f; }.next-action-main strong, .handoff-head h2 { font-size: 12px; }.next-action-main p, .handoff-head p { margin: 4px 0 0; color: #77787e; font-size: 11px; }
.linked-client { min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 9px; align-items: center; padding: 10px; border-radius: 9px; background: #f5f5f6; color: inherit; }.linked-client b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #fde9eb; color: #a5141f; }.linked-client strong { font-size: 12px; }.linked-client p { margin: 4px 0 0; color: #77787e; font-size: 11px; }.linked-client > .ui-icon { width: 16px; height: 16px; color: #77787e; }
.deal-facts { display: grid; margin: 10px 0 0; }.deal-facts > div { min-height: 39px; display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 8px; align-items: center; border-top: 1px solid #ececef; }.deal-facts dt { color: #7a7b81; font-size: 11px; }.deal-facts dd { min-width: 0; display: flex; align-items: center; gap: 6px; margin: 0; color: #3b3c41; font-size: 11px; font-weight: 650; }.fact-status { min-height: 23px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; }.fact-status.rose { background: #fde9eb; color: #a5141f; }.deal-facts .assignee { width: 26px; height: 26px; }
.handoff-card { background: #fafafa; }.handoff-card ul { display: grid; gap: 8px; margin: 13px 0; padding: 0; list-style: none; }.handoff-card li { display: flex; align-items: center; gap: 7px; color: #5e5f65; font-size: 11px; }.handoff-card li .ui-icon { width: 14px; height: 14px; color: #287a40; }.button.full { width: 100%; }.handoff-card .button:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 1040px) { .deal-layout { grid-template-columns: 1fr; }.deal-aside { grid-template-columns: repeat(2, 1fr); }.deal-aside .handoff-card { grid-column: 1 / -1; } }
@media (max-width: 760px) { .funnel-page { padding-right: 14px; padding-left: 14px; }.funnel-heading, .deal-titlebar { align-items: flex-start; flex-direction: column; }.pipeline-title-row, .pipeline-settings-head { align-items: stretch; flex-direction: column; }.pipeline-settings-button { width: 100%; margin-left: 0; }.stage-editor-row { grid-template-columns: 28px 34px minmax(0, 1fr); }.stage-editor-actions { grid-column: 3; }.deal-title-amount { text-align: left; }.deal-aside { grid-template-columns: 1fr; }.deal-aside .handoff-card { grid-column: auto; }.deal-tabs { overflow-x: auto; }.deal-tabs button { flex: none; }.deal-event { grid-template-columns: 35px minmax(0, 1fr); }.deal-event time { grid-column: 2; }.deal-note-form { grid-template-columns: 34px minmax(0, 1fr); }.deal-note-form > div { grid-column: 2; }.topbar-actions .secondary { display: none; } }

/* Bright red palette. Semantic success, warning and informational colors stay distinct. */
:root {
  --primary: #e1262f;
  --primary-deep: #bd1822;
  --primary-soft: #fde9eb;
}

.brand-mark {
  background: linear-gradient(145deg, #ff686f, #e1262f 58%, #b91621);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 18px rgba(225,38,47,.24);
}
.nav-item.active { color: #a5141f; background: #fde9eb; }
.nav-item.active .nav-icon { color: #c31825; }
.button.primary { background: var(--primary); }
.button.primary:hover { background: var(--primary-deep); }
.accent-blue .metric-icon { background: #fde9eb; color: #b91621; }
.text-button, .add-row, .card-footer a { color: #b91621; }
.template-preview { background: linear-gradient(145deg, #fff0f1, #f5f5f7); }
.template-preview::after { background: rgba(225,38,47,.11); }
.mini-blocks i:first-child { background: #fbd6d9; }
.status-progress { background: #fde9eb; color: #a5141f; }
.status-progress::before { background: #e1262f; }
dialog input:focus, dialog select:focus, dialog textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(225,38,47,.16);
}

/* Development board */
.board-workspace { min-width: 0; overflow: hidden; }
.board-page { max-width: none; padding-right: 30px; padding-left: 30px; }
.running-timer { min-height: 40px; display: grid; grid-template-columns: 8px auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 5px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.running-timer > span { grid-row: 1 / 3; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #e7f7ec; }
.running-timer strong { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.running-timer small { color: var(--muted); font-size: 11px; line-height: 1.1; }
.board-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.board-heading h1 { margin-bottom: 7px; }
.board-summary { display: flex; align-items: center; gap: 18px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); font-size: 12px; }
.board-summary span { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.board-summary strong { color: var(--ink); font-size: 16px; }
.board-summary .overdue strong { color: #d43f38; }
.board-summary .attention strong { color: #d43f38; }
.board-viewbar { display: grid; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.board-viewbar-primary, .board-viewbar-filters { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px; }
.board-viewbar-primary { border-bottom: 1px solid #ececef; }
.board-viewbar-primary .board-search { min-width: 220px; max-width: 520px; flex: 1; }
.board-viewbar-primary .task-scope-switch { margin-left: auto; }
.board-viewbar-filters { min-height: 52px; flex-wrap: wrap; }
.view-tabs { display: flex; align-items: center; align-self: stretch; padding-right: 8px; border-right: 1px solid var(--line); }
.view-tabs button { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; }
.view-tabs button.active { background: var(--primary-soft); color: #a5141f; }
.board-search { min-width: 190px; display: flex; align-items: center; gap: 7px; padding: 0 9px; color: #72737a; }
.board-search input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 12px; }
.filter-button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #45464c; cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
.filter-button:hover, .filter-button.active { border-color: #ed9da2; background: var(--primary-soft); color: #a5141f; }
.filter-button > .ui-icon { width: 18px; height: 18px; stroke-width: 2; }
.filter-button:disabled { cursor: default; opacity: 1; }
.task-scope-switch { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f5f5f7; }
.task-scope-switch .filter-button { min-height: 30px; border-color: transparent; background: transparent; }
.task-scope-switch .filter-button:hover { border-color: #edc3c7; background: #fff; }
.task-scope-switch .filter-button.active { border-color: #ed9da2; background: #fff; box-shadow: 0 1px 3px rgba(30,31,35,.08); }
.task-scope-switch .filter-button[hidden] { display: none; }
.framed { border: 1px solid var(--line); border-radius: 9px; }
.active-filters { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 8px 4px 0; }
.active-filters > span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; background: #f0f1f3; color: #55565c; font-size: 12px; font-weight: 600; }
.active-filters button { border: 0; background: transparent; color: #77787e; cursor: pointer; font-size: 12px; }
.active-filters > button { color: #b91621; font-weight: 650; }
.kanban-scroll { overflow-x: auto; padding: 5px 2px 18px; scrollbar-color: #c9cbd1 transparent; }
.kanban-board { min-width: 1390px; display: grid; grid-template-columns: repeat(5, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.kanban-column { min-height: 620px; display: flex; flex-direction: column; padding: 10px; border: 1px solid #e1e2e6; border-radius: 13px; background: #edeef1; }
.kanban-column.focus-column { background: #f2e9ed; border-color: #e8d5dc; }
.kanban-column > header { min-height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 3px 8px; }
.kanban-column > header h2 { font-size: 13px; font-weight: 700; }
.kanban-column > header b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: #fff; color: #66676d; font-size: 11px; }
.kanban-column > header button { margin-left: auto; border: 0; background: transparent; color: #77787e; cursor: pointer; }
.column-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #8e8f95; }
.column-dot.rose { background: #e1262f; }.column-dot.in-progress { background: #c51b26; box-shadow: 0 0 0 3px #fbdadd; }.column-dot.review { background: #e39328; }.column-dot.done { background: #34a853; }
.wip-limit { margin-left: auto; color: #a5141f; font-size: 11px; font-weight: 700; }.kanban-column > header .wip-limit + button { margin-left: 0; }
.kanban-dropzone { min-height: 120px; display: grid; gap: 9px; align-content: start; border-radius: 10px; transition: background .15s ease; }
.kanban-dropzone.drag-over { background: rgba(225,38,47,.09); outline: 1px dashed #e36f76; outline-offset: 3px; }
.kanban-card { position: relative; padding: 14px; border: 1px solid #dcdde1; border-radius: 11px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.035); cursor: grab; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.kanban-card:hover { border-color: #e58b91; box-shadow: 0 5px 13px rgba(0,0,0,.06); transform: translateY(-1px); }
.kanban-card.dragging { opacity: .45; transform: rotate(1deg); }
.kanban-card.filtered-out { display: none; }
.kanban-card.featured-task { border-color: #e47b82; box-shadow: 0 0 0 2px #fde5e7; }
.kanban-card.overdue-card::before { position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: 0 3px 3px 0; background: #df5149; content: ""; }
.kanban-card.completed-card { opacity: .82; }
.task-key { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.task-key > span { color: #74757b; font-size: 11px; font-weight: 700; letter-spacing: .025em; }
.priority { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 5px; font-size: 11px; font-style: normal; font-weight: 700; }
.priority.low { background: #f0f1f3; color: #67686e; }.priority.medium { background: #fff3df; color: #9a620d; }.priority.high { background: #fde7e9; color: #b91621; }.priority.critical { background: #ffe9e7; color: #bd2c27; }
.kanban-card h3 { margin-bottom: 11px; color: var(--ink); font-size: 13px; font-weight: 680; line-height: 1.35; letter-spacing: -.01em; }
.kanban-card a:hover h3 { color: #b91621; }
.task-hierarchy-note { width: fit-content; display: inline-flex; align-items: center; gap: 5px; margin: -2px 0 8px; color: #6c4b8f; font-size: 11px; font-weight: 700; }
.task-hierarchy-note.child { color: #637084; }
.task-hierarchy-note .ui-icon { width: 13px; height: 13px; stroke-width: 2; }
.task-context { min-width: 0; display: flex; align-items: center; gap: 7px; margin-bottom: 13px; color: #616268; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.context-logo { width: 21px; height: 21px; display: inline-grid; flex: none; place-items: center; border-radius: 6px; font-size: 11px; }
.slate-bg { background: #e9eaed; color: #55565c; }.rose-bg { background: #fde5e7; color: #b91621; }
.task-footer { min-height: 25px; display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #ececef; color: #707177; font-size: 11px; }
.task-footer .assignee { margin-left: auto; }
.assignee { width: 26px; height: 26px; display: inline-grid; flex: none; place-items: center; border-radius: 50%; background: #e7e8eb; color: #4c4d52; font-size: 11px; font-style: normal; font-weight: 750; }
.rose-avatar { background: #fbdadd !important; color: #a5141f !important; }
.deadline-danger { color: #c53530; font-weight: 700; }
.task-progress { display: flex; align-items: center; gap: 8px; margin: 1px 0 12px; }.task-progress i { height: 5px; flex: 1; overflow: hidden; border-radius: 99px; background: #e6e7ea; }.task-progress b { display: block; height: 100%; border-radius: inherit; background: var(--primary); }.task-progress span { color: #67686e; font-size: 11px; }
.column-add { width: 100%; min-height: 34px; margin-top: 8px; border: 0; border-radius: 8px; background: transparent; color: #67686e; cursor: pointer; font-size: 12px; font-weight: 600; text-align: left; }.column-add:hover { background: #fff; color: #b91621; }
.prototype-note { padding: 11px 13px; border: 1px solid #ead5db; border-radius: 10px; background: #faf0f3; color: #5f5156; font-size: 12px; }

/* Development projects */
.projects-page { max-width: none; padding-right: 30px; padding-left: 30px; }
.projects-heading { margin-bottom: 20px; }
.project-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.project-search { min-width: 260px; display: flex; flex: 1; align-items: center; gap: 10px; padding: 0 10px; color: #686970; }
.project-search .ui-icon { width: 20px; height: 20px; stroke-width: 2; }
.project-search input { width: 100%; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 12px; }
.project-type-filter { flex: none; }
.project-select-wrap { position: relative; min-width: 170px; height: 36px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #77787e; font-size: 12px; }
.project-select-wrap select { min-width: 0; border: 0; outline: 0; appearance: none; background: transparent; color: #38393e; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.project-select-wrap .ui-icon { width: 15px; height: 15px; pointer-events: none; }
.project-attention-filter .ui-icon { width: 16px; height: 16px; }
.project-list-meta { min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 7px 4px 0; color: #77787e; font-size: 12px; }
.project-list-meta button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #686970; cursor: pointer; font-size: 12px; font-weight: 600; }
.project-list-meta button:hover { color: #b91621; }
.project-list-meta .ui-icon { width: 15px; height: 15px; }
.project-table-panel { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.project-list { min-width: 920px; }
.project-list-head, .project-list-row { display: grid; grid-template-columns: minmax(170px, 1.45fr) minmax(170px, 1.35fr) 88px 120px 72px 88px 76px 68px; gap: 10px; align-items: center; }
.project-list-head { min-height: 42px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #f7f7f8; color: #77787e; font-size: 12px; font-weight: 700; }
.project-list-row { position: relative; min-height: 88px; padding: 13px 12px; border-bottom: 1px solid #ececef; transition: background .15s ease; }
.project-list-row:last-child { border-bottom: 0; }
.project-list-row:hover { background: #fafafa; }
.project-list-row.attention::before { position: absolute; inset: 13px auto 13px 0; width: 3px; border-radius: 0 3px 3px 0; background: #d84d45; content: ""; }
.project-list-row.filtered-out { display: none; }
.project-list-row.muted-row { background: #fbfbfc; }
.project-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.project-logo { width: 38px; height: 38px; display: grid; flex: none; place-items: center; border-radius: 10px; font-size: 12px; font-weight: 780; }
.amber-bg { background: #fff2dd; color: #9b630f; }
.project-identity > div { min-width: 0; display: grid; gap: 5px; }
.project-identity strong { overflow: hidden; color: #242529; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.project-identity small { overflow: hidden; color: #77787e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.service-stack { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.service-stack span { max-width: 100%; overflow: hidden; padding: 4px 7px; border-radius: 6px; background: #f0f1f3; color: #4e4f55; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.service-stack span:nth-child(n+2) { background: #fde9eb; color: #a5141f; }
.project-status { display: inline-flex; align-items: center; gap: 6px; color: #56575d; font-size: 12px; font-weight: 700; white-space: nowrap; }
.project-status i { width: 7px; height: 7px; border-radius: 50%; background: #8a8b91; }
.project-status.active i { background: #2fb665; box-shadow: 0 0 0 3px #e4f6ea; }
.project-status.risk { color: #ad342f; }.project-status.risk i { background: #d84d45; box-shadow: 0 0 0 3px #fbe9e7; }
.project-status.planning i { background: #df9223; box-shadow: 0 0 0 3px #fff1dc; }
.project-status.paused { color: #77787e; }.project-status.paused i { background: #a1a2a7; }
.project-progress-cell { display: grid; gap: 6px; }
.project-progress-cell > div { display: flex; align-items: center; gap: 8px; }
.project-progress-cell i { height: 6px; flex: 1; overflow: hidden; border-radius: 99px; background: #e7e8eb; }
.project-progress-cell b { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.project-progress-cell strong { min-width: 27px; color: #44454a; font-size: 12px; text-align: right; }
.project-progress-cell small, .project-deadline small, .project-time small { color: #85868b; font-size: 11px; }
.project-deadline, .project-time { display: grid; gap: 5px; }
.project-deadline strong, .project-time strong { color: #3e3f44; font-size: 12px; }
.project-deadline.danger strong { color: #c53530; }
.project-team { display: flex; align-items: center; }
.project-team .assignee { margin-left: -5px; border: 2px solid #fff; }
.project-team .assignee:first-child { margin-left: 0; }
.project-team > span { height: 25px; min-width: 25px; display: grid; place-items: center; margin-left: -5px; padding: 0 5px; border: 2px solid #fff; border-radius: 99px; background: #f0f1f3; color: #66676d; font-size: 11px; font-weight: 700; }
.project-row-menu { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #77787e; cursor: pointer; }
.project-row-menu:hover { background: #ececef; }
.project-row-menu .ui-icon { width: 18px; height: 18px; }
.project-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.project-empty { padding: 54px 20px; text-align: center; color: #77787e; }
.project-empty .ui-icon { width: 30px; height: 30px; margin: 0 auto 10px; }
.project-empty strong { display: block; color: #33343a; font-size: 13px; }
.project-empty p { margin-top: 6px; font-size: 12px; }

/* Department hubs */
.department-page { max-width: 1480px; }
.department-heading { margin-bottom: 20px; }
.department-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.department-stat { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.department-stat-icon { width: 34px; height: 34px; display: grid; flex: none; place-items: center; border-radius: 9px; background: var(--primary-soft); color: #b91621; }
.department-stat-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.department-stat > div { min-width: 0; display: grid; gap: 3px; }
.department-stat span:not(.department-stat-icon) { color: #6f7076; font-size: 12px; font-weight: 600; }
.department-stat strong { overflow: hidden; color: #242529; font-size: 21px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.department-stat small { overflow: hidden; color: #85868b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.department-toolbar { min-height: 56px; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.department-search { min-width: 280px; display: flex; flex: 1; align-items: center; gap: 10px; padding: 0 10px; color: #686970; }
.department-search .ui-icon { width: 20px; height: 20px; stroke-width: 2; }
.department-search input { width: 100%; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 12px; }
.department-workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.department-side-stack { display: grid; gap: 14px; }
.department-panel { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.department-panel .panel-heading { margin-bottom: 14px; }
.attention-count { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: #fae7e5; color: #b93631; font-size: 12px; font-weight: 750; }
.department-work-list { border-top: 1px solid var(--line); }
.department-work-head, .department-work-row { display: grid; grid-template-columns: minmax(155px, 1.35fr) minmax(140px, 1.1fr) 76px 104px; gap: 8px; align-items: center; }
.department-work-head { min-height: 37px; color: #85868b; font-size: 11px; font-weight: 700; }
.department-work-row { min-height: 66px; border-top: 1px solid #ececef; }
.department-work-row:first-of-type { border-top: 0; }
.department-work-row.filtered-out { display: none; }
.department-work-row > div { min-width: 0; }
.department-work-row > div strong { display: block; overflow: hidden; color: #303136; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.department-work-row > span { color: #66676d; font-size: 12px; line-height: 1.35; }
.department-work-row > .assignee { justify-self: start; }
.department-status { display: inline-flex; align-items: center; gap: 6px; color: #63646a; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; }
.department-status > i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #929399; }
.department-status.tone-done { color: #2f8449; }.department-status.tone-done > i { background: #35a85a; box-shadow: 0 0 0 3px #e5f6ea; }
.department-status.tone-progress { color: #a5141f; }.department-status.tone-progress > i { background: var(--primary); box-shadow: 0 0 0 3px #fbdadd; }
.department-status.tone-warning { color: #936010; }.department-status.tone-warning > i { background: #dd9226; box-shadow: 0 0 0 3px #fff1dc; }
.department-status.tone-danger { color: #b53732; }.department-status.tone-danger > i { background: #d84d45; box-shadow: 0 0 0 3px #fbe9e7; }
.department-attention-list { display: grid; gap: 8px; }
.department-attention-list article { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafafa; }
.department-attention-list article > .ui-icon { width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: #eff0f2; color: #6d6e74; }
.department-attention-list article.danger > .ui-icon { background: #fbe9e7; color: #c33b35; }
.department-attention-list article.warning > .ui-icon { background: #fff2df; color: #a16914; }
.department-attention-list strong { color: #35363b; font-size: 12px; }
.department-attention-list p { margin-top: 4px; color: #77787e; font-size: 11px; line-height: 1.4; }
.department-activity { display: grid; }
.department-activity article { display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; min-height: 53px; border-top: 1px solid #ececef; }
.department-activity article:first-child { border-top: 0; }
.department-activity .assignee { width: 28px; height: 28px; }
.department-activity p { color: #56575d; font-size: 11px; line-height: 1.4; }
.department-activity p strong { color: #303136; }
.department-activity time { display: block; margin-top: 3px; color: #929399; font-size: 11px; }
.department-empty { padding: 50px 15px; text-align: center; color: #77787e; }
.department-empty .ui-icon { width: 30px; height: 30px; margin: 0 auto 9px; }
.department-empty strong { display: block; color: #35363b; font-size: 12px; }
.department-empty p { margin-top: 5px; font-size: 11px; }

/* Legal contract registry */
.contracts-workspace { min-width: 0; }
.contracts-page { max-width: none; padding-right: 30px; padding-left: 30px; }
.contracts-heading { align-items: flex-end; }
.contracts-toolbar { min-height: 58px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.contract-search { min-width: 280px; display: flex; flex: 1; align-items: center; gap: 10px; padding: 0 10px; color: #686970; }
.contract-search .ui-icon { width: 20px; height: 20px; stroke-width: 2; }
.contract-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.contract-select-wrap { position: relative; min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 31px 0 11px; border: 1px solid #d5d6da; border-radius: 9px; background: #fff; color: #5f6065; font-size: 12px; font-weight: 650; white-space: nowrap; }
.contract-select-wrap select { max-width: 118px; border: 0; outline: 0; appearance: none; background: transparent; color: #2f3035; cursor: pointer; font-size: 12px; font-weight: 650; }
.contract-select-wrap .chevron { position: absolute; right: 9px; width: 15px; height: 15px; color: #77787d; pointer-events: none; }
@media (min-width: 761px) and (max-width: 1350px) {
  .contracts-toolbar .contract-search { flex-basis: 100%; }
  .contracts-toolbar .contract-select-wrap { flex: 1; }
}
.contract-table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.contract-list-meta { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); color: #797a80; font-size: 11px; }
.contract-list-meta strong { color: #4e4f55; font-size: 12px; }
.contract-table-scroll { overflow-x: auto; }
.contract-list { min-width: 930px; padding: 0 12px 9px; }
.contract-list-head, .contract-list-row { display: grid; grid-template-columns: 84px minmax(170px, 1.35fr) minmax(170px, 1.25fr) 110px 104px 112px 62px 28px; gap: 7px; align-items: center; }
.contract-list-head { min-height: 39px; color: #797a80; font-size: 11px; font-weight: 700; }
.contract-list-row { min-height: 76px; border-top: 1px solid #e8e8eb; }
.contract-list-row.filtered-out { display: none; }
.contract-list-row.newly-created { animation: contract-highlight 1.7s ease; }
@keyframes contract-highlight { 0%, 45% { background: #fff3f6; } 100% { background: transparent; } }
.contract-number { color: #34353a; font-size: 12px; font-variant-numeric: tabular-nums; }
.contract-client-link { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 9px; align-items: center; padding: 5px; border: 0; border-radius: 9px; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.contract-client-link:hover { background: #f3f3f5; }
.client-monogram { width: 34px; height: 34px; display: grid; flex: none; place-items: center; border-radius: 9px; background: #ececef; color: #5d5e64; font-size: 11px; font-weight: 750; }
.contract-client-link > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.contract-client-link strong, .contract-subject strong { overflow: hidden; color: #303136; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.contract-client-link small, .contract-subject small, .contract-dates small { overflow: hidden; color: #7a7b81; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.contract-client-link > .ui-icon { width: 15px; height: 15px; color: #8a8b91; }
.contract-subject, .contract-dates { min-width: 0; display: grid; gap: 5px; }
.contract-status { width: fit-content; min-height: 25px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 7px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.contract-status > i { width: 6px; height: 6px; flex: none; border-radius: 50%; }
.contract-status .ui-icon { width: 12px; height: 12px; stroke-width: 2.25; }
.contract-status.signed-edo { background: #e7f6ec; color: #287a40; }.contract-status.signed-edo > i { background: #34a853; }
.contract-status.signed-paper { background: #edf1f7; color: #4a5c73; }.contract-status.signed-paper > i { background: #71839a; }
.contract-status.unsigned { background: #fbe9e7; color: #b73b35; }.contract-status.unsigned > i { background: #d84d45; }
.contract-status.verified { background: #e7f6ec; color: #287a40; }
.contract-status.unverified { background: #fff1dc; color: #97600f; }
.contract-status.not-required { background: #eef1f5; color: #5f6874; }
.contract-dates strong { color: #3f4045; font-size: 11px; font-variant-numeric: tabular-nums; }
.contract-dates.expiring strong { color: #b53933; }
.contract-file-button { width: 55px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0; border: 1px solid #d8d9dd; border-radius: 8px; background: #fff; color: #5f6066; cursor: pointer; }
.contract-file-button:hover { border-color: #e47b82; background: var(--primary-soft); color: #a5141f; }
.contract-file-button .ui-icon { width: 17px; height: 17px; }
.contract-file-button small { font-size: 10px; font-weight: 750; }
.contract-row-menu { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #77787e; cursor: pointer; }
.contract-row-menu:hover { background: #ececef; }
.contract-row-menu .ui-icon { width: 18px; height: 18px; }
.contract-empty { padding: 60px 20px; color: #77787e; text-align: center; }
.contract-empty .ui-icon { width: 30px; height: 30px; margin-bottom: 9px; }
.contract-empty strong { display: block; color: #35363b; font-size: 12px; }
.contract-empty p { margin: 5px 0 0; font-size: 11px; }
.contract-dialog { width: min(1120px, calc(100vw - 34px)); }
.dialog-intro { margin: -8px 0 20px; color: #696a70; font-size: 12px; line-height: 1.5; }
.contract-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.contract-form-grid .wide { grid-column: 1 / -1; }
.contract-check { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; margin-top: 4px; padding: 12px; border: 1px solid #dedfe2; border-radius: 10px; background: #f8f8f9; cursor: pointer; }
.contract-check input { position: absolute; opacity: 0; pointer-events: none; }
.contract-check > .ui-icon { width: 20px; height: 20px; padding: 3px; border: 1px solid #b9bbc1; border-radius: 5px; color: transparent; }
.contract-check input:checked + .ui-icon { border-color: var(--primary); background: var(--primary); color: #fff; }
.contract-check > span:last-child { display: grid; gap: 4px; }
.contract-check strong { color: #3d3e43; font-size: 12px; }
.contract-check small { color: #75767c; font-size: 11px; font-weight: 450; }
.client-dialog { width: min(540px, calc(100vw - 30px)); }
.client-dialog-body { padding: 26px; }
.client-entity-banner { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding: 13px; border: 1px solid #dedfe2; border-radius: 11px; background: #f7f7f8; }
.client-entity-banner .client-monogram { width: 42px; height: 42px; background: #fbdadd; color: #a5141f; font-size: 12px; }
.client-entity-banner > div { display: grid; gap: 4px; }
.client-entity-banner strong { font-size: 12px; }
.client-entity-banner span { color: #73747a; font-size: 11px; }
.client-details { margin: 0; border-top: 1px solid #e2e3e6; }
.client-details > div { min-height: 58px; display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid #e2e3e6; }
.client-details dt { color: #75767c; font-size: 12px; }
.client-details dd { margin: 0; color: #33343a; font-size: 12px; font-weight: 600; line-height: 1.45; }

/* Sales funnel and CRM tasks */
.sales-workspace { min-width: 0; }
.sales-page { max-width: none; padding-right: 30px; padding-left: 30px; }
.sales-heading { align-items: flex-end; }
.sales-toolbar { min-height: 58px; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.sales-search { min-width: 270px; display: flex; flex: 1; align-items: center; gap: 10px; padding: 0 10px; color: #686970; }
.sales-search .ui-icon { width: 20px; height: 20px; stroke-width: 2; }
.sales-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.sales-select { position: relative; min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 31px 0 11px; border: 1px solid #d5d6da; border-radius: 9px; background: #fff; color: #5f6065; font-size: 12px; font-weight: 650; white-space: nowrap; }
.sales-select select { border: 0; outline: 0; appearance: none; background: transparent; color: #2f3035; cursor: pointer; font-size: 12px; font-weight: 650; }
.sales-select > .ui-icon { position: absolute; right: 9px; width: 15px; height: 15px; color: #77787d; pointer-events: none; }
.funnel-scroll { overflow-x: auto; padding-bottom: 8px; }
.funnel-board { min-width: 1390px; display: grid; grid-template-columns: repeat(5, minmax(255px, 1fr)); gap: 12px; align-items: start; }
.funnel-column { min-height: 590px; padding: 12px; border: 1px solid #dedfe2; border-radius: 13px; background: #ececef; }
.funnel-column > header { min-height: 52px; display: grid; gap: 7px; padding: 1px 3px 11px; }
.funnel-column > header > div { display: flex; align-items: center; gap: 7px; }
.funnel-column h2 { font-size: 13px; }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; }.stage-dot.neutral { background: #8f9096; }.stage-dot.blue { background: #4a82c2; }.stage-dot.amber { background: #dd9226; }.stage-dot.rose { background: var(--primary); }.stage-dot.green { background: #34a853; }
.stage-count { min-width: 23px; min-height: 22px; display: grid; place-items: center; border-radius: 7px; background: #fff; color: #686970; font-size: 11px; font-weight: 750; }
.stage-sum { color: #65666c; font-size: 11px; font-weight: 650; }
.deal-stack { min-height: 500px; display: grid; align-content: start; gap: 9px; }
.deal-card { position: relative; padding: 13px; border: 1px solid #d5d6da; border-radius: 11px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.035); cursor: grab; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.deal-card:hover { border-color: #e58b91; box-shadow: 0 5px 14px rgba(0,0,0,.06); transform: translateY(-1px); }
.deal-card.dragging { opacity: .45; transform: rotate(1deg); }
.deal-card.filtered-out { display: none; }
.deal-card.featured { border-color: #e47b82; box-shadow: 0 0 0 2px #fde5e7; }
.deal-card.stale::before { position: absolute; inset: 11px auto 11px 0; width: 3px; border-radius: 0 3px 3px 0; background: #d84d45; content: ""; }
.deal-card.newly-created { animation: contract-highlight 1.7s ease; }
.deal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.deal-code { color: #7a7b81; font-size: 11px; font-weight: 750; letter-spacing: .03em; }
.deal-age { color: #77787e; font-size: 11px; font-weight: 650; }.deal-age.overdue { color: #bd3f38; }
.deal-card h3 { margin-bottom: 4px; color: #292a2f; font-size: 12px; font-weight: 720; }
.deal-card > p { margin-bottom: 11px; color: #686970; font-size: 11px; }
.deal-amount { display: block; margin-bottom: 12px; color: #2e2f34; font-size: 14px; font-variant-numeric: tabular-nums; }
.deal-contact, .deal-next { min-height: 27px; display: flex; align-items: center; gap: 7px; color: #5d5e64; font-size: 11px; }
.deal-contact .ui-icon, .deal-next .ui-icon { width: 15px; height: 15px; color: #77787e; }
.deal-next { margin-top: 5px; padding: 0 7px; border-radius: 7px; background: #f4f4f5; font-weight: 650; }
.deal-next.missing { background: #fbe9e7; color: #ad3a34; }.deal-next.missing .ui-icon { color: #c44841; }
.deal-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px solid #ececef; }
.deal-card footer button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #77787e; cursor: pointer; }
.deal-card footer button:hover { background: #ececef; }.deal-card footer button .ui-icon { width: 18px; height: 18px; }
.sales-dialog { width: min(560px, calc(100vw - 30px)); }
.sales-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }.sales-form-grid .wide { grid-column: 1 / -1; }

.crm-view-filter { flex: none; }
.crm-task-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.crm-list-meta { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 16px; border-bottom: 1px solid var(--line); color: #797a80; font-size: 11px; }
.crm-list-meta strong { color: #4e4f55; font-size: 12px; }
.crm-table-scroll { overflow-x: auto; }
.crm-task-list { min-width: 940px; padding: 0 12px 9px; }
.crm-task-head, .crm-task-row { display: grid; grid-template-columns: 34px minmax(205px, 1.4fr) minmax(180px, 1.15fr) 125px 105px 96px 28px; gap: 9px; align-items: center; }
.crm-task-head { min-height: 39px; color: #797a80; font-size: 11px; font-weight: 700; }
.crm-task-row { position: relative; min-height: 78px; border-top: 1px solid #e8e8eb; transition: opacity .2s ease, background .15s ease; }
.crm-task-row:hover { background: #fafafa; }
.crm-task-row.filtered-out { display: none; }
.crm-task-row.completed { opacity: 0; }
.crm-task-row.overdue::before { position: absolute; inset: 13px auto 13px -12px; width: 3px; border-radius: 0 3px 3px 0; background: #d84d45; content: ""; }
.crm-task-row.newly-created { animation: contract-highlight 1.7s ease; }
.crm-complete { width: 22px; height: 22px; display: grid; place-items: center; cursor: pointer; }
.crm-complete input { position: absolute; opacity: 0; }
.crm-complete > .ui-icon { width: 20px; height: 20px; padding: 3px; border: 1.5px solid #b9bbc1; border-radius: 50%; color: transparent; }
.crm-complete input:checked + .ui-icon { border-color: var(--primary); background: var(--primary); color: #fff; }
.crm-action { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; align-items: center; }
.crm-action > .crm-type { width: 34px; height: 34px; padding: 8px; border-radius: 9px; }
.crm-type.call, .crm-type.phone { background: #e7f6ec; color: #287a40; }.crm-type.mail { background: #e8f0fa; color: #3e6c9f; }.crm-type.meeting, .crm-type.calendar { background: #fde9eb; color: #b91621; }.crm-type.file { background: #fff1dc; color: #97600f; }
.crm-action > div, .crm-relation, .crm-deadline { min-width: 0; display: grid; gap: 5px; }
.crm-action strong, .crm-relation strong, .crm-deadline strong { overflow: hidden; color: #303136; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.crm-action small, .crm-relation small, .crm-deadline small { overflow: hidden; color: #7a7b81; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.crm-relation { padding: 5px 7px; border-radius: 7px; }.crm-relation:hover { background: #f4f4f5; }.crm-relation strong { color: #a5141f; }
.crm-deadline.danger strong { color: #b53933; }
.crm-owner { display: flex; align-items: center; gap: 7px; color: #5d5e64; font-size: 11px; font-weight: 650; }
.crm-owner .assignee { width: 29px; height: 29px; }
.crm-status { width: fit-content; min-height: 25px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 7px; font-size: 11px; font-weight: 750; }
.crm-status.overdue { background: #fbe9e7; color: #b73b35; }.crm-status.planned { background: #edf1f7; color: #4a5c73; }
.crm-menu { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #77787e; cursor: pointer; }.crm-menu:hover { background: #ececef; }.crm-menu .ui-icon { width: 18px; height: 18px; }
.crm-empty { padding: 60px 20px; color: #77787e; text-align: center; }.crm-empty .ui-icon { width: 30px; height: 30px; margin-bottom: 9px; }.crm-empty strong { display: block; color: #35363b; font-size: 12px; }.crm-empty p { margin: 5px 0 0; font-size: 11px; }

/* Accounting cash flow */
.finance-workspace { min-width: 0; }
.finance-page { max-width: none; padding-right: 30px; padding-left: 30px; }
.finance-heading { align-items: flex-end; }
.finance-account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.finance-account-card { min-width: 0; min-height: 108px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 16px; border: 1px solid #d8d9dd; border-radius: 12px; background: #fff; color: inherit; cursor: pointer; text-align: left; box-shadow: var(--shadow); transition: border-color .15s ease, box-shadow .15s ease; }
.finance-account-card:hover, .finance-account-card.active { border-color: #e1262f; box-shadow: 0 0 0 2px #fde5e7; }
.account-card-icon { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: #fde9eb; color: #b91621; }
.account-card-icon.warning { background: #fff1dc; color: #97600f; }
.account-card-copy { min-width: 0; display: grid; gap: 6px; }
.account-card-copy > small { overflow: hidden; color: #686970; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.account-card-copy > strong { color: #292a2f; font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.account-card-copy > span { display: flex; gap: 10px; font-size: 11px; font-weight: 650; }.account-card-copy i { font-style: normal; }.account-card-copy .income { color: #287a40; }.account-card-copy .expense { color: #b53933; }
.account-card-status { min-height: 23px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 7px; font-size: 11px; font-weight: 750; white-space: nowrap; }.account-card-status > i { width: 6px; height: 6px; border-radius: 50%; }
.account-card-status.synced { background: #e7f6ec; color: #287a40; }.account-card-status.synced > i { background: #34a853; }
.account-card-status.review { background: #fff1dc; color: #97600f; }.account-card-status.review .ui-icon { width: 12px; height: 12px; }
.personal-account-note { min-height: 60px; display: grid; grid-template-columns: 32px minmax(0, 1fr) 28px; gap: 10px; align-items: center; margin-bottom: 12px; padding: 11px 13px; border: 1px solid #efc57f; border-radius: 11px; background: #fff7e9; }
.personal-account-note[hidden] { display: none; }
.personal-account-note > .ui-icon { width: 32px; height: 32px; padding: 7px; border-radius: 8px; background: #ffe8c5; color: #97600f; }
.personal-account-note strong { color: #65420d; font-size: 12px; }.personal-account-note p { margin: 4px 0 0; color: #775c33; font-size: 11px; line-height: 1.4; }
.personal-account-note button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #846b45; cursor: pointer; }.personal-account-note button:hover { background: #ffe8c5; }.personal-account-note button .ui-icon { width: 16px; height: 16px; }
.finance-toolbar { min-height: 58px; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.account-filter { flex: none; }
.finance-search { min-width: 220px; display: flex; flex: 1; align-items: center; gap: 10px; padding: 0 10px; color: #686970; }.finance-search .ui-icon { width: 20px; height: 20px; }.finance-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.finance-select { position: relative; min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 31px 0 11px; border: 1px solid #d5d6da; border-radius: 9px; background: #fff; color: #5f6065; font-size: 11px; font-weight: 650; white-space: nowrap; }.finance-select select { max-width: 115px; border: 0; outline: 0; appearance: none; background: transparent; color: #2f3035; cursor: pointer; font-size: 12px; font-weight: 650; }.finance-select > .ui-icon { position: absolute; right: 9px; width: 15px; height: 15px; color: #77787d; pointer-events: none; }
.finance-ledger-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.finance-ledger-meta { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.finance-ledger-meta > div:first-child { display: flex; align-items: baseline; gap: 9px; }.finance-ledger-meta strong { color: #4e4f55; font-size: 12px; }.finance-ledger-meta span { color: #797a80; font-size: 11px; }
.finance-legend { display: flex; gap: 12px; }.finance-legend span { display: inline-flex; align-items: center; gap: 5px; }.finance-legend i { width: 6px; height: 6px; border-radius: 50%; }.income-dot { background: #34a853; }.expense-dot { background: #d84d45; }.transfer-dot { background: #71839a; }
.finance-table-scroll { overflow-x: auto; }
.finance-ledger { min-width: 1120px; padding: 0 12px 9px; }
.finance-ledger-head, .finance-row { display: grid; grid-template-columns: 64px 150px minmax(185px, 1.25fr) 150px minmax(180px, 1.1fr) 100px 110px 28px; gap: 8px; align-items: center; }
.finance-ledger-head { min-height: 39px; color: #797a80; font-size: 11px; font-weight: 700; }
.finance-row { position: relative; min-height: 78px; border-top: 1px solid #e8e8eb; transition: background .15s ease; }.finance-row:hover { background: #fafafa; }.finance-row.filtered-out { display: none; }.finance-row.newly-created { animation: contract-highlight 1.7s ease; }.finance-row.attention::before { position: absolute; inset: 13px auto 13px -12px; width: 3px; border-radius: 0 3px 3px 0; background: #d84d45; content: ""; }.finance-row.transfer-row { background: #fbfbfc; }
.finance-row > time { display: grid; gap: 4px; color: #34353a; font-size: 11px; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }.finance-row > time small { color: #85868c; font-size: 11px; font-weight: 500; }
.finance-account-cell { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; align-items: center; }.account-mini { width: 32px; height: 32px; padding: 8px; border-radius: 8px; }.account-mini.ip { background: #fde9eb; color: #b91621; }.account-mini.personal { background: #fff1dc; color: #97600f; }.account-mini.ooo { background: #e8f0fa; color: #3e6c9f; }.account-mini.transfer { background: #edf1f7; color: #4a5c73; }
.finance-account-cell > span:last-child, .finance-purpose { min-width: 0; display: grid; gap: 4px; }.finance-account-cell strong, .finance-purpose strong { overflow: hidden; color: #303136; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.finance-account-cell small, .finance-purpose small, .cashflow-category { overflow: hidden; color: #7a7b81; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.finance-row > div:nth-child(4) { min-width: 0; display: grid; gap: 5px; }
.cashflow-kind { width: fit-content; min-height: 23px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 7px; font-size: 11px; font-weight: 750; }.cashflow-kind > i { width: 6px; height: 6px; border-radius: 50%; }.cashflow-kind.income { background: #e7f6ec; color: #287a40; }.cashflow-kind.income > i { background: #34a853; }.cashflow-kind.expense { background: #fbe9e7; color: #b73b35; }.cashflow-kind.expense > i { background: #d84d45; }.cashflow-kind.transfer { background: #edf1f7; color: #4a5c73; }.cashflow-kind.transfer > i { background: #71839a; }
.allocation-pill { min-width: 0; display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 7px; align-items: center; padding: 5px 7px; border: 1px solid #dedfe2; border-radius: 8px; background: #fff; color: inherit; cursor: pointer; text-align: left; }.allocation-pill:hover { border-color: #e58b91; }.allocation-pill > .ui-icon { width: 27px; height: 27px; padding: 6px; border-radius: 7px; background: #f1f1f3; color: #65666c; }.allocation-pill > span:last-child { min-width: 0; display: grid; gap: 3px; }.allocation-pill strong, .allocation-pill small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.allocation-pill strong { color: #404146; font-size: 11px; }.allocation-pill small { color: #7a7b81; font-size: 10px; }.allocation-pill.client > .ui-icon { background: #e7f6ec; color: #287a40; }.allocation-pill.project > .ui-icon, .allocation-pill.split > .ui-icon { background: #e8f0fa; color: #3e6c9f; }.allocation-pill.general > .ui-icon { background: #f1f1f3; color: #5d5e64; }.allocation-pill.unallocated { border-color: #edb3af; background: #fff7f6; }.allocation-pill.unallocated > .ui-icon { background: #fbe9e7; color: #b73b35; }.allocation-pill.neutral { cursor: default; }
.finance-amount { justify-self: end; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }.finance-amount.income { color: #287a40; }.finance-amount.expense { color: #b53933; }.finance-amount.transfer { color: #4a5c73; }
.document-state { width: fit-content; min-height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 7px; font-size: 10px; font-weight: 750; white-space: nowrap; }.document-state .ui-icon { width: 12px; height: 12px; }.document-state.complete { background: #e7f6ec; color: #287a40; }.document-state.missing { background: #fbe9e7; color: #b73b35; }.document-state.review { background: #fff1dc; color: #97600f; }.document-state.linked { background: #edf1f7; color: #4a5c73; }
.finance-menu { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #77787e; cursor: pointer; }.finance-menu:hover { background: #ececef; }.finance-menu .ui-icon { width: 18px; height: 18px; }
.finance-empty { padding: 60px 20px; color: #77787e; text-align: center; }.finance-empty .ui-icon { width: 30px; height: 30px; margin-bottom: 9px; }.finance-empty strong { display: block; color: #35363b; font-size: 12px; }.finance-empty p { margin: 5px 0 0; font-size: 11px; }
.finance-dialog { width: min(640px, calc(100vw - 30px)); }.finance-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }.finance-form-grid .wide { grid-column: 1 / -1; }
.statement-drop { min-height: 116px; place-items: center; align-content: center; gap: 7px; padding: 16px; border: 1px dashed #bfc1c7; border-radius: 11px; background: #f8f8f9; cursor: pointer; text-align: center; }.statement-drop:hover { border-color: #e1262f; background: #fff4f5; }.statement-drop > .ui-icon { width: 28px; height: 28px; color: #b91621; }.statement-drop strong { color: #3d3e43; font-size: 12px; }.statement-drop small { color: #77787e; font-size: 11px; font-weight: 450; }.statement-drop input { width: auto; max-width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 11px; }
.import-check { grid-template-columns: 20px 1fr; align-items: start; gap: 10px; margin-top: 4px; padding: 12px; border: 1px solid #dedfe2; border-radius: 10px; background: #f8f8f9; cursor: pointer; }.import-check input { position: absolute; opacity: 0; pointer-events: none; }.import-check > .ui-icon { width: 20px; height: 20px; padding: 3px; border: 1px solid #b9bbc1; border-radius: 5px; color: transparent; }.import-check input:checked + .ui-icon { border-color: var(--primary); background: var(--primary); color: #fff; }.import-check > span:last-child { display: grid; gap: 4px; }.import-check strong { color: #3d3e43; font-size: 12px; }.import-check small { color: #75767c; font-size: 11px; font-weight: 450; }

/* Task details */
.task-page { max-width: 1280px; }
.back-link { display: inline-block; margin-bottom: 22px; color: #65666c; font-size: 12px; font-weight: 600; }.back-link:hover { color: #b91621; }
.task-titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.task-titlebar h1 { max-width: 820px; margin: 8px 0 0; font-size: clamp(28px, 3vw, 38px); }
.task-title-meta { display: flex; align-items: center; gap: 8px; color: #6d6e74; font-size: 12px; font-weight: 700; }
.task-actions { display: grid; justify-items: end; gap: 8px; }
.task-actions > div { display: flex; justify-content: flex-end; gap: 9px; }
.task-actions-utility .button { min-height: 36px; padding: 0 13px; }
.task-review-banner { min-height: 72px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; margin: -10px 0 18px; padding: 14px 16px; border: 1px solid #efd59f; border-radius: 13px; background: #fff8eb; }
.task-review-banner > .ui-icon { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: #ffedca; color: #98610f; }
.task-review-banner > div { display: grid; gap: 4px; }
.task-review-banner strong { color: #5e430e; font-size: 13px; }
.task-review-banner p { margin: 0; color: #755f35; font-size: 12px; line-height: 1.45; }
.task-review-banner.action { border-color: #efb6ba; background: #fff6f6; }
.task-review-banner.action > .ui-icon { background: #fde5e7; color: #a61923; }
.task-review-banner.action strong { color: #7e2027; }
.task-review-banner.action p { color: #77565a; }
.task-review-banner.rework { border-color: #d9dce2; background: #f7f7f8; }
.task-review-banner.rework > .ui-icon { background: #e9eaed; color: #565c66; }
.task-review-banner.rework strong { color: #34373c; }
.task-review-banner.rework p { color: #696c73; }
.task-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.task-main { display: grid; gap: 14px; }
.task-section, .task-details, .active-task-timer { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.task-section { padding: 22px 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-counter { padding: 4px 7px; border-radius: 6px; background: #f0f1f3; color: #626369; font-size: 11px; font-weight: 700; }
.rich-copy { color: #414248; font-size: 13px; line-height: 1.65; }.rich-copy p { margin-bottom: 12px; }.rich-copy ul { margin: 0; padding-left: 19px; }.rich-copy li { margin: 5px 0; }
.checklist { display: grid; border-top: 1px solid var(--line); }
.checklist label { position: relative; min-height: 46px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.checklist input { position: absolute; opacity: 0; }.checklist label > span { width: 18px; height: 18px; flex: none; border: 1.5px solid #bfc1c7; border-radius: 50%; }.checklist input:checked + span { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px #fff; }.checklist input:checked ~ p { color: #8b8c91; text-decoration: line-through; }.checklist p { margin: 0; color: #3e3f44; font-size: 12px; }
.subtask-list { display: grid; border-top: 1px solid var(--line); }
.subtask-list a { min-height: 58px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }.subtask-list a:hover p { color: #b91621; }.subtask-list div { min-width: 0; flex: 1; }.subtask-list strong { color: #797a80; font-size: 11px; }.subtask-list p { margin: 4px 0 0; color: #303136; font-size: 12px; }
.subtask-status { width: 23px; height: 23px; display: grid; flex: none; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 750; }.subtask-status.done { background: #e7f7ec; color: #278b45; }.subtask-status.progress { background: #fde5e7; color: #b91621; }.subtask-status.todo { background: #eff0f2; color: #717278; }
.task-subtask-list { display: grid; border-top: 1px solid var(--line); }
.task-subtask-row { min-height: 64px; display: grid; grid-template-columns: 28px 66px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.task-subtask-row.done .task-subtask-copy > a { color: #77787e; text-decoration: line-through; }
.task-subtask-toggle, .task-subtask-status-mark { width: 23px; height: 23px; display: grid; flex: none; place-items: center; padding: 0; border: 1.5px solid #c4c6cc; border-radius: 7px; background: #fff; color: transparent; }
.task-subtask-toggle { cursor: pointer; }
.task-subtask-toggle:hover { border-color: #d5646b; background: #fff7f7; }
.task-subtask-toggle[aria-checked="true"], .task-subtask-status-mark.done { border-color: #d42d37; background: #d42d37; color: #fff; }
.task-subtask-toggle:disabled { cursor: not-allowed; opacity: .5; }
.task-subtask-toggle .ui-icon, .task-subtask-status-mark .ui-icon { width: 14px; height: 14px; stroke-width: 2.2; }
.task-subtask-key { overflow: hidden; color: #85868b; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.task-subtask-copy { min-width: 0; display: grid; gap: 4px; }
.task-subtask-copy > a { overflow: hidden; color: #303136; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.task-subtask-copy > a:hover { color: #b91621; }
.task-subtask-copy > span { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: #7b7c82; font-size: 11px; }
.task-subtask-assignee { min-width: 0; display: inline-flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-subtask-assignee .assignee { width: 20px; height: 20px; font-size: 10px; }
.task-subtask-due { white-space: nowrap; }
.task-subtask-state { min-height: 24px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; background: #f0f1f3; color: #65666c; font-size: 11px; font-weight: 750; white-space: nowrap; }
.task-subtask-state.done { background: #e7f6ec; color: #287741; }
.task-subtask-muted { color: #929399; }
.task-subtask-empty { padding: 17px 0; color: #85868b; font-size: 12px; }
.task-subtask-add-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
.task-subtask-add-form > label { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #d5d6da; border-radius: 9px; background: #fafafa; color: #85868b; }
.task-subtask-add-form > label:focus-within { border-color: #e08388; background: #fff; box-shadow: 0 0 0 3px rgba(225, 38, 47, .08); }
.task-subtask-add-form .ui-icon { width: 16px; height: 16px; flex: none; }
.task-subtask-add-form input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #303136; font: inherit; font-size: 12px; }
.task-subtask-add-form .button { min-height: 38px; padding: 0 13px; font-size: 12px; }
.task-subtasks-section > [data-subtask-error] { margin-top: 10px; }
.context-parent-link { overflow: hidden; color: #a5141f; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.file-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }.file-grid article { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; }.file-grid article > div { min-width: 0; display: grid; gap: 4px; }.file-grid strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.file-grid small { color: #74757b; font-size: 11px; }.file-grid button { margin-left: auto; border: 0; background: transparent; color: #74757b; }.file-icon { width: 33px; height: 36px; display: grid; flex: none; place-items: center; border-radius: 7px; font-size: 12px; font-weight: 800; }.file-icon.figma { background: #fde5e7; color: #b91621; }.file-icon.doc { background: #e9f1fc; color: #3569a6; }
.task-attachments-section .section-heading > div { display: grid; gap: 5px; }.task-attachments-section .section-heading p { margin: 0; color: #7c7d83; font-size: 11px; }
.task-attachment-list { display: grid; border-top: 1px solid var(--line); }
.task-attachment { min-width: 0; min-height: 62px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; align-items: center; border-bottom: 1px solid var(--line); }
.task-attachment-type { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: #edf3fb; color: #386795; font-size: 11px; font-weight: 850; }
.task-attachment-copy { min-width: 0; display: grid; gap: 5px; }.task-attachment-copy strong { overflow: hidden; color: #34353a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.task-attachment-copy small { overflow: hidden; color: #7b7c82; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-attachment-actions { display: flex; gap: 5px; }.task-attachment-actions .icon-button { width: 34px; height: 34px; }.task-attachment-actions .ui-icon { width: 16px; height: 16px; }.task-attachment-actions .danger:hover { border-color: #efb6ba; background: #fff1f2; color: #a5141f; }
.task-attachment-upload { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; margin-top: 14px; }.task-attachment-upload > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }.task-attachment-upload > span { overflow: hidden; color: #76777d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.task-attachment-upload .button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }.task-attachment-upload .button:disabled { opacity: .42; cursor: not-allowed; }.task-attachment-upload .ui-icon { width: 16px; height: 16px; }
.activity-section { padding-top: 0; }.activity-tabs { display: flex; gap: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); }.activity-tabs button { min-height: 52px; display: inline-flex; flex: none; align-items: center; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6a6b71; cursor: pointer; font-size: 12px; font-weight: 650; white-space: nowrap; }.activity-tabs button.active { border-bottom-color: var(--primary); color: #a5141f; }.activity-tabs span { margin-left: 3px; color: #96979c; font-size: 11px; }
.comment-composer { display: grid; grid-template-columns: 34px 1fr; gap: 11px; margin: 20px 0; }.comment-composer textarea { width: 100%; resize: vertical; padding: 11px; border: 1px solid #d2d3d7; border-radius: 9px; outline: 0; font: inherit; font-size: 12px; }.comment-composer textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225,38,47,.13); }.comment-composer > div:last-child { grid-column: 2; display: flex; justify-content: flex-end; gap: 8px; margin-top: -2px; }
.comment-stream { display: grid; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }.comment-stream article { display: grid; grid-template-columns: 34px 1fr; gap: 11px; }.comment-stream article > div:last-child > p { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; }.comment-stream strong { font-size: 12px; }.comment-stream time { color: #8a8b90; font-size: 11px; }.comment-stream article > div:last-child > div { color: #494a50; font-size: 12px; line-height: 1.5; }
#taskActivityPanel { padding-top: 15px; }
#taskActivityContent > .api-state { min-height: 170px; padding: 24px 16px; }
.task-activity-list { display: grid; }
.task-activity-item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 10px 0; }
.task-activity-item:not(:last-child)::after { position: absolute; top: 44px; bottom: -10px; left: 16px; border-left: 1px solid #e3e4e7; content: ""; }
.task-activity-icon { z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e2e3e6; border-radius: 9px; background: #f5f5f7; color: #65666c; }
.task-activity-icon .ui-icon { width: 17px; height: 17px; }
.task-activity-item.activity-create .task-activity-icon { border-color: #d6e8db; background: #eaf6ed; color: #287741; }
.task-activity-item.activity-update .task-activity-icon { border-color: #d8e3ef; background: #edf4fb; color: #3e6c9f; }
.task-activity-item.activity-move .task-activity-icon { border-color: #efdfc1; background: #fff6e7; color: #946114; }
.task-activity-item.activity-checklist .task-activity-icon { border-color: #dce1e8; background: #f2f4f7; color: #596779; }
.task-activity-item.activity-comment .task-activity-icon { border-color: #eed5d8; background: #fdf0f1; color: #a51b25; }
.task-activity-item.activity-attachment .task-activity-icon { border-color: #d9e4f0; background: #eef4fb; color: #426d98; }
.task-activity-item.activity-subtask .task-activity-icon { border-color: #ddd4ed; background: #f5f0fc; color: #7046a2; }
.task-activity-item.activity-timer .task-activity-icon { border-color: #d5e7ec; background: #edf8fa; color: #277487; }
.task-activity-item.activity-review .task-activity-icon { border-color: #efd59f; background: #fff6e7; color: #946114; }
.task-activity-copy { min-width: 0; display: grid; gap: 4px; padding-top: 1px; }
.task-activity-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.task-activity-heading strong { color: #313238; font-size: 12px; }
.task-activity-heading time { flex: none; color: #8a8b90; font-size: 11px; }
.task-activity-copy p { margin: 0; color: #5f6066; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.task-activity-copy small { color: #85868b; font-size: 11px; }
.task-aside { display: grid; gap: 14px; align-self: start; }
.task-details { padding: 19px; }.task-details h2 { margin-bottom: 16px; font-size: 15px; }
.detail-status { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: #696a70; font-size: 12px; }.detail-status button { min-height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid #efb6ba; border-radius: 8px; background: var(--primary-soft); color: #a5141f; font-size: 12px; font-weight: 700; }.detail-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.task-details dl { margin: 0; }.task-details dl > div { min-height: 47px; display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 8px; border-bottom: 1px solid #ececef; }.task-details dt { color: #797a80; font-size: 12px; }.task-details dd { display: flex; align-items: center; gap: 7px; margin: 0; color: #33343a; font-size: 12px; font-weight: 600; }.deadline-today { color: #a63732 !important; }
.time-budget { padding-top: 16px; }.time-budget div { display: flex; justify-content: space-between; margin-bottom: 8px; color: #6e6f75; font-size: 11px; }.time-budget strong { color: #33343a; }.time-budget > i { height: 6px; display: block; overflow: hidden; border-radius: 99px; background: #e8e9ec; }.time-budget b { height: 100%; display: block; border-radius: inherit; background: var(--primary); }
.context-details dd .context-logo { margin-right: 1px; }.relation-list { display: grid; gap: 7px; }.relation-list a { display: grid; grid-template-columns: auto 1fr; gap: 3px 7px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }.relation-list a:hover { border-color: #e58b91; }.relation-list small { grid-column: 1 / -1; color: #85868b; font-size: 11px; }.relation-list strong { color: #b91621; font-size: 11px; }.relation-list span { color: #3e3f44; font-size: 12px; }.add-relation { margin-top: 10px; border: 0; background: transparent; color: #b91621; cursor: pointer; font-size: 12px; font-weight: 650; }
.active-task-timer { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; border-color: #efb6ba; }.active-task-timer > div { display: grid; gap: 6px; }.active-task-timer strong { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }.active-task-timer button { width: 38px; height: 38px; border: 0; border-radius: 9px; background: #fae8e7; color: #c43d37; cursor: pointer; }

@media (max-width: 1050px) {
  .board-viewbar-primary, .board-viewbar-filters { flex-wrap: wrap; }
  .project-toolbar { flex-wrap: wrap; }
  .project-search { min-height: 36px; }
  .department-kpis { grid-template-columns: repeat(2, 1fr); }
  .department-toolbar { flex-wrap: wrap; }
  .department-search { min-height: 36px; }
  .department-workspace-grid { grid-template-columns: 1fr; }
  .department-side-stack { grid-template-columns: repeat(2, 1fr); }
  .task-layout { grid-template-columns: 1fr; }
  .task-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .active-task-timer { grid-column: 1 / -1; }
  .contracts-toolbar { flex-wrap: wrap; }
  .contract-search { min-height: 38px; }
  .sales-toolbar { flex-wrap: wrap; }
  .sales-search { min-height: 38px; }
  .finance-account-grid { grid-template-columns: 1fr; }
  .finance-toolbar { flex-wrap: wrap; }
  .finance-search { min-height: 38px; }
  .kanban-board.unified-task-queue { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .board-page, .projects-page { padding-right: 14px; padding-left: 14px; }
  .board-heading, .task-titlebar { align-items: flex-start; flex-direction: column; }
  .board-summary { width: 100%; overflow-x: auto; justify-content: space-between; }
  .board-viewbar-primary, .board-viewbar-filters { align-items: stretch; }
  .view-tabs { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .board-search { width: 100%; min-height: 36px; }
  .filter-button { flex: 1; }
  .project-search { width: 100%; min-width: 0; }
  .project-type-filter { width: 100%; }
  .project-type-filter button { flex: 1; }
  .project-select-wrap { flex: 1; }
  .project-attention-filter { flex: 1; }
  .project-list-meta button { display: none; }
  .department-kpis { grid-template-columns: 1fr; }
  .department-search { width: 100%; min-width: 0; }
  .department-toolbar .filter-button { width: 100%; flex: none; }
  .department-work-panel { overflow-x: auto; }
  .department-work-list { min-width: 680px; }
  .department-side-stack { grid-template-columns: 1fr; }
  .kanban-board { min-width: 1320px; }
  .kanban-column { min-height: 560px; }
  .task-titlebar h1 { font-size: 29px; }
  .task-actions { width: 100%; justify-items: stretch; }.task-actions > div { width: 100%; }.task-actions .button { flex: 1; }
  .task-section { padding: 19px 17px; }
  .file-grid, .task-aside { grid-template-columns: 1fr; }
  .active-task-timer { grid-column: auto; }
  .running-timer { display: none; }
  .contracts-page { padding-right: 14px; padding-left: 14px; }
  .contracts-heading { align-items: flex-start; flex-direction: column; }
  .contracts-toolbar { align-items: stretch; }
  .contract-search { width: 100%; min-width: 0; }
  .contract-select-wrap { flex: 1; }
  .contract-form-grid { grid-template-columns: 1fr; }
  .contract-form-grid .wide { grid-column: auto; }
  .client-details > div { grid-template-columns: 1fr; gap: 5px; padding: 12px 0; }
  .sales-page { padding-right: 14px; padding-left: 14px; }
  .sales-heading { align-items: flex-start; flex-direction: column; }
  .sales-toolbar { align-items: stretch; }
  .sales-search { width: 100%; min-width: 0; }
  .sales-select { flex: 1; }
  .crm-view-filter { width: 100%; overflow-x: auto; }
  .sales-form-grid { grid-template-columns: 1fr; }
  .sales-form-grid .wide { grid-column: auto; }
  .finance-page { padding-right: 14px; padding-left: 14px; }
  .finance-heading { align-items: flex-start; flex-direction: column; }
  .finance-toolbar { align-items: stretch; }
  .account-filter { width: 100%; overflow-x: auto; }
  .finance-search { width: 100%; min-width: 0; }
  .finance-select { flex: 1; }
  .finance-form-grid { grid-template-columns: 1fr; }
  .finance-form-grid .wide { grid-column: auto; }
}

/* Unified vector icon system */
.ui-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: 0;
  vertical-align: middle;
}
.ui-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-icon.ui-icon { width: 19px; height: 19px; }
.button, .text-button, .back-link, .filter-button, .view-tabs button, .column-add, .add-relation {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.button .ui-icon, .text-button .ui-icon, .back-link .ui-icon { width: 17px; height: 17px; }
.button.primary .ui-icon { stroke-width: 2.1; }
.icon-button { flex: 0 0 auto; }
.icon-button .ui-icon { width: 19px; height: 19px; }
.mobile-menu .ui-icon { width: 21px; height: 21px; }
.search-field > .ui-icon, .board-search > .ui-icon, .registry-search > .ui-icon {
  width: 20px;
  height: 20px;
  color: #686970;
  stroke-width: 2;
}
.search-field, .board-search, .registry-search { gap: 10px; }
.metric-icon.ui-icon { width: 32px; height: 32px; }
.metric-icon.ui-icon svg { width: 17px; height: 17px; stroke-width: 2; }
.counter-icon.ui-icon { width: 32px; height: 32px; }
.counter-icon.ui-icon svg { width: 16px; height: 16px; stroke-width: 2.1; }
.subtask-status.ui-icon { width: 23px; height: 23px; }
.subtask-status.ui-icon svg { width: 12px; height: 12px; stroke-width: 2.2; }
.view-tabs button .ui-icon { width: 18px; height: 18px; }
.filter-button { justify-content: space-between; gap: 8px; }
.filter-button .chevron.ui-icon, .detail-status .chevron.ui-icon { width: 15px; height: 15px; }
.active-filters button { display: inline-flex; align-items: center; justify-content: center; }
.active-filters button .ui-icon { width: 14px; height: 14px; }
.kanban-column > header button { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 7px; }
.kanban-column > header button:hover { background: rgba(255,255,255,.75); }
.kanban-column > header button .ui-icon { width: 19px; height: 19px; }
.task-footer > span { display: inline-flex; align-items: center; gap: 4px; }
.task-footer .ui-icon { width: 14px; height: 14px; color: #77787e; stroke-width: 2; }
.column-add .ui-icon, .add-relation .ui-icon { width: 15px; height: 15px; }
.file-grid button { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; cursor: pointer; }
.file-grid button:hover { background: #f0f1f3; }
.file-grid button .ui-icon { width: 18px; height: 18px; }
.detail-status button { display: inline-flex; align-items: center; gap: 7px; }
.active-task-timer button { display: inline-flex; align-items: center; justify-content: center; }
.active-task-timer button .ui-icon, .timer-stop .ui-icon { width: 18px; height: 18px; }
.card-footer a { display: inline-flex; align-items: center; gap: 4px; }
.card-footer a .ui-icon { width: 14px; height: 14px; }
.view-toggle { gap: 7px; }
.empty-state > .ui-icon { width: 32px; height: 32px; }

/* Workday attendance is a separate control from task time tracking. */
.workday-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: #fff;
  color: #b91621;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.workday-button:hover { border-color: #bd1822; background: var(--primary-soft); }
.workday-button:active { transform: scale(.98); }
.workday-button > .ui-icon { width: 17px; height: 17px; }
.workday-button.is-active { border-color: #e5a4a9; background: #fff; color: #a5141f; box-shadow: none; }
.workday-button.is-active:hover { border-color: #dc777e; background: #fff7f7; }
.workday-button.is-done { border-color: #d7d8dc; background: #f6f6f7; color: #515258; box-shadow: none; }
.workday-button.is-done:hover { border-color: #c3c4c9; background: #efeff1; }
.workday-button.is-done > .ui-icon { color: #2f873f; }
.pulse-mark { width: 38px; height: 18px; display: inline-flex; flex: none; align-items: center; overflow: hidden; color: var(--primary); }
.pulse-mark svg { width: 38px; height: 18px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pulse-base { opacity: .3; }
.pulse-scan { stroke-width: 2.1; stroke-dasharray: 12 50; filter: drop-shadow(0 0 1.5px rgba(225,38,47,.55)); }
.workday-button.is-active .pulse-scan { animation: pulse-line 1.25s linear infinite; }
@keyframes pulse-line {
  from { stroke-dashoffset: 62; }
  to { stroke-dashoffset: 0; }
}
.workday-button-copy { display: grid; gap: 2px; text-align: left; }
.workday-button-copy small { color: #73747a; font-size: 11px; font-weight: 650; }
.workday-button-copy strong { color: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.workday-label-short { display: none; }

@media (prefers-reduced-motion: reduce) {
  .workday-button.is-active .pulse-scan { animation: none; stroke-dasharray: none; }
}

/* Clients: legal-entity registry and cross-functional client workspace. */
.clients-toolbar .sales-search { min-width: 300px; }
.client-registry-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.client-registry-meta { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.client-registry-meta strong { color: #4c4d52; font-size: 12px; }
.client-registry-meta span { color: #797a80; font-size: 11px; }
.client-registry-scroll { overflow-x: auto; }
.client-registry { min-width: 930px; padding: 0 12px 9px; }
.client-registry-head, .client-registry-row { display: grid; grid-template-columns: minmax(178px, 1.3fr) minmax(122px, .85fr) minmax(125px, .9fr) 94px minmax(125px, .95fr) 88px 78px 14px; gap: 8px; align-items: center; }
.client-registry-head { min-height: 39px; color: #797a80; font-size: 11px; font-weight: 700; }
.client-registry-row { position: relative; min-height: 78px; border-top: 1px solid #e8e8eb; transition: background .15s ease; }
.client-registry-row:hover { background: #fafafa; }
.client-registry-row.filtered-out { display: none; }
.client-registry-row.newly-created { animation: contract-highlight 1.7s ease; }
.client-registry-row.attention::before { position: absolute; inset: 13px auto 13px -12px; width: 3px; border-radius: 0 3px 3px 0; background: #d84d45; content: ""; }
.client-main-cell, .client-owner-cell { min-width: 0; display: flex; align-items: center; gap: 9px; }
.client-monogram { width: 36px; height: 36px; display: grid; flex: none; place-items: center; border-radius: 9px; font-size: 12px; font-weight: 800; }
.client-main-cell > div, .client-contact-cell, .client-services-cell, .client-money-cell, .client-next-cell { min-width: 0; display: grid; gap: 4px; }
.client-main-cell strong, .client-contact-cell strong, .client-services-cell strong, .client-money-cell strong, .client-next-cell strong { overflow: hidden; color: #2f3035; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.client-main-cell small, .client-contact-cell small, .client-services-cell small, .client-money-cell small, .client-next-cell small { overflow: hidden; color: #7a7b81; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.client-money-cell.debt strong, .danger-text { color: #b53933 !important; }
.client-owner-cell > span:last-child { color: #5d5e64; font-size: 11px; font-weight: 650; }
.client-status { min-height: 24px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.client-status.active { background: #e7f6ec; color: #287a40; }
.client-status.lead { background: #e8f0fa; color: #3569a6; }
.client-status.paused { background: #f0f0f2; color: #66676d; }
.row-arrow { color: #9a9ba0; font-size: 20px; }

.client-page { padding-top: 30px; }
.client-profile-head { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 14px 0 17px; }
.client-profile-identity { min-width: 0; display: flex; align-items: center; gap: 15px; }
.client-profile-logo { width: 58px; height: 58px; display: grid; flex: none; place-items: center; border-radius: 14px; background: #fde9eb; color: #b91621; font-size: 21px; font-weight: 800; }
.client-title-line { display: flex; align-items: center; gap: 11px; }
.client-title-line h1 { margin: 0; font-size: 32px; }
.client-profile-identity p { margin: 7px 0 0; color: #6b6c72; font-size: 12px; }
.client-profile-owner { display: grid; gap: 7px; padding-left: 22px; border-left: 1px solid var(--line); }
.client-profile-owner > span { color: #7c7d83; font-size: 11px; font-weight: 650; }
.client-profile-owner > div { display: flex; align-items: center; gap: 8px; }
.client-profile-owner strong { font-size: 12px; }
.client-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.client-kpi-grid article { min-height: 95px; display: grid; grid-template-columns: 37px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.client-kpi-grid article.attention { border-color: #e9b1b5; }
.client-kpi-icon { width: 37px; height: 37px; padding: 9px; border-radius: 9px; background: #f0f1f3; color: #55565c; }
.client-kpi-grid article.attention .client-kpi-icon { background: #fde9eb; color: #b91621; }
.client-kpi-grid article > div { display: grid; gap: 4px; }
.client-kpi-grid small { color: #717278; font-size: 11px; font-weight: 650; }
.client-kpi-grid strong { color: #242529; font-size: 18px; letter-spacing: -.025em; }
.client-kpi-grid p { margin: 0; color: #77787e; font-size: 11px; }
.client-tabs { min-height: 50px; display: flex; align-items: flex-end; gap: 23px; margin-bottom: 14px; padding: 0 4px; border-bottom: 1px solid #d8d9dd; }
.client-tabs button { min-height: 50px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #65666c; cursor: pointer; font-size: 12px; font-weight: 650; }
.client-tabs button.active { border-bottom-color: var(--primary); color: #a5141f; }
.client-tabs button span { margin-left: 3px; color: #97989d; font-size: 11px; }
.client-panel[hidden] { display: none; }
.client-panel.active { animation: client-panel-in .18s ease; }
@keyframes client-panel-in { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.client-profile-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr); gap: 13px; }
.client-profile-main, .client-profile-aside { display: grid; align-content: start; gap: 13px; }
.client-attention { min-height: 64px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px 13px; border: 1px solid #efc3c6; border-radius: 11px; background: #fff7f7; }
.client-attention > .ui-icon { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #fde9eb; color: #b91621; }
.client-attention strong { color: #74242a; font-size: 12px; }
.client-attention p { margin: 4px 0 0; color: #77565a; font-size: 11px; }
.client-attention .button { min-height: 34px; padding: 0 11px; font-size: 11px; }
.client-section-card, .client-side-card { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.client-section-card.full-panel { min-height: 330px; }
.client-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.client-section-heading .eyebrow { margin-bottom: 4px; font-size: 11px; }
.client-section-heading h2 { font-size: 14px; }
.client-section-heading .text-button { font-size: 11px; }
.service-snapshot-list { display: grid; }
.service-snapshot-list article { min-height: 78px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; gap: 10px; align-items: center; border-top: 1px solid #e9e9ec; }
.service-snapshot-list article:first-child { border-top: 0; }
.service-icon { width: 36px; height: 36px; padding: 9px; border-radius: 9px; }
.service-icon.design { background: #fde9eb; color: #b91621; }.service-icon.marketing { background: #fff1dc; color: #97600f; }.service-icon.support { background: #e8f0fa; color: #3569a6; }
.service-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service-title strong { color: #2e2f34; font-size: 12px; }
.service-snapshot-list p { margin: 4px 0 7px; color: #7b7c82; font-size: 11px; }
.service-state { min-height: 22px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.service-state.work { background: #fde9eb; color: #a5141f; }.service-state.stable { background: #e7f6ec; color: #287a40; }.service-state.draft { background: #f0f0f2; color: #66676d; }
.service-progress { display: flex; align-items: center; gap: 9px; }
.service-progress i { height: 5px; display: block; flex: 1; overflow: hidden; border-radius: 99px; background: #e7e8eb; }.service-progress b { height: 100%; display: block; border-radius: inherit; background: var(--primary); }
.service-progress span { color: #73747a; font-size: 11px; white-space: nowrap; }
.service-snapshot-list article > a { color: #9a9ba0; font-size: 19px; }
.client-details-list { margin: 0; }
.client-details-list > div { display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid #ececef; }
.client-details-list > div:first-child { border-top: 0; padding-top: 0; }
.client-details-list dt { color: #818288; font-size: 11px; }
.client-details-list dd { margin: 0; color: #37383d; font-size: 11px; font-weight: 600; line-height: 1.4; }
.client-contact-list { display: grid; gap: 13px; }
.client-contact-list article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding-top: 13px; border-top: 1px solid #ececef; }
.client-contact-list article:first-child { padding-top: 0; border-top: 0; }
.client-contact-list article > div { display: grid; gap: 3px; }
.client-contact-list strong { font-size: 12px; }.client-contact-list small { color: #77787e; font-size: 11px; }.client-contact-list a { color: #a5141f; font-size: 11px; }
.client-timeline { display: grid; }
.client-timeline article { min-height: 63px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-top: 1px solid #ececef; }
.client-timeline article:first-child { border-top: 0; }
.timeline-icon { width: 32px; height: 32px; padding: 8px; border-radius: 8px; background: #f0f1f3; color: #55565c; }
.client-timeline strong { color: #33343a; font-size: 11px; }.client-timeline p { margin: 4px 0 0; color: #7a7b81; font-size: 11px; }.client-timeline time { color: #85868c; font-size: 11px; white-space: nowrap; }
.client-data-list { display: grid; }
.client-data-list article { min-height: 69px; display: grid; grid-template-columns: 38px minmax(230px, 1fr) 120px 105px 74px; gap: 12px; align-items: center; border-top: 1px solid #ececef; }
.client-data-list article:first-child { border-top: 0; }
.client-data-list article > div { display: grid; gap: 5px; }.client-data-list article strong { font-size: 12px; }.client-data-list article small { color: #77787e; font-size: 11px; }.client-data-list article > span:not(.service-icon):not(.document-badge):not(.finance-direction) { color: #55565c; font-size: 11px; }.client-data-list article > a { color: #a5141f; font-size: 11px; font-weight: 700; }
.document-badge { width: 38px; min-height: 32px; display: grid; place-items: center; border-radius: 8px; background: #f0f1f3; color: #55565c; font-size: 11px; font-weight: 800; }
.client-task-list { display: grid; }
.client-task-list article { min-height: 62px; display: grid; grid-template-columns: 9px minmax(0, 1fr) 90px 70px; gap: 12px; align-items: center; border-top: 1px solid #ececef; }
.client-task-list article:first-child { border-top: 0; }
.task-status-dot { width: 8px; height: 8px; border-radius: 50%; }.task-status-dot.work { background: var(--primary); }.task-status-dot.review { background: #ed9418; }.task-status-dot.todo { background: #9a9ba0; }
.client-task-list article > div { display: grid; gap: 4px; }.client-task-list strong { font-size: 12px; }.client-task-list small, .client-task-list time { color: #77787e; font-size: 11px; }
.client-finance-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 13px; }
.client-finance-summary article { display: grid; gap: 5px; padding: 13px; border: 1px solid #e2e3e6; border-radius: 9px; background: #fafafa; }
.client-finance-summary article.attention { border-color: #efc3c6; background: #fff7f7; }.client-finance-summary small { color: #77787e; font-size: 11px; }.client-finance-summary strong { font-size: 15px; }
.finance-direction { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-size: 14px; font-weight: 800; }.finance-direction.income { background: #e7f6ec; color: #287a40; }.finance-direction.pending { background: #fff1dc; color: #97600f; }

@media (max-width: 1050px) {
  .client-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .client-profile-layout { grid-template-columns: 1fr; }
  .client-profile-aside { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .client-profile-head { align-items: flex-start; flex-direction: column; }
  .client-profile-owner { padding: 0; border: 0; }
  .client-title-line { align-items: flex-start; flex-direction: column; }
  .client-title-line h1 { font-size: 27px; }
  .client-kpi-grid, .client-profile-aside, .client-finance-summary { grid-template-columns: 1fr; }
  .client-tabs { overflow-x: auto; gap: 18px; }
  .client-tabs button { flex: none; }
  .client-attention { grid-template-columns: 34px minmax(0, 1fr); }
  .client-attention .button { grid-column: 2; justify-self: start; }
  .client-data-list { overflow-x: auto; }
  .client-data-list article { min-width: 760px; }
}

.workday-reminder {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px 13px;
  padding: 16px;
  border: 1px solid #e9a4a9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(48, 18, 20, .18);
}
.workday-reminder-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--primary-soft); color: #b91621; }
.workday-reminder-icon.ui-icon svg { width: 21px; height: 21px; }
.workday-reminder-copy { align-self: center; }
.workday-reminder-copy strong { color: #242529; font-size: 14px; }
.workday-reminder-copy p { margin: 4px 0 0; color: #66676d; font-size: 12px; line-height: 1.45; }
.workday-reminder-actions { grid-column: 2; display: flex; gap: 8px; }
.workday-reminder-actions .button { min-height: 36px; padding: 0 13px; font-size: 12px; }

.workday-dialog { width: min(540px, calc(100vw - 30px)); }
.workday-dialog-body { padding: 26px; }
.workday-summary { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid #dedfe3; border-radius: 11px; background: #fafafa; }
.workday-summary > div { min-width: 0; display: grid; gap: 7px; padding: 15px; border-right: 1px solid #dedfe3; }
.workday-summary > div:last-child { border-right: 0; }
.workday-summary span { color: #73747a; font-size: 11px; font-weight: 650; }
.workday-summary strong { color: #242529; font-size: 15px; font-variant-numeric: tabular-nums; }
.workday-note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 14px; padding: 12px; border-radius: 10px; background: #f1f2f4; color: #55565c; }
.workday-note > .ui-icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: #fff; color: #b91621; }
.workday-note p { margin: 0; font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) {
  .topbar { gap: 10px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions > .button.primary, .topbar-actions > .icon-button, .topbar-actions > .running-timer { display: none; }
  .workday-button { min-height: 38px; padding: 0 10px; }
  .workday-label-full { display: none; }
  .workday-label-short { display: inline; }
  .workday-button-copy small { display: none; }
  .workday-reminder { right: 16px; bottom: 16px; }
  .workday-summary { grid-template-columns: 1fr; }
  .workday-summary > div { border-right: 0; border-bottom: 1px solid #dedfe3; }
  .workday-summary > div:last-child { border-bottom: 0; }
}

/* Administrative workspace */
.admin-page { padding-top: 34px; }
.admin-heading { align-items: flex-end; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 16px; }
.admin-kpis article { min-height: 96px; display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 11px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.admin-kpis article.attention { border-color: #eebfc2; }
.admin-kpi-icon { width: 39px; height: 39px; display: grid; place-items: center; padding: 9px; border-radius: 10px; background: #f0f1f3; color: #55565c; }
.admin-kpi-icon.violet { background: #f2eafd; color: #8944ab; }.admin-kpi-icon.blue { background: #e7f2ff; color: #0066cc; }.admin-kpi-icon.green { background: #e7f7ec; color: #248a3d; }.admin-kpi-icon.amber { background: #fff1dc; color: #a45f00; }.admin-kpi-icon.red { background: #fde9eb; color: #b91621; }
.admin-kpis article > div { min-width: 0; display: grid; gap: 4px; }
.admin-kpis small { color: #6d6e74; font-size: 11px; font-weight: 650; }.admin-kpis strong { color: #242529; font-size: 20px; letter-spacing: -.025em; }.admin-kpis p { margin: 0; color: #7a7b81; font-size: 11px; }
.admin-tabs { min-height: 51px; display: flex; align-items: flex-end; gap: 24px; padding: 0 4px; border-bottom: 1px solid #d8d9dd; }
.admin-tabs button { min-height: 51px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #65666c; cursor: pointer; font-size: 12px; font-weight: 650; }
.admin-tabs button.active { border-bottom-color: var(--primary); color: #a5141f; }.admin-tabs button span { margin-left: 4px; color: #94959a; font-size: 11px; }
.admin-tab-panel { padding-top: 14px; }.admin-tab-panel[hidden] { display: none; }.admin-tab-panel.active { animation: client-panel-in .18s ease; }
.admin-toolbar, .absence-toolbar { min-height: 49px; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.admin-search { width: min(360px, 34vw); min-height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #d7d8dc; border-radius: 9px; background: #fff; color: #707177; }
.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #2f3035; font-size: 12px; }
.admin-select { min-height: 39px; display: grid; grid-template-columns: auto auto 15px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #d7d8dc; border-radius: 9px; background: #fff; color: #73747a; }
.admin-select > span:first-child { font-size: 11px; font-weight: 650; }.admin-select select { appearance: none; border: 0; outline: 0; background: transparent; color: #303136; font-size: 12px; font-weight: 650; }.admin-select .ui-icon { width: 14px; height: 14px; }
.admin-result { margin-left: auto; color: #77787e; font-size: 11px; }
.admin-table-panel, .role-list-card, .permission-card, .calendar-card, .absence-request-card, .timesheet-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.admin-scroll-table { min-width: 950px; padding: 0 12px 9px; }
.employee-table-head, .employee-row { display: grid; grid-template-columns: minmax(205px, 1.3fr) minmax(155px, 1fr) 90px 105px 112px 90px 18px; gap: 10px; align-items: center; }
.employee-table-head { min-height: 39px; color: #77787e; font-size: 11px; font-weight: 700; }
.employee-row { position: relative; width: 100%; min-height: 74px; padding: 0; border: 0; border-top: 1px solid #e8e8eb; background: #fff; color: #44454b; text-align: left; cursor: pointer; font: inherit; transition: background .15s ease; }
.employee-row:hover { background: #fafafa; }.employee-row.attention::before, .timesheet-row.attention::before { position: absolute; inset: 13px auto 13px -12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); content: ""; }.employee-row.filtered-out, .timesheet-row.filtered-out { display: none; }
.employee-person { min-width: 0; display: flex; align-items: center; gap: 10px; }.employee-person > span, .employee-row > span:nth-child(2), .employee-row > span:nth-child(4), .timesheet-row > span:nth-child(7), .timesheet-row > span:nth-child(8) { min-width: 0; display: grid; gap: 4px; }
.employee-person strong, .employee-row > span strong, .timesheet-row strong { overflow: hidden; color: #303136; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.employee-person small, .employee-row > span small, .timesheet-row small { overflow: hidden; color: #7a7b81; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.work-format { width: fit-content; display: inline-flex; align-items: center; gap: 6px; color: #515258; font-size: 11px; font-weight: 650; }.work-format i { width: 7px; height: 7px; border-radius: 50%; }.work-format.office i { background: #34a853; }.work-format.remote i { background: #2e86de; }.work-format.hybrid i { background: #9955cc; }
.role-chip, .employee-status, .timesheet-status, .request-risk { width: fit-content; min-height: 25px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.role-chip.owner { background: #fde9eb; color: #a5141f; }.role-chip.lead { background: #f2eafd; color: #7e409d; }.role-chip.employee { background: #edf1f7; color: #4a5c73; }.role-chip.limited { background: #fff1dc; color: #97600f; }
.employee-status.active, .timesheet-status.ready { background: #e7f6ec; color: #287a40; }.employee-status.absence { background: #e8f0fa; color: #3569a6; }.employee-status.onboarding, .timesheet-status.review { background: #fff1dc; color: #97600f; }.timesheet-status.draft { background: #fbe9e7; color: #b73b35; }
.admin-empty { padding: 58px 20px; color: #77787e; text-align: center; }.admin-empty .ui-icon { width: 30px; height: 30px; margin-bottom: 8px; }.admin-empty strong { display: block; color: #35363b; font-size: 12px; }.admin-empty p { margin: 5px 0 0; font-size: 11px; }
.role-layout { display: grid; grid-template-columns: minmax(230px, .55fr) minmax(0, 1.45fr); gap: 12px; }.role-list-card, .permission-card { padding: 16px; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }.admin-section-heading .eyebrow { margin-bottom: 4px; font-size: 11px; }.admin-section-heading h2 { font-size: 14px; }
.role-list-item { width: 100%; min-height: 61px; display: grid; grid-template-columns: 35px 1fr; gap: 10px; align-items: center; padding: 0 10px; border: 0; border-top: 1px solid #ececef; background: transparent; color: #37383d; text-align: left; cursor: pointer; }.role-list-item.active { border-radius: 9px; background: #f7e9ea; }.role-list-item > span:last-child { display: grid; gap: 4px; }.role-list-item strong { font-size: 12px; }.role-list-item small { color: #797a80; font-size: 11px; }
.role-icon { width: 35px; height: 35px; display: grid; place-items: center; padding: 8px; border-radius: 9px; }.role-icon.owner { background: #fde9eb; color: #b91621; }.role-icon.lead { background: #f2eafd; color: #8944ab; }.role-icon.employee { background: #e7f2ff; color: #0066cc; }.role-icon.limited { background: #fff1dc; color: #a45f00; }
.permission-saved { display: inline-flex; align-items: center; gap: 6px; color: #287a40; font-size: 11px; font-weight: 700; }.permission-saved i { width: 7px; height: 7px; border-radius: 50%; background: #34a853; }
.permission-head, .permission-row { display: grid; grid-template-columns: minmax(180px, 1fr) 95px 95px 95px; align-items: center; }.permission-head { min-height: 35px; color: #797a80; font-size: 11px; font-weight: 700; text-align: center; }.permission-head span:first-child { text-align: left; }.permission-row { min-height: 55px; border-top: 1px solid #ececef; text-align: center; }.permission-row strong { font-size: 12px; text-align: left; }.permission-check { width: 23px; height: 23px; display: grid; place-items: center; justify-self: center; padding: 5px; border: 1px solid #d0d1d5; border-radius: 6px; color: transparent; }.permission-check.on { border-color: var(--primary); background: var(--primary); color: #fff; }
.permission-note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; align-items: start; margin-top: 13px; padding: 11px; border-radius: 9px; background: #f2f3f5; color: #55565c; }.permission-note > .ui-icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: #fff; color: #b91621; }.permission-note p { margin: 0; font-size: 11px; line-height: 1.5; }
.access-request-panel { padding: 17px; }.access-request { min-height: 78px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 80px auto; gap: 11px; align-items: center; border-top: 1px solid #ececef; transition: .22s ease; }.access-request > div:nth-child(2) { display: grid; gap: 4px; }.access-request strong { font-size: 12px; }.access-request p { margin: 0; color: #4d4e54; font-size: 11px; }.access-request small { color: #7b7c82; font-size: 11px; }.access-request > div:last-child { display: flex; gap: 7px; }.access-request .button { min-height: 32px; padding: 0 10px; font-size: 11px; }.request-risk.medium { background: #fff1dc; color: #97600f; }.request-risk.low { background: #edf1f7; color: #4a5c73; }.resolved { opacity: 0; transform: translateX(10px); }
.admin-dialog { width: min(590px, calc(100vw - 30px)); }.admin-dialog form, .admin-dialog-body { padding: 25px; }.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }.admin-form-grid .wide { grid-column: 1 / -1; }.admin-form-grid textarea { resize: vertical; font: inherit; }
.employee-card-summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafafa; }.employee-card-summary .avatar { width: 44px; height: 44px; }.employee-card-summary > div { display: grid; gap: 4px; }.employee-card-summary strong { font-size: 12px; }.employee-card-summary > div span { color: #77787e; font-size: 11px; }.employee-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }.employee-card-grid article { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }.employee-card-grid small { color: #7a7b81; font-size: 11px; }.employee-card-grid strong { font-size: 12px; }
.role-navigation-list { display: grid; gap: 4px; }
.role-navigation-list .role-list-item { border-top: 0; border-radius: 10px; }
.role-navigation-card { min-height: 420px; }
.role-permissions-section { display: grid; gap: 12px; }
.role-subsection-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.role-subsection-heading h3 { margin: 3px 0 0; color: #242529; font-size: 17px; }.role-subsection-heading > small { max-width: 300px; color: #77787e; font-size: 11px; line-height: 1.45; text-align: right; }
.role-permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.role-permission-group { overflow: hidden; border: 1px solid #e1e2e5; border-radius: 11px; background: #fff; }
.role-permission-group header { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border-bottom: 1px solid #ececef; background: #f8f8f9; }.role-permission-group header strong { color: #36373b; font-size: 12px; }.role-permission-group header small { min-width: 34px; padding: 3px 7px; border-radius: 999px; background: #e9eaed; color: #65666c; font-size: 10px; font-weight: 800; text-align: center; }
.role-permission-group > div { display: grid; }
.role-permission-group label { min-height: 57px; display: grid; grid-template-columns: 19px minmax(0, 1fr); gap: 9px; align-items: center; margin: 0; padding: 8px 11px; border-top: 1px solid #f0f0f2; cursor: pointer; }.role-permission-group label:first-child { border-top: 0; }.role-permission-group label:hover { background: #fffafa; }
.role-permission-group input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }.role-permission-group label > span { display: grid; gap: 3px; }.role-permission-group b { color: #333439; font-size: 12px; }.role-permission-group label small { color: #7b7c82; font-size: 10px; line-height: 1.35; }
.role-permission-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }.role-permission-actions > span { color: #74757b; font-size: 11px; font-weight: 700; }
.role-full-access { margin: 0; }.role-full-access p strong { color: #303136; }
.role-panel-separator { height: 1px; margin: 18px 0; background: #e5e5e8; }
.role-navigation-summary { display: grid; gap: 14px; }
.role-navigation-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.role-navigation-meta article { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafafa; }
.role-navigation-meta small { color: #77787e; font-size: 11px; }.role-navigation-meta strong { overflow: hidden; color: #303136; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.role-menu-preview { display: grid; gap: 6px; }
.role-menu-preview > p { margin: 0; color: #77787e; font-size: 11px; font-weight: 700; }
.role-menu-preview-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.role-menu-preview-item { min-height: 46px; display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 9px; align-items: center; padding: 7px 9px; border: 1px solid #e3e4e7; border-radius: 9px; background: #fff; }
.role-menu-preview-item > .ui-icon { width: 31px; height: 31px; padding: 7px; border-radius: 8px; background: #f1f2f4; color: #55565c; }
.role-menu-preview-item.unavailable { border-style: dashed; background: #fafafa; opacity: .62; }.role-menu-preview-item.unavailable small { color: #bd2731; }
.role-menu-preview-item span:last-child { min-width: 0; display: grid; gap: 3px; }.role-menu-preview-item strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.role-menu-preview-item small { overflow: hidden; color: #85868c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.role-navigation-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.navigation-profile-dialog { width: min(780px, calc(100vw - 30px)); }
.navigation-profile-dialog form { max-height: min(86vh, 820px); overflow-y: auto; }
.navigation-profile-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); gap: 0 12px; }
.navigation-profile-settings fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.navigation-profile-settings fieldset legend { margin-bottom: 7px; color: #515154; font-size: 12px; font-weight: 650; }
.navigation-profile-settings fieldset label { min-height: 58px; display: grid; grid-template-columns: 19px minmax(0, 1fr); gap: 9px; align-items: center; margin: 0; padding: 9px 11px; border: 1px solid #d9dade; border-radius: 10px; background: #fff; cursor: pointer; }
.navigation-profile-settings fieldset label:has(input:checked) { border-color: #e14c56; background: #fff7f7; box-shadow: 0 0 0 2px rgba(225, 76, 86, .1); }
.navigation-profile-settings fieldset input { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); }
.navigation-profile-settings fieldset span { display: grid; gap: 3px; }.navigation-profile-settings fieldset b { color: #303136; font-size: 12px; }.navigation-profile-settings fieldset small { color: #77787e; font-size: 10px; font-weight: 500; }
.navigation-editor-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 5px 0 8px; }
.navigation-editor-heading > div { display: grid; gap: 3px; }.navigation-editor-heading strong { font-size: 13px; }.navigation-editor-heading small, .navigation-editor-heading > span { color: #77787e; font-size: 11px; }
.navigation-editor-list { display: grid; gap: 6px; }
.navigation-editor-group { margin: 8px 0 1px; color: #77787e; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.navigation-editor-item { min-height: 54px; display: grid; grid-template-columns: 22px 34px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 7px 9px; border: 1px solid #e1e2e5; border-radius: 10px; background: #fff; }
.navigation-editor-item.selected { border-color: #efb9bd; background: #fffafa; }
.navigation-editor-item > input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.navigation-editor-item > .ui-icon { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #f0f1f3; color: #55565c; }
.navigation-editor-item > span { min-width: 0; display: grid; gap: 3px; }.navigation-editor-item strong { overflow: hidden; color: #303136; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.navigation-editor-item small { overflow: hidden; color: #7b7c82; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.navigation-editor-order { display: flex; gap: 4px; }.navigation-editor-order button { width: 29px; height: 29px; display: grid; place-items: center; padding: 7px; border: 1px solid #d9dade; border-radius: 8px; background: #fff; color: #5d5e64; cursor: pointer; }.navigation-editor-order button:disabled { opacity: .32; cursor: default; }.navigation-editor-order button:last-child .ui-icon { transform: rotate(180deg); }

.absence-toolbar { justify-content: space-between; margin-top: 3px; }.period-switcher { min-height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 6px; border: 1px solid #d7d8dc; border-radius: 9px; background: #fff; }.period-switcher button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #65666c; cursor: pointer; }.period-switcher button:hover { background: #ececef; }.period-switcher button.next { transform: rotate(180deg); }.period-switcher strong { min-width: 110px; font-size: 12px; text-align: center; }
.absence-legend { display: flex; align-items: center; gap: 14px; margin-left: auto; }.absence-legend span, .timesheet-legend span { display: inline-flex; align-items: center; gap: 5px; color: #686970; font-size: 11px; }.absence-legend i, .timesheet-legend i { width: 7px; height: 7px; border-radius: 2px; }.absence-legend i.vacation { background: #2e86de; }.absence-legend i.sick { background: #e14c56; }.absence-legend i.dayoff { background: #9955cc; }.absence-legend i.remote { background: #34a853; }
.absence-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .6fr); gap: 12px; }.calendar-card { padding: 13px; }.calendar-weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(76px, 1fr)); }.calendar-weekdays span { min-height: 29px; display: grid; place-items: center; color: #7b7c82; font-size: 11px; font-weight: 700; }.month-grid { overflow: hidden; border: 1px solid #e3e4e7; border-radius: 9px; }.month-grid article { min-height: 101px; display: flex; flex-direction: column; gap: 4px; padding: 7px; border-right: 1px solid #e7e8eb; border-bottom: 1px solid #e7e8eb; background: #fff; }.month-grid article:nth-child(7n) { border-right: 0; }.month-grid article:nth-last-child(-n+7) { border-bottom: 0; }.month-grid article.weekend { background: #fafafa; }.month-grid article.outside { color: #b2b3b8; background: #f7f7f8; }.month-grid article.today { position: relative; background: #fff8f8; box-shadow: inset 0 0 0 1px #e9838a; }.month-grid time { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; font-size: 11px; font-weight: 700; }.month-grid .today time { background: var(--primary); color: #fff; }
.calendar-event { min-height: 19px; display: flex; align-items: center; overflow: hidden; padding: 0 5px; border-radius: 5px; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.calendar-event.vacation { background: #e8f2fd; color: #246aa4; }.calendar-event.sick { background: #fbe9e7; color: #b73b35; }.calendar-event.dayoff { background: #f2eafd; color: #7e409d; }.calendar-event.remote { background: #e7f6ec; color: #287a40; }
.absence-side { display: grid; align-content: start; gap: 12px; }.absence-request-card { padding: 16px; }.absence-request { padding: 14px 0; border-top: 1px solid #ececef; transition: .22s ease; }.absence-request > div:first-child { display: flex; align-items: center; gap: 9px; }.absence-request > div:first-child > span:last-child { display: grid; gap: 4px; }.absence-request strong { font-size: 12px; }.absence-request small { color: #77787e; font-size: 11px; }.absence-request p { margin: 8px 0 11px; color: #5d5e64; font-size: 11px; }.absence-request > div:last-child { display: flex; gap: 7px; }.absence-request .button { min-height: 32px; flex: 1; padding: 0 8px; font-size: 11px; }
.team-availability article { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 6px 10px; align-items: center; padding: 11px 0; border-top: 1px solid #ececef; }.team-availability article > span { font-size: 11px; font-weight: 650; }.team-availability article > strong { font-size: 12px; text-align: right; }.team-availability article > i { height: 5px; display: block; overflow: hidden; border-radius: 99px; background: #ececef; }.team-availability article > i b { height: 100%; display: block; border-radius: inherit; background: #34a853; }.team-availability article > small { color: #77787e; font-size: 10px; text-align: right; }

.timesheet-note { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: center; margin-bottom: 11px; padding: 12px 14px; border: 1px solid #d8d9dd; border-radius: 10px; background: #fafafa; }.timesheet-note > .ui-icon { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #eef0f3; color: #55565c; }.timesheet-note strong { font-size: 12px; }.timesheet-note p { margin: 4px 0 0; color: #6b6c72; font-size: 11px; }
.timesheet-toolbar .period-switcher { margin-right: 4px; }.timesheet-toolbar .admin-search { width: min(270px, 26vw); }.timesheet-panel { margin-top: 2px; }.timesheet-meta { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 15px; border-bottom: 1px solid var(--line); }.timesheet-meta > strong { color: #515258; font-size: 11px; }.timesheet-legend { display: flex; gap: 13px; }.timesheet-legend i.complete { background: #34a853; }.timesheet-legend i.short { background: #e14c56; }.timesheet-legend i.absence { background: #2e86de; }
.timesheet-scroll { overflow-x: auto; }.timesheet-table { min-width: 1180px; padding: 0 12px 9px; }.timesheet-head, .timesheet-row { display: grid; grid-template-columns: minmax(185px, 1.25fr) repeat(5, 68px) 86px 86px 72px 82px; gap: 9px; align-items: center; }.timesheet-head { min-height: 39px; color: #77787e; font-size: 11px; font-weight: 700; text-align: center; }.timesheet-head span:first-child { text-align: left; }
.timesheet-row { position: relative; width: 100%; min-height: 72px; padding: 0; border: 0; border-top: 1px solid #e8e8eb; background: #fff; color: #44454b; text-align: left; cursor: pointer; font: inherit; transition: background .15s ease; }.timesheet-row:hover { background: #fafafa; }.timesheet-row > span:not(.employee-person) { text-align: center; }
.week-hours { min-height: 39px; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 7px; background: #f2f3f5; }.week-hours.complete { background: #edf7f0; }.week-hours.short { background: #fff0f1; }.week-hours.current { background: #fff6e8; }.week-hours.absence { background: #ebf3fc; }.week-hours.future { color: #999aa0; }.week-hours strong { font-size: 12px; }.week-hours small { font-size: 10px; }
.variance { width: fit-content; min-height: 24px; display: inline-flex !important; align-items: center; justify-content: center; justify-self: center; padding: 0 7px; border-radius: 7px; font-size: 11px; font-weight: 750; }.variance.good { background: #e7f6ec; color: #287a40; }.variance.neutral { background: #edf1f7; color: #4a5c73; }.variance.danger { background: #fbe9e7; color: #b73b35; }
.timesheet-detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 13px; }.timesheet-detail-summary article { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafafa; }.timesheet-detail-summary small { color: #77787e; font-size: 11px; }.timesheet-detail-summary strong { font-size: 15px; }.timesheet-detail-list article { min-height: 62px; display: grid; grid-template-columns: 61px minmax(0, 1.2fr) minmax(95px, .7fr) 70px; gap: 10px; align-items: center; border-top: 1px solid #ececef; }.timesheet-detail-list time { color: #55565c; font-size: 11px; font-weight: 700; }.timesheet-detail-list span { display: grid; gap: 4px; }.timesheet-detail-list strong { font-size: 11px; }.timesheet-detail-list small { color: #77787e; font-size: 11px; }.timesheet-detail-list b { color: #a96300; font-size: 11px; text-align: right; }.timesheet-detail-list b.ok { color: #287a40; }
.admin-toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; padding: 12px 15px; border-radius: 10px; background: #25262a; color: #fff; box-shadow: 0 14px 38px rgba(0,0,0,.22); opacity: 0; transform: translateY(8px); pointer-events: none; font-size: 12px; font-weight: 650; transition: .2s ease; }.admin-toast.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .admin-kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-toolbar, .absence-toolbar { flex-wrap: wrap; }
  .role-layout, .absence-layout { grid-template-columns: 1fr; }
  .absence-side { grid-template-columns: repeat(2, 1fr); }
  .absence-legend { margin-left: 0; }
}
@media (max-width: 760px) {
  .admin-page { padding-right: 14px; padding-left: 14px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-kpis, .absence-side { grid-template-columns: 1fr; }
  .admin-tabs { overflow-x: auto; gap: 18px; }.admin-tabs button { flex: none; }
  .admin-toolbar, .absence-toolbar { align-items: stretch; }
  .admin-search { width: 100%; min-width: 0; }.admin-select { flex: 1; }.admin-result { width: 100%; margin-left: 0; }
  .admin-table-panel { overflow-x: auto; }
  .role-layout { overflow-x: hidden; }.permission-card { overflow-x: auto; }.permission-head, .permission-row { min-width: 510px; }
  .access-request { grid-template-columns: 36px minmax(0, 1fr); padding: 12px 0; }.access-request > .request-risk, .access-request > div:last-child { grid-column: 2; justify-self: start; }
  .admin-form-grid, .employee-card-grid { grid-template-columns: 1fr; }.admin-form-grid .wide { grid-column: auto; }
  .role-navigation-meta, .role-menu-preview-list, .role-permission-groups, .navigation-profile-settings, .navigation-profile-settings fieldset { grid-template-columns: 1fr; }.role-subsection-heading { align-items: start; flex-direction: column; }.role-subsection-heading > small { text-align: left; }.navigation-profile-settings fieldset { grid-column: auto; }.navigation-editor-item { grid-template-columns: 22px 32px minmax(0, 1fr); }.navigation-editor-order { grid-column: 2 / -1; justify-self: end; }
  .absence-legend { width: 100%; overflow-x: auto; }.absence-legend span { flex: none; }.calendar-card { overflow-x: auto; }.calendar-weekdays, .month-grid { min-width: 720px; }
  .timesheet-toolbar .period-switcher { width: 100%; justify-content: space-between; }.timesheet-toolbar .admin-search { width: 100%; }.timesheet-detail-summary { grid-template-columns: 1fr; }.timesheet-detail-list article { grid-template-columns: 60px 1fr; padding: 10px 0; }.timesheet-detail-list b { text-align: left; }
}

/* Sales audit refinements — kept last to override the shared board primitives. */
.funnel-column.won-stage, .funnel-column.stage-won { background: #eaf5ed; }
.funnel-column.won-stage .deal-card, .funnel-column.stage-won .deal-card { border-color: #b9ddc3; }
.pipeline-dialog { width: min(720px, calc(100vw - 30px)); }
.pipeline-dialog-body { padding: 24px; }
.pipeline-dialog-select { display: grid; gap: 7px; margin-bottom: 12px; color: #67686e; font-size: 11px; font-weight: 700; }
.pipeline-dialog-select select, .new-pipeline-row input { min-height: 39px; padding: 0 10px; border: 1px solid #d5d6da; border-radius: 9px; background: #fff; color: #303136; font: inherit; }
.stage-editor-row { grid-template-columns: 30px minmax(0, 1fr) 118px auto; }
.stage-editor-row input, .stage-editor-row select { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid #d6d7db; border-radius: 7px; background: #fff; font: inherit; font-size: 11px; }
.stage-row-actions { display: flex; gap: 4px; }
.stage-row-actions button { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 7px; background: #eceef1; color: #5e5f65; cursor: pointer; font-size: 14px; }
.pipeline-dialog-body > .stage-editor-actions { display: flex; gap: 7px; margin-top: 9px; }
.pipeline-dialog-body > .stage-editor-actions button { width: auto; height: auto; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 1px solid #d5d6da; background: #fff; }
.new-pipeline-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e2e3e6; }
.funnel-page .funnel-board { width: max-content; min-width: 100%; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(255px, 285px); }
.deal-page .section-heading h2 { margin: 0; }
.stage-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.stage-kind { min-height: 20px; display: inline-flex; align-items: center; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,.72); color: #4f6656; font-size: 10px; font-weight: 750; }
.funnel-column.stage-won { box-shadow: inset 0 0 0 1px #c5dfcc; }
.funnel-column.stage-fulfilled { background: #f0f1f2; opacity: .82; }.funnel-column.stage-fulfilled .deal-card { border-color: #d7d8db; }.funnel-column.stage-fulfilled .stage-kind { color: #67686e; }
.contract-route-card .section-heading { align-items: flex-start; }.contract-route-card .section-heading p { margin: 4px 0 0; color: #77787e; font-size: 11px; }
.contract-progress { position: relative; display: grid; }.contract-progress::before { position: absolute; top: 19px; bottom: 19px; left: 14px; width: 1px; background: #dedfe3; content: ""; }.contract-progress article { position: relative; display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 9px; align-items: center; min-height: 50px; }.contract-progress article > span { z-index: 1; width: 29px; height: 29px; display: grid; place-items: center; padding: 7px; border: 1px solid #d5d6da; border-radius: 50%; background: #fff; color: #7a7b81; font-size: 11px; font-weight: 750; }.contract-progress article.complete > span { border-color: #34a853; background: #34a853; color: #fff; }.contract-progress article.current > span { border-color: var(--primary); background: #fde9eb; color: #a5141f; }.contract-progress strong { color: #34353a; font-size: 11px; }.contract-progress p { margin: 4px 0 0; color: #818288; font-size: 10px; }.contract-version-note { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 7px; align-items: start; margin: 9px 0 0; padding: 9px; border-radius: 8px; background: #fff5e5; color: #7a591f; font-size: 10px; line-height: 1.45; }.contract-version-note .ui-icon { width: 20px; height: 20px; padding: 3px; }

@media (max-width: 760px) {
  .stage-editor-row { grid-template-columns: 28px minmax(0, 1fr); }
  .stage-editor-row .stage-color-input, .stage-row-actions { grid-column: 2; }
  .new-pipeline-row { grid-template-columns: 1fr; }
}

/* Contract workspace */
.contract-card-workspace { min-width: 0; }.contract-card-page { max-width: 1440px; padding-right: 28px; padding-left: 28px; }
.contract-card-page .back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 17px; }.contract-card-page .back-link .ui-icon { width: 17px; height: 17px; }
.contract-card-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }.contract-card-titlebar h1 { max-width: 880px; margin: 8px 0 4px; font-size: clamp(27px, 3vw, 40px); }.contract-title-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #74757b; font-size: 11px; font-weight: 750; }
.contract-version-chip, .contract-state-chip { min-height: 26px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 750; }.contract-version-chip { background: #edf1f7; color: #526378; }.contract-state-chip.review { background: #fff1dc; color: #97600f; }.contract-state-chip.revision { background: #fbe9e7; color: #b73b35; }.contract-state-chip.ready { background: #e7f6ec; color: #287a40; }
.contract-history-chip { min-height: 26px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 7px; background: #fff1dc; color: #8f5f13; font-size: 11px; font-weight: 750; }
.contract-title-amount { min-width: 225px; display: grid; gap: 4px; text-align: right; }.contract-title-amount span, .contract-title-amount small { color: #77787e; font-size: 11px; }.contract-title-amount strong { color: #292a2f; font-size: 20px; font-variant-numeric: tabular-nums; }
.approval-route { display: grid; grid-template-columns: repeat(6, 1fr); margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.approval-route article { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 42px; }.approval-route article:not(:last-child)::after { position: absolute; top: 20px; right: 8px; width: calc(100% - 112px); height: 1px; background: #dfe0e3; content: ""; }.approval-route article > span { z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; padding: 8px; border: 1px solid #d5d6da; border-radius: 50%; background: #fff; color: #7b7c82; font-size: 11px; font-weight: 750; }.approval-route article.complete > span { border-color: #34a853; background: #34a853; color: #fff; }.approval-route article.current > span { border-color: var(--primary); background: #fde9eb; color: #a5141f; box-shadow: 0 0 0 3px #fff1f2; }.approval-route strong { display: block; color: #34353a; font-size: 11px; }.approval-route p { margin: 4px 0 0; color: #818288; font-size: 10px; }
.contract-card-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }.contract-card-main { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }.contract-tabs { min-height: 55px; display: flex; gap: 5px; align-items: end; padding: 0 18px; border-bottom: 1px solid var(--line); }.contract-tabs button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6a6b71; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }.contract-tabs button.active { border-color: var(--primary); color: #26272c; }.contract-tabs button span { min-width: 20px; min-height: 20px; display: grid; place-items: center; border-radius: 6px; background: #eff0f2; font-size: 11px; }
.contract-tab-panel { padding: 20px; }.contract-tab-panel.hidden { display: none; }.contract-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 13px; }.contract-section-heading .eyebrow { margin-bottom: 4px; font-size: 11px; }.contract-section-heading h2 { font-size: 14px; }.button.compact { min-height: 33px; padding: 0 10px; font-size: 11px; }.button.compact .ui-icon { width: 14px; height: 14px; }
.contract-terms-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border: 1px solid #e0e1e4; border-radius: 10px; background: #fafafa; }.contract-terms-grid > div { min-height: 56px; display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 10px; align-items: center; padding: 0 12px; border-bottom: 1px solid #e6e7e9; }.contract-terms-grid > div:nth-child(odd) { border-right: 1px solid #e6e7e9; }.contract-terms-grid > div:nth-last-child(-n+2) { border-bottom: 0; }.contract-terms-grid dt { color: #7b7c82; font-size: 11px; }.contract-terms-grid dd { margin: 0; color: #393a40; font-size: 11px; font-weight: 650; line-height: 1.4; }.contract-block-heading { margin-top: 20px; }.version-health { display: inline-flex; align-items: center; gap: 5px; color: #287a40; font-size: 11px; font-weight: 700; }.version-health .ui-icon { width: 14px; height: 14px; }
.contract-file-stack { display: grid; }.contract-file-stack article { min-height: 62px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 30px; gap: 10px; align-items: center; border-top: 1px solid #e8e8eb; }.contract-file-stack article:first-child { border-top: 0; }.contract-file-stack article.active { margin: 0 -8px; padding: 0 8px; border-radius: 9px; background: #fff8f8; }.contract-file-stack strong { color: #34353a; font-size: 11px; }.contract-file-stack p { margin: 4px 0 0; color: #7a7b81; font-size: 11px; }.contract-file-stack .icon-button { width: 29px; height: 29px; }.document-badge { min-height: 23px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 750; }.document-badge.current { background: #fde9eb; color: #a5141f; }.document-badge.archive { background: #edf1f7; color: #596a7d; }
.document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 8px; border: 1px solid #e0e1e4; border-radius: 9px; background: #fafafa; }.document-toolbar > div { display: flex; align-items: center; gap: 8px; }.document-toolbar span { color: #7b7c82; font-size: 11px; }.document-preview { overflow: auto; max-height: 620px; padding: 24px; border-radius: 10px; background: #e9eaec; }.document-sheet { position: relative; width: min(650px, 100%); min-height: 780px; margin: 0 auto; padding: 54px 62px; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.11); color: #24252a; }.document-logo { color: var(--primary); font-size: 12px; font-weight: 850; letter-spacing: .16em; }.document-sheet h2 { margin: 48px 0 5px; text-align: center; font-size: 15px; }.document-sheet h3 { margin: 25px 0 10px; font-size: 12px; }.document-sheet p { display: flex; justify-content: space-between; gap: 20px; margin: 13px 0; font-size: 11px; line-height: 1.8; }.document-sheet p.center { display: block; margin-top: 0; text-align: center; }.document-fade { position: absolute; right: 0; bottom: 0; left: 0; padding: 55px 20px 20px; background: linear-gradient(transparent,#fff 48%); color: #888990; font-size: 11px; text-align: center; }
.approval-summary { min-height: 25px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 7px; background: #fff1dc; color: #97600f; font-size: 11px; font-weight: 750; }.approval-list { display: grid; }.approval-list article { min-height: 88px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 14px 0; border-top: 1px solid #e7e8eb; }.approval-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #eceef1; color: #5d5e64; font-size: 11px; font-weight: 750; }.approval-list strong { color: #303136; font-size: 12px; }.approval-list p { margin: 4px 0; color: #66676d; font-size: 11px; }.approval-list small { color: #83848a; font-size: 11px; line-height: 1.45; }.approval-list article.locked { opacity: .62; }.approval-list article.returned { margin: 0 -8px; padding-right: 8px; padding-left: 8px; background: #fff7f6; }.approval-result { min-height: 25px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 7px; background: #e7f6ec; color: #287a40; font-size: 10px; font-weight: 750; white-space: nowrap; }.approval-result .ui-icon { width: 12px; height: 12px; }.approval-result.waiting { background: #fff1dc; color: #97600f; }.approval-list article.returned .approval-result { background: #fbe9e7; color: #b73b35; }.approval-actions { display: flex; gap: 7px; margin-top: 10px; }.approval-actions.hidden { display: none; }.version-warning { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 13px; padding: 12px; border: 1px solid #efc57f; border-radius: 9px; background: #fff7e9; color: #73531d; }.version-warning > .ui-icon { width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: #ffe8c5; }.version-warning p { margin: 0; font-size: 11px; line-height: 1.5; }
.approval-summary.complete { background: #e7f6ec; color: #287a40; }
.retrospective-empty { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: center; padding: 20px; border: 1px solid #d8eadf; border-radius: 11px; background: #f3faf5; }
.retrospective-empty > .ui-icon { width: 42px; height: 42px; padding: 11px; border-radius: 50%; background: #dff2e5; color: #287a40; }
.retrospective-empty strong { color: #2d5338; font-size: 12px; }.retrospective-empty p { margin: 5px 0 0; color: #65806c; font-size: 11px; line-height: 1.5; }
.contract-history { position: relative; display: grid; }.contract-history::before { position: absolute; top: 17px; bottom: 17px; left: 16px; width: 1px; background: #e1e2e5; content: ""; }.contract-history article { position: relative; display: grid; grid-template-columns: 33px minmax(0, 1fr) auto; gap: 11px; align-items: start; min-height: 72px; padding: 10px 0; }.contract-history article > .ui-icon { z-index: 1; width: 33px; height: 33px; padding: 8px; border-radius: 50%; background: #f0f1f3; color: #62636a; }.contract-history strong { font-size: 11px; }.contract-history p { margin: 4px 0 0; color: #77787e; font-size: 11px; }.contract-history time { color: #88898f; font-size: 11px; white-space: nowrap; }
.contract-card-aside { display: grid; gap: 12px; }.contract-side-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.contract-side-card h2 { font-size: 12px; }.contract-side-card .section-heading { margin-bottom: 12px; }.due-chip { min-height: 24px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 7px; background: #fbe9e7; color: #b73b35; font-size: 10px; font-weight: 750; }.next-contract-action .next-action-main > .ui-icon { background: #fff1dc; color: #97600f; }
.contract-side-facts { display: grid; margin: 10px 0 0; }.contract-side-facts > div { min-height: 39px; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; align-items: center; border-top: 1px solid #ececef; }.contract-side-facts dt { color: #7a7b81; font-size: 11px; }.contract-side-facts dd { margin: 0; color: #3b3c41; font-size: 11px; font-weight: 650; }.mini-state { min-height: 23px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 750; }.mini-state.ok { background: #e7f6ec; color: #287a40; }.mini-state.waiting { background: #fff1dc; color: #97600f; }
.related-object-list { display: grid; margin-top: 10px; }.related-object-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 9px; align-items: center; padding: 10px 0; border-top: 1px solid #ececef; color: inherit; }.related-object-list a:first-child { border-top: 0; }.related-object-list a > .ui-icon:first-child { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #f0f1f3; color: #62636a; }.related-object-list a > .ui-icon:last-child { width: 15px; height: 15px; color: #898a90; }.related-object-list strong { font-size: 11px; }.related-object-list p { margin: 4px 0 0; color: #77787e; font-size: 10px; }.signing-parties { display: grid; margin-bottom: 11px; }.signing-parties article { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 52px; border-top: 1px solid #ececef; }.signing-parties article > .ui-icon { width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: #f0f1f3; color: #62636a; }.signing-parties strong { font-size: 11px; }.signing-parties p { margin: 4px 0 0; color: #77787e; font-size: 10px; }
.contract-detail-dialog { width: min(540px, calc(100vw - 30px)); }.contract-detail-dialog form { padding: 25px; }.contract-detail-dialog label { display: grid; gap: 7px; margin-top: 13px; color: #616268; font-size: 11px; font-weight: 700; }.contract-detail-dialog textarea, .contract-detail-dialog input { width: 100%; padding: 10px; border: 1px solid #d3d4d8; border-radius: 9px; font: inherit; }.contract-toast { position: fixed; right: 24px; bottom: 24px; z-index: 90; max-width: 390px; padding: 12px 15px; border-radius: 10px; background: #25262a; color: #fff; box-shadow: 0 14px 38px rgba(0,0,0,.22); opacity: 0; transform: translateY(8px); pointer-events: none; font-size: 11px; font-weight: 650; line-height: 1.4; transition: .2s ease; }.contract-toast.visible { opacity: 1; transform: none; }
.contract-list-row { cursor: pointer; }.contract-list-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

@media (max-width: 1100px) { .contract-card-layout { grid-template-columns: 1fr; }.contract-card-aside { grid-template-columns: repeat(2, 1fr); }.approval-route { grid-template-columns: repeat(3, 1fr); gap: 9px 0; }.approval-route article:nth-child(3)::after, .approval-route article:last-child::after { display: none; } }
@media (max-width: 760px) { .contract-card-page { padding-right: 14px; padding-left: 14px; }.contract-card-titlebar { align-items: flex-start; flex-direction: column; }.contract-title-amount { text-align: left; }.approval-route { grid-template-columns: 1fr 1fr; }.approval-route article::after { display: none; }.contract-tabs { overflow-x: auto; }.contract-tabs button { flex: none; }.contract-terms-grid, .contract-card-aside { grid-template-columns: 1fr; }.contract-terms-grid > div { grid-template-columns: 105px minmax(0, 1fr); border-right: 0 !important; }.contract-terms-grid > div:nth-last-child(2) { border-bottom: 1px solid #e6e7e9; }.approval-list article { grid-template-columns: 38px minmax(0, 1fr); }.approval-result { grid-column: 2; justify-self: start; }.document-sheet { min-width: 560px; }.contract-section-heading, .document-toolbar { align-items: flex-start; flex-direction: column; } }

/* Project launch from a won deal */
.launch-page { max-width: none; padding-right: 30px; padding-left: 30px; }
.launch-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 17px 0 20px; }
.launch-titlebar h1 { max-width: 840px; margin-top: 8px; font-size: clamp(31px, 3vw, 44px); letter-spacing: -.045em; line-height: 1.02; }
.launch-title-meta { display: flex; align-items: center; gap: 8px; color: #76777d; font-size: 11px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.launch-ready-chip { min-height: 25px; display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 7px; background: #e7f6ec; color: #287a40; letter-spacing: 0; text-transform: none; }
.launch-ready-chip .ui-icon { width: 13px; height: 13px; }
.launch-title-amount { display: grid; flex: none; gap: 4px; text-align: right; }
.launch-title-amount > span, .launch-title-amount small { color: #85868b; font-size: 11px; }
.launch-title-amount strong { color: #242529; font-size: 21px; font-variant-numeric: tabular-nums; }
.launch-route { min-height: 70px; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.launch-route article { position: relative; display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 9px; align-items: center; padding: 0 12px; }
.launch-route article::after { position: absolute; top: 50%; right: -5px; width: 18px; height: 1px; background: #dcdddf; content: ""; }
.launch-route article:last-child::after { display: none; }
.launch-route article > span { z-index: 1; width: 31px; height: 31px; display: grid; place-items: center; padding: 8px; border: 1px solid #d6d7db; border-radius: 50%; background: #fff; color: #77787d; font-size: 11px; font-weight: 750; }
.launch-route article.complete > span { border-color: #34a853; background: #34a853; color: #fff; }
.launch-route article.active > span { border-color: var(--primary); background: #fde9eb; color: #a5141f; box-shadow: 0 0 0 4px #fff4f5; }
.launch-route article > div { min-width: 0; display: grid; gap: 4px; }
.launch-route strong { color: #34353a; font-size: 11px; }
.launch-route small { overflow: hidden; color: #88898f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.launch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.launch-main, .launch-aside { display: grid; align-content: start; gap: 14px; }
.launch-card, .launch-summary-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.launch-section-heading { min-height: 36px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.launch-section-heading h2, .launch-summary-card h2 { margin-top: 3px; color: #292a2f; font-size: 14px; }
.launch-section-status { min-height: 26px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 7px; background: #f0f1f3; color: #66676d; font-size: 11px; font-weight: 750; white-space: nowrap; }
.launch-section-status.success { background: #e7f6ec; color: #287a40; }
.launch-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.launch-check-grid article { min-height: 68px; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 11px; border: 1px solid #e1e2e5; border-radius: 10px; background: #fbfbfc; }
.launch-check-grid article > .ui-icon { width: 31px; height: 31px; padding: 8px; border-radius: 50%; background: #e7f6ec; color: #287a40; }
.launch-check-grid article > div { min-width: 0; display: grid; gap: 4px; }
.launch-check-grid strong { color: #37383d; font-size: 11px; }
.launch-check-grid p { overflow: hidden; margin: 0; color: #797a80; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.launch-check-grid a, .launch-check-grid button { border: 0; background: transparent; color: #a5141f; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; text-decoration: none; }
.launch-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.launch-form-grid label, .launch-team-grid label { display: grid; gap: 7px; color: #5f6066; font-size: 11px; font-weight: 700; }
.launch-form-grid label.wide { grid-column: 1 / -1; }
.launch-form-grid input, .launch-form-grid select, .launch-form-grid textarea, .launch-team-grid select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid #d7d8dc; border-radius: 9px; outline: none; background: #fff; color: #2f3035; font: inherit; font-size: 12px; font-weight: 550; transition: border-color .15s ease, box-shadow .15s ease; }
.launch-form-grid textarea { min-height: 72px; padding-top: 10px; resize: vertical; line-height: 1.5; }
.launch-form-grid input:focus, .launch-form-grid select:focus, .launch-form-grid textarea:focus, .launch-team-grid select:focus { border-color: #df6e76; box-shadow: 0 0 0 3px #fde9eb; }
.launch-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.launch-team-grid label { padding: 12px; border: 1px solid #e0e1e4; border-radius: 10px; background: #fafafa; }
.launch-person-label { display: flex; align-items: center; gap: 9px; }
.launch-person-label > span { display: grid; gap: 4px; }
.launch-person-label strong { color: #34353a; font-size: 11px; }
.launch-person-label small { color: #818288; font-size: 10px; font-weight: 500; }
.launch-plan-preview { overflow: hidden; margin-top: 13px; border: 1px solid #e0e1e4; border-radius: 10px; }
.launch-plan-head { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #f6f6f7; }
.launch-plan-head > div { display: grid; gap: 4px; }
.launch-plan-head strong { color: #34353a; font-size: 11px; }
.launch-plan-head p { margin: 0; color: #808187; font-size: 10px; }
.launch-plan-head > span { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 7px; background: #fff; color: #63646a; font-size: 11px; font-weight: 700; white-space: nowrap; }
.launch-stage-list { display: grid; padding: 0 12px; }
.launch-stage-list article { min-height: 56px; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; gap: 9px; align-items: center; border-top: 1px solid #ebebed; }
.launch-stage-list article:first-child { border-top: 0; }
.launch-stage-list b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #eff0f2; color: #6b6c72; font-size: 10px; }
.launch-stage-list article > div { display: grid; gap: 4px; }
.launch-stage-list strong { color: #3c3d42; font-size: 11px; }
.launch-stage-list small { color: #818288; font-size: 10px; }
.launch-stage-list article > span { color: #5e5f65; font-size: 11px; font-weight: 700; }
.launch-options-card { display: grid; }
.launch-option { position: relative; min-height: 63px; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid #e8e8eb; cursor: pointer; }
.launch-option input { position: absolute; opacity: 0; }
.launch-option > .ui-icon { width: 22px; height: 22px; padding: 4px; border: 1px solid #bfc1c6; border-radius: 6px; color: transparent; }
.launch-option input:checked + .ui-icon { border-color: var(--primary); background: var(--primary); color: #fff; }
.launch-option > div { display: grid; gap: 5px; }
.launch-option strong { color: #37383d; font-size: 11px; }
.launch-option p { margin: 0; color: #77787e; font-size: 11px; line-height: 1.45; }
.launch-aside { position: sticky; top: 83px; }
.launch-relations { display: grid; }
.launch-relations > a, .launch-relations > div { min-height: 58px; display: grid; grid-template-columns: 33px minmax(0, 1fr) auto; gap: 9px; align-items: center; border-top: 1px solid #e8e8eb; color: inherit; text-decoration: none; }
.launch-relations > :first-child { border-top: 0; }
.launch-relations > a:hover strong { color: #a5141f; }
.relation-icon { width: 33px; height: 33px; padding: 8px; border-radius: 9px; background: #f0f1f3; color: #62636a; }
.relation-icon.client { background: #fde9eb; color: #b91621; }.relation-icon.deal { background: #e8f0fa; color: #3e6c9f; }.relation-icon.contract { background: #fff1dc; color: #97600f; }.relation-icon.service { background: #e7f6ec; color: #287a40; }
.launch-relations > a > div, .launch-relations > div > div { min-width: 0; display: grid; gap: 4px; }
.launch-relations small { color: #898a90; font-size: 10px; }
.launch-relations strong { overflow: hidden; color: #38393e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; transition: color .15s ease; }
.launch-relations > a > .ui-icon:last-child { width: 15px; height: 15px; color: #929399; }
.relation-state { min-height: 23px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 7px; background: #f0f1f3; color: #696a70; font-size: 10px; font-weight: 700; }
.launch-transfer-card > h2 { margin-bottom: 11px; }
.launch-transfer-card ul { display: grid; margin: 0; padding: 0; list-style: none; }
.launch-transfer-card li { min-height: 54px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: center; border-top: 1px solid #e8e8eb; }
.launch-transfer-card li > .ui-icon { width: 24px; height: 24px; padding: 6px; border-radius: 50%; background: #e7f6ec; color: #287a40; }
.launch-transfer-card li > div { display: grid; gap: 4px; }
.launch-transfer-card strong { color: #3a3b40; font-size: 11px; }
.launch-transfer-card small { color: #828389; font-size: 10px; }
.launch-confirm-card { border-color: #efb2b6; box-shadow: 0 7px 24px rgba(105, 18, 24, .07); }
.launch-confirm-state { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 14px; }
.launch-confirm-state > .ui-icon { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: #e7f6ec; color: #287a40; }
.launch-confirm-state > div { display: grid; gap: 4px; }
.launch-confirm-state strong { color: #292a2f; font-size: 12px; }
.launch-confirm-state p, .launch-confirm-card > p { margin: 0; color: #818288; font-size: 10px; line-height: 1.45; }
.launch-confirm-card > .button { min-height: 43px; }
.launch-confirm-card > p { margin-top: 9px; text-align: center; }
.deal-launch-button { min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 0 10px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 750; text-decoration: none; }
.deal-launch-button:hover { background: #a70f1a; }
.deal-launch-button .ui-icon { width: 14px; height: 14px; }
.launch-success-dialog { width: min(560px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(20, 20, 22, .24); }
.launch-success-dialog::backdrop { background: rgba(28, 29, 32, .4); backdrop-filter: blur(4px); }
.launch-success-body { padding: 28px; text-align: center; }
.launch-success-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; padding: 15px; border-radius: 50%; background: #e7f6ec; color: #287a40; }
.launch-success-body h2 { margin: 6px 0 9px; font-size: 22px; }
.launch-success-body > p:not(.eyebrow) { max-width: 430px; margin: 0 auto; color: #696a70; font-size: 12px; line-height: 1.55; }
.launch-success-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.launch-success-facts span { display: grid; gap: 5px; padding: 12px; border-radius: 9px; background: #f4f4f5; }
.launch-success-facts small { color: #88898f; font-size: 10px; }
.launch-success-facts strong { color: #35363b; font-size: 11px; }

@media (max-width: 1100px) {
  .launch-layout { grid-template-columns: 1fr; }
  .launch-aside { position: static; grid-template-columns: 1fr 1fr; }
  .launch-confirm-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .launch-page { padding-right: 14px; padding-left: 14px; }
  .launch-titlebar { align-items: flex-start; flex-direction: column; }
  .launch-title-amount { text-align: left; }
  .launch-route { grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .launch-route article::after { display: none; }
  .launch-check-grid, .launch-form-grid, .launch-team-grid, .launch-aside { grid-template-columns: 1fr; }
  .launch-form-grid label.wide, .launch-confirm-card { grid-column: auto; }
  .launch-check-grid article { grid-template-columns: 31px minmax(0, 1fr); }
  .launch-check-grid article > a, .launch-check-grid article > button { grid-column: 2; justify-self: start; }
  .launch-success-facts { grid-template-columns: 1fr; }
}

/* Semantic sidebar graphics */
.main-nav { min-height: 0; overflow-y: auto; padding-right: 2px; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-caption { flex: none; }
.nav-item { min-height: 48px; flex: none; gap: 10px; padding: 4px 8px; }
.nav-item .nav-graphic.ui-icon {
  width: 32px;
  height: 32px;
  display: grid;
  flex: none;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(0, 0, 0, .045);
  border-radius: 9px;
  background: #eceef1;
  color: #686a71;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.nav-item:hover .nav-graphic { transform: translateY(-1px); }
.nav-item .nav-graphic.violet { border-color: #ead9f4; background: #f5ebfa; color: #8750a3; }
.nav-item .nav-graphic.blue { border-color: #d7e5f5; background: #eaf2fb; color: #3f6f9f; }
.nav-item .nav-graphic.cyan { border-color: #d4eaf3; background: #e9f6fa; color: #3984a2; }
.nav-item .nav-graphic.amber { border-color: #f1e1c5; background: #fff4e2; color: #9a691e; }
.nav-item .nav-graphic.green { border-color: #d6eadc; background: #eaf7ee; color: #347a49; }
.nav-item .nav-graphic.rose { border-color: #f1d4d6; background: #fdebed; color: #ae3038; }
.nav-item .nav-graphic.slate { border-color: #dfe1e5; background: #eff0f2; color: #5f626a; }
.nav-item.active .nav-graphic,
.nav-item.active-filter .nav-graphic {
  border-color: #c91d27;
  background: linear-gradient(145deg, #ef4149, #d91f29);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 9px rgba(177, 21, 30, .18);
}
.nav-item.active .nav-graphic.ui-icon,
.nav-item.active-filter .nav-graphic.ui-icon { color: #fff; }
.nav-item > span:nth-child(2):not(.nav-badge):not(.nav-memory) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .nav-badge { margin-left: auto; }

@media (max-width: 760px) {
  .nav-item { min-height: 46px; }
  .nav-item .nav-graphic.ui-icon { width: 30px; height: 30px; }
}

/* Stable department navigation: the return action lives inside the Overview row. */
.department-return { display: none !important; }
.nav-item.has-back-indicator { padding-right: 7px; }
.nav-back-indicator.ui-icon {
  width: 28px;
  height: 28px;
  display: grid;
  flex: none;
  place-items: center;
  margin-left: auto;
  padding: 7px;
  border: 1px solid #d9dade;
  border-radius: 8px;
  background: #fff;
  color: #6a6c73;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .025);
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}
.nav-item.has-back-indicator:hover .nav-back-indicator {
  border-color: #e3a6aa;
  background: #fff4f5;
  color: #b5141f;
  transform: translateX(-1px);
}

/* Portfolio balance */
.project-modebar { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.project-modebar p { margin: 0 4px 0 auto; color: #77787e; font-size: 12px; }
.project-view-switch button { display: inline-flex; align-items: center; gap: 7px; }
.project-view-switch .ui-icon { width: 16px; height: 16px; }
.portfolio-balance { display: grid; gap: 14px; }
.portfolio-controlbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 2px 0; }
.portfolio-controlbar h2, .portfolio-section-heading h2 { margin: 3px 0 0; font-size: 18px; }
.portfolio-filters { display: flex; align-items: center; gap: 6px; }
.portfolio-filters button { min-height: 33px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #dddde1; border-radius: 8px; background: #fff; color: #66676d; cursor: pointer; font-size: 12px; font-weight: 650; }
.portfolio-filters button.active { border-color: #e6b5b8; background: #fff1f2; color: #ac1721; }
.portfolio-filters .ui-icon { width: 15px; height: 15px; }
.portfolio-overview-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .9fr); gap: 12px; }
.portfolio-share-card, .portfolio-alert, .portfolio-column, .portfolio-specialties { border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.portfolio-share-card { padding: 18px; }
.portfolio-card-heading, .portfolio-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.portfolio-card-heading h3 { margin: 4px 0 0; font-size: 16px; }
.portfolio-card-heading > strong { font-size: 18px; }
.portfolio-scale { height: 18px; display: flex; overflow: hidden; margin: 21px 0 14px; border-radius: 7px; background: #eeeef0; }
.portfolio-scale i, .portfolio-target i { display: block; height: 100%; }
.portfolio-scale .client, .portfolio-target .client, .team-balance b.client { background: #d92935; }
.portfolio-scale .marketing, .portfolio-target .marketing, .team-balance b.marketing { background: #d28a26; }
.portfolio-scale .startup, .portfolio-target .startup, .team-balance b.startup { background: #65758a; }
.portfolio-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.portfolio-legend > span { display: grid; grid-template-columns: 8px auto 1fr; gap: 4px 7px; align-items: center; color: #5f6066; font-size: 12px; }
.portfolio-legend i, .report-donut-legend i { width: 8px; height: 8px; border-radius: 50%; }
.portfolio-legend i.client, .report-donut-legend i.client { background: #d92935; }.portfolio-legend i.marketing, .report-donut-legend i.marketing { background: #d28a26; }.portfolio-legend i.startup, .report-donut-legend i.startup { background: #65758a; }
.portfolio-legend b { color: #25262a; font-size: 13px; }.portfolio-legend small { grid-column: 2 / -1; color: #96979c; font-size: 11px; }
.portfolio-target { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; margin-top: 17px; padding-top: 14px; border-top: 1px solid #ededf0; color: #77787e; font-size: 11px; }
.portfolio-target > div { height: 6px; display: flex; overflow: hidden; border-radius: 4px; }.portfolio-target b { color: #55565c; font-size: 11px; }
.portfolio-alert { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 18px; border-color: #edc3c6; background: #fff7f7; }
.portfolio-alert-icon.ui-icon { width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: #fde5e7; color: #b51c26; }
.portfolio-alert h3 { margin: 5px 0 8px; color: #3a2b2d; font-size: 14px; line-height: 1.3; }.portfolio-alert p:not(.eyebrow) { margin: 0; color: #76666a; font-size: 11px; line-height: 1.55; }
.portfolio-alert button { display: flex; align-items: center; gap: 5px; margin-top: 13px; padding: 0; border: 0; background: transparent; color: #ad1721; cursor: pointer; font-size: 11px; font-weight: 750; }.portfolio-alert button .ui-icon { width: 13px; height: 13px; }
.portfolio-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.portfolio-column { overflow: hidden; padding: 15px; }.portfolio-column > header { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding-bottom: 13px; border-bottom: 1px solid #ececef; }
.portfolio-column > header > .ui-icon { width: 34px; height: 34px; padding: 9px; border-radius: 10px; }.portfolio-column.client > header > .ui-icon { background: #fde8ea; color: #b91d27; }.portfolio-column.marketing > header > .ui-icon { background: #fff2dc; color: #986419; }.portfolio-column.startup > header > .ui-icon { background: #edf0f4; color: #59697e; }
.portfolio-column header p { margin: 0 0 4px; color: #77787e; font-size: 11px; }.portfolio-column header h3 { margin: 0; font-size: 14px; }.portfolio-column header > b { align-self: start; padding: 4px 6px; border-radius: 6px; background: #fbe7e8; color: #b51c26; font-size: 11px; }.portfolio-column.marketing header > b { background: #fff1dc; color: #92600f; }
.portfolio-column-metric { display: grid; grid-template-columns: 1fr auto; gap: 5px; margin: 13px 0; padding: 11px; border-radius: 9px; background: #f6f6f7; }.portfolio-column-metric span { color: #727379; font-size: 11px; }.portfolio-column-metric strong { font-size: 13px; }.portfolio-column-metric small { grid-column: 1 / -1; color: #95969a; font-size: 11px; }
.portfolio-project-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; min-height: 46px; border-top: 1px solid #efeff1; }.portfolio-project-row > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; font-size: 11px; font-style: normal; font-weight: 800; }.portfolio-project-row > div { display: grid; gap: 3px; }.portfolio-project-row strong { font-size: 11px; }.portfolio-project-row small { color: #85868c; font-size: 11px; }.portfolio-project-row > b { color: #5e6066; font-size: 11px; }
.portfolio-specialties { overflow: hidden; }.portfolio-section-heading { padding: 16px; }.portfolio-section-heading > span { color: #85868c; font-size: 11px; }.specialty-head, .specialty-row { display: grid; grid-template-columns: 1.3fr repeat(4, .7fr) 1.2fr; gap: 12px; align-items: center; min-width: 680px; padding: 0 16px; }.specialty-head { min-height: 34px; background: #f7f7f8; color: #85868c; font-size: 11px; font-weight: 750; }.specialty-row { min-height: 48px; border-top: 1px solid #ededf0; color: #626369; font-size: 11px; }.specialty-row strong { color: #303136; font-size: 12px; }
.balance-ok, .balance-risk, .balance-watch { width: fit-content; padding: 5px 7px; border-radius: 6px; font-size: 11px; }.balance-ok { background: #e8f5ec; color: #287741; }.balance-risk { background: #fbe7e8; color: #b21d27; }.balance-watch { background: #fff1dc; color: #93600f; }

/* Development reports */
.report-donut { position: relative; }
.reports-page { max-width: none; padding-right: 30px; padding-left: 30px; }.report-heading { margin-bottom: 18px; }.report-health { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid #d8e8dc; border-radius: 10px; background: #f3faf5; }.report-health > i { width: 9px; height: 9px; border-radius: 50%; background: #2fad61; box-shadow: 0 0 0 4px #dff2e5; }.report-health > span { display: grid; gap: 3px; }.report-health strong { font-size: 11px; }.report-health small { color: #6d7f72; font-size: 11px; }
.report-toolbar { min-height: 52px; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.report-scope-switch button { display: inline-flex; align-items: center; gap: 6px; }.report-scope-switch .ui-icon { width: 16px; height: 16px; }.report-period { position: relative; min-width: 170px; height: 34px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; margin-left: auto; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; }.report-period .ui-icon { width: 15px; height: 15px; color: #77787e; }.report-period select { border: 0; outline: 0; appearance: none; background: transparent; color: #3e3f44; font-size: 12px; font-weight: 650; }
.report-panel { display: grid; gap: 12px; }.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.report-kpis article { min-height: 104px; display: grid; grid-template-columns: 36px 1fr; gap: 11px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.report-kpi-icon.ui-icon { width: 36px; height: 36px; padding: 10px; border-radius: 10px; }.report-kpi-icon.rose { background: #fde8ea; color: #b51c26; }.report-kpi-icon.green { background: #e8f5ec; color: #287741; }.report-kpi-icon.amber { background: #fff1dc; color: #93600f; }.report-kpi-icon.cyan { background: #e8f5f9; color: #327d9b; }.report-kpis article > div { display: grid; gap: 4px; }.report-kpis small { color: #7d7e84; font-size: 11px; }.report-kpis strong { color: #202125; font-size: 18px; }.report-kpis p { margin: 0; color: #888990; font-size: 11px; }.report-kpis p b { color: #2a8a49; }
.report-primary-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 12px; }.report-secondary-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }.report-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.report-card-heading { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #ececef; }.report-card-heading h2 { margin: 3px 0 0; font-size: 15px; }.report-card-heading > span, .report-card-heading > a, .report-card-heading > button { border: 0; background: transparent; color: #7b7c82; font-size: 11px; font-weight: 650; text-decoration: none; }.report-card-heading > a { color: #ad1721; }
.report-bars { display: grid; gap: 13px; padding: 18px 16px 11px; }.report-bars > div { display: grid; grid-template-columns: 72px 1fr 48px; gap: 11px; align-items: center; }.report-bars span, .report-bars strong { color: #707177; font-size: 11px; }.report-bars strong { color: #35363a; text-align: right; }.report-bars i { height: 12px; overflow: hidden; border-radius: 4px; background: #f0f0f2; }.report-bars b { display: block; height: 100%; border-radius: inherit; background: #d92935; }.report-bars b.forecast { background: repeating-linear-gradient(135deg,#e3aeb2 0 5px,#f5d6d8 5px 10px); }.report-bar-legend { display: flex; justify-content: flex-end; gap: 15px; padding: 0 16px 15px; color: #85868c; font-size: 11px; }.report-bar-legend span { display: flex; align-items: center; gap: 5px; }.report-bar-legend i { width: 8px; height: 8px; border-radius: 2px; background: #d92935; }.report-bar-legend span:last-child i { background: #e3aeb2; }
.report-donut-wrap { display: grid; grid-template-columns: 120px 1fr; gap: 17px; align-items: center; padding: 18px 16px 13px; }.report-donut { width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#d92935 0 68%,#d28a26 68% 77%,#65758a 77% 100%); }.report-donut::before { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: #fff; content: ""; }.report-donut > span { z-index: 1; display: grid; text-align: center; }.report-donut strong { font-size: 21px; }.report-donut small { color: #8b8c91; font-size: 11px; }.report-donut-legend { display: grid; gap: 10px; }.report-donut-legend span { display: grid; grid-template-columns: 8px 28px 1fr auto; gap: 6px; align-items: center; color: #64656b; font-size: 11px; }.report-donut-legend b { color: #26272b; font-size: 12px; }.report-donut-legend small { color: #8c8d92; }.report-insight { display: flex; align-items: center; gap: 7px; margin: 0 16px 15px; padding: 9px; border-radius: 8px; background: #fff3e2; color: #825a1f; font-size: 11px; }.report-insight .ui-icon { width: 14px; height: 14px; }.report-insight.danger { margin-top: 15px; background: #fbe8e9; color: #a8242d; }
.classification-total { display: grid; grid-template-columns: 140px 1fr 34px; gap: 12px; align-items: center; padding: 15px 16px 11px; }.classification-total > div { display: grid; gap: 3px; }.classification-total span { color: #77787e; font-size: 11px; }.classification-total strong { font-size: 15px; }.classification-total > i { height: 8px; overflow: hidden; border-radius: 4px; background: #ececef; }.classification-total > i b { display: block; height: 100%; background: #35a65d; }.classification-list { padding: 0 16px 12px; }.classification-list > div { min-height: 48px; display: grid; grid-template-columns: 9px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid #eeeef0; }.classification-list > div > i { width: 8px; height: 8px; border-radius: 50%; }.classification-list i.billable { background: #35a65d; }.classification-list i.presale { background: #d28a26; }.classification-list i.warranty { background: #d92935; }.classification-list i.internal { background: #65758a; }.classification-list span { display: grid; gap: 3px; }.classification-list strong, .classification-list > div > b { font-size: 11px; }.classification-list small { color: #85868c; font-size: 11px; }
.report-result-list { padding: 4px 16px 10px; }.report-result-list > div { min-height: 54px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; border-top: 1px solid #eeeef0; }.report-result-list > div:first-child { border-top: 0; }.report-result-list > div > .ui-icon { width: 27px; height: 27px; padding: 7px; border-radius: 8px; }.report-result-list .done { background: #e8f5ec; color: #287741; }.report-result-list .review { background: #fff1dc; color: #93600f; }.report-result-list p { display: grid; gap: 4px; margin: 0; }.report-result-list strong { font-size: 11px; }.report-result-list small { color: #85868c; font-size: 11px; }
.team-report-grid { grid-template-columns: 1.25fr 1fr; }.team-balance { display: grid; gap: 16px; padding: 20px 16px 8px; }.team-balance > div { display: grid; grid-template-columns: 74px 1fr 38px; gap: 10px; align-items: center; color: #77787e; font-size: 11px; }.team-balance > div > i { position: relative; height: 11px; border-radius: 5px; background: #ececef; }.team-balance b { display: block; height: 100%; border-radius: inherit; }.team-balance em { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: #26272b; }.team-balance strong { color: #34353a; text-align: right; }
.team-alert-list { padding: 4px 16px 10px; }.team-alert-list > div { min-height: 62px; display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center; border-top: 1px solid #ededf0; }.team-alert-list > div:first-child { border-top: 0; }.team-alert-list > div > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #eeeef0; color: #65666c; font-size: 11px; }.team-alert-list p { display: grid; gap: 4px; margin: 0; }.team-alert-list strong { font-size: 11px; }.team-alert-list small { color: #85868c; font-size: 11px; }.team-alert-list > div > span { padding: 5px 6px; border-radius: 6px; font-size: 10px; font-weight: 750; }.team-alert-list .risk { background: #fbe7e8; color: #b21d27; }.team-alert-list .watch { background: #fff1dc; color: #93600f; }
.team-table-card { overflow-x: auto; }.team-report-head, .team-report-row { display: grid; grid-template-columns: 1.4fr repeat(5, .7fr) 1fr; gap: 12px; align-items: center; min-width: 760px; padding: 0 16px; }.team-report-head { min-height: 34px; background: #f7f7f8; color: #85868c; font-size: 11px; font-weight: 750; }.team-report-row { min-height: 54px; border-top: 1px solid #ededf0; color: #606167; font-size: 11px; }.team-report-row > span:first-child { display: flex; align-items: center; gap: 8px; }.team-report-row > span:first-child i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #ececef; font-size: 11px; font-style: normal; }.team-report-row > span:first-child b, .team-report-row > strong { color: #303136; font-size: 11px; }

@media (max-width: 1100px) {
  .portfolio-overview-grid, .report-primary-grid, .report-secondary-grid { grid-template-columns: 1fr; }
  .portfolio-columns { grid-template-columns: 1fr 1fr; }
  .portfolio-column.startup { grid-column: 1 / -1; }
  .report-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .project-modebar, .portfolio-controlbar, .report-toolbar { align-items: stretch; flex-direction: column; }
  .project-modebar p { margin: 0; padding: 0 4px; }
  .project-view-switch, .portfolio-filters, .report-scope-switch { width: 100%; overflow-x: auto; }
  .project-view-switch button, .report-scope-switch button { flex: 1; white-space: nowrap; }
  .portfolio-overview-grid, .portfolio-columns, .report-kpis { grid-template-columns: 1fr; }
  .portfolio-column.startup { grid-column: auto; }
  .portfolio-legend { grid-template-columns: 1fr; }
  .portfolio-target { grid-template-columns: 78px 1fr; }.portfolio-target b { grid-column: 2; }
  .portfolio-specialties, .team-table-card { overflow-x: auto; }
  .reports-page { padding-right: 14px; padding-left: 14px; }
  .report-period { width: 100%; margin-left: 0; }
  .report-donut-wrap { grid-template-columns: 108px 1fr; }
}

/* Payroll */
.payroll-page { max-width: none; padding-right: 30px; padding-left: 30px; }.payroll-heading { margin-bottom: 17px; }
.payroll-calendar-strip { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; margin-bottom: 12px; }.payroll-calendar-strip article { min-height: 88px; display: grid; grid-template-columns: 52px 1fr auto; gap: 13px; align-items: center; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.payroll-calendar-strip article.complete { border-color: #d6e7da; }.payroll-calendar-strip article.next { border-color: #e8c8ca; }.payroll-date { width: 52px; height: 58px; display: grid; place-items: center; padding: 6px 0; border-radius: 10px; background: #f0f1f3; }.payroll-calendar-strip .complete .payroll-date { background: #eaf6ed; color: #277541; }.payroll-calendar-strip .next .payroll-date { background: #fdebed; color: #b51c26; }.payroll-date strong { font-size: 21px; line-height: 1; }.payroll-date small { font-size: 11px; }.payroll-calendar-strip article > div { display: grid; gap: 4px; }.payroll-calendar-strip article p { margin: 0; color: #727379; font-size: 11px; }.payroll-calendar-strip article > div > strong { font-size: 16px; }.payroll-calendar-strip article > div > small { color: #85868c; font-size: 11px; }.payroll-calendar-strip article > b { min-height: 25px; display: flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 7px; background: #e8f5ec; color: #287741; font-size: 11px; }.payroll-calendar-strip .next > b { background: #fff1dc; color: #93600f; }.payroll-calendar-strip article > b .ui-icon { width: 13px; height: 13px; }.payroll-route { display: flex; align-items: center; justify-content: center; gap: 5px; }.payroll-route::before, .payroll-route::after { width: 17px; height: 1px; background: #d7d8dc; content: ""; }.payroll-route i { width: 4px; height: 4px; border-radius: 50%; background: #c3c4c8; }
.payroll-compliance-note { min-height: 58px; display: grid; grid-template-columns: 32px 1fr auto; gap: 11px; align-items: center; margin-bottom: 12px; padding: 11px 14px; border: 1px solid #edd4a8; border-radius: 11px; background: #fff9ef; }.payroll-compliance-note > .ui-icon { width: 32px; height: 32px; padding: 8px; border-radius: 9px; background: #ffebc9; color: #8e5e18; }.payroll-compliance-note div { display: grid; gap: 4px; }.payroll-compliance-note strong { color: #543f22; font-size: 11px; }.payroll-compliance-note p { margin: 0; color: #79684d; font-size: 11px; line-height: 1.45; }.payroll-compliance-note button { border: 0; background: transparent; color: #92600f; cursor: pointer; font-size: 11px; font-weight: 750; }
.payroll-viewbar { min-height: 49px; display: flex; align-items: center; gap: 5px; margin-bottom: 12px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }.payroll-viewbar button { min-height: 35px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #62636a; cursor: pointer; font-size: 12px; font-weight: 650; }.payroll-viewbar button.active { background: #fde7e9; color: #ad1721; }.payroll-viewbar .ui-icon { width: 17px; height: 17px; }
.payroll-panel { display: grid; gap: 12px; }.payroll-toolbar { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.payroll-search { min-width: 230px; display: flex; flex: 1; align-items: center; gap: 8px; padding: 0 9px; }.payroll-search .ui-icon { width: 17px; height: 17px; color: #797a80; }.payroll-search input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; }.payroll-table-card, .payroll-form-card, .payroll-result-card, .motivation-card, .employee-payroll-profile, .employee-payslip { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }.payroll-table-card { overflow: hidden; }.payroll-table-heading, .payroll-section-heading { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; }.payroll-table-heading h2, .payroll-section-heading h2 { margin: 4px 0 0; font-size: 15px; }.payroll-table-heading > span { color: #808187; font-size: 11px; }.payroll-table-scroll { overflow-x: auto; }.payroll-table { min-width: 1040px; }.payroll-table-head, .payroll-row { display: grid; grid-template-columns: 1.35fr .72fr .8fr .72fr .78fr .78fr .78fr .78fr .78fr; gap: 10px; align-items: center; padding: 0 14px; }.payroll-table-head { min-height: 36px; background: #f6f6f7; color: #808187; font-size: 11px; font-weight: 750; }.payroll-row { position: relative; min-height: 73px; border-top: 1px solid #ebebee; color: #55565c; font-size: 11px; }.payroll-row.attention::before { position: absolute; top: 13px; bottom: 13px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: #d92935; content: ""; }.payroll-row.pending { background: #fbfbfc; }.payroll-person { display: flex; align-items: center; gap: 9px; }.payroll-person > i { width: 32px; height: 32px; display: grid; flex: none; place-items: center; border-radius: 50%; background: #eeeef0; color: #66676c; font-size: 11px; font-style: normal; font-weight: 750; }.payroll-person > span, .payroll-days { display: grid; gap: 4px; }.payroll-person strong, .payroll-row > strong { color: #292a2f; font-size: 11px; }.payroll-person small, .payroll-days small, .payroll-row > span small { display: block; margin-top: 4px; color: #8a8b91; font-size: 10px; }.payroll-status { width: fit-content; padding: 5px 7px; border-radius: 6px; font-size: 10px; white-space: nowrap; }.payroll-status.ready { background: #e8f5ec; color: #287741; }.payroll-status.warning { background: #fff1dc; color: #93600f; }.payroll-status.draft { background: #fbe7e8; color: #b21d27; }
.payroll-table-actions { display: flex; align-items: center; gap: 12px; }.payroll-table-actions > span { color: #808187; font-size: 11px; }.payroll-table-actions .button .ui-icon { width: 14px; height: 14px; }
.payroll-calculator-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 12px; }.payroll-sync { display: flex; align-items: center; gap: 6px; color: #2a7942; font-size: 11px; }.payroll-sync i { width: 7px; height: 7px; border-radius: 50%; background: #32ad60; box-shadow: 0 0 0 3px #e2f3e7; }.payroll-form-card { overflow: hidden; }.payroll-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; border-top: 1px solid #ececef; }.payroll-form-grid label { display: grid; gap: 6px; color: #6e6f75; font-size: 11px; font-weight: 650; }.payroll-form-grid input { min-height: 38px; padding: 0 10px; border: 1px solid #dfe0e4; border-radius: 8px; outline: 0; background: #fff; color: #2d2e33; font: inherit; font-size: 12px; }.payroll-form-grid input:focus { border-color: #dc9297; box-shadow: 0 0 0 3px #fdebed; }.payroll-attendance { padding: 0 16px 15px; }.payroll-attendance > div { min-height: 57px; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid #ececef; }.payroll-attendance .ui-icon { width: 30px; height: 30px; padding: 8px; border-radius: 8px; background: #fff1dc; color: #93600f; }.payroll-attendance > div:last-child .ui-icon { background: #e8f5ec; color: #287741; }.payroll-attendance p { display: grid; gap: 4px; margin: 0; }.payroll-attendance strong, .payroll-attendance > div > b { font-size: 11px; }.payroll-attendance small { color: #85868c; font-size: 11px; }.payroll-result-card { padding: 20px; }.payroll-result-card h2 { margin: 5px 0 14px; font-size: 16px; }.payroll-result-total { display: block; margin-bottom: 18px; color: #b31822; font-size: 28px; }.payroll-result-lines { display: grid; }.payroll-result-lines > div { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #ececef; color: #77787e; font-size: 11px; }.payroll-result-lines b { color: #34353a; font-size: 11px; }.payroll-result-lines .total { margin-top: 4px; border-top-color: #d8d9dd; }.payroll-result-lines .total span, .payroll-result-lines .total b { color: #232428; font-weight: 750; }.payroll-formula { display: grid; gap: 6px; margin-top: 13px; padding: 10px; border-radius: 8px; background: #f4f4f5; }.payroll-formula span { color: #85868c; font-size: 10px; }.payroll-formula code { color: #3f4045; font: 650 11px/1.4 ui-monospace,SFMono-Regular,monospace; }.payroll-result-warning { display: grid; grid-template-columns: 26px 1fr; gap: 8px; margin: 12px 0; padding: 10px; border-radius: 8px; background: #fff6e8; color: #76541d; }.payroll-result-warning .ui-icon { width: 26px; height: 26px; padding: 6px; border-radius: 7px; background: #ffe7bf; }.payroll-result-warning p { margin: 0; font-size: 11px; line-height: 1.45; }.payroll-result-card > .button { width: 100%; }
.motivation-heading { padding: 3px 2px 10px; }.motivation-heading p:not(.eyebrow) { margin: 5px 0 0; color: #77787e; font-size: 11px; }.motivation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.motivation-card { overflow: hidden; padding: 15px; }.motivation-card header { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }.motivation-card header > .ui-icon { width: 34px; height: 34px; padding: 9px; border-radius: 9px; background: #fde9ea; color: #b51c26; }.motivation-card header small { color: #84858a; font-size: 10px; }.motivation-card h3 { margin: 4px 0 0; font-size: 12px; }.motivation-card header > b { padding: 4px 6px; border-radius: 6px; background: #e8f5ec; color: #287741; font-size: 10px; }.motivation-card header > b.draft { background: #f0f0f2; color: #686970; }.motivation-expression { display: grid; gap: 6px; margin: 15px 0 10px; padding: 11px; border-radius: 8px; background: #f5f5f6; }.motivation-expression span { color: #85868c; font-size: 10px; }.motivation-expression code { font: 650 11px ui-monospace,SFMono-Regular,monospace; }.motivation-card dl { margin: 0; }.motivation-card dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #ededf0; font-size: 11px; }.motivation-card dt { color: #85868c; }.motivation-card dd { margin: 0; color: #3d3e43; font-weight: 650; }.motivation-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid #ededf0; color: #85868c; font-size: 10px; }.motivation-card footer button, .motivation-card.empty button { border: 0; background: transparent; color: #ad1721; cursor: pointer; font-size: 11px; font-weight: 750; }.motivation-card.empty { min-height: 290px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }.motivation-card.empty > .ui-icon { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: #fde9ea; color: #b51c26; }.motivation-card.empty p { max-width: 230px; color: #85868c; font-size: 11px; line-height: 1.5; }
.employee-payroll-layout { display: grid; grid-template-columns: 230px 1fr; gap: 12px; }.employee-payroll-profile { padding: 20px; text-align: center; }.employee-payroll-avatar { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 17px; background: #fde9ea; color: #ad1721; font-size: 17px; font-weight: 800; }.employee-payroll-profile h2 { margin: 0 0 4px; font-size: 15px; }.employee-payroll-profile > p { margin: 0 0 9px; color: #77787e; font-size: 11px; }.employee-payroll-profile > span { display: inline-flex; padding: 5px 7px; border-radius: 6px; background: #f0f0f2; color: #62636a; font-size: 11px; }.employee-payroll-profile nav { display: grid; gap: 5px; margin: 20px 0; text-align: left; }.employee-payroll-profile nav button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #5e5f65; text-align: left; font-size: 11px; }.employee-payroll-profile nav button.active { background: #fde9ea; color: #ad1721; font-weight: 700; }.employee-payroll-profile > small { display: block; color: #94959a; font-size: 10px; line-height: 1.5; }.employee-payslip { padding: 18px; }.employee-payslip-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #ececef; }.employee-payslip-heading h2 { margin: 4px 0 0; font-size: 15px; }.employee-payslip-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 15px 0; }.employee-payslip-total > div { display: grid; gap: 5px; padding: 13px; border-radius: 9px; background: #f5f5f6; }.employee-payslip-total small { color: #85868c; font-size: 11px; }.employee-payslip-total strong { font-size: 15px; }.employee-payslip-total .accent { background: #fde9ea; }.employee-payslip-total .accent strong { color: #ad1721; }.employee-payslip-lines { display: grid; }.employee-payslip-lines > div { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid #ededf0; }.employee-payslip-lines span { display: grid; gap: 4px; }.employee-payslip-lines b, .employee-payslip-lines > div > strong { font-size: 11px; }.employee-payslip-lines small { color: #85868c; font-size: 11px; }.employee-payslip-note { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; margin-top: 15px; padding: 12px; border-radius: 9px; background: #f4f4f5; }.employee-payslip-note > .ui-icon { width: 30px; height: 30px; padding: 8px; border-radius: 8px; background: #fff; color: #686970; }.employee-payslip-note p { display: grid; gap: 4px; margin: 0; }.employee-payslip-note strong { font-size: 11px; }.employee-payslip-note small { color: #85868c; font-size: 10px; }.employee-payslip-note button { border: 0; background: transparent; color: #ad1721; font-size: 11px; font-weight: 750; }

.payroll-breakdown-guide { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr; align-items: center; margin-bottom: 12px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.payroll-breakdown-guide > div { min-height: 61px; display: grid; align-content: center; gap: 4px; padding: 9px 12px; border-radius: 8px; background: #f6f6f7; }
.payroll-breakdown-guide > div.accent { background: #fde9ea; }
.payroll-breakdown-guide small { color: #77787e; font-size: 11px; }
.payroll-breakdown-guide strong { color: #2b2c31; font-size: 15px; }
.payroll-breakdown-guide .accent strong { color: #ad1721; }
.payroll-breakdown-guide span { color: #8a8b91; font-size: 10px; }
.payroll-breakdown-guide > i { color: #a1a2a7; text-align: center; font-size: 17px; font-style: normal; font-weight: 600; }
.payroll-table { min-width: 960px; }
.payroll-table-head, .payroll-row { grid-template-columns: 1.35fr .72fr .8fr .82fr .82fr .72fr .75fr .75fr .72fr; }
.payroll-table-head { min-height: 42px; }
.payroll-row.example { background: #fffafb; box-shadow: inset 3px 0 #e97d85; }
.payroll-row > strong small { display: block; margin-top: 4px; color: #8a8b91; font-size: 10px; font-weight: 500; }
.payroll-row .payroll-extra { width: fit-content; padding: 7px 8px; border-radius: 7px; background: #fde9ea; color: #ad1721; }
.payroll-row .payroll-extra.muted { background: #f0f0f2; color: #77787e; }
.payroll-payment-split { display: grid; gap: 6px; margin-bottom: 16px; }
.payroll-payment-split > div { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px; border-radius: 7px; background: #f5f5f6; color: #77787e; font-size: 11px; }
.payroll-payment-split b { color: #34353a; font-size: 12px; }
.payroll-payment-split .accent { background: #fde9ea; color: #8e343b; }
.payroll-payment-split .accent b { color: #ad1721; }

@media (max-width: 1100px) { .payroll-calendar-strip { grid-template-columns: 1fr; gap: 8px; }.payroll-route { display: none; }.payroll-calculator-grid { grid-template-columns: 1fr; }.motivation-grid { grid-template-columns: 1fr 1fr; }.motivation-card.empty { min-height: 0; }.employee-payroll-layout { grid-template-columns: 200px 1fr; } }
@media (max-width: 760px) { .payroll-page { padding-right: 14px; padding-left: 14px; }.payroll-heading .board-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; overflow: visible; padding: 0; }.payroll-heading .board-summary span { min-width: 0; display: grid; gap: 3px; justify-items: center; padding: 10px 4px; text-align: center; white-space: normal; }.payroll-heading .board-summary span + span { border-left: 1px solid var(--line); }.payroll-heading .board-summary strong { font-size: 13px; }.payroll-calendar-strip article { grid-template-columns: 48px 1fr; }.payroll-calendar-strip article > b { grid-column: 2; width: fit-content; }.payroll-compliance-note { grid-template-columns: 30px 1fr; }.payroll-compliance-note button { grid-column: 2; justify-self: start; padding: 0; }.payroll-viewbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }.payroll-viewbar button { justify-content: center; padding: 0 7px; white-space: nowrap; }.payroll-toolbar { align-items: stretch; flex-direction: column; }.payroll-search { min-width: 0; min-height: 36px; }.payroll-table-heading { align-items: flex-start; flex-direction: column; }.payroll-table-actions { width: 100%; justify-content: space-between; }.payroll-form-grid, .motivation-grid, .employee-payroll-layout, .employee-payslip-total { grid-template-columns: 1fr; }.employee-payroll-profile nav { grid-template-columns: repeat(3, 1fr); }.employee-payroll-profile nav button { padding: 0 5px; text-align: center; }.employee-payslip-note { grid-template-columns: 30px 1fr; }.employee-payslip-note button { grid-column: 2; justify-self: start; padding: 0; } }
@media (max-width: 760px) { .payroll-breakdown-guide { grid-template-columns: 1fr; }.payroll-breakdown-guide > div { min-height: 54px; }.payroll-breakdown-guide > i { line-height: 14px; }.payroll-table-actions { align-items: flex-start; flex-direction: column; }.payroll-table-actions .button { width: 100%; } }

/* Finance import */
.import-page { max-width: none; padding-right: 30px; padding-left: 30px; }
.import-heading { margin-bottom: 16px; }
.import-flow { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr; align-items: center; margin-bottom: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.import-flow article { min-height: 55px; display: grid; grid-template-columns: 34px 1fr; gap: 9px; align-items: center; padding: 8px 10px; border-radius: 9px; background: #f6f6f7; }
.import-flow article.active { background: #fde9ea; }
.import-flow article > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #74757b; font-size: 12px; font-weight: 800; }
.import-flow article.active > span { background: #d92935; color: #fff; }
.import-flow article div { display: grid; gap: 3px; }
.import-flow small { color: #8a8b91; font-size: 10px; }
.import-flow strong { color: #35363b; font-size: 11px; }
.import-flow > i { height: 1px; background: #d7d8dc; }
.import-upload-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 12px; margin-bottom: 12px; }
.import-upload-card, .import-assistant-card, .import-queue-card, .import-review-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.import-upload-card { overflow: hidden; }
.import-type-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 7px; border-bottom: 1px solid #ececef; }
.import-type-tabs button { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 8px; background: transparent; color: #66676d; cursor: pointer; font: inherit; font-size: 11px; font-weight: 650; }
.import-type-tabs button.active { background: #fde9ea; color: #ad1721; }
.import-type-tabs .ui-icon { width: 16px; height: 16px; }
.import-dropzone { min-height: 214px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin: 14px; padding: 24px; border: 1.5px dashed #cfd0d4; border-radius: 11px; background: #fafafb; text-align: center; outline: 0; transition: border-color .2s ease, background .2s ease; }
.import-dropzone:hover, .import-dropzone.dragging, .import-dropzone:focus-visible { border-color: #d66169; background: #fff8f8; }
.import-dropzone-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 11px; padding: 12px; border-radius: 14px; background: #fde9ea; color: #b31e28; }
.import-dropzone h2 { margin: 0; font-size: 15px; }
.import-dropzone p { margin: 7px 0 14px; color: #77787e; font-size: 11px; }
.import-dropzone > small { margin-top: 10px; color: #93949a; font-size: 10px; }
.import-source-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 14px; }
.import-source-settings label, .import-review-form label { position: relative; display: grid; gap: 6px; color: #6c6d73; font-size: 11px; font-weight: 650; }
.import-source-settings select, .import-review-form select, .import-review-form input { width: 100%; min-height: 39px; padding: 0 34px 0 10px; border: 1px solid #dedfe3; border-radius: 8px; outline: 0; appearance: none; background: #fff; color: #35363b; font: inherit; font-size: 11px; }
.import-source-settings label > .ui-icon, .import-review-form label > .ui-icon { position: absolute; right: 10px; bottom: 11px; width: 15px; height: 15px; color: #84858a; pointer-events: none; }
.import-assistant-card { padding: 16px; }
.import-assistant-card header { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; }
.import-assistant-card header > .ui-icon { width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: #ede7fb; color: #7d4fc6; }
.import-assistant-card h2 { margin: 4px 0 0; font-size: 14px; }
.import-assistant-card > p { margin: 14px 0; color: #73747a; font-size: 11px; line-height: 1.55; }
.import-switch { width: 38px; height: 22px; position: relative; padding: 0; border: 0; border-radius: 20px; background: #d7d8dc; cursor: pointer; }
.import-switch i { width: 16px; height: 16px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.import-switch.active { background: #d92935; }
.import-switch.active i { transform: translateX(16px); }
.import-assistant-rule { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #ededf0; font-size: 11px; }
.import-assistant-rule span { color: #85868c; }
.import-assistant-rule strong { color: #3f4045; text-align: right; }
.import-learning-note { display: grid; grid-template-columns: 29px 1fr; gap: 9px; margin-top: 10px; padding: 10px; border-radius: 9px; background: #f4f1fb; }
.import-learning-note > .ui-icon { width: 29px; height: 29px; padding: 7px; border-radius: 8px; background: #fff; color: #7d4fc6; }
.import-learning-note p { display: grid; gap: 4px; margin: 0; }
.import-learning-note strong { font-size: 11px; }
.import-learning-note small { color: #747078; font-size: 10px; line-height: 1.45; }
.import-workbench { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 12px; }
.import-queue-card { overflow: hidden; }
.import-queue-card > header { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #ececef; }
.import-queue-card h2, .import-review-card h2 { margin: 4px 0 0; font-size: 14px; }
.import-queue { display: grid; }
.import-queue-row { min-height: 72px; display: grid; grid-template-columns: 36px minmax(0, 1fr) 86px 72px 16px; gap: 10px; align-items: center; padding: 10px 13px; border: 0; border-bottom: 1px solid #ededf0; background: #fff; color: inherit; cursor: pointer; text-align: left; }
.import-queue-row:last-child { border-bottom: 0; }
.import-queue-row.selected { background: #fff8f8; box-shadow: inset 3px 0 #dc4b55; }
.import-file-icon { width: 36px; height: 36px; padding: 9px; border-radius: 9px; }
.import-file-icon.sheet { background: #e8f5ec; color: #287741; }
.import-file-icon.receipt { background: #fde9ea; color: #ad1721; }
.import-file-icon.photo { background: #e8f1fb; color: #3474ad; }
.import-file-icon.document { background: #f7ecd9; color: #976216; }
.import-queue-row > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.import-queue-row > span:nth-child(2) strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.import-queue-row > span:nth-child(2) small, .import-confidence small, .import-progress small { color: #8a8b91; font-size: 10px; }
.import-progress { display: grid; gap: 5px; }
.import-progress i { height: 4px; overflow: hidden; border-radius: 4px; background: #e5e6e9; }
.import-progress b { height: 100%; display: block; border-radius: inherit; background: #37a95c; }
.import-confidence { display: grid; gap: 3px; text-align: right; }
.import-confidence strong { color: #2c7c46; font-size: 12px; }
.import-confidence.low strong { color: #b37618; }
.import-status { width: fit-content; justify-self: end; padding: 5px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.import-status.ready { background: #e8f5ec; color: #287741; }
.import-status.review, .import-status.warning { background: #fff1dc; color: #93600f; }
.import-queue-row > .ui-icon:last-child { width: 14px; height: 14px; color: #8b8c91; transform: rotate(-90deg); }
.import-review-card { padding: 15px; }
.import-review-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #ececef; }
.import-confidence-badge { padding: 6px 8px; border-radius: 7px; background: #e8f5ec; color: #287741; font-size: 11px; font-weight: 800; }
.import-confidence-badge.low { background: #fff1dc; color: #93600f; }
.import-document-preview { min-height: 74px; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; margin: 13px 0; padding: 10px; border-radius: 9px; background: #f5f5f6; }
.import-document-preview > .ui-icon { width: 38px; height: 38px; padding: 10px; border-radius: 9px; background: #fff; color: #ad1721; }
.import-document-preview div { display: grid; gap: 3px; }
.import-document-preview small { color: #8a8b91; font-size: 10px; }
.import-document-preview strong { font-size: 12px; }
.import-document-preview p { margin: 0; color: #67686e; font-size: 11px; }
.import-document-preview button { display: flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #ad1721; cursor: pointer; font-size: 11px; font-weight: 700; }
.import-document-preview button .ui-icon { width: 14px; height: 14px; }
.import-review-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.import-review-form label.wide { grid-column: 1 / -1; }
.import-review-form label > small { margin-top: -1px; color: #898a90; font-size: 10px; font-weight: 500; }
.import-review-form label > small b { color: #2d8248; }
.import-review-warning { display: grid; grid-template-columns: 30px 1fr; gap: 9px; margin-top: 12px; padding: 10px; border-radius: 9px; background: #eef5fc; }
.import-review-warning > .ui-icon { width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: #fff; color: #3474ad; }
.import-review-warning p { display: grid; gap: 4px; margin: 0; }
.import-review-warning strong { font-size: 11px; }
.import-review-warning small { color: #68798a; font-size: 10px; line-height: 1.45; }
.import-review-card > footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #ececef; }
.import-new-file { animation: importRowIn .35s ease both; }
@keyframes importRowIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) { .import-flow { grid-template-columns: repeat(4, 1fr); gap: 7px; }.import-flow > i { display: none; }.import-upload-layout, .import-workbench { grid-template-columns: 1fr; }.import-assistant-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }.import-assistant-card header, .import-assistant-card > p, .import-learning-note { grid-column: 1 / -1; } }
@media (max-width: 760px) { .import-page { padding-right: 14px; padding-left: 14px; }.import-heading .board-summary { width: 100%; }.import-flow { grid-template-columns: 1fr 1fr; }.import-type-tabs { grid-template-columns: 1fr; }.import-type-tabs button { justify-content: flex-start; padding: 0 12px; }.import-dropzone { min-height: 190px; margin: 10px; padding: 18px 12px; }.import-source-settings, .import-assistant-card, .import-review-form { grid-template-columns: 1fr; }.import-assistant-card header, .import-assistant-card > p, .import-learning-note, .import-review-form label.wide { grid-column: auto; }.import-queue-card > header { align-items: flex-start; flex-direction: column; }.import-queue-row { grid-template-columns: 36px minmax(0, 1fr) auto; }.import-queue-row > :nth-child(3) { grid-column: 2; text-align: left; }.import-queue-row > :nth-child(4) { grid-column: 3; grid-row: 1; }.import-queue-row > .ui-icon:last-child { display: none; }.import-document-preview { grid-template-columns: 38px 1fr; }.import-document-preview button { grid-column: 2; padding: 0; }.import-review-card > footer { align-items: stretch; flex-direction: column-reverse; }.import-review-card > footer .button { width: 100%; } }

/* Contract templates */
.contract-templates-page { max-width: none; padding-right: 28px; padding-left: 28px; }
.contract-templates-heading { margin-bottom: 15px; }
.contract-template-alert { min-height: 58px; display: grid; grid-template-columns: 32px 1fr auto; gap: 11px; align-items: center; margin-bottom: 12px; padding: 10px 13px; border: 1px solid #ecd6ac; border-radius: 11px; background: #fff9ef; }
.contract-template-alert > .ui-icon { width: 32px; height: 32px; padding: 8px; border-radius: 9px; background: #ffeac7; color: #946016; }
.contract-template-alert div { display: grid; gap: 4px; }
.contract-template-alert strong { color: #5c4727; font-size: 11px; }
.contract-template-alert p { margin: 0; color: #7b6b50; font-size: 11px; }
.contract-template-alert button { border: 0; background: transparent; color: #946016; cursor: pointer; font-size: 11px; font-weight: 750; }
.contract-template-toolbar { min-height: 52px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.contract-template-toolbar > label:first-child { min-width: 240px; display: flex; flex: 1; align-items: center; gap: 8px; padding: 0 8px; }
.contract-template-toolbar > label:first-child .ui-icon { width: 17px; height: 17px; color: #74757b; }
.contract-template-toolbar input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 11px; }
.contract-template-type { position: relative; min-width: 190px; display: grid; gap: 3px; padding: 0 34px 0 10px; border-left: 1px solid #e3e4e7; color: #84858a; font-size: 10px; }
.contract-template-type select { border: 0; outline: 0; appearance: none; background: transparent; color: #404146; font: inherit; font-size: 11px; font-weight: 650; }
.contract-template-type .ui-icon { position: absolute; right: 10px; bottom: 7px; width: 14px; height: 14px; color: #85868a; }
.contract-template-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 12px; align-items: start; }
.contract-template-library, .contract-template-detail { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.contract-template-library > header { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #ececef; }
.contract-template-library h2 { margin: 4px 0 0; font-size: 14px; }
.contract-template-library > header > span { color: #86878d; font-size: 11px; }
.contract-template-list { display: grid; }
.contract-template-card { min-height: 82px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 15px; gap: 10px; align-items: center; padding: 10px 12px; border: 0; border-bottom: 1px solid #ededf0; background: #fff; color: inherit; cursor: pointer; text-align: left; }
.contract-template-card:last-child { border-bottom: 0; }
.contract-template-card.selected { background: #fff8f8; box-shadow: inset 3px 0 #da424c; }
.contract-template-card.filtered-out { display: none; }
.contract-template-icon { width: 38px; height: 38px; padding: 10px; border-radius: 10px; }
.contract-template-icon.development { background: #fde9ea; color: #ad1721; }
.contract-template-icon.marketing { background: #e8f1fb; color: #3474ad; }
.contract-template-icon.support { background: #e8f5ec; color: #287741; }
.contract-template-icon.nda { background: #ece9f8; color: #7456a8; }
.contract-template-icon.additional { background: #fff1dc; color: #93600f; }
.contract-template-icon.draft { background: #f0f0f2; color: #686970; }
.contract-template-card > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.contract-template-card > span:nth-child(2) strong, .contract-template-card > span:nth-child(2) small, .contract-template-card > span:nth-child(2) i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contract-template-card > span:nth-child(2) strong { color: #34353a; font-size: 11px; }
.contract-template-card > span:nth-child(2) small { color: #696a70; font-size: 11px; }
.contract-template-card > span:nth-child(2) i { color: #929399; font-size: 10px; font-style: normal; }
.template-state { width: fit-content; min-height: 23px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.template-state.active { background: #e8f5ec; color: #287741; }
.template-state.review { background: #fff1dc; color: #93600f; }
.template-state.draft { background: #f0f0f2; color: #65666c; }
.contract-template-card > .ui-icon:last-child { width: 14px; height: 14px; color: #8a8b91; transform: rotate(-90deg); }
.contract-template-empty { padding: 60px 20px; color: #77787e; text-align: center; }
.contract-template-empty .ui-icon { width: 28px; height: 28px; margin-bottom: 8px; }
.contract-template-empty strong { display: block; color: #34353a; font-size: 12px; }
.contract-template-empty p { margin: 5px 0 0; font-size: 11px; }
.contract-template-detail-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #ececef; }
.contract-template-detail-head h2 { margin: 5px 0 7px; font-size: 17px; }
.contract-template-detail-head > div:first-child > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #83848a; font-size: 11px; }
.contract-template-detail-head > div:last-child { display: flex; gap: 7px; }
.contract-template-tabs { min-height: 49px; display: flex; align-items: end; gap: 4px; padding: 0 15px; border-bottom: 1px solid #ececef; }
.contract-template-tabs button { min-height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6a6b71; cursor: pointer; font: inherit; font-size: 11px; font-weight: 650; }
.contract-template-tabs button.active { border-color: #d92935; color: #292a2f; }
.contract-template-tabs button span { min-width: 20px; height: 19px; display: grid; place-items: center; border-radius: 5px; background: #eff0f2; font-size: 10px; }
.contract-template-panel { padding: 15px; }
.contract-template-document-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; }
.contract-template-document { overflow: hidden; border: 1px solid #e0e1e4; border-radius: 10px; background: #f2f2f4; }
.document-mini-toolbar { min-height: 39px; display: grid; grid-template-columns: 55px 1fr auto; gap: 10px; align-items: center; padding: 0 10px; border-bottom: 1px solid #dedfe3; background: #fff; }
.document-mini-toolbar > span { display: flex; gap: 4px; }
.document-mini-toolbar > span i { width: 7px; height: 7px; border-radius: 50%; background: #d5d6da; }
.document-mini-toolbar strong { overflow: hidden; color: #6c6d73; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.document-mini-toolbar button { display: flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #ad1721; cursor: pointer; font-size: 11px; font-weight: 700; }
.document-mini-toolbar button .ui-icon { width: 14px; height: 14px; }
.contract-template-paper { position: relative; min-height: 530px; margin: 16px auto 0; padding: 32px 38px 70px; background: #fff; box-shadow: 0 8px 25px rgba(18, 20, 25, .09); color: #33343a; font-family: Georgia, "Times New Roman", serif; font-size: 11px; line-height: 1.65; }
.contract-template-paper > small { color: #98999e; font-family: var(--font); font-size: 10px; letter-spacing: .08em; }
.contract-template-paper h3 { max-width: 480px; margin: 30px auto 24px; font-size: 12px; text-align: center; }
.contract-template-paper h4 { margin: 18px 0 7px; font-size: 11px; text-align: center; }
.contract-template-paper p { margin: 10px 0; text-align: justify; }
.contract-template-paper p:nth-of-type(1) { display: flex; justify-content: space-between; }
.contract-template-paper mark { padding: 2px 3px; border-radius: 3px; background: #fff0c9; color: #674d17; }
.document-fade { position: absolute; right: 0; bottom: 0; left: 0; height: 80px; background: linear-gradient(transparent, #fff); }
.contract-template-sidebar { display: grid; align-content: start; gap: 12px; }
.contract-template-facts { overflow: hidden; border: 1px solid #e0e1e4; border-radius: 9px; }
.contract-template-facts > div { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border-top: 1px solid #ececef; font-size: 11px; }
.contract-template-facts > div:first-child { border-top: 0; }
.contract-template-facts span { color: #818288; }
.contract-template-facts strong { color: #3d3e43; text-align: right; }
.contract-template-sidebar h3 { margin: 2px 0 -3px; font-size: 12px; }
.template-variable-list { display: grid; }
.template-variable-list article { min-height: 56px; display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; border-top: 1px solid #ededf0; }
.template-variable-list article > .ui-icon { width: 30px; height: 30px; padding: 8px; border-radius: 8px; background: #f0f1f3; color: #66676d; }
.template-variable-list article div { display: grid; gap: 4px; }
.template-variable-list strong { font-size: 11px; }
.template-variable-list p { margin: 0; color: #85868c; font-size: 10px; line-height: 1.35; }
.template-variable-list b { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: #f0f1f3; color: #66676d; font-size: 10px; }
.template-readiness { display: grid; grid-template-columns: 31px 1fr; gap: 8px; padding: 10px; border-radius: 9px; background: #eaf6ed; }
.template-readiness > .ui-icon { width: 31px; height: 31px; padding: 8px; border-radius: 8px; background: #fff; color: #287741; }
.template-readiness p { display: grid; gap: 4px; margin: 0; }
.template-readiness strong { color: #287741; font-size: 11px; }
.template-readiness small { color: #548262; font-size: 10px; }
.template-panel-heading { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.template-panel-heading h3 { margin: 4px 0 0; font-size: 14px; }
.template-variable-table { overflow: hidden; border: 1px solid #e0e1e4; border-radius: 10px; }
.template-variable-table > div, .template-variable-table > article { display: grid; grid-template-columns: 1.2fr 1fr .8fr 1.2fr; gap: 12px; align-items: center; padding: 0 13px; }
.template-variable-table > div { min-height: 34px; background: #f5f5f6; color: #85868c; font-size: 10px; font-weight: 750; }
.template-variable-table > article { min-height: 53px; border-top: 1px solid #ececef; color: #5d5e64; font-size: 11px; }
.template-variable-table code { color: #8d4a16; font: 650 11px ui-monospace, SFMono-Regular, monospace; }
.template-variable-table b { width: fit-content; padding: 5px 7px; border-radius: 6px; background: #e8f5ec; color: #287741; font-size: 10px; }
.template-variable-table b.optional { background: #f0f0f2; color: #686970; }
.template-version-list { display: grid; }
.template-version-list article { min-height: 75px; display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; padding: 10px 0; border-top: 1px solid #ededf0; }
.template-version-list article:first-child { border-top: 0; }
.template-version-list article > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #f0f1f3; color: #686970; font-size: 11px; font-weight: 800; }
.template-version-list article.current > span { background: #fde9ea; color: #ad1721; }
.template-version-list div { display: grid; gap: 4px; }
.template-version-list strong { font-size: 11px; }
.template-version-list p { margin: 0; color: #6f7076; font-size: 11px; }
.template-version-list small { color: #95969b; font-size: 10px; }
.template-version-list b { padding: 5px 7px; border-radius: 6px; background: #e8f5ec; color: #287741; font-size: 10px; }
.template-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.template-settings-grid article { min-height: 82px; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid #e0e1e4; border-radius: 9px; }
.template-settings-grid article > .ui-icon { width: 36px; height: 36px; padding: 9px; border-radius: 9px; background: #f0f1f3; color: #66676d; }
.template-settings-grid article div { display: grid; gap: 5px; }
.template-settings-grid strong { font-size: 11px; }
.template-settings-grid p { margin: 0; color: #7d7e84; font-size: 11px; }
.template-settings-grid button { border: 0; background: transparent; color: #ad1721; cursor: pointer; font-size: 11px; font-weight: 700; }
@media (max-width: 1180px) { .contract-template-layout { grid-template-columns: 290px minmax(0, 1fr); }.contract-template-document-layout { grid-template-columns: 1fr; }.contract-template-sidebar { grid-template-columns: 1fr 1fr; }.contract-template-sidebar h3, .template-variable-list { grid-column: 1 / -1; } }
@media (max-width: 900px) { .contract-template-layout { grid-template-columns: 1fr; }.contract-template-library { max-height: 440px; overflow-y: auto; }.contract-template-toolbar { align-items: stretch; flex-wrap: wrap; }.contract-template-toolbar > label:first-child { min-height: 38px; }.contract-template-type { min-height: 38px; flex: 1; justify-content: center; }.contract-template-detail-head { align-items: flex-start; flex-direction: column; }.contract-template-detail-head > div:last-child { width: 100%; }.contract-template-detail-head > div:last-child .button { flex: 1; } }
@media (max-width: 760px) { .contract-templates-page { padding-right: 14px; padding-left: 14px; }.contract-template-alert { grid-template-columns: 30px 1fr; }.contract-template-alert button { grid-column: 2; justify-self: start; padding: 0; }.contract-template-toolbar > label:first-child, .contract-template-type { width: 100%; min-width: 0; }.contract-template-toolbar .segmented { width: 100%; overflow-x: auto; }.contract-template-toolbar .segmented button { flex: none; }.contract-template-tabs { overflow-x: auto; }.contract-template-tabs button { flex: none; }.contract-template-panel { padding: 10px; }.contract-template-document-layout, .contract-template-sidebar, .template-settings-grid { grid-template-columns: 1fr; }.contract-template-sidebar h3, .template-variable-list { grid-column: auto; }.contract-template-paper { min-height: 470px; padding: 26px 22px 60px; }.template-variable-table { overflow-x: auto; }.template-variable-table > div, .template-variable-table > article { min-width: 650px; }.template-panel-heading { align-items: flex-start; flex-direction: column; }.template-settings-grid article { grid-template-columns: 34px 1fr; }.template-settings-grid article button { grid-column: 2; justify-self: start; padding: 0; } }

/* Accounts and planned payments */
.accounts-page { padding-bottom: 56px; }
.accounts-principle { min-height: 64px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 13px; padding: 11px 14px; border: 1px solid #cbddeb; border-radius: 12px; background: #f6fbff; color: #466278; }
.accounts-principle > .ui-icon { width: 22px; height: 22px; padding: 8px; box-sizing: content-box; border-radius: 9px; background: #e4f2fb; color: #26779d; }
.accounts-principle strong { display: block; margin-bottom: 3px; color: #303d46; font-size: 12px; }
.accounts-principle p { margin: 0; color: #71818d; font-size: 11px; line-height: 1.4; }
.accounts-principle a { color: #176c94; font-size: 11px; font-weight: 750; white-space: nowrap; }
.accounts-toolbar { min-height: 58px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.accounts-tabs { display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 9px; background: #f0f1f3; }
.accounts-tabs button { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #63646a; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }
.accounts-tabs button span { min-width: 18px; padding: 2px 5px; border-radius: 99px; background: rgba(0,0,0,.06); color: #68696f; font-size: 10px; }
.accounts-tabs button.active { background: #fff; color: #aa1721; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.accounts-tabs button.active span { background: #fbe5e7; color: #ad1c25; }
.accounts-search { min-width: 210px; min-height: 38px; display: flex; flex: 1; align-items: center; gap: 8px; padding: 0 10px; border-left: 1px solid #dedfe2; color: #74757b; }
.accounts-search .ui-icon { width: 18px; height: 18px; }
.accounts-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #292a2f; font: inherit; font-size: 12px; }
.accounts-period { position: relative; min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 32px 0 11px; border: 1px solid #d5d6da; border-radius: 9px; color: #77787e; font-size: 11px; white-space: nowrap; }
.accounts-period select { border: 0; outline: 0; appearance: none; background: transparent; color: #303136; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.accounts-period > .ui-icon { position: absolute; right: 9px; width: 14px; height: 14px; pointer-events: none; }
.accounts-table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.accounts-table-panel > header { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.accounts-table-panel > header > div { display: grid; gap: 3px; }
.accounts-table-panel > header strong { color: #393a40; font-size: 12px; }
.accounts-table-panel > header span { color: #85868c; font-size: 11px; }
.accounts-table-panel > header button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #65666c; cursor: pointer; font-size: 11px; font-weight: 700; }
.accounts-table-panel > header button .ui-icon { width: 16px; height: 16px; }
.accounts-table-scroll { overflow-x: auto; }
.accounts-table { min-width: 940px; padding: 0 12px 10px; }
.accounts-table-head, .accounts-row { display: grid; grid-template-columns: 100px 84px minmax(150px, 1.2fr) minmax(145px, 1fr) 118px 96px 88px 28px; gap: 8px; align-items: center; }
.accounts-table-head { min-height: 42px; color: #898a8f; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.accounts-row { position: relative; min-height: 77px; border-top: 1px solid #e9e9ec; transition: background .16s ease; }
.accounts-row:hover { background: #fafafa; }
.accounts-row.filtered-out { display: none; }
.accounts-row.attention::before { position: absolute; inset: 12px auto 12px -12px; width: 3px; border-radius: 0 3px 3px 0; background: #d84d45; content: ""; }
.accounts-row > div { min-width: 0; display: grid; gap: 4px; }
.accounts-row > div strong { overflow: hidden; color: #33343a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.accounts-row > div small { overflow: hidden; color: #85868c; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.account-direction { width: fit-content; min-height: 27px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.account-direction .ui-icon { width: 14px; height: 14px; }
.account-direction.income { background: #e8f6ed; color: #287742; }
.account-direction.expense { background: #fceceb; color: #b33a35; }
.account-relation { min-width: 0; display: grid; gap: 4px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.account-relation b { width: fit-content; padding: 3px 6px; border-radius: 5px; background: #edf3fb; color: #3f6f9a; font-size: 10px; }
.account-relation.neutral b { background: #f2f2f4; color: #64656b; }
.account-relation span { overflow: hidden; color: #4e4f55; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.account-amount i { height: 4px; display: block; overflow: hidden; border-radius: 99px; background: #e9e9ec; }
.account-amount i b { height: 100%; display: block; border-radius: inherit; background: #4ca56b; }
.account-due.overdue strong, .account-due.overdue small { color: #b83a35; }
.account-state { width: fit-content; min-height: 24px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 750; white-space: nowrap; }
.account-state.overdue { background: #fce7e6; color: #b43b36; }
.account-state.partial, .account-state.approval { background: #fff1dc; color: #956214; }
.account-state.planned { background: #edf3fb; color: #416d97; }
.account-state.draft { background: #f0f0f2; color: #66676d; }
.account-state.paid { background: #e7f5eb; color: #287741; }
.accounts-empty { padding: 62px 20px; color: #77787e; text-align: center; }
.accounts-empty .ui-icon { width: 28px; height: 28px; margin-bottom: 8px; }
.accounts-empty strong { display: block; color: #35363b; font-size: 12px; }
.accounts-empty p { margin: 5px 0 0; font-size: 11px; }
@media (max-width: 1180px) { .accounts-search { order: 3; width: 100%; flex-basis: 100%; border-left: 0; border-top: 1px solid #e2e3e6; } }
@media (max-width: 760px) { .accounts-principle { grid-template-columns: 38px 1fr; }.accounts-principle a { grid-column: 2; }.accounts-toolbar { align-items: stretch; }.accounts-tabs { width: 100%; overflow-x: auto; }.accounts-tabs button { flex: none; }.accounts-period { flex: 1; }.accounts-table-panel > header button { display: none; } }

/* Owner dashboard */
.owner-dashboard-page { max-width: none; padding: 42px 30px 64px; }
.owner-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.owner-heading h1 { margin: 7px 0 7px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.055em; }
.owner-heading-actions { display: flex; align-items: center; gap: 8px; }
.owner-heading-actions label { position: relative; min-height: 39px; display: flex; align-items: center; gap: 7px; padding: 0 32px 0 11px; border: 1px solid #d5d6da; border-radius: 9px; background: #fff; color: #77787e; font-size: 11px; white-space: nowrap; }
.owner-heading-actions select { border: 0; outline: 0; appearance: none; background: transparent; color: #2f3035; font: inherit; font-size: 12px; font-weight: 750; }
.owner-heading-actions label .ui-icon { position: absolute; right: 9px; width: 14px; height: 14px; }
.owner-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 13px; }
.owner-metric-card { min-height: 110px; display: grid; grid-template-columns: 42px 1fr; gap: 11px; align-items: start; padding: 16px; border: 1px solid #dedfe3; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.owner-metric-card.attention { border-color: #efc5c7; background: #fffafa; }
.owner-metric-icon { width: 42px; height: 42px; padding: 10px; border-radius: 11px; }
.owner-metric-icon.green { background: #e8f5ec; color: #2e7e48; }.owner-metric-icon.red { background: #fde8e9; color: #b9252e; }.owner-metric-icon.amber { background: #fff2dc; color: #9b6512; }.owner-metric-icon.blue { background: #eaf3fb; color: #3576a3; }
.owner-metric-card > div { min-width: 0; display: grid; gap: 5px; }
.owner-metric-card small { color: #73747a; font-size: 11px; font-weight: 700; }
.owner-metric-card strong { color: #1f2024; font-size: 22px; letter-spacing: -.04em; }
.owner-metric-card strong i { color: #96979c; font-size: 12px; font-style: normal; font-weight: 650; }
.owner-metric-card p { margin: 0; color: #75767c; font-size: 11px; }
.owner-metric-card p b { color: #33343a; }
.owner-alert-line { min-height: 54px; display: flex; align-items: center; gap: 9px; margin-bottom: 13px; padding: 9px 12px; border: 1px solid #efc4c7; border-radius: 12px; background: #fff7f7; }
.owner-alert-line > .ui-icon { width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: #fde4e6; color: #b71d27; }
.owner-alert-line strong { margin-right: 3px; color: #3c3d42; font-size: 11px; }
.owner-alert-line button { min-height: 28px; padding: 0 9px; border: 1px solid #ecc7c9; border-radius: 7px; background: #fff; color: #9f1d26; cursor: pointer; font-size: 11px; font-weight: 700; }
.owner-dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 13px; }
.owner-panel { overflow: hidden; border: 1px solid #dedfe3; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.owner-panel > header { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid #ececef; }
.owner-panel > header h2 { margin: 5px 0 0; font-size: 15px; }
.owner-panel > header a, .owner-panel > header button { border: 0; background: transparent; color: #aa1721; cursor: pointer; font-size: 11px; font-weight: 750; }
.owner-team-panel { grid-column: span 8; }
.owner-decisions-panel { grid-column: span 4; }
.owner-task-risk-panel { grid-column: 1 / -1; }
.owner-clients-panel { grid-column: span 5; }
.owner-calendar-panel { grid-column: span 4; }
.owner-finance-panel { grid-column: span 3; }
.owner-panel-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: #f0f1f3; }
.owner-panel-tabs button { min-height: 29px; padding: 0 8px; border-radius: 6px; color: #696a70; white-space: nowrap; }
.owner-panel-tabs button.active { background: #fff; color: #a61922; box-shadow: 0 1px 3px rgba(0,0,0,.09); }
.owner-team-head, .owner-team-list > article { display: grid; grid-template-columns: 1.2fr .75fr 1.35fr .7fr 28px; gap: 9px; align-items: center; }
.owner-team-head { min-height: 34px; padding: 0 13px; background: #fafafa; color: #909197; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.owner-team-list { padding: 0 13px; }
.owner-team-list > article { position: relative; min-height: 67px; border-top: 1px solid #ededf0; }
.owner-team-list > article:first-child { border-top: 0; }
.owner-team-list > article.filtered-out { display: none; }
.owner-team-list > article.attention::before { position: absolute; inset: 10px auto 10px -13px; width: 3px; border-radius: 0 3px 3px 0; background: #dc3e3a; content: ""; }
.owner-person { min-width: 0; display: flex; align-items: center; gap: 8px; }
.owner-person > i, .owner-mini-person i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #eff0f2; color: #62636a; font-size: 11px; font-style: normal; font-weight: 800; }
.owner-person .blue-avatar { background: #e6f0fa; color: #366f9c; }.owner-person .violet-avatar { background: #f0e8fa; color: #7d48a6; }.owner-person .green-avatar { background: #e6f4ea; color: #2f7a47; }.owner-person .amber-avatar { background: #fff0d8; color: #966111; }
.owner-person span, .owner-active-task { min-width: 0; display: grid; gap: 4px; }
.owner-person strong, .owner-active-task strong { overflow: hidden; color: #33343a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.owner-person small, .owner-active-task small { overflow: hidden; color: #85868c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.owner-presence { width: fit-content; min-height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.owner-presence i { width: 6px; height: 6px; border-radius: 50%; }
.owner-presence.working { background: #e7f5eb; color: #287741; }.owner-presence.working i { background: #32a852; }
.owner-presence.pause { background: #fff1dc; color: #93600f; }.owner-presence.pause i { background: #e79a21; }
.owner-presence.missing { background: #fce7e6; color: #b43b36; }.owner-presence.missing i { background: #d84d45; }
.owner-presence.absent { background: #f0f0f2; color: #66676d; }.owner-presence.absent i { background: #98999e; }
.owner-day-progress { display: grid; gap: 5px; color: #55565c; font-size: 11px; }
.owner-day-progress i { height: 4px; overflow: hidden; border-radius: 99px; background: #e9e9ec; }
.owner-day-progress i b { height: 100%; display: block; border-radius: inherit; background: #4ca56b; }
.owner-day-progress small { color: #85868c; font-size: 10px; }
.owner-team-panel footer { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border-top: 1px solid #ececef; color: #85868c; font-size: 10px; }
.owner-team-panel footer a { color: #aa1721; font-size: 11px; font-weight: 750; }
.owner-count { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #fde7e9; color: #ab1923; font-size: 11px; font-weight: 800; }
.owner-decision-list { padding: 0 13px; }
.owner-decision-list article { min-height: 76px; display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; border-top: 1px solid #ededf0; }
.owner-decision-list article:first-child { border-top: 0; }
.decision-icon { width: 34px; height: 34px; padding: 8px; border-radius: 9px; }.decision-icon.red { background: #fde7e9; color: #b91f29; }.decision-icon.amber { background: #fff1dc; color: #996314; }.decision-icon.blue { background: #e9f2fb; color: #3b76a1; }
.owner-decision-list article > div { min-width: 0; display: grid; gap: 4px; }
.owner-decision-list strong { font-size: 11px; }.owner-decision-list p { margin: 0; color: #54555b; font-size: 11px; }.owner-decision-list small { color: #8a8b91; font-size: 10px; }
.owner-decision-list button { border: 0; background: transparent; color: #aa1721; cursor: pointer; font-size: 10.5px; font-weight: 750; }
.owner-all-button { width: calc(100% - 26px); min-height: 34px; margin: 2px 13px 13px; border: 1px solid #dedfe3; border-radius: 8px; background: #fff; color: #55565c; cursor: pointer; font-size: 11px; font-weight: 750; }
.owner-risk-table { padding: 0 13px 11px; }
.owner-risk-head, .owner-risk-table article { display: grid; grid-template-columns: 90px minmax(180px, 1.4fr) 125px 85px minmax(170px, 1fr); gap: 10px; align-items: center; }
.owner-risk-head { min-height: 35px; color: #909197; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.owner-risk-table article { min-height: 61px; border-top: 1px solid #ededf0; }
.owner-risk-table article > div { display: grid; gap: 4px; }
.owner-risk-table article strong { font-size: 11px; }.owner-risk-table article small { color: #85868c; font-size: 10px; }
.risk-priority { width: fit-content; min-height: 23px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 800; }.risk-priority.critical { background: #fce6e5; color: #b23732; }.risk-priority.high { background: #fff1dc; color: #946110; }
.owner-mini-person { display: flex; align-items: center; gap: 7px; color: #4f5056; font-size: 11px; }.owner-mini-person i { width: 25px; height: 25px; border-radius: 7px; }
.risk-deadline { display: grid; gap: 3px; }.risk-deadline strong { font-size: 11px !important; }.risk-deadline small { color: #b53a35 !important; }
.risk-reason { color: #5f6066; font-size: 11px; }
.owner-client-risks, .owner-control-dates { padding: 0 13px 10px; }
.owner-client-risks article { min-height: 70px; display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; border-top: 1px solid #ededf0; }
.owner-client-risks article:first-child { border-top: 0; }
.owner-client-risks .client-logo { width: 34px; height: 34px; border-radius: 9px; }
.owner-client-risks article > div { min-width: 0; display: grid; gap: 4px; }.owner-client-risks strong { font-size: 11px; }.owner-client-risks p { margin: 0; color: #5e5f65; font-size: 11px; }.owner-client-risks small { display: flex; align-items: center; gap: 5px; color: #85868c; font-size: 10px; }.owner-client-risks article > b { color: #55565c; font-size: 11px; }
.danger-dot, .warning-dot { width: 6px; height: 6px; border-radius: 50%; background: #d84d45; }.warning-dot { background: #e69a21; }
.owner-control-dates article { min-height: 61px; display: grid; grid-template-columns: 37px 1fr auto; gap: 9px; align-items: center; border-top: 1px solid #ededf0; }
.owner-control-dates article:first-child { border-top: 0; }
.owner-control-dates time { width: 37px; height: 40px; display: grid; place-items: center; align-content: center; border-radius: 8px; background: #f1f2f4; line-height: 1; }.owner-control-dates time strong { font-size: 12px; }.owner-control-dates time small { margin-top: 3px; color: #85868c; font-size: 10px; }
.owner-control-dates article > div { display: grid; gap: 4px; }.owner-control-dates b { font-size: 11px; }.owner-control-dates span { color: #7d7e84; font-size: 10px; }.owner-control-dates em { color: #6f7076; font-size: 10px; font-style: normal; font-weight: 700; }.owner-control-dates em.today { color: #b21e27; }
.owner-finance-bars { display: grid; gap: 23px; padding: 18px 14px; }
.owner-finance-bars > div { display: grid; gap: 8px; }.owner-finance-bars span { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }.owner-finance-bars span b { color: #55565c; font-size: 11px; }.owner-finance-bars span strong { font-size: 12px; }.owner-finance-bars > div > i { height: 6px; overflow: hidden; border-radius: 99px; background: #ececef; }.owner-finance-bars > div > i b { height: 100%; display: block; border-radius: inherit; background: #d53a43; }.owner-finance-bars > div:nth-child(2) > i b { background: #e3a034; }.owner-finance-bars small { color: #8a8b91; font-size: 10px; }
@media (max-width: 1180px) { .owner-team-panel, .owner-decisions-panel { grid-column: 1 / -1; }.owner-clients-panel { grid-column: span 6; }.owner-calendar-panel { grid-column: span 6; }.owner-finance-panel { grid-column: 1 / -1; }.owner-panel-tabs { overflow-x: auto; }.owner-panel-tabs button { flex: none; } }
@media (max-width: 760px) { .owner-dashboard-page { padding: 30px 14px 50px; }.owner-heading { align-items: flex-start; flex-direction: column; }.owner-heading-actions { width: 100%; }.owner-heading-actions label, .owner-heading-actions .button { flex: 1; }.owner-metric-grid { grid-template-columns: 1fr 1fr; }.owner-alert-line { align-items: flex-start; flex-wrap: wrap; }.owner-alert-line strong { width: calc(100% - 45px); }.owner-alert-line button { flex: 1; }.owner-clients-panel, .owner-calendar-panel, .owner-finance-panel { grid-column: 1 / -1; }.owner-team-panel, .owner-task-risk-panel { overflow-x: auto; }.owner-team-panel > header, .owner-task-risk-panel > header { min-width: 820px; }.owner-team-head, .owner-team-list, .owner-team-panel footer { min-width: 820px; }.owner-risk-table { min-width: 820px; }.owner-metric-card { grid-template-columns: 36px 1fr; padding: 13px; }.owner-metric-icon { width: 36px; height: 36px; padding: 8px; }.owner-metric-card strong { font-size: 18px; } }

/* Daily work plan */
.employee-day-page { max-width: none; padding: 42px 30px 64px; }
.employee-day-heading { align-items: flex-end; }
.employee-plan-overview { width: min(330px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 13px 15px; border: 1px solid #dedfe3; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.employee-plan-overview span { color: #75767c; font-size: 11px; }.employee-plan-overview span b { color: #34353a; }.employee-plan-overview strong { color: #a91822; font-size: 14px; }
.employee-plan-overview > i { grid-column: 1 / -1; height: 7px; overflow: hidden; border-radius: 99px; background: #ececef; }.employee-plan-overview > i b { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #f23842, #c81420); transition: width .28s ease; }
.employee-day-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.employee-plan-panel { overflow: hidden; }
.employee-plan-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 17px; border-bottom: 1px solid #ececef; }
.employee-plan-header h2, .employee-side-heading h2 { margin: 4px 0 0; font-size: 17px; }
.employee-plan-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #f0f1f3; }
.employee-plan-tabs button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #66676d; cursor: pointer; font: inherit; font-size: 12px; font-weight: 750; }
.employee-plan-tabs button.active { background: #fff; color: #aa1721; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.employee-plan-add { min-height: 54px; display: grid; grid-template-columns: 20px 1fr auto; gap: 9px; align-items: center; margin: 13px 16px 4px; padding: 0 7px 0 13px; border: 1px solid #dfe0e4; border-radius: 11px; background: #fafafa; transition: border-color .2s, box-shadow .2s, background .2s; }
.employee-plan-add:focus-within { border-color: #e08287; background: #fff; box-shadow: 0 0 0 3px rgba(226,42,53,.08); }.employee-plan-add > .ui-icon { width: 18px; color: #929399; }
.employee-plan-add input { min-width: 0; border: 0; outline: 0; background: transparent; color: #2f3035; font: inherit; font-size: 12px; }.employee-plan-add input::placeholder { color: #a2a3a8; }
.employee-plan-add button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 8px; background: #e42530; color: #fff; cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; }
.employee-plan-list { display: grid; gap: 9px; padding: 12px 16px 18px; }
.employee-plan-bucket { overflow: hidden; border: 1px solid #e2e3e6; border-radius: 12px; background: #fff; }
.employee-plan-bucket > header { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px; border-bottom: 1px solid #ededf0; background: #fafafa; }
.employee-plan-bucket > header > div { display: grid; gap: 3px; }.employee-plan-bucket > header span { color: #34353a; font-size: 12px; font-weight: 820; }.employee-plan-bucket > header small { color: #86878d; font-size: 10.5px; }.employee-plan-bucket > header b { min-width: 30px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #e9eaed; color: #65666c; font-size: 11px; }
.employee-plan-bucket.must { border-color: #efc9cc; }.employee-plan-bucket.must > header { background: #fff8f8; }.employee-plan-bucket.must > header span { color: #a91b24; }.employee-plan-bucket.must > header b { background: #fde7e9; color: #aa1922; }
.employee-plan-item { min-height: 67px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 13px; overflow: hidden; border-top: 1px solid #ededf0; transition: background .16s; }.employee-plan-item:first-child { border-top: 0; }.employee-plan-item:hover { background: #fcfcfd; }.employee-plan-item.active { background: #f3faf5; box-shadow: inset 3px 0 #36a960; }.employee-plan-item.review { background: #fffaf1; }
.employee-plan-toggle { display: grid; place-items: center; cursor: pointer; }.employee-plan-toggle > input { position: absolute; opacity: 0; pointer-events: none; }.employee-plan-checkbox { width: 25px; height: 25px; display: grid; place-items: center; border: 1.5px solid #c8c9ce; border-radius: 8px; background: #fff; color: #fff; transition: .18s; }.employee-plan-checkbox .ui-icon { width: 15px; height: 15px; }
.employee-plan-toggle > input:checked + .employee-plan-checkbox { border-color: #dc2933; background: #dc2933; }.employee-plan-toggle > input:focus-visible + .employee-plan-checkbox { outline: 3px solid rgba(226,42,53,.15); outline-offset: 2px; }
.employee-plan-copy { min-width: 0; max-width: 100%; display: grid; gap: 5px; overflow: hidden; }.employee-plan-copy strong { color: #303136; font-size: 12px; line-height: 1.35; }.employee-plan-copy small { overflow: hidden; color: #85868c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.employee-plan-task-title { width: 100%; min-width: 0; max-width: 100%; display: block; padding: 0; overflow: hidden; border: 0; background: transparent; color: #303136; cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; line-height: 1.35; text-align: left; text-overflow: ellipsis; white-space: nowrap; transition: color .16s; }.employee-plan-task-title:hover { color: #b31e27; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }.employee-plan-task-title:focus-visible { border-radius: 3px; outline: 3px solid rgba(226,42,53,.14); outline-offset: 3px; }
.employee-plan-meta { min-width: 0; display: flex; align-items: center; justify-self: end; gap: 10px; }.employee-plan-kind { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 7px; font-size: 10px; font-weight: 800; white-space: nowrap; }.employee-plan-kind.linked { background: #eaf2fb; color: #39739e; }.employee-plan-kind.quick { background: #f0f0f2; color: #65666b; }.employee-plan-kind.review { background: #fff0d3; color: #8b5a0f; }.employee-plan-meta time { min-width: 45px; color: #77787e; font-size: 11px; text-align: right; white-space: nowrap; }
.employee-plan-item.done { background: #fafafa; }.employee-plan-item.done .employee-plan-copy strong, .employee-plan-item.done .employee-plan-task-title { color: #85868c; text-decoration: line-through; }.employee-plan-item.done .employee-plan-copy small, .employee-plan-item.done .employee-plan-meta { opacity: .64; }
.employee-plan-actions { display: inline-flex; align-items: center; gap: 5px; }.employee-plan-actions a, .employee-plan-actions button { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; border: 1px solid #dcdde1; border-radius: 9px; background: #fff; color: #55565d; font: inherit; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }.employee-plan-actions a:hover, .employee-plan-actions button:hover { border-color: #efb7bb; background: #fff5f5; color: #b31e27; }.employee-plan-actions button.danger:hover { border-color: #e22631; background: #e22631; color: #fff; }.employee-plan-actions .ui-icon { width: 16px; height: 16px; }.employee-plan-actions button:disabled { cursor: wait; opacity: .5; }
.employee-plan-actions button.employee-plan-running { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-color: #35a85f; background: #35a85f; color: #fff; white-space: nowrap; }.employee-plan-actions button.employee-plan-running:hover { border-color: #287f48; background: #287f48; color: #fff; }.employee-plan-running > span:not(.employee-pause-glyph) { font-size: 10px; font-weight: 850; }.employee-plan-running b { min-width: 52px; font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }.employee-pause-glyph { width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }.employee-pause-glyph i { width: 3px; height: 10px; display: block; border-radius: 2px; background: currentColor; }.employee-plan-actions button.employee-plan-resume { border-color: #a9daba; background: #f1faf4; color: #287f48; }.employee-plan-actions button.employee-plan-resume:hover { border-color: #35a85f; background: #e5f6eb; color: #216b3c; }
.employee-plan-actions .employee-plan-review { border-color: #efd49d; background: #fff8eb; color: #8b5a0f; }
.employee-plan-toggle input:disabled + .employee-plan-checkbox { border-color: #d9c392; background: #fff8eb; cursor: default; }
.employee-plan-empty { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 8px; color: #818288; text-align: center; }.employee-plan-empty > .ui-icon { width: 35px; height: 35px; padding: 7px; border-radius: 10px; background: #f0f1f3; }.employee-plan-empty strong { color: #414247; font-size: 12px; }.employee-plan-empty p { margin: 0; font-size: 11px; }
.employee-day-aside { display: grid; gap: 13px; }.employee-day-aside .panel { padding: 15px; }
.employee-side-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }.employee-side-icon { width: 37px; height: 37px; padding: 9px; border-radius: 10px; }.employee-side-icon.red { background: #fde7e9; color: #b61e28; }.employee-side-icon.blue { background: #e9f2fb; color: #3977a4; }.employee-side-icon.amber { background: #fff1dc; color: #986313; }
.employee-now-card > div:last-child { display: grid; gap: 9px; }.employee-now-card > div:last-child > strong { font-size: 13px; line-height: 1.4; }.employee-now-card > div:last-child > p { margin: 0; color: #7d7e84; font-size: 11px; line-height: 1.4; }.employee-now-card > div:last-child > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.employee-now-card > div:last-child > div b { font-size: 14px; }.employee-now-card .button { margin-top: 3px; }
.employee-capacity-card > strong { display: block; margin: 3px 0 4px; font-size: 26px; letter-spacing: -.04em; }.employee-capacity-card > p { margin: 0 0 13px; color: #85868c; font-size: 11px; }.employee-capacity-scale { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }.employee-capacity-scale i { height: 7px; border-radius: 3px; background: #e9eaed; }.employee-capacity-scale i:nth-child(-n+6) { background: #ea3a43; }
.employee-next-label { width: fit-content; padding: 5px 8px; border-radius: 7px; background: #fff0f1; color: #b31d27; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.employee-next-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 7px !important; }.employee-next-actions .button { min-height: 38px; justify-content: center; margin: 0; padding: 0 9px; }.employee-next-actions .button.primary { border-color: #df2631; background: #df2631; color: #fff; }.employee-next-actions .ui-icon { width: 16px; height: 16px; }
.employee-choose-another { border: 0; background: transparent; color: #77787e; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.employee-recommendations-card #employeeRecommendations { display: grid; gap: 7px; }
.employee-recommendation { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 8px; align-items: center; padding: 9px; border: 1px solid #e5e6e9; border-radius: 10px; background: #fafafa; }.employee-recommendation > span { min-width: 0; display: grid; gap: 3px; }.employee-recommendation b { width: fit-content; color: #b02029; font-size: 9.5px; }.employee-recommendation strong { overflow: hidden; color: #393a3f; font-size: 11.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }.employee-recommendation small { overflow: hidden; color: #85868c; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }.employee-recommendation button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #d8d9dd; border-radius: 9px; background: #fff; color: #b11f28; cursor: pointer; }.employee-recommendation button:hover { border-color: #e58b91; background: #fff4f4; }.employee-recommendation button:disabled { cursor: wait; opacity: .5; }.employee-recommendation .ui-icon { width: 16px; height: 16px; }
.employee-recommendations-empty { min-height: 82px; display: grid; place-items: center; align-content: center; gap: 6px; color: #77787e; text-align: center; }.employee-recommendations-empty .ui-icon { width: 22px; height: 22px; color: #388a55; }.employee-recommendations-empty p { margin: 0; font-size: 11px; line-height: 1.4; }
.employee-hints-card ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }.employee-hints-card li { padding-left: 12px; border-left: 2px solid #e1e2e5; color: #6f7076; font-size: 11px; line-height: 1.45; }.employee-hints-card li b { color: #404147; }

/* Daily plan scheduling and task quick preview */
.plan-schedule-dialog { width: min(780px, calc(100vw - 28px)); max-height: calc(100vh - 34px); padding: 0; overflow: auto; border: 1px solid #dedfe3; border-radius: 18px; background: #fff; color: #24252a; box-shadow: 0 22px 70px rgba(30,31,35,.22); }.plan-schedule-dialog::backdrop { background: rgba(29,30,34,.38); backdrop-filter: blur(2px); }.plan-schedule-form { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0; }.plan-schedule-form > header { grid-column: 1 / -1; display: grid; grid-template-columns: 42px 1fr 38px; gap: 12px; align-items: center; padding: 20px 20px 16px; border-bottom: 1px solid #ededf0; }.plan-schedule-form > header h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.025em; }.plan-schedule-icon { width: 42px; height: 42px; display: grid; place-items: center; padding: 10px; border-radius: 12px; background: #fde8e9; color: #b31d27; }.plan-schedule-icon .ui-icon { width: 21px; height: 21px; }.plan-schedule-task { grid-column: 1; grid-row: 2; margin: 16px 0 0 20px; padding: 13px 14px; border-radius: 11px; background: #f6f6f7; color: #3a3b40; font-size: 13px; font-weight: 800; line-height: 1.45; }
.plan-schedule-quick { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 0 0 20px; }.plan-schedule-quick button { min-height: 54px; display: grid; place-items: center; align-content: center; gap: 3px; border: 1px solid #dfe0e4; border-radius: 11px; background: #fff; color: #4e4f55; cursor: pointer; font: inherit; transition: border-color .16s, background .16s, color .16s, box-shadow .16s; }.plan-schedule-quick button:hover:not(:disabled) { border-color: #e58d92; background: #fff8f8; color: #a91c25; }.plan-schedule-quick button strong { font-size: 12px; }.plan-schedule-quick button small { color: #929399; font-size: 10px; }.plan-schedule-quick button.selected, .plan-schedule-quick button:disabled { border-color: #e52a34; background: #fff0f1; color: #b21d27; box-shadow: inset 0 0 0 1px rgba(229,42,52,.06); cursor: default; opacity: 1; }.plan-schedule-quick button.selected small, .plan-schedule-quick button:disabled small { color: #bb5c62; }
.plan-schedule-calendar { grid-column: 2; grid-row: 2 / span 3; margin: 16px 20px 0 14px; padding: 14px; border: 1px solid #dedfe3; border-radius: 14px; background: #fafafa; }.plan-schedule-calendar-head { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 8px; margin-bottom: 11px; }.plan-schedule-calendar-head > strong { color: #33343a; font-size: 14px; text-align: center; }.plan-schedule-calendar-head button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #dedfe3; border-radius: 9px; background: #fff; color: #66676d; cursor: pointer; }.plan-schedule-calendar-head button:hover:not(:disabled) { border-color: #e68d92; color: #b11d26; }.plan-schedule-calendar-head button:disabled { cursor: default; opacity: .34; }.plan-schedule-calendar-head button .ui-icon { width: 17px; height: 17px; }.plan-schedule-calendar-head button:last-child .ui-icon { transform: rotate(180deg); }.plan-schedule-weekdays, .plan-schedule-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }.plan-schedule-weekdays { margin-bottom: 5px; }.plan-schedule-weekdays span { display: grid; place-items: center; height: 24px; color: #898a90; font-size: 10px; font-weight: 800; }.plan-schedule-grid button { height: 39px; min-width: 0; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #45464c; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 750; transition: background .14s, color .14s, box-shadow .14s; }.plan-schedule-grid button:hover:not(:disabled):not(.selected) { background: #f9e6e7; color: #ae1d26; }.plan-schedule-grid button.outside { color: #a6a7ac; }.plan-schedule-grid button.today span { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid #e04b54; border-radius: 8px; color: #b61f28; }.plan-schedule-grid button.selected { background: #e52631; color: #fff; box-shadow: 0 5px 13px rgba(203,29,39,.2); }.plan-schedule-grid button.selected span { border-color: transparent; color: inherit; }.plan-schedule-grid button:disabled { color: #d0d1d5; cursor: default; }.plan-schedule-selection { margin: 12px 2px 0; padding-top: 11px; border-top: 1px solid #e4e5e8; color: #77787e; font-size: 11px; }.plan-schedule-selection strong { color: #3b3c41; }.plan-schedule-note { grid-column: 1; grid-row: 4; margin: 12px 0 16px 20px; color: #7b7c82; font-size: 11px; line-height: 1.45; }.plan-schedule-form .api-form-error { grid-column: 1 / -1; margin: 10px 20px 0; }.plan-schedule-form > footer { position: sticky; z-index: 2; bottom: 0; grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid #ededf0; background: #fff; }.plan-schedule-form > footer .button { min-height: 42px; }
.employee-day-toast { position: fixed; z-index: 1500; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 32px)); padding: 12px 16px; transform: translateY(18px); border: 1px solid #cce3d3; border-radius: 11px; background: #eff8f2; color: #286d40; box-shadow: 0 12px 36px rgba(31,33,38,.16); opacity: 0; font-size: 12px; font-weight: 800; transition: opacity .2s, transform .2s; }.employee-day-toast.neutral { border-color: #dedfe3; background: #fff; color: #55565c; }.employee-day-toast.visible { transform: translateY(0); opacity: 1; }
body.employee-task-preview-open { overflow: hidden; }.employee-task-preview-shell { position: fixed; z-index: 1250; inset: 0; }.employee-task-preview-shell[hidden] { display: none; }.employee-task-preview-backdrop { position: absolute; inset: 0; border: 0; background: rgba(28,29,33,.36); opacity: 0; cursor: default; transition: opacity .22s; }.employee-task-preview-panel { position: absolute; top: 0; right: 0; width: min(520px, calc(100vw - 20px)); height: 100%; display: grid; grid-template-rows: auto 1fr; transform: translateX(100%); border-left: 1px solid #dedfe3; background: #f6f6f7; box-shadow: -18px 0 55px rgba(26,27,31,.18); transition: transform .24s ease; }.employee-task-preview-shell.open .employee-task-preview-backdrop { opacity: 1; }.employee-task-preview-shell.open .employee-task-preview-panel { transform: translateX(0); }.employee-task-preview-panel > header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #dedfe3; background: #fff; }.employee-task-preview-panel > header strong { display: block; margin-top: 3px; font-size: 17px; }.employee-task-preview-content { min-height: 0; overflow-y: auto; padding: 20px; }.employee-task-preview-state { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 9px; color: #78797f; text-align: center; }.employee-task-preview-state strong { color: #3c3d42; font-size: 14px; }.employee-task-preview-state p { max-width: 300px; margin: 0; font-size: 11px; line-height: 1.5; }.employee-task-preview-state.error > .ui-icon { width: 34px; height: 34px; color: #c52a33; }.employee-task-preview-title { padding: 20px; border: 1px solid #dedfe3; border-radius: 14px; background: #fff; box-shadow: 0 4px 15px rgba(34,35,40,.05); }.employee-task-preview-title > span { color: #7d7e84; font-size: 11px; font-weight: 850; letter-spacing: .03em; }.employee-task-preview-title h2 { margin: 8px 0 15px; color: #24252a; font-size: 24px; line-height: 1.18; letter-spacing: -.035em; }.employee-task-preview-title > div { display: flex; flex-wrap: wrap; gap: 7px; }.employee-task-preview-title em, .employee-task-preview-title b { min-height: 27px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 8px; background: #f0f1f3; color: #58595f; font-size: 10.5px; font-style: normal; font-weight: 800; }.employee-task-preview-title b.high, .employee-task-preview-title b.critical { background: #fde8e9; color: #b21e27; }.employee-task-preview-title b.low { background: #edf7f0; color: #337a4b; }.employee-task-preview-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0 0; overflow: hidden; border: 1px solid #dedfe3; border-radius: 14px; background: #fff; }.employee-task-preview-facts > div { min-width: 0; display: grid; gap: 5px; padding: 14px 15px; border-top: 1px solid #ededf0; }.employee-task-preview-facts > div:nth-child(-n+2) { border-top: 0; }.employee-task-preview-facts > div:nth-child(even) { border-left: 1px solid #ededf0; }.employee-task-preview-facts dt { color: #898a90; font-size: 10px; font-weight: 750; }.employee-task-preview-facts dd { margin: 0; overflow: hidden; color: #3a3b40; font-size: 12px; font-weight: 800; line-height: 1.4; text-overflow: ellipsis; }.employee-task-preview-section { margin-top: 12px; padding: 17px; border: 1px solid #dedfe3; border-radius: 14px; background: #fff; }.employee-task-preview-section h3 { margin: 0 0 10px; font-size: 14px; }.employee-task-preview-section > p { margin: 0; color: #68696f; font-size: 12px; line-height: 1.6; }.employee-task-preview-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.employee-task-preview-section-head span { min-width: 34px; min-height: 25px; display: grid; place-items: center; border-radius: 8px; background: #f0f1f3; color: #65666c; font-size: 10.5px; font-weight: 800; }.employee-task-preview-section ul { display: grid; gap: 0; margin: 2px 0 0; padding: 0; list-style: none; }.employee-task-preview-section li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; padding: 10px 0; border-top: 1px solid #ededf0; color: #4c4d52; font-size: 11.5px; line-height: 1.4; }.employee-task-preview-section li:first-child { border-top: 0; }.employee-task-preview-section li .ui-icon { width: 17px; height: 17px; color: #98999e; }.employee-task-preview-section li.done { color: #88898e; text-decoration: line-through; }.employee-task-preview-section li.done .ui-icon { color: #3a8954; }.employee-task-preview-content > footer { display: flex; justify-content: flex-end; padding: 16px 0 6px; }.employee-task-preview-content > footer .button { min-height: 44px; gap: 8px; }.employee-task-preview-content > footer .ui-icon { width: 16px; height: 16px; }
@media (max-width: 680px) { .employee-task-preview-content { padding: 14px; }.employee-task-preview-title { padding: 17px; }.employee-task-preview-title h2 { font-size: 21px; }.employee-task-preview-facts { grid-template-columns: 1fr; }.employee-task-preview-facts > div:nth-child(2) { border-top: 1px solid #ededf0; }.employee-task-preview-facts > div:nth-child(even) { border-left: 0; }.plan-schedule-form { grid-template-columns: 1fr; }.plan-schedule-form > header, .plan-schedule-task, .plan-schedule-quick, .plan-schedule-calendar, .plan-schedule-note, .plan-schedule-form .api-form-error, .plan-schedule-form > footer { grid-column: 1; grid-row: auto; }.plan-schedule-task { margin: 14px 16px 0; }.plan-schedule-quick { grid-template-columns: repeat(3, 1fr); padding: 12px 16px 0; }.plan-schedule-calendar { margin: 12px 16px 0; padding: 11px; }.plan-schedule-grid button { height: 34px; }.plan-schedule-note { margin: 10px 16px 13px; }.plan-schedule-form > footer { display: grid; grid-template-columns: 1fr 1fr; }.plan-schedule-form > footer .button { justify-content: center; } }

.owner-daily-plans-panel { grid-column: 1 / -1; }
.owner-plan-summary { min-height: 29px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 8px; background: #f1f2f4; color: #696a70; font-size: 11px; font-weight: 750; }
.owner-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; padding: 13px; background: #f7f7f8; }
.owner-plan-card { overflow: hidden; border: 1px solid #dedfe3; border-radius: 11px; background: #fff; }
.owner-plan-card > header { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 8px; }
.owner-plan-card .owner-person strong { font-size: 11px; }.owner-plan-card .owner-person small { font-size: 10.5px; }
.owner-plan-percentage { display: grid; gap: 2px; text-align: right; }.owner-plan-percentage strong { color: #292a2f; font-size: 12px; }.owner-plan-percentage small { color: #8a8b90; font-size: 10px; }
.owner-plan-bar { height: 5px; margin: 0 12px 9px; overflow: hidden; border-radius: 99px; background: #ececef; }.owner-plan-bar i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #f03a43, #c91822); transition: width .28s ease; }
.owner-plan-card ul { margin: 0; padding: 0 12px 9px; list-style: none; }.owner-plan-card li { min-height: 50px; display: grid; grid-template-columns: 21px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 0 2px; border-top: 1px solid #ededf0; }.owner-plan-card li:first-child { border-top: 0; }
.owner-plan-checkbox { width: 19px; height: 19px; display: grid; place-items: center; border: 1.5px solid #c7c8cd; border-radius: 6px; color: #fff; }.owner-plan-checkbox .ui-icon { width: 12px; height: 12px; }.owner-plan-card li.done .owner-plan-checkbox { border-color: #d72b35; background: #d72b35; }
.owner-plan-card li.running { margin: 0 -2px; padding: 0 4px; border-radius: 8px; background: #f2faf4; }.owner-plan-card li.running .owner-plan-checkbox { border-color: #35a85f; background: #35a85f; }.owner-plan-card li.running .owner-plan-checkbox .ui-icon { width: 11px; height: 11px; }.owner-plan-live { min-height: 25px; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 7px; background: #e4f6e9; color: #2b7f48; }.owner-plan-live .ui-icon { width: 13px; height: 13px; }.owner-plan-live b { font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.owner-plan-card li > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }.owner-plan-card li strong { overflow: hidden; color: #393a3f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.owner-plan-card li small { overflow: hidden; color: #88898f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.owner-plan-card li em { min-height: 21px; display: inline-flex; align-items: center; padding: 0 6px; border-radius: 6px; font-size: 10px; font-style: normal; font-weight: 800; }.owner-plan-card li em.linked { background: #eaf2fb; color: #39739e; }.owner-plan-card li em.quick { background: #f0f0f2; color: #696a70; }
.owner-plan-card li.done strong { color: #85868d; text-decoration: line-through; }.owner-plan-card li.done small, .owner-plan-card li.done em { opacity: .74; }.owner-plan-card li.mandatory { background: linear-gradient(90deg, rgba(228,59,67,.055), rgba(228,59,67,0) 42%); }.owner-plan-card li.mandatory > span:nth-child(2) strong::before { width: 5px; height: 5px; display: inline-block; margin-right: 6px; border-radius: 50%; background: #e43b43; vertical-align: 1px; content: ""; }.owner-plan-card li.empty { display: block; min-height: auto; padding: 15px 0; color: #87888e; font-size: 11px; }

@media (max-width: 1100px) { .employee-day-layout { grid-template-columns: 1fr; }.employee-day-aside { grid-template-columns: repeat(3, 1fr); }.owner-plan-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .employee-day-page { padding: 30px 14px 50px; }.employee-day-heading { align-items: stretch; }.employee-plan-overview { width: 100%; }.employee-plan-header { align-items: flex-start; flex-direction: column; }.employee-plan-tabs { width: 100%; }.employee-plan-tabs button { flex: 1; }.employee-plan-add { grid-template-columns: 18px 1fr; padding-right: 11px; }.employee-plan-add button { grid-column: 1 / -1; margin: 0 -4px 7px; }.employee-plan-item { grid-template-columns: 27px minmax(0, 1fr); }.employee-plan-meta { grid-column: 2; justify-content: space-between; flex-wrap: wrap; }.employee-plan-actions { width: 100%; opacity: 1; }.employee-day-aside { grid-template-columns: 1fr; }.owner-plan-grid { padding: 10px; }.owner-daily-plans-panel > header { align-items: flex-start; flex-direction: column; }.owner-plan-summary { align-self: stretch; justify-content: center; } }

/* Live projects and tasks */
.kanban-board { grid-template-columns: repeat(var(--board-column-count, 5), minmax(350px, 1fr)); min-width: calc(var(--board-column-count, 5) * 364px); gap: 14px; }
.kanban-board > .api-state { grid-column: 1 / -1; }
.kanban-column { min-width: 0; }
.kanban-card { width: 100%; min-width: 0; overflow: hidden; }
.project-list-row { cursor: pointer; }
.project-list-row:focus-visible { outline: 3px solid rgba(225, 38, 47, .16); outline-offset: -3px; }
.service-stack .service-empty { color: #8a8b90; font-style: italic; }
.kanban-column-empty { min-height: 82px; display: grid; place-items: center; border: 1px dashed #d7d8dc; border-radius: 9px; color: #8a8b90; font-size: 11px; }
.kanban-card.is-saving { pointer-events: none; opacity: .55; }
.kanban-card .task-footer > span .ui-icon { width: 14px; height: 14px; }
.project-picker { position: relative; }
.board-project-picker { max-width: 300px; display: inline-flex; align-items: center; gap: 6px; }
.board-project-picker > .ui-icon:first-child { width: 16px; height: 16px; color: #77787e; }
.board-project-picker strong { max-width: 170px; overflow: hidden; color: #303136; font: inherit; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.board-project-picker .chevron { width: 14px; height: 14px; margin-left: 2px; transition: transform .16s ease; }
.board-project-picker.has-value { border-color: #ed9da2; background: var(--primary-soft); color: #a5141f; }
.board-project-picker.has-value strong { color: #94151e; }
.project-picker.open .board-project-picker .chevron { transform: rotate(180deg); }
.project-picker-popover { position: absolute; z-index: 70; top: calc(100% + 9px); left: 0; width: min(720px, calc(100vw - 430px)); overflow: hidden; border: 1px solid #d9dade; border-radius: 15px; background: #fff; box-shadow: 0 22px 60px rgba(29,30,34,.18); }
.project-picker-popover[hidden] { display: none; }
.project-picker-popover > header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid #ececef; }
.project-picker-popover > header > div { display: grid; gap: 3px; }.project-picker-popover > header span { color: #898a90; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .035em; }.project-picker-popover > header strong { color: #292a2f; font-size: 16px; }
.project-picker-tabs { display: flex; gap: 4px; margin: 11px 12px 7px; padding: 3px; overflow-x: auto; border-radius: 9px; background: #f1f1f3; }
.project-picker-tabs button { min-height: 31px; flex: 1; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #68696f; cursor: pointer; font: inherit; font-size: 10.5px; font-weight: 750; white-space: nowrap; }
.project-picker-tabs button.active { background: #fff; color: #a61922; box-shadow: 0 1px 4px rgba(25,26,30,.1); }
.project-picker-list { max-height: 420px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow-y: auto; padding: 6px 12px 13px; }
.project-picker-card { min-width: 0; min-height: 71px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; gap: 9px; align-items: center; padding: 9px 10px; border: 1px solid #e1e2e5; border-radius: 11px; background: #fff; color: inherit; cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.project-picker-card:hover { border-color: #e5a4a9; background: #fffafa; transform: translateY(-1px); }.project-picker-card.selected { border-color: #e6979d; background: #fff4f5; box-shadow: inset 0 0 0 1px #f4c5c8; }
.project-picker-favicon { position: relative; width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e0e1e4; border-radius: 10px; background: #f2f3f5; color: #5f6066; }
.project-picker-favicon i { font-size: 13px; font-style: normal; font-weight: 850; }.project-picker-favicon img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 7px; background: #fff; object-fit: contain; }.project-picker-favicon.all { border-color: #efc5c8; background: #fdebed; color: #ad1d27; }.project-picker-favicon.all .ui-icon { width: 20px; height: 20px; }
.project-picker-copy, .project-picker-meta { min-width: 0; display: grid; gap: 4px; }.project-picker-copy strong, .project-picker-copy small, .project-picker-meta em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.project-picker-copy strong { color: #303136; font-size: 11.5px; }.project-picker-copy small { color: #85868c; font-size: 10px; }.project-picker-meta { justify-items: end; text-align: right; }.project-picker-meta em { max-width: 120px; color: #5d5e64; font-size: 9.5px; font-style: normal; font-weight: 700; }.project-picker-meta small { color: #94959a; font-size: 9.5px; white-space: nowrap; }.project-picker-check { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #df2933; color: #fff; }.project-picker-check .ui-icon { width: 12px; height: 12px; }
.project-picker-empty { grid-column: 1 / -1; min-height: 170px; display: grid; place-items: center; align-content: center; gap: 8px; color: #898a90; text-align: center; }.project-picker-empty .ui-icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: #f0f1f3; }.project-picker-empty strong { color: #4b4c52; font-size: 11px; }
.board-entity-filter { display: inline-flex; align-items: center; gap: 6px; }
.board-entity-filter select { max-width: 155px; border: 0; outline: 0; appearance: none; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.board-entity-filter .chevron { display: inline-flex; pointer-events: none; }
.board-entity-filter.has-value { border-color: #ed9da2; background: var(--primary-soft); color: #a5141f; }
.active-filters b { max-width: 280px; overflow: hidden; color: #3f4045; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-source-note { color: #74757b; font-size: 12px; font-weight: 700; }
.portfolio-column-empty { padding: 22px 8px; color: #85868b; font-size: 11px; text-align: center; }
.task-list-view, .task-calendar-view { margin-top: 9px; }
.task-list-panel, .task-calendar-panel, .task-calendar-unscheduled {
  overflow: hidden;
  border: 1px solid #dedfe3;
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}
.task-list-summary { min-height: 43px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid #ececef; color: #77787e; font-size: 11px; }
.task-list-summary strong { margin-right: 4px; color: #303136; font-size: 12px; }
.task-list-scroll { overflow-x: auto; }
.task-list-table { min-width: 960px; }
.task-list-table.multi-project { min-width: 1120px; }
.task-list-head, .task-list-row {
  display: grid;
  grid-template-columns: 78px minmax(220px, 1.6fr) 130px 88px minmax(150px, 1fr) 105px 72px;
  gap: 12px;
  align-items: center;
}
.task-list-table.multi-project .task-list-head, .task-list-table.multi-project .task-list-row {
  grid-template-columns: 72px minmax(210px, 1.45fr) minmax(150px, .9fr) 120px 86px minmax(145px, .9fr) 102px 68px;
}
.task-list-head { min-height: 34px; padding: 0 14px; background: #f7f7f8; color: #808187; font-size: 11px; font-weight: 750; }
.task-list-row { position: relative; min-height: 58px; padding: 9px 14px; border-top: 1px solid #ececef; cursor: pointer; transition: background .15s ease; }
.task-list-row:hover { background: #fafafa; }
.task-list-row:focus-visible { outline: 3px solid rgba(225, 38, 47, .16); outline-offset: -3px; }
.task-list-row.overdue::before { position: absolute; inset: 10px auto 10px 0; width: 3px; border-radius: 0 3px 3px 0; background: #d84d45; content: ""; }
.task-list-key { color: #77787e; font-size: 11px; font-weight: 750; }
.task-list-title { min-width: 0; display: grid; gap: 4px; }
.task-list-title a { display: block; overflow: hidden; color: #2d2e33; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.task-list-title a:hover { color: #b91621; }
.task-list-title .task-hierarchy-note { margin: 0; font-size: 11px; }
.task-list-project { min-width: 0; display: grid; gap: 3px; }
.task-list-project strong, .task-list-project small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-list-project strong { color: #414247; font-size: 11px; }
.task-list-project small { color: #85868b; font-size: 10px; }
.task-list-status { display: inline-flex; align-items: center; gap: 6px; color: #55565c; font-size: 11px; font-weight: 650; }
.task-list-status > i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #8e929a; }
.task-list-status > i.rose { background: #e1262f; }
.task-list-status > i.in-progress { background: #c51b26; }
.task-list-status > i.review { background: #e39328; }
.task-list-status > i.done { background: #34a853; }
.task-list-assignees { min-width: 0; display: flex; align-items: center; gap: 7px; color: #55565c; font-size: 11px; }
.task-list-assignees > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-list-avatar-stack { display: flex; flex: none; }
.task-list-avatar-stack .assignee { width: 23px; height: 23px; margin-left: -5px; border: 2px solid #fff; font-size: 10px; }
.task-list-avatar-stack .assignee:first-child { margin-left: 0; }
.task-list-date { display: grid; gap: 3px; color: #3e3f44; font-size: 11px; font-weight: 650; }
.task-list-date small { color: #85868b; font-size: 10px; font-weight: 500; }
.task-list-plan { color: #55565c; font-size: 11px; font-variant-numeric: tabular-nums; }
.task-list-row [role="cell"] > .priority { width: fit-content; justify-self: start; }
.task-list-muted { color: #929399; font-size: 11px; font-weight: 500; }
.task-board-empty { margin-top: 5px; border: 1px solid #dedfe3; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }

.task-recommendations-trigger { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid #d8c8ef; border-radius: 10px; background: #f6f1fc; color: #7041a5; cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; white-space: nowrap; transition: .16s ease; }
.task-recommendations-trigger:hover { border-color: #b99bdc; background: #efe5fa; transform: translateY(-1px); }.task-recommendations-trigger .ui-icon { width: 17px; height: 17px; }
.kanban-board.unified-kanban-board .kanban-card { cursor: default; }.kanban-board.unified-kanban-board .kanban-dropzone { min-height: 120px; }
.task-card-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.task-card-plan button { min-width: 0; min-height: 31px; padding: 0 5px; border: 1px solid #dddfe3; border-radius: 8px; background: #f8f8f9; color: #62636a; cursor: pointer; font: inherit; font-size: 10px; font-weight: 760; white-space: nowrap; }
.task-card-plan button:hover { border-color: #e5a3a8; background: #fff2f3; color: #a91822; }
.task-card-plan button.added { border-color: #b8ddc4; background: #edf8f0; color: #287741; }
.task-card-plan button:disabled { cursor: default; }
.task-card-plan button .ui-icon { width: 13px; height: 13px; }
.task-recommendations-shell { position: fixed; z-index: 140; inset: 0; }.task-recommendations-shell[hidden] { display: none; }
.task-recommendations-backdrop { position: absolute; inset: 0; border: 0; background: rgba(23,24,28,.18); cursor: default; }
.task-recommendations-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, calc(100vw - 28px)); overflow-y: auto; padding: 22px; border-left: 1px solid #dedfe3; background: #f7f7f9; box-shadow: -18px 0 55px rgba(25,26,30,.16); transform: translateX(24px); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.task-recommendations-shell.open .task-recommendations-panel { transform: none; opacity: 1; }
.task-recommendations-heading { display: grid; grid-template-columns: 42px minmax(0, 1fr) 36px; gap: 11px; align-items: center; }.task-recommendations-heading h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.025em; }.task-recommendations-heading .icon-button { width: 36px; height: 36px; }
.task-recommendations-magic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg,#8a5bc1,#d35b91); color: #fff; box-shadow: 0 8px 20px rgba(114,65,165,.2); }.task-recommendations-magic .ui-icon { width: 22px; height: 22px; }
.task-recommendations-intro { margin: 15px 0; color: #66676d; font-size: 12px; line-height: 1.55; }
.task-recommendations-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }.task-recommendations-summary span { display: grid; gap: 3px; padding: 10px; border: 1px solid #e0e1e4; border-radius: 10px; background: #fff; color: #77787e; font-size: 10px; }.task-recommendations-summary b { color: #2e2f34; font-size: 18px; }
.task-recommendations-list { display: grid; gap: 10px; }
.task-recommendation-card { position: relative; overflow: hidden; padding: 14px; border: 1px solid #dedfe3; border-radius: 13px; background: #fff; box-shadow: 0 2px 7px rgba(25,26,30,.035); }.task-recommendation-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: #7c55aa; content: ""; }.task-recommendation-card.heat-hot::before { background: #d92d36; }.task-recommendation-card.heat-attention::before { background: #d78b20; }.task-recommendation-card.heat-calm::before { background: #4a83b6; }
.task-recommendation-topline { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }.task-recommendation-topline span { padding: 4px 6px; border-radius: 6px; background: #f0e8fa; color: #7041a5; font-size: 9px; font-weight: 850; text-transform: uppercase; }.heat-hot .task-recommendation-topline span { background: #fde7e9; color: #b51d27; }.heat-attention .task-recommendation-topline span { background: #fff1dc; color: #956012; }.task-recommendation-topline b { color: #76777d; font-size: 10px; }.task-recommendation-topline em { margin-left: auto; color: #83848a; font-size: 10px; font-style: normal; }
.task-recommendation-card > a { color: #28292e; font-size: 13px; font-weight: 800; line-height: 1.35; }.task-recommendation-card > a:hover { color: #b51d27; }.task-recommendation-card > p { margin: 8px 0 10px; color: #5f6066; font-size: 11px; line-height: 1.55; }
.task-recommendation-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; color: #88898f; font-size: 10px; }.task-recommendation-meta span:not(:last-child)::after { margin-left: 10px; content: "·"; }
.task-recommendation-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 12px; }.task-recommendation-actions button { min-height: 34px; border: 1px solid #d8d9dd; border-radius: 8px; background: #fff; color: #55565c; cursor: pointer; font: inherit; font-size: 10px; font-weight: 800; }.task-recommendation-actions button:hover { border-color: #dfa0a5; background: #fff4f4; color: #a91822; }.task-recommendation-actions button.added { border-color: #b9dec5; background: #edf8f0; color: #287741; }.task-recommendation-actions button:disabled { cursor: default; }
.task-recommendations-empty { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 30px; color: #77787e; text-align: center; }.task-recommendations-empty > .ui-icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: #e8f5ec; color: #287741; }.task-recommendations-empty strong { color: #34353a; font-size: 13px; }.task-recommendations-empty p { max-width: 310px; margin: 0; font-size: 11px; line-height: 1.5; }

@media (max-width: 760px) { .task-recommendations-trigger { flex: 1; }.task-recommendations-panel { width: 100%; padding: 17px 14px; }.task-recommendations-actions { grid-template-columns: 1fr; }.task-recommendations-summary { gap: 5px; } }

/* Unified task queue */
.kanban-board.unified-task-queue {
  min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 14px;
  align-items: start;
}
.unified-task-queue > .api-state { min-height: 360px; border: 1px solid #dedfe3; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.queue-task-group { overflow: hidden; border: 1px solid #dedfe3; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.queue-task-group > header { min-height: 70px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 30px; gap: 11px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #ececef; background: #fafafa; }
.queue-group-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #f0f1f3; color: #67686e; }
.queue-group-icon svg { width: 19px; height: 19px; }
.queue-task-group > header h2 { margin: 0; color: #25262b; font-size: 15px; line-height: 1.2; }
.queue-task-group > header p { margin: 4px 0 0; color: #7b7c82; font-size: 11px; }
.queue-task-group > header > b { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #ececef; color: #55565c; font-size: 12px; }
.queue-task-group.tone-red > header { background: #fff7f7; }.queue-task-group.tone-red .queue-group-icon { background: #fde5e7; color: #b91621; }
.queue-task-group.tone-amber > header { background: #fffaf1; }.queue-task-group.tone-amber .queue-group-icon { background: #fff0d5; color: #99620e; }
.queue-task-group.tone-violet > header { background: #fbf8ff; }.queue-task-group.tone-violet .queue-group-icon { background: #efe6fa; color: #70459a; }
.queue-task-group.tone-danger > header { background: #fff5f4; }.queue-task-group.tone-danger .queue-group-icon { background: #ffe4e1; color: #bd302a; }
.queue-task-group.tone-blue > header { background: #f6faff; }.queue-task-group.tone-blue .queue-group-icon { background: #e4f0fb; color: #3374a5; }
.queue-task-group.tone-green > header { background: #f6fbf7; }.queue-task-group.tone-green .queue-group-icon { background: #e5f5e9; color: #32814d; }
.queue-task-list { display: grid; }
.queue-task-card { position: relative; min-height: 116px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; border-top: 1px solid #ececef; background: #fff; }
.queue-task-card:first-child { border-top: 0; }
.queue-task-card:hover { background: #fcfcfc; }
.queue-task-card.overdue::before { position: absolute; inset: 12px auto 12px 0; width: 3px; border-radius: 0 3px 3px 0; background: #d84d45; content: ""; }
.queue-task-card.active { background: linear-gradient(90deg, #fff6f6, #fff 42%); }
.queue-task-main { min-width: 0; }
.queue-task-keyline { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.queue-task-keyline > span { color: #73747a; font-size: 11px; font-weight: 800; letter-spacing: .025em; }
.queue-task-keyline > em { min-width: 0; display: inline-flex; align-items: center; gap: 5px; overflow: hidden; color: #6b6c72; font-size: 10px; font-style: normal; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.queue-task-keyline .column-dot { width: 7px; height: 7px; }
.queue-task-title { display: block; overflow: hidden; color: #27282d; font-size: 13px; font-weight: 730; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.queue-task-title:hover { color: #b91621; }
.queue-task-context { min-width: 0; display: flex; align-items: center; gap: 7px; margin: 9px 0 0; color: #74757b; font-size: 11px; }
.queue-task-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-task-side { min-width: 190px; display: grid; gap: 11px; justify-items: end; }
.queue-task-meta { display: grid; gap: 5px; justify-items: end; color: #74757b; font-size: 10px; }
.queue-task-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.queue-task-meta .ui-icon { width: 13px; height: 13px; }
.queue-task-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.queue-task-actions button, .queue-task-actions a { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 1px solid #dedfe3; border-radius: 8px; background: #fff; color: #55565c; cursor: pointer; font-size: 10px; font-weight: 750; }
.queue-task-actions button:hover, .queue-task-actions a:hover { border-color: #e58b91; color: #a5141f; }
.queue-task-actions button:disabled { cursor: wait; opacity: .55; }
.queue-task-actions .queue-review-action { border-color: #ed9da2; background: var(--primary-soft); color: #a5141f; }
.queue-task-actions .queue-open-action { width: 30px; padding: 0; }
.queue-task-actions .ui-icon { width: 14px; height: 14px; }
.queue-active-timer { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 8px; background: #eef8f1; color: #2f7d4a; font-size: 10px; font-weight: 800; }
.queue-active-timer i { width: 7px; height: 7px; border-radius: 50%; background: #2fb55d; box-shadow: 0 0 0 3px #d9f2e1; }
.queue-group-empty { min-height: 74px; display: grid; place-items: center; color: #8a8b90; font-size: 11px; }

.task-calendar-view { display: grid; gap: 13px; }
.task-calendar-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-bottom: 1px solid #ececef; }
.task-calendar-header h2 { margin: 4px 0; font-size: 17px; }
.task-calendar-header span { color: #85868b; font-size: 11px; }
.task-calendar-nav { display: flex; align-items: center; gap: 7px; }
.task-calendar-nav .icon-button { width: 34px; height: 34px; border-radius: 8px; }
.task-calendar-nav .ui-icon { width: 16px; height: 16px; }
.task-calendar-nav .calendar-next .ui-icon { transform: rotate(180deg); }
.task-calendar-nav .calendar-today { min-height: 34px; border-radius: 8px; padding: 0 11px; font-size: 11px; }
.calendar-filter-empty { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 12px 14px 0; padding: 11px 12px; border: 1px solid #ead5db; border-radius: 10px; background: #fff8f8; }
.calendar-filter-empty > .ui-icon { width: 34px; height: 34px; padding: 8px; border-radius: 8px; background: #fde9eb; color: #b51b25; }
.calendar-filter-empty strong { display: block; color: #35363b; font-size: 12px; }
.calendar-filter-empty p { margin: 3px 0 0; color: #77787e; font-size: 11px; }
.calendar-filter-empty .button { min-height: 32px; padding: 0 10px; font-size: 11px; }
.task-calendar-scroll { overflow-x: auto; }
.task-calendar-weekdays, .task-calendar-grid { min-width: 820px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.task-calendar-weekdays { border-bottom: 1px solid #e7e8eb; background: #f7f7f8; }
.task-calendar-weekdays span { min-height: 31px; display: grid; place-items: center; color: #77787e; font-size: 11px; font-weight: 750; }
.task-calendar-grid { overflow: hidden; }
.task-calendar-day { min-width: 0; min-height: 118px; display: flex; flex-direction: column; gap: 6px; padding: 7px; border-right: 1px solid #e7e8eb; border-bottom: 1px solid #e7e8eb; background: #fff; }
.task-calendar-day:nth-child(7n) { border-right: 0; }
.task-calendar-day:nth-last-child(-n+7) { border-bottom: 0; }
.task-calendar-day.weekend { background: #fafafa; }
.task-calendar-day.outside { background: #f7f7f8; color: #a3a4a9; }
.task-calendar-day.today { background: #fff8f8; box-shadow: inset 0 0 0 1px #e9838a; }
.task-calendar-day > time { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #505157; font-size: 11px; font-weight: 750; }
.task-calendar-day.today > time { background: var(--primary); color: #fff; }
.task-calendar-events { min-width: 0; display: grid; gap: 4px; }
.calendar-task-event { min-width: 0; display: grid; gap: 1px; padding: 4px 5px; border-left: 2px solid #d45a61; border-radius: 4px; background: #fde9eb; color: #7e2329; }
.calendar-task-event:hover { filter: brightness(.97); }
.calendar-task-event span { font-size: 10px; font-weight: 800; }
.calendar-task-event strong { overflow: hidden; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.calendar-task-event.priority-low { border-left-color: #8e929a; background: #f0f1f3; color: #55565c; }
.calendar-task-event.priority-medium { border-left-color: #d48b25; background: #fff4e2; color: #80520d; }
.calendar-task-event.priority-high { border-left-color: #d84d45; background: #fde9eb; color: #84252a; }
.calendar-task-event.priority-critical { border-left-color: #aa1922; background: #fbd7da; color: #761018; }
.calendar-task-event.overdue { box-shadow: inset 0 0 0 1px rgba(190, 49, 45, .2); }
.calendar-more-tasks { color: #77787e; font-size: 10px; font-weight: 750; }
.task-calendar-month-empty { min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-top: 1px solid #ececef; background: #fafafa; color: #77787e; font-size: 11px; }
.task-calendar-month-empty .ui-icon { width: 14px; height: 14px; }
.task-calendar-unscheduled > header { min-height: 61px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-bottom: 1px solid #ececef; }
.task-calendar-unscheduled h2 { margin: 3px 0 0; font-size: 14px; }
.task-calendar-unscheduled > header b { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #f0f1f3; color: #606167; font-size: 11px; }
.unscheduled-task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.unscheduled-task-list a { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 57px minmax(0, 1fr) 26px; gap: 9px; align-items: center; padding: 9px 13px; border-top: 1px solid #ececef; }
.unscheduled-task-list a:nth-child(-n+2) { border-top: 0; }
.unscheduled-task-list a:nth-child(odd) { border-right: 1px solid #ececef; }
.unscheduled-task-list a:hover { background: #fafafa; }
.unscheduled-task-key { color: #85868b; font-size: 10px; font-weight: 750; }
.unscheduled-task-list a > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.unscheduled-task-list strong { overflow: hidden; color: #303136; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.unscheduled-task-list small { color: #85868b; font-size: 10px; }
.unscheduled-task-empty { min-height: 72px; display: grid; place-items: center; padding: 16px; color: #85868b; font-size: 11px; }

.api-state {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 32px 22px;
  color: #707177;
  text-align: center;
}
.api-state strong { color: #303136; font-size: 14px; }
.api-state p { max-width: 520px; margin: 0; font-size: 12px; line-height: 1.5; }
.api-state .button { margin-top: 7px; }
.api-state-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #f0f1f3; color: #65666c; }
.api-state-icon .ui-icon, .api-state-icon.ui-icon { width: 20px; height: 20px; }
.api-state-error .api-state-icon { background: #fde9eb; color: #b51b25; }
.api-state-auth .api-state-icon { background: #fff1dc; color: #986313; }
.api-state-empty .api-state-icon { background: #edf1f7; color: #526579; }
.api-spinner { width: 25px; height: 25px; border: 2px solid #e3e4e7; border-top-color: var(--primary); border-radius: 50%; animation: apiSpin .75s linear infinite; }
.kanban-board > .api-state-loading { min-height: 320px; }
@keyframes apiSpin { to { transform: rotate(360deg); } }

.work-api-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 28px));
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: #292a2f;
  color: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.work-api-toast.visible { opacity: 1; transform: none; }
.work-api-toast.error { background: #a61923; }
.work-api-toast.success { background: #246f3c; }

.api-auth-dialog { width: min(470px, calc(100vw - 30px)); }
.api-auth-form, .work-form-dialog form { padding: 25px; }
.api-form-error { margin: 2px 0 0; padding: 9px 10px; border: 1px solid #efc7ca; border-radius: 8px; background: #fff6f6; color: #a61923; font-size: 12px; line-height: 1.4; }
.work-form-dialog { width: min(620px, calc(100vw - 30px)); max-height: calc(100vh - 24px); overflow-y: auto; }
.task-create-dialog { width: min(1080px, calc(100vw - 30px)); background: #f6f6f8; }
.task-create-form > .dialog-heading { margin-bottom: 18px; }
.task-create-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr); gap: 16px; align-items: stretch; }
.task-create-main, .task-create-tech { min-width: 0; padding: 19px; border: 1px solid #dedfe3; border-radius: 16px; background: #fff; }
.task-create-main { display: flex; flex-direction: column; }
.task-create-tech { background: #fbfbfc; }
.task-create-section-heading { display: flex; align-items: center; min-height: 38px; margin-bottom: 17px; }
.task-create-section-heading > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; }
.task-create-section-heading > div > .ui-icon { width: 36px; height: 36px; padding: 9px; border-radius: 10px; background: #fde9eb; color: #b71e28; }
.task-create-section-heading div > div { display: grid; gap: 3px; }
.task-create-section-heading strong { color: #25262a; font-size: 14px; line-height: 1.2; }
.task-create-section-heading small { color: #7a7b81; font-size: 11px; font-weight: 500; line-height: 1.35; }
.task-create-main > label { margin-bottom: 16px; }
.task-create-description { flex: 1; }
.task-create-description textarea { min-height: 240px; height: 100%; line-height: 1.55; }
.task-create-tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.task-create-tech-grid .wide { grid-column: 1 / -1; }
.task-create-tech-grid textarea { resize: vertical; font: inherit; }
.task-form-field { min-width: 0; display: grid; align-content: start; gap: 7px; margin-bottom: 14px; }
.task-form-field > input { min-height: 50px; padding: 11px 13px; border: 1px solid #d9dade; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 700; }
.task-form-label { color: #515258; font-size: 11.5px; font-weight: 750; }
.task-picker, .task-date-picker, .task-people-picker { position: relative; min-width: 0; }
.task-picker-native { position: absolute; width: 1px; height: 1px; overflow: hidden; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.task-picker-trigger, .task-date-trigger, .task-people-trigger { width: 100%; min-height: 50px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 9px; align-items: center; padding: 7px 10px; border: 1px solid #d9dade; border-radius: 12px; outline: 0; background: #fff; color: #35363b; text-align: left; cursor: pointer; font: inherit; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.task-picker-trigger:hover:not(:disabled), .task-date-trigger:hover, .task-people-trigger:hover { border-color: #c4c5ca; background: #fdfdfd; }
.task-picker.open .task-picker-trigger, .task-date-picker.open .task-date-trigger, .task-people-picker.open .task-people-trigger { border-color: #e1262f; box-shadow: 0 0 0 3px rgba(225,38,47,.09); }
.task-picker-trigger:disabled { background: #f3f3f4; cursor: default; opacity: .78; }
.task-picker-trigger > .ui-icon:last-child, .task-date-trigger > .ui-icon:last-child, .task-people-trigger > .ui-icon:last-child { width: 16px; height: 16px; color: #8c8d92; transition: transform .15s ease; }
.task-picker.open .task-picker-trigger > .ui-icon:last-child, .task-date-picker.open .task-date-trigger > .ui-icon:last-child, .task-people-picker.open .task-people-trigger > .ui-icon:last-child { transform: rotate(180deg); }
.task-picker-selected, [data-task-picker-value], [data-task-people-value] { min-width: 0; display: flex; align-items: center; gap: 9px; }
.task-picker-copy, .task-picker-empty { min-width: 0; display: grid; gap: 2px; }
.task-picker-copy strong, .task-picker-empty strong { overflow: hidden; color: #34353a; font-size: 12.5px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.task-picker-copy small, .task-picker-empty small { overflow: hidden; color: #898a90; font-size: 10px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.task-picker-menu .task-picker-copy small { white-space: normal; }
.task-picker-trigger.placeholder .task-picker-copy strong { color: #7f8086; font-weight: 650; }
.task-picker-menu, .task-people-menu { position: absolute; z-index: 40; top: calc(100% + 7px); right: 0; left: 0; max-height: 280px; overflow: auto; padding: 7px; border: 1px solid #d9dade; border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: 0 18px 42px rgba(31,32,36,.18); backdrop-filter: blur(14px); }
.task-picker-priority .task-picker-menu { right: auto; width: min(300px, calc(100vw - 54px)); }
.task-picker-person .task-picker-menu { top: auto; right: 0; bottom: calc(100% + 7px); left: auto; width: min(300px, calc(100vw - 54px)); }
.task-picker-menu[hidden], .task-people-menu[hidden], .task-date-popover[hidden] { display: none; }
.task-picker-option { width: 100%; min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 8px; align-items: center; padding: 7px 9px; border: 0; border-radius: 10px; background: transparent; color: #393a3f; text-align: left; cursor: pointer; font: inherit; }
.task-picker-option > :first-child:not(.task-picker-copy) { grid-column: 1; }
.task-picker-option > .task-picker-copy { grid-column: 1; }
.task-picker-option:has(.task-priority-symbol, .task-person-avatar, .task-picker-leading, .task-column-dot) { grid-template-columns: 36px minmax(0, 1fr) 18px; }
.task-picker-option:has(.task-priority-symbol, .task-person-avatar, .task-picker-leading, .task-column-dot) > .task-picker-copy { grid-column: 2; }
.task-picker-option:hover:not(:disabled) { background: #f5f5f6; }
.task-picker-option.selected { background: #fff0f1; }
.task-picker-option:disabled { cursor: default; opacity: .5; }
.task-picker-check { grid-column: -2; width: 17px; height: 17px; color: #bd1f28; }
.task-priority-symbol, .task-picker-leading { width: 34px; height: 34px; display: grid; flex: none; place-items: center; padding: 8px; border-radius: 10px; }
.task-priority-symbol.ui-icon, .task-picker-leading.ui-icon { width: 34px; height: 34px; }
.task-priority-symbol.ui-icon svg, .task-picker-leading.ui-icon svg { width: 18px; height: 18px; }
.task-priority-symbol.low { background: #f0f1f3; color: #777981; }
.task-priority-symbol.medium { background: #fff2dc; color: #a66910; }
.task-priority-symbol.high { background: #fde8e9; color: #c3343c; }
.task-priority-symbol.critical { background: #e1262f; color: #fff; box-shadow: 0 5px 12px rgba(202,27,37,.2); }
.task-picker-leading.scope { background: #eaf3fc; color: #3978a8; }
.task-picker-leading.outside { background: #fff1dc; color: #a56a12; }
.task-person-avatar { width: 34px; height: 34px; display: inline-grid; flex: none; place-items: center; border-radius: 10px; background: #eef0f3; color: #656870; font-size: 10px; font-style: normal; font-weight: 850; }
.task-person-avatar.rose { background: #fde4e7; color: #ac2630; }.task-person-avatar.blue { background: #e6f1fb; color: #3976a5; }.task-person-avatar.violet { background: #f0e7fb; color: #8153a7; }.task-person-avatar.green { background: #e5f4ea; color: #2f7d4b; }.task-person-avatar.amber { background: #fff0d7; color: #96600e; }
.task-column-dot { width: 12px; height: 12px; justify-self: center; border-radius: 50%; background: var(--task-column-color); box-shadow: 0 0 0 5px color-mix(in srgb, var(--task-column-color) 14%, transparent); }
.task-date-trigger { grid-template-columns: 34px minmax(0, 1fr) 18px; }
.task-date-trigger-icon { width: 34px; height: 34px; display: grid; place-items: center; padding: 8px; border-radius: 10px; background: #fde9eb; color: #b71e28; }
.task-date-trigger-icon.ui-icon { width: 34px; height: 34px; }
.task-date-trigger-icon.ui-icon svg { width: 18px; height: 18px; }
.task-date-trigger [data-task-date-value] { min-width: 0; display: grid; gap: 2px; }
.task-date-trigger strong { overflow: hidden; color: #34353a; font-size: 12.5px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.task-date-trigger small { color: #898a90; font-size: 10px; font-weight: 550; }
.task-date-popover { position: absolute; z-index: 45; top: calc(100% + 7px); right: 0; width: min(334px, calc(100vw - 54px)); padding: 12px; border: 1px solid #d9dade; border-radius: 15px; background: rgba(255,255,255,.99); box-shadow: 0 20px 48px rgba(31,32,36,.2); backdrop-filter: blur(14px); }
.task-date-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.task-date-quick button { min-height: 34px; padding: 0 7px; border: 1px solid #e0e1e4; border-radius: 9px; background: #f8f8f9; color: #66676d; cursor: pointer; font: inherit; font-size: 10.5px; font-weight: 750; }
.task-date-quick button:hover, .task-date-quick button.selected { border-color: #e58d92; background: #fff0f1; color: #b51e27; }
.task-date-calendar-head { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 7px; margin-bottom: 7px; }
.task-date-calendar-head strong { color: #393a3f; font-size: 12.5px; text-align: center; }
.task-date-calendar-head button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid #e0e1e4; border-radius: 9px; background: #fff; color: #6d6e74; cursor: pointer; }
.task-date-calendar-head button:last-child .ui-icon { transform: rotate(180deg); }
.task-date-calendar-head .ui-icon { width: 16px; height: 16px; }
.task-date-weekdays, .task-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.task-date-weekdays span { height: 24px; display: grid; place-items: center; color: #929399; font-size: 9px; font-weight: 800; }
.task-date-grid button { height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #4d4e54; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 750; }
.task-date-grid button:hover:not(.selected) { background: #f9e6e7; color: #ac1d26; }
.task-date-grid button.outside { color: #b5b6ba; }
.task-date-grid button.today span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #e25d64; border-radius: 8px; color: #b51e27; }
.task-date-grid button.selected { background: #e1262f; color: #fff; box-shadow: 0 5px 12px rgba(202,27,37,.2); }
.task-date-grid button.selected span { border-color: transparent; color: inherit; }
.task-date-popover-footer { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #e9e9ec; color: #85868b; font-size: 9.5px; }
.task-date-popover-footer strong { color: #44454a; }
.task-date-popover-footer button { padding: 6px 8px; border: 0; border-radius: 7px; background: #f1f1f3; color: #6d6e74; cursor: pointer; font: inherit; font-size: 10px; font-weight: 750; }
.task-people-field { position: relative; }
.task-people-trigger { grid-template-columns: minmax(0, 1fr) 18px; }
.task-people-menu { top: auto; bottom: calc(100% + 7px); max-height: 330px; }
.task-people-menu-heading { display: grid; gap: 2px; padding: 7px 8px 10px; border-bottom: 1px solid #ededf0; }
.task-people-menu-heading strong { color: #33343a; font-size: 11.5px; }.task-people-menu-heading small { color: #8b8c91; font-size: 9.5px; }
.task-people-options { display: grid; gap: 3px; padding-top: 5px; }
dialog label.task-people-option { min-height: 48px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 9px; align-items: center; margin: 0; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
dialog label.task-people-option:hover { background: #f5f5f6; }.task-people-option.selected { background: #fff0f1; }
.task-people-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.task-people-option > span:nth-of-type(2) { min-width: 0; display: grid; gap: 2px; }
.task-people-option strong, .task-people-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-people-option strong { color: #3c3d42; font-size: 11.5px; }.task-people-option small { color: #898a90; font-size: 9.5px; font-weight: 550; }
.task-people-option > i { width: 18px; height: 18px; padding: 3px; border: 1px solid #d9dade; border-radius: 6px; color: transparent; }
.task-people-option.selected > i { border-color: #e1262f; background: #e1262f; color: #fff; }
.task-selected-avatar-stack { display: flex; padding-left: 8px; }.task-selected-avatar-stack .task-person-avatar { margin-left: -8px; border: 2px solid #fff; }
.task-create-label-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-create-label-line em { color: #929399; font-size: 10px; font-style: normal; font-weight: 600; }
.task-create-files { margin-top: 1px; padding-top: 16px; border-top: 1px solid #e5e5e8; }
.task-create-files-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.task-create-files-heading > div { display: grid; gap: 3px; }
.task-create-files-heading strong { color: #34353a; font-size: 12px; }
.task-create-files-heading small { color: #85868b; font-size: 10px; line-height: 1.35; }
.task-create-files-heading > span { flex: none; padding: 4px 7px; border-radius: 7px; background: #f0f0f2; color: #77787e; font-size: 10px; font-weight: 700; }
dialog label.task-create-dropzone { min-height: 86px; display: flex; align-items: center; justify-content: center; gap: 11px; margin: 0; padding: 15px; border: 1px dashed #c8c9ce; border-radius: 12px; background: #fafafb; color: #57585e; text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
dialog label.task-create-dropzone:hover, dialog label.task-create-dropzone.dragging { border-color: #df4a53; background: #fff6f6; box-shadow: 0 0 0 3px rgba(225, 38, 47, .07); }
.task-create-dropzone input { display: none; }
.task-create-dropzone-icon { width: 38px; height: 38px; display: grid; flex: none; place-items: center; border-radius: 10px; background: #fde9eb; color: #b71e28; }
.task-create-dropzone-icon .ui-icon, .task-create-dropzone-icon.ui-icon { width: 19px; height: 19px; }
.task-create-dropzone > span:last-child { display: block; color: #6e6f74; font-size: 11px; font-weight: 500; line-height: 1.35; }
.task-create-dropzone > span:last-child strong { color: #a91822; font-size: 12px; }
.task-create-dropzone > span:last-child small { display: block; margin-top: 4px; color: #8b8c91; font-size: 10px; }
.task-create-file-list { display: grid; gap: 6px; margin-top: 9px; }
.task-edit-existing-files { display: grid; gap: 6px; margin-bottom: 9px; }
.task-edit-existing-files[hidden] { display: none; }
.task-create-file-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 9px; align-items: center; padding: 7px 8px; border: 1px solid #e1e2e5; border-radius: 10px; background: #fff; }
.task-create-file-row.existing { background: #f8faf9; }
.task-edit-file-preview { width: 34px; height: 32px; display: block; border-radius: 8px; object-fit: cover; background: #f0f0f2; }
.task-edit-file-saved { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: #e8f6ed; color: #2e8a4b; }
.task-edit-file-saved .ui-icon, .task-edit-file-saved.ui-icon { width: 16px; height: 16px; }
.task-edit-project-context { margin-top: 0; }
.task-create-file-type { width: 34px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #f0f0f2; color: #65666b; font-size: 9px; font-weight: 800; }
.task-create-file-row > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.task-create-file-row strong { overflow: hidden; color: #393a3f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-create-file-row small { color: #898a90; font-size: 9px; }
.task-create-file-row button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #8d8e93; cursor: pointer; }
.task-create-file-row button:hover { background: #fde9eb; color: #a61923; }
.task-create-file-row button .ui-icon { width: 14px; height: 14px; }
.task-rework-dialog { width: min(560px, calc(100vw - 30px)); }
.task-rework-field { display: grid; gap: 8px; margin-bottom: 12px; color: #4f5056; font-size: 12px; font-weight: 650; }
.task-rework-field textarea { width: 100%; resize: vertical; padding: 12px; border: 1px solid #d0d2d7; border-radius: 10px; outline: 0; background: #fff; color: #2f3035; font: inherit; font-size: 13px; line-height: 1.5; }
.task-rework-field textarea:focus { border-color: #e1262f; box-shadow: 0 0 0 3px rgba(225, 38, 47, .1); }
.work-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.work-form-grid .wide { grid-column: 1 / -1; }
.work-form-grid textarea { resize: vertical; font: inherit; }
.task-create-project-field select:disabled { opacity: 1; background: #f4f4f5; color: #34353a; cursor: default; }
.task-create-context { display: flex; align-items: center; gap: 10px; margin: -2px 0 15px; padding: 10px 11px; border: 1px solid #e2e3e6; border-radius: 10px; background: #f8f8f9; }
.task-create-context-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #fde9eb; color: #b71e28; }
.task-create-context-icon .ui-icon, .task-create-context-icon.ui-icon { width: 18px; height: 18px; }
.task-create-context > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; }
.task-create-context small { color: #77787d; font-size: 11px; font-weight: 650; }
.task-create-context strong { overflow: hidden; color: #313237; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.task-create-context span:not(.task-create-context-icon) { grid-column: 1 / -1; color: #77787d; font-size: 11px; line-height: 1.4; }
.project-client-field { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.project-client-field legend { margin-bottom: 7px; padding: 0; color: #515154; font-size: 12px; font-weight: 650; }
.project-client-field > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.project-client-field .button { min-height: 42px; white-space: nowrap; }
.api-assignee-field { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.api-assignee-field legend { margin-bottom: 7px; padding: 0; color: #515154; font-size: 12px; font-weight: 650; }
.api-assignee-list { min-height: 42px; display: flex; flex-wrap: wrap; gap: 7px; padding: 9px; border: 1px solid rgba(0, 0, 0, .13); border-radius: 11px; background: rgba(255, 255, 255, .92); color: #7a7b81; font-size: 12px; }
.api-assignee-list label { display: inline-flex; grid-template-columns: none; align-items: center; gap: 6px; margin: 0; padding: 5px 8px; border: 1px solid #dcdde1; border-radius: 8px; background: #fff; cursor: pointer; }
.api-assignee-list input { width: auto; padding: 0; }
.api-muted-note { color: #85868b; }

.project-settings-dialog { width: min(650px, calc(100vw - 30px)); }
.project-settings-context { display: flex; align-items: center; gap: 11px; margin: -7px 0 18px; padding: 11px; border: 1px solid #e1e2e6; border-radius: 11px; background: #f7f7f8; }
.project-settings-context > div { display: grid; gap: 4px; }
.project-settings-context strong { color: #2d2e33; font-size: 12px; }
.project-settings-context small { color: #7b7c82; font-size: 11px; }
.project-archive-warning { display: flex; gap: 10px; align-items: flex-start; margin-top: 3px; padding: 11px 12px; border: 1px solid #efc7ca; border-radius: 9px; background: #fff6f6; color: #78262c; }
.project-archive-warning > .ui-icon { width: 19px; height: 19px; flex: none; }
.project-archive-warning p { margin: 0; font-size: 11px; line-height: 1.45; }
.project-archive-warning strong { display: block; margin-bottom: 2px; color: #a61923; font-size: 12px; }

.board-settings-dialog { width: min(920px, calc(100vw - 30px)); }
.board-settings-body { padding: 25px; }
.board-project-settings { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -6px 0 20px; padding: 12px; border: 1px solid #e0e1e5; border-radius: 12px; background: #f7f7f8; }
.board-project-settings > div { display: flex; align-items: center; gap: 10px; }
.board-project-settings p { display: grid; gap: 4px; margin: 0; }
.board-project-settings strong { color: #2e2f34; font-size: 12px; }
.board-project-settings small { color: #7b7c82; font-size: 11px; }
.board-project-settings .button { gap: 6px; }
.board-project-settings .ui-icon { width: 16px; height: 16px; }
.board-settings-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.board-settings-heading h3 { margin-top: 4px; font-size: 15px; }
.board-settings-heading > span { max-width: 360px; color: #7d7e84; font-size: 11px; line-height: 1.4; text-align: right; }
.project-members-settings { display: grid; gap: 7px; max-height: 250px; margin-bottom: 21px; overflow-y: auto; padding: 2px; }
.project-member-row { min-width: 0; display: grid; grid-template-columns: 38px minmax(150px, 1fr) auto minmax(170px, auto) 18px; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid #e1e2e6; border-radius: 10px; background: #fff; color: #3d3e44; cursor: pointer; text-align: left; font: inherit; }
.project-member-row:hover { border-color: #efb6ba; background: #fffafa; }
.project-member-row > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #fde9eb; color: #a61923; font-size: 11px; font-style: normal; font-weight: 800; }
.project-member-row > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.project-member-row strong { overflow: hidden; color: #303136; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.project-member-row small { overflow: hidden; color: #85868b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.project-member-row > b { padding: 5px 7px; border-radius: 7px; background: #f0f1f3; color: #5d5e64; font-size: 10px; }
.project-member-row > em { color: #6f7076; font-size: 11px; font-style: normal; text-align: right; }
.project-member-row > .ui-icon { width: 17px; height: 17px; color: #8b8c92; }
.dialog-actions .dialog-action-spacer { flex: 1; }
.button.danger { border: 1px solid #efc7ca; background: #fff6f6; color: #a61923; white-space: nowrap; }
.button.danger:hover { border-color: #e22631; background: #e22631; color: #fff; }
.column-settings-list { display: grid; gap: 7px; max-height: min(430px, 48vh); overflow-y: auto; padding: 2px; }
.column-settings-row { display: grid; grid-template-columns: 28px minmax(180px, 1.4fr) minmax(130px, .8fr) 42px 60px auto minmax(45px, auto); gap: 8px; align-items: center; padding: 9px; border: 1px solid #e1e2e6; border-radius: 10px; background: #fff; }
.column-settings-order { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #f0f1f3; color: #74757b; font-size: 11px; font-weight: 800; }
.column-settings-main { min-width: 0; display: grid; gap: 6px; }
.column-settings-main > input, .column-settings-row > select, .column-settings-archive select, .column-add-form input, .column-add-form select { min-width: 0; height: 35px; padding: 0 9px; border: 1px solid #d3d4d8; border-radius: 8px; outline: 0; background: #fff; color: #36373c; font: inherit; font-size: 12px; }
.column-settings-main > input:focus, .column-settings-row > select:focus, .column-settings-archive select:focus, .column-add-form input:focus, .column-add-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225,38,47,.1); }
.column-settings-main > div { display: flex; align-items: center; gap: 10px; color: #7e7f85; font-size: 11px; }
.column-settings-main > div span { display: inline-flex; align-items: center; gap: 5px; }
.column-settings-main > div i { width: 7px; height: 7px; border-radius: 50%; }
.column-settings-row > input[type="color"] { width: 38px; height: 35px; padding: 4px; border: 1px solid #d3d4d8; border-radius: 8px; background: #fff; cursor: pointer; }
.column-settings-move { display: flex; gap: 3px; }
.column-settings-move button, .column-settings-archive > button { width: 28px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid #d9dade; border-radius: 7px; background: #fff; color: #686970; cursor: pointer; }
.column-settings-move button:disabled, .column-settings-archive > button:disabled { opacity: .35; cursor: default; }
.column-settings-move .ui-icon, .column-settings-archive .ui-icon { width: 14px; height: 14px; }
.column-settings-save { min-height: 33px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 1px solid #d9dade; border-radius: 8px; background: #fff; color: #48494f; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }
.column-settings-save:hover { border-color: #efb6ba; background: #fff8f8; color: #a61923; }
.column-settings-save .ui-icon { width: 14px; height: 14px; }
.column-settings-archive { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.column-settings-archive select { width: 150px; }
.column-settings-archive > button:hover { border-color: #efc7ca; background: #fff2f3; color: #a61923; }
.column-add-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr) 42px auto; gap: 8px; align-items: center; margin-top: 11px; padding: 11px; border: 1px dashed #d4d5d9; border-radius: 10px; background: #fafafa; }
.column-add-form input[type="color"] { width: 38px; padding: 4px; }
.column-add-form .button { min-height: 35px; gap: 6px; white-space: nowrap; }
.column-add-form .ui-icon { width: 15px; height: 15px; }

.checklist-add-toggle { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; }
.checklist-add-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
.checklist-add-form input { min-width: 0; padding: 9px 10px; border: 1px solid #d2d3d7; border-radius: 8px; outline: 0; font: inherit; font-size: 12px; }
.checklist-add-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(225, 38, 47, .12); }
.checklist-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.checklist-row label { min-width: 0; flex: 1; border-bottom: 0; }
.checklist-delete { width: 29px; height: 29px; display: grid; flex: none; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #9a9ba0; cursor: pointer; }
.checklist-delete:hover { background: #fde9eb; color: #a5141f; }
.checklist-delete .ui-icon { width: 15px; height: 15px; }
.task-section-empty { padding: 18px 0; color: #85868b; font-size: 12px; }
.api-inline-note { display: flex; gap: 9px; padding: 11px 12px; border: 1px solid #e5d5b9; border-radius: 9px; background: #fffaf1; color: #735d3b; }
.api-inline-note > .ui-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.api-inline-note strong { display: block; color: #54442d; font-size: 12px; }
.api-inline-note p { margin: 3px 0 0; font-size: 11px; line-height: 1.45; }
.comment-stream .api-inline-note + article { margin-top: 2px; }
.task-column-select { max-width: 170px; min-height: 32px; padding: 0 8px; border: 1px solid #efb6ba; border-radius: 8px; background: var(--primary-soft); color: #a5141f; font: inherit; font-size: 12px; font-weight: 700; }
.task-current-status { color: #a5141f; font-size: 12px; font-weight: 700; }
.active-task-timer #taskTimerLabel:not(.live-dot) { color: #77787e; }

@media (max-width: 900px) {
  .task-create-dialog { width: min(720px, calc(100vw - 24px)); }
  .task-create-layout { grid-template-columns: 1fr; }
  .task-create-description textarea { min-height: 190px; }
}

@media (max-width: 760px) {
  .work-form-grid { grid-template-columns: 1fr; }
  .work-form-grid .wide { grid-column: auto; }
  .task-create-dialog { width: calc(100vw - 16px); }
  .task-create-dialog form { padding: 18px 14px; }
  .task-create-main, .task-create-tech { padding: 15px; }
  .task-create-tech-grid { grid-template-columns: 1fr; }
  .task-create-tech-grid .wide { grid-column: auto; }
  dialog label.task-create-dropzone { align-items: flex-start; justify-content: flex-start; }
  .kanban-board.unified-task-queue { grid-template-columns: 1fr; }
  .board-viewbar-primary .board-search { max-width: none; flex-basis: 100%; }
  .board-viewbar-primary .task-scope-switch { margin-left: 0; }
  .project-picker { width: 100%; }
  .board-project-picker { width: 100%; max-width: none; }
  .board-project-picker strong { max-width: none; flex: 1; text-align: left; }
  .project-picker-popover { position: fixed; top: 78px; right: 12px; left: 12px; width: auto; max-height: calc(100vh - 92px); }
  .project-picker-list { max-height: calc(100vh - 220px); grid-template-columns: 1fr; }
  .board-entity-filter { min-width: calc(50% - 5px); flex: 1; }
  .board-entity-filter select { min-width: 0; max-width: none; flex: 1; }
  .checklist-add-form { grid-template-columns: 1fr; }
  .work-api-toast { right: 14px; bottom: 14px; }
  .board-settings-body { padding: 19px 15px; }
  .board-project-settings, .board-settings-heading { align-items: stretch; flex-direction: column; }
  .board-project-settings .button { width: 100%; }
  .board-settings-heading > span { text-align: left; }
  .project-member-row { grid-template-columns: 38px minmax(0, 1fr) 18px; }
  .project-member-row > b, .project-member-row > em { grid-column: 2; justify-self: start; text-align: left; }
  .project-member-row > .ui-icon { grid-column: 3; grid-row: 1 / span 3; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .dialog-action-spacer { display: none; }
  .dialog-actions .button.danger { flex: 1 0 100%; justify-content: center; margin-bottom: 4px; }
  #projectMemberDialog form { padding-bottom: 0; }
  #projectMemberDialog .dialog-actions { position: sticky; z-index: 2; bottom: 0; margin-right: -25px; margin-left: -25px; padding: 12px 25px 18px; border-top: 1px solid #e4e4e7; background: #fff; box-shadow: 0 -8px 18px rgba(0, 0, 0, .04); }
  .column-settings-list { overflow-x: auto; }
  .column-settings-row { min-width: 790px; }
  .column-add-form { grid-template-columns: 1fr; }
  .column-add-form input[type="color"] { width: 100%; }
  .view-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .view-tabs button { justify-content: center; padding: 0 7px; }
  .task-list-head { display: none; }
  .task-list-table, .task-list-table.multi-project { min-width: 0; }
  .task-list-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 11px 15px; padding: 12px; }
  .task-list-table.multi-project .task-list-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .task-list-row > [role="cell"] { min-width: 0; display: grid; align-content: start; gap: 4px; }
  .task-list-row > [role="cell"]::before { color: #909197; font-size: 10px; font-weight: 750; content: attr(data-label); }
  .task-list-row > .task-list-status { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
  .task-list-title { grid-column: 1 / -1; order: -1; }
  .task-list-title::before { display: none; }
  .task-list-key { grid-column: 1 / -1; order: -2; }
  .task-list-key::before { display: none; }
  .task-list-title a { font-size: 12px; white-space: normal; }
  .queue-task-card { grid-template-columns: 1fr; gap: 12px; }
  .queue-task-side { min-width: 0; justify-items: stretch; }
  .queue-task-meta { justify-items: start; }
  .queue-task-actions { justify-content: flex-start; flex-wrap: wrap; }
  .task-list-date { display: grid; }
  .task-calendar-header { align-items: flex-start; flex-direction: column; }
  .task-calendar-nav { align-self: stretch; display: grid; grid-template-columns: 34px 1fr 34px; }
  .calendar-filter-empty { grid-template-columns: 30px minmax(0, 1fr); }
  .calendar-filter-empty .button { grid-column: 2; justify-self: start; }
  .task-calendar-weekdays, .task-calendar-grid { min-width: 780px; }
  .unscheduled-task-list { grid-template-columns: 1fr; }
  .unscheduled-task-list a:nth-child(2) { border-top: 1px solid #ececef; }
  .unscheduled-task-list a:nth-child(odd) { border-right: 0; }
  .task-activity-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .task-activity-heading time { align-self: flex-start; }
  .task-subtask-row { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 3px 9px; padding: 10px 0; }
  .task-subtask-toggle, .task-subtask-status-mark { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .task-subtask-key { grid-column: 2; grid-row: 1; }
  .task-subtask-copy { grid-column: 2; grid-row: 2; }
  .task-subtask-state { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .task-subtask-add-form { grid-template-columns: 1fr; }
  .task-subtask-add-form .button { width: 100%; }
  .task-attachment-upload { grid-template-columns: 1fr; }.task-attachment-upload .button { width: 100%; }.task-attachment-upload > span { white-space: normal; }
  .task-attachment { grid-template-columns: 38px minmax(0, 1fr); padding: 9px 0; }.task-attachment-type { width: 38px; height: 38px; }.task-attachment-actions { grid-column: 2; }
}

/* Project detail */
.project-name-link:hover { color: #b91621; }
.context-project-link { min-width: 0; display: inline-flex; align-items: center; gap: 7px; color: #33343a; }
.context-project-link:hover { color: #b91621; }
.project-detail-page { max-width: none; padding-right: 30px; padding-left: 30px; }
.project-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.project-detail-title { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 15px; align-items: start; }
.project-detail-logo { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 13px; background: #df202b; color: #fff; font-size: 20px; font-weight: 800; }
.project-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: #686970; font-size: 12px; font-weight: 650; }
.project-detail-meta > span:not(.project-status) { padding: 4px 8px; border-radius: 6px; background: #f0f1f3; }
.project-detail-title h1 { max-width: 920px; margin: 8px 0 7px; font-size: clamp(30px, 3vw, 42px); line-height: 1.08; }
.project-detail-title p { max-width: 850px; margin: 0; color: #606167; font-size: 14px; line-height: 1.5; }
.project-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.project-detail-actions .button { min-height: 40px; white-space: nowrap; }
.project-detail-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border: 1px solid #dedfe3; border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.project-detail-facts > div { min-width: 0; display: grid; align-content: center; gap: 6px; min-height: 68px; padding: 12px 14px; border-left: 1px solid #ececef; }
.project-detail-facts > div:first-child { border-left: 0; }
.project-detail-facts span { color: #77787e; font-size: 12px; font-weight: 650; }
.project-detail-facts strong, .project-detail-facts a { overflow: hidden; color: #303136; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-facts a:hover { color: #b91621; }
.project-detail-risk-text { color: #b8322c !important; }
.project-detail-kpis { display: grid; grid-template-columns: minmax(220px, 1.35fr) repeat(4, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.project-detail-kpi { min-height: 112px; display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 4px 10px; align-content: center; padding: 14px; border: 1px solid #dedfe3; border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.project-detail-kpi > .ui-icon { grid-row: 1 / 3; width: 38px; height: 38px; padding: 9px; border-radius: 9px; background: #f0f1f3; color: #5f6066; }
.project-detail-kpi > div { min-width: 0; display: grid; gap: 3px; }
.project-detail-kpi small { color: #6f7076; font-size: 12px; font-weight: 650; }
.project-detail-kpi strong { color: #292a2f; font-size: 21px; line-height: 1.1; }
.project-detail-kpi-note { grid-column: 2; color: #85868b; font-size: 12px; }
.project-detail-kpi-bar { grid-column: 1 / -1; height: 5px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #ececef; }
.project-detail-kpi-bar i { display: block; height: 100%; border-radius: inherit; background: #df202b; }
.project-detail-kpi.danger { border-color: #efc3c6; background: #fff8f8; }
.project-detail-kpi.danger > .ui-icon { background: #fde7e9; color: #b51c26; }
.project-detail-kpi.danger strong { color: #b21d27; }
.project-detail-kpi.warning > .ui-icon { background: #fff1dc; color: #986313; }
.project-detail-kpi.unavailable > .ui-icon { background: #edf1f7; color: #5e7085; }
.project-detail-kpi.unavailable strong { font-size: 16px; }
.project-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); gap: 14px; align-items: start; }
.project-detail-main, .project-detail-aside { display: grid; gap: 14px; }
.project-detail-panel { overflow: hidden; border: 1px solid #dedfe3; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.project-detail-panel > header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid #ececef; }
.project-detail-panel > header h2 { margin: 3px 0 0; font-size: 17px; }
.project-detail-panel > header > span, .project-detail-panel > header > b { color: #77787e; font-size: 12px; font-weight: 700; }
.project-detail-status-list { display: grid; }
.project-detail-status-list article { min-height: 48px; display: grid; grid-template-columns: 10px minmax(130px, .8fr) 38px minmax(100px, 1.2fr); gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid #ececef; }
.project-detail-status-list article:first-child { border-top: 0; }
.project-detail-status-dot { width: 8px; height: 8px; border-radius: 50%; }
.project-detail-status-list strong { color: #3d3e43; font-size: 12px; }
.project-detail-status-list article > span:nth-child(3) { color: #303136; font-size: 12px; font-weight: 750; text-align: right; }
.project-detail-status-list article > i { height: 7px; overflow: hidden; border-radius: 99px; background: #ececef; }
.project-detail-status-list article > i b { display: block; height: 100%; border-radius: inherit; background: #df202b; }
.project-detail-deadline-alert { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; margin: 12px 14px 0; padding: 11px 12px; border: 1px solid #efc3c6; border-radius: 9px; background: #fff7f7; }
.project-detail-deadline-alert > .ui-icon { width: 34px; height: 34px; padding: 8px; border-radius: 8px; background: #fde7e9; color: #b51c26; }
.project-detail-deadline-alert strong { color: #9d1d26; font-size: 12px; }
.project-detail-deadline-alert p { margin: 3px 0 0; color: #6e5b5d; font-size: 12px; }
.project-detail-deadline-list { display: grid; }
.project-detail-deadline-list > a { min-height: 58px; display: grid; grid-template-columns: 64px minmax(0, 1fr) 110px 110px 28px; gap: 10px; align-items: center; padding: 9px 15px; border-top: 1px solid #ececef; }
.project-detail-deadline-list > a:first-child { border-top: 0; }
.project-detail-deadline-list > a:hover { background: #fafafa; }
.project-detail-deadline-list > a.overdue { background: #fff9f9; }
.project-detail-deadline-key { color: #77787e; font-size: 12px; font-weight: 750; }
.project-detail-deadline-list > a > strong { overflow: hidden; color: #303136; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-deadline-list > a > span:nth-child(3) { color: #66676d; font-size: 12px; }
.project-detail-deadline-list time { display: grid; gap: 2px; color: #3f4045; font-size: 12px; font-weight: 700; }
.project-detail-deadline-list time small { color: #8a8b90; font-size: 12px; font-weight: 500; }
.project-detail-deadline-list > a.overdue time { color: #b8322c; }
.project-detail-unassigned { color: #929399; font-size: 12px; text-align: right; }
.project-detail-activity-list { display: grid; }
.project-detail-activity { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 12px 16px; border-top: 1px solid #ececef; }
.project-detail-activity:first-child { border-top: 0; }
.project-detail-activity-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #f2f3f5; color: #616268; }
.project-detail-activity-icon .ui-icon { width: 18px; height: 18px; }
.project-detail-activity > div { min-width: 0; display: grid; gap: 4px; }
.project-detail-activity > div > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.project-detail-activity strong { color: #303136; font-size: 12px; }
.project-detail-activity time { flex: none; color: #898a90; font-size: 12px; }
.project-detail-activity p { margin: 0; color: #5d5e64; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.project-detail-activity small { color: #85868b; font-size: 12px; }
.project-detail-activity.activity-create .project-detail-activity-icon { background: #eaf6ed; color: #287741; }
.project-detail-activity.activity-update .project-detail-activity-icon { background: #edf4fb; color: #3e6c9f; }
.project-detail-activity.activity-board .project-detail-activity-icon { background: #fff6e7; color: #946114; }
.project-detail-activity.activity-task .project-detail-activity-icon { background: #fdeef0; color: #a51b25; }
.project-detail-activity.activity-timer .project-detail-activity-icon { background: #edf8fa; color: #277487; }
.project-collaboration-panel { overflow: visible; }
.project-collaboration-header { align-items: center !important; }
.project-collaboration-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: #f0f1f3; }
.project-collaboration-tabs button { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #66676d; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; white-space: nowrap; }
.project-collaboration-tabs button span { min-width: 20px; padding: 2px 5px; border-radius: 99px; background: #e2e3e6; color: #696a70; font-size: 9px; text-align: center; }
.project-collaboration-tabs button.active { background: #fff; color: #a61922; box-shadow: 0 1px 5px rgba(31,32,36,.1); }
.project-collaboration-tabs button.active span { background: #fde8ea; color: #aa1721; }
.project-collaboration-pane[hidden], .project-discussion-composer[hidden] { display: none; }
.project-discussion-stream { max-height: 560px; overflow-y: auto; }
.project-discussion-message { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 15px 16px; border-top: 1px solid #ececef; }
.project-discussion-message:first-child { border-top: 0; }
.project-discussion-message > .avatar { width: 38px; height: 38px; font-size: 11px; }
.project-discussion-message > div { min-width: 0; display: grid; gap: 7px; }
.project-discussion-message header { min-height: 0; display: flex; align-items: baseline; justify-content: flex-start; gap: 9px; padding: 0; border: 0; }
.project-discussion-message header strong { color: #303136; font-size: 12px; }
.project-discussion-message header time { color: #929399; font-size: 10px; }
.project-discussion-message p { margin: 0; color: #4f5056; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.project-discussion-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.project-discussion-image { min-width: 0; overflow: hidden; border: 1px solid #dedfe3; border-radius: 10px; background: #f5f5f7; }
.project-discussion-image:hover { border-color: #e7a5aa; }
.project-discussion-image img { width: 100%; aspect-ratio: 16 / 7; display: block; object-fit: cover; background: #ececef; }
.project-discussion-image > span { display: grid; gap: 3px; padding: 9px 10px; }
.project-discussion-image strong, .project-discussion-file strong { overflow: hidden; color: #3c3d42; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.project-discussion-image small, .project-discussion-file small { color: #82838a; font-size: 10px; }
.project-discussion-file { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 9px; align-items: center; padding: 9px 10px; border: 1px solid #e0e1e4; border-radius: 10px; background: #fafafa; }
.project-discussion-file > span:last-child { min-width: 0; display: grid; gap: 3px; }
.project-discussion-file-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #fdebed; color: #b21c26; }
.project-discussion-file-icon .ui-icon { width: 17px; height: 17px; }
.project-discussion-composer { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 14px 16px 16px; border-top: 1px solid #dedfe3; background: #fafafa; }
.project-discussion-composer > .avatar { width: 38px; height: 38px; font-size: 11px; }
.project-discussion-composer > div { min-width: 0; display: grid; gap: 9px; }
.project-discussion-composer textarea { width: 100%; min-height: 86px; resize: vertical; padding: 11px 12px; border: 1px solid #d6d7da; border-radius: 10px; outline: 0; background: #fff; color: #303136; font: inherit; font-size: 12px; line-height: 1.5; }
.project-discussion-composer textarea:focus { border-color: #e7646c; box-shadow: 0 0 0 3px rgba(225,38,47,.1); }
.project-discussion-composer footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-discussion-composer footer > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.project-discussion-composer footer small { display: inline-flex; align-items: center; gap: 4px; color: #85868b; font-size: 9.5px; }
.project-discussion-composer footer small .ui-icon { width: 13px; height: 13px; color: #a97922; }
.project-discussion-attach { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #d7d8dc; border-radius: 8px; background: #fff; color: #56575d; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; }
.project-discussion-attach:hover { border-color: #e39ba0; color: #a61922; }
.project-discussion-attach input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.project-discussion-attach .ui-icon { width: 15px; height: 15px; }
.project-discussion-composer .button { min-height: 36px; }
.project-discussion-pending-list { display: flex; flex-wrap: wrap; gap: 7px; }
.project-discussion-pending-list[hidden] { display: none; }
.project-discussion-pending { min-width: 0; max-width: 310px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 26px; gap: 8px; align-items: center; padding: 6px 7px; border: 1px solid #dedfe3; border-radius: 9px; background: #fff; }
.project-discussion-pending > img, .project-discussion-pending > .ui-icon { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; background: #f0f1f3; }
.project-discussion-pending > .ui-icon { padding: 8px; color: #6d6e74; }
.project-discussion-pending > span { min-width: 0; display: grid; gap: 2px; }
.project-discussion-pending strong { overflow: hidden; color: #404146; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.project-discussion-pending small { color: #85868b; font-size: 9px; }
.project-discussion-pending button { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #85868b; cursor: pointer; }
.project-discussion-pending button:hover { background: #fdebed; color: #a61922; }
.project-discussion-pending button .ui-icon { width: 14px; height: 14px; }
.project-detail-empty { min-height: 92px; display: grid; place-items: center; padding: 18px; color: #85868b; font-size: 12px; text-align: center; }
.project-detail-context-list { margin: 0; }
.project-detail-context-list > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 13px 15px; border-top: 1px solid #ececef; }
.project-detail-context-list > div:first-child { border-top: 0; }
.project-detail-context-list dt { color: #77787e; font-size: 12px; }
.project-detail-context-list dd { min-width: 0; display: grid; gap: 6px; margin: 0; color: #303136; font-size: 12px; font-weight: 650; }
.project-detail-context-list dd a:hover { color: #b91621; }
.project-detail-service, .project-detail-contract { display: grid; gap: 2px; padding: 7px 8px; border-radius: 7px; background: #f5f5f7; }
.project-detail-service small, .project-detail-contract small { color: #77787e; font-size: 12px; font-weight: 500; }
.project-detail-team-list { display: grid; }
.project-detail-team-list article { min-height: 62px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 15px; border-top: 1px solid #ececef; }
.project-detail-team-list article:first-child { border-top: 0; }
.project-detail-team-list .avatar { width: 36px; height: 36px; font-size: 12px; }
.project-detail-team-list article > div { min-width: 0; display: grid; gap: 3px; }
.project-detail-team-list strong { overflow: hidden; color: #303136; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.project-detail-team-list span { color: #77787e; font-size: 12px; }
.project-detail-team-list b { padding: 4px 6px; border-radius: 6px; background: #f0f1f3; color: #65666c; font-size: 12px; white-space: nowrap; }

@media (max-width: 1100px) {
  .project-detail-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-detail-layout { grid-template-columns: 1fr; }
  .project-detail-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .project-detail-page { padding-right: 14px; padding-left: 14px; }
  .project-detail-heading { flex-direction: column; }
  .project-detail-title { grid-template-columns: 46px minmax(0, 1fr); gap: 11px; }
  .project-detail-logo { width: 46px; height: 46px; border-radius: 10px; font-size: 16px; }
  .project-detail-title h1 { margin-top: 7px; font-size: 30px; }
  .project-detail-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .project-detail-actions .button { width: 100%; }
  .project-detail-actions .button.primary { grid-column: 1 / -1; }
  .project-detail-facts { grid-template-columns: 1fr 1fr; }
  .project-detail-facts > div { border-top: 1px solid #ececef; }
  .project-detail-facts > div:nth-child(-n+2) { border-top: 0; }
  .project-detail-facts > div:nth-child(odd) { border-left: 0; }
  .project-detail-kpis { grid-template-columns: 1fr 1fr; }
  .project-detail-aside { grid-template-columns: 1fr; }
  .project-detail-panel > header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .project-collaboration-tabs { width: 100%; }
  .project-collaboration-tabs button { min-width: 0; flex: 1; justify-content: center; }
  .project-discussion-attachments { grid-template-columns: 1fr; }
  .project-discussion-composer footer, .project-discussion-composer footer > div { align-items: stretch; flex-direction: column; }
  .project-discussion-composer footer .button, .project-discussion-attach { width: 100%; justify-content: center; }
  .project-detail-status-list article { grid-template-columns: 10px minmax(0, 1fr) 34px; }
  .project-detail-status-list article > i { grid-column: 2 / -1; }
  .project-detail-deadline-list > a { grid-template-columns: 60px minmax(0, 1fr) 28px; gap: 4px 9px; padding: 11px 13px; }
  .project-detail-deadline-key { grid-column: 1; grid-row: 1; }
  .project-detail-deadline-list > a > strong { grid-column: 2; grid-row: 1; white-space: normal; }
  .project-detail-deadline-list > a > span:nth-child(3) { grid-column: 2; grid-row: 2; }
  .project-detail-deadline-list time { grid-column: 2; grid-row: 3; display: flex; gap: 6px; align-items: baseline; }
  .project-detail-deadline-list > a > .assignee, .project-detail-deadline-list > a > .project-detail-unassigned { grid-column: 3; grid-row: 1 / 4; align-self: center; }
  .project-detail-activity > div > div { align-items: flex-start; flex-direction: column; gap: 2px; }
}
@media (max-width: 520px) {
  .project-detail-kpis, .project-detail-facts { grid-template-columns: 1fr; }
  .project-detail-facts > div, .project-detail-facts > div:nth-child(2) { border-top: 1px solid #ececef; border-left: 0; }
  .project-detail-facts > div:first-child { border-top: 0; }
}

/* Readability calibration: larger working text without changing the visual hierarchy. */
.nav-caption { font-size: 12px; }
.nav-item { min-height: 44px; }
.nav-badge { font-size: 12px; }
.sidebar-footer .avatar { width: 36px; height: 36px; font-size: 12px; }
.sidebar-footer strong { font-size: 13px; }
.sidebar-footer span { font-size: 12px; }
.search-field input, .registry-search input { font-size: 15px; }
.search-field input::placeholder, .registry-search input::placeholder { color: #8a8b90; opacity: 1; }
.search-field > .ui-icon { width: 21px; height: 21px; }
.icon-button { width: 38px; height: 38px; }
.icon-button .ui-icon { width: 20px; height: 20px; }
.button { min-height: 42px; padding-right: 18px; padding-left: 18px; font-size: 14px; }

.owner-heading-actions label { min-height: 43px; font-size: 12px; }
.owner-heading-actions select { font-size: 12px; }
.owner-heading-actions label .ui-icon { width: 16px; height: 16px; }
.owner-metric-card { min-height: 124px; grid-template-columns: 46px minmax(0, 1fr); gap: 13px; padding: 18px; }
.owner-metric-icon { width: 46px; height: 46px; padding: 11px; }
.owner-metric-card small { font-size: 12px; }
.owner-metric-card strong { font-size: 26px; }
.owner-metric-card strong i { font-size: 14px; }
.owner-metric-card p { font-size: 12px; line-height: 1.35; }
.owner-alert-line { min-height: 60px; gap: 11px; padding: 10px 14px; }
.owner-alert-line > .ui-icon { width: 34px; height: 34px; padding: 8px; }
.owner-alert-line strong { font-size: 12px; }
.owner-alert-line button { min-height: 34px; padding: 0 11px; font-size: 12px; }
.owner-panel > header { min-height: 72px; padding: 13px 16px; }
.owner-panel > header h2 { font-size: 18px; }
.owner-panel > header a, .owner-panel > header button { font-size: 12px; }
.owner-panel-tabs button { min-height: 34px; padding: 0 10px; font-size: 12px; }
.owner-team-head { min-height: 38px; padding: 0 15px; font-size: 11px; }
.owner-team-list { padding: 0 15px; }
.owner-team-list > article { min-height: 76px; }
.owner-team-list > article.attention::before { left: -15px; }
.owner-person > i, .owner-mini-person i { width: 36px; height: 36px; font-size: 12px; }
.owner-person strong, .owner-active-task strong { font-size: 12.5px; }
.owner-person small, .owner-active-task small { font-size: 11.5px; }
.owner-presence { min-height: 28px; padding: 0 8px; font-size: 11.5px; }
.owner-day-progress { font-size: 12px; }
.owner-day-progress small { font-size: 11px; }
.owner-team-panel footer { min-height: 48px; padding: 0 16px; font-size: 12px; }
.owner-team-panel footer a { font-size: 12px; }
.owner-count { min-width: 30px; height: 30px; font-size: 12px; }
.owner-decision-list { padding: 0 15px; }
.owner-decision-list article { min-height: 84px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; }
.decision-icon { width: 38px; height: 38px; padding: 9px; }
.owner-decision-list strong { font-size: 12.5px; }
.owner-decision-list p { font-size: 12px; }
.owner-decision-list small { font-size: 11.5px; }
.owner-decision-list button { font-size: 12px; }
.owner-all-button { min-height: 40px; font-size: 12px; }
.owner-risk-head { min-height: 39px; font-size: 11px; }
.owner-risk-table article { min-height: 68px; }
.owner-risk-table article strong { font-size: 12px; }
.owner-risk-table article small { font-size: 11.5px; }
.risk-priority { min-height: 27px; padding: 0 8px; font-size: 11px; }
.owner-mini-person { font-size: 12px; }
.owner-mini-person i { width: 29px; height: 29px; }
.risk-deadline strong { font-size: 12px !important; }
.risk-reason { font-size: 12px; }
.owner-client-risks, .owner-control-dates { padding: 0 15px 12px; }
.owner-client-risks article { min-height: 78px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; }
.owner-client-risks .client-logo { width: 38px; height: 38px; }
.owner-client-risks strong { font-size: 12px; }
.owner-client-risks p { font-size: 12px; }
.owner-client-risks small { font-size: 11px; }
.owner-client-risks article > b { font-size: 12px; }
.owner-control-dates article { min-height: 70px; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; }
.owner-control-dates time { width: 42px; height: 46px; }
.owner-control-dates time strong { font-size: 14px; }
.owner-control-dates time small { font-size: 11px; }
.owner-control-dates b { font-size: 12px; }
.owner-control-dates span, .owner-control-dates em { font-size: 11.5px; }
.owner-finance-bars span b { font-size: 12px; }
.owner-finance-bars span strong { font-size: 13px; }
.owner-finance-bars small { font-size: 11.5px; }
.owner-plan-summary { min-height: 33px; font-size: 12px; }
.owner-plan-card > header { min-height: 64px; }
.owner-plan-card .owner-person strong { font-size: 12px; }
.owner-plan-card .owner-person small { font-size: 11.5px; }
.owner-plan-percentage strong { font-size: 14px; }
.owner-plan-percentage small { font-size: 11px; }
.owner-plan-current span { font-size: 11px; }
.owner-plan-current strong { font-size: 12px; }
.owner-plan-card li { min-height: 58px; grid-template-columns: 23px minmax(0, 1fr) auto; }
.owner-plan-checkbox { width: 21px; height: 21px; }
.owner-plan-card li strong { font-size: 12px; }
.owner-plan-card li small { font-size: 11px; }
.owner-plan-card li em { min-height: 24px; padding: 0 7px; font-size: 11px; }
.owner-plan-card li.empty { font-size: 12px; }

@media (max-width: 760px) {
  .button { min-height: 40px; font-size: 13px; }
  .owner-metric-card { min-height: 116px; grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
  .owner-metric-icon { width: 40px; height: 40px; padding: 9px; }
  .owner-metric-card strong { font-size: 22px; }
}

.task-plan-actions p { margin: -8px 0 14px; color: #77787e; font-size: 12px; line-height: 1.45; }
.task-plan-actions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.task-plan-actions .button { min-width: 0; padding: 0 10px; }
.task-plan-actions .button .ui-icon { width: 16px; height: 16px; }

/* Live notification centre */
.topbar-actions .icon-button[aria-label^="Уведомления"] { position: relative; }
.notification-badge { position: absolute; top: -5px; right: -6px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: #e22631; color: #fff; font-size: 10px; font-weight: 850; line-height: 1; }
.notification-panel { position: fixed; z-index: 120; top: 82px; right: 28px; width: min(390px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 110px)); overflow: hidden; border: 1px solid #dedfe3; border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(28, 29, 33, .2); }
.notification-panel.hidden { display: none; }
.notification-panel > header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #e7e7ea; }
.notification-panel > header .eyebrow { margin: 0 0 3px; color: #888990; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.notification-panel > header h2 { margin: 0; color: #202126; font-size: 20px; line-height: 1.15; }
.notification-panel > header > span { color: #77787e; font-size: 12px; font-weight: 750; white-space: nowrap; }
.notification-list { max-height: calc(min(620px, 100vh - 110px) - 78px); overflow-y: auto; padding: 7px; }
.notification-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 12px; border-radius: 12px; color: inherit; text-decoration: none; }
.notification-item:hover { background: #f5f5f7; }
.notification-item.unread { background: #fff3f4; }
.notification-item > .ui-icon { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: #f0f1f3; color: #65666d; }
.notification-item.unread > .ui-icon { background: #ffe1e3; color: #c51f2a; }
.notification-item > span:last-child { min-width: 0; display: grid; gap: 3px; }
.notification-item strong { color: #2b2c31; font-size: 13px; line-height: 1.35; }
.notification-item small { color: #686970; font-size: 12px; line-height: 1.4; }
.notification-item time { color: #999aa0; font-size: 11px; }
.notification-empty { min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 28px; text-align: center; }
.notification-empty .ui-icon { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: #e8f7ed; color: #2f9553; }
.notification-empty strong { color: #303136; font-size: 14px; }
.notification-empty p { max-width: 250px; margin: 0; color: #7d7e84; font-size: 12px; line-height: 1.45; }
@media (max-width: 760px) { .notification-panel { top: 70px; right: 12px; width: calc(100vw - 24px); } }

/* Pulse mascot assistant */
.pulse-cat-helper { position: fixed; right: 22px; bottom: 18px; z-index: 90; width: 96px; height: 102px; font-family: inherit; }
.pulse-cat-launcher { position: absolute; inset: auto 0 0 auto; width: 92px; height: 92px; padding: 3px; border: 1px solid #efcfd1; border-radius: 30px; background: radial-gradient(circle at 50% 34%, #fff 0 28%, #fff0f1 70%, #fbdfe2 100%); box-shadow: 0 14px 32px rgba(91, 20, 26, .18), inset 0 1px 0 rgba(255,255,255,.8); cursor: pointer; transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s; }
.pulse-cat-launcher:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(91,20,26,.23), inset 0 1px 0 #fff; }.pulse-cat-launcher:focus-visible { outline: 3px solid rgba(225,36,47,.22); outline-offset: 3px; }
.pulse-cat-launcher svg { width: 100%; height: 100%; overflow: visible; }
.pulse-cat-shadow { fill: rgba(42,43,47,.14); transform-origin: center; animation: pulseCatShadow 3s ease-in-out infinite; }
.pulse-cat-fur, .pulse-cat-paw { fill: #fff; stroke: #2d2e33; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pulse-cat-body { transform-origin: 70px 118px; animation: pulseCatBreathe 3s ease-in-out infinite; }
.pulse-cat-head { filter: drop-shadow(0 3px 2px rgba(38,39,43,.08)); }
.pulse-cat-ear { fill: #f8c7cb; stroke: #2d2e33; stroke-width: 2; stroke-linejoin: round; }
.pulse-cat-eyes { transform-origin: center; animation: pulseCatBlink 5.2s infinite; }.pulse-cat-eyes path, .pulse-cat-mouth, .pulse-cat-whiskers path { fill: none; stroke: #2d2e33; stroke-width: 2.4; stroke-linecap: round; }
.pulse-cat-nose { fill: #e5323d; }.pulse-cat-collar { fill: none; stroke: #e22631; stroke-width: 5; stroke-linecap: round; }.pulse-cat-medal { fill: #e22631; stroke: #fff; stroke-width: 1.8; }.pulse-cat-p { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pulse-cat-tail { transform-box: fill-box; transform-origin: 4px 32px; animation: pulseCatTail 2.6s ease-in-out infinite; }.pulse-cat-tail path { fill: none; stroke-linecap: round; }.pulse-cat-tail-outline { stroke: #2d2e33; stroke-width: 14; }.pulse-cat-tail-fur { stroke: #fff; stroke-width: 9; }
.pulse-cat-notification { position: absolute; right: -3px; top: -4px; min-width: 23px; height: 23px; display: grid; place-items: center; border: 3px solid #f4f4f6; border-radius: 50%; background: #e22631; color: #fff; font-size: 11px; font-weight: 850; animation: pulseCatPing 2.4s ease-in-out infinite; }
.pulse-cat-teaser { position: absolute; right: 82px; bottom: 28px; min-width: 116px; padding: 10px 12px; border: 1px solid #dedfe3; border-radius: 12px 12px 3px 12px; background: #fff; box-shadow: 0 10px 28px rgba(24,25,28,.14); color: #35363b; font-size: 11px; font-weight: 750; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(8px) scale(.96); transition: opacity .2s, transform .2s; }
.pulse-cat-helper.is-teasing .pulse-cat-teaser, .pulse-cat-launcher:hover + .pulse-cat-notification { opacity: 1; transform: translateX(0) scale(1); }
.pulse-cat-panel { position: absolute; right: 0; bottom: 103px; width: 310px; overflow: hidden; border: 1px solid #dedfe3; border-radius: 16px; background: #fff; box-shadow: 0 20px 54px rgba(26,27,31,.2); opacity: 0; pointer-events: none; transform: translateY(10px) scale(.96); transform-origin: right bottom; transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1); }
.pulse-cat-helper.is-open .pulse-cat-panel { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.pulse-cat-panel > header { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid #ececef; background: linear-gradient(90deg, #fff7f7, #fff); }
.pulse-cat-status { display: inline-flex; align-items: center; gap: 7px; color: #303136; font-size: 12px; font-weight: 830; }.pulse-cat-status i { width: 8px; height: 8px; border: 2px solid #ccecd7; border-radius: 50%; background: #35a85b; animation: pulseCatStatus 1.8s ease-in-out infinite; }
.pulse-cat-panel > header button { width: 29px; height: 29px; border: 0; border-radius: 8px; background: transparent; color: #77787e; cursor: pointer; font-size: 20px; line-height: 1; }.pulse-cat-panel > header button:hover { background: #f0f1f3; color: #292a2f; }
.pulse-cat-dialogue { display: grid; gap: 7px; padding: 15px 15px 12px; }.pulse-cat-dialogue strong { color: #24252a; font-size: 13px; letter-spacing: -.02em; }.pulse-cat-dialogue p { min-height: 38px; margin: 0; color: #6e6f75; font-size: 11px; line-height: 1.5; }
.pulse-cat-helper.is-answering .pulse-cat-dialogue p { animation: pulseCatAnswer .3s ease; }
.pulse-cat-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 13px; }.pulse-cat-actions button { min-height: 31px; padding: 0 10px; border: 1px solid #dedfe3; border-radius: 8px; background: #fff; color: #4f5056; cursor: pointer; font: inherit; font-size: 11px; font-weight: 750; }.pulse-cat-actions button:hover, .pulse-cat-actions button.active { border-color: #e22732; background: #fff3f4; color: #a81720; }
.pulse-cat-panel > small { display: block; padding: 9px 15px 11px; border-top: 1px solid #ededf0; background: #fafafa; color: #999aa0; font-size: 10px; }

@keyframes pulseCatBreathe { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-2px) scaleY(1.015); } }
@keyframes pulseCatTail { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(13deg); } }
@keyframes pulseCatBlink { 0%,43%,47%,80%,84%,100% { transform: scaleY(1); } 45%,82% { transform: scaleY(.08); } }
@keyframes pulseCatShadow { 0%,100% { transform: scaleX(1); opacity: .8; } 50% { transform: scaleX(.92); opacity: .58; } }
@keyframes pulseCatPing { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes pulseCatStatus { 0%,100% { box-shadow: 0 0 0 0 rgba(53,168,91,.22); } 50% { box-shadow: 0 0 0 5px rgba(53,168,91,0); } }
@keyframes pulseCatAnswer { from { opacity: .2; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .pulse-cat-helper *, .pulse-cat-helper *::before, .pulse-cat-helper *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
@media (max-width: 760px) { .pulse-cat-helper { right: 13px; bottom: 12px; transform: scale(.88); transform-origin: right bottom; }.pulse-cat-panel { width: min(310px, calc(100vw - 26px)); }.pulse-cat-teaser { display: none; } }

/* Personal profile */
.sidebar-profile-entry { cursor: pointer; transition: background .18s ease; }
.sidebar-profile-entry:hover { background: #f0f1f3; }
.sidebar-footer .avatar.has-photo { background-position: center; background-size: cover; color: transparent; }
.profile-page { max-width: 1560px; }
.profile-heading { align-items: flex-end; }
.profile-privacy { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #dde0e4; border-radius: 12px; background: #fff; color: #64666d; font-size: 13px; font-weight: 750; }
.profile-privacy .ui-icon { width: 18px; height: 18px; color: #e22631; }
.profile-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-aside, .profile-main { display: grid; gap: 18px; }
.profile-identity-card { display: grid; justify-items: center; padding: 30px 24px; text-align: center; }
.profile-avatar { position: relative; width: 132px; height: 132px; display: grid; place-items: center; overflow: hidden; border: 6px solid #fff; border-radius: 38px; background: linear-gradient(145deg, #ffe7e9, #f5c8cd); box-shadow: 0 0 0 1px #eadadd, 0 18px 38px rgba(78,26,31,.16); color: #b41823; font-size: 36px; font-weight: 850; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity-card h2 { margin: 22px 0 4px; color: #1f2024; font-size: 25px; line-height: 1.15; }
.profile-identity-card > p { margin: 0; color: #686970; font-size: 14px; }
.profile-department { margin-top: 12px; padding: 7px 11px; border-radius: 999px; background: #f0f1f3; color: #55565c; font-size: 12px; font-weight: 800; }
.profile-avatar-actions { width: 100%; display: grid; gap: 8px; margin-top: 24px; }
.profile-avatar-actions .button { width: 100%; cursor: pointer; }
.profile-identity-card > small { margin-top: 10px; color: #92939a; font-size: 11px; }
.profile-account-card { padding: 22px; }
.profile-account-card dl { display: grid; gap: 13px; margin: 18px 0; }
.profile-account-card dl div { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid #ebebee; }
.profile-account-card dt { color: #92939a; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.profile-account-card dd { margin: 0; color: #34353a; font-size: 14px; font-weight: 750; word-break: break-word; }
.profile-account-card > p:last-child { margin: 0; color: #7a7b82; font-size: 12px; line-height: 1.5; }
.profile-settings-entry { display: grid; grid-template-columns: 44px minmax(0,1fr) 20px; align-items: center; gap: 13px; padding: 17px 18px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.profile-settings-entry:hover { transform: translateY(-2px); border-color: rgba(226,38,49,.22); box-shadow: 0 16px 34px rgba(70,24,28,.08); }
.profile-settings-entry > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.profile-settings-entry strong { color: #28292e; font-size: 14px; }
.profile-settings-entry small { color: #85868d; font-size: 12px; }
.profile-settings-entry > .ui-icon:last-child { width: 18px; height: 18px; color: #a2a3a9; }
.profile-settings-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #ffe9eb; color: #c8222c; }
.profile-settings-icon .ui-icon, .profile-settings-icon.ui-icon { width: 21px; height: 21px; }
.profile-form, .profile-security-card, .profile-mood-card, .profile-ideas-card { padding: 26px; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.profile-section-heading .eyebrow { margin-bottom: 5px; }
.profile-section-heading h2 { margin: 0; color: #25262b; font-size: 22px; }
.profile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-form-grid label { display: grid; gap: 8px; color: #55565c; font-size: 13px; font-weight: 800; }
.profile-form-grid label.wide { grid-column: 1 / -1; }
.profile-form-grid input, .profile-form-grid textarea, .profile-status-input input { width: 100%; border: 1px solid #d9dbe0; border-radius: 12px; background: #fff; color: #24252a; font: inherit; font-size: 14px; outline: none; transition: border-color .18s, box-shadow .18s; }
.profile-form-grid input { height: 46px; padding: 0 14px; }
.profile-form-grid textarea { min-height: 126px; padding: 13px 14px; resize: vertical; line-height: 1.55; }
.profile-form-grid input:focus, .profile-form-grid textarea:focus, .profile-status-input input:focus { border-color: #ea747c; box-shadow: 0 0 0 3px rgba(226,38,49,.09); }
.profile-form-grid label small { justify-self: end; color: #999aa0; font-size: 11px; font-weight: 650; }
.profile-feedback { min-height: 20px; margin: 14px 0 0; color: #74757c; font-size: 12px; font-weight: 700; }
.profile-feedback.success { color: #278447; }.profile-feedback.error { color: #c7202b; }
.profile-security-card > p { margin: -8px 0 20px; color: #74757c; font-size: 13px; line-height: 1.5; }
.profile-security-state { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 10px; background: #eaf7ef; color: #287b45; font-size: 12px; font-weight: 850; }
.profile-security-state .ui-icon { width: 17px; height: 17px; }
.profile-password-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.profile-password-grid label { display: grid; gap: 8px; color: #55565c; font-size: 12px; font-weight: 800; }
.profile-password-grid input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d9dbe0; border-radius: 11px; background: #fff; color: #24252a; font: inherit; outline: none; }
.profile-password-grid input:focus { border-color: #ea747c; box-shadow: 0 0 0 3px rgba(226,38,49,.09); }
.profile-password-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #e8e9ec; font-size: 12px; }
.profile-password-meta span { color: #8b8c92; }.profile-password-meta strong { color: #4d4e54; }
.profile-status-preview { padding: 8px 12px; border-radius: 10px; background: #fff0f1; color: #a91923; font-size: 13px; font-weight: 850; }
.profile-mood-card > p { margin: -8px 0 18px; color: #74757c; font-size: 13px; line-height: 1.5; }
.profile-emoji-list { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.profile-emoji-list button { width: 44px; height: 44px; border: 1px solid #dddfe3; border-radius: 12px; background: #fff; cursor: pointer; font-size: 21px; transition: transform .16s, border-color .16s, background .16s; }
.profile-emoji-list button:hover { transform: translateY(-2px); }.profile-emoji-list button.active { border-color: #e22631; background: #fff0f1; box-shadow: 0 0 0 3px rgba(226,38,49,.08); }
.profile-status-input { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 8px 8px 14px; border: 1px solid #dddfe3; border-radius: 14px; background: #fafafa; }
.profile-status-input > .ui-icon { color: #85868c; }.profile-status-input input { height: 40px; padding: 0 8px; border: 0; background: transparent; box-shadow: none; }
.profile-coming { padding: 7px 10px; border-radius: 999px; background: #f0f1f3; color: #77787e; font-size: 11px; font-weight: 850; }
.profile-idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.profile-idea-grid > div { min-height: 150px; padding: 18px; border: 1px solid #e2e3e7; border-radius: 15px; background: #fafafa; }
.profile-idea-grid .ui-icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #ffe8ea; color: #c8222c; }
.profile-idea-grid strong { display: block; margin-top: 14px; color: #303136; font-size: 14px; }
.profile-idea-grid p { margin: 7px 0 0; color: #77787e; font-size: 12px; line-height: 1.5; }
@media (max-width: 1220px) { .profile-password-grid { grid-template-columns: 1fr 1fr; }.profile-password-grid .button { width: 100%; } }
@media (max-width: 1060px) { .profile-layout { grid-template-columns: 1fr; }.profile-aside { grid-template-columns: 1fr 1fr; }.profile-identity-card { grid-row: span 2; } }
@media (max-width: 760px) { .profile-heading { align-items: flex-start; }.profile-privacy { width: 100%; }.profile-aside { grid-template-columns: 1fr; }.profile-form, .profile-security-card, .profile-mood-card, .profile-ideas-card { padding: 20px; }.profile-form-grid, .profile-password-grid { grid-template-columns: 1fr; }.profile-form-grid label.wide { grid-column: auto; }.profile-section-heading { align-items: flex-start; }.profile-idea-grid { grid-template-columns: 1fr; }.profile-status-input { grid-template-columns: 20px minmax(0,1fr); }.profile-status-input .button { grid-column: 1 / -1; width: 100%; }.profile-avatar { width: 112px; height: 112px; border-radius: 32px; }.profile-password-meta { display: grid; gap: 5px; } }

/* Workspace settings */
.settings-page { max-width: 1580px; }
.settings-heading { align-items: center; }
.settings-owner-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid #eadbdd; border-radius: 13px; background: #fff7f8; color: #aa1b25; font-size: 12px; font-weight: 800; white-space: nowrap; }
.settings-owner-badge .ui-icon { width: 18px; height: 18px; }
.settings-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 22px; padding: 7px; border: 1px solid #e1e2e5; border-radius: 19px; background: rgba(236,237,240,.88); }
.settings-tabs > button { min-height: 72px; display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: #65666d; cursor: pointer; text-align: left; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.settings-tabs > button:hover { transform: translateY(-1px); color: #34353a; }
.settings-tabs > button.active { border-color: rgba(0,0,0,.07); background: #fff; color: #b31b25; box-shadow: 0 5px 16px rgba(35,35,40,.07); }
.settings-tabs > button > .ui-icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.65); color: #808188; }
.settings-tabs > button.active > .ui-icon { background: #ffe9eb; color: #c9222c; }
.settings-tabs button > span:last-child { display: grid; gap: 4px; }
.settings-tabs strong { font-size: 14px; }.settings-tabs small { color: #92939a; font-size: 11px; font-weight: 650; }
.settings-view { min-height: 480px; }
.settings-loading { min-height: 360px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #777980; font-size: 13px; }
.settings-spinner { width: 22px; height: 22px; border: 3px solid #e5e6e9; border-top-color: #e22631; border-radius: 50%; animation: settings-spin .75s linear infinite; }
@keyframes settings-spin { to { transform: rotate(360deg); } }
.settings-error { display: flex; align-items: center; gap: 15px; padding: 22px; }
.settings-error > .ui-icon { width: 42px; height: 42px; padding: 10px; border-radius: 13px; background: #ffeaec; color: #c8202b; }
.settings-error div { flex: 1; }.settings-error strong { font-size: 15px; }.settings-error p { margin: 5px 0 0; color: #7a7b82; font-size: 12px; }
.storage-hero { display: grid; grid-template-columns: 190px minmax(0,1fr) auto; align-items: center; gap: 28px; min-height: 228px; padding: 28px 32px; overflow: hidden; background: radial-gradient(circle at 2% 5%, rgba(255,232,234,.9), transparent 34%), linear-gradient(135deg, #fff, #fbfbfc); }
.storage-gauge { --used-angle: 180deg; position: relative; width: 160px; height: 160px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#e22631 var(--used-angle), #eceef1 0); box-shadow: 0 16px 36px rgba(62,31,34,.11); }
.storage-gauge::before { position: absolute; inset: 13px; border-radius: inherit; background: #fff; box-shadow: inset 0 0 0 1px #f0e9ea; content: ""; }
.storage-gauge > span { position: relative; display: grid; gap: 6px; text-align: center; }.storage-gauge strong { color: #202126; font-size: 25px; letter-spacing: -.04em; }.storage-gauge small { color: #919299; font-size: 11px; font-weight: 700; }
.storage-hero-copy h2 { margin: 0 0 10px; color: #202126; font-size: 27px; }
.storage-hero-copy > p:not(.eyebrow) { max-width: 730px; margin: 0; color: #6e7077; font-size: 14px; line-height: 1.6; }
.storage-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.storage-legend span { display: inline-flex; align-items: center; gap: 7px; color: #606168; font-size: 12px; font-weight: 750; }.storage-legend i { width: 9px; height: 9px; border-radius: 50%; }.storage-legend i.green{background:#36a761}.storage-legend i.amber{background:#e39a25}.storage-legend i.slate{background:#8b8d95}
.storage-scan-state { align-self: start; display: grid; grid-template-columns: 32px auto; column-gap: 9px; align-items: center; padding: 12px 14px; border: 1px solid #dcece2; border-radius: 13px; background: #f4fbf6; }
.storage-scan-state > .ui-icon { grid-row: span 2; width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: #daf3e3; color: #258348; }.storage-scan-state strong { color: #2f7046; font-size: 12px; }.storage-scan-state small { color: #72917c; font-size: 10px; }
.settings-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 28px 2px 15px; }.settings-section-heading h2 { font-size: 21px; }.settings-section-heading > span { color: #85868d; font-size: 12px; font-weight: 750; }
.storage-section-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.storage-section-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; padding: 20px; }
.storage-section-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; }.storage-section-icon.rose{background:#ffe9eb;color:#c81e29}.storage-section-icon.blue{background:#e9f3ff;color:#337fc3}.storage-section-icon.amber{background:#fff3df;color:#ae6b12}.storage-section-icon.green{background:#e7f7ed;color:#2f8550}.storage-section-icon .ui-icon{width:21px;height:21px}
.storage-section-card > div:nth-child(2) { min-width: 0; display: grid; gap: 5px; }.storage-section-card strong { color: #33343a; font-size: 13px; }.storage-section-card small { color: #92939a; font-size: 10px; line-height: 1.35; }
.storage-section-card > b { margin-top: 12px; color: #222328; font-size: 20px; }.storage-section-card > span:not(.storage-section-icon) { align-self: end; justify-self: end; color: #8d8e95; font-size: 11px; }
.storage-section-bar { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 99px; background: #edeef1; }.storage-section-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#e22631,#ee7e85); }
.settings-split-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 14px; margin-top: 14px; }
.storage-types-card,.storage-recommendations-card { padding: 22px; }
.settings-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 18px; border-bottom: 1px solid #e9eaed; }.settings-card-heading h2 { font-size: 19px; }.settings-card-heading > .ui-icon { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: #f1f2f4; color: #74767d; }
.storage-type-list { display: grid; gap: 16px; margin-top: 19px; }.storage-type-row { display: grid; grid-template-columns: 10px minmax(110px,.85fr) auto minmax(90px,1fr) 72px; align-items: center; gap: 9px; }.storage-type-row > i { width: 9px; height: 9px; border-radius: 50%; }.storage-type-row strong { font-size: 12px; }.storage-type-row > span { color: #96979e; font-size: 10px; }.storage-type-row > div { height: 5px; overflow: hidden; border-radius: 99px; background: #eceef1; }.storage-type-row > div b { display: block; height: 100%; border-radius: inherit; }.storage-type-row em { color: #595a61; font-size: 11px; font-style: normal; font-weight: 800; text-align: right; }
.storage-recommendation-list { display: grid; gap: 10px; margin-top: 16px; }.storage-recommendation { width: 100%; display: grid; grid-template-columns: 40px minmax(0,1fr) auto 18px; align-items: center; gap: 12px; padding: 13px; border: 1px solid #e3e4e8; border-radius: 14px; background: #fff; cursor: pointer; text-align: left; }.storage-recommendation:hover { border-color: #d0d2d7; background: #fbfbfc; }.storage-recommendation > .ui-icon:first-child { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #fff2df; color: #ad7118; }.storage-recommendation.protected > .ui-icon:first-child { background:#eaf3ff;color:#397ab7}.storage-recommendation.ok > .ui-icon:first-child { background:#e7f7ed;color:#2e8b52}.storage-recommendation > span:nth-child(2) { display:grid;gap:4px}.storage-recommendation strong { font-size:12px}.storage-recommendation small { color:#8a8b92;font-size:10px;line-height:1.4}.storage-recommendation > b { color:#515258;font-size:11px;white-space:nowrap}.storage-recommendation > .ui-icon:last-child{width:16px;height:16px;color:#a3a4aa;transition:transform .18s}.storage-recommendation.open > .ui-icon:last-child{transform:rotate(180deg)}
.storage-recommendation-files { margin: -4px 8px 4px 52px; padding: 10px 12px; border-left: 2px solid #e8e9ec; }.storage-recommendation-files > div { display:flex;justify-content:space-between;gap:15px;padding:8px 0;border-bottom:1px solid #eeeeef}.storage-recommendation-files > div:last-child{border-bottom:0}.storage-recommendation-files span{display:grid;gap:3px}.storage-recommendation-files strong{font-size:11px}.storage-recommendation-files small,.storage-recommendation-files p{margin:0;color:#96979e;font-size:10px}.storage-recommendation-files b{font-size:10px;white-space:nowrap}
.settings-role-layout { display: grid; grid-template-columns: minmax(245px,300px) minmax(0,1fr); gap: 15px; align-items: start; }.settings-role-layout > aside { display: grid; gap: 13px; position: sticky; top: 88px; }
.settings-role-rail { display: grid; gap: 7px; padding: 8px; border: 1px solid #dedfe3; border-radius: 18px; background: rgba(235,236,239,.78); }.settings-role-card { width: 100%; min-height: 72px; display: grid; grid-template-columns: 43px minmax(0,1fr) 16px; align-items: center; gap: 11px; padding: 10px; border: 1px solid transparent; border-radius: 13px; background: transparent; cursor: pointer; text-align: left; }.settings-role-card:hover { background:rgba(255,255,255,.55)}.settings-role-card.active { border-color:rgba(0,0,0,.07);background:#fff;box-shadow:0 5px 14px rgba(40,40,46,.07)}.settings-role-card > span:nth-child(2){display:grid;gap:5px}.settings-role-card strong{font-size:12px}.settings-role-card small{color:#92939a;font-size:10px}.settings-role-card > .ui-icon{width:15px;height:15px;color:#9b9ca2;transform:rotate(-90deg)}
.role-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; font-size: 12px; font-weight: 850; }.role-avatar.rose{background:#ffe5e8;color:#b61923}.role-avatar.blue{background:#e6f1ff;color:#2e71af}.role-avatar.green{background:#e5f6eb;color:#2c7c4a}.role-avatar.violet{background:#f0e6fb;color:#8250a6}.role-avatar.large{width:54px;height:54px;border-radius:16px;font-size:14px}
.role-rule-note { display:flex;gap:11px;padding:16px;border:1px solid #e3e4e7;border-radius:15px;background:#fff}.role-rule-note > .ui-icon{width:34px;height:34px;flex:none;padding:8px;border-radius:10px;background:#f1f2f4;color:#73757c}.role-rule-note p{margin:0;color:#898a91;font-size:10px;line-height:1.5}.role-rule-note strong{display:block;margin-bottom:4px;color:#55565d;font-size:11px}
.permission-workspace,.menu-workspace { padding: 0; overflow: hidden; }.permission-header { min-height: 115px; display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:16px;padding:22px 25px;border-bottom:1px solid #e8e9ec}.permission-header h2{font-size:22px}.permission-header p:last-child{margin:5px 0 0;color:#85868d;font-size:11px}.permission-total { min-width:110px;text-align:right}.permission-total strong{display:block;color:#222328;font-size:24px}.permission-total span{color:#92939a;font-size:10px}.owner-lock-note{display:flex;align-items:center;gap:12px;margin:17px 25px 0;padding:13px 15px;border:1px solid #f0dadc;border-radius:13px;background:#fff6f7}.owner-lock-note > .ui-icon{width:34px;height:34px;padding:8px;border-radius:10px;background:#ffe3e6;color:#be1f29}.owner-lock-note > span{display:grid;gap:3px}.owner-lock-note strong{font-size:11px}.owner-lock-note small{color:#8d7779;font-size:10px}
.permission-groups { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px 25px 25px}.permission-group { overflow:hidden;border:1px solid #e2e3e6;border-radius:15px;background:#fff}.permission-group > header{display:grid;grid-template-columns:minmax(0,1fr) 90px;align-items:center;gap:15px;padding:15px 16px;background:#fafafb;border-bottom:1px solid #e8e9eb}.permission-group > header span{display:grid;gap:3px}.permission-group > header strong{font-size:12px}.permission-group > header small{color:#96979d;font-size:9px}.permission-group-progress{height:5px;overflow:hidden;border-radius:99px;background:#e9eaed}.permission-group-progress i{display:block;height:100%;border-radius:inherit;background:#e22631}.permission-row { position:relative;min-height:70px;display:grid;grid-template-columns:minmax(0,1fr) auto 34px;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #ededee;cursor:pointer}.permission-row:last-child{border-bottom:0}.permission-row:hover{background:#fafafa}.permission-row > span:first-child{display:grid;gap:4px}.permission-row strong{font-size:11px}.permission-row strong em{margin-left:6px;padding:3px 6px;border-radius:99px;background:#fff1dc;color:#a96b11;font-size:8px;font-style:normal}.permission-row small{color:#96979e;font-size:9px;line-height:1.35}.permission-kind{padding:4px 6px;border-radius:7px;background:#f1f2f4;color:#888991;font-size:8px;font-weight:800}.permission-row input{position:absolute;opacity:0;pointer-events:none}.settings-switch{position:relative;width:34px;height:20px;border-radius:99px;background:#d9dadd;transition:background .18s}.settings-switch::after{position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);content:"";transition:transform .18s}.permission-row input:checked + .settings-switch{background:#e22631}.permission-row input:checked + .settings-switch::after{transform:translateX(14px)}.permission-row input:disabled + .settings-switch{opacity:.7}
.permission-footer { min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 25px;border-top:1px solid #e4e5e8;background:#fafafb}.permission-footer > span{display:grid;gap:4px}.permission-footer b{font-size:11px}.permission-footer small{color:#94959c;font-size:9px}.permission-footer .button{min-width:175px;border-radius:12px}.permission-footer .button:disabled{opacity:.48;cursor:not-allowed}
.menu-source { padding:7px 10px;border-radius:99px;background:#f0f1f3;color:#787980;font-size:9px;font-weight:800}.menu-source.custom{background:#e8f3ff;color:#347ab9}.menu-settings-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:18px 25px 0}.menu-settings-row label{display:grid;gap:7px;color:#66676e;font-size:10px;font-weight:800}.menu-settings-row select{height:44px;padding:0 13px;border:1px solid #d9dade;border-radius:11px;background:#fff;color:#33343a;font-size:11px;outline:none}.menu-settings-row select:focus{border-color:#e46c74;box-shadow:0 0 0 3px rgba(226,38,49,.08)}
.menu-builder { display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:18px 25px 25px}.menu-builder > section{min-width:0;overflow:hidden;border:1px solid #e1e2e5;border-radius:15px;background:#f8f8f9}.menu-builder > section > header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid #e1e2e5;background:#fff}.menu-builder h3{margin:0;font-size:14px}.menu-builder > section > header small{color:#999aa0;font-size:9px}.menu-item-list,.menu-available-list{display:grid;gap:7px;max-height:560px;overflow:auto;padding:9px}.menu-builder-item,.menu-available-list > button{min-height:62px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 9px;border:1px solid #e2e3e6;border-radius:11px;background:#fff;text-align:left}.menu-builder-item > span:nth-child(2),.menu-available-list > button > span:nth-child(2){display:grid;gap:4px;min-width:0}.menu-builder-item strong,.menu-available-list strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.menu-builder-item small,.menu-available-list small{overflow:hidden;color:#97989e;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.menu-builder-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#fff}.menu-builder-icon.rose{background:#e55b64}.menu-builder-icon.blue{background:#5792cf}.menu-builder-icon.green{background:#58a873}.menu-builder-icon.violet{background:#9b70bd}.menu-builder-icon.amber{background:#d39a42}.menu-builder-icon.slate{background:#868991}.menu-builder-icon.cyan{background:#4da5bd}.menu-builder-icon .ui-icon{width:18px;height:18px}.menu-builder-item > div{display:flex;gap:4px}.menu-builder-item button,.menu-available-list > button{cursor:pointer}.menu-builder-item button{width:28px;height:28px;display:grid;place-items:center;border:1px solid #dedfe2;border-radius:8px;background:#fff;color:#777980}.menu-builder-item button:hover:not(:disabled){border-color:#d9aeb1;color:#c5222c}.menu-builder-item button:disabled{opacity:.32;cursor:not-allowed}.menu-builder-item button .ui-icon,.menu-available-list > button > .ui-icon{width:14px;height:14px}.menu-available-list > button{width:100%;cursor:pointer}.menu-available-list > button:hover:not(:disabled){border-color:#d4b0b3;background:#fffafb}.menu-available-list > button:disabled{opacity:.45;cursor:not-allowed}.menu-available-list > button > .ui-icon{color:#888a90}
.settings-empty{margin:0;padding:30px 14px;color:#999aa0;font-size:11px;text-align:center}.settings-toast{position:fixed;right:28px;bottom:28px;z-index:100;transform:translateY(18px);opacity:0;pointer-events:none;transition:.2s}.settings-toast.visible{transform:translateY(0);opacity:1}.settings-toast.error{background:#b91f29}
@media (max-width: 1240px) { .storage-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.permission-groups{grid-template-columns:1fr}.settings-role-layout{grid-template-columns:245px minmax(0,1fr)} }
@media (max-width: 980px) { .storage-hero{grid-template-columns:150px minmax(0,1fr)}.storage-gauge{width:140px;height:140px}.storage-scan-state{grid-column:1/-1;justify-self:start}.settings-split-grid{grid-template-columns:1fr}.settings-role-layout{grid-template-columns:1fr}.settings-role-layout > aside{position:static}.settings-role-rail{grid-template-columns:repeat(4,minmax(170px,1fr));overflow:auto}.role-rule-note{display:none}.menu-builder{grid-template-columns:1fr}.settings-tabs{overflow:auto;grid-template-columns:repeat(3,minmax(220px,1fr))} }
@media (max-width: 700px) { .settings-heading{align-items:flex-start}.settings-owner-badge{width:100%;justify-content:center}.settings-tabs{grid-template-columns:1fr}.storage-hero{grid-template-columns:1fr;justify-items:center;text-align:center;padding:24px}.storage-legend{justify-content:center}.storage-scan-state{justify-self:center;text-align:left}.storage-section-grid{grid-template-columns:1fr}.storage-type-row{grid-template-columns:10px 1fr auto}.storage-type-row > div{grid-column:2/-1}.storage-type-row em{display:none}.settings-role-rail{grid-template-columns:repeat(4,230px)}.permission-header{grid-template-columns:54px 1fr}.permission-total,.menu-source{grid-column:1/-1;text-align:left}.permission-groups,.menu-builder,.menu-settings-row{grid-template-columns:1fr;padding-left:15px;padding-right:15px}.permission-footer{align-items:stretch;flex-direction:column}.permission-footer .button{width:100%}.permission-row{grid-template-columns:minmax(0,1fr) 34px}.permission-kind{display:none} }

/* Task discussion: comments and their own attachments */
.task-attachment-note { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; color: #777980; font-size: 12px; line-height: 1.45; }
.task-attachment-note .ui-icon { width: 16px; height: 16px; flex: none; color: #b51b25; }
.comment-composer { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.comment-composer > .avatar { width: 38px; height: 38px; font-size: 11px; }
#commentForm > .comment-composer-body { width: 100%; min-width: 0; grid-column: 2; display: grid !important; grid-template-columns: minmax(0, 1fr); justify-content: stretch !important; gap: 9px; margin-top: 0 !important; }
#commentForm > .comment-composer-body > textarea, #commentForm > .comment-composer-body > footer, #commentForm > .comment-composer-body > .task-comment-pending-list { width: 100%; }
.comment-composer textarea { min-height: 104px; padding: 13px 14px; border-radius: 11px; background: #fff; font-size: 13px; line-height: 1.5; }
.comment-composer footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-composer footer > div { min-width: 0; display: flex; align-items: center; gap: 10px; }
.comment-composer footer small { display: inline-flex; align-items: center; gap: 5px; color: #85868c; font-size: 11px; }
.comment-composer footer small .ui-icon { width: 14px; height: 14px; color: #9a6a1b; }
.comment-attach { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #d8d9dd; border-radius: 9px; background: #fff; color: #55565c; cursor: pointer; font-size: 12px; font-weight: 750; white-space: nowrap; }
.comment-attach:hover { border-color: #e38f95; color: #a91b24; }
.comment-attach input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.comment-attach .ui-icon { width: 16px; height: 16px; }
.task-comment-pending-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.task-comment-pending-list[hidden] { display: none; }
.task-comment-pending { min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) 30px; gap: 9px; align-items: center; padding: 8px; border: 1px solid #dfe0e4; border-radius: 10px; background: #fafafa; }
.task-comment-pending.error { border-color: #efb7bb; background: #fff6f7; }
.task-comment-pending > img, .task-comment-pending-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; object-fit: cover; background: #eef2f7; color: #4f6987; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.task-comment-pending > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.task-comment-pending strong { overflow: hidden; color: #3b3c42; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-comment-pending small { overflow: hidden; color: #7e7f86; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-comment-pending i { height: 3px; display: block; overflow: hidden; border-radius: 99px; background: #e3e4e7; }
.task-comment-pending i b { height: 100%; display: block; border-radius: inherit; background: #dc2630; transition: width .2s ease; }
.task-comment-pending.done i b { background: #31a85b; }
.task-comment-pending.error i b { background: #cf2832; }
.task-comment-pending > button { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #777980; cursor: pointer; }
.task-comment-pending > button:hover { background: #fdebed; color: #a91b24; }
.task-comment-pending > button:disabled { opacity: .45; cursor: wait; }
.task-comment-pending > button .ui-icon { width: 15px; height: 15px; }
.comment-stream { gap: 20px; }
.comment-stream article { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.comment-stream article > .avatar { width: 38px; height: 38px; font-size: 11px; }
.task-comment-copy { min-width: 0; display: grid; gap: 7px; }
.task-comment-copy > p { margin: 0 !important; }
.task-comment-copy > p strong { color: #303136; font-size: 13px; }
.task-comment-copy > p time { font-size: 11px; }
.task-comment-copy > div:not(.task-comment-attachments) { color: #4a4b51; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.task-comment-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.task-comment-image, .task-comment-file { min-width: 0; padding: 0; border: 1px solid #dedfe3; border-radius: 10px; background: #fafafa; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.task-comment-image { overflow: hidden; }
.task-comment-image:hover, .task-comment-file:hover { border-color: #e48d93; background: #fffafa; }
.task-comment-image > img { width: 100%; aspect-ratio: 16 / 8; display: block; object-fit: cover; background: #ececef; }
.task-comment-image-placeholder { aspect-ratio: 16 / 8; display: grid; place-items: center; align-content: center; gap: 7px; background: #f0f1f3; color: #86878d; font-size: 11px; }
.task-comment-image-placeholder[hidden] { display: none; }
.task-comment-image-placeholder .ui-icon { width: 21px; height: 21px; }
.task-comment-image.preview-error .task-comment-image-placeholder { color: #b12932; }
.task-comment-image > span:last-child { display: grid; gap: 3px; padding: 9px 10px; }
.task-comment-image strong, .task-comment-file strong { overflow: hidden; color: #3a3b40; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-comment-image small, .task-comment-file small { color: #82838a; font-size: 10px; }
.task-comment-file { min-height: 58px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; gap: 9px; align-items: center; padding: 9px 10px; }
.task-comment-file-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #edf3fb; color: #3c6792; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.task-comment-file > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.task-comment-file > .ui-icon { width: 17px; height: 17px; color: #74767d; }
.task-image-preview-dialog { width: min(1040px, calc(100vw - 40px)); max-width: none; max-height: calc(100vh - 40px); padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #16171a; box-shadow: 0 24px 80px rgba(0,0,0,.3); }
.task-image-preview-dialog::backdrop { background: rgba(20,21,25,.72); backdrop-filter: blur(4px); }
.task-image-preview-dialog > div { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100vh - 40px); }
.task-image-preview-dialog header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 13px 0 18px; border: 0; background: #fff; }
.task-image-preview-dialog header strong { overflow: hidden; color: #34353a; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.task-image-preview-dialog header button { width: 36px; height: 36px; display: grid; flex: none; place-items: center; padding: 0; border: 0; border-radius: 9px; background: #f1f2f4; color: #55565c; cursor: pointer; }
.task-image-preview-dialog header .ui-icon { width: 18px; height: 18px; }
.task-image-preview-dialog img { width: 100%; height: 100%; max-height: calc(100vh - 94px); object-fit: contain; }
@media (max-width: 760px) {
  .comment-composer { grid-template-columns: 1fr; }
  .comment-composer > .avatar { display: none; }
  #commentForm > .comment-composer-body { grid-column: 1; }
  .comment-composer footer, .comment-composer footer > div { align-items: stretch; flex-direction: column; }
  .comment-composer footer .button, .comment-attach { width: 100%; justify-content: center; }
  .task-comment-pending-list, .task-comment-attachments { grid-template-columns: 1fr; }
}
