

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');
@import url('/shared/cpt-picker.css');   
@import url('/shared/press-area.css');   


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:#0C0B0A;
  --near-black:#14120F;
  --dark:#1C1914;
  --dark-mid:#24201A;
  --mid:          #3a3a3a;
  --muted:        #666666;
  --border:#2F2A21;
  --border-light: #e0e0e0;
  --surface:#17140F;
  --surface-2:#1C1914;
  --surface-3:#24201A;


  --white:        #ffffff;
  --off-white:    #f4f4f4;
  --text-primary:#F6F1E7;
  --text-secondary:#B8AE9C;
  
  --text-dim:#9D937F;

  --success:      #2d7a3a;
  --warning:#F2A47A;
  --error:        #c41e1e;
  --info:         #1e5fa0;

  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body:    'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  
  --radius:       var(--radius-surface);
  --radius-sm:    var(--radius-control);
  --radius-lg:    var(--radius-surface);

  
  --radius-control: 6px;    
  --radius-surface: 10px;   
  --radius-overlay: 14px;   
  --radius-pill:    999px;

  --shadow:       0 2px 12px rgba(0,0,0,0.5);
  --shadow-heavy: 0 4px 24px rgba(0,0,0,0.7);

  --transition:   0.18s ease;

  
  
  color-scheme: dark;
  --bg:#0C0B0A;
  --surface-raised:#14120F;
  --surface-inset:#1C1914;
  
  --border-strong: #776D5C;
  
  --border-soft:rgba(201,164,92,0.10);
  --text-bright:#FFFFFF;
  --text-on-brand:#17140F;
  
  --brand:#C9A45C;
  --brand-strong:#B08C48;
  --brand-soft:rgba(201,164,92,0.14);
  --status-ok-fg:      #7dcf8a;
  --status-ok-bg:      rgba(45,122,58,0.18);
  --status-ok-border:  rgba(45,122,58,0.5);
  --status-warn-fg:#F2A47A;
  --status-warn-bg:rgba(154,52,18,0.20);
  --status-warn-border:rgba(242,164,122,0.45);
  --status-error-fg:   #e87a7a;
  --status-error-bg:   rgba(196,30,30,0.18);
  --status-error-border: rgba(196,30,30,0.5);
  --status-info-fg:    #7ab4e8;
  --status-info-bg:    rgba(30,95,160,0.18);
  --status-info-border: rgba(30,95,160,0.45);
  --status-neutral-fg: #aaaaaa;
  --status-neutral-bg: rgba(106,106,106,0.18);
  
  --status-special-fg: #c39fe0;
  --status-special-bg: rgba(150,90,200,0.10);
  --status-special-border: rgba(150,90,200,0.45);
  --veil-hover:        rgba(255,255,255,0.03);
  --veil-selected:rgba(201,164,92,0.10);
  --overlay:           rgba(0,0,0,0.6);
  --overlay-heavy:     rgba(0,0,0,0.75);
  
  --logo-surface:      #ffffff;
  
  --font-mono:         monospace;
  
  --fs-2xs: 0.62rem; --fs-xs: 0.7rem; --fs-sm: 0.78rem; --fs-base: 0.85rem;
  --fs-md: 0.95rem; --fs-lg: 1.1rem; --fs-xl: 1.5rem; --fs-2xl: 2rem;

  

  
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;

  
  --dur-fast: 120ms; --dur-base: 180ms; --dur-slow: 240ms;
  --ease-standard:   cubic-bezier(.2, 0, 0, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0, 1);
  --ease-accelerate: cubic-bezier(.3, 0, 1, 1);

  
  --lh-tight: 1.25; --lh-base: 1.5; --lh-relaxed: 1.65;
  --tracking-caps: 0.08em;
  
  --focus-accent:#C9A45C;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus-accent);
  
  --focus-ring-raised: 0 0 0 2px var(--surface-raised), 0 0 0 4px var(--focus-accent);

  
  --elev-0: none;
  --elev-1: 0 1px 2px rgba(0,0,0,.28);
  --elev-2: 0 2px 6px rgba(0,0,0,.30), 0 1px 2px rgba(0,0,0,.22);
  --elev-3: 0 8px 24px rgba(0,0,0,.38), 0 2px 6px rgba(0,0,0,.26);
  --elev-4: 0 24px 64px rgba(0,0,0,.48), 0 8px 20px rgba(0,0,0,.28);

  
  --hairline:rgba(246,241,231,0.08);

  
  --z-sticky: 50; --z-header: 100; --z-drawer: 300;
  --z-modal-backdrop: 500; --z-modal: 501;
  
  --z-modal-nested: 600;
  --z-toast: 700;
  
  --danger: #C41E1E; --danger-strong: #9B1818; --danger-soft: rgba(196,30,30,0.18); --action-bg: #C9A45C; --action-fg: #17140F; --action-hover: #D6B472;
  
  --status-attn-fg: #C9A45C; --status-attn-bg: rgba(201,164,92,0.14); --status-attn-border: rgba(201,164,92,0.45);

}


