/* Westwood Hub. Brand: navy #14293A, blue #2E7DB8, gold #F6C445, cream #F7F3EA. */
:root {
	--navy: #14293A;
	--navy-2: #1D3A52;
	--navy-3: #0F2030;
	--blue: #2E7DB8;
	--blue-soft: #EAF2F9;
	--sky: #7FB4DC;
	--gold: #F6C445;
	--gold-soft: #FCF1D3;
	--cream: #F7F3EA;
	--bg: #F5F4F0;
	--surface: #fff;
	--surface-2: #FAF9F6;
	--line: #E6E3DB;
	--line-strong: #D6D2C7;
	--muted: #5A6B78;
	--faint: #8A97A2;
	--ok: #18693A;
	--ok-soft: #E3F3E8;
	--warn: #7A5C0E;
	--warn-soft: #FCF1D3;
	--error: #B42318;
	--error-soft: #FDECEA;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(20, 41, 58, .05), 0 1px 1px rgba(20, 41, 58, .03);
	--shadow: 0 1px 2px rgba(20, 41, 58, .04), 0 4px 12px rgba(20, 41, 58, .06);
	--shadow-lg: 0 2px 4px rgba(20, 41, 58, .04), 0 12px 32px rgba(20, 41, 58, .10);
	--side: 260px;
	--font-head: "Bricolage Grotesque", system-ui, sans-serif;
	--font-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
	--safe-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ww-hub-body { margin: 0; background: var(--bg); color: var(--navy); font-family: var(--font-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
button { font-family: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }
[hidden] { display: none !important; }
.ww-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ww-skip { position: absolute; left: -999px; top: 8px; z-index: 2000; padding: 10px 14px; background: #fff; border-radius: 8px; }
.ww-skip:focus { left: 8px; }
.ww-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid rgba(46, 125, 184, .45); outline-offset: 2px; }

/* Field renderer inside the Hub: cooler, crisper input borders. */
.ww-hub .wwf-form { --wwf-line: #D9DDE1; --wwf-soft: var(--surface-2); --wwf-muted: var(--muted); }

/* Boot + loading */
.ww-boot, .ww-loading { display: grid; place-items: center; gap: 12px; min-height: 40vh; color: var(--muted); }
.ww-loading { min-height: 120px; }
.ww-spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: ww-spin .8s linear infinite; }
@keyframes ww-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ww-spinner { animation-duration: 2s; } }

/* ---------- App layout ---------- */
.ww-app { min-height: 100vh; }
.ww-side {
	position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--side);
	display: flex; flex-direction: column; gap: 6px; padding: 18px 12px 14px;
	background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; overflow: hidden;
}
.ww-side > .ww-brand, .ww-side > .ww-nav-findwrap, .ww-side > .ww-user { flex: none; }
.ww-body { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.ww-top { display: none; }
.ww-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 36px 44px 120px; outline: none; }
.ww-tabbar, .ww-sheet { display: none; }

.ww-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: inherit; text-decoration: none; }
.ww-brand-mark { display: block; flex: none; width: 36px; height: 36px; object-fit: contain; }
.ww-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.ww-brand-text strong { font-family: var(--font-head); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.ww-brand-accent { color: var(--sky); }
.ww-brand-text small { margin-top: 2px; color: rgba(255,255,255,.55); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 10px; }

/* Sidebar: quick filter, then collapsible groups */
.ww-nav { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; margin: 0 -12px; padding: 4px 12px 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.ww-nav-findwrap { position: relative; margin: 0 2px 6px; }
.ww-nav-find-icon { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: rgba(255,255,255,.5); pointer-events: none; }
.ww-nav-find { width: 100%; height: 36px; padding: 6px 30px 6px 34px; border: 1px solid rgba(255,255,255,.10); border-radius: 9px; background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 14px; }
.ww-nav-find::placeholder { color: rgba(255,255,255,.5); }
.ww-nav-find:focus { outline: none; border-color: rgba(127,180,220,.6); background: rgba(255,255,255,.10); }
.ww-nav-findwrap::after { content: "/"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); pointer-events: none; }
.ww-nav-findwrap:focus-within::after { display: none; }
.ww-nav-group { display: flex; flex-direction: column; gap: 1px; }
.ww-nav-heading {
	display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 2px; padding: 6px 10px; border: 0; border-radius: 7px; background: none; cursor: pointer;
	font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.48); text-align: left;
}
.ww-nav-heading:hover { color: rgba(255,255,255,.8); }
.ww-nav-heading-text { flex: 1; }
.ww-nav-chev { width: 14px; height: 14px; transition: transform .15s; }
.ww-nav-heading-badge { display: none; }
.ww-nav-group.is-collapsed .ww-nav-chev { transform: rotate(-90deg); }
.ww-nav-group.is-collapsed .ww-nav-link:not(.is-active) { display: none; }
.ww-nav-group.is-collapsed .ww-nav-heading-badge { display: inline-grid; }
.ww-nav.is-filtering .ww-nav-items { display: flex !important; }
.ww-nav.is-filtering .ww-nav-heading { pointer-events: none; }
.ww-nav-items { display: flex; flex-direction: column; gap: 1px; }
.ww-nav-link { position: relative; display: flex; align-items: center; gap: 11px; min-height: 36px; padding: 7px 10px; border-radius: 8px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: 14px; }
.ww-nav-link .ww-icon { width: 18px; height: 18px; opacity: .8; }
.ww-nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.ww-nav-link.is-active { background: rgba(255,255,255,.11); color: #fff; }
.ww-nav-link.is-active .ww-icon { opacity: 1; stroke: var(--gold); }
.ww-nav-link.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.ww-nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ww-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; }

