@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css");


:root {
  color-scheme: light;

  --font-family-sans: "Pretendard Variable", Pretendard, "SUIT Variable", SUIT, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-title: clamp(1.75rem, 4vw, 2.5rem);
  --font-size-display: clamp(2.25rem, 6vw, 4rem);

  --color-bg: #f6f5ed;
  --color-surface: #fffdf7;
  --color-surface-soft: #edf3e9;
  --color-text: #203c2b;
  --color-text-muted: #68726c;
  --color-accent: #4b7255;
  --color-accent-strong: #203c2b;
  --color-accent-secondary: #b37a3f;
  --color-border: #d4ded2;
  --color-on-accent: #fffdf7;
  --color-surface-glass: rgb(255 253 247 / 94%);
  --color-overlay: rgb(20 42 29 / 42%);
  --color-focus-ring: rgb(75 114 85 / 13%);
  --color-shadow: rgb(32 60 43 / 8%);
  --color-error: #b74444;
  --color-error-soft: #faeeee;
  --color-success: #3f704b;
  --color-warning: #9a6a2f;
  --color-focus: var(--color-accent);
  --color-dark-bg: #111a14;
  --color-dark-surface: #18231c;
  --color-dark-surface-soft: #223229;
  --color-dark-text: #dce9de;
  --color-dark-muted: #a9b6ac;
  --color-dark-border: #384a3d;
  --color-brand-naver: #03c75a;
  --color-brand-naver-hover: #02ad4e;

  --content-width: 1180px;
  --page-padding: clamp(16px, 3vw, 24px);
  --section-space: clamp(64px, 8vw, 104px);
  --card-gap: clamp(12px, 2vw, 24px);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 12px 32px var(--color-shadow);
  --shadow-modal: 0 16px 38px rgb(32 60 43 / 13%);
  --header-height: 64px;
  --button-height: 48px;
  --button-padding-inline: 18px;
  --input-height: 48px;
  --transition-fast: 180ms ease;
  --transition-normal: 260ms ease;

  /* Existing apps use these aliases; they now resolve to one palette. */
  --bg: var(--color-bg);
  --panel: var(--color-surface);
  --panel-soft: var(--color-surface-soft);
  --soft: var(--color-surface-soft);
  --soft-green: var(--color-surface-soft);
  --soft-blue: var(--color-surface-soft);
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --line: var(--color-border);
  --primary: var(--color-accent);
  --primary-hover: var(--color-accent-strong);
  --primary-2: var(--color-accent-secondary);
  --accent: var(--color-accent);
  --green: var(--color-accent);
  --blue: var(--color-accent);
  --gold: var(--color-accent-secondary);
  --rose: var(--color-error);
  --danger: var(--color-error);
  --shadow: var(--shadow-card);
  --shadow-sm: var(--shadow-card);
  --shadow-md: var(--shadow-modal);
  --color-primary: var(--color-accent);
  --color-primary-dark: var(--color-accent-strong);
  --content-max: var(--content-width);
  --space-section: var(--section-space);
  --radius-small: var(--radius-sm);
  --radius-input: var(--radius-md);
  --radius-card: var(--radius-lg);
  --shadow-natural: var(--shadow-card);
  --shadow-raised: var(--shadow-modal);
  --naver: var(--color-brand-naver);
  --naver-dark: var(--color-brand-naver-hover);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family-sans);
  font-synthesis: none;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-family-sans);
  font-synthesis: none;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
button,
[role="button"],
label,
nav a,
.title,
.brand,
.badge {
  font-weight: var(--font-weight-semibold);
}

p,
li,
dd,
input,
textarea,
select {
  font-weight: var(--font-weight-regular);
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-strong);
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
.button,
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  padding-inline: var(--button-padding-inline);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--color-surface);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

button:hover,
.button:hover,
.button-primary:hover {
  border-color: var(--color-accent-strong);
  background: var(--color-accent-strong);
}

.button-secondary,
.button-quiet {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-soft);
  color: var(--color-accent-strong);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

