/* SiteForge v4: approved light-blue override of the supplied Nocturne defaults.
   Product views remain native EJS. Managed website documents use their own CSS. */
@font-face {
  font-family: Inter;
  src: url("/CV3/assets/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
body.ui-refresh[data-theme] {
  --surface-canvas: #eef2fb;
  --surface-default: #fff;
  --surface-subtle: #f6f8fd;
  --text-default: #141a33;
  --text-strong: #141a33;
  --text-muted: #626b82;
  --text-on-action: #fff;
  --action-primary: #3466f0;
  --action-primary-hover: #254fca;
  --focus-indicator: #2547c0;
  --boundary-strong: #7d89a3;
  --boundary-control: #7d89a3;
  --boundary-subtle: #dfe5f1;
  --divider-weak: #dfe5f1;
  --control-disabled-bg: #e8edf6;
  --control-disabled-text: #626b82;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-raised: 0 0 0 1px rgb(20 26 51 / 5%), 0 10px 30px rgb(40 70 180 / 7%);
  --color-bg: #eef2fb;
  --color-surface: #fff;
  --color-text: #141a33;
  --color-accent: #3466f0;
  --color-accent-2: #7b5cf0;
  color-scheme: light;
  background: var(--surface-canvas);
  color: var(--text-default);
  font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ui-refresh :where(input, select, textarea, button) { font: inherit; }
.ui-refresh :where(h1, h2, h3, p) { overflow-wrap: anywhere; }
.ui-refresh :where(input, select, textarea, fieldset, .card, .page-head > div) { min-width: 0; }
.ui-refresh :focus-visible { outline: 3px solid var(--focus-indicator); outline-offset: 3px; }
.ui-refresh .ui-icon { display: block; flex: none; }
.ui-refresh .brand { font-size: 20px; font-weight: 650; letter-spacing: -.035em; }
.ui-refresh .brand-mark { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #2f5fe8, #5a8dff); box-shadow: 0 5px 12px rgb(52 102 240 / 18%); }
.ui-refresh .sidebar { padding: 24px 14px 16px; border-right: 1px solid var(--divider-weak); gap: 20px; box-shadow: none; }
.ui-refresh .sidebar .sidebar-brand { min-height: 38px; padding: 0 10px; color: var(--text-default); font-size: 20px; }
.ui-refresh .sidebar .sidebar-brand:hover { background: transparent; }
.ui-refresh .sidebar-label { margin: 0 12px 12px; font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.ui-refresh .sidebar-links { min-height: 0; overflow: auto; scrollbar-width: thin; padding: 6px 2px; }
.ui-refresh .sidebar nav { display: flex; flex-direction: column; gap: 4px; }
body.ui-refresh .sidebar nav a { min-height: 44px; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #515b75; }
body.ui-refresh .sidebar nav a > span[aria-hidden] { width: 22px; display: grid; place-items: center; color: inherit; }
body.ui-refresh .sidebar a[aria-current="page"], .ui-refresh .mobile-nav-panel a[aria-current="page"] { color: #2547c0; background: #e3eaff; font-weight: 650; box-shadow: none; }
.ui-refresh .sidebar-actions { display: grid; gap: 8px; padding: 12px 8px 0; border-top: 1px solid var(--divider-weak); }
.ui-refresh .sidebar-actions form { margin: 0; }
.ui-refresh .sidebar-actions .button { width: 100%; justify-content: flex-start; }
.ui-refresh .sidebar-actions p { margin: 0; font-size: 12px; }
.ui-refresh .ui-workspace { min-width: 0; display: flex; flex-direction: column; }
.ui-refresh .ui-workspace-header { position: sticky; top: 0; z-index: 80; display: flex; align-items: center; gap: 20px; min-height: 92px; padding: 18px 36px; background: rgb(238 242 251 / 94%); backdrop-filter: blur(12px); }
.ui-refresh .ui-workspace-heading { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ui-refresh .ui-workspace-crumb { color: var(--text-muted); font-size: 11px; }
.ui-refresh .ui-workspace-title { font-size: 21px; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; overflow-wrap: anywhere; }
.ui-refresh .ui-role-chip { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; color: #515b75; font-size: 12px; }
.ui-refresh .ui-role-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #2547c0; background: #dfe8ff; font-size: 10px; font-weight: 750; }
.ui-refresh .ui-header-search { display: flex; align-items: center; gap: 8px; width: min(330px, 35%); min-height: 44px; padding: 0 10px 0 13px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(20 26 51 / 5%), 0 1px 2px rgb(20 26 51 / 5%); }
.ui-refresh .ui-header-search .ui-icon { width: 18px; color: var(--text-muted); }
.ui-refresh .ui-header-search input { width: 100%; min-width: 0; min-height: 40px; padding: 4px 0; border: 0; background: transparent; box-shadow: none; }
.ui-refresh .ui-header-search button { min-height: 36px; border: 0; border-radius: 8px; padding: 0 8px; background: #e3eaff; color: #2547c0; font-size: 11px; font-weight: 650; }
.ui-refresh .page-content { min-width: 0; flex: 1; padding: 4px 0 40px; }
.ui-refresh.nocturne-shell .page-content > .shell,
.ui-refresh .page-content > .motion-studio { width: calc(100% - 72px); max-width: 1440px; margin-inline: auto; }
.ui-refresh .page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 0 0 24px; padding-top: 6px; }
.ui-refresh .page-head h1 { margin: 0 0 8px; color: var(--text-default); font-size: clamp(25px, 2.5vw, 34px); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; }
.ui-refresh .page-head .lede { max-width: 70ch; margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.ui-refresh .card-kicker { margin: 0 0 7px; color: var(--text-muted); font-size: 10px; letter-spacing: .09em; font-weight: 650; text-transform: uppercase; }
.ui-refresh .section-title { align-items: center; gap: 12px; margin-bottom: 18px; }
.ui-refresh .section-title h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.ui-refresh :where(.card, .project-card, .lead-card, .progress-card) { padding: 24px; border: 1px solid rgb(20 26 51 / 5%); border-radius: 20px; background: #fff; box-shadow: var(--shadow-raised); }
.ui-refresh .card h2 { font-size: 19px; letter-spacing: -.025em; font-weight: 650; }
.ui-refresh .card h3 { font-size: 16px; font-weight: 650; }
.ui-refresh .card-grid { gap: 20px; }
.ui-refresh .section { margin-top: 24px; }
.ui-refresh :where(.button, .btn) { min-height: 44px; padding: 10px 16px; border: 1px solid var(--divider-weak); border-radius: 11px; background: #fff; color: var(--text-default); font-size: 13px; line-height: 1.4; font-weight: 600; box-shadow: none; text-decoration: none; }
.ui-refresh :where(.button, .btn):hover { background: #f6f8fd; color: #2547c0; border-color: #b6c7ee; transform: none; }
body.ui-refresh .button-primary, .ui-refresh .btn-primary { background: linear-gradient(135deg, #2f5fe8, #3466f0); color: #fff; border-color: #3466f0; box-shadow: 0 5px 14px rgb(52 102 240 / 17%); }
body.ui-refresh .button-primary:hover, .ui-refresh .btn-primary:hover { color: #fff; background: #254fca; border-color: #254fca; }
.ui-refresh .button-quiet { color: var(--text-muted); border-color: transparent; background: transparent; }
.ui-refresh :where(button[disabled], .button[aria-disabled="true"], .btn[aria-disabled="true"]) { background: var(--control-disabled-bg); color: var(--control-disabled-text); border-color: transparent; box-shadow: none; cursor: not-allowed; }
.ui-refresh :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) { max-width: 100%; min-height: 44px; border: 1px solid #cbd3e4; border-radius: 10px; padding: 10px 12px; color: var(--text-default); background: #fff; box-shadow: none; }
.ui-refresh input::placeholder, .ui-refresh textarea::placeholder { color: #737d94; opacity: 1; }
.ui-refresh :where(input[type="checkbox"], input[type="radio"], input[type="range"]) { accent-color: #3466f0; }
.ui-refresh label { color: var(--text-default); font-size: 13px; font-weight: 550; }
.ui-refresh :where(.form-help, .fine, .muted, small) { color: var(--text-muted); }
.ui-refresh .ui-header-search input { border: 0; padding-inline: 0; }
.ui-refresh .table-wrap { border: 1px solid #e5eaf3; border-radius: 14px; background: #fff; }
.ui-refresh table { font-size: 13px; }
.ui-refresh th { padding: 13px 16px; color: #626b82; background: #f6f8fd; font-size: 11px; font-weight: 650; letter-spacing: .025em; text-align: left; }
.ui-refresh td { padding: 15px 16px; border-bottom-color: #edf0f7; vertical-align: middle; }
.ui-refresh tbody tr:last-child td { border-bottom: 0; }
.ui-refresh tbody tr:hover { background: #fafbff; }
.ui-refresh .status, .ui-refresh .tag, .ui-refresh .ui-status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 27px; border: 0; border-radius: 999px; font-size: 11px; font-weight: 650; line-height: 1.35; }
.ui-refresh .status.active, .ui-refresh .status.success, .ui-refresh .status.ready { background: #eaf8f0; color: #17784b; }
.ui-refresh .status.warning, .ui-refresh .status.pending, .ui-refresh .ui-status-pill { background: #fff2d5; color: #805500; }
.ui-refresh .status.disabled, .ui-refresh .status.blocked { background: #eef1f7; color: #626b82; }
.ui-refresh .status.error, .ui-refresh .status.failed { background: #fff0ee; color: #b42318; }
.ui-refresh .notice { border: 1px solid #d4dff6; border-radius: 14px; background: #f4f7ff; padding: 18px 20px; margin-bottom: 20px; box-shadow: none; }
.ui-refresh .notice h2 { margin-top: 0; font-size: 17px; }
.ui-refresh .notice p:last-child { margin-bottom: 0; }
.ui-refresh .empty { border: 1px dashed #cdd7ed; border-radius: 16px; padding: 40px 24px; background: #f9fbff; color: var(--text-muted); text-align: center; box-shadow: none; }
.ui-refresh .empty h3 { margin-top: 0; color: var(--text-default); font-size: 18px; }
.ui-refresh .empty p { max-width: 56ch; margin-inline: auto; }
.ui-refresh .ui-evidence-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; width: calc(100% - 72px); max-width: 1440px; margin: 2px auto 22px; padding: 12px 16px; border: 1px solid #e7dcc4; border-radius: 12px; color: #71552b; background: #fffaf0; font-size: 12px; }
.ui-refresh .ui-status-pill { text-transform: capitalize; flex: none; }
.ui-refresh .ui-submit-status { margin: 10px 0 0; color: #2547c0; font-size: 12px; }
.ui-refresh [aria-busy="true"] { cursor: progress; }
.ui-refresh [aria-busy="true"] .button-primary { background: #476bd0; box-shadow: none; }
.ui-refresh .metric-grid { gap: 16px; }
.ui-refresh .metric-card { padding: 20px; border: 1px solid #e4eaf6; border-radius: 18px; background: #fff; box-shadow: var(--shadow-raised); }
.ui-refresh .metric-card strong { color: #2547c0; font-size: clamp(28px, 3vw, 40px); font-weight: 650; letter-spacing: -.035em; }
.ui-refresh .metric-purple strong { color: #6545d0; }
.ui-refresh .ui-owner-summary { --text-default: #fff; --text-muted: #e0e9ff; padding: 30px 32px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 90% 0%, #7aa5ff 0, transparent 40%), linear-gradient(135deg, #1a35b8, #2f5fe8 55%, #4f86ff); box-shadow: 0 16px 40px rgb(40 80 220 / 18%); }
.ui-refresh .ui-owner-summary .page-head { padding-top: 0; }
.ui-refresh .ui-owner-summary .page-head h1 { color: #fff; }
.ui-refresh .ui-owner-summary .page-head > .button { background: #fff; border-color: #fff; color: #2547c0; box-shadow: none; }
.ui-refresh .ui-owner-summary .metric-card { border: 0; background: rgb(255 255 255 / 13%); box-shadow: none; color: #e0e9ff; }
.ui-refresh .ui-owner-summary .metric-card strong { color: #fff; }
.ui-refresh .customer-directory, .ui-refresh .cc-center, .ui-refresh .cc-drawer, .ui-refresh .cc-action-dialog { --surface-canvas: #eef2fb; --surface-subtle: #f6f8fd; --text-default: #141a33; --text-muted: #626b82; --action-primary: #3466f0; --boundary-subtle: #dfe5f1; --boundary-control: #cbd3e4; --focus-indicator: #2547c0; font-family: inherit; }
.ui-refresh .cc-filters { border-radius: 18px; }
.ui-refresh .cc-center .button, .ui-refresh .cc-action-dialog .button { min-height: 44px; border-radius: 10px; }
.ui-refresh .cc-center .button-primary, .ui-refresh .cc-action-dialog .button-primary { background: #3466f0; color: #fff; }
.ui-refresh .cc-avatar { color: #2547c0; background: #e3eaff; }
.ui-refresh .cc-drawer { box-shadow: -24px 0 70px rgb(28 55 125 / 16%); }
.ui-refresh .cc-drawer::backdrop, .ui-refresh .cc-action-dialog::backdrop { background: rgb(20 26 51 / 32%); backdrop-filter: blur(2px); }
.ui-refresh .cc-tabs a[aria-selected="true"] { color: #2547c0; border-bottom-color: #3466f0; }
.ui-refresh .payment-provider-card { min-width: 0; border-radius: 20px; padding: 24px; }
.ui-refresh .payment-provider-card .status { white-space: normal; }
.ui-refresh .motion-studio { --studio-blue: #3466f0; --studio-ink: #141a33; --studio-sky: #eef2fb; }
.ui-refresh .motion-panel, .ui-refresh .motion-card, .ui-refresh .motion-small-card { border-color: #dfe5f1; border-radius: 20px; box-shadow: var(--shadow-raised); }
.ui-refresh .motion-head h1 { font-size: clamp(30px, 3.4vw, 48px); }
.ui-refresh .motion-button { min-height: 44px; border-radius: 11px; border-color: #d4dff6; font: inherit; font-weight: 600; }
.ui-refresh .motion-button.primary { background: #3466f0; border-color: #3466f0; color: #fff; }
.ui-refresh .motion-steps li { border-color: #dfe5f1; border-radius: 10px; }
.ui-refresh .motion-steps [aria-current] { background: #e3eaff; color: #2547c0; }
.ui-refresh .motion-editor input, .ui-refresh .motion-editor select, .ui-refresh .motion-panel input, .ui-refresh .motion-panel select, .ui-refresh .motion-panel textarea { color: #141a33; font: inherit; border-radius: 10px; }
.ui-refresh .builder-step-rail { border-radius: 16px; border-color: #dfe5f1; background: #fff; }
.ui-refresh .builder-step-rail [aria-current="step"] { color: #2547c0; background: #e3eaff; }
.ui-refresh .builder-fieldset { border-color: #dfe5f1; border-radius: 16px; }
.ui-refresh .builder-fieldset legend { color: #141a33; font-weight: 650; }
.ui-refresh .design-lab-page { grid-template-columns: minmax(0, 1fr); }
.ui-refresh .design-lab-panel, .ui-refresh .design-lab-panel > * { min-width: 0; max-width: 100%; }
.ui-refresh .design-lab-prompt-details pre { overflow-wrap: anywhere; }
.ui-refresh .design-lab-viewport input { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.ui-refresh .error-panel { max-width: 820px; margin: 32px auto; }
.ui-refresh .error-mark { color: #805500; background: #fff2d5; border-radius: 16px; }
.ui-refresh .error-reference { color: var(--text-muted); }
.ui-refresh .login-wrap { display: grid; grid-template-columns: 1fr 1fr; width: calc(100% - 64px); max-width: 1260px; min-height: 700px; margin: 28px auto; padding: 0; gap: 0; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 16px 60px rgb(40 70 180 / 9%); }
.ui-refresh .ui-auth-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 44px; min-width: 0; padding: 44px; overflow: hidden; color: #fff; background: radial-gradient(circle at 90% 0%, #7aa5ff 0, transparent 45%), linear-gradient(145deg, #1a35b8, #2f5fe8 58%, #4f86ff); }
.ui-refresh .ui-auth-wordmark { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; }
.ui-refresh .ui-auth-wordmark .brand-mark { background: rgb(255 255 255 / 20%); box-shadow: none; }
.ui-refresh .ui-auth-kicker { color: #e0e9ff; font-size: 13px; }
.ui-refresh .ui-auth-intro h2 { max-width: 12ch; margin: 0; color: #fff; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.ui-refresh .ui-auth-art { padding: 12px 18px 0 0; }
.ui-refresh .ui-auth-browser { padding: 12px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 16px; background: rgb(255 255 255 / 13%); box-shadow: 20px 22px 0 rgb(255 255 255 / 8%); transform: rotate(-3deg); }
.ui-refresh .ui-auth-browser > span { display: inline-block; width: 6px; height: 6px; margin: 0 3px 8px 0; border-radius: 50%; background: rgb(255 255 255 / 70%); }
.ui-refresh .ui-auth-canvas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; min-height: 150px; border-radius: 8px; background: #fff; }
.ui-refresh .ui-auth-canvas i { display: block; min-height: 40px; border-radius: 7px; background: #e3eaff; }
.ui-refresh .ui-auth-canvas i:first-child { grid-column: 1 / -1; background: linear-gradient(110deg, #dce8ff, #b5ccff); }
.ui-refresh .login-wrap .auth-card { align-self: center; width: min(100% - 72px, 400px); max-width: none; margin: 36px auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.ui-refresh .auth-card h1 { font-size: 30px; font-weight: 650; letter-spacing: -.035em; }
.ui-refresh .auth-card .auth-brand { margin-bottom: 30px; }
.ui-refresh .auth-card input { width: 100%; min-height: 48px; }
.ui-refresh .auth-card input[type="checkbox"] { width: 18px; min-height: 18px; }
.ui-refresh .auth-card .checkbox-row { align-items: center; }
.ui-refresh .auth-card .button-block { min-height: 48px; }
.ui-refresh .topbar { background: transparent; border-bottom: 1px solid var(--divider-weak); box-shadow: none; backdrop-filter: none; }
.ui-refresh .footer { background: transparent; color: var(--text-muted); border-top: 1px solid var(--divider-weak); font-size: 12px; }
.ui-refresh .footer-inner { min-height: 60px; }
@media (min-width: 1024px) {
  .ui-refresh.nocturne-shell .shell-body { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  body.ui-refresh .sidebar { display: flex; position: sticky; top: 0; height: 100dvh; }
  .ui-refresh .mobile-brand, .ui-refresh .mobile-nav { display: none; }
  .ui-refresh.nocturne-shell .footer { margin-left: 252px; }
  .ui-refresh.customer-editor-page.editor-navigation-collapsed .shell-body { grid-template-columns: 0 minmax(0, 1fr); }
  .ui-refresh.customer-editor-page.editor-navigation-collapsed .footer { margin-left: 0; }
  .ui-refresh [data-design-surface="design-admin-directory"] > section.card { background: transparent; border: 0; box-shadow: none; padding: 0; }
  .ui-refresh [data-design-surface="design-admin-directory"] .table-wrap { background: transparent; border: 0; overflow: visible; }
  .ui-refresh [data-design-surface="design-admin-directory"] .admin-table { display: block; width: 100%; }
  .ui-refresh [data-design-surface="design-admin-directory"] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ui-refresh [data-design-surface="design-admin-directory"] tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
  .ui-refresh [data-design-surface="design-admin-directory"] tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 22px; border: 1px solid rgb(20 26 51 / 5%); border-radius: 20px; background: #fff; box-shadow: var(--shadow-raised); }
  .ui-refresh [data-design-surface="design-admin-directory"] td { display: block; padding: 0; border: 0; min-width: 0; }
  .ui-refresh [data-design-surface="design-admin-directory"] td[data-label="Agency"] { grid-column: 1 / -1; margin-bottom: 8px; font-size: 17px; font-weight: 650; }
  .ui-refresh [data-design-surface="design-admin-directory"] td[data-label="Customers"], .ui-refresh [data-design-surface="design-admin-directory"] td[data-label="Team"] { display: flex; flex-direction: column-reverse; gap: 2px; padding: 12px; border-radius: 12px; background: #f6f8fd; font-size: 25px; font-weight: 650; }
  .ui-refresh [data-design-surface="design-admin-directory"] td[data-label="Customers"]::before, .ui-refresh [data-design-surface="design-admin-directory"] td[data-label="Team"]::before { content: attr(data-label); color: #626b82; font-size: 11px; font-weight: 500; }
  .ui-refresh [data-design-surface="design-admin-directory"] td[data-label="Status"] { align-self: center; }
  .ui-refresh [data-design-surface="design-admin-directory"] td[data-label="View"] .button { padding: 8px; font-size: 11px; text-align: center; }
}
@media (max-width: 1023px) {
  .ui-refresh.nocturne-shell .shell-body { display: block; }
  body.ui-refresh .sidebar { display: none; }
  .ui-refresh .mobile-brand { display: flex; min-height: 72px; padding: 16px 24px; }
  .ui-refresh .mobile-nav { display: block; width: calc(100% - 48px); margin: 0 auto; border: 0; box-shadow: none; background: transparent; }
  .ui-refresh .mobile-nav summary { position: absolute; top: 17px; right: 24px; padding: 10px 13px; min-height: 42px; border: 1px solid #d5def1; border-radius: 10px; font-size: 12px; color: #2547c0; background: #fff; }
  .ui-refresh .mobile-nav[open] { margin-bottom: 16px; }
  .ui-refresh .mobile-nav-panel { padding: 16px; border: 1px solid #dfe5f1; border-radius: 16px; background: #fff; }
  .ui-refresh .mobile-nav-panel nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ui-refresh .mobile-nav-panel nav a { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px; font-size: 12px; font-weight: 550; }
  .ui-refresh .mobile-nav-panel nav a > span { display: flex; flex: none; }
  .ui-refresh .ui-workspace-header { position: relative; min-height: 72px; padding: 12px 24px 20px; background: transparent; backdrop-filter: none; }
  .ui-refresh .ui-header-search { max-width: 320px; }
  .ui-refresh.nocturne-shell .page-content > .shell, .ui-refresh .page-content > .motion-studio, .ui-refresh .ui-evidence-status { width: calc(100% - 48px); }
  .ui-refresh .login-wrap { min-height: 600px; }
  .ui-refresh .ui-auth-intro { padding: 32px; }
}
@media (max-width: 650px) {
  .ui-refresh .cc-filters { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .ui-refresh .cc-filters label { width: 100%; text-align: left; }
  .ui-refresh .cc-filters input, .ui-refresh .cc-filters select { width: 100%; }
  .ui-refresh .cc-filter-actions .button { flex: 1; }
  .ui-refresh .ui-header-search { display: none; }
  .ui-refresh .ui-workspace-header { gap: 12px; padding: 10px 16px 20px; }
  .ui-refresh .ui-workspace-title { font-size: 19px; }
  .ui-refresh .ui-role-chip > span:last-child { display: none; }
  .ui-refresh .mobile-brand { padding-inline: 16px; }
  .ui-refresh .mobile-nav { width: calc(100% - 32px); }
  .ui-refresh .mobile-nav summary { right: 16px; }
  .ui-refresh.nocturne-shell .page-content > .shell, .ui-refresh .page-content > .motion-studio, .ui-refresh .ui-evidence-status { width: calc(100% - 32px); }
  .ui-refresh .page-head { flex-direction: column; gap: 16px; }
  .ui-refresh .page-head h1 { font-size: 27px; }
  .ui-refresh :where(.card, .project-card, .lead-card, .progress-card) { padding: 20px; border-radius: 16px; }
  .ui-refresh .page-head > .actions, .ui-refresh .page-head > .button { width: 100%; }
  .ui-refresh .page-head .actions > .button { flex: 1; }
  .ui-refresh .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ui-refresh .metric-card { padding: 16px; }
  .ui-refresh .metric-card strong { font-size: 30px; }
  .ui-refresh .ui-owner-summary { padding: 24px 20px; border-radius: 20px; }
  .ui-refresh .ui-owner-summary .metric-card { padding: 14px; }
  .ui-refresh .ui-mobile-table, .ui-refresh .ui-mobile-table tbody { display: block; min-width: 0; width: 100%; }
  .ui-refresh .ui-mobile-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ui-refresh .ui-mobile-table tbody tr { display: block; padding: 10px 14px; border-bottom: 1px solid #e4eaf5; }
  .ui-refresh .ui-mobile-table td { display: grid; grid-template-columns: minmax(72px, 28%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border: 0; overflow-wrap: anywhere; }
  .ui-refresh .ui-mobile-table td::before { content: attr(data-label); color: var(--text-muted); font-size: 11px; font-weight: 600; }
  .ui-refresh .ui-mobile-table td[colspan] { display: block; }
  .ui-refresh .ui-mobile-table td[colspan]::before { display: none; }
  .ui-refresh .login-wrap { display: block; width: calc(100% - 32px); min-height: 0; margin: 20px auto; border-radius: 20px; }
  .ui-refresh .ui-auth-intro { padding: 26px; gap: 24px; }
  .ui-refresh .ui-auth-intro h2 { max-width: 22ch; font-size: 26px; }
  .ui-refresh .ui-auth-wordmark { font-size: 18px; }
  .ui-refresh .ui-auth-art { display: none; }
  .ui-refresh .login-wrap .auth-card { width: calc(100% - 48px); margin: 30px auto; }
  .ui-refresh .auth-card .auth-brand { display: none; }
  .ui-refresh .auth-card h1 { font-size: 27px; }
  .ui-refresh .empty { padding: 30px 18px; }
  .ui-refresh .motion-head { align-items: flex-start; flex-direction: column; }
  .ui-refresh .motion-head h1 { font-size: 34px; }
  .ui-refresh .motion-grid, .ui-refresh .motion-catalog-grid, .ui-refresh .motion-workspace { grid-template-columns: minmax(0, 1fr); }
  .ui-refresh .motion-panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body.ui-refresh *, body.ui-refresh *::before, body.ui-refresh *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .ui-refresh .button-primary, .ui-refresh .ui-role-avatar, .ui-refresh .ui-status-pill { border: 1px solid ButtonText; }
  .ui-refresh .sidebar a[aria-current="page"] { outline: 2px solid Highlight; }
}
