@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
    --wayfix-bg: #F8F7FA;
    --wayfix-surface: #FFFFFF;
    --wayfix-surface-soft: #F8FAFC;
    --wayfix-surface-raised: #FFFFFF;
    --wayfix-primary: #92278F;
    --wayfix-light: #F6EEF8;
    --wayfix-dark: #5F155D;
    --wayfix-line: #E5E7EB;
    --wayfix-text: #111827;
    --wayfix-muted: #6B7280;
    --wayfix-success: #16A34A;
    --wayfix-warning: #F59E0B;
    --wayfix-danger: #DC2626;
    --wayfix-info: #2563EB;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --wayfix-bg: #0E1117;
    --wayfix-surface: #171B24;
    --wayfix-surface-soft: #111722;
    --wayfix-surface-raised: #1D2330;
    --wayfix-primary: #D76BD4;
    --wayfix-light: #2A1930;
    --wayfix-dark: #F0B9EE;
    --wayfix-line: #2A3242;
    --wayfix-text: #F3F6FC;
    --wayfix-muted: #A9B2C3;
    --wayfix-success: #4ADE80;
    --wayfix-warning: #FBBF24;
    --wayfix-danger: #F87171;
    --wayfix-info: #60A5FA;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--wayfix-bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--wayfix-bg);
    color: var(--wayfix-text);
    font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
    letter-spacing: 0;
    font-feature-settings: "kern";
    text-rendering: geometricPrecision;
}

body *,
body *::before,
body *::after {
    font-family: inherit !important;
    letter-spacing: 0;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background-color: var(--wayfix-surface-raised) !important;
    border-color: var(--wayfix-line) !important;
    color: var(--wayfix-text) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #788398 !important;
}

html[data-theme="dark"] input:disabled,
html[data-theme="dark"] select:disabled,
html[data-theme="dark"] textarea:disabled {
    background-color: #111722 !important;
    color: #7D8798 !important;
}

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

.font700 { font-weight: 700; }
.font800 { font-weight: 800; }
.font900 { font-weight: 900; }

html[data-theme="dark"] .bg-wayfix-bg {
    background-color: var(--wayfix-bg) !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-white\/90,
html[data-theme="dark"] .bg-white\/92,
html[data-theme="dark"] .bg-white\/95 {
    background-color: var(--wayfix-surface) !important;
}

html[data-theme="dark"] .bg-wayfix-light,
html[data-theme="dark"] .bg-wayfix-surface,
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-zinc-50,
html[data-theme="dark"] .bg-slate-100,
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .bg-zinc-100 {
    background-color: var(--wayfix-surface-soft) !important;
}

html[data-theme="dark"] .bg-red-50,
html[data-theme="dark"] .bg-red-100,
html[data-theme="dark"] .bg-rose-50,
html[data-theme="dark"] .bg-rose-100 {
    background-color: rgba(127, 29, 29, 0.22) !important;
}

html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-amber-100,
html[data-theme="dark"] .bg-yellow-50,
html[data-theme="dark"] .bg-yellow-100 {
    background-color: rgba(120, 53, 15, 0.24) !important;
}

html[data-theme="dark"] .bg-green-50,
html[data-theme="dark"] .bg-green-100,
html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-emerald-100 {
    background-color: rgba(6, 78, 59, 0.26) !important;
}

html[data-theme="dark"] .bg-blue-50,
html[data-theme="dark"] .bg-blue-100,
html[data-theme="dark"] .bg-sky-50,
html[data-theme="dark"] .bg-sky-100,
html[data-theme="dark"] .bg-indigo-50,
html[data-theme="dark"] .bg-indigo-100 {
    background-color: rgba(30, 58, 138, 0.24) !important;
}

html[data-theme="dark"] .bg-violet-50,
html[data-theme="dark"] .bg-violet-100,
html[data-theme="dark"] .bg-purple-50,
html[data-theme="dark"] .bg-purple-100,
html[data-theme="dark"] .bg-fuchsia-50,
html[data-theme="dark"] .bg-fuchsia-100 {
    background-color: rgba(88, 28, 135, 0.26) !important;
}

html[data-theme="dark"] .text-wayfix-text,
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-zinc-900 {
    color: var(--wayfix-text) !important;
}

html[data-theme="dark"] .text-wayfix-muted,
html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-zinc-500 {
    color: var(--wayfix-muted) !important;
}

html[data-theme="dark"] .text-wayfix-primary {
    color: var(--wayfix-primary) !important;
}

html[data-theme="dark"] .text-emerald-700,
html[data-theme="dark"] .text-green-700 {
    color: #6EE7B7 !important;
}

html[data-theme="dark"] .text-violet-700,
html[data-theme="dark"] .text-purple-700,
html[data-theme="dark"] .text-fuchsia-700 {
    color: #E9D5FF !important;
}

html[data-theme="dark"] .text-blue-700,
html[data-theme="dark"] .text-sky-700,
html[data-theme="dark"] .text-indigo-700 {
    color: #BFDBFE !important;
}

html[data-theme="dark"] .text-red-600,
html[data-theme="dark"] .text-red-700,
html[data-theme="dark"] .text-wayfix-danger {
    color: #FCA5A5 !important;
}

html[data-theme="dark"] .text-amber-700,
html[data-theme="dark"] .text-amber-800,
html[data-theme="dark"] .text-wayfix-warning {
    color: #FCD34D !important;
}

html[data-theme="dark"] .border-wayfix-line,
html[data-theme="dark"] .divide-wayfix-line > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--wayfix-line) !important;
}