input,
textarea,
select,
.field {
  min-height: var(--input-height);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input,
select,
.field {
  padding-inline: 14px;
}

textarea {
  padding: 14px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
.field:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-focus-ring);
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.9;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled,
.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.card,
.panel-card,
.form-card,
.empty-state,
.error-state,
.modal-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.badge,
.chip,
.level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-inline: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  color: var(--color-accent-strong);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.modal,
[role="dialog"] {
  color: var(--color-text);
}

.modal-backdrop,
.overlay {
  background: var(--color-overlay);
  backdrop-filter: blur(2px);
}

.empty-state,
.error-state {
  padding: var(--space-lg);
  color: var(--color-text-muted);
  text-align: center;
}

.error-state,
.input-error,
.box-error {
  border-color: var(--color-error);
  background: var(--color-error-soft);
  color: var(--color-error);
}

.site-header,
.site-footer,
body > header,
body > footer {
  border-color: var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
}

body > footer {
  color: var(--color-text-muted);
}

.site-header,
body > header {
  min-height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
}

.site-footer,
body > footer {
  border-top: 1px solid var(--color-border);
}

/* Decorative chevron: pseudo-elements are not announced by screen readers. */
.icon-chevron,
.icon-arrow {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: 0 0 auto;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.button-link,
.navigation-link,
.navigation-back,
.button-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.button-link::after,
.navigation-link::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-top: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.navigation-back::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-bottom: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.button-link:hover::after,
.button-link:focus-visible::after,
.navigation-link:hover::after,
.navigation-link:focus-visible::after,
.navigation-back:hover::before,
.navigation-back:focus-visible::before,
.button-arrow:hover .icon-chevron,
.button-arrow:hover .icon-arrow,
.button-arrow:focus-visible .icon-chevron,
.button-arrow:focus-visible .icon-arrow {
  transform: translateX(3px) rotate(45deg);
}

.navigation-back:hover::before,
.navigation-back:focus-visible::before {
  transform: translateX(-3px) rotate(45deg);
}

/* Tailwind-based pages share the same type and forest palette. */
.font-normal {
  font-weight: var(--font-weight-regular);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.rounded-lg,
.rounded-xl {
  border-radius: var(--radius-md);
}

.rounded-2xl,
.rounded-3xl {
  border-radius: var(--radius-lg);
}

.text-slate-800,
.text-slate-900 {
  color: var(--color-text);
}

.text-slate-300,
.text-slate-400,
.text-slate-500,
.text-slate-600,
.text-slate-700 {
  color: var(--color-text-muted);
}

.text-blue-500,
.text-blue-600,
.text-blue-700,
.text-blue-800,
.text-indigo-500,
.text-indigo-600,
.text-indigo-700,
.text-indigo-800,
.text-purple-700 {
  color: var(--color-accent);
}

.text-red-500,
.text-red-600,
.text-red-700 {
  color: var(--color-error);
}

.bg-white {
  background-color: var(--color-surface);
}

.bg-slate-50 {
  background-color: var(--color-bg);
}

.bg-slate-100,
.bg-slate-200,
.bg-slate-300,
.bg-blue-50,
.bg-blue-100,
.bg-indigo-50,
.bg-indigo-100,
.bg-purple-50,
.bg-yellow-100 {
  background-color: var(--color-surface-soft);
}

.bg-blue-500,
.bg-blue-600,
.bg-indigo-600,
.bg-slate-700,
.bg-slate-800 {
  background-color: var(--color-accent);
}

.bg-yellow-400 {
  background-color: var(--color-accent-secondary);
}

.bg-red-50 {
  background-color: var(--color-error-soft);
}

.bg-red-500,
.bg-red-600 {
  background-color: var(--color-error);
}

.text-white {
  color: var(--color-on-accent);
}

.border-slate-50,
.border-slate-100,
.border-slate-200,
.border-slate-300,
.border-slate-400,
.border-blue-100,
.border-blue-200,
.border-indigo-50,
.border-indigo-100,
.border-indigo-200,
.border-purple-100,
.border-green-400 {
  border-color: var(--color-border);
}

.border-blue-500,
.border-indigo-500,
.border-indigo-600,
.border-slate-800 {
  border-color: var(--color-accent);
}

.border-red-100,
.border-red-200,
.border-red-300,
.border-red-400,
.border-red-500 {
  border-color: var(--color-error);
}

.glass-nav,
.glass-bottom {
  border-color: var(--color-border);
  background: var(--color-surface-glass);
}

.card-shadow,
.shadow-sm,
.shadow-md,
.shadow-lg,
.shadow-xl,
.shadow-2xl {
  --tw-shadow: var(--shadow-card);
  --tw-shadow-colored: var(--shadow-card);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:bg-blue-50:hover,
.hover\:bg-blue-100:hover,
.hover\:bg-indigo-50\/50:hover,
.hover\:bg-indigo-100:hover,
.hover\:bg-slate-50:hover,
.hover\:bg-slate-100:hover,
.hover\:bg-slate-300:hover {
  background-color: var(--color-surface-soft);
}

.hover\:bg-slate-700:hover,
.hover\:bg-slate-800:hover {
  background-color: var(--color-accent-strong);
}

.focus\:border-blue-500:focus,
.focus\:border-indigo-500:focus,
.focus-within\:border-blue-500:focus-within,
.focus-within\:border-indigo-500:focus-within {
  border-color: var(--color-accent);
}

.ring-blue-50,
.ring-blue-500,
.ring-indigo-50,
.ring-indigo-100,
.ring-indigo-200\/50,
.ring-indigo-600,
.focus\:ring-blue-50:focus,
.focus\:ring-indigo-50:focus,
.focus\:ring-indigo-100:focus,
.focus-within\:ring-blue-50:focus-within,
.focus-within\:ring-indigo-50:focus-within {
  --tw-ring-color: var(--color-focus-ring);
}

.choice-on,
.btn-selected,
.btn-type-selected,
.action-btn-on,
.tab-active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-surface);
  box-shadow: none;
}

.choice-off,
.btn-unselected,
.action-btn-off,
.tab-inactive {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  box-shadow: none;
}

.suggest-chip,
.chip-active,
.chip-inactive {
  border-color: var(--color-border);
  background: var(--color-surface-soft);
  color: var(--color-accent-strong);
  font-weight: var(--font-weight-semibold);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

/* Appearance is shared by the work pages; their layout stays in each page's CSS. */
:root {
  --portal-theme-page: #f8faff;
  --portal-theme-surface: #fff;
  --portal-theme-soft: var(--portal-season-soft, #eff6ff);
  --portal-theme-ink: #1e293b;
  --portal-theme-muted: #606979;
  --portal-theme-line: #e2e8f0;
  --portal-theme-strong: #bfc8df;
  --portal-theme-accent: var(--portal-season-accent, #2563eb);
  --portal-theme-on-accent: #fff;
}

:root[data-portal-palette="mono"] {
  --portal-theme-page: #f7f7f7;
  --portal-theme-soft: #ececec;
  --portal-theme-ink: #222;
  --portal-theme-muted: #636363;
  --portal-theme-line: #dedede;
  --portal-theme-strong: #aaa;
  --portal-theme-accent: #333;
  /* Filtering the root also removes color from logos, images and emoji. */
  filter: grayscale(1);
}
:root[data-portal-palette="mono"] :is(dialog, [popover]) { filter: grayscale(1); }

:root[data-portal-mode="dark"] {
  color-scheme: dark;
  --portal-theme-page: #14181f;
  --portal-theme-surface: #1d232d;
  --portal-theme-soft: var(--portal-season-soft, #29364b);
  --portal-theme-ink: #edf1f7;
  --portal-theme-muted: #b0bbcd;
  --portal-theme-line: #364150;
  --portal-theme-strong: #687a93;
  --portal-theme-accent: var(--portal-season-accent, #9bbdff);
  --portal-theme-on-accent: #14233e;
}

:root[data-portal-palette="mono"][data-portal-mode="dark"] {
  --portal-theme-page: #171717;
  --portal-theme-surface: #232323;
  --portal-theme-soft: #343434;
  --portal-theme-ink: #eee;
  --portal-theme-muted: #b8b8b8;
  --portal-theme-line: #414141;
  --portal-theme-strong: #777;
  --portal-theme-accent: #ddd;
  --portal-theme-on-accent: #222;
}

:root[data-portal-season="spring"] { --portal-season-tint: #3e876b; }
:root[data-portal-season="summer"] { --portal-season-tint: #3492ae; }
:root[data-portal-season="autumn"] { --portal-season-tint: #a76b47; }
:root[data-portal-season="winter"] { --portal-season-tint: #6d63b5; }
:root[data-portal-season="holiday"] { --portal-season-tint: #a3546e; }
:root[data-portal-palette="default"][data-portal-season] {
  --portal-season-accent: color-mix(in srgb, #2563eb 81%, var(--portal-season-tint));
  --portal-season-soft: color-mix(in srgb, #eff6ff 95%, var(--portal-season-tint));
}
:root[data-portal-palette="default"][data-portal-mode="dark"][data-portal-season] {
  --portal-season-accent: color-mix(in srgb, #9bbdff 81%, var(--portal-season-tint));
  --portal-season-soft: color-mix(in srgb, #29364b 92%, var(--portal-season-tint));
}

:root[data-portal-daypart="morning"] { --portal-daypart-tint: #e6bc83; }
:root[data-portal-daypart="day"] { --portal-daypart-tint: #9abcdc; }
:root[data-portal-daypart="evening"] { --portal-daypart-tint: #da9ca2; }
:root[data-portal-palette="default"]:is([data-portal-daypart="morning"], [data-portal-daypart="day"], [data-portal-daypart="evening"]) .site-header.portal-header {
  background: color-mix(in srgb, var(--portal-theme-surface) 96%, var(--portal-daypart-tint));
}

.site-header.portal-header .header-actions { display: flex; align-items: center; gap: 8px; }
/* Page-specific dark palettes must not recolor the shared header. */
:root[data-portal-mode="dark"]:not([data-portal-palette="mono"]) .site-header.portal-header {
  --portal-theme-surface: #1d232d;
  --portal-theme-soft: var(--portal-season-soft, #29364b);
  --portal-theme-ink: #edf1f7;
  --portal-theme-muted: #b0bbcd;
  --portal-theme-line: #364150;
  --portal-theme-strong: #687a93;
  --portal-theme-accent: var(--portal-season-accent, #9bbdff);
  --portal-theme-on-accent: #14233e;
}
.site-header.portal-header .account-button-mypage svg { display: none; width: 18px; height: 18px; }
.site-header.portal-header .portal-theme { position: relative; flex: 0 0 auto; color: var(--portal-theme-ink); font: 14px/1.5 system-ui, -apple-system, 'Malgun Gothic', sans-serif; }
.site-header.portal-header .portal-theme > summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--portal-theme-line); border-radius: 10px; background: var(--portal-theme-surface); color: inherit; font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; }
.site-header.portal-header .portal-theme > summary::-webkit-details-marker { display: none; }
.site-header.portal-header .portal-theme > summary:hover, .site-header.portal-header .portal-theme[open] > summary { background: var(--portal-theme-soft); }
.portal-theme summary svg { width: 18px; height: 18px; }
.site-header.portal-header .portal-theme-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 2; width: 232px; max-width: calc(100vw - 32px); padding: 18px; border: 1px solid var(--portal-theme-line); border-radius: 16px; background: var(--portal-theme-surface); color: var(--portal-theme-ink); box-shadow: 0 12px 36px rgb(0 0 0 / 18%); }
.portal-theme-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.portal-theme-panel legend { margin: 0 0 12px; padding: 0; font-size: 14px; font-weight: 600; }
.portal-theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.portal-theme-options label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px; border: 1px solid var(--portal-theme-line); border-radius: 10px; cursor: pointer; }
.portal-theme-options label:has(:checked) { border-color: var(--portal-theme-accent); background: var(--portal-theme-soft); }
.site-header.portal-header .portal-theme-panel input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--portal-theme-accent); cursor: pointer; }
.site-header.portal-header .portal-theme-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--portal-theme-line); font-size: 14px; cursor: pointer; }
.site-header.portal-header .portal-theme-switch + .portal-theme-switch { margin-top: 4px; padding-top: 6px; }
.site-header.portal-header .portal-theme-switch input { appearance: none; width: 36px; height: 22px; border: 1px solid var(--portal-theme-strong); border-radius: 999px; background: var(--portal-theme-line); }
.portal-theme-switch input::before { content: ''; display: block; width: 16px; height: 16px; margin: 2px; border-radius: 50%; background: var(--portal-theme-muted); }
.site-header.portal-header .portal-theme-switch input:checked { border-color: var(--portal-theme-accent); background: var(--portal-theme-accent); }
.portal-theme-switch input:checked::before { background: var(--portal-theme-on-accent); transform: translateX(12px); }
.portal-theme-switch input[name="portal-dark"] { position: relative; overflow: hidden; }
.portal-theme-switch input[name="portal-dark"]::before {
  width: 10px; height: 10px; margin: 5px; background: var(--portal-theme-muted);
  box-shadow: 0 -7px 0 -4px currentColor, 0 7px 0 -4px currentColor, 7px 0 0 -4px currentColor, -7px 0 0 -4px currentColor,
    5px 5px 0 -4px currentColor, -5px -5px 0 -4px currentColor, 5px -5px 0 -4px currentColor, -5px 5px 0 -4px currentColor;
}
.portal-theme-switch input[name="portal-dark"]:checked::before { transform: translateX(13px) scale(1.45); background: var(--portal-theme-on-accent); box-shadow: none; }
.portal-theme-switch input[name="portal-dark"]::after {
  content: ""; position: absolute; top: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--portal-theme-accent); transform: translate(12px,-9px);
}
.portal-theme-switch input[name="portal-dark"]:checked::after { transform: translate(-2px,0); }
@media (prefers-reduced-motion: no-preference) {
  .portal-theme-switch input[name="portal-dark"]::before, .portal-theme-switch input[name="portal-dark"]::after { transition: transform .22s ease-out, box-shadow .18s, background-color .18s; }
}
.site-header.portal-header .portal-theme :focus-visible { outline: 2px solid var(--portal-theme-accent); outline-offset: 3px; }

/* Override page-local tokens too, including the directory's body-level palette. */
:root:is([data-portal-palette="mono"], [data-portal-mode="dark"]) body.portal-shell {
  --page: var(--portal-theme-page);
  --surface: var(--portal-theme-surface);
  --surface-soft: var(--portal-theme-soft);
  --ink: var(--portal-theme-ink);
  --muted: var(--portal-theme-muted);
  --line: var(--portal-theme-line);
  --line-strong: var(--portal-theme-strong);
  --blue: var(--portal-theme-accent);
  --drop-line: var(--portal-theme-accent);
  --claim-page: var(--page);
  --claim-ink: var(--ink);
  --claim-muted: var(--muted);
  --claim-line: var(--line);
  --claim-blue: var(--blue);
  --claim-soft: var(--surface-soft);
  background-color: var(--page);
  color: var(--ink);
}

:root:is([data-portal-palette="mono"], [data-portal-mode="dark"]) .site-header.portal-header,
:root:is([data-portal-palette="mono"], [data-portal-mode="dark"]) .portal-sidebar,
:root:is([data-portal-palette="mono"], [data-portal-mode="dark"]) .portal-account-link {
  background: var(--portal-theme-surface);
  color: var(--portal-theme-ink);
  border-color: var(--portal-theme-line);
}
:root:is([data-portal-palette="mono"], [data-portal-mode="dark"]) .site-header.portal-header .brand { color: var(--portal-theme-ink); }
:root:is([data-portal-palette="mono"], [data-portal-mode="dark"]) .site-header.portal-header .brand-domain { color: var(--portal-theme-accent); }
:root:is([data-portal-palette="mono"], [data-portal-mode="dark"]) .site-header.portal-header .portal-nav a { color: var(--portal-theme-muted); }
:root:is([data-portal-palette="mono"], [data-portal-mode="dark"]) .site-header.portal-header .portal-nav a:is(:hover, [aria-current="page"]) { background: var(--portal-nav-fill, var(--portal-theme-soft)); color: var(--portal-theme-accent); }
:root:is([data-portal-palette="mono"], [data-portal-mode="dark"]) .site-header.portal-header .portal-nav a::after { background: var(--portal-theme-accent); }
:root:is([data-portal-palette="mono"], [data-portal-mode="dark"]) .site-header.portal-header [data-account-status] { background: var(--portal-theme-surface); border-color: var(--portal-theme-line); }

/* Hardcoded light surfaces and secondary text in existing work screens. */
:root[data-portal-mode="dark"] .portal-shell :is(.search-wrap, .credential-panel, .group-management-row, .claim-card, .insurer-search-wrap, .insurer-pill, .secondary-button, .recent-sidebar, .recent-load, .preview-panel, .spotlight-card, .load-error, [id="login"], [id="profile"]) { background: var(--surface); border-color: var(--line); color: var(--ink); }
:root[data-portal-mode="dark"] .portal-shell :is(input:not([type="checkbox"], [type="radio"], [type="range"]), textarea, select) { background-color: var(--surface); color: var(--ink); border-color: var(--line-strong); }
:root[data-portal-mode="dark"] .portal-shell :is(input, textarea)::placeholder { color: var(--muted); }
:root[data-portal-mode="dark"] .portal-shell :is(.search-wrap kbd, .group-count, .privacy-note, .beneficiary-note, .insurer-fax, .insurer-mark, .preview-fax, .consent-summary, .selected-insurers button, .recent-sidebar-fax, .pdf-pages, .new-material-badge, .favorite-material-badge, .step-mark, .step-state, .status-card[data-state="on"]) { background: var(--surface-soft); color: var(--ink); border-color: var(--line-strong); }
:root[data-portal-mode="dark"] .portal-shell :is(.account-button, .account-avatar, .insurer-group-nav button, .sidebar-group-count, .list-columns, .filters button, .filters button span, .group-count, .group-title, .detail-links a, .detail-row .unverified, .credential-safe-note, .credential-field-hint, .source-list, .source-list a, .source-list time, .portal-tags li, .insurer-fax strong, .insurer-fax-date, .claim-result-fax, .signature-help) { color: var(--muted); }
:root[data-portal-mode="dark"] .portal-shell :is(.insurer-group-nav button:hover, .portal-list .launcher-card:hover, .favorites-group .group-dropzone, .filters button:hover, .insurer-pill:hover, .account-button:hover, .detail-links a:hover) { background: var(--surface-soft); border-color: var(--line-strong); color: var(--ink); }
:root[data-portal-mode="dark"] .portal-shell :is(.filters button[aria-pressed="true"], .insurer-pill[aria-checked="true"], .search-submit, .search-submit:hover, .search-button, .select-option[aria-selected="true"], .detail-links a:first-child, .detail-links a:first-child:hover, .security-main .primary-button, .security-main .primary-button:hover) { background: var(--blue); border-color: var(--blue); color: var(--portal-theme-on-accent); }
:root[data-portal-mode="dark"] .portal-shell .filters button[aria-pressed="true"] span { color: inherit; }
:root[data-portal-mode="dark"] .portal-shell :is(.portal-list .launcher-card-actions a.primary, .portal-list .launcher-card-actions a.primary:hover, .detail-row dd > a, .account-button-mypage, .account-button-naver) { color: var(--blue); }
:root[data-portal-mode="dark"] .portal-shell .portal-list .launcher-card-actions a.primary:hover { background: var(--surface-soft); }
:root[data-portal-mode="dark"] .portal-shell :is(.favorite-button.is-active, .favorite-button.is-active:hover) { color: #f2c875; background: var(--surface-soft); border-color: var(--line-strong); }
:root[data-portal-mode="dark"] .portal-shell :is(.field-error, .claim-result-message, .claim-result-state[data-state="error"], b) { color: #ffaaaa; }
:root[data-portal-mode="dark"] .portal-shell :is(.claim-result-state[data-state="success"], .claim-result-state[data-state="generated"]) { color: #9bd8b5; }
:root[data-portal-mode="dark"] .portal-shell :is(button, a, input, textarea, select, summary):focus-visible { outline-color: var(--blue); }
:root[data-portal-mode="dark"] .portal-shell :is(.search-wrap, .insurer-search-wrap):focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px var(--surface-soft); }
:root[data-portal-mode="dark"] .claims-page .primary-button { background: var(--blue); color: var(--portal-theme-on-accent); }
:root[data-portal-mode="dark"] .portal-shell :is(.company-mark, .term-company img, .spotlight-company img, .summary-company img, .card-company img, .reader-header img) { padding: 0; border-color: transparent; background: transparent; }
:root[data-portal-mode="dark"] .portal-shell :is(.view-buttons, .quick-topics button, .card-topics span, .update-status, .saved-note, .document-summary, .ocr-note, .reader-source-note, .image-tools, .image-frame) { background: var(--surface-soft); color: var(--ink); border-color: var(--line); }
:root[data-portal-mode="dark"] .portal-shell :is(.reader-toc, .reader-footer, .reader-action, .reader-close, .text-size button, .summary-jumps button, .image-tools button) { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-portal-mode="dark"] .portal-shell :is(.category-filters button[aria-pressed="true"], .quick-topics button[aria-pressed="true"], .term-actions .primary-button:hover) { background: var(--blue); color: var(--portal-theme-on-accent); border-color: var(--blue); }
:root[data-portal-mode="dark"] .portal-shell :is(.summary-points a:hover, .toc-button:hover, .toc-button[aria-current="page"]) { background: var(--surface-soft); color: var(--blue); }
:root[data-portal-mode="dark"] .portal-shell :is(.card-footer, .summary-points li, .summary-documents) { border-color: var(--line); }
:root[data-portal-mode="dark"] .portal-shell .document-summary p { color: var(--muted); }
:root[data-portal-mode="dark"] .portal-shell mark { background: #655a26; color: var(--ink); }
:root[data-portal-mode="dark"] .guide-page .segment[aria-pressed="true"] { color: var(--portal-theme-on-accent); }
:root[data-portal-mode="dark"] .guide-page:not(.guide-contacts) .copy-btn { color: var(--portal-theme-on-accent); }
:root[data-portal-mode="dark"] .guide-page:not(.guide-contacts) .copy-btn:hover { background: var(--blue); }
:root[data-portal-mode="dark"] .guide-page #resultCount { color: var(--blue); }
/* Keep signatures and original document previews on white paper. */
:root[data-portal-mode="dark"] .portal-shell :is(.signature-canvas, #signatureCanvas) { background: #fff; color-scheme: light; }

@media (forced-colors: none) {
  :root:is([data-portal-palette="mono"], [data-portal-mode="dark"]):has(body.portal-shell) {
    --portal-scrollbar-track: var(--portal-theme-page);
    --portal-scrollbar-thumb: var(--portal-theme-strong);
    --portal-scrollbar-hover: var(--portal-theme-muted);
  }
}

@media (max-width: 680px) {
  .site-header.portal-header .portal-theme > summary { padding-inline: 10px; }
  .portal-theme summary > span { display: none; }
  .site-header.portal-header .portal-theme-panel { position: fixed; top: calc(var(--portal-brand-row) + env(safe-area-inset-top, 0px)); right: 16px; }
}
@media (max-width: 480px) {
  .portal-shell .site-header.portal-header .header-inner { column-gap: 8px; }
  .site-header.portal-header .header-actions { gap: 2px; }
  .site-header.portal-header .portal-theme > summary { min-width: 36px; padding-inline: 8px; }
  .site-header.portal-header .account-button-mypage { width: 36px; padding-inline: 8px; }
  .site-header.portal-header .account-button-mypage svg { display: block; }
  .site-header.portal-header .account-button-mypage span { display: none; }
}
@media (max-width: 360px) {
  .portal-shell .site-header.portal-header .brand { gap: 8px; }
  .portal-shell .site-header.portal-header .brand img { width: 52px; height: 52px; }
  .portal-shell .site-header.portal-header .brand strong { font-size: 22px; }
}
@media print {
  :root[data-portal-palette="mono"], :root[data-portal-palette="mono"] :is(dialog, [popover]) { filter: none; }
  :root[data-portal-mode="dark"], :root[data-portal-palette="mono"][data-portal-mode="dark"] {
    color-scheme: light;
    --portal-theme-page: #fff;
    --portal-theme-surface: #fff;
    --portal-theme-soft: #eff6ff;
    --portal-theme-ink: #1e293b;
    --portal-theme-muted: #606979;
    --portal-theme-line: #e2e8f0;
    --portal-theme-strong: #bfc8df;
    --portal-theme-accent: #2563eb;
    --portal-theme-on-accent: #fff;
  }
}


/* Controls share full capsule corners, including page-local and dynamic controls.
   Radius alone takes precedence because pages load their own styles after this file. */
body.portal-shell { --portal-control-radius: 9999px; }
body.portal-shell :is(
  button, [role="button"], summary,
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="hidden"]),
  select:not([multiple], [size]:not([size="1"])),
  nav a, a[class*="button"], a[class*="btn"],
  .card-actions a, .launcher-card-actions a, .detail-links a, .login-links a, .summary-points a,
  .credential-login-link, .resource-link, .open-chat, .text-action,
  .portal-theme-options label, .profile-option, .security-main .switch,
  .search-wrap, .insurer-search-wrap, .query-wrap, .view-buttons, .quick-nav,
  .portal-tags li, .card-topics span, .term-badge, .chip,
  .new-material-badge, .favorite-material-badge, .update-status,
  .ready-badge, .auto-badge, .vendor-badge, .step-state,
  .group-count, .sidebar-group-count, .insurer-mark, .insurer-fax, .preview-fax,
  kbd
) { border-radius: var(--portal-control-radius) !important; }
body.portal-shell input::file-selector-button { border-radius: var(--portal-control-radius) !important; }
body.portal-shell input[type="color"]::-webkit-color-swatch { border-radius: var(--portal-control-radius) !important; }
body.portal-shell input[type="color"]::-moz-color-swatch { border-radius: var(--portal-control-radius) !important; }

/* Shared Nangman identity and work menu across the portal and its tools. */
:root { --portal-brand-row: 100px; --portal-menu-row: 0px; --portal-header-height: calc(var(--portal-brand-row) + var(--portal-menu-row) + 1px + env(safe-area-inset-top, 0px)); scrollbar-gutter: stable; scroll-padding-top: calc(var(--portal-header-height) + 16px); }
.site-header.portal-header { position: sticky; top: 0; z-index: 20; box-sizing: border-box; margin: 0; padding: env(safe-area-inset-top, 0px) 0 0; background: #fff; color: #1e293b; border: 0; border-bottom: 1px solid #dce7f5; box-shadow: 0 3px 12px rgb(35 49 89 / 3%); font: 14px/1.5 system-ui, -apple-system, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; -webkit-font-smoothing: antialiased; }
.site-header.portal-header * { box-sizing: border-box; }
.site-header.portal-header .header-inner { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; grid-template-rows: var(--portal-brand-row); align-items: center; gap: 0 28px; max-width: 1200px; min-height: var(--portal-brand-row); margin: auto; padding: 0 32px; }
.site-header.portal-header .brand { grid-area: 1 / 1; justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-width: 0; min-height: 72px; color: #1e293b; text-decoration: none; white-space: nowrap; }
.site-header.portal-header .brand img { display: block; flex: 0 0 auto; width: 72px; height: 72px; object-fit: contain; border-radius: 0; }
.site-header.portal-header .brand strong { display: inline-flex; align-items: baseline; font-size: 26px; font-weight: 750; line-height: 1.2; letter-spacing: -.8px; }
.site-header.portal-header .brand-domain { color: #2563eb; font-size: .76em; font-weight: 650; letter-spacing: -.4px; }
@media (prefers-reduced-motion: no-preference) {
  .site-header.portal-header .brand img {
    transform-origin: 50% 85%;
    animation: var(--mascot-nod, none), var(--mascot-wiggle, none);
  }
  .site-header.portal-header .brand:is(:hover, :focus-visible, :active) img { --mascot-nod: portal-mascot-nod .38s ease-out; }
  .site-header.portal-header .brand img.is-wiggling { --mascot-wiggle: portal-mascot-wiggle .55s ease-out; }
}
@keyframes portal-mascot-nod {
  38% { transform: translateY(2px) rotate(9deg); }
  72% { transform: rotate(-3deg); }
}
@keyframes portal-mascot-wiggle {
  18% { transform: translate(-3px, -2px) rotate(-8deg); }
  38% { transform: translate(3px, -5px) rotate(8deg); }
  60% { transform: translate(-2px, -2px) rotate(-5deg); }
  82% { transform: translateX(1px) rotate(3deg); }
}
.portal-touch-ripple { position: fixed; overflow: hidden; pointer-events: none; z-index: 10000; }
.portal-touch-ripple > span { position: absolute; width: 42px; height: 42px; margin: -21px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; }
.site-header.portal-header .portal-nav { grid-area: 1 / 2; justify-self: start; display: grid; grid-auto-flow: column; grid-auto-columns: max-content; align-items: center; align-content: center; gap: 4px; min-width: 0; max-width: 100%; height: 64px; margin: 0; padding: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 14px; color: #606979; }
.site-header.portal-header .portal-nav::before { content: none; }
.site-header.portal-header .portal-nav.has-moving-shade { isolation: isolate; --portal-nav-fill: transparent; }
.site-header.portal-header .portal-nav-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: 9999px; background: var(--portal-theme-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--portal-theme-accent) 9%, transparent), 0 2px 5px color-mix(in srgb, var(--portal-theme-accent) 8%, transparent); }
.site-header.portal-header .portal-nav a { position: relative; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; color: #606979; text-decoration: none; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: -.2px; white-space: nowrap; box-shadow: none; transition: color .16s, background-color .16s; }
.site-header.portal-header .portal-nav a::before { content: none; }
.site-header.portal-header .portal-nav a::after { content: ''; position: absolute; inset: auto 14px 0; height: 3px; border-radius: 3px; background: #2563eb; opacity: 0; transform: scaleX(.5); transition: opacity .16s, transform .16s; }
.site-header.portal-header .portal-nav a:hover { background: var(--portal-nav-fill, #f8faff); color: #1e293b; }
.site-header.portal-header .portal-nav a[aria-current="page"] { background: var(--portal-nav-fill, #eff6ff); color: #2563eb; }
.site-header.portal-header .portal-nav a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.site-header.portal-header a:focus-visible, .site-header.portal-header button:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.site-header.portal-header .portal-nav a:focus-visible { outline: 2px solid #2563eb; outline-offset: -3px; border-radius: 12px; }
.site-header.portal-header .header-actions { grid-area: 1 / 3; justify-self: end; min-width: 0; margin: 0; padding: 0; }
.site-header.portal-header [hidden] { display: none !important; }
.site-header.portal-header .account-area { display: flex; align-items: center; min-height: 44px; min-width: 0; }
.site-header.portal-header .account-login-buttons, .site-header.portal-header .account-user { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; flex-wrap: nowrap; }
.site-header.portal-header .account-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 11px; border: 1px solid transparent; border-radius: 9999px; background: transparent; color: var(--portal-theme-ink); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer; }
.site-header.portal-header .account-button:hover { border-color: var(--portal-theme-strong); background: var(--portal-theme-soft); }
.site-header.portal-header .account-button:disabled { cursor: wait; opacity: .6; }
.site-header.portal-header .account-button-naver { color: #278354; }
.site-header.portal-header .account-button-google { border-color: var(--portal-theme-line); background: var(--portal-theme-surface); }
.site-header.portal-header .account-button-mypage { color: var(--portal-theme-accent); }
.site-header.portal-header .account-button-logout { color: var(--portal-theme-muted); font-weight: 550; }
.site-header.portal-header .account-profile { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 280px; color: var(--portal-theme-ink); font-size: 12px; font-weight: 650; }
.site-header.portal-header .account-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border: 0; border-radius: 50%; background: var(--portal-theme-soft); color: var(--portal-theme-muted); font-size: 10px; font-weight: 750; }
.site-header.portal-header .account-avatar img { display: none; width: 100%; height: 100%; object-fit: cover; }
.site-header.portal-header .account-avatar.has-image .account-avatar-fallback { display: none; }
.site-header.portal-header .account-avatar.has-image img { display: block; }
.site-header.portal-header .account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-header.portal-header .account-email-consent { display: inline-flex; align-items: center; min-height: 44px; color: var(--portal-theme-accent); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.site-header.portal-header .account-loading { color: var(--portal-theme-muted); font-size: 12px; }
.site-header.portal-header [data-account-status] { position: fixed; top: calc(var(--portal-header-height) + 8px); right: max(16px, calc((100vw - 1136px) / 2)); display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 8px 12px; border: 1px solid #dce7f5; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgb(35 49 89 / 8%); }
.skip-link:focus { z-index: 30; }

@media (max-width: 1100px) {
  :root { --portal-brand-row: 84px; --portal-menu-row: 64px; }
  .site-header.portal-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: var(--portal-brand-row) var(--portal-menu-row); gap: 0 24px; padding-inline: 32px; }
  .site-header.portal-header .portal-nav { grid-area: 2 / 1 / auto / -1; justify-self: stretch; grid-auto-columns: minmax(max-content, 1fr); }
  .site-header.portal-header .header-actions { grid-area: 1 / 2; }
  .site-header.portal-header .account-profile { max-width: clamp(100px, calc(100vw - 540px), 280px); }
}
@media (max-width: 820px) {
  .site-header.portal-header .header-inner { padding-inline: 24px; }
}
@media (max-width: 680px) {
  :root { --portal-brand-row: 76px; }
  .site-header.portal-header .header-inner { padding-inline: 16px; }
  .site-header.portal-header .brand { gap: 10px; min-height: 68px; }
  .site-header.portal-header .brand img { width: 60px; height: 60px; }
  .site-header.portal-header .brand strong { font-size: 24px; }
  .site-header.portal-header .portal-nav { gap: 2px; }
  .site-header.portal-header .portal-nav a { padding-inline: 4px; }
  .site-header.portal-header .portal-nav a::after { inset: auto 10px 0; }
  .site-header.portal-header .account-profile { max-width: min(200px, calc(100vw - 420px)); gap: 5px; font-size: 11px; }
  .site-header.portal-header .account-avatar { width: 28px; height: 28px; flex-basis: 28px; }
}
@media (max-width: 600px) {
  .site-header.portal-header .header-inner { column-gap: 12px; }
  .site-header.portal-header .account-login-buttons, .site-header.portal-header .account-user { gap: 4px; }
  .site-header.portal-header .account-button { padding-inline: 6px; font-size: 11px; }
  .site-header.portal-header .account-login-label { display: none; }
  .site-header.portal-header .account-user { display: grid; grid-template-columns: auto auto auto; justify-content: end; max-width: min(44vw, 220px); row-gap: 0; }
  .site-header.portal-header .account-profile { grid-column: 1 / -1; justify-self: end; max-width: 100%; line-height: 1.5; }
  .site-header.portal-header .account-email-consent { min-height: 28px; }
  .site-header.portal-header .account-avatar { display: none; }
}
@media (max-width: 360px) {
  .site-header.portal-header .portal-nav { grid-auto-columns: minmax(max-content, 1fr); }
  .site-header.portal-header .portal-nav a { padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header.portal-header .portal-nav a, .site-header.portal-header .portal-nav a::after { transition: none; }
}

/* Keep page and nested scrollbars in the shared shell palette. */
@media (forced-colors: none) {
  :root:has(body.portal-shell) { --portal-scrollbar-track: #f2f5fa; --portal-scrollbar-thumb: #7c8faa; --portal-scrollbar-hover: #587db0; }
  :root:has(body.portal-shell), :root:has(body.portal-shell) * { scrollbar-color: var(--portal-scrollbar-thumb) var(--portal-scrollbar-track); }
  :where(:root:has(body.portal-shell), body.portal-shell *) { scrollbar-width: thin; }

  @supports not (scrollbar-color: auto) {
    :root:has(body.portal-shell)::-webkit-scrollbar, :root:has(body.portal-shell) *::-webkit-scrollbar { width: 10px; height: 10px; }
    :root:has(body.portal-shell)::-webkit-scrollbar-track, :root:has(body.portal-shell) *::-webkit-scrollbar-track { border-radius: 999px; background: var(--portal-scrollbar-track); }
    :root:has(body.portal-shell)::-webkit-scrollbar-thumb, :root:has(body.portal-shell) *::-webkit-scrollbar-thumb { min-width: 32px; min-height: 32px; border: 2px solid var(--portal-scrollbar-track); border-radius: 999px; background: var(--portal-scrollbar-thumb); }
    :root:has(body.portal-shell)::-webkit-scrollbar-thumb:hover, :root:has(body.portal-shell) *::-webkit-scrollbar-thumb:hover { background: var(--portal-scrollbar-hover); }
    :root:has(body.portal-shell)::-webkit-scrollbar-corner, :root:has(body.portal-shell) *::-webkit-scrollbar-corner { background: var(--portal-scrollbar-track); }
  }
}

/* The shared shell reserves no space for the unused sidebar. */
:root:has(body.portal-shell) { --portal-sidebar-width: 0px; }
body.portal-shell { box-sizing: border-box; min-width: 0; margin: 0; padding: var(--portal-header-height) 0 0 var(--portal-sidebar-width); }
.portal-shell .site-header.portal-header { position: fixed; inset: 0 0 auto; z-index: 100; }
.portal-shell .skip-link:focus { z-index: 110; }
.portal-sidebar { display: none; }
.portal-account-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #526079; font: 600 13px/1.5 system-ui, -apple-system, 'Malgun Gothic', sans-serif; text-decoration: none; }
.portal-account-link svg { display: block; width: 20px; height: 20px; }
.portal-account-link:hover { background: #eff6ff; color: #2563eb; }
.portal-account-link:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.portal-shell[data-portal-tool] .glass-nav, .portal-shell[data-portal-tool] .sticky.top-0 { top: var(--portal-header-height); }
.portal-shell[data-portal-tool] #action-btn-container, .portal-shell[data-portal-tool] #toast { left: calc(50% + var(--portal-sidebar-width) / 2); }
.portal-shell[data-portal-tool] #toast { top: calc(var(--portal-header-height) + 12px); }

/* Customer questionnaires show only their own steps and submission controls. */
:root:has(body[data-portal-service="guide"][data-portal-tool]) { --portal-header-height: 0px; }
.portal-shell[data-portal-service="guide"][data-portal-tool] > .site-header.portal-header { display: none; }

@media (min-width: 1100px) {
  .site-header.portal-header .header-inner { max-width: none; }
  .site-header.portal-header [data-account-status] { right: 32px; }
  body.portal-shell > main,
  body.portal-shell > .app > main,
  body.portal-shell > .claims-layout { box-sizing: border-box; width: 100%; max-width: none; padding-inline: 32px; }
  body.portal-shell > .claims-layout .claims-main { max-width: none; }
}

@media (max-width: 1099px) {
  body.portal-shell { padding-left: 0; }
  .portal-sidebar { display: none; }
  .portal-shell[data-portal-tool] #action-btn-container, .portal-shell[data-portal-tool] #toast { left: 50%; }
}
@media (max-width: 680px) {
  .portal-account-link span { display: none; }
}
@media print {
  body.portal-shell { padding: 0 !important; }
  .portal-shell .site-header.portal-header, .portal-sidebar { display: none !important; }
}


:root {
  color-scheme: light;
  --ink: #1e293b;
  --muted: #606979;
  --line: #e2e8f0;
  --line-strong: #bfc8df;
  --blue: #2563eb;
  --page: #f8faff;
  --surface: #ffffff;
  --surface-soft: #eff6ff;
  --pill: 9999px;
  --card-radius: 16px;
  --icon-mark: 40px;
  --icon-card-mark: 48px;
  --icon-detail-mark: 64px;
  --icon-action: 16px;
  --drop-line: #6d88e5;
  --text-title: clamp(27px, 3vw, 32px);
  --text-body: 15px;
  --text-card: 16px;
  --text-meta: 12px;
  --font: var(--font-family-sans, system-ui, -apple-system, 'Malgun Gothic', sans-serif);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: var(--text-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; min-height: 36px; border-radius: var(--pill); }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px 16px; border-radius: var(--pill); background: var(--surface); box-shadow: 0 8px 24px rgb(31 61 45 / 12%); }
.site-header { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-inner { max-width: 1200px; min-height: 72px; margin: auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand strong { font-size: 22px; letter-spacing: -.8px; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.account-area { display: flex; align-items: center; min-height: 44px; min-width: 0; }
.account-login-buttons, .account-user { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.account-login-benefit { max-width: 360px; margin: 0; color: #7b8580; font-size: 12px; line-height: 1.5; text-align: right; }
.account-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 11px; border: 1px solid transparent; border-radius: var(--pill); background: transparent; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: color .16s, background-color .16s, border-color .16s; }
.account-button:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.account-button-naver { background: var(--surface-soft); color: #28664a; }
.account-button-naver:hover { border-color: #c7dacb; background: #e4f0e5; color: #245c43; }
.account-button-google { border-color: var(--line); background: var(--surface); }
.account-profile { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 140px; color: var(--ink); font-size: 12px; font-weight: 650; }
.account-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border: 0; border-radius: 50%; background: var(--surface-soft); color: #58715e; font-size: 10px; font-weight: 750; }
.account-avatar img { display: none; width: 100%; height: 100%; object-fit: cover; }
.account-avatar.has-image .account-avatar-fallback { display: none; }
.account-avatar.has-image img { display: block; }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button-mypage { color: #2563eb; }
.account-button-logout { color: #69717b; font-weight: 550; }
main { max-width: 1200px; margin: auto; padding: 40px 32px 72px; }
.feature-grid { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 5px; padding: 10px; border: 0; border-radius: 22px; background: var(--surface-soft); }
.feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 11px 9px; min-height: 72px; border-radius: var(--pill); }
.feature strong { align-self: end; font-size: 13px; font-weight: 500; white-space: nowrap; }
.feature-icon { grid-row: 1 / 3; display: flex; align-items: center; }
.feature-icon img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.feature.ready { color: var(--blue); background: var(--surface); box-shadow: 0 4px 12px rgb(35 49 89 / 5%); }
.feature.ready strong { grid-row: 1 / 3; font-weight: 650; align-self: center; }
.feature.ready .feature-icon { color: var(--blue); }
.feature.planned { color: #6a7b70; }
.feature small { grid-column: 2; font-size: 10px; color: #7d8a7b; line-height: 1.3; margin-top: 0; align-self: start; }
.directory { min-width: 0; }
.section-heading { margin: 0 0 24px; }
.search-row { position: sticky; z-index: 10; top: calc(var(--portal-header-height) + 8px); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 12px; margin: 0 -8px; padding: 8px; border-radius: 20px; background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(12px); }

h1 { margin: 0; font-size: var(--text-title); line-height: 1.25; font-weight: 700; letter-spacing: -.9px; }
.mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.mode-tabs button { position: relative; min-height: 34px; padding: 4px 12px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; transition: color .16s, background-color .16s; }
.mode-tabs button[aria-selected=true] { color: var(--ink); font-weight: 700; }
.mode-tabs button:hover { color: var(--blue); background: var(--surface-soft); }
.mode-tabs button[aria-selected=true]::after { content: ''; position: absolute; right: 16px; bottom: -5px; left: 16px; height: 2px; border-radius: var(--pill); background: var(--blue); }
.search-wrap { display: flex; align-items: center; height: 52px; padding: 0 18px; gap: 12px; background: var(--surface); border: 1px solid transparent; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 3px 8px rgb(35 49 89 / 2%); transition: box-shadow .16s, background-color .16s; }
.search-wrap:focus-within { background: var(--surface); box-shadow: 0 0 0 2px #b4c3f3, 0 7px 20px rgb(35 49 89 / 7%); }
.search-wrap > svg { width: 20px; height: 20px; flex-shrink: 0; stroke: #737d91; stroke-width: 1.7; }
.search-wrap input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: var(--text-body); outline: none; }
.search-wrap input:focus-visible { outline: 0; }
.search-wrap input:focus { box-shadow: none; }
.search-wrap input::placeholder { color: #777e8c; }
.search-wrap input::-webkit-search-cancel-button { display: none; }
.clear-search { width: 36px; height: 36px; min-height: 36px; border: 0; border-radius: var(--pill); background: transparent; font-size: 22px; color: var(--muted); flex-shrink: 0; transition: color .16s, background-color .16s; }
.search-wrap kbd { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 8px; background: var(--page); color: #7c8981; font-size: 12px; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 12px; margin: 18px 0 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { position: relative; border: 1px solid transparent; border-radius: var(--pill); min-height: 34px; padding: 4px 14px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; line-height: 1.2; white-space: nowrap; transition: color .16s, background-color .16s, border-color .16s, box-shadow .16s; }
.filters button span { margin-left: 5px; color: #697080; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.filters button[aria-pressed=true] { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 1px 2px rgb(35 49 89 / 5%); }
.filters button[aria-pressed=true] span { color: #e1e8ff; }
.filters button:hover { border-color: #cbd3e9; color: var(--blue); background: #eff6ff; }
.filters button[aria-pressed=true]:hover { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }
#result-count { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.group-toolbar { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.group-toolbar > span { font-weight: 650; }
.filter-row .group-toolbar { margin: 0; padding-left: 14px; border-left: 1px solid var(--line); }
.group-toolbar-actions { display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
.secondary-button { min-height: 36px; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--pill); background: transparent; color: var(--muted); font-size: 11px; transition: color .16s, background-color .16s, border-color .16s; }
.secondary-button:hover { border-color: var(--line-strong); background: var(--surface-soft); color: var(--blue); }
.edit-mode-toggle[aria-pressed=true] { border-color: #b4c3f3; background: var(--surface-soft); color: var(--blue); font-weight: 650; }
.list-columns, .insurer-card { display: grid; grid-template-columns: minmax(178px, 1fr) 132px 218px; align-items: center; gap: 20px; }
.list-columns { height: 46px; color: #71816f; font-size: 11px; border-bottom: 1px solid var(--line); }
.list-columns > :first-child { padding-left: 4px; }
.list-columns > :last-child { padding-left: 12px; }
.insurer-grid, .insurer-grid.portal-list, .insurer-grid.homepage-list { display: flex; flex-direction: column; gap: 24px; }
.insurer-group { min-width: 0; }
.group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 8px; }
.group-collapse { display: inline-flex; align-items: center; min-width: 0; min-height: 36px; gap: 8px; padding: 4px 7px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); text-align: left; }
.group-collapse:hover { background: var(--surface-soft); }
.group-collapse svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--muted); transition: transform .16s ease; }
.group-collapse[aria-expanded=false] svg { transform: rotate(-90deg); }
.group-title { min-width: 0; margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.35px; overflow-wrap: anywhere; }
.group-count { padding: 2px 8px; border-radius: var(--pill); background: #edf2f7; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.group-heading-controls { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.group-drag-handle, .group-settings { display: grid; place-items: center; width: 38px; height: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #8991a1; }
.group-drag-handle { cursor: grab; touch-action: none; transition: color .16s, background-color .16s, box-shadow .16s; }
.group-drag-handle:hover, .group-settings:hover { background: var(--surface-soft); color: var(--blue); }
.group-drag-handle:active { cursor: grabbing; }
.group-drag-handle:focus-visible { background: var(--surface-soft); color: var(--blue); }
.group-drag-icon { width: 16px; height: 16px; }
.group-settings { font-size: 22px; line-height: 1; letter-spacing: 2px; }
.group-dropzone { position: relative; min-height: 0; }
.portal-list .group-dropzone { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.homepage-list .group-dropzone { display: grid; gap: 12px; }
.group-dropzone.is-collapsed { display: none; }
.group-dropzone.is-empty-drop { min-height: 72px; border: 1px dashed var(--line-strong); border-radius: 16px; background: rgb(255 255 255 / 40%); }
.group-dropzone.is-drop-append { outline: 2px dashed var(--drop-line); outline-offset: 5px; }
.group-drop-end { position: absolute; z-index: 2; top: calc(100% + 6px); left: 0; width: 100%; height: 0; overflow: hidden; border: 1px dashed transparent; border-radius: 16px; opacity: 0; pointer-events: none; transition: height .16s ease, border-color .16s ease, background-color .16s ease, opacity .16s ease; }
.group-drop-end.is-active { height: 52px; border-color: rgb(121 168 135 / 62%); background: rgb(121 168 135 / 10%); opacity: 1; }
.group-drop-end.is-active::before { content: ''; position: absolute; top: 50%; right: 18px; left: 18px; height: 3px; border-radius: var(--pill); background: var(--drop-line); box-shadow: 0 3px 10px rgb(88 137 99 / 18%); transform: translateY(-50%); }
.group-drop-end.is-active::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 18px 50%, var(--drop-line) 0 4px, transparent 4.5px), radial-gradient(circle at calc(100% - 18px) 50%, var(--drop-line) 0 4px, transparent 4.5px); }
.empty-group { grid-column: 1 / -1; margin: 0; padding: 19px 16px; border: 1px dashed var(--line); border-radius: 16px; color: #8b978f; font-size: 12px; text-align: center; }
.favorites-group .group-heading { margin-bottom: 10px; }
.favorites-group .group-title { color: #946b2d; }
.favorites-group .group-dropzone { padding: 12px; border: 1px solid #f0dfbb; border-radius: 18px; background: #fffaf0; }
.group-add-row { display: flex; justify-content: center; margin: 22px 0 0; }
.add-group-button { min-height: 32px; padding: 4px 12px; border: 1px dashed var(--line-strong); border-radius: var(--pill); background: transparent; color: var(--muted); font-size: 12px; transition: color .16s, background-color .16s, border-color .16s; }
.add-group-button:hover { border-color: #9abda1; background: var(--surface-soft); color: var(--blue); }
.insurer-card { min-height: 91px; padding: 14px 0; border: 0; transition: background-color .16s, box-shadow .16s, translate .16s ease; }
.insurer-card:hover { background: transparent; }
.portal-list .insurer-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); box-shadow: 0 2px 3px rgb(35 49 89 / 2%); gap: 0; overflow: hidden; transition: background-color .16s, box-shadow .16s, border-color .16s, translate .16s ease; }
.portal-list .insurer-card:hover { background: var(--surface); border-color: var(--line-strong); box-shadow: 0 6px 16px rgb(35 49 89 / 7%); }
.homepage-list .insurer-card { position: relative; min-height: 82px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); box-shadow: 0 3px 12px rgb(35 49 89 / 3.5%); }
.homepage-list .insurer-card:hover { background: var(--surface); border-color: var(--line-strong); box-shadow: 0 6px 16px rgb(35 49 89 / 7%); }
.company-heading { display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 4px; }
.favorite-button { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid transparent; border-radius: var(--pill); background: transparent; color: #8991a1; line-height: 1; box-shadow: none; transition: color .16s, background-color .16s, border-color .16s, box-shadow .16s, transform .16s; }
.favorite-button:hover { border-color: #cbd3e9; background: var(--surface-soft); color: #2563eb; box-shadow: 0 3px 8px rgb(35 49 89 / 6%); transform: translateY(-1px) rotate(-4deg); }
.favorite-button:focus-visible { outline: 2px solid #b4c3f3; outline-offset: 2px; }
.favorite-button:active { transform: scale(.92) rotate(-2deg); }
.favorite-button.is-active { border-color: #f0d8a9; background: #fff5df; color: #bd8738; }
.favorite-button.is-active:hover { border-color: #e9c885; background: #ffefcc; color: #a97225; }
.favorite-icon { width: 21px; height: 21px; overflow: visible; transition: transform .16s ease; }
.favorite-button:hover .favorite-icon { transform: scale(1.06); }
.favorite-button.is-active .favorite-icon { transform: scale(1.04); }
.homepage-list .company-heading { padding-right: 38px; }
.company-mark { display: grid; place-items: center; width: var(--icon-mark); height: var(--icon-mark); flex-shrink: 0; overflow: hidden; border: 0; border-radius: 0; background: transparent; color: #58715e; font-size: 11px; font-weight: 650; letter-spacing: -.5px; }
.company-mark img { display: block; width: 100%; height: 100%; padding: 0; border-radius: 0; object-fit: contain; }
.company-mark-fallback { display: none; }
.company-mark-fallback.is-visible { display: inline; }
.company-mark.is-broken img { display: none; }
.company-mark.is-broken .company-mark-fallback { display: inline; }
.portal-list .company-heading { padding-left: 0; gap: 12px; }
.portal-list .company-mark { width: var(--icon-mark); height: var(--icon-mark); border-radius: 0; background: transparent; }
.company-title { min-width: 0; }
.company-title h2 { margin: 0; font-size: var(--text-card); font-weight: 650; line-height: 1.35; letter-spacing: -.25px; }
.company-title small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--text-meta); }
.details-button { display: inline-flex; align-items: center; padding: 4px 8px; min-height: 36px; margin: -4px -8px; border: 0; border-radius: var(--pill); background: transparent; font: inherit; color: inherit; text-align: left; overflow-wrap: anywhere; transition: color .16s, background-color .16s; }
.details-button:hover { color: var(--blue); background: transparent; }
.portal-system { display: flex; flex-direction: column; gap: 4px; margin: 18px 0 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.portal-system strong { color: var(--ink); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.portal-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.portal-tags li { padding: 4px 8px; border-radius: var(--pill); background: var(--surface-soft); color: #617459; font-size: 10px; }
.portal-list .card-actions { margin-top: auto; justify-content: stretch; }
.portal-list .card-actions a.primary { justify-content: center; background: var(--surface-soft); color: var(--blue); font-weight: 650; }
.portal-list .card-actions a.primary:hover { background: var(--blue); color: #fff; }
.portal-list .card-actions button { flex-shrink: 0; }
.card-phone { display: flex; align-items: center; }
.card-phone > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.card-phone a { display: flex; align-items: center; min-height: 40px; font-size: var(--text-meta); font-weight: 550; letter-spacing: .1px; font-variant-numeric: tabular-nums; color: #59647d; }
.card-phone a:hover { color: var(--blue); }
.portal-list .launcher-card { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 0; }
.launcher-card-content { display: flex; flex: 1; flex-direction: row; align-items: center; justify-content: flex-start; width: 100%; min-height: 74px; gap: 12px; padding: 12px 48px 12px 18px; color: var(--ink); text-align: left; }
.launcher-card:has(.drag-handle:not([hidden])) .launcher-card-content { padding-left: 50px; }
.clear-search:hover { background: var(--surface-soft); color: var(--blue); }
.portal-list .launcher-card .company-mark { width: var(--icon-card-mark); height: var(--icon-card-mark); border-radius: 0; background: transparent; }
.launcher-card-name { max-width: 100%; font-size: var(--text-card); font-weight: 650; line-height: 1.35; letter-spacing: -.25px; overflow-wrap: anywhere; }
.launcher-card-actions { width: 100%; padding: 0 16px 16px; }
.launcher-card-actions a, .launcher-card-actions button { justify-content: center; }
.drag-handle { position: absolute; top: 10px; left: 10px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #9aa79e; cursor: grab; touch-action: none; transition: color .16s, background-color .16s, box-shadow .16s; }
.drag-handle:hover { background: var(--surface-soft); color: var(--blue); box-shadow: 0 3px 10px rgb(35 49 89 / 6%); }
.drag-handle:focus-visible { background: var(--surface-soft); color: var(--blue); }
.drag-handle:active { cursor: grabbing; }
.drag-icon { width: 16px; height: 16px; }
.homepage-list .drag-handle { top: 10px; left: 10px; }
.homepage-list .company-heading { padding-left: 38px; }
.insurer-card.is-dragging { opacity: .3; box-shadow: 0 0 0 2px rgb(121 168 135 / 44%), 0 8px 24px rgb(35 49 89 / 10%); }
.insurer-group.is-dragging { opacity: .38; }
.insurer-card.is-drop-before, .insurer-card.is-drop-after { position: relative; z-index: 1; background: rgb(121 168 135 / 6%); box-shadow: 0 0 0 3px rgb(121 168 135 / 16%), 0 6px 20px rgb(35 49 89 / 5%); }
.insurer-group.is-company-drop-target .group-dropzone { border-radius: 18px; background: rgb(121 168 135 / 3.5%); outline: 1px solid rgb(121 168 135 / 24%); outline-offset: 6px; }
.insurer-group.is-group-drop-target { border-radius: 20px; background: rgb(121 168 135 / 5%); box-shadow: inset 0 0 0 1px rgb(121 168 135 / 25%); }
.insurer-grid.is-dragging, .insurer-grid.is-dragging * { user-select: none; }
.insurer-grid.is-dragging .launcher-card-content, .insurer-grid.is-dragging .details-button, .insurer-grid.is-dragging .favorite-button, .insurer-grid.is-dragging .card-actions { pointer-events: none; }
.drag-overlay-host { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; will-change: transform; }
.drag-overlay-host .insurer-card { height: 100%; min-height: 0 !important; margin: 0; opacity: 1; background: var(--surface); box-shadow: 0 18px 42px rgb(35 49 89 / 28%), 0 0 0 2px var(--drop-line); transition: none; }
.drag-overlay-host .launcher-card-content { min-height: 0; padding: 12px 42px; pointer-events: none; }
.drag-overlay-host .launcher-card-actions { padding-bottom: 8px; }
.drag-overlay-host .drag-handle, .drag-overlay-host .favorite-button { pointer-events: none; }
.drag-overlay-group-host .group-heading { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 3px 5px; border-radius: 18px; background: var(--surface); box-shadow: 0 12px 30px rgb(35 49 89 / 18%), 0 0 0 2px rgb(121 168 135 / 24%); }
.drag-overlay-group-host .group-collapse, .drag-overlay-group-host .group-heading-controls { pointer-events: none; }
.drag-insertion-indicator { position: fixed; z-index: 100; display: flex; align-items: center; height: 22px; opacity: 0; pointer-events: none; transform: scaleX(.96); transition: opacity .12s ease, transform .12s ease; }
.drag-insertion-indicator.is-visible { opacity: 1; transform: scaleX(1); }
.drag-insertion-indicator::before { content: ''; display: block; width: 100%; height: 3px; border-radius: var(--pill); background: var(--drop-line); box-shadow: 0 3px 10px rgb(88 137 99 / 22%); }
.drag-insertion-indicator::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 4px 50%, var(--drop-line) 0 4px, transparent 4.5px), radial-gradient(circle at calc(100% - 4px) 50%, var(--drop-line) 0 4px, transparent 4.5px); }
.drag-insertion-indicator.is-vertical { justify-content: center; }
.drag-insertion-indicator.is-vertical::before { width: 3px; height: 100%; }
.drag-insertion-indicator.is-vertical::after { background: radial-gradient(circle at 50% 4px, var(--drop-line) 0 4px, transparent 4.5px), radial-gradient(circle at 50% calc(100% - 4px), var(--drop-line) 0 4px, transparent 4.5px); }
.is-pointer-dragging, .is-pointer-dragging * { cursor: grabbing !important; }
.drag-status { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; max-width: min(360px, calc(100% - 32px)); padding: 10px 15px; border-radius: var(--pill); background: #2563eb; color: #fff; font-size: 12px; box-shadow: 0 8px 24px rgb(29 57 43 / 16%); pointer-events: none; }
.card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.card-actions a { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 38px; flex: 1; padding: 6px 11px; border-radius: var(--pill); color: #2563eb; font-size: var(--text-meta); font-weight: 550; transition: color .16s, background-color .16s, border-color .16s; }
.card-actions a:hover { background: var(--surface-soft); }
.card-actions button { min-height: 38px; border: 1px solid var(--line); background: transparent; border-radius: var(--pill); padding: 6px 11px; white-space: nowrap; color: #697080; font-size: 12px; transition: color .16s, background-color .16s, border-color .16s; }
.card-actions button:hover { border-color: var(--line-strong); background: var(--surface-soft); color: var(--ink); }
.launcher-card-actions a, .launcher-card-actions button { min-height: 34px; border-radius: var(--pill); font-size: 13px; }
.card-actions svg, .detail-links svg, .detail-row svg { width: var(--icon-action); height: var(--icon-action); flex-shrink: 0; }
.empty-state > img { display: block; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; }
.empty-state { margin-top: 20px; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--card-radius); background: var(--surface); text-align: center; }
.empty-state h2 { margin: 0 0 20px; font-size: var(--text-card); font-weight: 550; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.primary-button { min-height: 38px; padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink); font-size: 13px; transition: color .16s, background-color .16s, border-color .16s; }
.primary-button:hover, .copy-button:hover { border-color: var(--line-strong); background: var(--surface-soft); color: var(--blue); }
.noscript { padding: 24px 0; }
dialog { width: 620px; max-width: calc(100% - 40px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 56px rgb(29 57 43 / 18%); }
dialog::backdrop { background: #242b3366; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top { position: sticky; top: 0; display: flex; justify-content: flex-end; height: 56px; padding: 8px 16px 4px; background: var(--surface); z-index: 1; }
.dialog-top button { width: 44px; height: 44px; min-height: 44px; border: 0; border-radius: var(--pill); background: transparent; color: #747c86; font-size: 27px; transition: color .16s, background-color .16s; }
.dialog-top button:hover { background: var(--surface-soft); color: var(--ink); }
#insurer-detail { padding: 0 32px 32px; }
.detail-heading { display: flex; align-items: center; gap: 14px; margin: 4px 0 26px; }
.detail-heading .company-mark { width: var(--icon-detail-mark); height: var(--icon-detail-mark); border: 0; border-radius: 0; background: transparent; font-size: 13px; }
.detail-heading h2 { margin: 3px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.6px; line-height: 1.3; overflow-wrap: anywhere; }
.detail-heading small { font-size: var(--text-meta); color: var(--muted); }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.portal-login-help { display: none; flex-basis: 100%; margin: 0; color: var(--muted); font-size: var(--text-meta); }
.detail-links:has([data-chrome-sign-in]) .portal-login-help { display: block; }
.detail-links a { flex: 1; min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 13px; border: 0; border-radius: var(--pill); background: var(--surface-soft); color: #59647d; font-size: 13px; transition: color .16s, background-color .16s; }
.detail-links a:first-child { background: #2563eb; color: #fff; }
.detail-links a:hover { background: #e8edff; }
.detail-links a:first-child:hover { background: #1d4ed8; }
.detail-links [data-kb-help] { display: block; }
.detail-links [data-kb-help] a { display: inline; padding: 0; background: transparent; color: var(--accent, #2563eb); text-decoration: underline; }
.detail-links [data-kb-alternate] { display: none; }
.detail-links:has(> .primary[data-kb-helper-login]) [data-kb-alternate="manual"],
.detail-links:has(> .primary[data-kb-copy-birth]:not([data-kb-helper-login])) [data-kb-alternate="helper"] { display: flex; }
.card-payment-guide { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.card-payment-guide-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.card-payment-guide h3 { margin: 0; font-size: 14px; }
.card-payment-guide p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.detail-list { margin: 0; border-top: 1px solid var(--line); }
.detail-row { display: grid; grid-template-columns: 126px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-row dt { color: var(--muted); font-size: var(--text-meta); }
.detail-row dd { margin: 0; min-width: 0; font-size: 14px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.detail-row dd > a { vertical-align: middle; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: #2563eb; }
.detail-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-row .unverified { font-size: var(--text-meta); color: #70798a; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; height: 28px; min-height: 28px; padding: 0 12px; line-height: 1; white-space: nowrap; margin-left: 8px; border: 0; border-radius: var(--pill); background: var(--surface-soft); color: var(--muted); font-size: 12px; transition: color .16s, background-color .16s, border-color .16s; }
.credential-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; padding: 15px 0 0; border-top: 1px solid var(--line); }
.credential-tools-copy { display: grid; min-width: 0; gap: 2px; }
.credential-tools-copy strong { font-size: 13px; font-weight: 650; }
.credential-tools-copy span { color: var(--muted); font-size: 11px; }
.credential-toggle { flex: 0 0 auto; min-height: 34px; padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--pill); background: transparent; color: var(--muted); font-size: 11px; white-space: nowrap; transition: color .16s, background-color .16s, border-color .16s; }
.credential-toggle:hover { border-color: var(--line-strong); background: var(--surface-soft); color: var(--blue); }
.credential-panel { margin: 0 0 20px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #fafbfe; }
.credential-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.credential-panel-heading-copy { min-width: 0; }
.credential-panel-heading-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 6px; }
.credential-panel-heading h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.2px; }
.credential-panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.credential-safe-note { flex: 0 0 auto; padding: 4px 7px; border-radius: var(--pill); background: var(--surface-soft); color: #64816b; font-size: 10px; white-space: nowrap; }
.credential-panel-close { min-height: 30px; padding: 4px 8px; border: 1px solid transparent; border-radius: var(--pill); background: transparent; color: var(--muted); font-size: 11px; white-space: nowrap; transition: color .16s, background-color .16s, border-color .16s; }
.credential-panel-close:hover { border-color: var(--line-strong); background: var(--surface-soft); color: var(--blue); }
.credential-form { display: grid; gap: 14px; }
.credential-field { display: grid; gap: 5px; min-width: 0; }
.credential-field > span { color: var(--muted); font-size: 12px; font-weight: 650; }
.credential-input-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.credential-field input, .credential-field textarea { width: 100%; min-width: 0; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font-size: 14px; outline: none; }
.credential-field input:focus, .credential-field textarea:focus { border-color: #b4c3f3; box-shadow: 0 0 0 2px rgb(167 199 174 / 28%); }
.credential-field input[name="birthDate"]:not(:focus) { -webkit-text-security: disc; }
.credential-memo-field textarea { min-height: 112px; padding-block: 10px; resize: vertical; line-height: 1.55; }
.credential-field-hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #849188; font-size: 10px; line-height: 1.4; }
.credential-field-hint span:last-child { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.credential-login-fields { display: grid; gap: 11px; padding-top: 13px; border-top: 1px solid var(--line); }
.credential-fields-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; color: var(--ink); font-size: 12px; font-weight: 650; }
.credential-fields-heading small { color: var(--muted); font-size: 10px; font-weight: 400; }
.credential-icon-button { display: grid; place-items: center; flex: 0 0 auto; min-width: 42px; min-height: 42px; padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--pill); background: transparent; color: var(--muted); font-size: 11px; white-space: nowrap; transition: color .16s, background-color .16s, border-color .16s; }
.credential-icon-button:hover { border-color: var(--line-strong); background: var(--surface-soft); color: var(--blue); }
.credential-icon-button svg { width: 16px; height: 16px; }
.credential-status { min-height: 17px; margin: 0; color: var(--muted); font-size: 12px; }
.credential-form.is-dirty .credential-status { color: #7a6330; }
.credential-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 1px; padding-top: 12px; border-top: 1px solid var(--line); }
.credential-form-actions .primary-button { min-width: 84px; min-height: 42px; padding: 8px 16px; font-size: 13px; font-weight: 650; }
.credential-delete-button { min-height: 36px; padding: 5px 9px; border: 0; border-radius: var(--pill); background: transparent; color: #a16849; font-size: 12px; transition: color .16s, background-color .16s; }
.credential-delete-button:hover { background: #fff0ef; color: #b35650; }
.credential-login-prompt { display: grid; gap: 11px; }
.credential-login-prompt p { margin: 0; color: var(--muted); font-size: 12px; }
.credential-login-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.credential-login-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 11px; font-weight: 600; transition: color .16s, background-color .16s, border-color .16s; }
.credential-login-link:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.credential-login-link-naver { border-color: transparent; background: var(--surface-soft); color: #28664a; }
.source-list { margin-top: 18px; font-size: var(--text-meta); color: #7b8880; }
.source-list summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.source-list ul { list-style: none; margin: 0; padding: 0; }
.source-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.source-list a { display: inline-flex; align-items: center; min-height: 44px; color: #536f87; }
.source-list time { font-size: 11px; color: #979da5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.group-dialog-body { padding: 0 32px 32px; }
#group-dialog .dialog-top { padding-inline: 32px; justify-content: space-between; align-items: center; }
#group-dialog .dialog-top h2 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.group-dialog-note { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.group-management-list { display: grid; gap: 9px; margin-bottom: 16px; }
.group-management-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfe; }
.group-management-number { color: #9aa69d; font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.group-management-name { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); font-size: 13px; outline: none; }
.group-management-name:hover, .group-management-name:focus { border-color: var(--line-strong); background: var(--surface); }
.group-management-actions { display: flex; align-items: center; gap: 2px; }
.group-management-actions button { min-height: 34px; padding: 5px 8px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.group-management-actions button:hover { background: var(--surface-soft); color: var(--blue); }
.group-management-actions .group-delete-button:hover { background: #fff0ef; color: #b35650; }
.group-visibility-hidden { color: #a16849 !important; }
.group-management-empty { margin: 0 0 16px; padding: 24px 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 12px; text-align: center; }
.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 12px 20px; border-radius: var(--pill); background: #2563eb; color: #fff; font-size: 13px; z-index: 50; box-shadow: 0 8px 24px rgb(29 57 43 / 16%); }

@media (max-width: 1150px) {
  main { padding-inline: 28px; }
  .header-inner { padding-inline: 28px; }
  .header-actions { gap: 6px; }
  .insurer-card { grid-template-columns: minmax(148px, 1fr) 110px 178px; gap: 12px; }
  .card-actions a { padding-inline: 10px; }
  .card-actions button { padding-inline: 10px; }
}
@media (max-width: 1080px) {
  .portal-list .group-dropzone { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 820px) {
  main { padding: 28px 24px 56px; }
  .header-inner { padding-inline: 24px; }
  .portal-list .group-dropzone { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .portal-list .insurer-card { min-height: 0; }
  .launcher-card-content { min-height: 74px; padding: 12px 48px 12px 18px; }
  .portal-list .launcher-card .company-mark { width: 48px; height: 48px; }
}
@media (max-width: 680px) {
  .header-inner { min-height: 68px; padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .brand { gap: 8px; }
  .brand strong { font-size: 21px; }
  .brand img { width: 36px; height: 36px; border-radius: 11px; }
  .header-actions { flex: 1; justify-content: flex-end; gap: 6px; }
  .account-login-buttons, .account-user { gap: 5px; flex-wrap: wrap; }
  .account-login-benefit { flex: 1 0 100%; order: 3; max-width: 280px; margin-top: 2px; font-size: 10px; }
  .account-button { min-height: 32px; padding-inline: 9px; font-size: 11px; }
  .account-profile { max-width: 82px; gap: 5px; font-size: 11px; }
  .account-avatar { width: 28px; height: 28px; flex-basis: 28px; }
  main { padding: 24px 16px 48px; }
  h1 { font-size: 26px; letter-spacing: -.7px; }
  .section-heading { margin-bottom: 20px; }
  .search-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .search-wrap { height: 52px; padding: 0 14px; }
  .search-wrap kbd { display: none; }
  .filter-row { align-items: flex-start; gap: 8px; margin: 14px 0; }
  .group-toolbar { margin-top: 0; }
  .filters { gap: 4px; }
  .filters button { min-height: 34px; font-size: 12px; padding: 5px 10px; }
  .filters button span { display: inline; font-size: 10px; }
  #result-count { padding-top: 8px; font-size: 12px; }
  .portal-list .group-dropzone { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .portal-list .insurer-card { min-height: 0; }
  .launcher-card-content { min-height: 78px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px 52px 12px 18px; text-align: left; }
  .portal-list .launcher-card .company-mark { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 0; }
  .launcher-card-name { font-size: var(--text-card); }
  .homepage-list .insurer-card { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: 16px; }
  .homepage-list .company-heading { grid-column: 1 / -1; padding-left: 0; }
  .company-title h2 { font-size: var(--text-card); }
  .company-title small { font-size: 12px; }
  .card-actions { gap: 8px; }
  .card-actions a { min-height: 44px; font-size: 12px; padding: 5px 9px; }
  .card-actions button { min-height: 44px; padding: 5px 10px; font-size: 12px; }
  .details-button { min-height: 44px; }
  .portal-system { margin: 14px 0 13px; padding-top: 13px; }
  dialog { max-width: 100%; width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .dialog-top { height: 52px; padding: 4px 12px; }
  #insurer-detail { padding: 0 24px 24px; }
  .detail-heading { gap: 12px; margin-bottom: 24px; }
  .detail-heading .company-mark { width: 56px; height: 56px; border-radius: 0; }
  .detail-heading h2 { font-size: 23px; }
  .detail-row { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  .detail-row dd { font-size: 13px; }
  .copy-button { margin: 2px 0 2px 6px; }
  .credential-tools { align-items: flex-start; gap: 8px; }
  .credential-panel { padding: 13px; border-radius: 15px; }
  .credential-panel-heading { gap: 8px; }
  .credential-safe-note { display: none; }
}
@media (max-width: 420px) {
  main { padding-inline: 14px; }
  .header-inner { padding-inline: 14px; }
  .header-actions { min-width: 0; }
  .account-button { padding-inline: 10px; font-size: 11px; }
  .account-profile { max-width: 70px; }
  .filters { gap: 3px; }
  .filters button { padding-inline: 9px; }
  .launcher-card-content { min-height: 78px; padding: 14px 52px 12px 16px; }
  .portal-list .launcher-card .company-mark { width: 44px; height: 44px; flex-basis: 44px; border-radius: 0; }
  #insurer-detail { padding-inline: 20px; }
  .detail-row { grid-template-columns: 94px minmax(0, 1fr); }
  .source-list li { align-items: flex-start; flex-wrap: wrap; }
  .credential-tools { flex-wrap: wrap; }
  .credential-tools .credential-toggle { margin-left: auto; }
  .group-management-row { grid-template-columns: 24px minmax(0, 1fr); }
  .group-management-actions { grid-column: 2; justify-content: flex-end; }
}
@media (max-width: 680px) {
  .account-login-benefit { max-width: 220px; font-size: 11px; }
  .filter-row { align-items: center; }
  .filter-row .group-toolbar { padding-left: 0; border-left: 0; margin-left: auto; }
  .group-toolbar > span { display: none; }
  #result-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
  .search-row { gap: 8px; }
  .search-wrap { height: 52px; padding-inline: 12px; gap: 8px; }
  .search-wrap input { font-size: 16px; }

  .portal-list .launcher-card-content { flex-direction: column; align-items: flex-start; gap: 7px; min-height: 99px; padding: 14px 12px 10px; }
  .portal-list .launcher-card .company-mark { width: 40px; height: 34px; flex: 0 0 34px; }
  .launcher-card-name { font-size: 14px; }
  .launcher-card-actions { gap: 8px; padding: 0 10px 10px; }
  .launcher-card-actions a, .launcher-card-actions button { min-height: 44px; padding: 5px 8px; font-size: 12px; }
  .launcher-card-actions svg { width: 12px; height: 12px; }
  .favorite-button { top: 8px; right: 7px; width: 44px; height: 44px; min-height: 44px; }
  .favorite-button:hover, .favorite-button:active { transform: none; }
  .launcher-card:has(.drag-handle:not([hidden])) .launcher-card-content { padding-top: 48px; padding-left: 12px; }
}
@media (max-width: 360px) {
  .portal-list .group-dropzone { grid-template-columns: minmax(0, 1fr); }
  .portal-list .launcher-card-content { flex-direction: row; align-items: center; min-height: 74px; padding-right: 60px; }
  .header-actions { flex-basis: 100%; justify-content: flex-end; }
  .account-button { padding-inline: 11px; }
  .company-title { gap: 4px; }
  .card-actions { gap: 8px; }
  .card-actions a { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .insurer-card .favorite-button:is(:hover, :active),
  .insurer-card .favorite-button .favorite-icon { transform: none; }
}
