/* shadcn/ui neutral theme tokens, adapted to the server-rendered PHP views. */
:root {
  --background: #fafafa;
  --foreground: #18181b;
  --card: #fff;
  --card-foreground: #18181b;
  --primary: #18181b;
  --primary-foreground: #fafafa;
  --secondary: #f4f4f5;
  --secondary-foreground: #27272a;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #f4f4f5;
  --destructive: #dc2626;
  --border: #e4e4e7;
  --input: #d4d4d8;
  --ring: #a1a1aa;
  --radius: .625rem;
  --sidebar-width: 248px;
}
* { box-sizing:border-box; border-color:var(--border); }
body { margin:0; font-family:Inter, ui-sans-serif, system-ui, sans-serif; font-size:14px; color:var(--foreground); background:var(--background); -webkit-font-smoothing:antialiased; }
button, input, select, textarea { font:inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color:transparent; }
button, a { touch-action:manipulation; }
button, [role="button"] { cursor:pointer; }
:focus-visible { outline:2px solid var(--ring); outline-offset:3px; }
button:disabled { cursor:not-allowed; opacity:.5; }
::selection { background:#e4e4e7; color:var(--foreground, #09090b); }
.app-sidebar { position:fixed; inset:0 auto 0 0; z-index:40; display:flex; flex-direction:column; width:var(--sidebar-width); background:var(--paint-sidebar, #f9f9fa); border-right:1px solid var(--border); }
.sidebar-brand { display:flex; gap:12px; align-items:center; padding:27px 22px; color:var(--foreground); font-size:14px; font-weight:650; letter-spacing:-.3px; text-decoration:none; }
.sidebar-brand small { display:block; margin-top:3px; color:var(--muted-foreground); font-size:11px; font-weight:400; letter-spacing:0; }
.brand-symbol { display:grid; place-items:center; width:36px; height:36px; border-radius:9px; background:var(--primary); color:var(--paint-on-primary, #fff); font-size:26px; font-weight:700; position:relative; }
.brand-symbol > span { position:absolute; right:6px; bottom:4px; color:var(--paint-on-primary, #fafafa); }
.sidebar-nav { flex:1; overflow-y:auto; padding:0 12px 24px; }
.nav-group { padding:0 12px; margin:24px 0 9px; font-size:10px; font-weight:600; color:#8b8b94; letter-spacing:.09em; text-transform:uppercase; }
.nav-group:first-child { margin-top:8px; }
.nav-link { display:flex; align-items:center; gap:11px; min-height:40px; padding:10px 12px; margin:3px 0; border:1px solid transparent; border-radius:7px; color:#62626b; font-size:12px; font-weight:500; text-decoration:none; transition:background .15s, color .15s; }
.nav-link i { width:17px; text-align:center; font-size:14px; }
.nav-link:hover { background:var(--paint-muted, #eeeef0); color:var(--foreground); }
.nav-link.is-active { background:var(--paint-card, #fff); border-color:var(--border); color:var(--foreground); box-shadow:0 1px 2px #00000005; }
.sidebar-account { display:flex; align-items:center; gap:10px; padding:18px 20px; border-top:1px solid var(--border); }
.account-avatar { flex-shrink:0; display:inline-grid; place-items:center; width:33px; height:33px; background:var(--paint-muted, #ececee); border:1px solid var(--border); border-radius:50%; color:var(--muted-foreground, #52525b); font-size:12px; font-weight:600; }
.sidebar-account > div { flex:1; min-width:0; }
.sidebar-account strong, .sidebar-account small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-account strong { font-size:11px; font-weight:600; }
.sidebar-account small { margin-top:3px; font-size:10px; color:var(--muted-foreground); }
.sidebar-account > a { padding:8px; color:var(--muted-foreground); font-size:13px; }
.app-main { margin-left:var(--sidebar-width); padding:36px 36px 64px; min-width:0; }
#main-content > #header, #main-content > div:first-of-type:has(> h2) { padding-bottom:24px; border-bottom:1px solid var(--border); margin-bottom:28px; gap:16px; }
#main-content h2 { color:var(--foreground); font-size:24px; line-height:1.3; font-weight:650; letter-spacing:-.7px; }
#main-content h3 { font-weight:600; letter-spacing:-.3px; }
#main-content .bg-white, #login-container { background:var(--card); border:1px solid var(--border); }
#main-content .rounded-xl, #login-container { border-radius:var(--radius); }
#main-content .shadow-sm, #main-content .shadow-lg, #login-container { box-shadow:0 1px 2px #00000004; }
#main-content .text-gray-900, #main-content .text-gray-800, #main-content .text-gray-700 { color:var(--foreground); }
#main-content .text-gray-500, #main-content .text-gray-600 { color:var(--muted-foreground); }
#main-content .bg-gray-50 { background:var(--paint-muted, #fafafa); }
#main-content .border-gray-200, #main-content .border-gray-300 { border-color:var(--border); }
/* Primary actions keep existing handlers and form submissions. */
body :is(button, a)[class~="bg-zinc-600"], body :is(button, a)[class~="bg-zinc-500"], body :is(button, a)[class~="bg-zinc-600"] { background:var(--primary); color:var(--primary-foreground); border:1px solid var(--primary); border-radius:6px; font-size:12px; font-weight:500; min-height:36px; box-shadow:0 1px 2px #0000000d; }
body :is(button, a)[class~="bg-zinc-600"]:hover, body :is(button, a)[class~="bg-zinc-500"]:hover, body :is(button, a)[class~="bg-zinc-600"]:hover { background:var(--paint-primary, #3f3f46); border-color:#3f3f46; }
body :is(button, a)[class~="bg-gray-100"] { background:var(--paint-card, #fff); color:var(--foreground, #3f3f46); border:1px solid var(--border); border-radius:6px; font-weight:500; }
body :is(button, a)[class~="bg-gray-100"]:hover { background:var(--muted); }
body :is(button, a)[class~="bg-zinc-100"] { background:var(--muted); color:var(--muted-foreground, #52525b); border-radius:6px; }
body :is(button, a)[class~="bg-red-100"] { background:var(--paint-danger-bg, #fff1f2); color:var(--paint-danger-text, #be123c); border-radius:6px; }
body :is(button, a)[class~="text-zinc-600"]:not([class~="text-white"]) { color:var(--foreground, #3f3f46); }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), select, textarea { background:var(--paint-card, #fff); border:1px solid var(--input); border-radius:6px; color:var(--foreground); min-height:36px; font-size:12px; box-shadow:0 1px 2px #00000003; }
input::placeholder, textarea::placeholder { color:var(--muted-foreground, #a1a1aa); }
input:focus, select:focus, textarea:focus { border-color:#a1a1aa; outline:none; box-shadow:0 0 0 3px #18181b12; --tw-ring-shadow: 0 0 #0000; }
input[type="checkbox"], input[type="radio"] { accent-color:var(--primary); }
label { font-size:12px; font-weight:500; }
.table-scroll { width:100%; overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:12px; }
#main-content thead { background:var(--paint-muted, #fafafa); }
#main-content th { padding:13px 20px; color:var(--muted-foreground, #71717a); font-size:10px; font-weight:600; letter-spacing:.04em; border-bottom:1px solid var(--border); }
#main-content td { padding:15px 20px; border-bottom:1px solid #f0f0f2; }
#main-content td .text-sm { font-size:12px; }
#main-content tbody tr:last-child td { border-bottom:0; }
#main-content tbody tr:hover { background:var(--paint-muted, #fafafa); }
#main-content td .rounded-full { font-size:10px; font-weight:500; }
#main-content :is(.bg-green-100,.bg-yellow-100,.bg-red-100)[class*="px-2"] { border:1px solid currentColor; border-color:#0000000a; }
/* Dialog overlays retain their existing visibility and click behavior. */
body .fixed.inset-0[class*="bg-opacity"] { background:#09090b66; backdrop-filter:blur(3px); padding:20px; overflow-y:auto; }
body .fixed.inset-0 > .bg-white { max-height:calc(100dvh - 40px); overflow-y:auto; border:1px solid var(--border); border-radius:12px; box-shadow:0 20px 70px #00000026; }
.select2-container .select2-selection--single { height:37px !important; border:1px solid var(--input) !important; border-radius:6px !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height:35px !important; font-size:12px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height:35px !important; }
.select2-dropdown { border-color:var(--border) !important; border-radius:6px !important; font-size:12px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background:var(--primary) !important; }
#login-container { padding:36px; max-width:420px; }
#login-container #logo > i { color:var(--primary); font-size:28px; }
#login-container h2 { font-size:23px; letter-spacing:-.6px; }
#login-container button[type="submit"] { width:100%; }
#login-container a, #login-container .text-zinc-600 { color:var(--foreground); }
.mobile-toolbar, .sidebar-overlay { display:none; }
.overview-intro { margin:28px 0; max-width:640px; }
.overview-eyebrow { color:var(--muted-foreground, #71717a); font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:.12em; margin-bottom:10px; }
.overview-intro p:last-child { color:var(--muted-foreground, #71717a); font-size:13px; line-height:1.8; margin-top:12px; }
.overview-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; }
.overview-card { display:flex; flex-direction:column; min-height:190px; padding:24px; background:var(--card); border:1px solid var(--border); border-radius:10px; text-decoration:none; transition:border-color .15s, box-shadow .15s; }
.overview-card:hover { border-color:#a1a1aa; box-shadow:0 3px 12px #00000005; }
.overview-card > i { color:var(--muted-foreground, #52525b); font-size:18px; margin-bottom:24px; }
.overview-card h3 { color:var(--foreground); font-size:13px; }
.overview-card p { color:var(--muted-foreground); font-size:11px; line-height:1.7; margin-top:7px; }
.overview-card > span { color:var(--muted-foreground, #71717a); font-size:11px; margin-top:auto; padding-top:18px; }
.overview-footer { display:flex; justify-content:space-between; gap:12px; margin-top:28px; padding-top:20px; border-top:1px solid var(--border); color:var(--muted-foreground, #a1a1aa); font-size:10px; }
@media (min-width: 1600px) { .app-main { padding-left:48px; padding-right:48px; } }
@media (max-width: 1200px) { .app-main { padding:28px 24px; } .overview-grid { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 1023px) {
  .app-sidebar { transform:translateX(-100%); transition:transform .2s ease; }
  .app-main { margin-left:0; padding:0 20px 40px; }
  .mobile-toolbar { display:flex; align-items:center; gap:12px; height:64px; border-bottom:1px solid var(--border); margin-bottom:24px; font-size:13px; font-weight:600; }
  .mobile-toolbar button { width:34px; height:34px; border:1px solid var(--border); border-radius:6px; background:var(--paint-card, #fff); }
  .navigation-open { overflow:hidden; }
  .navigation-open .app-sidebar { transform:translateX(0); }
  .navigation-open .sidebar-overlay { display:block; position:fixed; inset:0; z-index:35; background:#09090b66; border:0; }
}
@media (max-width: 640px) {
  .app-main { padding-left:14px; padding-right:14px; }
  #main-content h2 { font-size:21px; }
  #main-content > #header { flex-wrap:wrap; padding-bottom:18px; }
  #main-content .p-6 { padding:18px; }
  .overview-grid { grid-template-columns:1fr; gap:12px; }
  .overview-card { min-height:170px; }
  .overview-footer { flex-direction:column; }
  #login-container { padding:26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition:none !important; scroll-behavior:auto !important; } }
/* Local outline icons share the same stroke and dimensions. */
.overview-card > :is(i, svg) { align-self:flex-start; color:var(--muted-foreground, #52525b); font-size:18px; margin-bottom:24px; }
.nav-link > :is(i, svg) { width:17px; flex-shrink:0; text-align:center; }
#main-content > .bg-white { min-width:0; max-width:100%; }
@media (max-width: 640px) {
  #main-content form select { width:100%; max-width:100%; }
  #main-content form > div { min-width:0; }
}

.ui-icon { display:inline-block; width:1em; height:1em; flex-shrink:0; vertical-align:-.15em; }
.nav-link > .ui-icon { width:17px; height:17px; }
.sidebar-account > a .ui-icon { width:16px; height:16px; }
.overview-card > .ui-icon { width:21px; height:21px; }
#login-container #logo > .ui-icon { color:var(--foreground); width:30px; height:30px; }
body :is(a,button).w-8.h-8 { border:1px solid var(--border); border-radius:6px; box-shadow:0 1px 2px #00000003; }
body :is(a,button).w-8.h-8:hover { background:var(--muted); }
/* Restrained semantic tones for statuses and alerts. */
#main-content .bg-green-100 { background:#f0f7f3; color:#35634b; }
#main-content .bg-yellow-100 { background:#faf6ed; color:#88682d; }
#main-content .bg-red-100 { background:#fcf1f1; color:#a04444; }
#main-content .bg-zinc-100 { background:var(--muted); color:var(--muted-foreground, #52525b); }
#main-content [class*="bg-zinc-600"].text-white { background:var(--primary); color:var(--primary-foreground); }
.apexcharts-tooltip, .apexcharts-menu { border-color:var(--border) !important; border-radius:8px !important; box-shadow:0 4px 16px #0000000a !important; font-family:Inter, sans-serif !important; }
.apexcharts-legend-text { color:var(--muted-foreground) !important; }
.ui-stat-card > .flex { flex-direction:column; align-items:flex-start; gap:14px; }
.ui-stat-card > .flex > .p-3 { margin-right:0; }
.ui-stat-card h4 { font-size:clamp(18px, 1.5vw, 23px); letter-spacing:-.6px; overflow-wrap:anywhere; }
/* Shared filter toolbar: consistent controls, independent fields, natural wrapping. */
#main-content .filter-toolbar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; }
#main-content .filter-toolbar > div { flex:1 1 140px; min-width:0; margin:0; }
#main-content .filter-toolbar > .flex-1 { flex:2 1 240px; }
#main-content .filter-toolbar .filter-dates { display:contents; }
#main-content .filter-dates > div { flex:1 1 145px; min-width:0; margin:0; }
#main-content .filter-toolbar > div:has(> .filter-submit) { flex:0 0 auto; }
#main-content .filter-toolbar :is(input:not([type="hidden"]),select) { display:block; width:100%; height:38px; min-height:38px; padding:8px 12px; border:1px solid var(--border); border-radius:7px; background-color:var(--card); font-size:12px; line-height:20px; box-shadow:0 1px 2px #00000003; transition:border-color .15s, box-shadow .15s; }
#main-content .filter-toolbar select { appearance:none; padding-right:32px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; }
#main-content .filter-toolbar :is(input,select):hover { border-color:#a1a1aa; }
#main-content .filter-toolbar :is(input,select):focus-visible { border-color:#a1a1aa; box-shadow:0 0 0 3px #18181b12; }
#main-content .filter-toolbar .filter-submit { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:38px; padding:0 16px; border:1px solid var(--input); border-radius:7px; background:var(--paint-card, #fff); color:var(--foreground); box-shadow:0 1px 2px #00000005; font-size:12px; line-height:1; font-weight:500; white-space:nowrap; transition:background .15s, border-color .15s; }
#main-content .filter-toolbar .filter-submit:hover { background:var(--muted); border-color:#a1a1aa; }
#main-content .filter-toolbar .filter-submit:active { background:#e4e4e7; }
.filter-submit > .ui-icon { width:15px; height:15px; margin:0; color:var(--muted-foreground); }
@media (max-width: 640px) {
  #main-content .filter-toolbar > div, #main-content .filter-toolbar > .flex-1, #main-content .filter-dates > div, #main-content .filter-toolbar > div:has(> .filter-submit) { flex:1 1 100%; }
  #main-content .filter-toolbar .filter-submit { width:100%; }
}
#main-content .filter-toolbar .multi-filter-native[hidden] { display:none; }
.multi-filter { position:relative; min-width:0; width:100%; }
.multi-filter[open] { z-index:30; }
.multi-filter-trigger { display:flex; align-items:center; gap:8px; height:38px; padding:0 12px; border:1px solid var(--border); border-radius:7px; background:var(--paint-card, #fff); color:var(--foreground); font-size:12px; cursor:pointer; list-style:none; box-shadow:0 1px 2px #00000003; }
.multi-filter-trigger::-webkit-details-marker { display:none; }
.multi-filter-trigger > span:first-child { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.multi-filter-trigger::after { content:''; margin-left:auto; flex-shrink:0; width:6px; height:6px; border-right:1.5px solid #71717a; border-bottom:1.5px solid #71717a; transform:translateY(-2px) rotate(45deg); }
.multi-filter-trigger:hover, .multi-filter[open] > summary { border-color:#a1a1aa; }
.multi-filter.has-selection > summary { background:var(--paint-muted, #fafafa); border-color:#a1a1aa; }
.multi-filter-count { background:#e4e4e7; padding:1px 6px; border-radius:4px; font-size:10px; font-weight:600; }
.multi-filter-count[hidden] { display:none; }
.multi-filter-panel { position:absolute; top:calc(100% + 6px); left:0; width:max(100%, 270px); max-width:calc(100vw - 44px); background:var(--paint-card, #fff); padding:6px; border:1px solid var(--border); border-radius:9px; box-shadow:0 8px 28px #0000001a; }
#main-content .filter-toolbar .multi-filter-panel input[type="search"] { height:34px; min-height:34px; font-size:12px; margin-bottom:5px; }
.multi-filter-list { max-height:240px; overflow-y:auto; overscroll-behavior:contain; }
.multi-filter-option { display:flex; align-items:center; gap:9px; padding:9px 8px; border-radius:5px; color:var(--foreground, #3f3f46); font-size:12px; font-weight:400; cursor:pointer; }
.multi-filter-option:hover, .multi-filter-option:focus-within { background:var(--muted); }
.multi-filter-option:has(:checked) { background:var(--paint-muted, #f4f4f5); color:var(--foreground, #18181b); }
.multi-filter-option[hidden] { display:none; }
#main-content .filter-toolbar .multi-filter-option input[type="checkbox"] { display:inline-block; appearance:auto; width:14px; min-height:14px; height:14px; padding:0; margin:0; flex-shrink:0; accent-color:#18181b; box-shadow:none; }
.multi-filter-footer { display:flex; justify-content:space-between; padding:6px 2px 0; margin-top:6px; border-top:1px solid var(--border); }
.multi-filter-footer button { border:0; border-radius:4px; padding:6px 8px; background:transparent; font-size:11px; color:var(--muted-foreground); }
.multi-filter-footer button:hover { background:var(--muted); color:var(--foreground); }
.multi-filter-footer button:last-child { color:var(--foreground); font-weight:500; }
.multi-filter-empty { padding:16px 8px; text-align:center; color:var(--muted-foreground); font-size:12px; }
@media (max-width: 640px) { .multi-filter-panel { width:100%; } }
/* Payment statistics: rankings and exact records share one filtered dataset. */
.report-context { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin:-8px 0 18px; color:var(--muted-foreground); font-size:11px; }
.report-hint { margin-top:6px; color:var(--muted-foreground); font-size:11px; line-height:1.7; }
.report-state-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding:18px 24px; border:1px solid var(--border); border-radius:var(--radius); background:var(--paint-card, #fff); }
.report-state-strip > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:12px; }
.report-state-strip span { color:var(--muted-foreground); }
.report-payment-section { min-width:0; overflow:hidden; }
.report-ranking-chart { padding:12px 6px 0; }
#main-content .report-ranking-table td, #main-content .report-ranking-table th { padding-left:16px; padding-right:16px; }
.report-ranking-table strong { display:block; font-weight:500; }
.report-ranking-table small { display:block; font-size:10px; color:var(--muted-foreground); margin-top:4px; }
.report-ranking-table td { vertical-align:middle; }
.report-rank { color:var(--muted-foreground); width:36px; }
.report-amount { font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums; }
.report-empty { display:flex; flex-direction:column; align-items:center; gap:14px; padding:48px 20px; color:var(--muted-foreground); font-size:12px; }
.report-empty .ui-icon { width:24px; height:24px; }
.report-chart-tooltip { display:flex; flex-direction:column; gap:5px; padding:12px; font-size:11px; }
.report-chart-tooltip span { color:var(--muted-foreground); }
.report-chart-tooltip b { margin-top:3px; }
.report-chart-fallback { padding:20px; color:var(--muted-foreground); font-size:12px; }
@media (max-width: 640px) { .report-state-strip { grid-template-columns:1fr; gap:12px; } }
/* Shared date/range picker. Original ISO date inputs remain the form controls. */
.calendar-native-input, #main-content .filter-toolbar .calendar-native-input, .calendar-native-field { display:none !important; }
.calendar-field { min-width:0; width:100%; }
#main-content .filter-toolbar > .calendar-range-field, #main-content .filter-toolbar .filter-dates > .calendar-range-field { flex:2 1 280px; }
.calendar-field-label { display:block; margin-bottom:4px; color:var(--foreground); font-size:12px; font-weight:500; }
.calendar-trigger { display:flex; align-items:center; gap:9px; width:100%; min-height:38px; padding:8px 12px; border:1px solid var(--border); border-radius:7px; background:var(--paint-card, #fff); color:var(--muted-foreground, #71717a); box-shadow:0 1px 2px #00000003; font-size:12px; text-align:left; }
.calendar-trigger.has-value { color:var(--foreground); }
.calendar-trigger:hover, .calendar-trigger[aria-expanded="true"] { border-color:#a1a1aa; }
.calendar-trigger svg, .calendar-draft-field svg { width:17px; height:17px; flex-shrink:0; color:var(--muted-foreground, #71717a); }
.calendar-trigger span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.calendar-popover { --calendar-accent: #0d9488; position:fixed; z-index:1000; width:min(420px, calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow-y:auto; border:1px solid var(--border); border-radius:12px; background:var(--paint-card, #fff); box-shadow:0 12px 48px #00000020; color:var(--foreground); font-size:12px; overscroll-behavior:contain; }
.calendar-popover[hidden] { display:none; }
.calendar-popover-range { width:min(830px, calc(100vw - 32px)); }
.calendar-body { display:flex; min-width:0; }
.calendar-presets { display:flex; flex-direction:column; flex:0 0 130px; gap:3px; padding:16px 10px; border-right:1px solid var(--border); }
.calendar-preset { padding:10px 12px; border:0; border-radius:6px; background:transparent; color:var(--muted-foreground, #52525b); font-size:12px; text-align:left; white-space:nowrap; }
.calendar-preset:hover { background:var(--muted); }
.calendar-preset.is-chosen { background:var(--paint-success-bg, #f0fdfa); color:var(--paint-success-text, #0f766e); font-weight:500; }
.calendar-main { flex:1; min-width:0; padding:16px; }
.calendar-draft-fields { display:flex; gap:12px; margin-bottom:14px; }
.calendar-draft-field { display:flex; flex:1; min-width:0; align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--border); border-radius:7px; background:var(--paint-muted, #fafafa); }
.calendar-draft-field.is-active { border-color:#2dd4bf; background:var(--paint-success-bg, #f0fdfa); }
.calendar-draft-field.is-active svg { color:var(--calendar-accent); }
.calendar-popover .calendar-draft-field input { width:100%; height:23px; min-height:23px; padding:0; border:0; border-radius:0; outline:0; background:transparent; box-shadow:none; color:var(--foreground); font-size:12px; }
.calendar-popover .calendar-draft-field input:focus { box-shadow:none; }
.calendar-popover .calendar-draft-field input::placeholder { color:var(--muted-foreground, #a1a1aa); }
.calendar-months { display:grid; grid-template-columns:1fr; gap:20px; }
.calendar-popover-range .calendar-months { grid-template-columns:repeat(2,minmax(0,1fr)); }
.calendar-month { min-width:0; }
.calendar-month-header { display:flex; align-items:center; gap:6px; margin-bottom:10px; }
.calendar-popover .calendar-month-header select { width:auto; min-width:0; min-height:32px; height:32px; padding:4px 6px; border-color:#eeeef0; border-radius:6px; background:var(--paint-muted, #f7f7f8); font-size:12px; box-shadow:none; }
.calendar-popover .calendar-month-select { flex:1; }
.calendar-popover .calendar-year-select { flex:0 1 75px; }
.calendar-nav, .calendar-nav-spacer { flex:0 0 22px; width:22px; }
.calendar-nav { height:30px; border:0; border-radius:5px; background:transparent; color:var(--muted-foreground, #71717a); font-size:24px; line-height:1; }
.calendar-nav:hover { background:var(--muted); }
.calendar-week { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-weekdays span { padding:8px 0; color:#8b8b94; font-size:11px; font-weight:500; text-align:center; }
.calendar-day { min-width:0; height:34px; margin:2px 0; padding:0; border:0; border-radius:6px; background:transparent; color:var(--foreground, #27272a); font-size:12px; font-weight:400; }
.calendar-day:hover { background:var(--paint-muted, #f4f4f5); }
.calendar-day.is-outside { color:#b9b9c0; }
.calendar-day.is-today { color:var(--calendar-accent); font-weight:700; }
.calendar-day.is-between { background:var(--paint-success-bg, #f0fdfa); border-radius:0; color:#115e59; }
.calendar-day.is-selected, .calendar-day.is-selected:hover { background:var(--calendar-accent); color:var(--paint-on-primary, #fff); font-weight:600; }
.calendar-day:focus-visible { outline-color:var(--calendar-accent); outline-offset:-2px; }
.calendar-day:disabled { opacity:.3; cursor:not-allowed; }
.calendar-error { min-height:0; margin:8px 0 0; color:var(--paint-danger-text, #b91c1c); font-size:11px; line-height:1.6; }
.calendar-error:empty { display:none; }
.calendar-actions { position:sticky; bottom:0; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; border-top:1px solid var(--border); background:var(--paint-card, #fff); }
.calendar-actions > div { display:flex; gap:8px; }
.calendar-actions button { padding:8px 12px; border:1px solid transparent; border-radius:6px; font-size:12px; font-weight:500; }
.calendar-clear { background:transparent; color:var(--muted-foreground, #71717a); }
.calendar-clear:hover { background:var(--muted); }
.calendar-cancel { background:var(--paint-card, #fff); border-color:var(--border) !important; color:var(--muted-foreground, #52525b); }
.calendar-apply { background:var(--primary); color:var(--paint-on-primary, #fff); }
.calendar-apply:hover { background:var(--paint-primary, #3f3f46); }
@media (max-width: 720px) {
  .calendar-popover-range .calendar-body { flex-direction:column; }
  .calendar-popover-range .calendar-presets { flex:none; flex-direction:row; overflow-x:auto; padding:8px; border-right:0; border-bottom:1px solid var(--border); }
  .calendar-popover-range .calendar-preset { padding:7px 10px; }
  .calendar-popover-range .calendar-months { gap:12px; }
  .calendar-popover-range .calendar-month-header { gap:3px; }
  .calendar-popover-range .calendar-nav, .calendar-popover-range .calendar-nav-spacer { flex-basis:16px; width:16px; }
  .calendar-main { padding:12px; }
}
@media (max-width: 540px) {
  #main-content .filter-toolbar > .calendar-range-field, #main-content .filter-toolbar .filter-dates > .calendar-range-field { flex-basis:100%; }
  .calendar-popover-range .calendar-months { grid-template-columns:1fr; }
  .calendar-popover:not(.calendar-popover-range) .calendar-presets { flex-basis:85px; padding:10px 6px; }
  .calendar-draft-fields { gap:6px; }
  .calendar-draft-field { padding:8px 6px; gap:5px; }
  .calendar-draft-field svg { width:14px; height:14px; }
  .calendar-popover .calendar-draft-field input { font-size:11px; }
}
.calendar-draft-text { display:flex; flex-direction:column; flex:1; min-width:0; gap:2px; }
.calendar-draft-caption { color:var(--muted-foreground, #71717a); font-size:10px; font-weight:400; }
.calendar-draft-field.is-active .calendar-draft-caption { color:var(--paint-success-text, #0f766e); }
body .calendar-popover .calendar-draft-field input.calendar-draft-input[type="text"] { display:block; width:100%; height:20px; min-height:20px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; font-size:12px; outline:0; }
/* Compact management sections under General Settings. */
.settings-cards { display:flex; flex-direction:column; gap:18px; }
.settings-card { min-width:0; border:1px solid var(--border); border-radius:var(--radius); background:var(--paint-card, #fff); }
.settings-card-summary { display:flex; align-items:center; gap:16px; padding:22px 24px; cursor:pointer; list-style:none; border-radius:var(--radius); }
.settings-card-summary::-webkit-details-marker { display:none; }
.settings-card-summary:hover { background:var(--paint-muted, #fafafa); }
.settings-card-icon { display:grid; place-items:center; flex:0 0 40px; height:40px; border:1px solid var(--border); border-radius:9px; background:var(--paint-muted, #fafafa); color:var(--muted-foreground, #52525b); }
.settings-card-icon .ui-icon { width:18px; height:18px; }
.settings-card-label { flex:1; min-width:0; }
.settings-card-label strong { display:block; font-size:14px; font-weight:600; }
.settings-card-count { padding:4px 9px; border-radius:5px; background:var(--muted); color:var(--muted-foreground); font-size:10px; white-space:nowrap; }
.settings-card-chevron { display:flex; margin-left:4px; color:var(--muted-foreground, #71717a); transition:transform .15s; }
.settings-card[open] > summary { border-bottom:1px solid var(--border); border-bottom-left-radius:0; border-bottom-right-radius:0; }
.settings-card[open] > summary .settings-card-chevron { transform:rotate(90deg); }
.settings-card-content { min-width:0; padding:0; }
#main-content .settings-card-content > .bg-white { border:0; box-shadow:none; border-radius:0 0 var(--radius) var(--radius); }
.settings-card-content > [role="alert"] { margin:16px; }
@media (max-width: 640px) {
  .settings-card-summary { padding:18px; gap:12px; flex-wrap:wrap; }
  .settings-card-label { flex-basis:calc(100% - 64px); }
  .settings-card-count { margin-left:52px; }
  .settings-card-chevron { margin-left:auto; }
}
.settings-pagination { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; padding:16px 24px; border-top:1px solid var(--border); color:var(--muted-foreground); font-size:11px; }
.settings-pagination > div { display:flex; gap:8px; }
.settings-pagination a { display:inline-flex; padding:6px 10px; border:1px solid var(--border); border-radius:5px; color:var(--foreground); background:var(--paint-card, #fff); }
.settings-pagination a:hover { background:var(--muted); }
/* Name-only website management: one compact row instead of a modal. */
.settings-websites-compact { padding:18px 24px; }
.website-inline-form { display:flex; align-items:center; gap:8px; max-width:520px; }
.website-inline-form input[type="text"] { flex:1; min-width:0; height:36px; padding:8px 11px; }
.website-inline-form button { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex-shrink:0; height:36px; padding:0 12px; white-space:nowrap; }
.website-compact-actions { display:flex; justify-content:flex-end; gap:6px; }
.website-compact-actions a { display:grid; place-items:center; width:29px; height:29px; border:1px solid var(--border); border-radius:5px; color:var(--muted-foreground, #71717a); background:var(--paint-card, #fff); }
.website-compact-actions a:hover { background:var(--muted); }
.website-compact-actions .website-delete { color:var(--paint-danger-text, #b45353); }
.website-inline-cancel { padding:6px; font-size:11px; color:var(--muted-foreground); }
.website-compact-empty { margin:14px 0 0; color:var(--muted-foreground); font-size:11px; }
.settings-inline-success, .settings-inline-error { padding:8px 10px; margin-bottom:12px; border-radius:5px; font-size:11px; }
.settings-inline-success { background:#f0f7f3; color:#35634b; }
.settings-inline-error { background:#fcf1f1; color:#a04444; }
@media(max-width:640px) { .settings-websites-compact { padding:16px 18px; } .website-inline-form { max-width:100%; } }

/* Compact record cards instead of full-width settings tables. */
.settings-records { display:flex; flex-wrap:wrap; gap:10px; padding:0; margin:16px 0 0; list-style:none; }
.settings-record-card { display:flex; align-items:center; gap:14px; flex:0 1 280px; min-width:0; max-width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:7px; background:var(--paint-card, #fff); }
.settings-record-name { flex:1; min-width:0; overflow-wrap:anywhere; color:var(--foreground); font-size:12px; font-weight:500; }
.settings-record-card .website-compact-actions { flex-shrink:0; }
@media(max-width:640px) { .settings-record-card { flex-basis:100%; } }
/* Partner workspace: agreement terms and contacts are visible in the table. */
.partner-heading-title { display:flex; align-items:center; gap:12px; }
.partner-count, .partner-currency-badge { display:inline-flex; align-items:center; border:1px solid var(--border); border-radius:5px; padding:3px 7px; background:var(--paint-muted, #f4f4f5); color:var(--muted-foreground, #71717a); font-size:10px; }
.partner-page-heading > button { display:inline-flex; align-items:center; gap:8px; }
.partner-list-panel { min-width:0; }
.partner-filters { padding:20px; border-bottom:1px solid var(--border); }
#main-content .partner-filters > div { flex-basis:130px; }
#main-content .partner-filters > .flex-1 { flex-basis:180px; }
.partner-success, .partner-error, .partner-setup-notice { padding:12px 16px; border:1px solid var(--border); border-radius:7px; margin-bottom:18px; font-size:12px; line-height:1.7; }
.partner-success { background:#f0f7f3; color:#35634b; border-color:#deebe2; }
.partner-error { background:#fcf1f1; color:#a04444; border-color:#f0dede; }
.partner-setup-notice { background:var(--paint-card, #fff); color:var(--muted-foreground); }
.partner-setup-notice a { color:var(--foreground); text-decoration:underline; text-underline-offset:3px; }
.partner-table { min-width:1100px; text-align:left; }
.partner-table th, .partner-table td { vertical-align:top; }
.partner-name { display:block; min-width:120px; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.partner-date { white-space:nowrap; font-variant-numeric:tabular-nums; color:var(--muted-foreground, #71717a); }
.partner-work-link { display:inline-flex; align-items:center; gap:6px; max-width:180px; overflow-wrap:anywhere; color:var(--muted-foreground, #52525b); font-size:11px; }
.partner-work-link .ui-icon { flex-shrink:0; }
.partner-contacts { display:flex; flex-direction:column; gap:9px; min-width:150px; max-width:220px; font-size:11px; overflow-wrap:anywhere; }
.partner-contacts > div small { display:block; font-size:9px; font-weight:600; color:var(--muted-foreground, #a1a1aa); margin-bottom:2px; }
.partner-contacts a:hover, .partner-work-link:hover { text-decoration:underline; text-underline-offset:3px; }
.partner-agreement { display:flex; flex-direction:column; gap:6px; white-space:nowrap; }
.partner-agreement > div { display:flex; align-items:center; gap:5px; }
.partner-agreement-badge { display:inline-flex; padding:4px 7px; border:1px solid var(--border); border-radius:5px; background:var(--paint-muted, #fafafa); color:var(--foreground, #3f3f46); font-size:10px; font-weight:500; }
.partner-agreement small { color:var(--muted-foreground, #71717a); font-size:10px; font-variant-numeric:tabular-nums; }
.partner-legacy-note { margin-top:7px; color:var(--muted-foreground); font-size:10px; max-width:220px; }
.partner-legacy-note summary { cursor:pointer; }
.partner-legacy-note p, .partner-legacy-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.partner-actions { display:flex; justify-content:flex-end; gap:6px; }
.partner-actions a, .partner-actions button { display:grid; place-items:center; width:30px; height:30px; border:1px solid var(--border); border-radius:6px; background:var(--paint-card, #fff); color:var(--muted-foreground, #71717a); }
.partner-actions .partner-delete { color:var(--paint-danger-text, #b45353); }
.partner-actions a:hover, .partner-actions button:hover { background:var(--muted); }
.partner-empty { display:flex; flex-direction:column; align-items:center; gap:18px; padding:60px 24px; color:var(--muted-foreground); }
.partner-empty > .ui-icon { width:30px; height:30px; color:var(--muted-foreground, #a1a1aa); }
.partner-empty h3 { font-size:13px; }
.partner-empty button { display:inline-flex; align-items:center; gap:7px; }
.partner-pagination { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-top:1px solid var(--border); color:var(--muted-foreground, #71717a); font-size:11px; }
.partner-pagination > div { display:flex; gap:8px; }
.partner-pagination a { padding:6px 10px; border:1px solid var(--border); border-radius:5px; }
.partner-dialog { width:min(760px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); padding:0; border:1px solid var(--border); border-radius:12px; box-shadow:0 24px 80px #00000024; background:var(--paint-card, #fff); color:var(--foreground); overflow-y:auto; }
.partner-dialog::backdrop { background:#09090b66; backdrop-filter:blur(3px); }
.partner-dialog-header { display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:1; padding:20px 24px; border-bottom:1px solid var(--border); background:var(--paint-card, #fff); }
.partner-dialog-header h3 { font-size:16px; font-weight:600; letter-spacing:-.3px; }
.partner-dialog-header button { display:grid; place-items:center; width:28px; height:28px; border:0; border-radius:5px; background:transparent; color:var(--muted-foreground, #71717a); }
.partner-dialog-header button:hover { background:var(--muted); }
.partner-form-content { display:flex; flex-direction:column; gap:18px; padding:24px; }
.partner-field { display:flex; flex-direction:column; gap:7px; min-width:0; }
.partner-field[hidden] { display:none; }
.partner-field label { font-size:11px; font-weight:500; color:var(--muted-foreground, #52525b); }
.partner-field input, .partner-field select { width:100%; min-width:0; height:38px; padding:8px 11px; }
.partner-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.partner-contact-grid, .partner-terms-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.partner-contact-fields { padding:0; margin:0; border:0; min-width:0; }
.partner-contact-fields legend { padding:0; margin-bottom:12px; font-size:12px; font-weight:600; }
.partner-dialog-footer { position:sticky; bottom:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 24px; border-top:1px solid var(--border); background:var(--paint-card, #fff); }
.partner-dialog-footer > span { color:var(--muted-foreground, #a1a1aa); font-size:10px; }
.partner-dialog-footer > div { display:flex; gap:8px; }
.partner-dialog-footer button { height:36px; padding:0 16px; border-radius:6px; font-size:12px; }
.partner-dialog-footer .partner-cancel { border:1px solid var(--border); background:var(--paint-card, #fff); color:var(--muted-foreground, #52525b); }
@media(max-width:640px) {
  .partner-form-grid, .partner-contact-grid, .partner-terms-grid { grid-template-columns:1fr; }
  .partner-form-content { padding:18px; gap:15px; }
  .partner-dialog-header { padding:16px 18px; }
  .partner-dialog-footer { padding:14px 18px; flex-wrap:wrap; }
  .partner-filters { padding:16px; }
  #main-content .partner-filters > div, #main-content .partner-filters > .flex-1 { flex-basis:100%; }
}
.payment-currency-code { font-size:9px; font-weight:500; color:var(--muted-foreground, #a1a1aa); margin-left:4px; }
/* Partner form selects share the neutral theme, with icon and checkbox options. */
.partner-select-native { display:none !important; }
.partner-select-control { min-width:0; width:100%; }
.partner-select-trigger { display:flex; align-items:center; gap:8px; width:100%; height:38px; padding:0 11px; border:1px solid var(--input); border-radius:6px; background:var(--paint-card, #fff); color:var(--foreground); text-align:left; font-size:12px; box-shadow:0 1px 2px #00000003; }
.partner-select-trigger:hover, .partner-select-trigger[aria-expanded="true"] { border-color:#a1a1aa; }
.partner-select-trigger.is-placeholder { color:var(--muted-foreground, #a1a1aa); }
.partner-select-trigger > .ui-icon, .partner-select-option > .ui-icon { width:15px; height:15px; flex-shrink:0; color:var(--muted-foreground, #71717a); }
.partner-select-caption { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.partner-select-count { padding:2px 6px; border-radius:4px; background:var(--muted); font-size:10px; }
.partner-select-chevron { flex-shrink:0; width:6px; height:6px; margin-left:auto; border-right:1.5px solid #a1a1aa; border-bottom:1.5px solid #a1a1aa; transform:translateY(-2px) rotate(45deg); }
.partner-select-panel { position:fixed; z-index:10; display:flex; flex-direction:column; gap:4px; padding:5px; overflow:hidden; border:1px solid var(--border); border-radius:8px; background:var(--paint-card, #fff); color:var(--foreground); box-shadow:0 8px 28px #0000001a; }
.partner-select-panel[hidden] { display:none; }
.partner-select-panel .partner-select-search { width:100%; min-width:0; flex-shrink:0; height:33px; min-height:33px; padding:7px 9px; font-size:11px; }
.partner-select-options { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.partner-select-option { display:flex; align-items:center; gap:8px; width:100%; min-height:34px; padding:8px 9px; border:0; border-radius:4px; background:var(--paint-card, #fff); text-align:left; font-size:12px; font-weight:400; color:var(--foreground, #3f3f46); cursor:pointer; }
.partner-select-option[hidden] { display:none; }
.partner-select-option:hover, .partner-select-option:focus-visible, .partner-select-option.is-selected { background:var(--muted); }
.partner-select-option.is-disabled { opacity:.4; cursor:not-allowed; }
.partner-select-option-text { min-width:0; overflow-wrap:anywhere; }
.partner-select-option > input[type="checkbox"] { width:14px; height:14px; min-height:14px; margin:0; padding:0; flex-shrink:0; accent-color:#18181b; }
.partner-select-footer { display:flex; justify-content:space-between; padding-top:4px; border-top:1px solid var(--border); }
.partner-select-footer button { border:0; border-radius:4px; background:transparent; padding:6px 8px; font-size:11px; color:var(--muted-foreground, #71717a); }
.partner-select-footer button:hover { background:var(--muted); color:var(--foreground); }
.partner-select-empty { padding:12px 8px; text-align:center; font-size:11px; color:var(--muted-foreground); }
.partner-select-empty[hidden] { display:none; }
.partner-contact-row { display:grid; grid-template-columns:180px minmax(0,1fr) 28px; align-items:center; gap:8px; margin-bottom:8px; }
.partner-contact-remove { display:grid; place-items:center; height:28px; width:28px; border:0; border-radius:5px; background:transparent; color:var(--muted-foreground, #a1a1aa); }
.partner-contact-remove:hover { color:#a04444; background:#fcf1f1; }
.partner-add-contact { display:inline-flex; align-items:center; gap:5px; padding:5px 0; border:0; background:transparent; color:var(--muted-foreground, #71717a); font-size:11px; }
.partner-add-contact:hover { color:var(--foreground, #18181b); }
.partner-field textarea { width:100%; min-height:100px; padding:10px 11px; resize:vertical; line-height:1.6; }
.partner-source-tags { display:flex; flex-wrap:wrap; gap:4px; min-width:130px; max-width:210px; }
.partner-source-tags > span { display:inline-flex; padding:3px 6px; border:1px solid var(--border); border-radius:4px; background:var(--paint-muted, #fafafa); color:var(--muted-foreground, #71717a); font-size:10px; }
.partner-work-links { min-width:110px; max-width:230px; font-size:11px; }
.partner-work-links summary { display:flex; align-items:center; gap:6px; color:var(--muted-foreground, #52525b); cursor:pointer; list-style:none; }
.partner-work-links summary::-webkit-details-marker { display:none; }
.partner-work-links > div { display:flex; flex-direction:column; gap:7px; max-height:140px; overflow-y:auto; margin-top:8px; }
.partner-work-links a { overflow-wrap:anywhere; color:var(--muted-foreground, #71717a); }
.partner-work-links a:hover { color:var(--foreground, #18181b); text-decoration:underline; }
@media(max-width:640px) { .partner-contact-row { grid-template-columns:135px minmax(0,1fr) 24px; gap:6px; } .partner-terms-grid { grid-template-columns:1fr; } }
@media(max-width:400px) { .partner-contact-row { grid-template-columns:115px minmax(0,1fr) 22px; gap:5px; } }

/* Unified payment notifications */
.notification-table { min-width:1100px; }
.notification-table small { display:block; margin-top:4px; color:var(--muted-foreground, var(--muted-foreground, #71717a)); font-size:12px; }
.notification-table td { vertical-align:top; }
.notification-table .partner-legacy-note p { max-width:280px; white-space:pre-wrap; overflow-wrap:anywhere; }
.notification-proof { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.notification-proof svg { width:16px; height:16px; }
.notification-details { display:grid; gap:18px; }
.notification-details[hidden], #notification-editor [data-notification-step][hidden], #notification-editor [data-wallet-details][hidden] { display:none; }

/* Notes open in a shared modal instead of expanding table rows. */
.note-trigger { display:inline-flex; align-items:center; gap:5px; margin-top:8px; padding:4px 8px; border:1px solid var(--border); border-radius:5px; background:var(--paint-muted, #fafafa); color:var(--muted-foreground, #52525b); font-size:11px; font-weight:500; cursor:pointer; }
.note-trigger:hover { background:var(--paint-muted, #f4f4f5); color:var(--foreground, #18181b); }
.note-trigger svg { width:13px; height:13px; }
.note-dialog { width:min(560px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); padding:0; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:var(--paint-card, #fff); color:var(--foreground); box-shadow:0 24px 80px #00000030; }
.note-dialog::backdrop { background:#09090b66; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.note-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 22px; border-bottom:1px solid var(--border); }
.note-dialog-header h3 { min-width:0; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.note-dialog-header button { display:grid; place-items:center; flex-shrink:0; width:28px; height:28px; border:0; border-radius:5px; background:transparent; color:var(--muted-foreground, #71717a); cursor:pointer; }
.note-dialog-header button:hover { background:var(--paint-muted, #f4f4f5); }
.note-dialog-body { padding:22px; max-height:calc(100dvh - 230px); overflow-y:auto; overscroll-behavior:contain; }
.note-dialog-body p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.8; }
.note-dialog-footer { display:flex; justify-content:flex-end; padding:14px 22px; border-top:1px solid var(--border); }
.note-dialog-footer button { padding:7px 14px; border:1px solid var(--border); border-radius:6px; background:var(--paint-primary, #18181b); color:var(--paint-on-primary, #fff); font-size:12px; cursor:pointer; }

/* Consistent table baselines; details never expand their table cells. */
.partner-table th, .notification-table th { text-align:left; vertical-align:middle; white-space:nowrap; }
.partner-table td, .notification-table td { vertical-align:middle; height:72px; }
.partner-table .note-trigger, .notification-table .note-trigger { margin:0; min-height:30px; padding:5px 9px; gap:6px; white-space:nowrap; }
.partner-table .partner-agreement { flex-direction:row; align-items:center; gap:6px; }
.partner-table .partner-currency-badge { display:inline-flex; align-items:center; justify-content:center; height:30px; box-sizing:border-box; }
.table-detail-trigger { font-weight:500; }
.partner-table .table-note-cell, .notification-table .table-note-cell { width:80px; min-width:80px; text-align:center; }
.table-note-cell .note-trigger { justify-content:center; min-width:60px; }
.table-empty-value { display:inline-flex; align-items:center; justify-content:center; min-height:30px; color:var(--muted-foreground, #a1a1aa); }
.partner-table th:last-child, .notification-table th:last-child { text-align:right; }

/* Statistics: progressive disclosure, consistent cards and native SVG charts. */
.insight-period { color:var(--muted-foreground, #71717a); font-size:11px; font-variant-numeric:tabular-nums; }
.insight-filter-card { padding:20px 24px; margin-bottom:24px; border:1px solid var(--border); border-radius:12px; background:var(--paint-card, #fff); }
.insight-filters > div > label { display:block; margin-bottom:7px; color:var(--muted-foreground, #71717a); font-size:11px; }
.insight-filters > div:first-of-type { flex:1; min-width:220px; }
.insight-filters .calendar-range-field { flex:1; }
.insight-dashboard { display:flex; flex-direction:column; gap:26px; min-width:0; }
.insight-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.insight-summary-card { display:flex; flex-direction:column; min-width:0; min-height:172px; padding:22px; border:1px solid var(--border); border-radius:12px; background:var(--paint-card, #fff); }
.insight-card-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:18px; }
.insight-card-heading h3 { font-size:12px; font-weight:500; color:var(--muted-foreground, #71717a); }
.insight-card-heading svg { width:17px; height:17px; color:var(--muted-foreground, #a1a1aa); }
.insight-amount-stack { display:flex; flex-direction:column; gap:5px; font-variant-numeric:tabular-nums; }
.insight-summary-card .insight-money { font-size:clamp(18px,1.55vw,26px); line-height:1.25; font-weight:600; letter-spacing:-.6px; overflow-wrap:anywhere; }
.insight-summary-card > .insight-count { margin-top:auto; padding-top:16px; }
.insight-count { color:var(--muted-foreground, #a1a1aa); font-size:10px; white-space:nowrap; font-weight:400; }
.insight-summary-total { background:var(--paint-primary, #18181b); color:var(--paint-on-primary, #fff); border-color:#18181b; }
.insight-summary-total .insight-card-heading h3, .insight-summary-total .insight-count, .insight-summary-total .insight-card-heading svg { color:var(--muted-foreground, #a1a1aa); }
.insight-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.insight-section-heading h3 { margin:0; font-size:14px; font-weight:600; letter-spacing:-.2px; }
.insight-section-heading > span:not(.insight-chevron) { color:var(--muted-foreground, #a1a1aa); font-size:10px; }
.insight-section > .insight-section-heading { margin-bottom:14px; }
.insight-site-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
.insight-site-card { border:1px solid var(--border); border-radius:12px; background:var(--paint-card, #fff); min-width:0; overflow:hidden; }
.insight-site-card[open] { grid-column:1 / -1; }
.insight-site-card > summary { display:flex; align-items:center; gap:16px; min-height:92px; padding:20px; cursor:pointer; list-style:none; }
.insight-site-card > summary::-webkit-details-marker, .insight-details > summary::-webkit-details-marker, .insight-inner-details > summary::-webkit-details-marker { display:none; }
.insight-site-name { display:flex; flex-wrap:wrap; align-items:center; gap:8px; flex:1; min-width:0; }
.insight-site-name svg { width:17px; height:17px; flex-shrink:0; color:var(--muted-foreground, #a1a1aa); }
.insight-site-name h4 { font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.insight-site-name .insight-count { flex-basis:100%; margin-left:25px; }
.insight-site-total { display:flex; flex-direction:column; gap:5px; text-align:right; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.insight-chevron { flex:0 0 7px; width:7px; height:7px; border-right:1.5px solid #a1a1aa; border-bottom:1.5px solid #a1a1aa; transform:rotate(-45deg); margin-left:4px; transition:transform .15s; }
.insight-site-card[open] > summary .insight-chevron, .insight-details[open] > summary .insight-chevron, .insight-inner-details[open] > summary .insight-chevron { transform:rotate(45deg); }
.insight-site-body { border-top:1px solid var(--border); padding:20px; }
.insight-site-types { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.insight-site-types > div { padding:16px; border:1px solid #eeeeF0; border-radius:8px; background:var(--paint-muted, #fafafa); min-width:0; }
.insight-site-types h5 { color:var(--muted-foreground, #71717a); font-size:11px; font-weight:500; margin-bottom:12px; }
.insight-site-types .insight-money { font-size:15px; font-weight:600; overflow-wrap:anywhere; }
.insight-site-types .insight-count { display:block; margin-top:9px; }
.insight-inner-details { margin-top:18px; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.insight-inner-details > summary { display:flex; justify-content:space-between; align-items:center; padding:15px 18px; font-size:12px; font-weight:500; cursor:pointer; list-style:none; }
.insight-panel { border:1px solid var(--border); border-radius:12px; background:var(--paint-card, #fff); overflow:hidden; min-width:0; }
.insight-panel > .insight-section-heading { padding:20px 22px; }
.insight-details > summary { cursor:pointer; list-style:none; }
.insight-details[open] > summary { border-bottom:1px solid var(--border); }
.insight-chart-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:18px; }
.insight-trend { padding:0 18px 16px; }
.insight-trend-currency + .insight-trend-currency { border-top:1px solid #f0f0f2; padding-top:12px; margin-top:8px; }
.insight-trend h4, .insight-comparison h4, .insight-source-chart h4 { font-size:11px; font-weight:500; color:var(--muted-foreground, #71717a); margin:0 0 8px; }
.insight-trend svg { display:block; width:100%; height:auto; max-height:210px; overflow:visible; }
.insight-axis { font-size:11px; fill:#a1a1aa; font-variant-numeric:tabular-nums; }
.insight-point { cursor:crosshair; stroke:#fff; stroke-width:2; }
.insight-point:focus { outline:none; r:6; }
.insight-type-chart { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px; padding:22px 24px 30px; min-height:300px; }
.insight-donut { display:flex; align-items:center; justify-content:center; width:170px; height:170px; flex-shrink:0; border-radius:50%; }
.insight-donut-center { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; width:124px; height:124px; border-radius:50%; background:var(--paint-card, #fff); }
.insight-donut-center strong { font-size:28px; font-weight:600; letter-spacing:-1px; }
.insight-donut-center span { font-size:10px; color:var(--muted-foreground, #a1a1aa); }
.insight-legend { width:100%; display:flex; flex-direction:column; gap:14px; }
.insight-legend-item { display:flex; align-items:center; gap:9px; font-size:12px; cursor:default; }
.insight-legend-item > span { flex:1; color:var(--muted-foreground, #71717a); }
.insight-legend i, .insight-bar-legend i { display:inline-block; flex-shrink:0; width:8px; height:8px; border-radius:2px; }
.insight-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:18px 20px 0; padding:4px; border:1px solid #eeeef0; border-radius:8px; background:var(--paint-muted, #fafafa); }
.insight-tabs button { display:flex; justify-content:center; align-items:center; gap:8px; padding:9px 8px; border:0; border-radius:5px; background:transparent; color:var(--muted-foreground, #71717a); font-size:12px; cursor:pointer; }
.insight-tabs button[aria-selected="true"] { background:var(--paint-card, #fff); color:var(--foreground, #18181b); box-shadow:0 1px 4px #00000010; }
.insight-tabs button > span { font-size:9px; color:var(--muted-foreground, #a1a1aa); }
.insight-rank-panel[hidden] { display:none; }
.insight-rank-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:20px; padding:20px; }
.insight-rank-currency { min-width:0; }
.insight-rank-currency h4 { display:flex; justify-content:space-between; align-items:center; padding:0 0 12px; font-size:11px; font-weight:600; }
.insight-rank-currency h4 > span { font-size:10px; font-weight:400; color:var(--muted-foreground, #a1a1aa); }
.insight-ranking-list { list-style:none; padding:0; margin:0; }
.insight-ranking-list li { display:flex; align-items:center; gap:12px; min-height:76px; padding:12px 0; border-top:1px solid #f0f0f2; }
.insight-rank-number { flex:0 0 23px; height:23px; display:grid; place-items:center; border-radius:5px; background:var(--paint-muted, #f4f4f5); color:var(--muted-foreground, #71717a); font-size:10px; font-variant-numeric:tabular-nums; }
.insight-rank-partner { display:flex; flex-direction:column; gap:4px; flex:1; min-width:0; }
.insight-rank-partner strong { font-size:12px; font-weight:500; overflow-wrap:anywhere; }
.insight-rank-partner > span, .insight-rank-partner small { font-size:10px; color:var(--muted-foreground, #a1a1aa); overflow-wrap:anywhere; }
.insight-rank-amount { font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.insight-compare-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:28px; padding:22px; }
.insight-bar-legend { display:flex; flex-wrap:wrap; gap:14px; margin:14px 0 20px; font-size:10px; color:var(--muted-foreground, #71717a); }
.insight-bar-legend > span { display:inline-flex; gap:5px; align-items:center; }
.insight-comparison-list { max-height:440px; overflow-y:auto; padding-right:6px; }
.insight-bar-row { margin-bottom:20px; }
.insight-bar-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:11px; margin-bottom:8px; }
.insight-bar-heading span { color:var(--muted-foreground, #71717a); overflow-wrap:anywhere; }
.insight-bar-heading strong { white-space:nowrap; font-weight:500; }
.insight-bar-track { display:flex; height:18px; border-radius:3px; overflow:hidden; background:var(--paint-muted, #f4f4f5); }
.insight-bar-segment { display:block; height:100%; cursor:default; }
.insight-source-chart { padding:22px; overflow-x:auto; }
.insight-heatmap { display:grid; gap:5px; margin-top:16px; }
.insight-heat-label { display:flex; align-items:center; font-size:10px; color:var(--muted-foreground, #71717a); padding:5px; min-width:0; overflow-wrap:anywhere; }
.insight-heat-cell { display:grid; place-items:center; min-height:38px; border-radius:5px; font-size:11px; font-variant-numeric:tabular-nums; cursor:default; }
.insight-matrix .insight-money { font-size:11px; white-space:nowrap; font-weight:500; }
.insight-matrix .insight-count { display:block; margin-top:6px; }
.insight-matrix td { vertical-align:middle; }
.insight-matrix td:first-child { min-width:170px; font-size:11px; }
.insight-matrix th { text-align:left; white-space:nowrap; }
.insight-tooltip { position:fixed; z-index:1100; display:flex; flex-direction:column; gap:5px; max-width:min(320px,calc(100vw - 24px)); padding:12px 14px; border:1px solid var(--border, #e4e4e7); border-radius:8px; box-shadow:0 6px 24px #00000016; background:var(--paint-card, #fff); color:var(--muted-foreground, #52525b); pointer-events:none; font-size:11px; overflow-wrap:anywhere; }
.insight-tooltip[hidden] { display:none; }
.insight-tooltip strong { font-weight:600; color:var(--foreground, #18181b); }
.insight-empty { display:flex; justify-content:center; align-items:center; min-height:96px; padding:24px; color:var(--muted-foreground, #a1a1aa); font-size:12px; }
.insight-error { border:1px solid var(--border, #fecaca); border-radius:8px; padding:18px; background:var(--paint-danger-bg, #fef2f2); color:#991b1b; font-size:12px; }
@media(max-width:1250px) { .insight-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .insight-chart-grid { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); } }
@media(max-width:800px) { .insight-chart-grid, .insight-site-grid { grid-template-columns:1fr; } .insight-summary-card { min-height:160px; } .insight-site-types { gap:10px; } .insight-site-types > div { padding:12px; } }
@media(max-width:540px) {
 .insight-period { display:none; } .insight-filter-card { padding:16px; } .insight-filters > div:first-of-type { min-width:0; } .insight-summary-grid { gap:10px; } .insight-summary-card { padding:16px; min-height:150px; } .insight-card-heading { margin-bottom:16px; } .insight-card-heading h3 { font-size:11px; } .insight-card-heading svg { width:14px; height:14px; } .insight-summary-card .insight-money { font-size:17px; } .insight-site-card > summary { padding:16px; gap:10px; } .insight-site-total { font-size:12px; } .insight-site-body { padding:14px; } .insight-site-types { grid-template-columns:1fr; } .insight-site-types > div { display:grid; grid-template-columns:1fr 1.3fr auto; align-items:center; gap:8px; } .insight-site-types h5, .insight-site-types .insight-count { margin:0; } .insight-site-types .insight-money { font-size:12px; } .insight-tabs { margin:12px 12px 0; } .insight-tabs button { font-size:11px; gap:5px; } .insight-rank-grid { padding:14px; gap:20px; } .insight-ranking-list li { gap:8px; } .insight-rank-amount { font-size:11px; } .insight-rank-partner strong { font-size:11px; } .insight-panel > .insight-section-heading { padding:18px; } .insight-compare-grid { padding:18px; } .insight-source-chart { padding:18px; }
}

/* Equal filter columns and aligned checkbox rows. */
#main-content .insight-filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:12px; }
#main-content .insight-filters > div > label, #main-content .insight-filters .calendar-field-label { display:block; margin:0 0 8px; line-height:16px; font-size:11px; font-weight:500; color:var(--muted-foreground, #71717a); }
#main-content .filter-toolbar .multi-filter-option { display:flex; align-items:center; gap:10px; min-height:38px; margin:0; padding:8px 10px; font-size:12px; font-weight:400; line-height:20px; }
#main-content .filter-toolbar .multi-filter-option > span { display:block; flex:1; min-width:0; overflow-wrap:anywhere; }
#main-content .filter-toolbar .multi-filter-panel { padding:8px; }
#main-content .filter-toolbar .multi-filter-panel input[type="search"] { margin-bottom:6px; }
#main-content .filter-toolbar .multi-filter-footer { align-items:center; padding-top:8px; }
#main-content .insight-filters .filter-submit { height:38px; min-width:96px; }
@media(max-width:640px) { #main-content .insight-filters { grid-template-columns:minmax(0,1fr); } }

/* Compact traffic-source share, based on amounts per currency. */
.insight-source-pies { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr)); gap:0; }
.insight-source-pie { min-width:0; padding:22px; }
.insight-source-pie + .insight-source-pie { border-left:1px solid var(--border); }
.insight-pie-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.insight-pie-heading h4 { margin:0; font-size:12px; font-weight:500; color:var(--muted-foreground, #71717a); }
.insight-pie-heading strong { font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.insight-pie-body { display:grid; grid-template-columns:minmax(110px, .8fr) minmax(0,1.2fr); align-items:center; gap:16px; min-height:230px; }
.insight-pie-body svg { display:block; width:100%; max-width:190px; height:auto; justify-self:center; }
.insight-pie-slice { cursor:default; transition:opacity .15s; }
.insight-pie-slice:hover, .insight-pie-slice:focus { opacity:.75; outline:none; }
.insight-pie-legend { display:grid; gap:12px; }
.insight-pie-row { display:flex; align-items:center; gap:8px; min-height:28px; font-size:10px; }
.insight-pie-row > i { flex-shrink:0; width:8px; height:8px; border-radius:2px; }
.insight-pie-name { flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--muted-foreground, #71717a); }
.insight-pie-value { display:flex; flex-direction:column; align-items:flex-end; gap:3px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.insight-pie-value strong { font-size:10px; font-weight:500; }
.insight-pie-value small { font-size:9px; color:var(--muted-foreground, #a1a1aa); }
@media(max-width:1100px) { .insight-source-pies { grid-template-columns:1fr; } .insight-source-pie + .insight-source-pie { border-left:0; border-top:1px solid var(--border); } }
@media(max-width:540px) { .insight-source-pie { padding:18px; } .insight-pie-body { grid-template-columns:110px minmax(0,1fr); gap:14px; } }

/* Shared numbered pagination with a stable row-size selector. */
.table-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; border-top:1px solid var(--border); background:var(--paint-card, #fff); border-radius:0 0 12px 12px; font-size:11px; }
.table-page-settings { display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
.table-page-settings form { margin:0; }
.table-page-settings label { display:flex; align-items:center; gap:10px; color:var(--muted-foreground, #71717a); font-size:11px; font-weight:400; white-space:nowrap; }
#main-content .table-pagination select { width:68px; height:32px; min-height:32px; padding:4px 8px; font-size:11px; border-radius:6px; cursor:pointer; }
.table-page-range { color:var(--muted-foreground, #a1a1aa); font-size:10px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.table-page-links { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:5px; }
.table-page-links > a, .table-page-links > span { display:inline-flex; align-items:center; justify-content:center; min-width:32px; height:32px; padding:0 9px; border:1px solid var(--border); border-radius:6px; background:var(--paint-card, #fff); color:var(--muted-foreground, #71717a); font-size:11px; font-variant-numeric:tabular-nums; text-decoration:none; }
.table-page-links > a:hover { background:var(--paint-muted, #f4f4f5); color:var(--foreground, #18181b); }
.table-page-links > .is-current { background:var(--paint-primary, #18181b); color:var(--paint-on-primary, #fff); border-color:#18181b; font-weight:500; }
.table-page-links > .is-disabled { color:#c4c4ca; background:var(--paint-muted, #fafafa); }
.table-page-links > .table-page-gap { border-color:transparent; min-width:16px; padding:0 2px; }
@media(max-width:760px) { .table-pagination { flex-direction:column; gap:14px; padding:16px 12px; } .table-page-settings { width:100%; justify-content:space-between; } .table-page-links { width:100%; } .table-page-links > a, .table-page-links > span { min-width:28px; height:30px; padding:0 7px; font-size:10px; } }

/* Page-size controls use the same custom select as the forms. */
.table-page-size-field { display:flex; align-items:center; gap:10px; }
.table-page-size-field > label { margin:0; }
.pagination-size-control { width:68px; flex:0 0 68px; }
.pagination-size-control .partner-select-trigger { height:32px; min-height:32px; padding:0 9px; font-size:11px; }
.pagination-size-panel { z-index:70; }
.pagination-size-panel .partner-select-option { min-height:30px; padding:6px 9px; font-size:11px; }
.pagination-size-panel .partner-select-option.is-selected::after { content:'✓'; margin-left:auto; color:var(--muted-foreground, #52525b); }

/* Website identity */
.website-icon { display:inline-block; width:24px; height:24px; object-fit:contain; flex-shrink:0; vertical-align:middle; }
.website-name-inline { display:inline-flex; align-items:center; gap:8px; min-width:0; }
.insight-rank-partner .website-icon { width:16px; height:16px; }
.insight-site-name .website-icon { width:24px; height:24px; }
.insight-site-name .insight-count { margin-left:32px; }
.website-icon-form { flex-wrap:wrap; }
.website-icon-upload { display:inline-flex; align-items:center; gap:8px; padding:7px 12px; min-height:38px; border:1px dashed var(--border, #d4d4d8); border-radius:7px; cursor:pointer; color:var(--muted-foreground, #71717a); font-size:11px; max-width:260px; position:relative; }
.website-icon-upload > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.website-icon-upload input { position:absolute; width:1px; height:1px; opacity:0; }
.website-icon-upload:focus-within { outline:2px solid #a1a1aa; outline-offset:2px; }
.website-remove-icon { display:inline-flex; align-items:center; gap:6px; color:var(--muted-foreground, #71717a); font-size:11px; }
.website-compact-actions form { margin:0; }
.website-compact-actions button { display:grid; place-items:center; width:30px; height:30px; border:1px solid var(--border); border-radius:6px; background:var(--paint-card, #fff); }
.website-compact-actions button.website-delete { color:var(--paint-danger-text, #b45353); }
.insight-site-types { grid-template-columns:repeat(var(--type-count,3),minmax(0,1fr)); }
.insight-tabs { grid-template-columns:repeat(auto-fit,minmax(80px,1fr)); }
/* Team and reusable ACL groups */
.team-section-tabs { display:flex; gap:6px; margin-bottom:22px; padding:4px; width:fit-content; border:1px solid var(--border); border-radius:8px; background:var(--paint-muted, #f4f4f5); }
.team-section-tabs a { padding:9px 18px; border-radius:5px; color:var(--muted-foreground, #71717a); font-size:12px; text-decoration:none; }
.team-section-tabs a.is-active { color:var(--foreground, #18181b); background:var(--paint-card, #fff); box-shadow:0 1px 3px #00000010; }
.team-card { background:var(--paint-card, #fff); border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.team-search-form { display:flex; gap:10px; padding:20px; border-bottom:1px solid var(--border); }
.team-search-form input[type=search] { flex:1; min-width:0; padding:8px 12px; height:38px; }
.team-search-form button { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--border); background:var(--paint-card, #fff); border-radius:6px; padding:8px 14px; font-size:12px; }
.team-table { min-width:850px; }
.team-table th { text-align:left; }
.team-table th:last-child { text-align:right; }
.team-table td { vertical-align:middle; height:76px; }
.team-table .note-trigger { margin:0; }
.team-status, .team-scope-badge { display:inline-flex; align-items:center; justify-content:center; padding:5px 9px; border-radius:5px; background:var(--paint-muted, #f4f4f5); color:var(--muted-foreground, #71717a); font-size:10px; white-space:nowrap; }
.team-status.is-active { background:var(--paint-success-bg, #f0fdfa); color:var(--paint-success-text, #0f766e); }
.team-protected { color:var(--muted-foreground, #a1a1aa); font-size:10px; white-space:nowrap; }
.team-group-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.team-group-card { display:flex; flex-direction:column; gap:20px; min-width:0; padding:22px; border:1px solid var(--border); border-radius:12px; background:var(--paint-card, #fff); }
.team-group-heading { display:flex; align-items:center; gap:10px; }
.team-group-heading h3 { flex:1; min-width:0; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.team-group-heading > svg { width:20px; color:var(--muted-foreground, #a1a1aa); }
.team-group-meta { display:flex; justify-content:space-between; color:var(--muted-foreground, #a1a1aa); font-size:11px; }
.team-group-actions { display:flex; gap:8px; }
.team-group-actions form { margin:0; flex:1; }
.team-group-actions a, .team-group-actions button { display:inline-flex; justify-content:center; align-items:center; gap:6px; width:100%; border:1px solid var(--border); border-radius:6px; background:var(--paint-card, #fff); padding:8px 12px; font-size:11px; color:var(--muted-foreground, #71717a); text-decoration:none; }
.team-group-actions > a { flex:1; }
.team-group-actions button { color:var(--paint-danger-text, #b45353); }
.team-checkbox { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted-foreground, #52525b); }
.team-checkbox input { width:15px; height:15px; margin:0; }
.team-permission-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.team-permission-toolbar button { border:1px solid var(--border); border-radius:6px; padding:7px 10px; background:var(--paint-muted, #fafafa); font-size:11px; color:var(--muted-foreground, #71717a); }
.team-permission-table { min-width:430px; }
.team-permission-table th, .team-permission-table td { text-align:center; }
.team-permission-table th:first-child, .team-permission-table td:first-child { text-align:left; }
.team-permission-table input { width:15px; height:15px; margin:0; }
[data-team-sites][hidden] { display:none; }
@media(max-width:1000px) { .team-group-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .team-group-grid { grid-template-columns:1fr; } .website-icon-upload { max-width:100%; } .insight-site-types { grid-template-columns:1fr; } }
.website-icon-placeholder { display:inline-grid; place-items:center; width:20px; height:20px; flex:0 0 20px; border:1px solid var(--border); border-radius:4px; background:var(--paint-muted, #f4f4f5); color:var(--muted-foreground, #71717a); font-size:10px; }
.partner-select-option .website-icon, .multi-filter-option .website-icon { width:20px; height:20px; }
#main-content .filter-toolbar .multi-filter-option > .website-icon-placeholder { display:inline-grid; flex:0 0 20px; }
.notification-table small.website-name-inline { display:inline-flex; }
.notification-table small .website-icon { width:16px; height:16px; }
.team-new-link { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; text-decoration:none; }

/* Password tools */
.team-password-control { display:flex; align-items:center; gap:3px; height:38px; padding:0 4px 0 0; border:1px solid var(--input); border-radius:6px; background:var(--paint-card, #fff); }
.team-password-control:focus-within { border-color:#a1a1aa; box-shadow:0 0 0 3px #18181b12; }
.team-password-control input { flex:1; width:0; min-width:0; height:36px; min-height:36px; border:0; box-shadow:none; background:transparent; }
.team-password-control input:focus { box-shadow:none; }
.team-password-control button { display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; padding:0; border:0; border-radius:4px; background:transparent; color:var(--muted-foreground, #71717a); }
.team-password-control button:hover { background:var(--paint-muted, #f4f4f5); color:var(--foreground, #18181b); }
.team-password-control button svg { width:14px; height:14px; }
.team-password-status { min-height:14px; color:var(--paint-success-text, #0f766e); font-size:10px; }
/* Hierarchical permission registry */
.acl-tree { border:1px solid var(--border); border-radius:9px; padding:16px; min-width:0; }
.acl-tree [hidden] { display:none !important; }
.acl-tree-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.acl-tree-title h4 { margin:0; font-size:13px; font-weight:600; }
.acl-tree-title button { border:0; border-radius:4px; background:var(--paint-muted, #f4f4f5); color:var(--muted-foreground, #71717a); font-size:10px; padding:6px 9px; }
.acl-tree-search { display:block; width:100%; height:36px; padding:8px 10px; }
.acl-search-hint { display:block; margin-top:6px; font-size:10px; color:var(--muted-foreground, #a1a1aa); }
.acl-tree-all { display:flex; align-items:center; gap:9px; margin:16px 0 10px; font-size:12px; }
.acl-tree-all > span { margin-left:auto; color:var(--muted-foreground, #a1a1aa); font-size:10px; }
.acl-tree input[type=checkbox] { width:15px; height:15px; flex-shrink:0; margin:0; accent-color:#0d9488; }
.acl-tree-nodes { max-height:min(48dvh,440px); overflow-y:auto; padding-right:5px; }
.acl-tree-heading { display:flex; align-items:center; gap:8px; min-height:38px; }
.acl-tree-heading label { display:flex; align-items:center; gap:9px; font-size:12px; font-weight:500; min-width:0; }
.acl-tree-heading label > span { overflow-wrap:anywhere; }
.acl-tree-toggle { display:grid; place-items:center; flex:0 0 18px; width:18px; height:24px; background:transparent; border:0; padding:0; }
.acl-tree-toggle > span { width:6px; height:6px; border-right:1.5px solid #a1a1aa; border-bottom:1.5px solid #a1a1aa; transform:rotate(-45deg); }
.acl-tree-toggle[aria-expanded=true] > span { transform:rotate(45deg); }
.acl-tree-children { margin-left:9px; padding-left:17px; border-left:1px dashed var(--border, #e4e4e7); }
.acl-tree-leaf { display:flex; align-items:center; gap:9px; min-height:36px; padding-left:26px; font-size:11px; color:var(--muted-foreground, #52525b); }
.acl-tree-count { margin-left:auto; padding-left:8px; font-size:10px; color:var(--muted-foreground, #a1a1aa); white-space:nowrap; font-variant-numeric:tabular-nums; }
.acl-scope-label { font-size:9px; color:var(--muted-foreground, #a1a1aa); white-space:nowrap; }
.acl-tree-empty { padding:20px; color:var(--muted-foreground, #a1a1aa); text-align:center; font-size:12px; }
/* Uniform partner rows, rich popup content */
.partner-single-source { display:inline-flex; align-items:center; gap:7px; max-width:180px; min-height:30px; font-size:11px; color:var(--muted-foreground, #52525b); }
.partner-single-source > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.partner-single-source .website-icon { width:20px; height:20px; }
#note-viewer-text { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.8; }
.popup-search { position:sticky; top:0; z-index:1; width:100%; height:36px; padding:8px 10px; margin-bottom:14px; background:var(--paint-card, #fff); }
.popup-link-list, .popup-source-list { list-style:none; padding:0; margin:0; white-space:normal; }
.popup-link-list li { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid #f0f0f2; }
.popup-link-list li:last-child { border:0; }
.popup-link-list li > span { display:grid; place-items:center; min-width:24px; height:24px; flex-shrink:0; border-radius:4px; background:var(--paint-muted, #f4f4f5); color:var(--muted-foreground, #a1a1aa); font-size:10px; }
.popup-link-list a { display:flex; align-items:center; gap:8px; min-width:0; color:var(--foreground, #3f3f46); text-decoration:none; font-size:12px; overflow-wrap:anywhere; }
.popup-link-list a:hover { text-decoration:underline; }
.popup-link-list a svg { flex:0 0 14px; width:14px; height:14px; color:var(--muted-foreground, #a1a1aa); }
.popup-source-list li { display:flex; align-items:center; gap:10px; min-height:48px; padding:9px 0; border-bottom:1px solid #f0f0f2; font-size:12px; }
.popup-source-list li:last-child { border:0; }
.popup-link-list [hidden], .popup-list-empty[hidden] { display:none; }
.popup-list-empty { padding:18px; font-size:12px; text-align:center; color:var(--muted-foreground, #a1a1aa); }
.popup-legacy-text { white-space:pre-wrap; border-top:1px solid var(--border); padding-top:16px; margin-top:14px; font-size:11px; color:var(--muted-foreground, #71717a); }
@media(max-width:540px) { .acl-tree { padding:12px; } .acl-tree-children { padding-left:12px; } .acl-scope-label { display:none; } }
/* Plain notes retain their layout; rich lists use their own wrapping rules. */
#note-viewer-text:has(.popup-link-list), #note-viewer-text:has(.popup-source-list) { white-space:normal; }

/* Consistent two-line audit cells and compact whitelist rows. */
.table-audit-date,.table-audit-person-name { display:block; font-size:11px; line-height:20px; white-space:nowrap; max-width:150px; overflow:hidden; text-overflow:ellipsis; }
.table-audit-person { display:block; font-size:10px; font-weight:400; line-height:18px; color:var(--muted-foreground, #a1a1aa); white-space:nowrap; max-width:150px; overflow:hidden; text-overflow:ellipsis; }
.whitelist-filters { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.whitelist-filters > input[type=search] { flex:1 1 200px; min-width:160px; }
.whitelist-bulk-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; border-bottom:1px solid var(--border); }
.whitelist-bulk-actions > span { font-size:11px; color:var(--muted-foreground, #71717a); }
.whitelist-bulk-actions button,.whitelist-complete { display:inline-flex; align-items:center; justify-content:center; gap:6px; border:1px solid var(--border); background:var(--paint-card, #fff); border-radius:6px; padding:7px 10px; font-size:10px; white-space:nowrap; }
.whitelist-bulk-actions button:disabled { opacity:.4; cursor:default; }
.whitelist-bulk-actions svg,.whitelist-complete svg { width:14px; height:14px; }
.whitelist-table { width:100%; }
.whitelist-table td { height:72px; vertical-align:middle; }
.whitelist-table th { white-space:nowrap; }
.whitelist-check-cell { width:42px; text-align:center; }
.whitelist-check-cell input { width:14px; height:14px; accent-color:#0d9488; }
.whitelist-source { display:block; max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; color:var(--foreground, #3f3f46); }
.whitelist-source:hover { text-decoration:underline; }
.whitelist-state { display:inline-flex; justify-content:center; min-width:105px; padding:6px 9px; border:1px solid var(--border, #e4e4e7); background:var(--paint-muted, #fafafa); color:var(--muted-foreground, #71717a); border-radius:5px; font-size:10px; white-space:nowrap; }
.whitelist-state.is-added { background:var(--paint-success-bg, #f0fdfa); border-color:#ccfbf1; color:var(--paint-success-text, #0f766e); }
.whitelist-form-hint { display:block; font-size:10px; color:var(--muted-foreground, #a1a1aa); margin-top:6px; }
#whitelist-editor { width:min(600px,calc(100vw - 32px)); }
#whitelist-sources { resize:vertical; min-height:100px; }
@media(max-width:640px) { .whitelist-filters > * { flex:1 1 100%; } .whitelist-table { min-width:1000px; } .whitelist-bulk-actions { padding:12px; } }
#main-content #header:has([data-open-whitelist]),#main-content #header:has(.team-new-link) { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.whitelist-filters { padding:20px; border-bottom:1px solid var(--border); }
.whitelist-table .partner-actions .whitelist-complete { display:inline-flex; width:auto; min-width:72px; height:30px; padding:0 8px; gap:5px; }
.whitelist-table .partner-actions .whitelist-complete span { display:inline; }
.whitelist-table .partner-actions { flex-wrap:nowrap; }
/* Audit: equal card geometry, fixed columns and concise, expandable detail. */
.audit-filter-card { margin-bottom:18px; }
#main-content .audit-filters { padding:20px; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; align-items:end; }
.audit-filters label,.schedule-toolbar label { display:block; font-size:10px; color:var(--muted-foreground, #71717a); margin-bottom:7px; }
.audit-filters input { width:100%; min-width:0; height:38px; }
#main-content .audit-filters .audit-date-range { grid-column:span 2; }
.audit-filters .calendar-range-field { width:100%; }
.audit-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.audit-metrics > div { padding:20px; min-height:100px; display:flex; flex-direction:column; gap:12px; }
.audit-metrics span { font-size:11px; color:var(--muted-foreground, #71717a); }
.audit-metrics strong { font-size:25px; font-variant-numeric:tabular-nums; line-height:1; }
.audit-people { margin-bottom:18px; }
.audit-people summary { display:flex; justify-content:space-between; padding:18px 20px; cursor:pointer; font-size:12px; font-weight:600; }
.audit-people summary::after { content:'⌄'; color:var(--muted-foreground, #a1a1aa); margin-left:12px; }
.audit-people summary > span { margin-left:auto; font-size:10px; font-weight:400; color:var(--muted-foreground, #a1a1aa); }
.audit-table { width:100%; min-width:1050px; table-layout:fixed; }
.audit-table th,.audit-table td { text-align:left; vertical-align:middle; padding:14px 16px; }
.audit-table td { height:72px; font-size:11px; }
.audit-table th { font-size:10px; white-space:nowrap; }
.audit-ellipsis,.audit-action { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11px; }
.audit-action { color:var(--muted-foreground, #52525b); }
.audit-table .table-audit-person,.audit-table .table-audit-person-name { max-width:100%; }
.audit-level { display:inline-flex; align-items:center; gap:6px; font-size:10px; white-space:nowrap; }
.audit-level::before { content:''; width:6px; height:6px; background:#3b82f6; border-radius:2px; }
.audit-level.is-medium::before { background:#eab308; }.audit-level.is-high::before { background:#f97316; }.audit-level.is-critical::before { background:#ef4444; }
.audit-table th:last-child,.audit-table td:last-child { text-align:center; padding:10px 6px; }
.audit-table .note-trigger { font-size:0; padding:7px; width:30px; height:30px; min-width:30px; }
.audit-table .note-trigger svg { width:14px; height:14px; }
/* Whitelist: every heading shares its cell's alignment and fixed width. */
.whitelist-table { table-layout:fixed; min-width:1100px; }
.whitelist-table th,.whitelist-table td { text-align:left; padding:16px 18px; vertical-align:middle; }
.whitelist-table .whitelist-check-cell,.whitelist-table .table-note-cell { text-align:center; padding:16px 8px; }
.whitelist-table th:last-child,.whitelist-table td:last-child { text-align:center; }
.whitelist-table .partner-actions { justify-content:center; gap:5px; }
.whitelist-table .table-audit-person,.whitelist-table .table-audit-person-name,.whitelist-table .whitelist-source { max-width:100%; }
.whitelist-table .website-name-inline { display:flex; width:100%; min-width:0; }
.whitelist-table .website-name-inline > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.whitelist-table .partner-actions .whitelist-complete { min-width:30px; width:30px; padding:0; }
.whitelist-table .whitelist-complete > span { display:none !important; }
/* Weekly schedule: identical day columns, paired times and consistent row heights. */
.schedule-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.schedule-timezone { display:inline-flex; align-items:center; gap:6px; color:var(--muted-foreground, #71717a); font-size:11px; white-space:nowrap; }
.schedule-timezone svg { width:15px; height:15px; }
.schedule-toolbar { margin-bottom:20px; padding:20px; display:flex; justify-content:space-between; align-items:end; gap:20px; flex-wrap:wrap; }
.schedule-toolbar form { display:flex; align-items:end; gap:14px; flex:1; min-width:0; }
.schedule-toolbar form > div { min-width:180px; flex:1; max-width:300px; }
.schedule-toolbar input { height:38px; width:100%; }
.schedule-week-nav { display:flex; align-items:center; gap:14px; height:38px; }
.schedule-week-nav strong { font-size:11px; font-weight:500; font-variant-numeric:tabular-nums; }
.schedule-week-nav a { display:grid; place-items:center; border:1px solid var(--border); border-radius:6px; width:30px; height:30px; font-size:20px; color:var(--muted-foreground, #71717a); }
.schedule-table { table-layout:fixed; width:100%; min-width:1080px; }
.schedule-user-col { width:170px; }.schedule-total-col { width:75px; }
.schedule-table th { text-align:center; font-size:10px; padding:15px 8px; }
.schedule-table th small { display:block; font-size:9px; color:var(--muted-foreground, #a1a1aa); font-weight:400; margin-top:6px; }
.schedule-table td { padding:12px 8px; height:80px; vertical-align:middle; text-align:center; }
.schedule-table th:first-child,.schedule-table td:first-child { text-align:left; padding-left:20px; }
.schedule-table td:first-child > span { display:block; max-width:145px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:11px; font-weight:500; }
.schedule-edit { display:inline-flex; align-items:center; gap:5px; background:transparent; border:0; color:var(--muted-foreground, #a1a1aa); font-size:10px; margin-top:5px; padding:0; }
.schedule-edit svg { width:12px; height:12px; }
.shift-chip { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:44px; gap:5px; border:1px solid var(--border, #e4e4e7); background:var(--paint-muted, #fafafa); border-radius:6px; font-size:10px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.shift-chip small { color:var(--muted-foreground, #a1a1aa); font-size:9px; }
.shift-chip.is-off { background:var(--paint-primary, #18181b); border-color:#18181b; color:var(--paint-on-primary, #fff); letter-spacing:.05em; }
.shift-chip.is-empty { border-color:transparent; background:transparent; color:var(--muted-foreground, #a1a1aa); }
.schedule-total { font-size:11px; font-weight:600; white-space:nowrap; font-variant-numeric:tabular-nums; }
#shift-editor { width:min(700px,calc(100vw - 32px)); }
.shift-editor-person { font-size:13px; font-weight:600; padding-bottom:14px; border-bottom:1px solid var(--border); }
.shift-editor-days { display:flex; flex-direction:column; gap:12px; }
.shift-editor-day { display:grid; grid-template-columns:1.05fr 1fr 1fr 1fr; align-items:center; gap:12px; }
.shift-editor-day > label { font-size:11px; font-weight:500; }.shift-editor-day > label small { display:block; margin-top:4px; color:var(--muted-foreground, #a1a1aa); font-size:10px; }
.shift-editor-day input[type=time] { width:100%; min-width:0; height:36px; padding:6px 8px; font-size:11px; }
.shift-editor-day input:disabled { opacity:.3; }
@media(max-width:1000px) { #main-content .audit-filters { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:640px) { #main-content .audit-filters { grid-template-columns:repeat(2,minmax(0,1fr)); padding:16px; } .audit-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .audit-metrics > div { padding:16px; }.audit-metrics span { min-height:28px; } .schedule-toolbar form { flex-wrap:wrap; }.schedule-toolbar form > div { min-width:100%; max-width:100%; }.schedule-toolbar { padding:16px; }.schedule-heading { align-items:start; flex-direction:column; } .shift-editor-day { gap:6px; grid-template-columns:1fr 1fr 1fr 1fr; }.shift-editor-day > label { font-size:9px; }.shift-editor-day .partner-select-trigger { padding:5px; font-size:10px; } }
#main-content .audit-table th,#main-content .audit-table td { padding:14px 14px; }
#main-content .audit-table th:last-child,#main-content .audit-table td:last-child { padding:10px 6px; }
#main-content .whitelist-table th,#main-content .whitelist-table td { padding:16px 14px; }
#main-content .whitelist-table .whitelist-check-cell,#main-content .whitelist-table .table-note-cell,#main-content .whitelist-table th:last-child,#main-content .whitelist-table td:last-child { padding:16px 6px; }
#main-content .schedule-table th,#main-content .schedule-table td { padding:14px 8px; }
#main-content .schedule-table th:first-child,#main-content .schedule-table td:first-child { padding-left:20px; }
/* Shared, server-synchronized GMT+3 clock below the workspace brand. */
.sidebar-clock { display:grid; grid-template-columns:1fr auto; align-items:center; gap:5px 10px; margin:0 20px 18px; padding:12px 14px; border:1px solid var(--border, #e4e4e7); border-radius:8px; background:var(--paint-card, #fff); }
.sidebar-clock > span { font-size:10px; color:var(--muted-foreground, #71717a); grid-column:1 / -1; }
.sidebar-clock > strong { font-size:18px; font-weight:600; letter-spacing:.04em; font-variant-numeric:tabular-nums; }
.sidebar-clock > small { font-size:9px; color:var(--muted-foreground, #a1a1aa); }
.sidebar-nav { min-height:0; overflow-y:auto; }
.attendance-section-title { font-size:14px; font-weight:600; margin:24px 0 14px; }
.attendance-own-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.attendance-own-card { padding:20px; display:flex; flex-direction:column; gap:18px; }
.attendance-card-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.attendance-card-title .website-name-inline { min-width:0; }
.attendance-card-title .website-name-inline > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.attendance-shift-hours { font-size:12px; font-weight:500; font-variant-numeric:tabular-nums; }
.attendance-actual { display:grid; grid-template-columns:1fr 1fr; gap:14px; border-top:1px solid var(--border); padding-top:14px; }
.attendance-actual > span { font-size:10px; color:var(--muted-foreground, #a1a1aa); }.attendance-actual strong { display:block; margin-top:6px; font-size:15px; color:var(--foreground, #3f3f46); font-weight:500; font-variant-numeric:tabular-nums; }
.attendance-buttons { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.attendance-buttons button { min-height:38px; border:1px solid #18181b; background:var(--paint-primary, #18181b); color:var(--paint-on-primary, #fff); border-radius:6px; padding:8px; font-size:11px; }
.attendance-buttons button:disabled { background:var(--paint-muted, #f4f4f5); border-color:var(--border, #e4e4e7); color:var(--muted-foreground, #a1a1aa); cursor:default; }
.attendance-card-hint { font-size:10px; color:var(--muted-foreground, #a1a1aa); line-height:1.6; }
.attendance-late-reason { margin-bottom:14px; }.attendance-late-reason[hidden] { display:none; }
.attendance-late-reason label { display:block; font-size:11px; margin-bottom:8px; }.attendance-late-reason textarea { width:100%; padding:10px; font-size:12px; resize:vertical; }
.attendance-own-empty { padding:28px; color:var(--muted-foreground, #a1a1aa); font-size:12px; grid-column:1 / -1; }
#main-content .attendance-filters { padding:20px; display:flex; gap:12px; flex-wrap:wrap; align-items:end; }
#main-content .attendance-filters > div { flex:1 1 150px; min-width:0; }
#main-content .attendance-filters > div:has(.calendar-range-field) { flex:2 1 240px; }
.attendance-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; padding:18px 20px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.attendance-summary > span { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:10px; color:var(--muted-foreground, #71717a); }
.attendance-summary strong { font-size:17px; color:var(--foreground, #3f3f46); font-variant-numeric:tabular-nums; }
.attendance-table { table-layout:fixed; min-width:1100px; width:100%; }
#main-content .attendance-table th,#main-content .attendance-table td { text-align:left; padding:15px 14px; height:72px; vertical-align:middle; font-size:11px; }
#main-content .attendance-table th { height:auto; font-size:10px; }
.attendance-table .table-audit-person-name,.attendance-table .table-audit-person { max-width:100%; }
.attendance-table .website-name-inline { max-width:100%; }.attendance-table .website-name-inline > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#main-content .attendance-table th:last-child,#main-content .attendance-table td:last-child { text-align:center; width:70px; }
@media(max-width:1100px) { .attendance-own-grid { grid-template-columns:1fr; } }
@media(max-width:640px) { .attendance-own-card { padding:16px; }.attendance-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.attendance-card-title { align-items:start; }.attendance-buttons { gap:8px; }.attendance-buttons button { font-size:10px; } }
#main-content .audit-filters > .calendar-range-field { grid-column:span 3; }
.schedule-toolbar .filter-submit { display:inline-flex; align-items:center; justify-content:center; gap:7px; height:38px; padding:0 14px; border:1px solid var(--border); border-radius:6px; background:var(--paint-card, #fff); color:var(--foreground, #3f3f46); font-size:11px; white-space:nowrap; }
.schedule-toolbar .filter-submit svg { width:15px; height:15px; }
.schedule-week-nav a { text-decoration:none; }
.attendance-own-grid:has(> :only-child) { grid-template-columns:1fr; }
.attendance-table .note-trigger { font-size:0; width:30px; min-width:30px; height:30px; padding:7px; }
.attendance-table .note-trigger svg { width:14px; height:14px; }
@media(max-width:1000px) { #main-content .audit-filters > .calendar-range-field { grid-column:span 3; } }
@media(max-width:640px) { #main-content .audit-filters > .calendar-range-field { grid-column:span 2; } }
.schedule-edit { min-height:24px; color:var(--muted-foreground, #71717a); }
.schedule-edit:hover { color:var(--foreground, #18181b); }
/* Copy hours without changing the weekly grid geometry. */
.shift-editor-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:14px; border-bottom:1px solid var(--border); }
.shift-editor-tools .shift-editor-person { padding:0; border:0; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.shift-copy-week { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex-shrink:0; padding:7px 10px; border:1px solid var(--border); border-radius:6px; background:var(--paint-card, #fff); color:var(--muted-foreground, #52525b); font-size:10px; }
.shift-copy-week svg,.shift-copy-day svg { width:14px; height:14px; }
.shift-copy-status { display:block; min-height:28px; color:var(--muted-foreground, #a1a1aa); font-size:10px; line-height:1.5; margin-top:-8px; }
.shift-editor-day { grid-template-columns:1.05fr 1fr 1fr 1fr 30px; }
.shift-copy-day { display:grid; place-items:center; width:30px; height:36px; border:1px solid var(--border); border-radius:6px; background:var(--paint-card, #fff); color:var(--muted-foreground, #71717a); }
.shift-copy-day:hover:not(:disabled),.shift-copy-week:hover:not(:disabled) { color:var(--foreground, #18181b); background:var(--paint-muted, #fafafa); }
.shift-copy-day:disabled,.shift-copy-week:disabled { opacity:.3; cursor:default; }
@media(max-width:640px) { .shift-editor-tools { flex-wrap:wrap; }.shift-copy-week { width:100%; }.shift-editor-day { grid-template-columns:.9fr 1fr 1fr 1fr 26px; gap:5px; }.shift-copy-day { width:26px; }.shift-editor-day input[type=time] { padding:6px 3px; } }
/* Planner and monthly budgets share compact, symmetric controls. */
.collab-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.collab-primary,.collab-outline { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid #18181b; background:var(--paint-primary, #18181b); color:var(--paint-on-primary, #fff); border-radius:6px; padding:9px 13px; min-height:36px; font-size:11px; text-decoration:none; white-space:nowrap; }
.collab-outline { background:var(--paint-card, #fff); color:var(--muted-foreground, #52525b); border-color:var(--border); }
.collab-primary svg,.collab-outline svg { width:15px; height:15px; }
.collab-danger { color:var(--paint-danger-text, #b45353); }
.collab-filter-card { margin-bottom:20px; }
#main-content .collab-filters { display:flex; flex-wrap:wrap; gap:12px; padding:20px; align-items:end; }
#main-content .collab-filters > div { flex:1 1 150px; min-width:0; }
#main-content .collab-filters .collab-search { flex:2 1 220px; }
#main-content .collab-filters .calendar-range-field { flex:2 1 260px; }
#main-content .collab-filters .collab-filter-checks { flex:1 1 100%; display:flex; align-items:center; gap:24px; padding-top:4px; }
.collab-filter-checks label { display:inline-flex; align-items:center; gap:7px; color:var(--muted-foreground, #71717a); font-size:11px; }
#main-content .collab-filter-checks input { width:14px; height:14px; min-height:14px; padding:0; accent-color:#18181b; }
.collab-filters input[type=search] { width:100%; height:38px; }
.planner-metrics,.budget-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.planner-metrics > div,.budget-metrics > div { display:flex; flex-direction:column; justify-content:space-between; gap:16px; padding:20px; min-height:105px; }
.planner-metrics span,.budget-metrics span { display:flex; align-items:center; gap:8px; color:var(--muted-foreground, #71717a); font-size:11px; }
.planner-metrics strong { font-size:25px; line-height:1; font-variant-numeric:tabular-nums; }
.budget-metrics strong { font-size:21px; line-height:1; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.planner-dot { width:7px; height:7px; display:inline-block; border-radius:50%; background:#a1a1aa; flex-shrink:0; }
.planner-dot.is-in_progress { background:#3b82f6; }.planner-dot.is-testing { background:#f59e0b; }.planner-dot.is-done { background:#14b8a6; }
.planner-viewbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:4px 0 16px; }
.planner-viewbar > span { color:var(--muted-foreground, #a1a1aa); font-size:11px; }.planner-viewbar > div { display:flex; gap:3px; padding:3px; border:1px solid var(--border); border-radius:7px; background:var(--paint-muted, #f4f4f5); }
.planner-viewbar a { padding:6px 12px; color:var(--muted-foreground, #71717a); font-size:11px; border-radius:4px; text-decoration:none; }.planner-viewbar a.is-active { background:var(--paint-card, #fff); color:var(--foreground, #18181b); box-shadow:0 1px 3px #0000000d; }
.planner-board-scroll { width:100%; overflow-x:auto; padding-bottom:10px; }
.planner-board { display:grid; grid-template-columns:repeat(4,minmax(240px,1fr)); gap:16px; min-width:1010px; }
.planner-lane { border:1px solid var(--border); background:#f4f4f580; border-radius:10px; min-width:0; }
.planner-lane > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px 14px; border-bottom:1px solid var(--border); }
.planner-lane > header > span { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:600; }.planner-lane > header small { font-size:10px; color:var(--muted-foreground, #a1a1aa); font-variant-numeric:tabular-nums; }
.planner-lane-body { display:flex; flex-direction:column; gap:12px; padding:12px; min-height:240px; max-height:730px; overflow-y:auto; }
.planner-task-card { padding:14px; display:flex; flex-direction:column; justify-content:space-between; gap:12px; min-height:180px; flex-shrink:0; border:1px solid var(--border, #e4e4e7); border-radius:8px; background:var(--paint-card, #fff); box-shadow:0 1px 2px #00000003; }
.planner-task-card[draggable=true] { cursor:grab; }.planner-task-card.is-dragging { opacity:.4; }.planner-lane.is-drop-target { background:var(--paint-success-bg, #f0fdfa); border-color:#5eead4; }
.planner-task-card.is-late { border-top:2px solid #e8b4b4; }
.planner-task-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }.planner-task-top > small { color:var(--muted-foreground, #a1a1aa); font-size:9px; }
.planner-priority { font-size:9px; color:var(--muted-foreground, #71717a); border:1px solid var(--border, #e4e4e7); border-radius:4px; padding:3px 6px; }.planner-priority.is-high { color:var(--paint-warning-text, #b45309); background:var(--paint-warning-bg, #fffbeb); border-color:var(--border, #fde68a); }.planner-priority.is-urgent { color:var(--paint-danger-text, #b45353); background:#fff5f5; border-color:var(--border, #fecaca); }
.planner-task-title { font-size:12px; font-weight:600; line-height:1.6; min-height:38px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-decoration:none; overflow-wrap:anywhere; }.planner-task-title:hover { text-decoration:underline; }
.planner-task-card .website-name-inline { color:var(--muted-foreground, #a1a1aa); font-size:10px; min-width:0; }.planner-task-card .website-name-inline > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.planner-task-card .website-icon { width:18px; height:18px; }
.planner-task-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:10px; border-top:1px solid #f4f4f5; font-size:9px; color:var(--muted-foreground, #71717a); }.planner-task-bottom > span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; min-width:0; }.planner-task-bottom time { white-space:nowrap; font-variant-numeric:tabular-nums; }
.planner-task-card.is-late time,.collab-late { color:var(--paint-danger-text, #b45353); }
.planner-lane-empty { color:var(--muted-foreground, #a1a1aa); font-size:11px; padding:40px 12px; text-align:center; }.planner-more { text-align:center; color:var(--muted-foreground, #71717a); font-size:11px; padding:10px; }
.collab-editor { width:min(680px,calc(100vw - 32px)); }
.collab-form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.collab-description { white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.8; padding:14px; border:1px solid var(--border); border-radius:7px; background:var(--paint-muted, #fafafa); }
.planner-detail-title { font-size:17px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.planner-detail-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; font-size:11px; color:var(--muted-foreground, #71717a); }
.planner-status-form { display:flex; align-items:center; gap:12px; }.planner-status-form > .partner-select { flex:1; min-width:0; }
.collab-history { border-top:1px solid var(--border); padding-top:16px; }.collab-history summary { cursor:pointer; font-size:12px; font-weight:500; display:flex; justify-content:space-between; }.collab-history summary > span { color:var(--muted-foreground, #a1a1aa); font-size:10px; }
.collab-history ol { list-style:none; padding:0; margin-top:12px; }.collab-history li { display:grid; grid-template-columns:1fr auto; gap:6px 12px; padding:12px 0; border-bottom:1px solid #f4f4f5; font-size:11px; }.collab-history li strong { font-weight:500; }.collab-history li time { font-size:10px; color:var(--muted-foreground, #a1a1aa); }.collab-history li > span { grid-column:1 / -1; color:var(--muted-foreground, #71717a); line-height:1.6; }
.planner-detail-actions { display:flex; gap:8px; }.collab-cell-title { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; max-width:100%; font-size:11px; font-weight:500; }
.planner-table { min-width:1100px; table-layout:fixed; }.planner-table th:first-child { width:26%; }.planner-state { display:inline-flex; align-items:center; gap:7px; font-size:11px; white-space:nowrap; }
#main-content .planner-table th,#main-content .planner-table td,#main-content .budget-table th,#main-content .budget-table td { padding:15px 14px; text-align:left; vertical-align:middle; }
#main-content .planner-table td,#main-content .budget-table td { height:72px; font-size:11px; }
#main-content .planner-table th:last-child,#main-content .planner-table td:last-child { text-align:center; width:65px; }
.collab-icon-button { display:inline-grid; place-items:center; width:30px; height:30px; border:1px solid var(--border); border-radius:6px; color:var(--muted-foreground, #71717a); }.collab-icon-button svg { width:14px; height:14px; }
.budget-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.budget-site-card { min-width:0; }.budget-site-card[open] { grid-column:1 / -1; }
.budget-site-card > summary { display:grid; grid-template-columns:minmax(0,1fr) auto 10px; align-items:center; gap:16px; min-height:112px; padding:22px; cursor:pointer; list-style:none; }.budget-site-card > summary::-webkit-details-marker { display:none; }
.budget-site-heading { min-width:0; }.budget-site-heading .website-name-inline { min-width:0; font-weight:600; font-size:12px; }.budget-site-heading .website-name-inline > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.budget-site-heading > small { display:block; margin-top:10px; font-size:10px; color:var(--muted-foreground, #a1a1aa); }
.budget-site-amounts { display:flex; flex-direction:column; gap:8px; align-items:end; font-size:12px; font-weight:500; font-variant-numeric:tabular-nums; }.budget-site-amounts > span:last-child { color:var(--muted-foreground, #a1a1aa); font-size:11px; }
.budget-expand-chevron { width:6px; height:6px; border-right:1.5px solid #a1a1aa; border-bottom:1.5px solid #a1a1aa; transform:rotate(45deg); }.budget-site-card[open] .budget-expand-chevron { transform:rotate(225deg); }
.budget-card-tools { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 20px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }.budget-card-tools > span { font-size:11px; color:var(--muted-foreground, #a1a1aa); }.budget-card-tools > div { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.budget-table { min-width:750px; table-layout:fixed; }.budget-line-amount { font-variant-numeric:tabular-nums; font-weight:600; }
#main-content .budget-table th:last-child,#main-content .budget-table td:last-child,#main-content .budget-table th:nth-child(4),#main-content .budget-table td:nth-child(4) { text-align:center; }
.budget-table .partner-actions { justify-content:center; }.budget-table .table-audit-person-name,.budget-table .table-audit-person { max-width:100%; }
.budget-table .note-trigger { width:30px; min-width:30px; height:30px; font-size:0; padding:7px; }.budget-table .note-trigger svg { width:14px; height:14px; }
.budget-table tfoot { border-top:1px solid var(--border); background:var(--paint-muted, #fafafa); }.budget-table tfoot td { font-weight:600; }.budget-table tfoot td span,.budget-table tfoot td small { display:block; font-variant-numeric:tabular-nums; }.budget-table tfoot small { margin-top:6px; color:var(--muted-foreground, #a1a1aa); font-size:10px; font-weight:400; }
.budget-plan-note { padding:16px 20px; border-top:1px solid var(--border); }.budget-empty { grid-column:1 / -1; padding:50px 24px; text-align:center; color:var(--muted-foreground, #a1a1aa); font-size:12px; }
.budget-dialog-site { font-size:13px; font-weight:600; padding-bottom:14px; border-bottom:1px solid var(--border); }.collab-field-hint { font-size:10px; line-height:1.6; color:var(--muted-foreground, #a1a1aa); }
.budget-copy-link { display:flex; gap:8px; }.budget-copy-link input { flex:1; min-width:0; }.budget-copy-link button { display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--border); border-radius:6px; background:var(--paint-card, #fff); color:var(--muted-foreground, #71717a); }.budget-copy-link svg { width:15px; height:15px; }
@media(max-width:900px) { .budget-grid { grid-template-columns:1fr; }.budget-metrics strong { font-size:18px; } }
@media(max-width:640px) { .planner-metrics,.budget-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.planner-metrics > div,.budget-metrics > div { padding:16px; }.budget-metrics > div { min-height:100px; }.budget-metrics span { min-height:28px; }.collab-heading { align-items:start; }.collab-heading > h2 { font-size:21px; }.collab-heading .collab-primary { padding:8px 10px; font-size:10px; }#main-content .collab-filters { padding:16px; }.collab-form-row { grid-template-columns:1fr; gap:16px; }.planner-detail-meta { grid-template-columns:1fr; }.planner-status-form { flex-wrap:wrap; }.planner-status-form > * { flex:1 1 100%; }.budget-site-card > summary { padding:18px; gap:12px; }.budget-card-tools { flex-wrap:wrap; }.planner-detail-actions .collab-outline { padding:8px; font-size:10px; } }
.planner-task-title { color:var(--foreground, #27272a); }
#main-content .planner-filters { display:grid; grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(120px,1fr)) minmax(200px,1.6fr) auto; }
#main-content .planner-filters .collab-filter-checks { grid-column:1 / -1; }
#main-content .filter-toolbar .collab-filter-checks input[type=checkbox] { appearance:auto; display:inline-block; width:14px; min-width:14px; height:14px; min-height:14px; flex:0 0 14px; padding:0; margin:0; border-radius:3px; box-shadow:none; }
.collab-filter-checks label { white-space:nowrap; }
.planner-status-form > .partner-select-control { flex:1; min-width:0; }
@media(max-width:1300px) { #main-content .planner-filters { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:640px) { #main-content .planner-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }#main-content .planner-filters > .collab-search { grid-column:1 / -1; } }
.schedule-overview-table { min-width:1300px; }
.schedule-overview-table td:nth-child(2) { text-align:left; }
.schedule-overview-table .website-name-inline { max-width:130px; font-size:10px; }
.schedule-overview-table .website-name-inline > span:last-child { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.schedule-toolbar .multi-filter-trigger { min-height:38px; }
.knowledge-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.knowledge-card { min-height:220px; padding:22px; display:flex; flex-direction:column; gap:16px; }
.knowledge-card > div { display:flex; align-items:center; justify-content:space-between; gap:12px; }.knowledge-card small { font-size:10px; color:var(--muted-foreground, #a1a1aa); }
.reference-badge { display:inline-flex; padding:5px 8px; border:1px solid var(--border); background:var(--paint-muted, #fafafa); border-radius:5px; color:var(--muted-foreground, #71717a); font-size:10px; }
.knowledge-card > a { font-size:15px; font-weight:600; line-height:1.5; color:var(--foreground, #27272a); display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-decoration:none; }.knowledge-card > a:hover { text-decoration:underline; }
.knowledge-card p { color:var(--muted-foreground, #71717a); font-size:12px; line-height:1.8; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.knowledge-card footer { margin-top:auto; padding-top:14px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:10px; color:var(--muted-foreground, #a1a1aa); }
.rich-editor { border:1px solid var(--border); border-radius:8px; overflow:hidden; }.rich-toolbar { display:flex; flex-wrap:wrap; gap:5px; padding:10px; background:var(--paint-muted, #fafafa); border-bottom:1px solid var(--border); }.rich-toolbar button { padding:5px 7px; background:var(--paint-card, #fff); border:1px solid var(--border); border-radius:4px; font-size:10px; color:var(--muted-foreground, #52525b); }.rich-toolbar button:hover { background:var(--paint-muted, #f4f4f5); }
.rich-content { min-height:220px; max-height:350px; overflow-y:auto; padding:16px; outline:none; }.rich-article { padding:24px; }
.rich-content,.rich-article { font-size:13px; line-height:1.9; overflow-wrap:anywhere; }.rich-content p,.rich-article p { margin:0 0 12px; }.rich-content h2,.rich-article h2 { font-size:20px; font-weight:600; margin:16px 0 10px; }.rich-content h3,.rich-article h3 { font-size:16px; font-weight:600; margin:14px 0 8px; }.rich-content ul,.rich-article ul { list-style:disc; padding-left:24px; margin:12px 0; }.rich-content ol,.rich-article ol { list-style:decimal; padding-left:24px; margin:12px 0; }.rich-content blockquote,.rich-article blockquote { padding:10px 14px; border-left:3px solid var(--border, #d4d4d8); color:var(--muted-foreground, #71717a); background:var(--paint-muted, #fafafa); margin:12px 0; }.rich-content a,.rich-article a { color:var(--paint-success-text, #0f766e); text-decoration:underline; }
[data-article-sites][hidden] { display:none; }.reference-table { width:100%; table-layout:fixed; min-width:900px; }#main-content .reference-table th,#main-content .reference-table td { padding:15px 14px; text-align:left; vertical-align:middle; }#main-content .reference-table td { height:72px; font-size:11px; }.reference-table .table-audit-person-name,.reference-table .table-audit-person { max-width:100%; }.reference-table .website-name-inline { min-width:0; max-width:100%; }.reference-table .website-name-inline > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.blacklist-table th:first-child { width:15%; }.blacklist-table th:nth-child(2) { width:25%; }.blacklist-table th:nth-child(3) { width:22%; }.blacklist-table th:nth-child(4) { width:24%; }.blacklist-table .partner-actions { justify-content:center; }#main-content .blacklist-table th:last-child,#main-content .blacklist-table td:last-child { text-align:center; }
.security-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:20px; }.security-metrics > div { padding:20px; min-height:100px; display:flex; flex-direction:column; gap:16px; }.security-metrics span { font-size:11px; color:var(--muted-foreground, #71717a); }.security-metrics strong { font-size:25px; font-variant-numeric:tabular-nums; }
.security-table { min-width:1350px; }.security-table .whitelist-source { max-width:100%; }.security-table .partner-actions { justify-content:center; gap:4px; }#main-content .security-table th:nth-last-child(-n+2),#main-content .security-table td:nth-last-child(-n+2) { text-align:center; padding:15px 5px; }
.security-table .note-trigger { font-size:0; width:30px; height:30px; min-width:30px; padding:7px; }.security-table .note-trigger svg { width:14px; height:14px; }
.security-state { display:inline-flex; justify-content:center; min-width:100px; padding:6px 8px; border:1px solid var(--border); border-radius:5px; color:var(--muted-foreground, #71717a); background:var(--paint-muted, #fafafa); font-size:10px; white-space:nowrap; }.security-state.is-in_progress { color:var(--paint-info-text, #1d4ed8); background:var(--paint-info-bg, #eff6ff); border-color:var(--border, #dbeafe); }.security-state.is-completed { color:var(--paint-success-text, #0f766e); background:var(--paint-success-bg, #f0fdfa); border-color:#ccfbf1; }
@media(max-width:640px) { .knowledge-grid { grid-template-columns:1fr; }.knowledge-card { padding:18px; }.security-metrics { gap:10px; }.security-metrics > div { padding:14px; }.security-metrics span { min-height:28px; }.security-metrics strong { font-size:22px; } }
.rich-link-bar { display:flex; align-items:center; gap:8px; padding:10px; border-bottom:1px solid var(--border); }.rich-link-bar[hidden] { display:none; }.rich-link-bar input { min-width:0; flex:1; padding:8px 10px; }.rich-link-bar button { padding:8px 10px; border:1px solid var(--border); border-radius:5px; background:var(--paint-card, #fff); font-size:10px; white-space:nowrap; }
.schedule-overview-table { min-width:1100px; }
.security-table { min-width:1100px; }
a.schedule-edit { text-decoration:none; }
/* Keep expanded monthly plans in the same half-width card grid. */
.budget-site-card[open] { grid-column:auto; }
.budget-table { min-width:0; }
#main-content .budget-table th,#main-content .budget-table td { padding:12px 9px; }
.budget-table .partner-actions { gap:4px; }
.budget-card-tools { padding:14px; flex-wrap:wrap; }
.budget-card-tools .collab-outline,.budget-card-tools .note-trigger { padding:7px 9px; font-size:10px; }
.budget-site-card .table-pagination { flex-wrap:wrap; gap:12px; padding:14px; }
.budget-site-card .table-page-settings { flex-wrap:wrap; gap:10px; }
@media(max-width:900px) { .budget-table { min-width:520px; } }
.budget-table .partner-actions button,.budget-table .partner-actions a { width:24px; height:28px; }
#main-content .budget-table th:last-child,#main-content .budget-table td:last-child { padding-left:6px; padding-right:6px; }
#main-content .budget-table td { height:60px; padding-top:10px; padding-bottom:10px; }
/* Compact application density: smaller spacing, original readable type and alignment. */
:root { --sidebar-width:224px; --radius:8px; }
body { font-size:12px; }
.app-main { padding:24px 24px 40px; }
#main-content > #header,#main-content > div:first-of-type:has(> h2) { padding-bottom:16px; margin-bottom:18px; gap:12px; }
#main-content h2 { font-size:22px; letter-spacing:-.55px; }
#main-content .p-6 { padding:16px; }
#main-content .mb-8 { margin-bottom:18px; }#main-content .mb-6 { margin-bottom:16px; }
.sidebar-brand { padding:19px 16px 15px; gap:10px; font-size:13px; }.brand-symbol { width:32px; height:32px; border-radius:8px; font-size:24px; }.sidebar-brand small { font-size:10px; }
.sidebar-clock { margin:0 14px 14px; padding:9px 11px; gap:4px 8px; }.sidebar-clock > strong { font-size:16px; }.sidebar-clock > span { font-size:9px; }
.sidebar-nav { padding:0 10px 16px; }
.sidebar-section { margin:0; padding:4px 0; border-bottom:1px solid #ededf0; }.sidebar-section:last-child { border-bottom:0; }
.sidebar-section > summary { display:flex; align-items:center; gap:9px; min-height:40px; padding:7px 8px; cursor:pointer; list-style:none; border-radius:7px; font-size:11px; font-weight:600; color:var(--muted-foreground, #52525b); user-select:none; }.sidebar-section > summary::-webkit-details-marker { display:none; }.sidebar-section > summary:hover { background:#f0f0f2; }
.sidebar-section-icon { display:grid; place-items:center; width:25px; height:25px; flex:0 0 25px; border-radius:6px; background:var(--paint-muted, #f4f4f5); color:var(--muted-foreground, #71717a); }.sidebar-section-icon svg { width:15px; height:15px; }
.tone-green .sidebar-section-icon { color:#16a34a; background:#edf8f0; }.tone-blue .sidebar-section-icon { color:var(--paint-info-text, #2563eb); background:#edf3ff; }.tone-violet .sidebar-section-icon { color:#7c3aed; background:#f2edfc; }.tone-rose .sidebar-section-icon { color:#e11d48; background:#fff0f3; }.tone-amber .sidebar-section-icon { color:#b77912; background:#fdf6e7; }
.sidebar-section.is-current > summary { background:#eff8f6; color:var(--paint-success-text, #0f766e); }
.sidebar-section-chevron { width:6px; height:6px; flex:0 0 6px; border-right:1.5px solid #a1a1aa; border-bottom:1.5px solid #a1a1aa; transform:rotate(45deg); margin-left:auto; margin-right:3px; }.sidebar-section[open] .sidebar-section-chevron { transform:rotate(225deg); }
.sidebar-section-links { padding:3px 0 4px 16px; }.sidebar-section-links .nav-link { min-height:32px; padding:6px 9px; margin:2px 0; gap:8px; font-size:10.5px; border-radius:6px; }.sidebar-section-links .nav-link svg { width:14px; height:14px; }.sidebar-section-links .nav-link > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-account { padding:12px 14px; gap:8px; }.account-avatar { width:28px; height:28px; font-size:11px; }.sidebar-account strong { font-size:10px; }.sidebar-account small { font-size:9px; }
#main-content .filter-toolbar.collab-filters,#main-content .whitelist-filters,#main-content .audit-filters,#main-content .attendance-filters { padding:14px; gap:10px; }
#main-content .filter-toolbar :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select) { height:32px; min-height:32px; padding:5px 9px; font-size:11px; border-radius:5px; }
#main-content .filter-toolbar .filter-submit,.schedule-toolbar .filter-submit { height:32px; min-height:32px; padding:0 11px; font-size:11px; }
.multi-filter-trigger,.partner-select-trigger,.calendar-trigger { min-height:32px; height:32px; font-size:11px; padding:5px 9px; border-radius:5px; }
#main-content .filter-toolbar .collab-filter-checks input[type=checkbox] { width:14px; height:14px; min-height:14px; padding:0; }
.collab-primary,.collab-outline { min-height:32px; padding:7px 11px; font-size:11px; }
body :is(button,a)[class~="bg-zinc-600"] { min-height:32px; font-size:11px; }
#main-content :is(.partner-table,.notification-table,.whitelist-table,.audit-table,.team-table,.planner-table,.budget-table,.reference-table,.attendance-table,.schedule-table) td { height:48px; padding:7px 10px; font-size:11px; }
#main-content :is(.partner-table,.notification-table,.whitelist-table,.audit-table,.team-table,.planner-table,.budget-table,.reference-table,.attendance-table,.schedule-table) th { padding:9px 10px; font-size:10px; }
#main-content .schedule-table td { height:58px; }
#main-content :is(.security-table,.whitelist-table) td { height:52px; }
#main-content :is(.security-table,.whitelist-table) td:nth-last-child(-n+2),#main-content :is(.security-table,.whitelist-table) th:nth-last-child(-n+2) { padding-left:5px; padding-right:5px; }
#main-content .budget-table td:last-child,#main-content .budget-table th:last-child { padding-left:5px; padding-right:5px; }
.table-audit-date,.table-audit-person-name { line-height:17px; }.table-audit-person { line-height:14px; font-size:9px; }
.partner-actions button,.partner-actions a { width:27px; height:27px; }.partner-actions { gap:5px; }.note-trigger { min-height:26px; }
#main-content .partner-table .note-trigger,#main-content .notification-table .note-trigger { min-height:26px; padding:4px 7px; }.partner-table .partner-currency-badge { height:26px; }.whitelist-state,.security-state { padding:5px 7px; }
.table-pagination { padding:12px 14px; gap:10px; }.table-page-links a,.table-page-links > span { min-height:28px; padding:5px 9px; font-size:10px; }
.team-card,.insight-site-card,.insight-panel { border-radius:8px; }
.planner-metrics,.budget-metrics,.audit-metrics,.security-metrics { gap:12px; margin-bottom:16px; }.planner-metrics > div,.budget-metrics > div,.audit-metrics > div,.security-metrics > div { min-height:84px; padding:15px; gap:12px; }.planner-metrics strong,.audit-metrics strong,.security-metrics strong { font-size:22px; }.budget-metrics strong { font-size:19px; }
.insight-dashboard { gap:18px; }.insight-filter-card { padding:14px 16px; margin-bottom:18px; border-radius:8px; }.insight-summary-grid { gap:12px; }.insight-summary-card { min-height:140px; padding:16px; border-radius:8px; }.insight-card-heading { margin-bottom:12px; }.insight-summary-card .insight-money { font-size:clamp(18px,1.4vw,23px); }.insight-summary-card > .insight-count { padding-top:10px; }
.insight-site-card > summary { min-height:74px; padding:15px; gap:12px; }.insight-panel > .insight-section-heading { padding:15px 16px; }.insight-inner-details > summary { padding:13px 16px; }
.budget-grid,.knowledge-grid { gap:14px; }.budget-site-card > summary { min-height:88px; padding:16px; gap:12px; }.budget-card-tools { padding:11px 12px; }.knowledge-card { min-height:185px; padding:17px; gap:12px; }.knowledge-card > a { font-size:14px; }
.settings-card-summary { padding:16px 18px; gap:12px; }.settings-card-icon { width:36px; height:36px; }.settings-card-body { padding:16px 18px; }
.schedule-toolbar { padding:14px; gap:14px; margin-bottom:16px; }.shift-chip { min-height:36px; gap:3px; }.schedule-week-nav { height:32px; }
.attendance-own-card { padding:16px; gap:14px; }.attendance-summary { padding:14px 16px; gap:12px; }.attendance-section-title { margin-top:18px; }
.planner-board { gap:12px; }.planner-lane > header { padding:13px 12px; }.planner-lane-body { padding:10px; gap:10px; }.planner-task-card { min-height:160px; padding:12px; gap:9px; }
.partner-dialog-header { padding:15px 18px; }.partner-dialog-header h3 { font-size:14px; }.partner-form-content { padding:18px; gap:14px; }.partner-field input,.partner-field select { height:34px; min-height:34px; font-size:11px; padding:6px 9px; }.partner-dialog-footer { padding:12px 18px; }.partner-dialog-footer button { height:32px; font-size:11px; padding:0 13px; }.collab-form-row { gap:12px; }
@media(min-width:1600px) { .app-main { padding-left:28px; padding-right:28px; } }
@media(max-width:1023px) { .app-main { margin-left:0; padding:0 16px 28px; }.mobile-toolbar { height:50px; margin-bottom:18px; }.sidebar-section > summary { min-height:42px; }.sidebar-section-links .nav-link { min-height:38px; } }
@media(max-width:640px) { .app-main { padding-left:12px; padding-right:12px; }#main-content h2 { font-size:20px; }#main-content .filter-toolbar :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select),.partner-select-trigger,.calendar-trigger,.multi-filter-trigger { min-height:36px; height:36px; }.planner-metrics,.budget-metrics,.audit-metrics { gap:10px; }.partner-form-content { padding:16px; }.budget-metrics strong { font-size:18px; } }
.partner-dialog .partner-select-trigger,.partner-dialog .calendar-trigger,.shift-editor-day input[type=time],.shift-copy-day { height:34px; min-height:34px; }
#main-content > #header { display:flex; align-items:center; justify-content:space-between; }
/* Knowledge Canvas: local code-native board with compact controls. */
.knowledge-tabs { display:flex; gap:3px; margin:0 0 16px; width:max-content; padding:3px; border:1px solid var(--border); border-radius:7px; background:var(--paint-muted, #f4f4f5); }.knowledge-tabs a { padding:6px 13px; border-radius:4px; color:var(--muted-foreground, #71717a); font-size:11px; text-decoration:none; }.knowledge-tabs a.is-active { background:var(--paint-card, #fff); color:var(--foreground, #18181b); box-shadow:0 1px 3px #0000000a; }
.canvas-header-state { display:inline-block; font-size:10px; color:var(--muted-foreground, #a1a1aa); margin-top:5px; }
.canvas-list-card { overflow:hidden; }.canvas-list-preview { display:block; position:relative; height:140px; border-bottom:1px solid var(--border); background-color:var(--paint-muted, #f8f9fa); background-image:radial-gradient(#d4d4d8 .7px,transparent .7px); background-size:14px 14px; overflow:hidden; }
.canvas-preview-card { position:absolute; display:block; width:75px; height:52px; border:1px solid var(--border, #e4e4e7); border-radius:5px; background:var(--paint-card, #fff); box-shadow:0 2px 5px #00000004; }.canvas-preview-card::after { content:''; position:absolute; left:10px; top:14px; width:35px; height:3px; background:#d4d4d8; box-shadow:0 9px 0 #e4e4e7; }.canvas-preview-card.one { left:calc(50% - 112px); top:28px; background:var(--paint-warning-bg, #fffbeb); border-color:var(--border, #fde68a); }.canvas-preview-card.two { left:calc(50% + 22px); top:62px; background:var(--paint-success-bg, #f0fdfa); border-color:#ccfbf1; }.canvas-preview-card.three { left:calc(50% + 2px); top:15px; width:55px; height:34px; background:var(--paint-info-bg, #eff6ff); border-color:var(--border, #dbeafe); }.canvas-preview-line { position:absolute; width:110px; height:1px; top:74px; left:calc(50% - 65px); background:#a1a1aa; transform:rotate(18deg); }.canvas-preview-count { position:absolute; right:12px; bottom:10px; font-size:10px; padding:3px 7px; border:1px solid var(--border); border-radius:4px; background:var(--paint-card, #fff); color:var(--muted-foreground, #a1a1aa); }
.canvas-list-content { padding:16px; }.canvas-list-content > div { display:flex; justify-content:space-between; align-items:center; gap:10px; }.canvas-list-content a { font-size:13px; font-weight:600; color:var(--foreground, #27272a); min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-decoration:none; }.canvas-list-content footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:14px; color:var(--muted-foreground, #a1a1aa); font-size:10px; }
.canvas-empty-list { grid-column:1 / -1; padding:48px 20px; display:flex; align-items:center; flex-direction:column; gap:16px; color:var(--muted-foreground, #a1a1aa); }.canvas-empty-list > svg { width:34px; height:34px; }.canvas-empty-list strong { font-size:13px; font-weight:500; }
.canvas-shell { overflow:hidden; }.canvas-toolbar { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:9px 10px; border-bottom:1px solid var(--border); background:var(--paint-card, #fff); }.canvas-toolbar-actions { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }.canvas-toolbar button { display:inline-flex; justify-content:center; align-items:center; gap:5px; border:1px solid var(--border); background:var(--paint-card, #fff); color:var(--muted-foreground, #52525b); padding:6px 9px; min-height:30px; border-radius:5px; font-size:10px; }.canvas-toolbar button:hover { background:var(--paint-muted, #fafafa); }.canvas-toolbar button[aria-pressed=true] { color:var(--paint-success-text, #0f766e); border-color:#99f6e4; background:var(--paint-success-bg, #f0fdfa); }.canvas-toolbar svg { width:13px; height:13px; }.canvas-toolbar .canvas-save { background:var(--paint-primary, #18181b); color:var(--paint-on-primary, #fff); border-color:#18181b; }.canvas-tool-divider { display:block; height:18px; width:1px; background:var(--border); margin:0 4px; }.canvas-zoom-label { min-width:36px; text-align:center; font-size:10px; color:var(--muted-foreground, #a1a1aa); font-variant-numeric:tabular-nums; }
.canvas-viewport { position:relative; width:100%; height:clamp(360px,calc(100dvh - 290px),720px); overflow:hidden; background-color:var(--paint-muted, #f8f9fa); background-image:radial-gradient(#d4d4d8 .9px,transparent .9px); background-size:20px 20px; outline:none; touch-action:none; cursor:grab; user-select:none; }.canvas-viewport.is-panning { cursor:grabbing; }.canvas-viewport.is-connecting,.canvas-viewport.is-connecting .canvas-node-head { cursor:crosshair; }
.canvas-world { position:absolute; left:0; top:0; width:12000px; height:8000px; transform-origin:0 0; }.canvas-edges { position:absolute; inset:0; overflow:visible; pointer-events:none; }.canvas-edge { stroke:#a1a1aa; stroke-width:1.7; fill:none; }.canvas-edge.is-selected { stroke:#0d9488; stroke-width:2.5; }.canvas-edge-hit { stroke:transparent; stroke-width:18; fill:none; pointer-events:stroke; cursor:pointer; }
.canvas-node { position:absolute; display:flex; flex-direction:column; border:1px solid var(--border, #e4e4e7); border-radius:8px; background:var(--paint-card, #fff); box-shadow:0 3px 9px #00000005; overflow:hidden; --canvas-tint:#fafafa; }.canvas-node.is-selected { outline:2px solid #0d9488; outline-offset:2px; }.canvas-node.tone-amber { background:var(--paint-warning-bg, #fffdf3); border-color:var(--border, #f2e4b9); --canvas-tint:#fff8df; }.canvas-node.tone-blue { background:var(--paint-info-bg, #f7faff); border-color:var(--border, #dbeafe); --canvas-tint:#eef5ff; }.canvas-node.tone-green { background:var(--paint-success-bg, #f5fcf8); border-color:var(--border, #d1fae5); --canvas-tint:#edfaf3; }.canvas-node.tone-rose { background:var(--paint-danger-bg, #fff8fa); border-color:var(--border, #fce7ed); --canvas-tint:#fff0f5; }.canvas-node.tone-violet { background:var(--paint-violet-bg, #faf8ff); border-color:var(--border, #ede9fe); --canvas-tint:#f3efff; }
.canvas-node-head { display:flex; justify-content:space-between; align-items:center; min-height:34px; padding:5px 9px; border-bottom:1px solid #00000007; background:var(--canvas-tint); cursor:grab; touch-action:none; }.canvas-node-kind { font-size:9px; color:var(--muted-foreground, #a1a1aa); text-transform:uppercase; letter-spacing:.04em; }.canvas-node-actions { display:flex; gap:2px; }.canvas-node-actions button { display:grid; place-items:center; background:transparent; border:0; border-radius:3px; width:22px; height:22px; color:var(--muted-foreground, #a1a1aa); font-size:15px; }.canvas-node-actions button:hover { background:#00000005; color:var(--muted-foreground, #52525b); }
.canvas-node-content { display:flex; flex-direction:column; gap:9px; min-height:0; flex:1; padding:12px; }.canvas-node-content h3 { margin:0; font-size:12px; font-weight:600; color:var(--foreground, #27272a); line-height:1.5; overflow-wrap:anywhere; }.canvas-node-body { overflow:auto; flex:1; min-height:0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; line-height:1.8; color:var(--muted-foreground, #71717a); user-select:text; cursor:text; }.canvas-node-link { color:var(--paint-success-text, #0f766e); font-size:10px; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; align-self:start; max-width:100%; }.canvas-node-link:hover { text-decoration:underline; }.canvas-unavailable { font-size:10px; color:var(--muted-foreground, #a1a1aa); }.canvas-node-resize { position:absolute; right:2px; bottom:2px; width:15px; height:15px; cursor:nwse-resize; touch-action:none; background:linear-gradient(135deg,transparent 55%,#a1a1aa55 55%,#a1a1aa55 60%,transparent 60%,transparent 75%,#a1a1aa55 75%,#a1a1aa55 80%,transparent 80%); }
.canvas-empty-board { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:16px; text-align:center; background:#ffffffde; padding:22px; border:1px solid var(--border); border-radius:8px; }.canvas-empty-board[hidden] { display:none; }.canvas-empty-board strong { font-size:13px; font-weight:500; color:var(--muted-foreground, #71717a); }.canvas-empty-board > span { font-size:11px; color:var(--muted-foreground, #a1a1aa); }
.canvas-statusbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 12px; border-top:1px solid var(--border); color:var(--muted-foreground, #a1a1aa); font-size:9px; }.canvas-statusbar > span:first-child { color:var(--muted-foreground, #71717a); }.canvas-delete-board { display:flex; justify-content:end; margin-top:12px; }.canvas-delete-board button { display:inline-flex; align-items:center; gap:5px; font-size:10px; color:var(--paint-danger-text, #b45353); background:transparent; border:0; padding:6px; }.canvas-delete-board svg { width:13px; height:13px; }
[data-node-url][hidden],[data-node-article][hidden],[data-canvas-sites][hidden] { display:none; }
@media(max-width:640px) { .canvas-toolbar { padding:8px; }.canvas-toolbar-actions { gap:3px; }.canvas-toolbar button { padding:6px 8px; min-height:32px; }.canvas-statusbar { align-items:start; flex-direction:column; gap:4px; }.canvas-viewport { height:clamp(360px,calc(100dvh - 310px),650px); }.canvas-list-preview { height:120px; } }
/* Telegram authentication: compact and equal width controls. */
.telegram-steps { list-style:decimal; padding-left:18px; font-size:12px; line-height:1.8; color:var(--muted-foreground, #71717a); }.telegram-hint { font-size:11px; line-height:1.7; color:var(--muted-foreground, #71717a); }.telegram-bot-button { display:flex; justify-content:center; align-items:center; gap:8px; width:100%; padding:11px 12px; border:1px solid #18181b; border-radius:6px; background:var(--paint-primary, #18181b); color:var(--paint-on-primary, #fff); font-size:12px; text-decoration:none; }.telegram-bot-button svg { width:16px; height:16px; }.telegram-code-form { display:grid; gap:12px; }.telegram-code-form label { font-size:12px; color:var(--muted-foreground, #52525b); }.telegram-code-form input { width:100%; text-align:center; font-size:22px; letter-spacing:.4em; border:1px solid var(--border, #e4e4e7); border-radius:6px; padding:12px; }.telegram-login-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.telegram-login-actions button { width:100%; font-size:11px; border:1px solid var(--border, #e4e4e7); border-radius:6px; padding:9px; background:var(--paint-card, #fff); color:var(--muted-foreground, #71717a); }.team-telegram-id { display:block; font-size:10px; color:var(--muted-foreground, #a1a1aa); margin-top:4px; }
#login-container a.telegram-bot-button { color:var(--paint-on-primary, #fff); }
/* Authentication pages use local CSS and load no JavaScript libraries. */
.auth-shell { min-height:100dvh; display:flex; align-items:center; justify-content:center; padding:32px 16px; }.auth-shell #login-container { width:100%; }.auth-shell #login-container > * + * { margin-top:24px; }.auth-shell #login-header { text-align:center; }.auth-shell #logo { display:flex; justify-content:center; margin-bottom:20px; }.auth-shell #login-header h2 { font-weight:650; line-height:1.35; }.auth-shell #login-header p { margin-top:8px; font-size:12px; color:var(--muted-foreground, #71717a); }.auth-shell #login-form { display:grid; gap:20px; }.auth-shell #login-form .space-y-4 { display:grid; gap:16px; }.auth-shell #login-form label { display:block; font-size:12px; color:var(--muted-foreground, #52525b); margin-bottom:6px; }.auth-shell #login-form input:not([type=hidden]) { display:block; width:100%; border:1px solid var(--border, #e4e4e7); border-radius:6px; padding:10px 12px; font-size:13px; background:var(--paint-card, #fff); }.auth-shell #login-form button { border:1px solid #18181b; border-radius:6px; padding:11px 12px; background:var(--paint-primary, #18181b); color:var(--paint-on-primary, #fff); font-size:12px; }.auth-shell #login-container [role=alert] { border:1px solid var(--border, #fecaca); background:var(--paint-danger-bg, #fff7f7); color:var(--paint-danger-text, #b91c1c); border-radius:6px; padding:10px 12px; font-size:12px; }.auth-shell #login-container .telegram-code-form { margin-top:24px; }

.sidebar-brand > span:last-child { min-width:0; }.sidebar-brand > span:last-child { font-size:12px; line-height:1.5; }.brand-ftwr { font-size:22px; }
.app-confirm-dialog { width:min(400px,calc(100vw - 32px)); margin:auto; padding:24px; color:var(--foreground, #18181b); background:var(--paint-card, #fff); border:1px solid var(--border, #e4e4e7); border-radius:10px; box-shadow:0 20px 60px #09090b24; }.app-confirm-dialog::backdrop { background:#09090b66; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }.app-confirm-dialog h3 { margin:0; font-size:15px; font-weight:600; }.app-confirm-dialog p { margin:14px 0 24px; font-size:12px; line-height:1.7; color:var(--muted-foreground, #71717a); overflow-wrap:anywhere; }.app-confirm-dialog form { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.app-confirm-dialog button { min-height:36px; padding:9px 14px; border:1px solid var(--border, #e4e4e7); border-radius:6px; font-size:12px; font-weight:500; }.app-confirm-dialog .confirm-cancel { background:var(--paint-card, #fff); color:var(--muted-foreground, #52525b); }.app-confirm-dialog .confirm-approve { background:var(--paint-primary, #18181b); color:var(--paint-on-primary, #fff); border-color:#18181b; }.app-confirm-dialog button:focus-visible { outline:2px solid #a1a1aa; outline-offset:3px; }.partner-dialog,.note-dialog { max-height:calc(100dvh - 32px); }.partner-dialog::backdrop { -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.sidebar-account > form { margin-left:auto; }.sidebar-account > form button { display:grid; place-items:center; width:30px; height:30px; padding:6px; border:0; border-radius:6px; background:transparent; color:var(--muted-foreground, #71717a); }.sidebar-account > form button:hover { background:var(--paint-muted, #f4f4f5); }
#header .notification-add-button { min-width:176px; min-height:36px; padding:9px 16px; gap:8px; white-space:nowrap; flex-shrink:0; }
.profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; max-width:1040px; }.profile-card { padding:22px; }.profile-card h3 { font-size:14px; font-weight:600; margin-bottom:22px; }.profile-card form { display:grid; gap:18px; }.profile-card .collab-primary { justify-self:start; min-width:160px; }.profile-password-row { display:flex; gap:8px; align-items:center; }.profile-password-row input { min-width:0; flex:1; }.profile-password-row button { flex-shrink:0; }.sidebar-account strong a { color:inherit; text-decoration:none; }.sidebar-account strong a:hover { text-decoration:underline; }
@media(max-width:760px){.profile-grid { grid-template-columns:1fr; }.profile-card { padding:18px; }#header .notification-add-button { min-width:160px; }}
.profile-card { display:flex; flex-direction:column; }.profile-card form { display:flex; flex:1; flex-direction:column; }.profile-card .collab-primary { align-self:flex-start; margin-top:auto; }.profile-grid { align-items:stretch; }.profile-preference-field { padding:0; border:0; margin:0; min-width:0; }.profile-preference-field legend { font-size:12px; color:var(--muted-foreground, #52525b); margin-bottom:9px; }.preference-segments { display:grid; gap:7px; }.language-segments { grid-template-columns:repeat(2,minmax(0,1fr)); }.theme-segments { grid-template-columns:repeat(3,minmax(0,1fr)); }.preference-choice { display:flex; position:relative; align-items:center; justify-content:center; gap:8px; min-height:40px; border:1px solid var(--border, #e4e4e7); background:var(--paint-card, #fff); color:var(--muted-foreground, #71717a); font-size:12px; border-radius:7px; cursor:pointer; text-align:center; padding:10px 8px; }.preference-choice input { position:absolute; width:1px; height:1px; opacity:0; }.preference-choice:has(input:checked) { border-color:#71717a; box-shadow:0 0 0 1px #71717a; background:var(--paint-muted, #fafafa); color:var(--foreground, #18181b); }.preference-choice:has(input:focus-visible) { outline:2px solid #a1a1aa; outline-offset:3px; }.theme-segments .preference-choice { flex-direction:column; min-height:68px; font-size:11px; }.theme-swatch { display:block; width:21px; height:21px; border-radius:50%; border:1px solid var(--border, #d4d4d8); }.swatch-light { background:var(--paint-card, #fff) !important; }.swatch-darkblue { background:#101b2e !important; }.swatch-black { background:var(--paint-primary, #09090b) !important; }.sidebar-account > a.account-avatar { padding:0; text-decoration:none; }
@media(max-width:480px){#header{flex-wrap:wrap;gap:12px;}}