:root[data-theme="dark"] {
  --bg:#0C0B0A; --surface-raised:#14120F; --surface:#17140F;
  --surface-inset:#1C1914; --surface-2:#1C1914; --surface-3:#24201A;
  --border:#2F2A21; --border-strong: #776D5C; --border-soft:rgba(201,164,92,0.10);
  --text-primary:#F6F1E7; --text-secondary:#B8AE9C; --text-dim:#9D937F;
  --text-bright:#FFFFFF; --text-on-brand:#17140F;
  --brand:#C9A45C; --brand-strong:#B08C48; --brand-soft:rgba(201,164,92,0.14);
  --success: #2d7a3a; --warning:#F2A47A; --error: #c41e1e; --info: #1e5fa0;
  --status-ok-fg: #7dcf8a; --status-ok-bg: rgba(45,122,58,0.18); --status-ok-border: rgba(45,122,58,0.5);
  --status-warn-fg:#F2A47A; --status-warn-bg:rgba(154,52,18,0.20); --status-warn-border:rgba(242,164,122,0.45);
  --status-error-fg: #e87a7a; --status-error-bg: rgba(196,30,30,0.18); --status-error-border: rgba(196,30,30,0.5);
  --status-info-fg: #7ab4e8; --status-info-bg: rgba(30,95,160,0.18); --status-info-border: rgba(30,95,160,0.45);
  --status-neutral-fg: #aaaaaa; --status-neutral-bg: rgba(106,106,106,0.18);
  --status-special-fg: #c39fe0; --status-special-bg: rgba(150,90,200,0.10); --status-special-border: rgba(150,90,200,0.45);
  --veil-hover: rgba(255,255,255,0.03); --veil-selected:rgba(201,164,92,0.10);
  --overlay: rgba(0,0,0,0.6); --overlay-heavy: rgba(0,0,0,0.75);
  --shadow: 0 2px 12px rgba(0,0,0,0.5); --shadow-heavy: 0 4px 24px rgba(0,0,0,0.7);
  --logo-surface: #ffffff;
  
  --elev-1: 0 1px 2px rgba(0,0,0,.28);
  --elev-2: 0 2px 6px rgba(0,0,0,.30), 0 1px 2px rgba(0,0,0,.22);
  --elev-3: 0 8px 24px rgba(0,0,0,.38), 0 2px 6px rgba(0,0,0,.26);
  --elev-4: 0 24px 64px rgba(0,0,0,.48), 0 8px 20px rgba(0,0,0,.28);
  --hairline:rgba(246,241,231,0.08);
  
  --focus-accent: #C9A45C; --danger: #C41E1E; --danger-strong: #9B1818; --danger-soft: rgba(196,30,30,0.18); --action-bg: #C9A45C; --action-fg: #17140F; --action-hover: #D6B472;
  
  --status-attn-fg: #C9A45C; --status-attn-bg: rgba(201,164,92,0.14); --status-attn-border: rgba(201,164,92,0.45);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg:#FBF8F2; --surface-raised:#FFFFFF; --surface:#FFFDF8;
  --surface-inset:#F3EEE4; --surface-2:#FFFFFF; --surface-3:#EFE9DD;
  --border:#E3DBCA; --border-strong:#8C826F; --border-soft:rgba(23,20,15,0.10);
  --text-primary:#17140F; --text-secondary:#4A443A; --text-dim:#5C5548;
  --text-bright:#0C0B0A; --text-on-brand:#FFFFFF;
  --brand:#7E5F27; --brand-strong:#664D1F; --brand-soft:rgba(133,101,42,0.10);
  --success: #1e6b34; --warning:#9A3412; --error: #b31b1b; --info: #14589c;
  --status-ok-fg: #1e6b34; --status-ok-bg: rgba(30,107,52,0.10); --status-ok-border: rgba(30,107,52,0.5);
  --status-warn-fg:#9A3412; --status-warn-bg:rgba(154,52,18,0.08); --status-warn-border:rgba(154,52,18,0.45);
  --status-error-fg: #a52121; --status-error-bg: rgba(179,27,27,0.08); --status-error-border: rgba(179,27,27,0.5);
  --status-info-fg: #14589c; --status-info-bg: rgba(20,88,156,0.10); --status-info-border: rgba(20,88,156,0.45);
  --status-neutral-fg: #595959; --status-neutral-bg: rgba(89,89,89,0.10);
  --status-special-fg: #6b3fa0; --status-special-bg: rgba(107,63,160,0.08); --status-special-border: rgba(107,63,160,0.45);
  --veil-hover: rgba(0,0,0,0.04); --veil-selected:rgba(201,164,92,0.16);
  --overlay: rgba(0,0,0,0.5); --overlay-heavy: rgba(0,0,0,0.6);
  --shadow: 0 1px 6px rgba(0,0,0,0.12); --shadow-heavy: 0 4px 18px rgba(0,0,0,0.18);
  --logo-surface: #ffffff;
  
  --elev-1: 0 1px 2px rgba(27,27,27,.06);
  --elev-2: 0 1px 3px rgba(27,27,27,.08), 0 1px 2px rgba(27,27,27,.05);
  --elev-3: 0 6px 16px rgba(27,27,27,.10), 0 2px 4px rgba(27,27,27,.06);
  --elev-4: 0 20px 48px rgba(27,27,27,.16), 0 6px 14px rgba(27,27,27,.08);
  --hairline:rgba(23,20,15,0.09);
  
  --focus-accent: #7E5F27; --danger: #B31B1B; --danger-strong: #8F1414; --danger-soft: rgba(179,27,27,0.08); --action-bg: #17140F; --action-fg: #D9BC7E; --action-hover: #000000;
  
  --status-attn-fg: #775A25; --status-attn-bg: rgba(133,101,42,0.10); --status-attn-border: rgba(133,101,42,0.45);
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}


