:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #dbeafe;
    --color-border: #e2e8f0;
    --color-accent: #0ea5e9;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1120px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

/* Accessibility: visible focus for keyboard users */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.btn:focus-visible,
.theme-toggle:focus-visible,
.lang-switch:focus-visible,
.comfort-login-trigger:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/* Accessibility: screen-reader-only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-hover);
}

.container {
    width: min(100% - 2rem, var(--container-width));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    font-weight: 700;
}

.logo:hover {
    color: var(--color-text);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-text {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.15s;
}

.main-nav a:hover {
    color: var(--color-text);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--color-surface);
    transition: border-color 0.15s, background 0.15s;
}

.lang-switch:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Main */
main {
    flex: 1;
}

/* Hero */
.hero {
    padding: 4rem 0 5rem;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.08), transparent),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(14, 165, 233, 0.06), transparent),
        var(--color-bg);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    margin: 0 0 2rem;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 32rem;
}

.hero-visual {
    position: relative;
    height: 280px;
}

.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    font-size: 2rem;
}

.hero-card-1 {
    top: 20%;
    left: 25%;
    animation: float 6s ease-in-out infinite;
}

.hero-card-2 {
    top: 45%;
    left: 55%;
    animation: float 6s ease-in-out infinite 1s;
}

.hero-card-3 {
    top: 10%;
    left: 65%;
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Tools section */
.tools-section {
    padding: 3rem 0 5rem;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.02em;
}

.section-header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

.category-block {
    margin-bottom: 3rem;
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.category-header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.category-header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

a.tool-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

.tool-card--disabled {
    opacity: 0.72;
    cursor: default;
}

.tool-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.tool-body h3 {
    margin: 0 0 0.375rem;
    font-size: 1.0625rem;
}

.tool-body p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.tool-link-label {
    margin-top: auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
}

.badge {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    color: var(--color-text-muted);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Tool placeholder page */
.page-hero {
    padding: 2.5rem 0 1.5rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.page-hero--compact h1 {
    margin: 0.75rem 0 0;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.02em;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.breadcrumb li + li::before {
    content: "›";
    margin-right: 0.5rem;
    color: var(--color-border);
}

.breadcrumb a {
    color: var(--color-text-muted);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.tool-placeholder {
    padding: 3rem 0 5rem;
}

.placeholder-card {
    max-width: 28rem;
    margin-inline: auto;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.placeholder-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.placeholder-card p {
    margin: 0 0 1.5rem;
    color: var(--color-text-muted);
}

/* Tool guide (SEO section below tool) */
.tool-guide {
    padding: 0 0 5rem;
}

.tool-guide .container {
    max-width: 48rem;
}

.tool-guide h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.tool-guide h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.tool-guide p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.tool-guide p + p {
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    padding: 2.5rem 0;
    background: var(--color-text);
    color: #94a3b8;
}

.footer-inner {
    display: grid;
    gap: 1.5rem;
}

.footer-brand .logo-text {
    display: block;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin: 0;
    font-size: 0.875rem;
    max-width: 24rem;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: #94a3b8;
    font-size: 0.875rem;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copy {
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.8125rem;
}

/* Legal pages */
.legal-content {
    padding: 2.5rem 0 4rem;
}

.legal-content__inner {
    max-width: 48rem;
}

.legal-article h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.legal-article h2:first-child {
    margin-top: 0;
}

.legal-article p {
    margin: 0 0 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.legal-article a {
    color: var(--color-primary);
    word-break: break-word;
}

.legal-article a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-visual {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .header-inner {
        min-height: 64px;
    }
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .footer-copy {
        grid-column: 1 / -1;
    }
}

/* Admin area */
.admin-body {
    background: #eef2f7;
}

.admin-header {
    background: #0f172a;
    color: #fff;
}

.admin-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.admin-logo {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-logo:hover {
    color: #dbeafe;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.admin-nav a {
    color: #cbd5e1;
}

.admin-nav a:hover {
    color: #fff;
}

.admin-main {
    padding: 2.5rem 0 4rem;
}

.admin-card {
    max-width: 720px;
    margin-inline: auto;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.admin-card--narrow {
    max-width: 420px;
}

.admin-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.admin-lead {
    margin: 0 0 1.5rem;
    color: var(--color-text-muted);
}

.admin-panel {
    padding: 1.25rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.admin-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.admin-panel p {
    margin: 0;
    color: var(--color-text-muted);
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.admin-field label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-field input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
}

.admin-field input:focus {
    outline: 2px solid var(--color-primary-light);
    border-color: var(--color-primary);
}

.admin-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.admin-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.admin-alert--warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.admin-card--wide {
    max-width: 1100px;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat {
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.admin-stat-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.admin-stat-value {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
    padding: 0.625rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.admin-table-empty {
    color: var(--color-text-muted);
}

.admin-table-scroll {
    overflow-x: auto;
}

@media (max-width: 900px) {
    .admin-stats-grid,
    .admin-grid-2 {
        grid-template-columns: 1fr;
    }

    .admin-page-header {
        flex-direction: column;
    }
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.96);
    color: #e2e8f0;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.25);
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-consent-copy h2 {
    margin: 0 0 0.375rem;
    font-size: 1.125rem;
    color: #fff;
}

.cookie-consent-copy p {
    margin: 0;
    max-width: 42rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.75rem;
}

.cookie-consent-actions form {
    margin: 0;
}

@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-actions .btn {
        width: 100%;
    }
}

/* Comfort Login */
.comfort-login-trigger,
.comfort-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.comfort-login-trigger:hover,
.comfort-logout-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.comfort-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comfort-user-email {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

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

.comfort-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.comfort-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.comfort-modal-dialog {
    position: relative;
    width: min(100%, 28rem);
    max-height: 90vh;
    overflow: auto;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.comfort-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.comfort-modal-intro h2 {
    margin: 0 0 0.375rem;
    font-size: 1.5rem;
}

.comfort-modal-intro p {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
}

.comfort-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.comfort-tab {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font-weight: 600;
    cursor: pointer;
}

.comfort-tab.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.comfort-panel {
    display: none;
}

.comfort-panel.is-active {
    display: block;
}

.comfort-form {
    display: grid;
    gap: 0.875rem;
}

.comfort-field label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.comfort-field input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
}

.comfort-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.comfort-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.comfort-flash {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.comfort-flash--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.comfort-flash--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

body.comfort-modal-open {
    overflow: hidden;
}

.newsletter-result {
    padding: 0 0 4rem;
}

.newsletter-result-card {
    max-width: 36rem;
    margin-inline: auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.newsletter-result-card--success {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.newsletter-result-card--error {
    border-color: #fecaca;
    background: #fef2f2;
}

.newsletter-result-card p {
    margin: 0 0 1.25rem;
}

/* Planning Poker tool */
.planning-poker-tool {
    padding: 2rem 0 3rem;
}

.pp-app {
    max-width: 920px;
    margin-inline: auto;
}

.pp-panel {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pp-panel[hidden] {
    display: none;
}

.pp-panel h2,
.pp-panel h3 {
    margin: 0 0 0.75rem;
}

.pp-lead {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
}

.pp-inline-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.pp-inline-link:hover {
    color: var(--color-primary-hover);
}

.pp-form {
    display: grid;
    gap: 0.75rem;
    max-width: 24rem;
}

.pp-form input,
.pp-story-row input,
.pp-inline-form input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
}

.pp-lobby-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.pp-inline-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pp-inline-form input {
    width: 8rem;
    text-transform: uppercase;
}

.pp-welcome {
    margin: 0 0 1rem;
    font-weight: 600;
}

.pp-room-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.pp-room-meta {
    min-width: 0;
}

.pp-room-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.pp-room-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.875rem;
}

.pp-room-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.pp-room-code {
    font-size: 1.5rem;
    letter-spacing: 0.12em;
}

.pp-copy-btn {
    border: 0;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

.pp-room-status {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 600;
}

.pp-story {
    margin-bottom: 1rem;
}

.pp-app [hidden] {
    display: none !important;
}

.pp-story-label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.pp-story-display {
    margin: 0;
    padding: 0.625rem 0;
    color: var(--color-text);
    line-height: 1.5;
}

.pp-story-display:empty::before {
    content: '—';
    color: var(--color-text-muted);
}

.pp-moderator-badge {
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
}

.pp-consensus {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.9375rem;
}

.pp-consensus.is-discuss {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.pp-participant-host {
    margin-left: 0.35rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.pp-story-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pp-story-row input {
    flex: 1;
    min-width: 12rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.pp-story-row input.is-saved {
    animation: pp-story-saved 1.4s ease-out;
}

@keyframes pp-story-saved {
    0% {
        border-color: #22c55e;
        background-color: #dcfce7;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
    }

    60% {
        border-color: #22c55e;
        background-color: #ecfdf5;
        box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
    }

    100% {
        border-color: var(--color-border);
        background-color: #fff;
        box-shadow: none;
    }
}

.pp-player-line {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
}

.pp-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pp-card {
    min-height: 4.5rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.pp-card:hover:not(:disabled) {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.pp-card.is-selected {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.pp-card:disabled {
    cursor: default;
    opacity: 0.85;
}

.pp-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.pp-participants ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pp-participants li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--color-border);
}

.pp-participants li:last-child {
    border-bottom: 0;
}

.pp-participant-status {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.pp-error {
    margin: 1rem 0 0;
    color: #991b1b;
    font-size: 0.875rem;
}

.pp-error[hidden] {
    display: none;
}

.pp-estimate-history {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.pp-estimate-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.pp-estimate-history-header h3 {
    margin: 0;
}

.pp-estimate-history h3 {
    margin: 0 0 0.75rem;
}

.pp-estimate-history-empty {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.pp-estimate-history-empty[hidden] {
    display: none;
}

.pp-estimate-history-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pp-estimate;
}

.pp-estimate-history-item {
    counter-increment: pp-estimate;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.pp-estimate-history-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pp-estimate-history-story {
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.pp-estimate-history-story::before {
    content: counter(pp-estimate) '. ';
    color: var(--color-text-muted);
}

.pp-estimate-history-result {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: #065f46;
}

.pp-estimate-history-result.is-discuss {
    color: #9a3412;
}

.pp-estimate-final {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pp-estimate-final-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.pp-estimate-final-input {
    width: 6rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.875rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.pp-estimate-final-input.is-saved {
    animation: pp-story-saved 1.4s ease-out;
}

.pp-estimate-history[hidden] {
    display: none !important;
}

/* Terminabstimmung */
.terminabstimmung-tool {
    padding: 2rem 0 3rem;
}

.tp-app {
    max-width: 960px;
    margin-inline: auto;
}

.tp-app [hidden] {
    display: none !important;
}

.tp-panel {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tp-panel h2,
.tp-panel h3 {
    margin: 0 0 0.75rem;
}

.tp-lead,
.tp-muted {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
}

.tp-inline-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--color-primary);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.tp-inline-link:hover {
    color: var(--color-primary-hover);
}

.tp-form {
    display: grid;
    gap: 0.5rem;
    max-width: 30rem;
}

.tp-form label,
.tp-form-label {
    font-weight: 600;
    margin-top: 0.5rem;
}

.tp-form input,
.tp-form textarea,
.tp-inline-form input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
}

.tp-welcome {
    margin: 0 0 1.25rem;
    font-weight: 600;
}

.tp-lobby-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .tp-lobby-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.tp-option-list {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tp-option-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tp-option-input {
    flex: 1;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
}

.tp-option-remove {
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.tp-option-remove:hover {
    color: #c0392b;
    border-color: #c0392b;
}

.tp-inline-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tp-inline-form input {
    width: 8rem;
    text-transform: uppercase;
}

.tp-poll-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tp-poll-title {
    margin: 0 0 0.35rem;
}

.tp-poll-desc {
    margin: 0 0 0.5rem;
    color: var(--color-text-muted);
}

.tp-poll-code-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.9375rem;
}

.tp-poll-label {
    color: var(--color-text-muted);
}

.tp-poll-code {
    letter-spacing: 0.12em;
    font-size: 1.125rem;
}

.tp-copy-btn {
    border: 0;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

.tp-poll-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tp-poll-status {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 600;
}

.tp-poll-status.is-closed {
    background: #e8f5e9;
    color: #1e7e34;
}

.tp-player-line {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 1rem;
}

.tp-moderator-badge {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.tp-final-notice {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: #e8f5e9;
    color: #1e7e34;
    font-weight: 600;
}

.tp-personal-link {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
}

.tp-personal-link-title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-text, #1a1a1a);
}

.tp-personal-link-hint {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.tp-personal-link-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.tp-personal-link-input {
    flex: 1;
    min-width: 12rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.8125rem;
    background: var(--color-surface);
    color: var(--color-text-muted);
}

.tp-personal-link-warning {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b45309;
}

.tp-deadline-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #fff3cd;
    color: #856404;
    font-size: 0.8125rem;
    font-weight: 600;
}

.tp-deadline-badge.is-passed {
    background: #fdecea;
    color: #c0392b;
}

.tp-evaluation {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: #eef6ff;
    border: 1px solid #b8daff;
    font-weight: 700;
}

.tp-timezone-display,
.tp-timezone-note {
    font-size: 0.875rem;
}

.tp-comment-box {
    margin: 0 0 1rem;
}

.tp-comment-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tp-comment-row input {
    flex: 1;
    min-width: 12rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
}

.tp-comment-row input.is-saved {
    animation: pp-story-saved 1.4s ease-out;
}

.tp-host-edit,
.tp-participant-manage,
.tp-history-panel {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fafbfc;
}

.tp-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-history-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
}

.tp-history-item:last-child {
    border-bottom: 0;
}

.tp-history-title {
    font-weight: 600;
}

.tp-history-meta {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.tp-participant-manage-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-participant-manage-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.tp-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.tp-grid tr.is-best {
    background: #eef6ff;
}

.tp-tally-score {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.tp-choice-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tp-grid-wrap {
    overflow-x: auto;
}

.tp-grid {
    border-collapse: collapse;
    width: 100%;
    min-width: 480px;
}

.tp-grid th,
.tp-grid td {
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.6rem;
    text-align: center;
    vertical-align: middle;
}

.tp-grid thead th {
    background: var(--color-surface, #f7f8fa);
    font-size: 0.875rem;
}

.tp-col-option {
    text-align: left;
    white-space: nowrap;
}

.tp-col-me {
    background: var(--color-primary-light);
}

.tp-option-date {
    display: block;
    font-weight: 600;
}

.tp-final-btn {
    margin-top: 0.35rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    cursor: pointer;
}

.tp-final-btn.is-active,
.tp-final-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.tp-final-marker {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #1e7e34;
    font-weight: 600;
}

.tp-grid tr.is-final {
    background: #f1faf2;
}

.tp-vote-cell {
    font-size: 1.05rem;
}

.tp-choice-yes {
    color: #1e7e34;
}

.tp-choice-maybe {
    color: #b8860b;
}

.tp-choice-no {
    color: #c0392b;
}

.tp-choice-none {
    color: var(--color-border);
}

.tp-vote-me {
    white-space: nowrap;
}

.tp-choice-btn {
    width: 2rem;
    height: 2rem;
    margin: 0 0.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}

.tp-choice-btn.tp-choice-yes.is-active {
    background: #1e7e34;
    border-color: #1e7e34;
    color: #fff;
}

.tp-choice-btn.tp-choice-maybe.is-active {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

.tp-choice-btn.tp-choice-no.is-active {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.tp-col-tally {
    font-size: 0.8125rem;
    white-space: nowrap;
}

.tp-tally-yes,
.tp-tally-maybe {
    display: inline-block;
    margin: 0 0.2rem;
}

.tp-tally-yes {
    color: #1e7e34;
    font-weight: 600;
}

.tp-tally-maybe {
    color: #b8860b;
}

.tp-error {
    margin-top: 1rem;
    color: #c0392b;
    font-weight: 600;
}

/* BMI calculator */
.bmi-tool {
    padding: 2rem 0 3rem;
}

.bmi-app {
    max-width: 32rem;
    margin-inline: auto;
    display: grid;
    gap: 1.25rem;
}

.bmi-panel {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.bmi-form {
    display: grid;
    gap: 1rem;
}

.bmi-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.bmi-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bmi-input-row input {
    flex: 1;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
}

.bmi-unit {
    min-width: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.bmi-error {
    margin: 1rem 0 0;
    color: #991b1b;
    font-size: 0.875rem;
}

.bmi-error[hidden] {
    display: none;
}

.bmi-result {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.bmi-result-label {
    margin: 0 0 0.35rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.bmi-result-value {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.bmi-result-category {
    margin: 0.5rem 0 0;
    display: inline-block;
    padding: 0.35rem 0.875rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.bmi-result-category.is-underweight {
    background: #dbeafe;
    color: #1d4ed8;
}

.bmi-result-category.is-normal {
    background: #dcfce7;
    color: #15803d;
}

.bmi-result-category.is-overweight {
    background: #ffedd5;
    color: #c2410c;
}

.bmi-result-category.is-obese {
    background: #fee2e2;
    color: #b91c1c;
}

.bmi-result-actions {
    margin-top: 1rem;
}

.bmi-save-feedback {
    margin: 0.75rem 0 0;
    color: #15803d;
    font-size: 0.875rem;
    font-weight: 600;
}

.bmi-save-feedback[hidden] {
    display: none;
}

.bmi-history-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.bmi-history-hint {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.bmi-history-empty {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.bmi-history-empty[hidden] {
    display: none;
}

.bmi-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bmi-history-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-top: 1px solid var(--color-border);
}

.bmi-history-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.bmi-history-meta {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.bmi-history-values {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.bmi-history-delete {
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.25rem 0;
    flex-shrink: 0;
}

.bmi-history-delete:hover {
    color: #991b1b;
}

.bmi-disclaimer {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.bmi-history-panel[hidden] {
    display: none;
}

.bmi-result[hidden] {
    display: none;
}

/* Stromrechner */
.strom-tool {
    padding: 2rem 0 3rem;
}

.strom-app {
    max-width: 36rem;
    margin-inline: auto;
    display: grid;
    gap: 1.25rem;
}

.strom-panel {
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.strom-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.strom-tab {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.strom-tab.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.strom-form {
    display: grid;
    gap: 1rem;
}

.strom-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.strom-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strom-input-row input {
    flex: 1;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
}

.strom-unit {
    min-width: 3.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

.strom-period-toggle {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
}

.strom-error {
    margin: 1rem 0 0;
    color: #991b1b;
    font-size: 0.875rem;
}

.strom-error[hidden] {
    display: none;
}

.strom-result {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.strom-result-grid {
    display: grid;
    gap: 0.65rem;
}

.strom-result-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.strom-result-row.is-highlight {
    border-bottom: 0;
    padding-top: 0.75rem;
}

.strom-result-row.is-highlight .strom-result-row-value {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.strom-result-row-label {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.strom-result-row-value {
    font-size: 1.0625rem;
}

.strom-result-actions {
    margin-top: 1rem;
    text-align: center;
}

.strom-save-feedback {
    margin: 0.75rem 0 0;
    color: #15803d;
    font-size: 0.875rem;
    text-align: center;
}

.strom-save-feedback[hidden] {
    display: none;
}

.strom-disclaimer {
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.strom-history-panel h2 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
}

.strom-history-hint,
.strom-history-empty {
    margin: 0 0 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.strom-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.strom-history-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-border);
}

.strom-history-item:last-child {
    border-bottom: 0;
}

.strom-history-meta {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.strom-history-values,
.strom-history-cost {
    margin: 0.15rem 0 0;
    font-size: 0.9375rem;
}

.strom-history-cost {
    font-weight: 600;
}

.strom-history-delete {
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    white-space: nowrap;
}

.strom-history-delete:hover {
    color: #991b1b;
}

.strom-history-panel[hidden],
.strom-result[hidden],
.strom-tab-panel[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .comfort-user-menu {
        display: none;
    }
}

/* Dark mode */
[data-theme="dark"] {
    color-scheme: dark;
    --color-bg: #0b1220;
    --color-surface: #1e293b;
    --color-text: #f1f5f9;
    --color-text-muted: #94a3b8;
    --color-primary: #60a5fa;
    --color-primary-hover: #93c5fd;
    --color-primary-light: #1e3a5f;
    --color-border: #334155;
    --color-accent: #38bdf8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .site-header {
    background: rgba(11, 18, 32, 0.92);
}

[data-theme="dark"] .site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(37, 99, 235, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(14, 165, 233, 0.1), transparent),
        var(--color-bg);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #0f172a;
    color: var(--color-text);
    border-color: var(--color-border);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #64748b;
}

[data-theme="dark"] .tool-card {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .tool-card-disabled {
    background: #162032;
}

[data-theme="dark"] .comfort-modal-dialog,
[data-theme="dark"] .bmi-panel,
[data-theme="dark"] .strom-panel,
[data-theme="dark"] .pp-panel,
[data-theme="dark"] .tp-panel {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-theme="dark"] .comfort-flash--success {
    background: #064e3b;
    color: #a7f3d0;
    border-color: #065f46;
}

[data-theme="dark"] .comfort-flash--error {
    background: #450a0a;
    color: #fecaca;
    border-color: #991b1b;
}

[data-theme="dark"] .comfort-flash--warning {
    background: #451a03;
    color: #fde68a;
    border-color: #92400e;
}

[data-theme="dark"] .cookie-banner {
    background: #1e293b;
    border-color: var(--color-border);
}

[data-theme="dark"] .pp-card.is-selected {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

[data-theme="dark"] .tp-vote-btn.is-yes {
    border-color: #22c55e;
    background-color: #14532d;
}

[data-theme="dark"] .tp-vote-btn.is-maybe {
    border-color: #f59e0b;
    background-color: #451a03;
}

[data-theme="dark"] .tp-vote-btn.is-no {
    border-color: #ef4444;
    background-color: #450a0a;
}

[data-theme="dark"] .site-footer {
    background: #020617;
    color: #94a3b8;
}

[data-theme="dark"] .footer-brand .logo-text,
[data-theme="dark"] .footer-nav a:hover {
    color: #fff;
}

[data-theme="dark"] .breadcrumb a {
    color: var(--color-text-muted);
}

[data-theme="dark"] .breadcrumb a:hover {
    color: var(--color-primary);
}
