:root {
  --ink: #172e36;
  --muted: #708187;
  --petrol: #142f38;
  --petrol-mid: #20434a;
  --teal: #247b70;
  --teal-dark: #176257;
  --teal-soft: #e4f2ee;
  --canvas: #f5f7f5;
  --surface: #ffffff;
  --line: #e2e9e7;
  --line-dark: #38515a;
  --amber: #f1b878;
  --warning: #b76b22;
  --danger: #b64b50;
  --danger-soft: #fff0ef;
  --success: #14715d;
  --shadow: 0 15px 44px rgba(26, 57, 59, .07);
  --radius: 18px;
  --ease: cubic-bezier(.2,.75,.25,1);
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'DM Sans', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font-family: var(--font-ar); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { font-family: var(--font-en); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .56; }
a { color: inherit; text-decoration: none; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(36, 123, 112, .36); outline-offset: 3px; }
input, select, textarea { accent-color: var(--teal); }
::selection { background: #c4e7dc; color: var(--ink); }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.strong { font-weight: 800; }
.num { font-family: var(--font-en); font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.money-ltr { font-family: var(--font-en); unicode-bidi: isolate; white-space: nowrap; }
.money-ltr small { font-size: .47em; font-weight: 700; letter-spacing: 0; }
.line-clamp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small { font-size: 12px; }
.eyebrow { font-size: 11px; letter-spacing: .035em; font-weight: 800; color: var(--muted); }
.boot-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--petrol); font-size: 26px; font-weight: 800; }
.boot-caption { font-size: 12px; color: var(--muted); font-weight: 500; }
.brand-symbol { width: 41px; height: 41px; display: inline-flex; position: relative; align-items: center; justify-content: center; background: var(--teal); border-radius: 12px; overflow: hidden; transform: rotate(-8deg); }
.brand-symbol span { width: 6px; background: #fff; display: block; border-radius: 3px; position: absolute; bottom: 9px; transform: rotate(24deg); }
.brand-symbol span:nth-child(1) { height: 11px; inset-inline-start: 10px; }
.brand-symbol span:nth-child(2) { height: 20px; inset-inline-start: 18px; }
.brand-symbol span:nth-child(3) { height: 26px; inset-inline-start: 26px; background: #b5e8d7; }
.app-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--petrol); color: #eaf2f0; padding: 29px 17px 20px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; overflow: auto; z-index: 31; }
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 1px 10px 30px; }
.sidebar .brand-symbol { width: 39px; height: 39px; background: #daeee5; }
.sidebar .brand-symbol span { background: var(--teal); }
.sidebar .brand-symbol span:nth-child(3) { background: #8bbfb5; }
.brand-word { font-family: var(--font-en); font-weight: 800; letter-spacing: -.05em; font-size: 22px; line-height: 1.1; }
.brand-sub { font-size: 10px; color: #9eb8ba; font-weight: 600; }
.nav-label { padding: 12px 15px 7px; color: #809da1; font-size: 10px; font-weight: 800; }
.nav-menu { display: flex; flex-direction: column; gap: 5px; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 12px; background: transparent; color: #b6ccca; border: 1px solid transparent; border-radius: 11px; padding: 11px 13px; text-align: start; font-weight: 700; transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(255,255,255,.075); color: #fff; }
.nav-link.active { background: #31545a; color: #fff; border-color: rgba(208,232,221,.09); }
.nav-link.active svg { color: #a6e4d4; }
.nav-link .nav-count { margin-inline-start: auto; border-radius: 7px; background: #38565e; color: #cfe6de; padding: 0 7px; font-size: 10px; }
.side-bottom { margin-top: auto; padding-top: 30px; }
.side-signal { border: 1px solid #35505a; background: #1c3a43; border-radius: 15px; padding: 15px; margin-bottom: 16px; }
.signal-top { display: flex; justify-content: space-between; color: #b7d2cd; font-size: 11px; }
.signal-value { color: #fff; font-size: 22px; font-weight: 800; margin-top: 3px; }
.signal-foot { color: #93afae; font-size: 10px; margin-top: 7px; }
.signal-track { height: 5px; background: #33525a; border-radius: 8px; overflow: hidden; }
.signal-track span { height: 100%; background: var(--amber); display: block; border-radius: inherit; }
.side-user { padding: 13px 10px 2px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #31505a; }
.side-user .user-avatar { background: #3e6a68; color: #fff; }
.side-user-data { min-width: 0; flex: 1; }
.side-user-name { font-weight: 800; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-role { font-size: 10px; color: #90b2b4; }
.sidebar-backdrop { display: none; }
.main-zone { min-width: 0; }
.topbar { min-height: 84px; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(22px, 3.5vw, 55px); gap: 18px; background: rgba(255,255,255,.72); border-bottom: 1px solid #e9eeeb; }
.topbar-breadcrumb { font-weight: 800; color: #6c8081; font-size: 12px; }
.topbar-breadcrumb strong { color: var(--ink); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn, .top-pill { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 11px; min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; font-weight: 800; }
.icon-btn { width: 39px; padding: 0; }
.icon-btn:hover, .top-pill:hover { border-color: #bcd2ca; background: #f8fbf9; }
.menu-toggle { display: none; }
.top-date { color: var(--muted); font-size: 12px; }
.top-avatar { display: inline-flex; align-items: center; gap: 9px; }
.user-avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; border-radius: 10px; background: #d8ebe5; color: var(--teal); font-weight: 800; font-size: 13px; }
.page { max-width: 1650px; margin: 0 auto; padding: 34px clamp(22px, 3.5vw, 55px) 70px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 24px; }
.page-title { font-size: clamp(25px, 2.2vw, 34px); line-height: 1.35; font-weight: 800; margin: 0; letter-spacing: -.035em; }
.page-subtitle { font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.btn { border: 1px solid var(--line); padding: 10px 16px; min-height: 42px; border-radius: 10px; background: white; color: var(--ink); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .14s, border-color .14s, transform .14s; white-space: nowrap; }
.btn:hover { border-color: #bcd0c9; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.btn-dark { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.btn-dark:hover { background: #234650; color: #fff; }
.btn-danger { color: var(--danger); border-color: #f5d5d4; }
.btn-quiet { background: transparent; border-color: transparent; }
.btn-quiet:hover { background: #eef3f1; }
.btn-sm { min-height: 31px; padding: 5px 10px; font-size: 11px; }
.btn-xs { padding: 3px 8px; border-radius: 7px; min-height: 26px; font-size: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; }
.card-title { font-size: 15px; font-weight: 800; margin: 0; line-height: 1.3; }
.card-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.inline-link { border: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 5px; }
.inline-link:hover { text-decoration: underline; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(290px, .88fr); gap: 17px; margin-bottom: 18px; }
.focus-card { border-radius: 20px; padding: 25px 27px 21px; color: #fff; background-color: var(--petrol); background-image: radial-gradient(ellipse at 85% -35%,rgba(129,205,181,.18),transparent 56%), linear-gradient(135deg,rgba(255,255,255,.025) 25%,transparent 25%); position: relative; overflow: hidden; }
.focus-card::after { content: ''; pointer-events: none; position: absolute; inset: 0; opacity: .15; background: repeating-linear-gradient(0deg, transparent 0, transparent 35px, rgba(255,255,255,.1) 36px); }
.focus-head, .focus-list, .focus-foot { position: relative; z-index: 1; }
.focus-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.focus-head h2 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; }
.focus-head p { margin: 6px 0 0; color: #a9c1c2; font-size: 11px; }
.focus-date { display: flex; align-items: center; gap: 7px; border: 1px solid #3c5b63; background: #21414b; color: #cadeda; padding: 7px 11px; border-radius: 9px; font-size: 11px; white-space: nowrap; }
.focus-list { display: grid; gap: 8px; }
.focus-item { width: 100%; text-align: start; color: #edf6f4; padding: 12px 13px; display: flex; align-items: center; gap: 11px; border-radius: 11px; border: 1px solid #3b5660; background: #23424b; }
.focus-item:hover { background: #2b525b; }
.focus-dot { width: 33px; height: 33px; background: #38585e; color: #dcebe5; display: grid; place-items: center; border-radius: 9px; }
.focus-dot.overdue { background: #6e504c; color: #ffceac; }
.focus-item-data { min-width: 0; flex: 1; }
.focus-item-title { font-weight: 800; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-item-sub { font-size: 10px; color: #a7c1c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-badge { font-size: 10px; padding: 3px 8px; background: #395c62; color: #d0ece5; border-radius: 7px; white-space: nowrap; }
.focus-badge.overdue { background: #634a43; color: #ffd1b0; }
.focus-foot { margin-top: 16px; display: flex; justify-content: space-between; color: #98b9b7; font-size: 10px; gap: 8px; align-items: center; }
.focus-foot button { color: #bfe7d7; border: 0; background: none; font-weight: 800; }
.quick-card { padding: 24px; position: relative; overflow: hidden; }
.quick-card:before { content: ''; position: absolute; top: 0; inset-inline-end: 0; width: 100px; height: 4px; background: var(--amber); border-radius: 0 0 0 10px; }
.quick-card .quick-title { font-size: 17px; font-weight: 800; margin: 0; }
.quick-card .quick-desc { color: var(--muted); font-size: 11px; max-width: 240px; margin: 5px 0 22px; }
.quick-actions { display: grid; gap: 9px; }
.quick-action { border: 1px solid var(--line); background: #fafcfb; border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 11px; text-align: start; color: var(--ink); }
.quick-action:hover { border-color: #bbd9d0; background: #f3faf7; }
.quick-action .quick-icon { width: 35px; height: 35px; display: grid; place-items: center; background: #e1eee9; color: var(--teal); border-radius: 10px; }
.quick-action strong { display: block; font-size: 12px; }
.quick-action small { display: block; color: var(--muted); font-size: 10px; }
.quick-action .end-icon { margin-inline-start: auto; color: #93a4a5; }
.stat-strip { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 18px 5px; margin-bottom: 18px; }
.stat-item { min-width: 0; padding: 5px 22px; border-inline-end: 1px solid var(--line); }
.stat-item:first-child { border-inline-end: 0; }
.stat-label { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.stat-value { font-size: clamp(21px,2.2vw,31px); font-weight: 800; color: var(--ink); line-height: 1.35; margin: 8px 0 1px; white-space: nowrap; letter-spacing: -.04em; }
.stat-note { font-size: 10px; color: var(--muted); }
.stat-item.important .stat-value { color: var(--teal); }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(270px,.85fr); gap: 17px; }
.pipeline-content { padding: 10px 24px 24px; }
.pipeline-track { display: flex; height: 12px; border-radius: 9px; background: #edf0ee; overflow: hidden; direction: ltr; margin: 14px 0 21px; }
.pipeline-track span { height: 100%; min-width: 0; }
.pipeline-legend { display: flex; gap: 10px 18px; flex-wrap: wrap; }
.legend-item { color: var(--muted); display: flex; gap: 7px; font-size: 11px; align-items: center; }
.legend-item b { font-weight: 800; color: var(--ink); }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; }
.activity-list { padding: 2px 22px 19px; }
.activity-mini { padding: 12px 0; display: flex; gap: 10px; border-bottom: 1px solid #edf0ee; }
.activity-mini:last-child { border: 0; }
.activity-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; color: var(--teal); background: #e9f3ef; }
.activity-mini-body { flex: 1; min-width: 0; }
.activity-mini strong { font-weight: 800; display: block; font-size: 11px; }
.activity-mini .small { font-size: 10px; }
.activity-mini time { color: var(--muted); font-size: 10px; }
.list-card { margin-top: 18px; }
.table-wrap { overflow-x: auto; width: 100%; }
.data-table { width: 100%; border-collapse: collapse; text-align: start; white-space: nowrap; }
.data-table th { background: #fafbfa; color: #73878a; padding: 12px 18px; font-size: 10px; font-weight: 800; text-align: start; }
.data-table td { padding: 14px 18px; vertical-align: middle; border-top: 1px solid #eef1ef; font-size: 11px; }
.data-table tr:hover td { background: #fbfdfc; }
.data-table .person-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.person-cell .user-avatar { width: 34px; height: 34px; }
.person-name { font-size: 12px; font-weight: 800; }
.person-meta { font-size: 10px; color: var(--muted); }
.table-click { background: transparent; padding: 0; border: 0; text-align: start; color: inherit; }
.table-click:hover .person-name { color: var(--teal); text-decoration: underline; }
.feedback-line { display: block; max-width: 250px; font-weight: 700; color: #47616a; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.feedback-line.empty { font-weight: 400; color: #98a6a5; }
.feedback-label { color: var(--muted); font-size: 9px; display: block; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.new { background: #e9f2f8; color: #487a96; }
.badge.contacted { background: #ebf2fc; color: #4e78b0; }
.badge.qualified { background: #e3f4ec; color: #388a6d; }
.badge.proposal { background: #f2ecff; color: #7d67b6; }
.badge.negotiation { background: #fff2e2; color: #b07928; }
.badge.won { background: #dcf1e7; color: #1b785d; }
.badge.lost { background: #f8e9e9; color: #a15c5b; }
.badge.pending { background: #fff2e2; color: #a67424; }
.badge.done { background: #e6f4ec; color: #19745a; }
.overdue-text { color: var(--danger) !important; font-weight: 800; }
.due-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; background: #f5f7f6; border-radius: 7px; color: #6e8686; font-size: 10px; }
.due-pill.overdue { background: var(--danger-soft); color: var(--danger); font-weight: 800; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 17px 19px; }
.search-box { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: white; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); min-height: 39px; flex: 1; min-width: 175px; }
.search-box input { flex: 1; outline: 0; border: 0; background: transparent; min-width: 0; width: 100%; color: var(--ink); }
.search-box:focus-within { border-color: #8ebcb0; box-shadow: 0 0 0 3px #e2f4ed; }
.select { min-height: 39px; border: 1px solid var(--line); background: white; color: var(--ink); padding: 0 10px; border-radius: 10px; font-size: 11px; max-width: 100%; }
.table-bottom { display: flex; justify-content: space-between; padding: 14px 19px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); gap: 15px; align-items: center; }
.page-controls { display: flex; gap: 6px; }
.empty { text-align: center; padding: 45px 18px; color: var(--muted); }
.empty .empty-art { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 17px; color: var(--teal); background: #eaf4f0; }
.empty h3 { color: var(--ink); margin: 0; font-size: 15px; }
.empty p { margin: 4px 0 15px; font-size: 11px; }
.loading-state { display: grid; place-items: center; padding: 70px 20px; color: var(--muted); gap: 13px; }
.spinner { width: 25px; height: 25px; border: 3px solid #deebe6; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { padding: 34px; text-align: center; }
.error-state strong { color: var(--danger); }
.board-scroll { overflow-x: auto; padding: 1px 0 20px; }
.kanban { display: flex; gap: 12px; align-items: flex-start; padding: 0 1px 6px; min-height: 420px; }
.kanban-col { flex: 0 0 257px; border: 1px solid var(--line); background: #f0f3f1; border-radius: 15px; padding: 12px; min-height: 310px; transition: background .15s; }
.kanban-col.is-over { background: #deefe8; border-color: #7db6a7; }
.kanban-col-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; padding: 2px 3px 12px; }
.kanban-col-head .badge { padding: 2px 6px; }
.col-count { margin-inline-start: auto; background: #e2e8e5; font-family: var(--font-en); border-radius: 6px; padding: 1px 8px; color: #556a69; }
.kanban-card { padding: 15px; background: #fff; border: 1px solid #e1e8e4; border-radius: 12px; margin-bottom: 9px; box-shadow: 0 4px 11px rgba(27,65,63,.03); cursor: grab; }
.kanban-card:focus-visible, .kanban-card:hover { border-color: #a1c7bb; }
.kanban-card:active { cursor: grabbing; }
.kanban-card.dragging { opacity: .45; }
.kanban-card h3 { margin: 0 0 4px; font-size: 12px; line-height: 1.5; }
.kanban-card .value { font-family: var(--font-en); font-size: 18px; font-weight: 800; letter-spacing: -.04em; margin: 13px 0 9px; color: var(--petrol); }
.kanban-card .card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid #eef1ee; }
.progress-track { height: 4px; background: #e7eeea; border-radius: 7px; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: 7px; background: var(--teal); }
.mini-select { border: 0; background: #f1f5f3; padding: 5px 7px; font-size: 10px; border-radius: 7px; color: var(--ink); max-width: 125px; }
.task-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,.7fr); gap: 17px; }
.task-item { display: flex; align-items: flex-start; gap: 13px; padding: 17px 20px; border-bottom: 1px solid #edf1ee; }
.task-item:last-child { border: 0; }
.task-item:hover { background: #fbfcfb; }
.task-item .task-check { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #c8d8d3; background: #fff; color: transparent; border-radius: 8px; margin-top: 2px; }
.task-item .task-check:hover { border-color: var(--teal); }
.task-item .task-check.checked { background: var(--teal); color: #fff; border-color: var(--teal); }
.task-body { flex: 1; min-width: 0; }
.task-body strong { display: block; font-size: 12px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 10px; margin-top: 5px; }
.task-item.done .task-body strong { text-decoration: line-through; color: #93a4a2; }
.reminder-panel { padding: 22px; }
.reminder-large { font-family: var(--font-en); font-size: 56px; line-height: 1.15; font-weight: 800; letter-spacing: -.06em; color: var(--danger); }
.reminder-desc { color: var(--muted); font-size: 11px; margin: 4px 0 24px; }
.reminder-info { border-top: 1px solid var(--line); padding-top: 19px; display: grid; gap: 14px; }
.report-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(300px,1fr); gap: 17px; margin-top: 18px; }
.report-card { padding: 22px 24px; }
.report-card h2 { margin: 0 0 20px; font-size: 15px; }
.bar-row { display: grid; grid-template-columns: 115px minmax(0,1fr) 38px; gap: 14px; align-items: center; margin-bottom: 16px; font-size: 11px; }
.bar-row .bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-track { height: 9px; background: #eef2ef; border-radius: 5px; overflow: hidden; }
.bar-row .bar-track span { display: block; height: 100%; background: var(--teal); border-radius: 5px; }
.bar-row .bar-value { text-align: end; font-family: var(--font-en); font-weight: 800; }
.month-chart { display: flex; align-items: flex-end; gap: 10px; height: 210px; margin-top: 20px; border-bottom: 1px solid #d8e4dd; }
.month-item { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: end; align-items: center; height: 100%; gap: 5px; position: relative; }
.month-bars { width: min(100%,42px); display: flex; align-items: flex-end; gap: 3px; height: calc(100% - 25px); justify-content: center; }
.month-bars span { width: 50%; border-radius: 5px 5px 0 0; min-height: 2px; background: #94bbb0; }
.month-bars span:last-child { background: var(--teal); }
.month-label { font-size: 9px; color: var(--muted); font-family: var(--font-en); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(245px,1fr)); gap: 14px; }
.team-card { padding: 22px; }
.team-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.team-card-top .user-avatar { width: 46px; height: 46px; border-radius: 13px; font-size: 16px; }
.team-card h3 { margin: 0; font-size: 13px; }
.team-card p { margin: 0; color: var(--muted); font-size: 11px; }
.team-card-bottom { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.demo-banner { background: #fff1dc; color: #875319; padding: 8px 16px; text-align: center; font-size: 11px; font-weight: 800; border-bottom: 1px solid #f4d6a4; }
.demo-banner a { text-decoration: underline; }
.mobile-tabs { display: none; }
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(11, 30, 37, .48); display: flex; justify-content: flex-end; }
html[dir="ltr"] .overlay { justify-content: flex-start; }
.drawer { height: 100%; width: min(100%, 550px); overflow-y: auto; background: #fff; box-shadow: 0 0 80px rgba(0,0,0,.15); animation: drawer-in .2s var(--ease); }
@keyframes drawer-in { from { opacity: .7; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
html[dir="ltr"] .drawer { animation-name: drawer-in-ltr; }
@keyframes drawer-in-ltr { from { opacity: .7; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.drawer-header { padding: 23px 25px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.drawer-header h2 { font-size: 19px; line-height: 1.4; margin: 0; }
.drawer-header p { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.drawer-body { padding: 23px 25px; }
.drawer-footer { position: sticky; bottom: 0; padding: 14px 25px 20px; border-top: 1px solid var(--line); background: #fff; display: flex; gap: 9px; z-index: 2; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 13px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { color: #536b71; font-size: 11px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dce5e2; background: #fff; border-radius: 9px; color: var(--ink); padding: 10px 12px; outline: 0; min-height: 42px; font-size: 12px; }
.field textarea { min-height: 95px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #7fb1a4; box-shadow: 0 0 0 3px #ebf5f0; }
.field input::placeholder, .field textarea::placeholder { color: #a8b4b1; }
.required { color: var(--danger); }
.drawer-tabs { display: flex; padding: 0 24px; gap: 21px; border-bottom: 1px solid var(--line); }
.drawer-tab { border: 0; background: transparent; padding: 14px 2px; color: var(--muted); font-size: 11px; font-weight: 800; border-bottom: 2px solid transparent; }
.drawer-tab.active { color: var(--teal); border-color: var(--teal); }
.detail-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 17px; }
.detail-stat { background: #f5f8f6; border-radius: 10px; padding: 12px; }
.detail-stat small { display: block; color: var(--muted); font-size: 10px; }
.detail-stat strong { display: block; font-size: 12px; word-wrap: break-word; }
.timeline { border-inline-start: 2px solid #dfe9e4; margin-inline-start: 7px; padding-inline-start: 18px; }
.timeline-item { position: relative; padding: 0 0 20px; }
.timeline-item:before { content: ''; position: absolute; inset-inline-start: -25px; top: 7px; height: 10px; width: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px #e9f4ef; }
.timeline-item strong { display: block; font-size: 12px; margin-bottom: 2px; white-space: normal; overflow-wrap: anywhere; }
.timeline-item p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #576e73; font-size: 11px; }
.timeline-item time { font-size: 10px; color: #96a7a6; }
.detail-latest { background: #f0f7f2; border-inline-start: 4px solid var(--teal); padding: 13px; border-radius: 8px; margin-bottom: 20px; }
.detail-latest p { margin: 4px 0 0; font-size: 12px; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-section-label { font-size: 11px; font-weight: 800; color: var(--ink); padding-bottom: 10px; margin: 21px 0 14px; border-bottom: 1px solid var(--line); }
.modal { margin: auto; border-radius: 18px; background: #fff; width: min(92vw,470px); max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.23); }
.modal .drawer-body { padding: 24px; }
.modal .drawer-header { padding: 20px 24px; }
.modal .drawer-footer { padding: 13px 24px 20px; }
.toast-stack { position: fixed; bottom: 24px; inset-inline-start: 25px; z-index: 140; display: grid; gap: 8px; width: min(360px,calc(100vw - 40px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; background: #1d4146; box-shadow: 0 10px 40px rgba(0,0,0,.16); border-radius: 11px; color: #fff; padding: 12px 15px; font-size: 12px; pointer-events: auto; }
.toast.error { background: #9d4145; }
.toast button { margin-inline-start: auto; background: none; color: inherit; border: 0; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(450px,1.08fr) minmax(400px,.92fr); background: #fff; }
.auth-art { padding: clamp(34px,5vw,76px); color: #fff; background: var(--petrol); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art:before { content: ''; position: absolute; width: 750px; height: 750px; border: 1px solid rgba(227,243,231,.12); border-radius: 50%; inset-inline-end: -220px; top: 7%; box-shadow: 0 0 0 100px rgba(224,244,236,.045), 0 0 0 200px rgba(224,244,236,.024); }
.auth-art-content { z-index: 2; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-art h1 { font-size: clamp(39px,4.2vw,67px); line-height: 1.27; letter-spacing: -.04em; font-weight: 800; margin: 0 0 20px; max-width: 570px; }
.auth-art p { color: #b0ccca; max-width: 410px; margin: 0; font-size: 14px; }
.auth-pulse { margin-top: 50px; width: max-content; max-width: 100%; border: 1px solid #436269; padding: 12px 18px; background: #23444c; border-radius: 13px; display: flex; align-items: center; gap: 10px; color: #d4e8e1; font-size: 11px; }
.auth-pulse .pulse-dot { width: 9px; height: 9px; border-radius: 100%; background: #b9e6d3; box-shadow: 0 0 0 6px rgba(185,230,211,.1); }
.auth-form-side { padding: 35px clamp(28px,6vw,100px); display: flex; align-items: center; justify-content: center; position: relative; }
.auth-language { position: absolute; top: 33px; inset-inline-end: 42px; }
.auth-form { width: 100%; max-width: 385px; }
.auth-form h2 { font-size: 31px; line-height: 1.4; margin: 0 0 6px; letter-spacing: -.04em; }
.auth-form > p { margin: 0 0 34px; color: var(--muted); font-size: 12px; }
.auth-form .field { margin-bottom: 18px; }
.auth-form .field input { min-height: 50px; font-size: 13px; }
.auth-form .btn { width: 100%; min-height: 50px; font-size: 13px; margin-top: 10px; }
.auth-caption { color: #9badaa; font-size: 10px; margin-top: 27px; text-align: center; }
.auth-error { background: var(--danger-soft); border: 1px solid #f5d0d1; color: #a83e48; padding: 10px 13px; border-radius: 9px; font-size: 11px; margin-bottom: 18px; }
.auth-preview-link { display: inline-block; font-size: 11px; margin-top: 12px; color: var(--teal); font-weight: 800; }
@media(max-width:1200px) { .sidebar { padding-inline: 12px; } .app-layout { grid-template-columns: 218px minmax(0,1fr); } .dashboard-grid { grid-template-columns: minmax(0,1.2fr) minmax(240px,.8fr); } .stat-item { padding-inline: 12px; } .stat-value { font-size: 24px; } }
@media(max-width:1030px) { .dashboard-grid, .workspace-grid, .report-grid, .task-grid { grid-template-columns: 1fr; } .quick-actions { grid-template-columns: repeat(3,1fr); } .quick-action { align-items: flex-start; } .quick-action .end-icon { display: none; } .auth-layout { grid-template-columns: 1fr 1fr; } .auth-art h1 { font-size: 38px; } }
@media(max-width:780px) {
  .app-layout { display: block; }
  .sidebar { position: fixed; height: 100dvh; width: min(82vw,290px); top: 0; inset-inline-start: 0; z-index: 100; transform: translateX(110%); transition: transform .22s var(--ease); }
  html[dir="ltr"] .sidebar { transform: translateX(-110%); }
  .sidebar.is-open, html[dir="ltr"] .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(8,23,29,.42); z-index: 99; }
  .menu-toggle { display: inline-flex; }
  .topbar { min-height: 68px; padding: 12px 18px; }
  .top-date { display: none; }
  .page { padding: 26px 18px 100px; }
  .page-header { align-items: flex-start; }
  .page-title { font-size: 27px; }
  .stat-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .stat-item:nth-child(4) { border-inline-end: 0; }
  .mobile-tabs { position: fixed; bottom: 0; left: 0; right: 0; padding: 8px 12px max(9px,env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); display: flex; justify-content: space-around; gap: 3px; z-index: 40; box-shadow: 0 -4px 30px rgba(29,62,61,.05); }
  .mobile-tab { border: 0; background: transparent; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #829494; font-size: 9px; padding: 5px 0; font-weight: 800; border-radius: 9px; }
  .mobile-tab.active { color: var(--teal); background: #ecf6f1; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form-side { min-height: 100dvh; }
}
@media(max-width:520px) {
  .topbar { padding: 11px 14px; }
  .top-pill { font-size: 10px; padding: 0 10px; }
  .top-actions { gap: 6px; }
  .top-avatar .user-name { display: none; }
  .page { padding: 22px 13px 96px; }
  .page-header { gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
  .page-header .page-actions { width: 100%; }
  .page-header .page-actions .btn-primary { flex: 1; }
  .page-title { font-size: 25px; }
  .dashboard-grid { gap: 13px; }
  .focus-card { padding: 19px 16px; }
  .focus-head h2 { font-size: 18px; }
  .focus-date { font-size: 9px; padding: 5px 7px; }
  .focus-item { padding: 10px; gap: 8px; }
  .focus-badge { padding: 3px 6px; font-size: 9px; }
  .quick-card { padding: 19px; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-action { align-items: center; }
  .stat-strip { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 0; }
  .stat-item { padding: 13px 17px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat-item:nth-child(odd) { border-inline-end: 0; }
  .stat-item:nth-child(4) { border-inline-end: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: 0; }
  .stat-value { font-size: 24px; }
  .card-head { padding: 19px 17px 11px; }
  .pipeline-content, .activity-list { padding-inline: 17px; }
  .toolbar { padding: 13px; }
  .toolbar .search-box { flex-basis: 100%; }
  .toolbar .select { flex: 1; }
  .data-table { min-width: 780px; }
  .table-bottom { padding-inline: 12px; }
  .drawer-header, .drawer-body { padding-inline: 17px; }
  .drawer-footer { padding-inline: 17px; }
  .drawer-tabs { padding-inline: 17px; }
  .form-grid { gap: 14px 10px; }
  .reminder-panel, .report-card { padding: 17px; }
  .bar-row { grid-template-columns: 83px minmax(0,1fr) 30px; gap: 9px; }
  .auth-form-side { padding: 26px; }
  .auth-form h2 { font-size: 27px; }
  .auth-language { top: 23px; inset-inline-end: 25px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* Canonical Call Adapt static mark; original source CSS is untouched. */
.brand-mark { width: 41px; height: 41px; display: block; object-fit: contain; flex-shrink: 0; }
.sidebar .brand-mark { width: 39px; height: 39px; }