a { color: var(--brand); }


h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.1;
}



.portal-topbar {
  color-scheme: dark;
  --text-bright: #FFFFFF; --text-primary: #F6F1E7; --text-secondary: #B8AE9C; --text-dim: #B8AE9C;
  --border: #3A3429; --border-strong: #776D5C; --surface-inset: #1C1914; --surface-raised: #14120F;
  --surface: #17140F; --surface-2: #1C1914; --surface-3: #24201A; --veil-hover: rgba(255,255,255,0.08);
  --brand: #C9A45C; --text-on-brand: #17140F;
  --status-ok-fg: #7dcf8a; --status-info-fg: #7ab4e8; --status-neutral-fg: #aaaaaa; --status-error-fg: #e87a7a;
  --focus-accent: #C9A45C;
  --focus-ring: 0 0 0 2px #0C0B0A, 0 0 0 4px #C9A45C; --focus-ring-raised: 0 0 0 2px #0C0B0A, 0 0 0 4px #C9A45C;
  background: #0C0B0A;
  border-bottom: 3px solid #C9A45C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.portal-topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.portal-topbar .brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

.portal-topbar .brand-badge { display: none; }


.portal-topbar .brand-wordmark { visibility: hidden; }
.portal-topbar .brand-wordmark.rms-wordmark-ready { visibility: visible; }


#reportPageTitle { visibility: hidden; }
#reportPageTitle.rms-heading-ready { visibility: visible; }

.portal-topbar .brand-badge {
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--brand);
  color: var(--text-on-brand);
  padding: 2px 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.portal-topbar .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-topbar .investigator-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-logout {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.btn-logout:hover {
  color: var(--status-error-fg);
  border-color: var(--brand);
}




.sidebar {
  width: 220px; min-width: 220px;
  background: var(--surface-raised);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding-top: var(--sp-2);
}
@media (max-width: 768px) { .sidebar { display: none; } }

.nav-section-label {
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); padding: 16px 16px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  border-left: 3px solid transparent;
  transition: color var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard), border-left-color var(--dur-fast) var(--ease-standard); text-decoration: none; user-select: none;
}
.nav-item:hover { color: var(--text-primary); background: var(--veil-hover); }
.nav-item.active { color: var(--text-bright); border-left-color: var(--brand); background: var(--veil-selected); }
.nav-item .nav-icon { font-size: 0.8rem; width: 16px; text-align: center; opacity: 0.7; }
.sidebar-footer { margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--border); }


