/* Work Portal — styles. Brand colors come from CSS variables set in Brand settings. */
:root {
	--wmp-primary: #0A5CFF;
	--wmp-primary-dark: #0647D1;
	--wmp-accent: #19D3FF;
	--wmp-sidebar: #081A33;
	--ink: #0B1B33;
	--ink-2: #2B3A55;
	--muted: #55627A;
	--faint: #6B778C;
	--line: #E3E8F0;
	--line-2: #EEF1F5;
	--ground: #F3F5F9;
	--card: #FFFFFF;
	--soft: #F3F6FC;
	--danger: #B42318;
	--display: 'Sora', 'Segoe UI', system-ui, sans-serif;
	--body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--r-lg: 18px;
	--r-md: 12px;
	--r-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--body); color: var(--ink); background: var(--ground); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--wmp-primary-dark); }
a:hover { color: var(--wmp-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--wmp-accent); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wmp-muted { color: var(--muted); margin: 0; }
.wmp-small { font-size: 13px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }

/* Buttons */
.wmp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid #DCE2EB; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.wmp-btn:hover { border-color: #C5CEDC; color: var(--ink); }
.wmp-btn--primary { background: var(--wmp-primary); border-color: var(--wmp-primary); color: #fff; font-weight: 700; }
.wmp-btn--primary:hover { background: var(--wmp-primary-dark); border-color: var(--wmp-primary-dark); color: #fff; }
.wmp-btn--danger { color: var(--danger); }
.wmp-btn--ghost { border-color: transparent; background: transparent; }
.wmp-btn--lg { min-height: 52px; font-size: 16px; }
.wmp-btn[disabled] { opacity: .6; cursor: progress; }
.wmp-btn svg { width: 18px; height: 18px; }

/* Forms */
.wmp-field { display: flex; flex-direction: column; gap: 8px; }
.wmp-field label, .wmp-label { font-size: 14px; font-weight: 600; }
.wmp-field__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.wmp-field__row a { font-weight: 600; text-decoration: none; }
.wmp-input, .wmp-field input, .wmp-field select, .wmp-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #D5DCE7; border-radius: var(--r-md); background: #fff; font-size: 15px; }
.wmp-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.wmp-input:focus, .wmp-field input:focus, .wmp-field select:focus, .wmp-field textarea:focus { outline: none; border-color: var(--wmp-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wmp-primary) 20%, transparent); }
.wmp-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #3A4760; }
.wmp-check input { width: 18px; height: 18px; accent-color: var(--wmp-primary); }
.wmp-alert { padding: 12px 14px; border-radius: var(--r-md); background: #E8EEF9; color: var(--ink-2); font-size: 14px; }
.wmp-alert--error { background: #FDECEA; color: #8A1C12; }

/* ---------- Login ---------- */
.wmp-login { display: grid; grid-template-columns: minmax(0, 47%) minmax(0, 1fr); min-height: 100vh; }
.wmp-login__brand { position: relative; overflow: hidden; background: var(--wmp-sidebar); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.wmp-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.wmp-ring--lg { width: 460px; height: 460px; right: -120px; top: -120px; }
.wmp-ring--sm { width: 300px; height: 300px; right: -40px; top: -40px; }
.wmp-px { position: absolute; width: 28px; height: 28px; border-radius: 4px; }
.wmp-px--1 { right: 96px; bottom: 132px; background: var(--wmp-accent); }
.wmp-px--2 { right: 132px; bottom: 96px; background: var(--wmp-primary); }
.wmp-px--3 { right: 60px; bottom: 60px; background: rgba(255,255,255,.1); }
.wmp-px--4 { right: 40px; bottom: 176px; width: 16px; height: 16px; background: rgba(255,255,255,.06); }
.wmp-login__logo { position: relative; width: 240px; max-width: 70%; height: auto; }
.wmp-login__pitch { position: relative; max-width: 480px; display: flex; flex-direction: column; gap: 22px; }
.wmp-login__kicker { margin: 0; font-size: 14px; font-weight: 700; color: var(--wmp-accent); }
.wmp-login__pitch h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; color: #fff; }
.wmp-login__lead { margin: 0; font-size: 17px; line-height: 1.6; color: #B7C4D9; }
.wmp-login__features { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wmp-login__features li { display: flex; align-items: center; gap: 14px; color: #E6ECF5; font-size: 15px; }
.wmp-feat-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: var(--wmp-accent); flex-shrink: 0; }
.wmp-login__foot { position: relative; margin: 0; font-size: 13px; color: #8FA0BA; }
.wmp-login__form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.wmp-login__form { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 20px; }
.wmp-login__mark { width: 48px; height: auto; }
.wmp-login__form h2 { font-size: 32px; margin-top: 4px; }
.wmp-login__form .wmp-muted { margin-top: -12px; }
.wmp-login__form .wmp-small { margin-top: 4px; line-height: 1.6; }
.wmp-pass { position: relative; }
.wmp-pass input { padding-right: 52px; }
.wmp-pass__toggle { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.wmp-center-card { max-width: 460px; margin: 12vh auto; padding: 40px; background: #fff; border-radius: 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.wmp-center-card h1 { font-size: 24px; }

@media (max-width: 900px) {
	.wmp-login { grid-template-columns: 1fr; }
	.wmp-login__brand { padding: 28px 24px; gap: 20px; }
	.wmp-login__pitch, .wmp-px, .wmp-ring { display: none; }
	.wmp-login__foot { display: none; }
	.wmp-login__logo { width: 180px; }
}

/* ---------- App shell ---------- */
.wmp-app { display: flex; min-height: 100vh; }
.wmp-boot { margin: auto; color: var(--muted); }
.wmp-side { width: 252px; flex-shrink: 0; background: var(--wmp-sidebar); padding: 28px 16px; display: flex; flex-direction: column; gap: 32px; position: sticky; top: 0; height: 100vh; }
.wmp-side__logo { width: 168px; max-width: 100%; height: auto; margin-left: 10px; }
.wmp-nav { display: flex; flex-direction: column; gap: 4px; }
.wmp-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #B7C4D9; font-size: 15px; font-weight: 500; text-decoration: none; }
.wmp-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.wmp-nav a.is-active { background: var(--wmp-primary); color: #fff; font-weight: 600; }
.wmp-nav__count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--wmp-accent); color: var(--wmp-sidebar); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.wmp-side__user { margin-top: auto; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); display: flex; align-items: center; gap: 12px; }
.wmp-side__user b { display: block; font-size: 14px; color: #fff; }
.wmp-side__user small { display: block; font-size: 12px; color: #9FB0C9; }
.wmp-side__user a { margin-left: auto; width: 44px; height: 44px; border-radius: 10px; color: #9FB0C9; display: grid; place-items: center; }
.wmp-side__user a:hover { background: rgba(255,255,255,.08); color: #fff; }
.wmp-main:focus { outline: none; }
.wmp-main { flex: 1; min-width: 0; padding: 28px 36px 48px; display: flex; flex-direction: column; gap: 24px; }
.wmp-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wmp-head h1 { font-size: 28px; }
.wmp-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.wmp-head__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.wmp-avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.wmp-avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.wmp-avatar--sm { width: 26px; height: 26px; font-size: 10px; }

/* Cards */
.wmp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wmp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wmp-card__head h2 { font-size: 18px; }
.wmp-card__head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.wmp-grid { display: grid; gap: 20px; }
.wmp-grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.wmp-grid--1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wmp-grid--17-1 { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.wmp-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.wmp-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.wmp-kpi span { font-size: 13px; font-weight: 600; color: var(--muted); }
.wmp-kpi b { font-family: var(--display); font-size: 30px; font-weight: 600; }
.wmp-kpi small { font-size: 13px; color: var(--muted); }
.wmp-kpi small.is-bad { color: var(--danger); }
.wmp-kpi small.is-good { color: #166534; }
.wmp-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wmp-stat { background: var(--soft); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.wmp-stat span { font-size: 13px; color: var(--muted); }
.wmp-stat b { font-family: var(--display); font-size: 24px; font-weight: 600; }

/* Tables */
.wmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wmp-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--faint); padding: 0 8px 10px; white-space: nowrap; }
.wmp-table td.nowrap, .wmp-table td .is-overdue { white-space: nowrap; }
.wmp-table td { padding: 12px 8px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.wmp-table tr.is-link { cursor: pointer; }
.wmp-table tr.is-link:hover td { background: #F8FAFD; }
.wmp-scroll { overflow-x: auto; }
.wmp-person { display: flex; align-items: center; gap: 10px; }
.wmp-person b { display: block; font-weight: 600; }
.wmp-person small { display: block; font-size: 12px; color: var(--faint); }
.wmp-ellipsis { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3A4760; }

/* Badges */
.wmp-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.wmp-badge--pill { border-radius: 999px; }
.p-urgent { background: #FDE7DC; color: #9A3412; }
.p-high { background: #FEF3C7; color: #92400E; }
.p-medium { background: #DBEAFE; color: #1E40AF; }
.p-low { background: #EEF1F5; color: #475569; }
.s-working { background: #DCFCE7; color: #166534; }
.s-out { background: #E2E8F0; color: #334155; }
.s-absent { background: #FDE7DC; color: #9A3412; }
.s-late { background: #FEF3C7; color: #92400E; }
.st { background: #EEF1F5; color: #334155; }
.st-in_progress { background: #DBEAFE; color: #1E40AF; }
.st-waiting_client { background: #E2E8F0; color: #1E293B; }
.st-in_review { background: #E0F7FE; color: #075985; }
.st-revision { background: #FFEDD5; color: #9A3412; }
.st-completed { background: #DCFCE7; color: #166534; }
.is-overdue { color: var(--danger) !important; font-weight: 700; }

/* Status bar */
.wmp-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; background: var(--line-2); }
.wmp-bar i { display: block; height: 100%; }
.wmp-legend { display: flex; flex-direction: column; gap: 10px; }
.wmp-legend div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #3A4760; }
.wmp-legend i { width: 12px; height: 12px; border-radius: 3px; }
.wmp-legend b { margin-left: auto; color: var(--ink); }
.c-todo { background: #94A3B8; } .c-in_progress { background: var(--wmp-primary); } .c-waiting_client { background: var(--wmp-sidebar); }
.c-in_review { background: var(--wmp-accent); } .c-revision { background: #F59E0B; } .c-completed { background: #16A34A; }
.wmp-rate { margin-top: auto; padding: 14px; border-radius: var(--r-md); background: var(--soft); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #3A4760; }
.wmp-rate b { font-family: var(--display); font-size: 20px; color: var(--wmp-primary-dark); }
.wmp-big { font-family: var(--display); font-size: 36px; font-weight: 600; line-height: 1; }
.wmp-meter { display: grid; grid-template-columns: 130px 1fr 64px; gap: 14px; align-items: center; font-size: 14px; }
.wmp-meter__track { height: 10px; border-radius: 999px; background: #EAF0FB; overflow: hidden; }
.wmp-meter__fill { height: 100%; border-radius: 999px; background: var(--wmp-primary); }
.wmp-meter span:last-child { text-align: right; color: #3A4760; }

/* Check-in card */
.wmp-clock-card { position: relative; overflow: hidden; background: var(--wmp-sidebar); color: #fff; border-radius: 20px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wmp-clock-card::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); pointer-events: none; }
.wmp-clock-card__state { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #B7C4D9; }
.wmp-dot { width: 10px; height: 10px; border-radius: 50%; background: #94A3B8; }
.wmp-dot.is-on { background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.wmp-clock { font-family: var(--display); font-size: clamp(40px, 5vw, 60px); font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.1; margin: 10px 0; }
.wmp-clock-card__meta { display: flex; gap: 6px 24px; flex-wrap: wrap; font-size: 14px; color: #B7C4D9; }
.wmp-clock-card__meta b { color: #fff; }
.wmp-clock-btn { position: relative; z-index: 1; min-width: 200px; min-height: 60px; border-radius: 14px; border: 0; font-size: 17px; font-weight: 700; cursor: pointer; background: var(--wmp-primary); color: #fff; }
.wmp-clock-btn.is-on { background: #fff; color: var(--wmp-sidebar); }
.wmp-clock-btn:hover { filter: brightness(1.05); }

/* Task list rows */
.wmp-trow { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; text-align: left; width: 100%; }
.wmp-trow:hover { border-color: #BFD3FF; background: #F8FAFF; }
.wmp-trow__bar { width: 4px; align-self: stretch; min-height: 36px; border-radius: 4px; }
.bar-urgent { background: #EA580C; } .bar-high { background: #D97706; } .bar-medium { background: var(--wmp-primary); } .bar-low { background: #94A3B8; }
.wmp-trow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wmp-trow__body b { font-size: 15px; font-weight: 600; }
.wmp-trow__body small { font-size: 12px; color: var(--faint); }
.wmp-list { display: flex; flex-direction: column; gap: 10px; }

/* Board */
.wmp-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wmp-toolbar .wmp-input { min-height: 42px; width: auto; font-size: 14px; }
.wmp-toolbar .wmp-search { width: 240px; }
.wmp-seg { display: inline-flex; padding: 4px; border-radius: var(--r-md); background: #E6EAF1; gap: 2px; }
.wmp-seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #3A4760; font-size: 14px; font-weight: 600; cursor: pointer; }
.wmp-seg button.is-active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(11,27,51,.08); }
.wmp-board { display: grid; grid-template-columns: repeat(7, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.wmp-col { background: #E9EDF3; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; transition: background .15s; }
.wmp-col.is-over { background: #DCE6F8; }
.wmp-col__head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 6px; font-size: 14px; font-weight: 700; }
.wmp-col__head i { width: 10px; height: 10px; border-radius: 3px; }
.wmp-col__count { padding: 2px 8px; border-radius: 999px; background: #fff; font-size: 12px; color: #3A4760; }
.wmp-kard { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,27,51,.05); cursor: pointer; text-align: left; width: 100%; }
.wmp-kard:hover { border-color: #BFD3FF; }
.wmp-kard.is-late { border-color: #F5C2B3; }
.wmp-kard.is-dragging { opacity: .5; }
.wmp-kard b { font-size: 14px; font-weight: 600; line-height: 1.4; }
.wmp-kard small { font-size: 12px; color: var(--faint); }
.wmp-kard__foot { display: flex; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.wmp-kard__foot span { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.wmp-kard__foot svg { width: 14px; height: 14px; }
.wmp-kard__foot .wmp-avatar { margin-left: auto; }
.wmp-empty { padding: 20px 12px; text-align: center; color: var(--faint); font-size: 13px; }
.wmp-empty-state { padding: 48px 24px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; color: var(--muted); }
.wmp-empty-state h3 { color: var(--ink); font-size: 18px; }

/* Task detail */
.wmp-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.wmp-crumbs a { font-weight: 600; text-decoration: none; }
.wmp-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.wmp-desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; }
.wmp-details div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.wmp-details div span:first-child { color: var(--muted); }
.wmp-details div span:last-child { font-weight: 600; text-align: right; }
.wmp-activity { display: flex; flex-direction: column; gap: 12px; }
.wmp-activity div { display: flex; gap: 12px; font-size: 13px; color: var(--ink-2); }
.wmp-activity i { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--wmp-primary); flex-shrink: 0; }
.wmp-activity small { display: block; color: var(--faint); font-size: 12px; }
.wmp-status-select { min-height: 46px; padding: 0 14px; border: 0; border-radius: var(--r-md); background: var(--wmp-primary); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.wmp-status-select option { color: var(--ink); background: #fff; }
.wmp-soon { padding: 14px; border-radius: var(--r-md); background: var(--soft); color: var(--muted); font-size: 14px; }

/* Modal */
.wmp-modal { position: fixed; inset: 0; background: rgba(8, 26, 51, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.wmp-modal__box { width: 100%; max-width: 620px; background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px rgba(8,26,51,.25); }
.wmp-modal__head { display: flex; align-items: center; justify-content: space-between; }
.wmp-modal__head h2 { font-size: 22px; }
.wmp-modal__foot { display: flex; justify-content: flex-end; gap: 10px; }
.wmp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wmp-icon-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.wmp-icon-btn:hover { background: var(--line-2); }
.wmp-form-error { color: var(--danger); font-size: 14px; font-weight: 600; min-height: 0; }

/* Toast */
.wmp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: opacity .2s, transform .2s; z-index: 60; }
.wmp-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.wmp-toast.is-error { background: #8A1C12; }

/* Mobile */
.wmp-mobile-bar { display: none; }
@media (max-width: 1200px) {
	.wmp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
	.wmp-grid--2-1, .wmp-grid--1-1, .wmp-grid--17-1 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
	.wmp-app { flex-direction: column; }
	.wmp-side { display: none; }
	.wmp-side.is-open { display: flex; position: fixed; inset: 0; z-index: 40; width: 100%; height: 100vh; }
	.wmp-mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--wmp-sidebar); position: sticky; top: 0; z-index: 30; }
	.wmp-mobile-bar img { height: 30px; width: auto; }
	.wmp-mobile-bar button { color: #fff; }
	.wmp-main { padding: 20px 16px 40px; }
	.wmp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wmp-form-grid { grid-template-columns: 1fr; }
	.wmp-clock-btn { width: 100%; }
	.wmp-toolbar .wmp-search { width: 100%; }
	.wmp-meter { grid-template-columns: 90px 1fr 54px; }
	.wmp-trow { flex-wrap: wrap; }
	.wmp-trow__body { flex-basis: calc(100% - 24px); }
	.wmp-trow .wmp-badge:first-of-type { margin-left: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Phase 2 ---------- */
.st-request { background: #EDE9FE; color: #5B21B6; }
.st-client_review { background: #CCFBF1; color: #115E59; }
.st-declined { background: #F1F5F9; color: #64748B; }
.c-client_review { background: #14B8A6; }
.wmp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wmp-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wmp-kpi b.is-bad { color: var(--danger); }
.wmp-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.wmp-card--accent { border: 1.5px solid color-mix(in srgb, var(--wmp-primary) 35%, #fff); box-shadow: 0 8px 24px color-mix(in srgb, var(--wmp-primary) 10%, transparent); }
.wmp-row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.wmp-row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wmp-count { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.wmp-count svg { width: 14px; height: 14px; }
.wmp-seg--sm button { min-height: 32px; padding: 0 10px; font-size: 13px; }
.wmp-linkbtn { border: 0; background: none; padding: 6px 0; color: var(--wmp-primary-dark); font-weight: 600; font-size: 13px; cursor: pointer; }
.wmp-linkbtn:hover { text-decoration: underline; }

/* Tags on notes */
.wmp-tag { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #E2E8F0; color: #1E293B; }
.wmp-tag--client { background: #CCFBF1; color: #115E59; }
.wmp-tag--team { background: #DBEAFE; color: #1E40AF; }
.wmp-tag--manager { background: #EDE9FE; color: #5B21B6; }

/* Sidebar client card */
.wmp-side__client { background: #fff; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; margin-top: -12px; }
.wmp-side__client img { max-height: 36px; max-width: 100%; width: auto; align-self: flex-start; }
.wmp-side__client b { color: var(--ink); font-size: 15px; }
.wmp-side__client small { color: var(--faint); font-size: 12px; }

/* Mini notes (dashboards) */
.wmp-mini-notes { display: flex; flex-direction: column; gap: 10px; }
.wmp-mini-note { text-align: left; border: 0; width: 100%; background: #F7F9FC; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.wmp-mini-note:hover { background: #EEF3FB; }
.wmp-mini-note__head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wmp-mini-note__head small { margin-left: auto; color: var(--faint); font-size: 12px; }
.wmp-mini-note__task { font-size: 12px; font-weight: 600; color: var(--wmp-primary-dark); }
.wmp-mini-note__body { font-size: 14px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Requests */
.wmp-req-list { display: flex; flex-direction: column; }
.wmp-req { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.wmp-req:first-child { border-top: 0; }
.wmp-req__body { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.wmp-req__body b { font-size: 14px; }
.wmp-req__body small { font-size: 12px; color: var(--faint); }
.wmp-req__actions { display: flex; gap: 8px; }
.wmp-req__actions .wmp-btn { min-height: 40px; padding: 0 12px; font-size: 13px; }

/* Banners */
.wmp-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #EEF3FF; color: var(--ink-2); flex-wrap: wrap; }
.wmp-banner > svg { color: var(--wmp-primary); }
.wmp-banner div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 220px; }
.wmp-banner b { color: var(--ink); font-size: 15px; }
.wmp-banner span { font-size: 14px; }
.wmp-banner--warn { background: #FEF3C7; }
.wmp-banner--warn > svg { color: #92400E; }
.wmp-banner--muted { background: #F1F5F9; }
.wmp-banner--action { background: #fff; border: 1.5px solid color-mix(in srgb, var(--wmp-primary) 35%, #fff); }
.wmp-banner .wmp-banner__actions { flex-direction: row; flex: 0 0 auto; min-width: 0; gap: 8px; flex-wrap: wrap; }

/* Delivery links */
.wmp-links { display: flex; flex-direction: column; gap: 8px; }
.wmp-linkrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.wmp-linkrow > svg { color: var(--wmp-primary-dark); }
.wmp-linkrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wmp-linkrow__body a { font-weight: 600; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wmp-linkrow__body small { font-size: 12px; color: var(--faint); }
.wmp-linkrow .wmp-btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.wmp-addlink { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 8px; }
.wmp-addlink .wmp-input { min-height: 44px; font-size: 14px; }

/* Notes thread */
.wmp-thread { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.wmp-note { display: flex; gap: 12px; }
.wmp-note__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wmp-note__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.wmp-note__head small { color: var(--faint); font-size: 12px; margin-left: auto; }
.wmp-note p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); white-space: pre-wrap; word-wrap: break-word; }
.wmp-note__del { border: 0; background: none; color: var(--faint); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; }
.wmp-note__del:hover { background: #FDECEA; color: var(--danger); }
.wmp-note__del svg { width: 16px; height: 16px; }
.wmp-replies { margin-left: 46px; padding-left: 16px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.wmp-reply-slot { margin-left: 46px; }
.wmp-reply-form { display: flex; flex-direction: column; gap: 8px; }
.wmp-reply-form textarea, .wmp-composer textarea { resize: vertical; line-height: 1.5; }
.wmp-composer { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }

/* Client login */
.wmp-client-body { min-height: 100vh; display: flex; flex-direction: column; }
.wmp-cl-top { padding: 22px 64px; display: flex; align-items: center; }
.wmp-cl-logos { display: flex; align-items: center; gap: 18px; }
.wmp-cl-client-logo { height: 44px; width: auto; max-width: 200px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.wmp-cl-client-name { font-family: var(--display); font-size: 20px; font-weight: 600; }
.wmp-cl-x { width: 16px; height: 16px; color: #8A96AB; stroke-width: 2.2; }
.wmp-cl-brand-logo { height: 36px; width: auto; }
.wmp-cl { flex: 1; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 460px); justify-content: center; align-items: center; gap: 72px; padding: 24px 64px 64px; }
.wmp-cl-pitch { display: flex; flex-direction: column; gap: 22px; }
.wmp-cl-pill { margin: 0; align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--wmp-primary); }
.wmp-cl-pitch h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
.wmp-cl-lead { margin: 0; font-size: 17px; line-height: 1.6; color: #3A4760; }
.wmp-cl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.wmp-cl-tiles div { background: #fff; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 600; }
.wmp-cl-tiles span { width: 36px; height: 36px; border-radius: 10px; background: var(--wmp-primary); color: #fff; display: grid; place-items: center; }
.wmp-cl-tiles svg { width: 18px; height: 18px; stroke-width: 2; }
.wmp-cl-card { background: #fff; border-radius: 24px; padding: 40px; box-shadow: 0 24px 60px rgba(11, 27, 51, .10); display: flex; flex-direction: column; gap: 20px; }
.wmp-cl-card h2 { font-size: 28px; }
.wmp-cl-card .wmp-muted { margin-top: -12px; }
.wmp-cl-card .wmp-field__row a { color: var(--wmp-primary); }
.wmp-cl-powered { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.wmp-cl-powered img { width: 18px; height: auto; }

@media (max-width: 1200px) {
	.wmp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
	.wmp-grid--3 { grid-template-columns: 1fr; }
	.wmp-cl { grid-template-columns: 1fr; gap: 32px; padding: 16px 20px 40px; }
	.wmp-cl-top { padding: 18px 20px; }
	.wmp-cl-tiles { display: none; }
}
@media (max-width: 820px) {
	.wmp-kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wmp-addlink { grid-template-columns: 1fr; }
	.wmp-replies, .wmp-reply-slot { margin-left: 12px; }
	.wmp-cl-card { padding: 28px 22px; }
	.wmp-cl-pitch h1 { font-size: 28px; }
	.wmp-cl-lead { display: none; }
}
