﻿:root {
            color-scheme: light;
            --brand-green: #8cc63f;
            --brand-blue: #095ba6;
            --brand-white: #ffffff;
            --border: #d9e2ec;
            --muted: #526579;
            --surface: #ffffff;
            --surface-soft: #f4f8fb;
            --surface-raised: #ffffff;
            --text: #172331;
            --accent: var(--brand-blue);
            --error: #b42318;
            --body-background:
                linear-gradient(180deg, rgba(9, 91, 166, 0.08), transparent 260px),
                var(--surface-soft);
            --header-background: var(--brand-white);
            --header-border: rgba(9, 91, 166, 0.14);
            --header-shadow: 0 10px 28px rgba(9, 91, 166, 0.08);
            --field-border: rgba(9, 91, 166, 0.22);
            --tooltip-background: rgba(31, 35, 40, 0.96);
            --tooltip-text: #ffffff;
            --button-hover-text: #ffffff;
            --button-hover-background: color-mix(in srgb, var(--brand-blue) 88%, #000000);
            --button-hover-border: color-mix(in srgb, var(--brand-blue) 88%, #000000);
            --secondary-hover-text: var(--brand-blue);
            --secondary-hover-background: color-mix(in srgb, var(--brand-green) 12%, var(--surface));
        }

        :root[data-theme="dark"] {
            color-scheme: dark;
            --border: rgba(255, 255, 255, 0.14);
            --muted: #b9c9d8;
            --surface: #102235;
            --surface-soft: #071828;
            --surface-raised: #132b43;
            --text: #f6fbff;
            --accent: var(--brand-green);
            --error: #ff6b5f;
            --body-background:
                linear-gradient(180deg, rgba(9, 91, 166, 0.42), transparent 320px),
                linear-gradient(135deg, rgba(140, 198, 63, 0.12), transparent 420px),
                var(--surface-soft);
            --header-background: #0c2137;
            --header-border: rgba(140, 198, 63, 0.22);
            --header-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
            --field-border: rgba(255, 255, 255, 0.18);
            --tooltip-background: rgba(246, 251, 255, 0.96);
            --tooltip-text: #071828;
            --button-hover-text: #071828;
            --button-hover-background: color-mix(in srgb, var(--brand-green) 82%, #ffffff);
            --button-hover-border: color-mix(in srgb, var(--brand-green) 80%, #ffffff);
            --secondary-hover-text: #ffffff;
            --secondary-hover-background: rgba(140, 198, 63, 0.16);
        }

        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: Arial, sans-serif;
            color: var(--text);
            background: var(--body-background);
        }

        main {
            width: min(1120px, calc(100% - 32px));
            margin: 32px auto;
        }

        header {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 24px;
            padding: 18px 20px;
            background: var(--header-background);
            border: 1px solid var(--header-border);
            border-top: 5px solid var(--brand-green);
            border-radius: 8px;
            box-shadow: var(--header-shadow);
        }

        .brand-heading {
            display: flex;
            align-items: center;
            gap: 14px;
            min-width: 0;
        }

        .brand-mark {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 54px;
            width: 54px;
            height: 54px;
            padding: 7px;
            background: var(--brand-white);
            border: 1px solid rgba(9, 91, 166, 0.14);
            border-radius: 8px;
            box-shadow: inset 0 0 0 2px rgba(140, 198, 63, 0.12);
        }

        .brand-mark img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .brand-copy {
            min-width: 0;
        }

        h1 {
            margin: 0 0 6px;
            font-size: 30px;
            line-height: 1.2;
            color: var(--brand-blue);
        }

        :root[data-theme="dark"] h1 {
            color: #ffffff;
        }

        p {
            margin: 0;
        }

        .muted {
            color: var(--muted);
        }

        button {
            min-height: 40px;
            padding: 8px 16px;
            color: #ffffff;
            background: var(--accent);
            border: 1px solid var(--accent);
            border-radius: 6px;
            cursor: pointer;
            font-weight: 700;
            transition:
                background-color 0.14s ease,
                border-color 0.14s ease,
                box-shadow 0.14s ease,
                transform 0.14s ease;
        }

        button:hover:not(:disabled),
        button:focus-visible:not(:disabled) {
            color: var(--button-hover-text);
            background: var(--button-hover-background);
            border-color: var(--button-hover-border);
            box-shadow: 0 4px 12px rgba(9, 91, 166, 0.18);
        }

        button:focus-visible {
            outline: 3px solid rgba(140, 198, 63, 0.3);
            outline-offset: 2px;
        }

        button:disabled {
            cursor: wait;
            opacity: 0.7;
        }

        [data-tooltip] {
            position: relative;
        }

        [data-tooltip]::after {
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            z-index: 20;
            width: max-content;
            max-width: min(260px, calc(100vw - 32px));
            padding: 7px 9px;
            color: var(--tooltip-text);
            background: var(--tooltip-background);
            border-radius: 6px;
            box-shadow: 0 8px 20px rgba(31, 35, 40, 0.18);
            content: attr(data-tooltip);
            font-size: 12px;
            font-weight: 700;
            line-height: 1.3;
            opacity: 0;
            pointer-events: none;
            text-align: left;
            transform: translate(-50%, 4px);
            transition:
                opacity 0.14s ease,
                transform 0.14s ease;
            white-space: normal;
        }

        [data-tooltip]::before {
            position: absolute;
            bottom: calc(100% + 3px);
            left: 50%;
            z-index: 21;
            width: 10px;
            height: 10px;
            background: var(--tooltip-background);
            content: "";
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, 4px) rotate(45deg);
            transition:
                opacity 0.14s ease,
                transform 0.14s ease;
        }

        [data-tooltip]:hover::after,
        [data-tooltip]:focus-visible::after,
        [data-tooltip]:focus-within::after,
        [data-tooltip]:hover::before,
        [data-tooltip]:focus-visible::before,
        [data-tooltip]:focus-within::before {
            opacity: 1;
            transform: translate(-50%, 0);
        }

        .actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 8px;
        }

        .logout-form {
            display: contents;
        }

        .search-field {
            display: flex;
            flex: 1 1 240px;
            min-width: min(260px, 100%);
        }

        .search-field input {
            width: 100%;
            min-height: 40px;
            padding: 8px 12px;
            color: var(--text);
            background: var(--surface);
            border: 1px solid var(--field-border);
            border-radius: 6px;
            font: inherit;
        }

        .search-field input:focus {
            border-color: var(--brand-blue);
            box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.24);
            outline: none;
        }

        .secondary-button {
            color: var(--accent);
            background: var(--surface);
            border-color: rgba(9, 91, 166, 0.25);
        }

        .secondary-button:hover:not(:disabled),
        .secondary-button:focus-visible:not(:disabled) {
            color: var(--secondary-hover-text);
            background: var(--secondary-hover-background);
            border-color: color-mix(in srgb, var(--brand-blue) 46%, var(--border));
        }

        .theme-toggle-button {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .theme-toggle-button svg {
            flex: 0 0 auto;
            width: 18px;
            height: 18px;
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 1.9;
        }

        .theme-icon-moon {
            display: none;
        }

        :root[data-theme="dark"] .theme-icon-sun {
            display: none;
        }

        :root[data-theme="dark"] .theme-icon-moon {
            display: block;
        }

        :root[data-theme="dark"] .theme-toggle-button {
            color: #ffffff;
            border-color: rgba(140, 198, 63, 0.42);
        }

        .icon-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            width: 32px;
            min-height: 32px;
            padding: 0;
            color: var(--accent);
            background: var(--surface);
            border-color: rgba(9, 91, 166, 0.22);
            font-size: 16px;
            line-height: 1;
        }

        .status {
            min-height: 24px;
            margin-bottom: 16px;
            color: var(--muted);
            font-weight: 700;
        }

        .summary-board {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
            margin-bottom: 16px;
        }

        .summary-item {
            min-height: 74px;
            padding: 10px 12px;
            background: var(--surface);
            border: 1px solid rgba(9, 91, 166, 0.14);
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(9, 91, 166, 0.07);
        }

        .summary-filter {
            width: 100%;
            color: inherit;
            cursor: pointer;
            font: inherit;
            text-align: left;
        }

        .summary-filter:hover,
        .summary-filter:focus {
            color: var(--brand-white);
            background: var(--brand-blue);
            border-color: var(--brand-green);
            box-shadow:
                0 4px 14px rgba(9, 91, 166, 0.1),
                0 0 0 3px rgba(140, 198, 63, 0.18);
            outline: none;
        }

        .summary-filter.active {
            color: var(--brand-white);
            background: var(--brand-blue);
            border-color: var(--brand-blue);
            box-shadow:
                0 5px 16px rgba(9, 91, 166, 0.12),
                inset 0 0 0 2px rgba(9, 91, 166, 0.24);
        }

        .summary-filter:hover .summary-label,
        .summary-filter:focus .summary-label,
        .summary-filter.active .summary-label,
        .summary-filter:hover .summary-note,
        .summary-filter:focus .summary-note,
        .summary-filter.active .summary-note,
        .summary-filter:hover .summary-value,
        .summary-filter:focus .summary-value,
        .summary-filter.active .summary-value {
            color: var(--brand-white);
        }

        .summary-label {
            display: block;
            color: var(--muted);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .summary-value {
            display: block;
            margin-top: 6px;
            color: var(--text);
            font-size: 24px;
            font-weight: 800;
            line-height: 1;
        }

        .summary-note {
            display: block;
            margin-top: 6px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.25;
        }

        .summary-success .summary-value {
            color: #4d8f1f;
        }

        .summary-warning .summary-value {
            color: #9a6700;
        }

        .summary-config .summary-value {
            color: var(--brand-blue);
        }

        .summary-error .summary-value {
            color: var(--error);
        }

        :root[data-theme="dark"] .summary-item {
            background: var(--surface-raised);
            border-color: rgba(140, 198, 63, 0.16);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
        }

        :root[data-theme="dark"] .summary-success .summary-value {
            color: var(--brand-green);
        }

        :root[data-theme="dark"] .summary-warning .summary-value {
            color: #ffd166;
        }

        :root[data-theme="dark"] .summary-config .summary-value,
        :root[data-theme="dark"] .meta-label {
            color: #77b9f1;
        }

        .error {
            color: var(--error);
            font-weight: 700;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 10px;
            align-items: stretch;
        }

        .card {
            --company-primary: var(--accent);
            --company-secondary: var(--border);
            display: flex;
            flex-direction: column;
            padding: 12px;
            background:
                linear-gradient(
                    135deg,
                    color-mix(in srgb, var(--company-secondary) 18%, transparent),
                    transparent 44%
                ),
                var(--surface);
            border: 1px solid color-mix(
                in srgb,
                var(--company-secondary) 70%,
                var(--border)
            );
            border-top: 4px solid var(--company-primary);
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(9, 91, 166, 0.07);
            transition:
                background-color 0.18s ease,
                border-color 0.18s ease,
                box-shadow 0.18s ease;
        }

        .card:hover {
            box-shadow: 0 8px 20px rgba(9, 91, 166, 0.1);
        }

        :root[data-theme="dark"] .card {
            background:
                linear-gradient(
                    135deg,
                    color-mix(in srgb, var(--company-secondary) 14%, transparent),
                    transparent 46%
                ),
                var(--surface-raised);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.26);
        }

        :root[data-theme="dark"] .card:hover {
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
        }

        .card h2 {
            margin: 0;
            font-size: 15px;
            line-height: 1.25;
        }

        .card-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            min-height: 48px;
        }

        .company-heading {
            display: flex;
            align-items: center;
            flex: 1 1 auto;
            gap: 10px;
            min-width: 0;
        }

        .company-logo {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 1;
            flex: 0 0 42px;
            width: 42px;
            height: 42px;
            overflow: hidden;
            color: var(--muted);
            background: var(--surface-soft);
            border: 1px solid color-mix(
                in srgb,
                var(--company-primary) 48%,
                var(--border)
            );
            border-radius: 8px;
            font-size: 13px;
            font-weight: 800;
            text-transform: uppercase;
            transition:
                box-shadow 0.16s ease,
                transform 0.16s ease;
        }

        .company-logo span {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .company-logo img {
            display: block;
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background: var(--surface-soft);
            object-fit: contain;
        }

        .company-logo:has(img):hover,
        .company-logo:has(img):focus-within,
        .company-logo.logo-loaded:hover,
        .company-logo.logo-loaded:focus-within {
            z-index: 5;
            box-shadow: 0 10px 24px rgba(31, 35, 40, 0.2);
            transform: scale(2.35);
            transform-origin: top left;
        }

        .card-title {
            flex: 1 1 auto;
            min-width: 0;
        }

        .card.logo-loaded h2,
        .card.company-themed h2 {
            color: color-mix(in srgb, var(--company-primary) 78%, var(--text));
        }

        .compact-rate {
            flex: 0 1 auto;
            color: var(--text);
            font-size: 14px;
            font-weight: 800;
            line-height: 1.2;
            text-align: right;
            white-space: nowrap;
        }

        .compact-rate span {
            display: block;
            color: var(--muted);
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .tc-status-dot {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            width: 12px;
            height: 12px;
            margin-top: 3px;
            background: var(--error);
            border: 2px solid var(--surface);
            border-radius: 999px;
            box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.18);
        }

        .tc-status-dot span {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
        }

        .meta {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 6px 10px;
            margin-top: 10px;
            color: var(--muted);
            font-size: 12px;
            overflow-wrap: anywhere;
        }

        .meta-item {
            min-width: 0;
        }

        .meta-label {
            display: block;
            margin-bottom: 2px;
            color: var(--brand-blue);
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .card-error,
        .card-warning {
            border-color: color-mix(
                in srgb,
                var(--company-secondary) 70%,
                var(--border)
            );
        }

        .card-loading {
            min-height: 138px;
        }

        .loading-line {
            height: 12px;
            margin-top: 10px;
            overflow: hidden;
            background: #eaeef2;
            border-radius: 999px;
        }

        :root[data-theme="dark"] .loading-line {
            background: rgba(255, 255, 255, 0.12);
        }

        .loading-line::after {
            display: block;
            width: 45%;
            height: 100%;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(140, 198, 63, 0.34),
                transparent
            );
            content: "";
            animation: loading-sweep 1.2s infinite;
        }

        @keyframes loading-sweep {
            from {
                transform: translateX(-100%);
            }

            to {
                transform: translateX(230%);
            }
        }

        .tc-badge {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            max-width: 100%;
            min-height: 24px;
            margin-top: 10px;
            padding: 4px 8px;
            color: #6a2d00;
            background: #fff4d6;
            border: 1px solid #f0c36a;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.25;
        }

        .tc-badge-error {
            color: #6f1d16;
            background: #fff0ed;
            border-color: #f3b7ad;
        }

        :root[data-theme="dark"] .tc-badge {
            color: #ffe8ad;
            background: rgba(255, 209, 102, 0.14);
            border-color: rgba(255, 209, 102, 0.38);
        }

        :root[data-theme="dark"] .tc-badge-error {
            color: #ffd8d3;
            background: rgba(255, 107, 95, 0.14);
            border-color: rgba(255, 107, 95, 0.38);
        }

        .tc-error-detail {
            margin-top: 8px;
            color: var(--muted);
            font-size: 12px;
            font-weight: 700;
        }

        .card-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: auto;
            padding-top: 14px;
        }

        .module-tools {
            display: flex;
            flex: 1 1 100%;
            flex-wrap: wrap;
            gap: 8px;
            min-width: 0;
            padding: 10px;
            background: color-mix(in srgb, var(--company-secondary) 10%, var(--surface));
            border: 1px solid color-mix(
                in srgb,
                var(--company-primary) 22%,
                var(--border)
            );
            border-radius: 6px;
        }

        .module-tools[hidden] {
            display: none;
        }

        .module-field {
            display: flex;
            flex: 1 1 100%;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }

        .module-field span {
            color: var(--muted);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .module-field input {
            width: 100%;
            min-height: 34px;
            padding: 7px 10px;
            color: var(--text);
            background: var(--surface);
            border: 1px solid color-mix(
                in srgb,
                var(--company-primary) 30%,
                var(--border)
            );
            border-radius: 6px;
            font: inherit;
            font-size: 13px;
        }

        .module-field input:focus {
            border-color: color-mix(
                in srgb,
                var(--company-primary) 70%,
                var(--border)
            );
            box-shadow: 0 0 0 3px color-mix(
                in srgb,
                var(--company-secondary) 22%,
                transparent
            );
            outline: none;
        }

        .module-live-status {
            min-height: 16px;
            color: var(--muted);
            font-size: 11px;
            font-weight: 700;
            line-height: 1.25;
        }

        .module-installed {
            color: #4d8f1f;
        }

        .module-not-installed {
            color: var(--error);
        }

        :root[data-theme="dark"] .module-installed {
            color: var(--brand-green);
        }

        .module-suggestions {
            display: grid;
            gap: 5px;
            max-height: 190px;
            max-width: 100%;
            overflow-x: hidden;
            overflow-y: auto;
            padding: 5px;
            background: color-mix(in srgb, var(--surface) 92%, var(--company-secondary));
            border: 1px solid color-mix(
                in srgb,
                var(--company-primary) 34%,
                var(--border)
            );
            border-radius: 6px;
        }

        .module-suggestions[hidden] {
            display: none;
        }

        .module-suggestion {
            display: grid;
            grid-template-columns: minmax(64px, 0.38fr) minmax(0, 1fr) 10px;
            gap: 6px;
            align-items: center;
            width: 100%;
            max-width: 100%;
            min-height: 0;
            min-width: 0;
            padding: 6px 7px;
            color: var(--text);
            background: var(--surface);
            border: 1px solid transparent;
            border-radius: 5px;
            font: inherit;
            font-size: 11px;
            text-align: left;
            overflow: hidden;
        }

        .module-suggestion:hover:not(:disabled),
        .module-suggestion:focus-visible:not(:disabled) {
            color: var(--text);
            background: color-mix(
                in srgb,
                var(--company-secondary) 18%,
                var(--surface)
            );
            border-color: color-mix(
                in srgb,
                var(--company-primary) 38%,
                var(--border)
            );
            box-shadow: none;
        }

        .module-suggestion-name {
            min-width: 0;
            overflow: hidden;
            color: var(--error);
            font-size: 11px;
            font-weight: 800;
            justify-self: start;
            max-width: 100%;
            text-align: left;
            text-overflow: ellipsis;
            text-transform: lowercase;
            white-space: nowrap;
        }

        .module-suggestion-desc {
            min-width: 0;
            overflow: hidden;
            color: var(--muted);
            font-size: 10px;
            font-weight: 700;
            justify-self: stretch;
            max-width: 100%;
            text-align: left;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .module-suggestion-state {
            width: 10px;
            height: 10px;
            background: var(--error);
            border: 2px solid var(--surface);
            border-radius: 999px;
            box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.18);
        }

        .module-suggestion-installed {
            background: var(--brand-green);
            box-shadow: 0 0 0 2px rgba(140, 198, 63, 0.22);
        }

        .module-suggestion-not-installed {
            background: var(--error);
        }

        :root[data-theme="dark"] .module-suggestion-state {
            border-color: var(--surface-raised);
        }

        .card-actions button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            flex: 1 1 130px;
            min-height: 34px;
            padding: 7px 10px;
            font-size: 12px;
            line-height: 1.15;
            white-space: nowrap;
            transition:
                background-color 0.14s ease,
                border-color 0.14s ease,
                box-shadow 0.14s ease,
                transform 0.14s ease;
        }

        .card-actions button:hover:not(:disabled),
        .card-actions button:focus-visible:not(:disabled) {
            color: color-mix(in srgb, var(--company-primary) 84%, #000000);
            background: color-mix(
                in srgb,
                var(--company-secondary) 16%,
                var(--surface)
            );
            box-shadow: 0 2px 6px rgba(31, 35, 40, 0.12);
            transform: translateY(-1px);
        }

        .card-actions button:focus-visible {
            outline: 3px solid rgba(140, 198, 63, 0.22);
            outline-offset: 2px;
        }

        .card-actions svg {
            flex: 0 0 auto;
            width: 15px;
            height: 15px;
            stroke-width: 2.2;
        }

        .company-themed .secondary-button {
            color: color-mix(in srgb, var(--company-primary) 84%, #000000);
            border-color: color-mix(
                in srgb,
                var(--company-primary) 52%,
                var(--border)
            );
        }

        :root[data-theme="dark"] .company-themed .secondary-button,
        :root[data-theme="dark"] .card-actions button:hover:not(:disabled),
        :root[data-theme="dark"] .card-actions button:focus-visible:not(:disabled) {
            color: color-mix(in srgb, var(--company-primary) 58%, #ffffff);
        }

        .action-message {
            min-height: 18px;
            margin-top: 8px;
            color: var(--muted);
            font-size: 12px;
            font-weight: 700;
        }

        .modal-backdrop {
            position: fixed;
            inset: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(7, 24, 40, 0.54);
        }

        .modal-backdrop[hidden] {
            display: none;
        }

        .modal-dialog {
            width: min(420px, 100%);
            padding: 18px;
            color: var(--text);
            background: var(--surface);
            border: 1px solid var(--header-border);
            border-top: 5px solid var(--brand-green);
            border-radius: 8px;
            box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
        }

        .modal-dialog h2 {
            margin: 0 0 8px;
            color: var(--brand-blue);
            font-size: 18px;
            line-height: 1.25;
        }

        :root[data-theme="dark"] .modal-dialog h2 {
            color: #ffffff;
        }

        .modal-dialog p {
            color: var(--muted);
            font-size: 14px;
            line-height: 1.45;
        }

        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 18px;
        }

        .login-page {
            min-height: 100vh;
        }

        .login-shell {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: calc(100vh - 64px);
        }

        .login-panel {
            width: min(420px, 100%);
            padding: 24px;
            background: var(--header-background);
            border: 1px solid var(--header-border);
            border-top: 5px solid var(--brand-green);
            border-radius: 8px;
            box-shadow: var(--header-shadow);
        }

        .login-brand {
            margin-bottom: 16px;
        }

        .login-panel h1 {
            font-size: 26px;
        }

        .login-form {
            display: grid;
            gap: 14px;
            margin-top: 20px;
        }

        .login-form label {
            display: grid;
            gap: 6px;
        }

        .login-form span {
            color: var(--muted);
            font-size: 12px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .login-form input {
            min-height: 42px;
            padding: 9px 12px;
            color: var(--text);
            background: var(--surface);
            border: 1px solid var(--field-border);
            border-radius: 6px;
            font: inherit;
        }

        .login-form input:focus {
            border-color: var(--brand-blue);
            box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.24);
            outline: none;
        }

        .login-error {
            margin-top: 14px;
            color: var(--error);
            font-size: 13px;
            font-weight: 800;
        }

        .details .error {
            margin-top: 8px;
        }

        .details {
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
        }

        .collapsed .details {
            display: none;
        }

        .card.filtered-out {
            display: none;
        }

        @media (max-width: 760px) {
            .meta {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 640px) {
            main {
                width: min(100% - 24px, 1120px);
                margin-top: 20px;
            }

            header {
                align-items: stretch;
                flex-direction: column;
            }

            .brand-heading {
                align-items: flex-start;
            }

            .brand-mark {
                flex-basis: 46px;
                width: 46px;
                height: 46px;
            }

            button {
                width: 100%;
            }

            .actions {
                justify-content: stretch;
            }

            .search-field {
                flex-basis: 100%;
            }

            .card-header {
                align-items: flex-start;
            }

            .compact-rate {
                text-align: left;
                white-space: normal;
            }

            .icon-button {
                width: 32px;
            }
        }