#rms-sidebar .nav-item { padding: 11px 16px; font-size: var(--fs-md); }
#rms-sidebar .nav-icon { display: none; }
#rms-sidebar .nav-line { height: 1px; margin: var(--sp-3) 16px; background: var(--border); flex: none; }
#rms-sidebar .nav-line ~ a[href="/help"] { margin-top: auto; margin-bottom: var(--sp-2); }
@media (min-width: 769px) {
  #rms-sidebar { position: sticky; top: 55px; height: calc(100vh - 55px); overflow-y: auto; align-self: flex-start; }
}
.rms-mobile-drawer .nav-icon { display: none; }
.rms-mobile-drawer .nav-line { height: 1px; margin: var(--sp-3) 16px; background: var(--border); }


.main-content .card, .main-content .form-section {
  background: var(--surface-raised); border: 1px solid var(--border); box-shadow: none; border-radius: var(--radius-surface);
}


.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.form-section-header {
  background: var(--surface-inset);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.form-section-header .section-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--brand);
  color: var(--text-on-brand);
  padding: 2px 7px;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.form-section-header .section-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  flex: 1;
}

.form-section-header .section-chevron {
  color: var(--text-dim);
  font-size: 1rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.form-section-header.collapsed .section-chevron {
  transform: rotate(-90deg);
}

.form-section-body {
  padding: 14px;
}

.form-section-body.hidden { display: none; }



.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.field-row.triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-row.quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-row.full {
  grid-template-columns: minmax(0, 1fr);
}


@media (max-width: 768px) {
  .field-row,
  .field-row.triple,
  .field-row.quad,
  .field-row.full {
    grid-template-columns: minmax(0, 1fr);
  }

  
  .form-hint, .field-hint { max-width: none; }
}


@media (max-width: 768px) {
  
  html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
}


.main-content { min-width: 0; }
.workspace-tabs { max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.workspace-tabs > * { flex: none; }


.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }


@media (max-width: 768px) {
  
  input[type="text"], input[type="email"], input[type="password"], input[type="number"],
  input[type="search"], input[type="date"], input[type="tel"], input[type="url"],
  select, textarea { font-size: 16px; }
  .btn { padding: 13px 20px; }
  .btn-sm { padding: 10px 16px; }
  
  .btn-logout { padding: 9px 10px; white-space: nowrap; }
  .toggle-btn { padding: 10px 8px; }
}


.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field-group > input,
.field-group > select,
.field-group > textarea {
  max-width: 100%;
}

.field-group label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.field-group label .required {
  color: var(--status-error-fg);
  margin-left: 2px;
}



input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 9px 10px;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}



input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  min-width: min(158px, 100%);
  
  width: 100% !important;
  width: -webkit-fill-available !important;
  max-width: 100%;
  -webkit-appearance: auto;
  appearance: auto;
}



@media (max-width: 768px) {
  
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"] {
    min-width: 0;
  }
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
}
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  background: var(--surface-3);
}


input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border: 2px solid var(--status-error-fg);
  background: var(--status-error-bg, var(--surface-2));
  
  padding: 8px 9px;
}

input[aria-invalid="true"]:focus,
select[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
  border-color: var(--status-error-fg);
  background: var(--surface-3);
}


.field-error {
  display: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--status-error-fg);
  margin-top: var(--sp-1);
  line-height: 1.45;
}
.field-error.show { display: block; }


.hint, .form-hint, .form-hint-supp, .field-hint, .help, .help-text, .access-form-hint, .ev-form-hint,
.attest-hint, .spine-hint, .modal-required-hint, .wiz-hint, .nc-help, .lh-help, .pref-hint, .fmt-hint,
.computed-hint, .search-hint {
  font-size: var(--fs-sm);
  font-style: normal;
  font-weight: 400;
  color: var(--text-dim);
  line-height: var(--lh-base);
  margin-top: var(--sp-1);
}


.req-star, .required, .req { color: var(--status-error-fg); font-weight: 700; }
label.is-required::after { content: " *"; color: var(--status-error-fg); font-weight: 700; }


.role-badge {
  font-size: var(--fs-2xs); font-weight: 700; padding: 2px var(--sp-2); border-radius: var(--radius-control);
  border: 1px solid var(--border); color: var(--text-dim);
}

.role-badge.admin { border-color: var(--brand); color: var(--brand); }
.role-badge.supervisor { border-color: var(--status-info-fg); color: var(--status-info-fg); }
.role-badge.investigator { border-color: var(--status-ok-fg); color: var(--status-ok-fg); }
.role-badge.office_assistant { border-color: var(--status-neutral-fg); color: var(--status-neutral-fg); }