.ww-user { display: flex; flex-direction: column; gap: 1px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.10); }
.ww-user-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: #fff; text-decoration: none; }
.ww-user-link:hover { background: rgba(255,255,255,.07); }
.ww-user-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; font-size: 14px; }
.ww-user-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ww-user-text small { color: rgba(255,255,255,.55); font-size: 12px; }
.ww-side-extra { display: flex; align-items: center; gap: 11px; min-height: 32px; padding: 5px 10px; border-radius: 8px; color: rgba(255,255,255,.62); text-decoration: none; font-size: 13px; font-weight: 600; }
.ww-side-extra:hover { color: #fff; background: rgba(255,255,255,.07); }
.ww-side-extra .ww-icon { width: 16px; height: 16px; }

.ww-avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 13px; text-decoration: none; }
.ww-avatar--sm { width: 30px; height: 30px; font-size: 12px; background: var(--blue-soft); color: var(--blue); }
.ww-avatar--photo { object-fit: cover; object-position: center top; padding: 0; }
/* Linked account panel */
.ww-account { display: grid; gap: 10px; }
.ww-account-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.ww-account-title .ww-icon { width: 18px; height: 18px; color: var(--blue); }
.ww-account-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ww-account-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ww-account-who small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ww-account .ww-meta { margin-top: 0; }
.ww-account .ww-label { margin: 4px 0 -4px; font-weight: 700; font-size: 13px; }
.ww-account-role { width: 100%; }
.ww-account-note { margin: 0; font-size: 14px; }
.ww-account-alert { margin: 0; font-size: 13px; }
.ww-account-actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 -8px; }
.ww-account .ww-help { margin: 0; }
.ww-account-list { margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.ww-account-perms { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--blue-soft); }
.ww-account-perms > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; font-size: 14px; }
.ww-account-perms small { color: var(--muted); }
.ww-perms { display: grid; gap: 18px; margin-top: 8px; }
.ww-perms-legend { margin: 0 0 4px; }
.ww-perms-group-title { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ww-perms-rows { border: 1px solid var(--line); border-radius: 12px; }
.ww-perms-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; }
.ww-perms-row + .ww-perms-row { border-top: 1px solid var(--line); }
.ww-perms-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ww-perms-label small { color: var(--muted); font-size: 13px; }
.ww-perms-boxes { display: flex; gap: 14px; flex-shrink: 0; }
.ww-perms-box { font-weight: 500; font-size: 13px; min-width: 64px; }
.ww-perms-box input:disabled + span { color: var(--muted); opacity: .6; }
.ww-perms-box--one { margin-right: calc(64px + 14px); }
.ww-perms-foot { position: sticky; bottom: -24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px -24px -24px; padding: 14px 24px; background: var(--surface); border-top: 1px solid var(--line); }
.ww-perms-spacer { flex: 1; }
@media (max-width: 560px) {
	.ww-perms-row { flex-direction: column; align-items: flex-start; gap: 8px; }
	.ww-perms-box--one { margin-right: 0; }
}