html[data-theme="dark"] .border-red-100,
html[data-theme="dark"] .border-red-200,
html[data-theme="dark"] .border-rose-100,
html[data-theme="dark"] .border-rose-200,
html[data-theme="dark"] .border-green-100,
html[data-theme="dark"] .border-green-200,
html[data-theme="dark"] .border-emerald-100,
html[data-theme="dark"] .border-emerald-200,
html[data-theme="dark"] .border-amber-100,
html[data-theme="dark"] .border-amber-200,
html[data-theme="dark"] .border-violet-100,
html[data-theme="dark"] .border-violet-200,
html[data-theme="dark"] .border-purple-100,
html[data-theme="dark"] .border-purple-200,
html[data-theme="dark"] .border-blue-100,
html[data-theme="dark"] .border-blue-200,
html[data-theme="dark"] .border-sky-100,
html[data-theme="dark"] .border-sky-200,
html[data-theme="dark"] .border-indigo-100,
html[data-theme="dark"] .border-indigo-200 {
    border-color: var(--wayfix-line) !important;
}

html[data-theme="dark"] .shadow-card,
html[data-theme="dark"] .shadow-soft {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26) !important;
}

.content-shell > section,
.content-shell > article,
.content-shell > form {
    min-width: 0;
}

.content-shell article,
.content-shell .shadow-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-sidebar {
    width: 18rem;
    transition: width 180ms ease, padding 180ms ease;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-brand {
    transition: padding 180ms ease;
}

.sidebar-toggle {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wayfix-line);
    border-radius: 12px;
    background: #fff;
    color: var(--wayfix-muted);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

html[data-theme="dark"] .app-sidebar,
html[data-theme="dark"] header {
    background-color: rgba(23, 27, 36, 0.94) !important;
}

html[data-theme="dark"] .sidebar-toggle,
html[data-theme="dark"] .icon-button {
    background: var(--wayfix-surface-raised);
    border-color: var(--wayfix-line);
    color: var(--wayfix-muted);
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
    border-color: rgba(146, 39, 143, 0.24);
    background: var(--wayfix-light);
    color: var(--wayfix-primary);
    outline: none;
}

.sidebar-toggle-collapsed {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border-radius: 12px;
    padding: 0 14px;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-icon {
    display: inline-flex !important;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #F5F6F8;
    color: #5A6070;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease;
}

html[data-theme="dark"] .nav-icon,
html[data-theme="dark"] .mobile-menu-icon {
    background: #222938;
    color: #CBD5E1;
}

.nav-label {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 140ms ease, width 180ms ease;
}

.nav-item:hover {
    background: var(--wayfix-light);
    color: var(--wayfix-dark);
}

html[data-theme="dark"] .nav-item:hover {
    background: #211827;
    color: var(--wayfix-primary);
}

.nav-item.is-active {
    position: relative;
    background: linear-gradient(90deg, #F6EEF8 0%, #FFFFFF 100%);
    color: var(--wayfix-dark);
    font-weight: 900;
    box-shadow: inset 3px 0 0 var(--wayfix-primary), 0 8px 20px rgba(146, 39, 143, 0.08);
}

html[data-theme="dark"] .nav-item.is-active {
    background: linear-gradient(90deg, rgba(215, 107, 212, 0.18) 0%, rgba(29, 35, 48, 0.88) 100%);
    color: var(--wayfix-primary);
    box-shadow: inset 3px 0 0 var(--wayfix-primary), 0 14px 28px rgba(0, 0, 0, 0.22);
}

.nav-item.is-active .nav-icon {
    background: #fff;
    color: var(--wayfix-primary);
    box-shadow: 0 0 0 1px rgba(146, 39, 143, 0.16);
}

html[data-theme="dark"] .nav-item.is-active .nav-icon {
    background: rgba(215, 107, 212, 0.16);
    color: var(--wayfix-primary);
    box-shadow: 0 0 0 1px rgba(215, 107, 212, 0.22);
}

html[data-theme="dark"] .nav-item.is-active .nav-label {
    color: var(--wayfix-primary);
}

.nav-item.is-active .nav-label {
    color: var(--wayfix-dark);
}

.nav-item:hover .nav-icon {
    background: #fff;
    color: var(--wayfix-primary);
}

.nav-item:active {
    transform: translateY(1px);
}

.nav-separator {
    height: 1px;
    margin: 10px 8px;
    background: linear-gradient(90deg, transparent, var(--wayfix-line), transparent);
}

.nav-item-disabled {
    cursor: not-allowed;
    color: #9CA3AF;
    opacity: 1;
}

.nav-item-disabled:hover {
    background: transparent;
    color: #9CA3AF;
    transform: none;
}

.nav-item-disabled .nav-label,
.nav-item-disabled .nav-label *,
.nav-item-disabled:hover .nav-label,
.nav-item-disabled:hover .nav-label * {
    color: #9CA3AF;
}

.nav-item-disabled .nav-icon,
.nav-item-disabled:hover .nav-icon {
    background: #F3F4F6;
    color: #B7BDC8;
}

.nav-inactive-label {
    color: #9CA3AF;
    font-weight: 800;
}

.sidebar-collapsed .app-sidebar {
    width: 5.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.sidebar-collapsed .sidebar-top {
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.sidebar-collapsed .sidebar-brand {
    padding-left: 0;
    padding-right: 0;
}

.sidebar-collapsed .sidebar-logo-full {
    display: none;
}

.sidebar-collapsed .sidebar-logo-mark {
    display: inline-flex;
}

.sidebar-collapsed .sidebar-toggle {
    position: static;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 20px;
}

.sidebar-collapsed .sidebar-toggle-expanded {
    display: none;
}

.sidebar-collapsed .sidebar-toggle-collapsed {
    display: inline;
}

.sidebar-collapsed .nav-item {
    position: relative;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.sidebar-collapsed .nav-icon {
    display: inline-flex;
}

.sidebar-collapsed .nav-label {
    width: 0;
    opacity: 0;
}

.sidebar-collapsed .nav-separator {
    margin-left: 6px;
    margin-right: 6px;
}

.sidebar-collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    z-index: 60;
    min-width: max-content;
    max-width: 180px;
    transform: translateY(-50%) translateX(-4px);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 10px;
    background: #111827;
    color: #fff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    padding: 9px 10px;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 120ms ease, transform 120ms ease;
}

.sidebar-collapsed .nav-item::before {
    content: "";
    position: absolute;
    left: calc(100% + 5px);
    top: 50%;
    z-index: 61;
    width: 8px;
    height: 8px;
    transform: translateY(-50%) rotate(45deg);
    background: #111827;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.sidebar-collapsed .nav-item:hover::after,
.sidebar-collapsed .nav-item:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sidebar-collapsed .nav-item:hover::before,
.sidebar-collapsed .nav-item:focus-visible::before {
    opacity: 1;
}

.mobile-tab {
    display: flex;
    min-height: 58px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--wayfix-muted);
    cursor: pointer;
}

.mobile-tab-icon {
    display: flex;
    height: 20px;
    min-width: 20px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

.mobile-tab:hover,
.mobile-tab:focus-visible {
    background: var(--wayfix-light);
    color: var(--wayfix-primary);
    outline: none;
}

.mobile-menu-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    padding: 0 12px;
    color: var(--wayfix-text);
    transition: background-color 160ms ease, color 160ms ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible,
.mobile-menu-link.is-active {
    background: var(--wayfix-light);
    color: var(--wayfix-primary);
    outline: none;
}

.mobile-menu-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #F5F6F8;
    color: #5A6070;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.mobile-menu-link.is-active .mobile-menu-icon,
.mobile-menu-link:hover .mobile-menu-icon,
.mobile-menu-link:focus-visible .mobile-menu-icon {
    background: #fff;
    color: var(--wayfix-primary);
}

.mobile-menu-disabled {
    cursor: not-allowed;
    color: #9CA3AF;
}

.mobile-menu-disabled .mobile-menu-icon {
    background: #F3F4F6;
    color: #B7BDC8;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.btn-sm {
    min-width: 76px;
    min-height: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 13px;
}

.btn-action {
    min-width: 116px;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(146, 39, 143, 0.12), 0 8px 18px rgba(17, 24, 39, 0.08);
}

.btn-primary {
    border-color: rgba(146, 39, 143, 0.18);
    background: linear-gradient(180deg, #A733A3 0%, var(--wayfix-primary) 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(146, 39, 143, 0.22);
}

html[data-theme="dark"] .btn-primary {
    border-color: rgba(215, 107, 212, 0.32);
    background: linear-gradient(180deg, #C85AC5 0%, #8C2B8A 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(215, 107, 212, 0.2);
}

.btn-primary:hover {
    border-color: rgba(95, 21, 93, 0.24);
    background: linear-gradient(180deg, #9A2A96 0%, var(--wayfix-dark) 100%);
    box-shadow: 0 16px 34px rgba(146, 39, 143, 0.26);
    transform: translateY(-1px);
}

.btn-secondary {
    border-color: #D7DCE5;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    color: #172033;
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-ghost {
    border-color: var(--wayfix-line);
    background: var(--wayfix-surface-raised);
    color: var(--wayfix-text);
}

.btn-secondary:hover {
    border-color: rgba(146, 39, 143, 0.28);
    background: #fff;
    color: var(--wayfix-dark);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
    transform: translateY(-1px);
}

html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-ghost:hover {
    border-color: rgba(215, 107, 212, 0.28);
    background: #252C3A;
    color: var(--wayfix-primary);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.btn-danger {
    border-color: rgba(185, 28, 28, 0.12);
    background: linear-gradient(180deg, #D83A3A 0%, #B91C1C 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.18);
}

html[data-theme="dark"] .btn-danger-soft {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(127, 29, 29, 0.2);
    color: #FCA5A5;
    box-shadow: 0 8px 18px rgba(127, 29, 29, 0.14);
}

html[data-theme="dark"] .btn-danger-soft:hover {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(127, 29, 29, 0.28);
    color: #FECACA;
}

.btn-danger:hover {
    border-color: rgba(127, 29, 29, 0.16);
    background: linear-gradient(180deg, #C92F2F 0%, #991B1B 100%);
    box-shadow: 0 14px 28px rgba(185, 28, 28, 0.24);
    transform: translateY(-1px);
}

.btn-danger-soft {
    border-color: #F1C7C7;
    background: linear-gradient(180deg, #FFF8F8 0%, #FDECEC 100%);
    color: #A83A3A;
    box-shadow: 0 6px 14px rgba(168, 58, 58, 0.08);
}

.btn-danger-soft:hover {
    border-color: #E7AFAF;
    background: #FFF5F5;
    color: #842A2A;
    box-shadow: 0 10px 20px rgba(168, 58, 58, 0.12);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: #D7DCE5;
    background: #fff;
    color: #172033;
}

.btn-ghost:hover {
    border-color: rgba(146, 39, 143, 0.22);
    background: var(--wayfix-light);
    color: var(--wayfix-dark);
    box-shadow: 0 8px 18px rgba(146, 39, 143, 0.08);
    transform: translateY(-1px);
}

.theme-toggle {
    display: inline-flex;
    height: 42px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--wayfix-line);
    border-radius: 999px;
    background: var(--wayfix-surface);
    color: var(--wayfix-muted);
    padding: 0 8px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: rgba(146, 39, 143, 0.26);
    background: var(--wayfix-surface-raised);
    color: var(--wayfix-primary);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.auto-logout-toggle {
    display: inline-flex;
    height: 42px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--wayfix-line);
    border-radius: 999px;
    background: var(--wayfix-surface);
    color: var(--wayfix-muted);
    padding: 0 8px 0 10px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.auto-logout-toggle:hover,
.auto-logout-toggle:focus-visible {
    border-color: rgba(146, 39, 143, 0.26);
    background: var(--wayfix-surface-raised);
    color: var(--wayfix-primary);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.auto-logout-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: var(--wayfix-primary);
}

.auto-logout-icon svg {
    width: 17px;
    height: 17px;
}

.auto-logout-track {
    position: relative;
    display: inline-flex;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #E5EAF2;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}

.auto-logout-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.2);
    transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.auto-logout-time {
    min-width: 40px;
    color: var(--wayfix-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
}

.auto-logout-toggle[aria-pressed="true"] {
    border-color: rgba(146, 39, 143, 0.22);
    color: var(--wayfix-primary);
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF7FC 100%);
}

.auto-logout-toggle[aria-pressed="true"] .auto-logout-track {
    background: linear-gradient(180deg, #EFDDF4 0%, #DDB9E6 100%);
    box-shadow: inset 0 0 0 1px rgba(146, 39, 143, 0.24);
}

.auto-logout-toggle[aria-pressed="true"] .auto-logout-thumb {
    background: var(--wayfix-primary);
    transform: translateX(14px);
}

.auto-logout-toggle[aria-pressed="false"] .auto-logout-icon,
.auto-logout-toggle[aria-pressed="false"] .auto-logout-time {
    color: #8A94A6;
}

html[data-theme="dark"] .auto-logout-toggle {
    background: var(--wayfix-surface);
    border-color: #333C50;
    color: var(--wayfix-muted);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .auto-logout-toggle[aria-pressed="true"] {
    border-color: rgba(215, 107, 212, 0.32);
    color: var(--wayfix-primary);
    background: linear-gradient(180deg, #1D2330 0%, #171B24 100%);
}

html[data-theme="dark"] .auto-logout-time {
    color: var(--wayfix-text);
}

html[data-theme="dark"] .auto-logout-track {
    background: #303849;
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.12);
}

html[data-theme="dark"] .auto-logout-toggle[aria-pressed="true"] .auto-logout-track {
    background: linear-gradient(180deg, #4A2A52 0%, #2A1930 100%);
    box-shadow: inset 0 0 0 1px rgba(215, 107, 212, 0.28);
}

html[data-theme="dark"] .auto-logout-thumb {
    background: #E2E8F0;
}

@media (max-width: 520px) {
    .auto-logout-time {
        display: none;
    }
}

.theme-toggle-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
}

.theme-toggle-icon svg {
    width: 17px;
    height: 17px;
}

.theme-toggle-sun {
    color: #D97706;
}

.theme-toggle-moon {
    color: #64748B;
}

.theme-toggle-track {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, #F8FAFC 0%, #E9EEF7 100%);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.22);
    transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

html[data-theme="dark"] .theme-toggle {
    background: var(--wayfix-surface);
    border-color: #333C50;
    color: var(--wayfix-text);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .theme-toggle-track {
    background: linear-gradient(180deg, #394154 0%, #222938 100%);
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.12);
}

html[data-theme="dark"] .theme-toggle-thumb {
    background: linear-gradient(180deg, #B7C4D8 0%, #F8FAFC 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.36);
    transform: translateX(18px);
}

html[data-theme="dark"] .theme-toggle-sun {
    color: #8B94A7;
}

html[data-theme="dark"] .theme-toggle-moon {
    color: #E9D5FF;
}

.header-logout-button {
    display: inline-flex;
    height: 42px;
    width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #FECACA;
    border-radius: 999px;
    background: #FFF5F5;
    color: #DC2626;
    padding: 0;
    line-height: 1;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.header-logout-button:hover,
.header-logout-button:focus-visible {
    border-color: #F87171;
    background: #FEE2E2;
    color: #B91C1C;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.16);
    transform: translateY(-1px);
    outline: none;
}

html[data-theme="dark"] .header-logout-button {
    background: rgba(127, 29, 29, 0.18);
    border-color: rgba(248, 113, 113, 0.28);
    color: #FCA5A5;
}

html[data-theme="dark"] .header-logout-button:hover,
html[data-theme="dark"] .header-logout-button:focus-visible {
    background: rgba(127, 29, 29, 0.28);
    border-color: rgba(248, 113, 113, 0.42);
    color: #FECACA;
}

html[data-theme="dark"] header a[aria-label="내 정보 보기"] {
    background: var(--wayfix-surface);
    border-color: var(--wayfix-line);
    color: var(--wayfix-text);
}

html[data-theme="dark"] header a[aria-label="내 정보 보기"]:hover {
    background: var(--wayfix-surface-raised);
    border-color: rgba(215, 107, 212, 0.28);
}

.icon-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wayfix-line);
    border-radius: 999px;
    background: #fff;
    color: var(--wayfix-muted);
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
    border-color: #d7d9df;
    background: var(--wayfix-light);
    color: var(--wayfix-primary);
}

.form-field p {
    margin: 0;
}

.form-field label:not(.switch-label):not(.remember-option),
.auth-form label:not(.switch-label):not(.remember-option) {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--wayfix-text);
}

.form-field input,
.form-field select,
.form-field textarea,
.auth-form input,
.form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--wayfix-line);
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    color: var(--wayfix-text);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea,
html[data-theme="dark"] .auth-form input,
html[data-theme="dark"] .form-control {
    background: var(--wayfix-surface-raised);
    border-color: var(--wayfix-line);
    color: var(--wayfix-text);
}

.amount-input-wrap {
    position: relative;
}

.amount-input-wrap input {
    padding-right: 46px;
}

.amount-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wayfix-muted);
    font-size: 14px;
    font-weight: 900;
    pointer-events: none;
}

.form-field input[type="checkbox"],
.auth-form input[type="checkbox"],
.switch-label input[type="checkbox"],
.form-control[type="checkbox"],
input[type="checkbox"].event-type-filter {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 24px;
    min-height: 24px;
    appearance: none;
    border: 1px solid #D1D5DB;
    border-radius: 999px;
    background: #E5E7EB;
    padding: 0;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.switch-label {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--wayfix-line);
    border-radius: 14px;
    background: #fff;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 800;
    color: var(--wayfix-text);
}

html[data-theme="dark"] .switch-label {
    background: var(--wayfix-surface-raised);
}

.switch-label input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
}

.switch-label span {
    min-width: 0;
}

.auth-form .remember-option,
.remember-option {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 0 2px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    color: var(--wayfix-text);
}

.auth-form .remember-option span,
.remember-option span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
}

.auth-form .remember-option input[type="checkbox"],
.remember-option input[type="checkbox"] {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 24px;
    min-height: 24px;
    appearance: none;
    border: 1px solid #D1D5DB;
    border-radius: 999px;
    background: #E5E7EB;
    padding: 0;
    cursor: pointer;
    flex: 0 0 auto;
    margin: 0;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.auth-form .remember-option input[type="checkbox"]::after,
.remember-option input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.18);
    transition: transform 160ms ease;
}

.auth-form .remember-option input[type="checkbox"]:checked,
.remember-option input[type="checkbox"]:checked {
    border-color: rgba(146, 39, 143, 0.55);
    background: var(--wayfix-primary);
}

.auth-form .remember-option input[type="checkbox"]:checked::after,
.remember-option input[type="checkbox"]:checked::after {
    transform: translateX(18px);
}

.auth-form .login-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border: 1px solid var(--wayfix-line);
    border-radius: 18px;
    background: #fff;
    padding: 8px;
}

html[data-theme="dark"] .auth-form .login-options {
    background: var(--wayfix-surface-raised);
}

.auth-form .login-options .remember-option {
    min-height: 48px;
    border-radius: 14px;
    background: #F8F7FA;
    padding: 0 12px;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

html[data-theme="dark"] .auth-form .login-options .remember-option {
    background: #222938;
}

.auth-form .login-options .remember-option:has(input[type="checkbox"]:checked) {
    background: #F6EEF8;
    box-shadow: inset 0 0 0 1px rgba(146, 39, 143, 0.14);
}

html[data-theme="dark"] .auth-form .login-options .remember-option:has(input[type="checkbox"]:checked) {
    background: rgba(215, 107, 212, 0.14);
    box-shadow: inset 0 0 0 1px rgba(215, 107, 212, 0.22);
}

.auth-form .login-options .remember-option span {
    display: none;
}

.auth-form .login-options .remember-option::before {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    color: var(--wayfix-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.auth-form .login-options .remember-option:nth-child(1)::before {
    content: "아이디 기억";
}

.auth-form .login-options .remember-option:nth-child(2)::before {
    content: "자동 로그인";
}

.form-field input[type="checkbox"]::after,
.auth-form input[type="checkbox"]::after,
.switch-label input[type="checkbox"]::after,
.form-control[type="checkbox"]::after,
input[type="checkbox"].event-type-filter::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.18);
    transition: transform 160ms ease;
}

.form-field input[type="checkbox"]:checked,
.auth-form input[type="checkbox"]:checked,
.switch-label input[type="checkbox"]:checked,
.form-control[type="checkbox"]:checked,
input[type="checkbox"].event-type-filter:checked {
    border-color: rgba(146, 39, 143, 0.55);
    background: var(--wayfix-primary);
}

.form-field input[type="checkbox"]:checked::after,
.auth-form input[type="checkbox"]:checked::after,
.switch-label input[type="checkbox"]:checked::after,
.form-control[type="checkbox"]:checked::after,
input[type="checkbox"].event-type-filter:checked::after {
    transform: translateX(18px);
}

.form-field textarea {
    min-height: 112px;
}

.errorlist,
.form-field .errorlist,
.auth-form .errorlist {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    color: var(--wayfix-danger) !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.errorlist li {
    color: inherit !important;
}

.text-wayfix-danger,
.form-field .text-wayfix-danger,
.auth-form .text-wayfix-danger {
    color: var(--wayfix-danger) !important;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
    border-color: var(--wayfix-danger);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.auth-form input:focus,
.form-control:focus {
    border-color: var(--wayfix-primary);
    box-shadow: 0 0 0 4px rgba(146, 39, 143, 0.12);
}

.auth-form ul,
.auth-form .helptext {
    margin: 6px 0 0;
    color: var(--wayfix-muted);
    font-size: 12px;
}

.auth-form p {
    margin: 0;
}

.status-badge {
    display: inline-flex;
    min-height: 30px;
    min-width: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.action-group form {
    margin: 0;
}

.status-success {
    border-color: #BFEAD0;
    background: #ECFDF3;
    color: #15803D;
}

.status-warning {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.1);
    color: #B45309;
}

.status-danger {
    border-color: #FECACA;
    background: #FEF2F2;
    color: #B91C1C;
}

.status-info {
    border-color: #C7D2FE;
    background: #EEF2FF;
    color: #4338CA;
}

.status-muted {
    border-color: rgba(107, 114, 128, 0.18);
    background: rgba(107, 114, 128, 0.08);
    color: var(--wayfix-muted);
}

html[data-theme="dark"] .status-success {
    border-color: rgba(74, 222, 128, 0.26);
    background: rgba(6, 78, 59, 0.28);
    color: #86EFAC;
}

html[data-theme="dark"] .status-warning {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(120, 53, 15, 0.28);
    color: #FCD34D;
}

html[data-theme="dark"] .status-danger {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(127, 29, 29, 0.28);
    color: #FCA5A5;
}

html[data-theme="dark"] .status-info {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(30, 58, 138, 0.28);
    color: #BFDBFE;
}

html[data-theme="dark"] .status-muted {
    border-color: rgba(169, 178, 195, 0.22);
    background: rgba(169, 178, 195, 0.08);
    color: var(--wayfix-muted);
}

.responsive-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.responsive-table th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--wayfix-line);
    color: var(--wayfix-muted);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

.responsive-table td {
    padding: 16px;
    border-bottom: 1px solid var(--wayfix-line);
    font-size: 14px;
    vertical-align: middle;
}

html[data-theme="dark"] .responsive-table th,
html[data-theme="dark"] .responsive-table td {
    border-color: var(--wayfix-line);
}

html[data-theme="dark"] .responsive-table tr:hover td {
    background-color: rgba(215, 107, 212, 0.06);
}

table .btn {
    min-width: 76px;
    min-height: 40px;
    height: 40px;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 13px;
}

table .btn-action {
    min-width: 116px;
}

table form {
    display: inline-flex;
    margin: 0;
}

.mobile-list-card {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--wayfix-line);
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    overflow-wrap: anywhere;
}

html[data-theme="dark"] .mobile-list-card {
    background: var(--wayfix-surface);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.mobile-list-card * {
    min-width: 0;
}

.chemical-news {
    overflow: hidden;
}

.chemical-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--wayfix-line);
    padding: 18px 20px;
}

.chemical-news-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.chemical-news-icon-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #D7DEE8;
    border-radius: 12px;
    background: #fff;
    color: #344054;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.chemical-news-icon-button:hover {
    border-color: rgba(146, 39, 143, 0.32);
    background: var(--wayfix-light);
    color: var(--wayfix-primary);
    transform: translateY(-1px);
}

.chemical-news-icon-button:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.chemical-news-icon-button.is-loading .chemical-news-icon {
    animation: chemical-refresh-spin 720ms linear infinite;
}

.chemical-news-more-button .chemical-news-more-icon {
    transform: translateY(-1px);
}

.chemical-news-feature {
    padding: 18px 20px 8px;
}

.chemical-news-feature a,
.chemical-news-empty {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, #F9FAFB 0%, #F3F6FA 100%);
    padding: 0 16px;
    color: var(--wayfix-text);
    overflow: hidden;
}

.chemical-news-feature.is-swapping a {
    animation: chemical-feature-slide 420ms ease both;
}

.chemical-news-feature-label {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #111827;
    padding: 5px 8px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.chemical-news-feature strong {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 900;
}

.chemical-news-feature em {
    flex: 0 0 auto;
    color: var(--wayfix-muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.chemical-news-list {
    display: grid;
    gap: 8px;
    padding: 10px 20px 18px;
}

.chemical-news.is-expanded .chemical-news-list {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 14px;
}

.chemical-news-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 12px 0 8px;
    color: var(--wayfix-text);
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.chemical-news-row:hover,
.chemical-news-row.is-active {
    border-color: rgba(146, 39, 143, 0.18);
    background: var(--wayfix-light);
    color: var(--wayfix-dark);
}

.chemical-news-index {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--wayfix-light);
    color: var(--wayfix-primary);
    font-size: 12px;
    font-weight: 900;
}

.chemical-news-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 900;
}

.chemical-news-meta {
    flex: 0 0 auto;
    color: var(--wayfix-muted);
    font-size: 12px;
    font-weight: 800;
}

.chemical-news-meta b {
    margin-left: 8px;
    color: #8A94A6;
    font-weight: 800;
}

.chemical-news-empty {
    color: var(--wayfix-muted);
    font-size: 14px;
    font-weight: 800;
}

html[data-theme="dark"] .chemical-news-icon-button {
    border-color: var(--wayfix-line);
    background: var(--wayfix-surface-raised);
    color: var(--wayfix-text);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .chemical-news-icon-button:hover {
    border-color: rgba(215, 107, 212, 0.34);
    background: rgba(215, 107, 212, 0.12);
    color: var(--wayfix-primary);
}

html[data-theme="dark"] .chemical-news-feature a,
html[data-theme="dark"] .chemical-news-empty {
    border: 1px solid var(--wayfix-line);
    background: linear-gradient(180deg, #222938 0%, #1D2330 100%);
    color: var(--wayfix-text);
}

html[data-theme="dark"] .chemical-news-feature-label {
    background: #0E1117;
    color: #E9D5FF;
}

html[data-theme="dark"] .chemical-news-row {
    color: var(--wayfix-text);
}

html[data-theme="dark"] .chemical-news-row:hover,
html[data-theme="dark"] .chemical-news-row.is-active {
    border-color: rgba(215, 107, 212, 0.24);
    background: rgba(215, 107, 212, 0.12);
    color: var(--wayfix-text);
}

html[data-theme="dark"] .chemical-news-index {
    background: rgba(215, 107, 212, 0.16);
    color: #E9D5FF;
}

html[data-theme="dark"] .chemical-news-meta b {
    color: var(--wayfix-muted);
}

.company-folder-card {
    position: relative;
    display: flex;
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    border: 1px solid var(--wayfix-line);
    border-radius: 18px;
    background: var(--wayfix-surface);
    padding: 18px 18px 18px 20px;
    color: var(--wayfix-text);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.company-folder-card::before {
    content: "";
    position: absolute;
    inset: 14px auto 14px 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: transparent;
    transition: background 160ms ease, opacity 160ms ease;
}

.company-folder-card:hover,
.company-folder-card:focus-visible {
    border-color: color-mix(in srgb, var(--wayfix-primary) 38%, var(--wayfix-line));
    background: color-mix(in srgb, var(--wayfix-primary) 5%, var(--wayfix-surface));
    box-shadow: 0 18px 40px rgba(146, 39, 143, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.company-folder-card.is-active,
.company-folder-card[aria-current="page"] {
    border-color: color-mix(in srgb, var(--wayfix-primary) 58%, var(--wayfix-line));
    background: color-mix(in srgb, var(--wayfix-primary) 9%, var(--wayfix-surface));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--wayfix-primary) 24%, transparent),
        0 18px 44px rgba(146, 39, 143, 0.14);
}

.company-folder-card.is-active::before,
.company-folder-card[aria-current="page"]::before {
    background: var(--wayfix-primary);
}

.company-folder-card__label,
.company-folder-card__count,
.company-folder-card__meta {
    display: block;
}

.company-folder-card__label {
    color: var(--wayfix-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.company-folder-card__count {
    color: var(--wayfix-text);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.company-folder-card__meta {
    color: var(--wayfix-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.company-folder-card.is-active .company-folder-card__label,
.company-folder-card[aria-current="page"] .company-folder-card__label {
    color: var(--wayfix-primary);
}

html[data-theme="dark"] .company-folder-card {
    background: var(--wayfix-surface);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .company-folder-card:hover,
html[data-theme="dark"] .company-folder-card:focus-visible {
    background: color-mix(in srgb, var(--wayfix-primary) 8%, var(--wayfix-surface));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .company-folder-card.is-active,
html[data-theme="dark"] .company-folder-card[aria-current="page"] {
    background: color-mix(in srgb, var(--wayfix-primary) 13%, var(--wayfix-surface));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--wayfix-primary) 28%, transparent),
        0 20px 48px rgba(0, 0, 0, 0.38);
}

@keyframes chemical-feature-slide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .content-shell {
        width: 100%;
        max-width: 100%;
        gap: 18px;
    }

    .content-shell .grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .content-shell > section,
    .content-shell > article,
    .content-shell > form,
    .content-shell aside {
        scroll-margin-top: 76px;
    }

    .btn {
        width: 100%;
        min-height: 46px;
        height: 46px;
        border-radius: 14px;
        padding-inline: 16px;
    }

    .action-group {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .action-group .btn,
    .action-group form,
    .action-group button {
        width: 100%;
    }

    .flex.flex-wrap.gap-2 .btn,
    .flex.flex-col-reverse.gap-2 .btn,
    .sm\:flex-row .btn {
        width: 100%;
    }

    .form-field input,
    .form-field select,
    .form-field textarea,
    .auth-form input,
    .form-control {
        min-height: 50px;
        font-size: 16px;
    }

    .status-badge {
        flex: 0 0 auto;
        min-height: 30px;
        font-size: 12px;
    }

    .chemical-news-header {
        align-items: flex-start;
        padding: 16px;
    }

    .chemical-news-actions {
        align-items: flex-start;
        gap: 6px;
    }

    .chemical-news-icon-button {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .chemical-news-feature {
        padding: 14px 16px 6px;
    }

    .chemical-news-feature a {
        min-height: 64px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 10px 12px;
    }

    .chemical-news-feature strong,
    .chemical-news-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .chemical-news-feature em,
    .chemical-news-meta {
        display: none;
    }

    .chemical-news-list {
        padding: 8px 16px 16px;
    }

    .chemical-news-row {
        grid-template-columns: 28px minmax(0, 1fr);
        min-height: 44px;
    }

    [id$="Modal"].fixed > div,
    .modal-sheet {
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 24px);
        overflow: auto;
        align-self: flex-end;
        border-radius: 24px 24px 0 0;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .content-shell {
        max-width: 920px;
    }

    .btn {
        min-height: 44px;
    }
}

@media (max-width: 389px) {
    main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .content-shell {
        gap: 14px;
    }

    .mobile-list-card {
        padding: 14px;
    }

    .mobile-tab {
        min-height: 54px;
        border-radius: 14px;
        font-size: 10px;
    }

    .mobile-tab-icon {
        height: 18px;
        font-size: 13px;
    }

    .status-badge {
        padding-inline: 8px;
    }
}

@media (max-width: 320px) {
    main {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .mobile-list-card {
        padding: 12px;
    }

    .mobile-list-card .status-badge {
        font-size: 11px;
        padding-inline: 10px;
    }
}