.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
  width: 32px; height: 32px; padding: 0; background: transparent; border: 1px solid transparent;
  border-radius: var(--radius-control); color: var(--text-secondary); cursor: pointer; flex: none;
}
a.icon-btn { text-decoration: none; }
.icon-btn:hover, .icon-btn:focus-visible { color: var(--text-bright); background: var(--veil-hover); }
.icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn::before {
  content: ""; display: block; width: 16px; height: 16px; background: currentColor; flex: none;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.icon-btn::after {
  content: attr(aria-label); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  z-index: var(--z-header); padding: 3px 8px; border-radius: var(--radius-control); white-space: nowrap;
  background: var(--surface-raised); color: var(--text-primary); box-shadow: var(--elev-2);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 400; letter-spacing: 0; text-transform: none;
  opacity: 0; visibility: hidden; pointer-events: none;
}

.icon-btn:focus-visible::after { opacity: 1; visibility: visible; }
@media (hover: hover) { .icon-btn:hover::after { opacity: 1; visibility: visible; } }

@media not all and (hover: none) {
  .icon-btn:not(:hover):not(:focus-visible)::after { display: none; }
}
@media (hover: none) {
  .icon-btn { width: auto; min-height: 44px; padding: 0 var(--sp-2); }
  
  .icon-btn::after {
    position: static; transform: none; opacity: 1; visibility: visible; background: none; box-shadow: none;
    padding: 0; color: inherit; z-index: auto;
  }
  
  .rms-theme-toggle .icon-btn { padding: 0; }
  
  .rms-theme-toggle .icon-btn::after { display: none; }
  
  .icon-btn[aria-expanded]:not([aria-haspopup])::after, .icon-btn.cs-fold::after { display: none; }
  .icon-btn[aria-expanded]:not([aria-haspopup]), .icon-btn.cs-fold { width: 44px; padding: 0; }
}
.icon-plus { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-copy { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 1.5h8A1.5 1.5 0 0 1 14.5 3v8H13V3H5V1.5zM3 4.5h7A1.5 1.5 0 0 1 11.5 6v7A1.5 1.5 0 0 1 10 14.5H3A1.5 1.5 0 0 1 1.5 13V6A1.5 1.5 0 0 1 3 4.5zM3 6v7h7V6H3z'/%3E%3C/svg%3E"); }

.icon-pencil { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.6 3.6a2.05 2.05 0 0 1 2.9 2.9L8 18l-4 1 1-4z' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14.6 5.6l2.9 2.9' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.icon-btn.icon-pencil::before { width: 18px; height: 18px; }

@media (hover: none) {
  .icon-btn.icon-pencil::after { display: none; }
  .icon-btn.icon-pencil { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
}
.icon-x { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-sun { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.2'/%3E%3Cpath d='M8 1v2M8 13v2M1 8h2M13 8h2M3 3l1.4 1.4M11.6 11.6L13 13M13 3l-1.4 1.4M4.4 11.6L3 13' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.icon-moon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.8 10.4A6.2 6.2 0 0 1 5.6 2.2a6.2 6.2 0 1 0 8.2 8.2z'/%3E%3C/svg%3E"); }
.icon-computer { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1.5' y='2.5' width='13' height='8.5' rx='1' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M5.5 14h5M8 11v3' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }


.rz-top-refusal {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: var(--z-toast);
  width: min(520px, calc(100vw - 32px)); display: flex; gap: var(--sp-3); align-items: center;
  justify-content: space-between; padding: var(--sp-3) var(--sp-4); background: var(--surface-raised);
  color: var(--text-bright); font-weight: 700; border-left: 5px solid var(--status-error-fg);
  border-radius: var(--radius-surface); box-shadow: var(--elev-4);
}
.rz-top-refusal button { background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; min-width: 36px; min-height: 36px; }

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}


input:disabled, select:disabled, textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.toggle-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.toggle-btn {
  flex: 1;
  min-width: 60px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
  -webkit-user-select: none;
  user-select: none;
}

.toggle-btn:active { transform: scale(0.97); }

.toggle-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}

.toggle-btn.active-green {
  background: var(--success);
  border-color: var(--success);
  color: var(--text-on-brand);
}


.btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }


a.btn, a.btn:hover, a.btn:focus { text-decoration: none; }

.btn-primary {
  background: var(--action-bg);
  color: var(--action-fg);
}

.btn-primary:hover { background: var(--action-hover); }



.btn-success {
  background: var(--success);
  color: var(--text-on-brand);
}

.btn-outline-red {
  background: transparent;
  color: var(--status-error-fg);
  border: 1px solid var(--danger);
}

.btn-outline-red:hover {
  background: var(--danger-soft);
}


.btn-secondary,
.btn-secondary-strong {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-weight: 600;
}
.btn-secondary:hover,
.btn-secondary-strong:hover {
  background: var(--surface-3);
  color: var(--text-bright);
  border-color: var(--text-dim);
}

.btn-quiet {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.btn-quiet:hover {
  background: var(--veil-hover);
  color: var(--text-bright);
}

.btn-destructive {
  background: transparent;
  color: var(--status-error-fg);
  border: 1px solid var(--status-error-border);
}
.btn-destructive:hover {
  background: var(--danger);
  color: #FFFFFF;
  border-color: var(--danger);
}

.btn-sm {
  font-size: 0.78rem;
  padding: 7px 14px;
}


:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-control);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.btn-full { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


.alert {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-left: 3px solid;
  margin-bottom: 12px;
}

.alert-error {
  background: var(--status-error-bg);
  border-color: var(--danger);
  color: var(--status-error-fg);
}

.alert-success {
  background: var(--status-ok-bg);
  border-color: var(--success);
  color: var(--status-ok-fg);
}

.alert-info {
  background: var(--status-info-bg);
  border-color: var(--info);
  color: var(--status-info-fg);
}


.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.text-muted { color: var(--text-dim); }
.text-red   { color: var(--status-error-fg); }
.text-sm    { font-size: 0.8rem; }
.mt-8       { margin-top: 8px; }
.mt-12      { margin-top: 12px; }
.mt-16      { margin-top: 16px; }
.hidden     { display: none !important; }


.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}


.badge-active,
.badge-approved,
.badge-stored,
.badge-allow            { background: var(--status-ok-bg);  color: var(--status-ok-fg); }
.badge-submitted,
.badge-info,
.badge-intake           { background: var(--status-info-bg);  color: var(--status-info-fg); }
.badge-reviewed,
.badge-on_hold,
.badge-duplicate        { background: var(--status-warn-bg); color: var(--status-warn-fg); }
.badge-returned,
.badge-locked,
.badge-restricted,
.badge-deny,
.badge-entered_in_error { background: var(--status-error-bg);  color: var(--status-error-fg); }
.badge-draft,
.badge-closed,
.badge-pending,
.badge-archived         { background: var(--status-neutral-bg); color: var(--status-neutral-fg); }
.badge-void             { background: var(--status-neutral-bg); color: var(--status-neutral-fg); }


.badge-client-visible   { background: rgba(125,207,138,0.12); color: var(--status-ok-fg); }
.badge-client-hidden    { background: rgba(170,170,170,0.12); color: var(--text-dim); }


.lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--status-warn-fg);
  white-space: nowrap;
}


.badge-cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  row-gap: 4px;
}


.hat-chip {
  float: right;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 1px var(--sp-2);
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--surface-2);
  text-transform: none;
}
.hat-chip.hat-agency { border-color: var(--brand);         color: var(--brand); }
.hat-chip.hat-you    { border-color: var(--border-strong); color: var(--text-secondary); }