/* ---------- Mobile / tablet ---------- */
@media (max-width: 960px) {
	.ww-side { display: none; }
	.ww-body { margin-left: 0; }
	.ww-top {
		position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
		gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
		background: var(--navy); color: #fff;
	}
	.ww-brand--top { padding: 0; gap: 8px; }
	.ww-brand--top .ww-brand-mark { width: 32px; height: 32px; }
	.ww-brand--top strong { font-family: var(--font-head); font-size: 17px; }
	.ww-top-actions { display: flex; align-items: center; gap: 8px; }
	.ww-top .ww-bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; }
	.ww-top .ww-bell:hover { background: rgba(255,255,255,.1); color: #fff; }
	.ww-bell .ww-badge { position: absolute; top: 4px; right: 2px; }
	.ww-main { padding: 20px 16px calc(110px + var(--safe-bottom)); }
	.ww-tabbar {
		position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; justify-content: space-around;
		padding: 6px 4px calc(6px + var(--safe-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
		box-shadow: 0 -4px 20px rgba(20, 41, 58, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	}
	.ww-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: 6px 2px; border: 0; background: none; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; position: relative; cursor: pointer; }
	.ww-tab .ww-icon { width: 22px; height: 22px; }
	.ww-tab .ww-nav-label { flex: none; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.ww-tab.is-active { color: var(--navy); }
	.ww-tab.is-active .ww-icon { stroke: var(--blue); }
	.ww-tab .ww-badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; font-size: 11px; }
	.ww-sheet { position: fixed; inset: 0; z-index: 45; display: flex; align-items: flex-end; background: rgba(20, 41, 58, .45); }
	.ww-sheet[hidden] { display: none; }
	.ww-sheet-card { width: 100%; max-height: 82vh; overflow-y: auto; padding: 14px 12px calc(84px + var(--safe-bottom)); background: #fff; border-radius: 20px 20px 0 0; display: grid; gap: 10px; }
	.ww-sheet-group { display: grid; gap: 2px; }
	.ww-sheet-heading { margin: 4px 14px 2px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
	.ww-sheet-link { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 14px; border-radius: 12px; color: var(--navy); text-decoration: none; font-weight: 700; }
	.ww-sheet-link .ww-icon { stroke: var(--blue); }
	.ww-sheet-link:hover, .ww-sheet-link.is-active { background: var(--bg); }
}

/* ---------- Page chrome ---------- */
.ww-page-head { margin-bottom: 26px; }
.ww-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }
.ww-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; }
.ww-back:hover { color: var(--navy); }
.ww-back .ww-icon { width: 18px; height: 18px; }
.ww-page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.ww-page-head-text { min-width: 0; }
.ww-h1 { margin: 0; font-size: clamp(26px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ww-sub { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.ww-page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ww-head-status { display: flex; align-items: center; gap: 10px; }
.ww-saved-note { font-size: 13px; color: var(--muted); }
.ww-h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.ww-section { margin-top: 36px; }
.ww-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ww-muted { color: var(--muted); }
.ww-center { text-align: center; margin-top: 16px; }
.ww-link { font-weight: 700; text-decoration: none; }
.ww-link:hover { text-decoration: underline; }
.ww-stack { display: grid; gap: 18px; }
.ww-stack--tight { gap: 8px; }
.ww-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; align-items: start; }

.ww-panel { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ww-panel--quiet { background: transparent; border-style: dashed; box-shadow: none; padding: 12px; }
.ww-panel--sticky { position: sticky; top: 24px; }
@media (max-width: 640px) { .ww-panel { padding: 16px; border-radius: 12px; } }

/* Buttons */
.ww-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 10px;
	background: var(--surface); color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
	box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.ww-btn:hover { border-color: var(--navy); }
.ww-btn:active { transform: translateY(1px); }
.ww-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ww-btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 1px 2px rgba(20,41,58,.2), inset 0 1px 0 rgba(255,255,255,.08); }
.ww-btn--primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.ww-btn--danger { background: var(--error); border-color: var(--error); color: #fff; }
.ww-btn--quiet { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.ww-btn--quiet:hover { background: rgba(20, 41, 58, .06); border-color: transparent; color: var(--navy); }
.ww-btn--quiet.ww-btn--danger { color: var(--error); background: transparent; }
.ww-btn--quiet.ww-btn--danger:hover { background: var(--error-soft); }
.ww-btn--small { min-height: 32px; padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.ww-btn--block { width: 100%; }
.ww-btn .ww-icon { width: 17px; height: 17px; }
.ww-icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.ww-icon-btn:hover { background: rgba(20, 41, 58, .06); color: var(--navy); }

/* Inputs outside the field renderer */
.ww-input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid #D9DDE1; border-radius: 10px; background: var(--surface); font: inherit; font-size: 15px; color: var(--navy); box-shadow: var(--shadow-sm); }
.ww-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 125, 184, .16); }
.ww-input[type="search"] { padding-left: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A97A2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 12px 50% / 16px; }
select.ww-input { width: auto; min-width: 200px; padding-right: 32px; }
.ww-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.ww-check input { width: 17px; height: 17px; accent-color: var(--blue); }

/* Pills, alerts, empty */
.ww-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; background: #EEF0F2; color: #44515C; }
.ww-pill-icon { width: 13px; height: 13px; stroke-width: 2.2; opacity: .85; }
.ww-pill--soft { background: #F1EFEA; color: #44515C; }
.ww-pill--ok { background: var(--ok-soft); color: var(--ok); }
.ww-pill--warn { background: var(--warn-soft); color: var(--warn); }
.ww-pill--info { background: var(--blue-soft); color: #235F8D; }
.ww-pill--error { background: var(--error-soft); color: var(--error); }
.ww-pill--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.ww-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; }
.ww-meta-text { font-size: 13px; color: var(--muted); }
.ww-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.ww-alert--error { background: var(--error-soft); color: var(--error); }
.ww-alert--ok { background: var(--ok-soft); color: var(--ok); }
.ww-alert--warn { background: var(--warn-soft); color: #5E4A0F; }
.ww-alert--info { background: var(--blue-soft); color: #1B557F; }
.ww-banners:empty { display: none; }
.ww-empty { padding: 44px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.ww-empty p { margin: 0 0 14px; }

/* Dashboard */
.ww-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-bottom: 18px; }
.ww-quick-btn { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--navy); text-decoration: none; transition: box-shadow .15s, transform .15s, border-color .15s; }
.ww-quick-btn:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-1px); }
.ww-quick-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); }
.ww-quick-icon .ww-icon { width: 22px; height: 22px; }
.ww-quick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ww-quick-text strong { font-size: 16px; font-weight: 800; }
.ww-quick-text small { color: var(--muted); font-size: 13px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ww-quick-go { width: 18px; height: 18px; color: var(--faint); }
.ww-quick-btn.is-primary { background: linear-gradient(135deg, #F8CF5E, var(--gold)); border-color: #E9B634; }
.ww-quick-btn.is-primary .ww-quick-icon { background: rgba(20, 41, 58, .9); color: var(--gold); }
.ww-quick-btn.is-primary small, .ww-quick-btn.is-primary .ww-quick-go { color: rgba(20, 41, 58, .72); }
.ww-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.ww-cards > *, .ww-quick > * { min-width: 0; }
.ww-card { position: relative; padding: 18px 20px 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.ww-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--blue); }
.ww-card--warn::before { background: var(--gold); }
.ww-card--ok::before { background: var(--ok); }
.ww-card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; }
.ww-card-icon { width: 18px; height: 18px; color: var(--blue); }
.ww-card--warn .ww-card-icon { color: #C99412; }
.ww-card--ok .ww-card-icon { color: var(--ok); }
.ww-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.ww-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ww-group-card { padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ww-group-title { margin: 8px 12px 6px; font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.ww-group-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2px 6px; }
.ww-group-link { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--navy); text-decoration: none; }
.ww-group-link:hover { background: var(--surface-2); }
.ww-group-link:hover .ww-group-icon { background: var(--blue); color: #fff; }
.ww-group-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); transition: background .15s, color .15s; }
.ww-group-icon .ww-icon { width: 18px; height: 18px; }
.ww-group-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ww-group-text strong { font-size: 14px; }
.ww-group-text small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Settings page tiles */
.ww-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.ww-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; min-height: 110px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--navy); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.ww-tile:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.ww-tile .ww-icon { width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: var(--blue-soft); stroke: var(--blue); }
.ww-tile-title { font-weight: 800; font-size: 16px; }
.ww-tile small { color: var(--muted); font-size: 13px; }

.ww-activity { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ww-activity li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.ww-activity li:first-child { border-top: 0; }
.ww-activity p { margin: 0; }
.ww-activity-text { flex: 1; min-width: 0; font-size: 14px; }
.ww-activity-when { flex: none; color: var(--faint); font-size: 13px; white-space: nowrap; }
.ww-activity small { color: var(--muted); }
@media (max-width: 640px) { .ww-activity li { flex-wrap: wrap; } .ww-activity-when { flex-basis: 100%; padding-left: 42px; margin-top: -6px; } }

/* Lists */
.ww-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; }
.ww-search { flex: 1 1 260px; max-width: 380px; }
.ww-chips { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #ECEAE4; border-radius: 11px; }
.ww-chip { min-height: 34px; padding: 5px 14px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.ww-chip:hover { color: var(--navy); }
.ww-chip.is-active { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }
.ww-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.ww-list > li + li { border-top: 1px solid #EFECE6; }
.ww-list-item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 11px 18px; color: var(--navy); text-decoration: none; }
a.ww-list-item:hover { background: var(--surface-2); }
.ww-list-thumb { flex: none; width: 44px; height: 44px; border-radius: 9px; object-fit: cover; object-position: center top; background: var(--bg); }
.ww-list--video .ww-list-thumb { object-position: center; }
.ww-list-thumb--empty { display: grid; place-items: center; color: var(--faint); }
.ww-list-thumb--empty .ww-icon { width: 18px; height: 18px; }
.ww-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ww-list-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.ww-list-main small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ww-list-date { flex: none; width: 128px; font-size: 14px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ww-list-date { width: auto; font-size: 13px; order: 3; flex-basis: 100%; padding-left: 56px; margin-top: -6px; color: var(--muted); } .ww-list-item { flex-wrap: wrap; } }
.ww-list-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* Table-style lists: aligned columns with a header row */
.ww-table-head { display: flex; align-items: center; gap: 16px; padding: 0 18px 8px 76px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ww-table-head.has-drag { padding-left: 116px; }
.ww-table-head.is-video { padding-left: 128px; }
.ww-list--video .ww-list-thumb { width: 94px; height: 53px; border-radius: 8px; }
@media (max-width: 640px) { .ww-list--video .ww-list-thumb { width: 72px; height: 41px; } .ww-list--video .ww-row .ww-col-date { padding-left: 86px; } }
.ww-row { gap: 16px; }
.ww-col-main { flex: 1; min-width: 0; }
.ww-col-date { flex: none; width: 168px; }
.ww-col-source { flex: none; width: 148px; }
.ww-col-edited { flex: none; width: 104px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ww-col-status { flex: none; width: 104px; display: flex; justify-content: flex-end; }
.ww-table-head .ww-col-status { justify-content: flex-end; }
.ww-table-head .ww-col-edited { font-size: inherit; color: inherit; }
.ww-list--sortable .ww-row { padding-left: 0; }
@media (max-width: 1180px) { .ww-col-source { display: none; } }
@media (max-width: 860px) { .ww-col-edited { display: none; } }
@media (max-width: 640px) {
	.ww-table-head { display: none; }
	.ww-row { flex-wrap: wrap; row-gap: 4px; }
	.ww-row .ww-col-status { width: auto; }
	.ww-row .ww-col-date { order: 5; width: auto; flex-basis: 100%; padding-left: 58px; }
}
@media (max-width: 560px) {
	.ww-list-item { padding: 12px 14px; gap: 12px; }
	.ww-list-thumb { width: 44px; height: 44px; }
	.ww-list-meta .ww-pill--info { display: none; }
}

/* Sortable lists (drag handle) */
.ww-list--sortable > li { display: flex; align-items: center; }
.ww-list--sortable > li > .ww-list-item { flex: 1; min-width: 0; padding-left: 4px; }
.ww-drag { flex: none; display: grid; place-items: center; width: 44px; align-self: stretch; border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: grab; touch-action: none; }
.ww-drag:hover, .ww-drag:focus-visible { color: var(--navy); background: var(--cream); }
.ww-list--sortable > li.is-dragging { position: relative; z-index: 2; background: #fff; box-shadow: 0 12px 32px rgba(20, 41, 58, .18); border-radius: 12px; }
.ww-list--sortable > li.is-dragging .ww-drag { cursor: grabbing; }
.ww-sort-hint { display: flex; align-items: center; gap: 6px; margin: -4px 0 24px; font-size: 13px; color: var(--muted); }
.ww-sort-hint .ww-icon { width: 15px; height: 15px; }

/* Editor layout: roomy two columns on desktop, one column + sticky save bar on phones */
.ww-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ww-edit-main { display: grid; gap: 18px; min-width: 0; }
.ww-edit-side { display: grid; gap: 14px; }
.ww-preview-link { display: block; margin-top: 12px; font-size: 14px; }
.ww-edit-side .ww-help { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.ww-actionbar { position: sticky; bottom: 0; z-index: 20; margin: 20px -8px 0; padding: 12px 8px; background: linear-gradient(rgba(245, 244, 240, 0), var(--bg) 30%); }
.ww-actionbar-inner { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.ww-actionbar--mobile { display: none; }
@media (max-width: 960px) {
	.ww-edit { grid-template-columns: minmax(0, 1fr); }
	.ww-panel--sticky { position: static; }
	.ww-edit-side { order: 2; }
	.ww-actionbar { position: fixed; left: 0; right: 0; bottom: calc(64px + var(--safe-bottom)); margin: 0; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(20, 41, 58, .08); }
	.ww-actionbar--mobile { display: block; }
	.ww-actionbar--mobile .ww-actionbar-inner { justify-content: space-between; flex-wrap: nowrap; }
	.ww-actionbar--mobile .ww-btn { flex: none; }
	.ww-head-status .ww-saved-note { display: none; }
}

/* Diff */
.ww-diff { display: grid; gap: 14px; }
.ww-diff-row { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ww-diff-row h3 { margin: 0 0 10px; font-size: 16px; }
.ww-diff-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .ww-diff-cols { grid-template-columns: 1fr; } }
.ww-diff-before, .ww-diff-after { padding: 12px; border-radius: 10px; }
.ww-diff-before { background: #F4F1EA; }
.ww-diff-after { background: var(--ok-soft); }
.ww-diff small { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--muted); }
.ww-diff p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Notifications */
.ww-notes { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.ww-notes li + li { border-top: 1px solid var(--line); }
.ww-notes a, .ww-notes li > div { display: block; padding: 14px 18px; color: var(--navy); text-decoration: none; }
.ww-notes p { margin: 0; }
.ww-notes small { color: var(--muted); }
.ww-notes .is-unread { background: #FFFBEF; box-shadow: inset 4px 0 0 var(--gold); }
.ww-notes .is-unread p { font-weight: 700; }

/* Modals + toasts */
.ww-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(20, 41, 58, .55); }
.ww-modal-card { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.ww-modal-card--wide { width: min(720px, 100%); }
.ww-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ww-modal-title { margin: 0 0 8px; font-size: 22px; }
.ww-modal-card .ww-input { margin-top: 8px; }
.ww-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.ww-toasts { position: fixed; z-index: 1100; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(460px, calc(100% - 32px)); }
@media (max-width: 960px) { .ww-toasts { bottom: calc(140px + var(--safe-bottom)); } }
.ww-toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 12px 32px rgba(20, 41, 58, .3); animation: ww-in .2s ease-out; transition: opacity .3s, transform .3s; }
.ww-toast--ok { background: #17613A; }
.ww-toast--error { background: var(--error); }
.ww-toast.is-leaving { opacity: 0; transform: translateY(8px); }
.ww-toast-action { border: 0; background: rgba(255,255,255,.18); color: #fff; font-weight: 800; padding: 6px 12px; border-radius: 99px; cursor: pointer; }
@keyframes ww-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Auth pages ---------- */
body.ww-hub-body.ww-auth-body { background: var(--navy); }
.ww-auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px; }
.ww-auth-card { width: min(420px, 100%); padding: 32px 28px; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.ww-auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.ww-auth-mark { display: block; width: 44px; height: 44px; object-fit: contain; }
.ww-auth-card h1 { margin: 0 0 18px; font-size: 28px; }
.ww-form { display: grid; gap: 8px; }
.ww-label { font-weight: 700; font-size: 14px; margin-top: 8px; }
.ww-help { margin: 0; font-size: 13px; color: var(--muted); }
.ww-form .ww-btn { margin-top: 14px; }
.ww-form .ww-check { margin-top: 6px; font-weight: 500; }
.ww-pw { position: relative; }
.ww-pw .ww-input { padding-right: 72px; }
.ww-pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 34px; padding: 4px 12px; border: 0; border-radius: 8px; background: var(--cream); font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer; }
.ww-auth-links { margin: 18px 0 0; text-align: center; font-size: 14px; font-weight: 600; }
.ww-auth-foot a { color: rgba(255,255,255,.7); font-weight: 600; text-decoration: none; font-size: 14px; }
.ww-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ww-noscript { padding: 24px; text-align: center; }