.notif-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-soft);
}
.notif-row:last-child { border-bottom: 0; }
.notif-row-label { flex: 1 1 auto; font-size: var(--fs-sm); color: var(--text-primary); }
.notif-state {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.notif-state.is-on        { background: var(--status-ok-bg);      color: var(--status-ok-fg); }
.notif-state.is-off       { background: var(--status-neutral-bg); color: var(--status-neutral-fg); }
.notif-state.is-locked    { background: var(--status-info-bg);    color: var(--status-info-fg); }
.notif-state.is-undeliverable {
  background: var(--status-warn-bg);
  color: var(--status-warn-fg);
}

.notif-layer {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 1px var(--sp-2);
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--surface-2);
  white-space: nowrap;
}
.notif-layer.layer-you    { border-color: var(--border-strong); color: var(--text-secondary); }
.notif-layer.layer-agency { border-color: var(--brand);         color: var(--brand); }


.notif-fault {
  border: 1px solid var(--status-warn-border);
  background: var(--status-warn-bg);
  color: var(--text-primary);
  border-radius: var(--radius-surface, 6px);
  padding: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.notif-always {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-soft);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}


.empty-state      { padding: 48px 24px; text-align: center; }
.empty-state-icon { font-size: 2rem; margin-bottom: 10px; opacity: 0.3; }
.empty-state-text {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
}
.empty-state-sub  { font-size: 0.8rem; color: var(--text-dim); margin-top: 6px; opacity: 0.7; }


@media (max-width: 500px) {
  .badge-cluster { gap: 4px; row-gap: 3px; }
  .status-badge,
  .lock-tag,
  .pub-badge { white-space: nowrap; }
}


.evd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0 var(--sp-6);
  align-items: start;
}
.evd-main { min-width: 0; }
.evd-rail {
  min-width: 0;
  border-left: 1px solid var(--border-soft);
  padding-left: var(--sp-6);
  position: sticky;
  top: 0;
  
  max-height: calc(min(88vh, 900px) - 190px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 900px) {
  .evd-layout { display: block; }
  .evd-rail {
    border-left: none; padding-left: 0; margin-top: var(--sp-5);
    position: static; max-height: none; overflow-y: visible;
    border-top: 1px solid var(--border-soft); padding-top: var(--sp-5);
  }
}


input.cpt-phone-flagged {
  border-color: var(--status-warn-border);
  background: var(--status-warn-bg);
}
.cpt-phone-note {
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--status-warn-fg);
}




.rzymd {
  display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: stretch;
  max-width: 23rem;
}
.rzymd select {
  min-height: 44px; font-size: var(--fs-base); padding: var(--sp-1) var(--sp-2);
  border: 1px solid var(--border); border-radius: var(--radius-control);
  
  background-color: var(--surface-2); color: var(--text-primary);
  padding-right: 22px; background-position: right 6px center;
  
  width: auto;
}

.rzymd .rzymd-m { flex: 0 1 auto; min-width: 66px; }
.rzymd .rzymd-d { flex: 0 0 56px; }
.rzymd .rzymd-y { flex: 0 0 76px; }
.rzymd .rzymd-cal {
  flex: 0 0 auto; min-width: 44px; min-height: 44px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-control);
  background: var(--surface-raised); color: var(--text-secondary); font-size: var(--fs-lg);
}
.rzymd .rzymd-cal:hover { color: var(--text-primary); border-color: var(--border-strong); }

.rzymd .rzymd-native {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 768px) {
  .rzymd select, .rzymd .rzymd-cal { min-height: 48px; font-size: 16px; }
}


input[type="checkbox"].cpt-switch {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 46px; height: 26px; margin: 0; border-radius: var(--radius-pill);
  background: var(--surface-inset); border: 1px solid var(--border-strong);
  position: relative; cursor: pointer; transition: background var(--transition), border-color var(--transition);
  vertical-align: middle;
}
input[type="checkbox"].cpt-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--text-dim); transition: transform var(--transition), background var(--transition);
}
input[type="checkbox"].cpt-switch:checked { background: var(--brand); border-color: var(--brand-strong); }
input[type="checkbox"].cpt-switch:checked::after { transform: translateX(20px); background: #fff; }
input[type="checkbox"].cpt-switch:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
input[type="checkbox"].cpt-switch:disabled { opacity: 0.5; cursor: not-allowed; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-top: 1px solid var(--border-soft); }
.switch-row:first-child { border-top: 0; }
.switch-row-text { min-width: 0; }
.switch-row-label { font-weight: 600; color: var(--text-primary); }
.switch-row-sub { font-size: var(--fs-sm); color: var(--text-dim); margin-top: 2px; }
.always-sent { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: var(--fs-sm); font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-inset); color: var(--text-secondary); }
.always-sent::before { content: ''; width: 10px; height: 12px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h1v7H1V5h1zm1.2 0h3.6V3.5a1.8 1.8 0 0 0-3.6 0V5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M2 5V3.5a3 3 0 0 1 6 0V5h1v7H1V5h1zm1.2 0h3.6V3.5a1.8 1.8 0 0 0-3.6 0V5z'/%3E%3C/svg%3E") center/contain no-repeat; }




@media (hover: none) and (pointer: coarse) {
  :where(button:not([role="switch"]):not(.rms-hamburger), .btn, a.btn) { min-height: 36px; min-width: 36px; }
  html a.card-link, html a.rf-link, html a.skip, html .breadcrumb a, html a.row-action, html a.crumb,
  html a.view-all, html a.sec-link, html a.later, html a.back-link, html a.rsnap-link,
  html .portal-topbar a.brand, html a.ag-link {
    display: inline-flex; align-items: center; min-height: 36px; min-width: 36px;
  }
  html #whatsLeft .whats-left-item { min-height: 36px; }
  
  html .case-meta-val a, html .details-sections .overview-card-body a { display: inline-flex; align-items: center; min-height: 36px; }
  
  html .case-meta-item { align-items: center; min-height: 36px; }
  html .rms-mobile-drawer .rms-drawer-close, html .rzm-x { min-width: 44px; min-height: 44px; }
  html .rzd-cal { min-width: 36px; min-height: 36px; }
  html .rzd-text { padding-right: 40px !important; }
  html #case-add-btn { min-height: 36px; height: 36px; }
}


@media (max-width: 640px) and (hover: hover) {
  :where(button:not([role="switch"]):not(.rms-hamburger), .btn, a.btn) { min-height: 36px; min-width: 36px; }
  html a.card-link, html a.rf-link, html a.skip, html .breadcrumb a, html a.row-action, html a.crumb,
  html a.view-all, html a.sec-link, html a.later, html a.back-link, html a.rsnap-link,
  html .portal-topbar a.brand, html a.ag-link {
    display: inline-flex; align-items: center; min-height: 36px; min-width: 36px;
  }
  html .icon-btn:not(.rms-theme-toggle .icon-btn) { min-width: 44px; min-height: 44px; }
  html .rms-mobile-drawer .rms-drawer-close, html .rzm-x { min-width: 44px; min-height: 44px; }
  
  html #whatsLeft .whats-left-item { min-height: 36px; }
  html .case-meta-val a, html .details-sections .overview-card-body a { display: inline-flex; align-items: center; min-height: 36px; }
  html .case-meta-item { align-items: center; min-height: 36px; }
  html .rzd-cal { min-width: 36px; min-height: 36px; }
  html #case-add-btn { min-height: 36px; height: 36px; }
}


@media (max-width: 760px) {
  html body #rnum-modal, html body #supp-parent-modal { padding: var(--sp-4); align-items: center; }
  html body #rnum-modal .modal-box, html body #supp-parent-modal .modal-box {
    width: 100%; max-height: 100%; border-radius: var(--radius-surface); border-bottom: 1px solid var(--border);
    padding: var(--sp-4); transform: none;
  }
  html body #newReportConfirmStep {
    top: 50%; bottom: auto !important; left: var(--sp-4); right: var(--sp-4); transform: translateY(-50%);
    max-height: calc(100% - 2 * var(--sp-4)); overflow-y: auto;
    border-radius: var(--radius-surface) !important; border-bottom: 1px solid var(--border) !important;
    padding: var(--sp-4) !important;
  }
}
html body .supp-panel-overlay { align-items: center; justify-content: center; padding: var(--sp-4); }
html body .supp-panel {
  height: auto; max-height: min(88vh, 900px); max-height: min(100%, 900px); max-width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-overlay); box-shadow: var(--elev-4);
  transform: scale(.98);
}
html body .supp-panel-overlay.open .supp-panel { transform: none; }


@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  html input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="hidden"]),
  html select, html textarea { font-size: 16px !important; }
}


html body :is(a, button, summary, label, [role="button"], [role="link"]),
html body :is(a, button, summary, label, [role="button"], [role="link"]) :not(u, ins),
html body :is(a, button, summary, label, [role="button"], [role="link"]):is(:hover, :focus, :focus-visible) {
  text-decoration-line: none !important;
}

html body a[href^="tel:"], html body a[href^="mailto:"] {
  color: var(--brand); font-weight: 600; text-decoration-line: none !important;
}


input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus,
textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset;
  box-shadow: 0 0 0 1000px var(--surface-2) inset;
  caret-color: var(--text-primary);
  transition: background-color 600000s 0s, color 600000s 0s;
}
input:-webkit-autofill:focus { box-shadow: 0 0 0 1000px var(--surface-2) inset, 0 0 0 2px var(--brand); }


html body .portal-topbar a.brand { min-width: 0; flex: 1 1 auto; }
html body .portal-topbar .brand-wordmark {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere; white-space: normal; line-height: 1.2; min-width: 0;
}
html body .portal-topbar .topbar-right, html body .portal-topbar .btn-logout { flex: none; }
html body .portal-topbar .btn-logout { white-space: nowrap; }


.portal-topbar { box-shadow: 0 1px 0 #C9A45C, 0 8px 28px -10px rgba(201,164,92,.55); }
.main-content .card { background-image: linear-gradient(90deg, transparent, rgba(201,164,92,.75), transparent);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: top; }
.btn-primary { background-image: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); box-shadow: 0 6px 18px -8px rgba(201,164,92,.6); }
