@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&display=swap');

:root {
    --pt-color-white: #fff;
    --pt-color-white-rgb: 255 255 255;
    --pt-color-black-rgb: 0 0 0;

    --pt-shadow-rgb: 16 36 55;

    --pt-brand-primary: #295277;
    --pt-brand-primary-rgb: 41 82 119;
    --pt-brand-primary-dark: #1c3c59;
    --pt-brand-primary-dark-rgb: 28 60 89;
    --pt-brand-accent: #f7b733;
    --pt-brand-accent-rgb: 247 183 51;

    --pt-surface: #f5f7fb;
    --pt-surface-card: var(--pt-color-white);
    --pt-surface-subtle: #f8fbff;
    --pt-surface-muted: #f4f7fb;
    --pt-surface-panel: #f8fafc;
    --pt-surface-soft: #f3f6fb;

    --pt-border: #d8e2ec;
    --pt-border-strong: #e2e8f0;

    --pt-heading: #0f2a41;
    --pt-text: #102437;
    --pt-text-strong: #123552;
    --pt-text-body: #2d3d4f;
    --pt-text-muted: #5c6a7b;
    --pt-text-subtle: #475569;
    --pt-text-subtle-strong: #334155;

    --pt-nav-text: #d7d7d7;

    --pt-neutral-rgb: 100 116 139;

    --pt-border-subtle: rgb(var(--pt-shadow-rgb) / 0.1);

    --pt-pill-required-bg: rgb(var(--pt-brand-accent-rgb) / 0.2);
    --pt-pill-required-ink: #8a5300;

    --pt-danger-ink: #b91c1c;
    --pt-danger-ink-strong: #991b1b;
    --pt-danger-bg: #fff1f2;
    --pt-danger-bg-soft: #fff5f5;
    --pt-danger-border: #fecdd3;
    --pt-danger-border-soft: #fecaca;
    --pt-danger-border-bright: #f87171;
    --pt-danger-bg-light: #fef2f2;
    --pt-danger-rgb: 239 68 68;

    --pt-success-ink: #166534;
    --pt-success-status-ink: #065f46;
    --pt-success-bg: #ecfdf3;
    --pt-success-status-bg: #ecfdf5;
    --pt-success-border: #4ade80;
    --pt-success-border-rgb: 16 185 129;
    --pt-success-rgb: 34 197 94;

    --pt-warning-ink: #92400e;
    --pt-warning-bg: #fffbeb;
    --pt-warning-border: #f59e0b;
    --pt-warning-border-soft: #fcd34d;
    --pt-warning-rgb: 251 191 36;

    --pt-info-ink: #0c4a6e;
    --pt-info-bg: #e0f2fe;
    --pt-info-status-bg: #e9f1f9;
    --pt-info-border: #38bdf8;
    --pt-info-link: #1d4ed8;
    --pt-info-rgb: 59 130 246;

    --pt-error-bg: #fee2e2;

    --pt-callout-bg: #e2edff;
    --pt-error-banner-bg: #fde047;

    --pt-focus-outline: rgb(var(--pt-brand-accent-rgb) / 0.55);
    --pt-focus-ring: rgb(var(--pt-action-rgb) / 0.15);

    --pt-link-underline: rgb(var(--pt-action-rgb) / 0.35);
    --pt-link-underline-hover: rgb(var(--pt-action-rgb) / 0.6);

    --pt-action: var(--pt-brand-primary);
    --pt-action-strong: var(--pt-brand-primary-dark);
    --pt-action-rgb: var(--pt-brand-primary-rgb);
    --pt-action-strong-rgb: var(--pt-brand-primary-dark-rgb);

    --pt-control-accent: var(--pt-action);
    --pt-control-accent-rgb: var(--pt-action-rgb);

    --pt-primary-bg: var(--pt-brand-primary);
    --pt-primary-bg-strong: var(--pt-brand-primary-dark);
    --pt-primary-bg-rgb: var(--pt-brand-primary-rgb);
    --pt-primary-bg-strong-rgb: var(--pt-brand-primary-dark-rgb);
    --pt-on-primary-bg: var(--pt-color-white);
    --pt-on-primary-bg-rgb: var(--pt-color-white-rgb);

    --pt-accent: var(--pt-brand-accent);
    --pt-on-accent: #132a3f;

    --pt-shadow-button-primary: rgb(var(--pt-primary-bg-rgb) / 0.24);
    --pt-shadow-soft: rgb(var(--pt-shadow-rgb) / 0.03);
    --pt-shadow-soft-2: rgb(var(--pt-shadow-rgb) / 0.05);
    --pt-shadow-soft-3: rgb(var(--pt-shadow-rgb) / 0.06);
    --pt-shadow-soft-4: rgb(var(--pt-shadow-rgb) / 0.08);
    --pt-shadow-soft-5: rgb(var(--pt-shadow-rgb) / 0.12);
    --pt-shadow-soft-6: rgb(var(--pt-shadow-rgb) / 0.15);
    --pt-shadow-soft-7: rgb(var(--pt-shadow-rgb) / 0.16);
    --pt-modal-backdrop: rgb(var(--pt-shadow-rgb) / 0.45);
    --pt-dialog-shadow: 0 16px 40px rgb(var(--pt-color-black-rgb) / 0.15);

    --pt-page-bg-primary-rgb: var(--pt-board-bg-start-rgb);
    --pt-page-bg-secondary-rgb: var(--pt-board-bg-end-rgb);

    /* Backwards-compat aliases (gradually retire these) */
    --brand-primary: var(--pt-action);
    --brand-primary-dark: var(--pt-action-strong);
    --brand-accent: var(--pt-accent);
    --link-highlight: rgb(var(--pt-brand-accent-rgb) / 0.25);
    --link-highlight-strong: rgb(var(--pt-brand-accent-rgb) / 0.35);
    --link-focus-ring: var(--pt-focus-ring);
    --shadow-button-primary: var(--pt-shadow-button-primary);
    --brand-surface: var(--pt-surface);
    --brand-border: var(--pt-border);
    --heading-color: var(--pt-heading);
    font-family: 'Poppins', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--pt-text);
}

body {
    margin: 0;
    background: radial-gradient(circle at 15% 20%, rgb(var(--pt-page-bg-primary-rgb) / 1), transparent 35%), radial-gradient(circle at 80% 10%, rgb(var(--pt-page-bg-secondary-rgb) / 1), transparent 35%), var(--brand-surface);
}

hr {
    background-color: var(--pt-border-subtle);
    border: none;
    height: 1px;
    width: 100%;
    opacity: 1;
}

form {
    width: 100%;
}

i {
    line-height: 1;
}

.icon-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.icon-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: rgb(var(--pt-action-rgb) / 0.08);
    color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
    font-weight: 600;
    font-size: 0.85rem;
}

.icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min-content;
    height: min-content;
    padding: 0;
    border-radius: 0.9rem;
    border: none !important;
    background: none !important;
    color: var(--pt-text-strong);
    font-size: 1.25rem;
    line-height: 1;
}

.board-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h1, h2, h3, h4, h5 {
    letter-spacing: -0.01em;
    margin-top: 0;
    color: var(--pt-heading, --heading-color);
}

a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--pt-link-underline);
    text-underline-offset: 0.18em;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:hover {
    color: var(--brand-primary-dark);
    text-decoration-color: var(--pt-link-underline-hover);
}

a:focus-visible {
    outline: 3px solid var(--pt-focus-outline);
    outline-offset: 3px;
    border-radius: 0.4rem;
}

a:active {
    color: var(--brand-primary-dark);
}

a.primary,
a.ghost,
a.btn,
a.btn-link,
a.icon-label,
a.icon-only {
    text-decoration: none;
}

.ghost-white {
    background-color: rgb(var(--pt-color-white-rgb) / 1);
    border-color: rgb(var(--pt-action-rgb) / 0.22);
    color: var(--pt-text-strong);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 30px rgb(var(--pt-shadow-rgb) / 0.08);
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.floating-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

.floating-field input,
.floating-field textarea,
.floating-field select {
    width: 100%;
    padding: 1.25rem 0.95rem 0.5rem;
    background-color: var(--pt-surface-card);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.floating-field label {
    position: absolute;
    left: 0.9rem;
    top: 0.95rem;
    padding: 0;
    background: none !important;
    color: var(--pt-text-muted);
    font-size: 0.95rem;
    transition: transform 0.18s ease, color 0.18s ease, font-size 0.18s ease;
    transform-origin: top left;
    pointer-events: none;
}

.required-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    margin-left: 0.35rem;
    border-radius: 999px;
    background: var(--pt-pill-required-bg);
    color: var(--pt-pill-required-ink);
    font-size: 0.75rem;
    font-weight: 700;
    position: absolute;
    top: 0;
    right: 0;
}

.floating-field input:focus,
.floating-field textarea:focus,
.floating-field select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgb(var(--pt-action-rgb) / 0.18);
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:focus + label,
.floating-field textarea:not(:placeholder-shown) + label,
.floating-field select:focus + label,
.floating-field select:not([value=""]) + label {
    transform: translateY(-0.7rem) scale(0.88);
    color: var(--pt-text-neutral);
    font-weight: 600;
    background: linear-gradient(180deg, var(--pt-surface-card) 40%, rgb(var(--pt-color-white-rgb) / 0));
}

.floating-field textarea + label {
    background-color: #fff !important;
    padding: 0 0.5rem 0 0;
    border-radius: 999px;
}

.stacked-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
}

.form-control,
input,
textarea,
select {
    padding: 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid var(--brand-border);
    font-size: 1rem;
    font-family: inherit;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    align-self: start;
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    align-self: start;
}

.primary,
.ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.01em;
}

.accent {
    background-color: var(--brand-accent);
    color: var(--pt-on-accent);
    border-radius: 999px;
    box-shadow: 0 10px 20px rgb(var(--pt-brand-accent-rgb) / 0.28);
}

.btn-link {
    background: none;
    border: none;
    padding: 0.2rem 0;
    color: var(--brand-primary);
    font-weight: 600;
    justify-content: flex-start;
    letter-spacing: normal;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--pt-link-underline);
    text-underline-offset: 0.18em;
    border-radius: 0.4rem;
}

.btn-link:hover,
.btn-link:focus-visible {
    color: var(--brand-primary-dark);
    text-decoration-color: var(--pt-link-underline-hover);
}

.btn-link:focus-visible {
    outline: 3px solid var(--pt-focus-outline);
    outline-offset: 3px;
}

.primary {
    background: linear-gradient(135deg, var(--pt-primary-bg), var(--pt-primary-bg-strong));
    color: var(--pt-on-primary-bg);
    box-shadow: 0 12px 30px var(--shadow-button-primary);
    border: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    --link-highlight: rgb(var(--pt-on-primary-bg-rgb) / 0.25);
    --link-highlight-strong: rgb(var(--pt-on-primary-bg-rgb) / 0.25);
}

.primary:link,
.primary:visited,
.primary:hover,
.primary:focus-visible {
    color: var(--pt-on-primary-bg);
}

.primary:hover,
.primary:focus-visible {
    box-shadow: 0 14px 34px var(--shadow-button-primary);
    outline: none;
}

.primary:active {
    transform: translateY(1px);
    box-shadow: 0 10px 24px var(--shadow-button-primary);
}

.ghost {
    border: 1px solid var(--brand-border);
    background-color: transparent;
    color: var(--pt-text-strong);
}

.icon-only.danger {
    border: 1px solid var(--pt-danger-border);
    background-color: var(--pt-danger-bg);
    color: var(--pt-danger-ink);
}

.danger {
    border-color: var(--pt-danger-border);
    background-color: var(--pt-danger-bg);
    color: var(--pt-danger-ink);
}

.danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.text-muted {
    color: inherit !important;
    opacity: 0.85;
}

.mt-4 {
    margin-top: 1.5rem;
}

.status {
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    position: sticky;
    bottom: 1.5rem;
    font-size: 1.25rem;
    box-shadow: 0 12px 30px var(--pt-shadow-soft-4);
    background-color: var(--pt-surface-card);
    border: solid 1px var(--brand-border);
    font-weight: 800;
    z-index: 10000000;
}

.status-fixed {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    width: calc(100% - 2rem);
    max-width: 960px;
    transform: translateX(-50%);
}

.status-info {
    background-color: var(--pt-info-status-bg);
    border-color: rgb(var(--pt-info-rgb) / 0.35);
    color: var(--brand-primary);
}

.status-success {
    background-color: var(--pt-success-status-bg);
    border-color: rgb(var(--pt-success-border-rgb) / 0.35);
    color: var(--pt-success-status-ink);
}

.status-error {
    background-color: var(--pt-error-bg);
    border-color: rgb(var(--pt-danger-rgb) / 0.35);
    color: var(--pt-danger-ink-strong);
}

.board-header {
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, var(--pt-primary-bg), var(--pt-secondary-bg));
    box-shadow: 0 10px 28px var(--pt-shadow-soft-2), inset 0 0 0 1px rgb(var(--pt-board-header-ink-rgb) / 0.16);
    color: var(--pt-board-header-ink);
    --heading-color: var(--pt-board-header-ink);
}

.board-header .icon-only {
    color: var(--pt-board-header-ink);
}

.board-header .lead {
    color: rgb(var(--pt-board-header-ink-rgb) / 0.88);
}

.board-header .text-muted,
.board-header small {
    color: rgb(var(--pt-board-header-ink-rgb) / 0.72) !important;
}

.pt-board-scope {
    display: contents;
}

.pt-board-scope,
.board-controls {
    --pt-heading: var(--pt-text-strong);
    --pt-action: var(--pt-text-strong);
    --pt-action-rgb: var(--pt-text-strong-rgb);
    --pt-action-strong: var(--pt-text-strong-alt);
    --pt-action-strong-rgb: var(--pt-text-strong-alt-rgb);
    --pt-board-header-ink: var(--pt-text-on-background);
    --pt-board-header-ink-rgb: var(--pt-text-on-background-rgb);
    --pt-on-primary-bg: var(--pt-text-on-background);
    --pt-on-primary-bg-rgb: var(--pt-text-on-background-rgb);
    --pt-focus-outline: rgb(var(--pt-action-rgb) / 0.55);
    --pt-focus-ring: rgb(var(--pt-action-rgb) / 0.18);
    --pt-text-neutral: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
    --pt-pill-text: var(--pt-text-neutral);
    --pt-control-accent: var(--pt-text-strong);
}

.cta-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.board-card {
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--pt-surface-card);
    box-shadow: 0 10px 28px var(--pt-shadow-soft-2);
    flex-grow: 1;
}

@media (max-width: 640px) {
    .board-card {
        padding: 1rem 1rem;
        width: calc(100% + 0.5rem);
        margin-left: -0.25rem;
    }
}

.board-card header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.pt-table-wrap {
    width: 100%;
}

.pt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--pt-surface-card);
    box-shadow: 0 10px 28px var(--pt-shadow-soft-2);
}

.pt-table thead {
    background: rgb(var(--pt-action-rgb) / 0.05);
}

.pt-table th,
.pt-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--pt-border-subtle);
    vertical-align: middle;
}

.pt-table th {
    font-weight: 800;
    color: var(--pt-text-strong);
}

.pt-table tbody tr:last-child td {
    border-bottom: none;
}

.pt-table-actions-col {
    text-align: right;
}

.pt-table-actions-cell {
    text-align: right;
}

.pt-table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pt-table-title {
    display: inline-block;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--heading-color);
    line-height: 1.2;
}

.pt-table-title:hover {
    color: var(--brand-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.pt-table-title:focus-visible {
    outline: 3px solid var(--pt-focus-outline);
    outline-offset: 3px;
    border-radius: 0.4rem;
}

@media (max-width: 640px) {
    .pt-table {
        border-radius: 1rem;
    }

    .pt-table thead {
        display: none;
    }

    .pt-table,
    .pt-table tbody,
    .pt-table tr,
    .pt-table td {
        display: block;
        width: 100%;
    }

    .pt-table td {
        border-bottom: none;
        padding: 0.75rem 1rem;
    }

    .pt-table tr {
        border-bottom: 1px solid var(--pt-border-subtle);
    }

    .pt-table tbody tr:last-child {
        border-bottom: none;
    }

    .pt-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.8rem;
        font-weight: 800;
        color: rgb(var(--pt-color-black-rgb) / 0.6);
        margin-bottom: 0.35rem;
    }

    .pt-table-actions-cell {
        text-align: left;
    }

    .pt-table-actions {
        justify-content: flex-start;
    }
}

.pt-accordion {
    border: none;
}

.pt-accordion-summary {
    display: block;
    list-style: none;
    cursor: pointer;
}

.pt-accordion-summary::marker {
    content: "";
}

.pt-accordion-summary::-webkit-details-marker {
    display: none;
}

.pt-accordion-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.pt-accordion-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pt-accordion .icon-chip {
    padding: 0.2rem 0.6rem;
    font-size: 0.82rem;
}

.pt-accordion-summary:focus-visible {
    outline: 3px solid var(--link-focus-ring);
    border-radius: 0.85rem;
    outline-offset: 0.25rem;
}

.pt-accordion-summary:hover {
    background: rgb(var(--pt-action-rgb) / 0.04);
    border-radius: 0.85rem;
}

.pt-accordion-chevron {
    font-size: 1.35rem;
    color: var(--brand-primary);
    transition: transform 0.18s ease;
}

details[open] > .pt-accordion-summary .pt-accordion-chevron {
    transform: rotate(180deg);
}

.pt-accordion-body {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--brand-border);
}

.slot-section {
    margin: 1.5rem 0 1.5rem -2rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
    width: calc(100% + 4rem);
    background: linear-gradient(145deg, rgb(var(--pt-primary-bg-rgb) / 0.7), rgb(var(--pt-primary-bg-strong-rgb) / 0.7));
}

.board-header h1,
.slot-section > h2 {
    color: var(--pt-board-header-ink, --heading-color);
}

.slot-section > h2 i {
    color: inherit;
}

.slot-section > div:not(.board-card) {
    color: var(--pt-board-header-ink);
    --heading-color: var(--pt-board-header-ink);
}

.slot-section > div:not(.board-card) .lead {
    color: rgb(var(--pt-board-header-ink-rgb) / 0.88);
}

.slot-section > div:not(.board-card) .text-muted,
.slot-section > div:not(.board-card) small {
    color: rgb(var(--pt-board-header-ink-rgb) / 0.72) !important;
}

.slot-section > .ghost,
.slot-section > div:not(.board-card) .ghost {
    color: var(--pt-board-header-ink);
    border-color: rgb(var(--pt-board-header-ink-rgb) / 0.55);
    background-color: transparent;
}

.slot-section > .ghost:hover,
.slot-section > .ghost:focus-visible,
.slot-section > div:not(.board-card) .ghost:hover,
.slot-section > div:not(.board-card) .ghost:focus-visible {
    border-color: rgb(var(--pt-board-header-ink-rgb) / 0.65);
    background-color: rgb(var(--pt-board-header-ink-rgb) / 0.10);
    box-shadow: 0 0 0 3px rgb(var(--pt-board-header-ink-rgb) / 0.14);
    outline: none;
}

@media (max-width: 640px) {
    .board-header {
        padding: 1rem 1rem;
    }

    .slot-section {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 1rem 1rem;
    }
}

.slot-list {
    list-style: none;
    padding: 0 0 0.35rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.slot-list li,
.slot-drop-indicator {
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: var(--pt-surface-muted);
    box-shadow: 0 6px 16px var(--pt-shadow-soft);
}

.slot-list li.full {
    border-color: var(--pt-danger-border-soft);
    background: var(--pt-danger-bg-soft);
}

.slot-list li.locked {
    border-color: var(--pt-warning-border-soft);
    background: var(--pt-warning-bg);
}

.slot-list li[draggable="True"],
.slot-list li[draggable="true"] {
    cursor: grab;
}

.drop-line {
    border: 1px dashed var(--brand-border);
    border-radius: 0.65rem;
    padding: 0.35rem 0.7rem;
    margin: 0.15rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--pt-text-subtle);
    background: var(--pt-surface-card);
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
    min-height: 0;
}

.drop-line.inactive {
    opacity: 0;
    border-color: transparent;
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    height: 4px;
}

.drop-line.active {
    border-color: var(--brand-primary);
    color: var(--brand-primary-dark);
    background: rgb(var(--pt-action-rgb) / 0.1);
}

.group-drop-line {
    margin-left: 0.5rem;
}

.slot-drop-line {
    background: var(--pt-surface-subtle);
    display: flex;
}

.slot-drop-target {
    border-color: var(--brand-primary);
    background: rgb(var(--pt-action-rgb) / 0.08);
    box-shadow: 0 0 0 2px rgb(var(--pt-action-rgb) / 0.25);
}

.slot-drop-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-style: dashed;
    border-color: var(--brand-border);
    background: var(--pt-surface-card);
    color: var(--pt-text-subtle);
}

.slot-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
}

.slot-grid-draggable {
    grid-template-columns: auto auto 1fr;
}

.slot-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slot-checkbox {
    width: 1.4rem;
    height: 1.4rem;
    accent-color: var(--pt-control-accent);
    cursor: pointer;
}

.slot-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.slot-checkbox-small {
    width: 1rem;
    height: 1rem;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: inherit;
    vertical-align: middle;
}

.table:last-child {
    margin-bottom: 0;
}

.roles-table {
    margin-top: 0.5rem;
}

.roles-table th,
.roles-table td {
    vertical-align: middle;
    font-size: 0.95rem;
}

.roles-check {
    text-align: center;
}

.roles-info {
    text-align: right;
}

.table-card {
    width: 100%;
}

@media (max-width: 768px) {
    .table-card {
        display: block;
        margin-top: 0.35rem;
    }

    .table-card thead {
        display: none;
    }

    .table-card tbody {
        display: grid;
        gap: 0.75rem;
        grid-template-columns: minmax(0, 1fr);
    }

    .table-card tr {
        display: block;
        border: 1px solid var(--brand-border);
        border-radius: 0.9rem;
        background: var(--pt-surface-card);
        padding: 0.75rem 0.85rem;
        box-shadow: 0 6px 14px var(--pt-shadow-soft-3);
    }

    .table-card td {
        display: block;
        padding: 0.35rem 0;
        border: none;
    }

    .table-card td:first-child {
        padding-top: 0;
    }

    .table-card td:last-child {
        padding-bottom: 0;
    }

    .table-card td[data-label] {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
        align-items: start;
    }

    .table-card td[data-label]::before {
        content: attr(data-label);
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--pt-text-subtle);
        text-transform: uppercase;
        letter-spacing: 0.02em;
        line-height: 1.1;
    }

    .table-card .pill-stack {
        margin-top: 0.1rem;
    }

    .table-card .rsvp-note {
        min-width: 0;
        max-width: none;
    }

    .table-card .note-preview {
        width: 100%;
        min-width: 0;
    }
}

.slot-body-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.slot-body-header h1,
.slot-body-header h2,
.slot-body-header h3,
.slot-body-header h4,
.slot-body-header h5,
.slot-body-header h6 {
    color: var(--pt-text-neutral);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.75rem;
    border-radius: 999px;
    background-color: rgb(var(--pt-text-strong-rgb) / 0.1);
    font-size: 0.85rem;
    color: var(--pt-text-strong);
    font-weight: 600;
}

.icon-chip.chip-active {
    background-color: rgb(var(--pt-success-rgb) / 0.15);
    color: var(--pt-success-ink);
}

.icon-chip.chip-archived {
    background-color: rgb(var(--pt-neutral-rgb) / 0.18);
    color: var(--pt-text-subtle-strong);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.85rem;
    background-color: rgb(var(--pt-action-rgb) / 0.1);
    color: var(--pt-text-neutral, --brand-primary);
}

.pill .icon-only {
    color: inherit;
}

.pill-stack {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.rsvp-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.rsvp-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-top: 0.35rem;
}

.rsvp-overview.slim .overview-block {
    background: var(--pt-surface-subtle);
}

.overview-block {
    border: 1px solid var(--brand-border);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.overview-title {
    font-weight: 700;
    color: var(--pt-text-neutral);
}

.rsvp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.rsvp-pill-yes {
    background-color: rgb(var(--pt-success-rgb) / 0.16);
    color: var(--pt-pill-text);
}

.rsvp-pill-maybe {
    background-color: rgb(var(--pt-warning-rgb) / 0.18);
    color: var(--pt-pill-text);
}

.rsvp-pill-no {
    background-color: rgb(var(--pt-danger-rgb) / 0.16);
    color: var(--pt-pill-text);
}

.rsvp-pill-waitlisted {
    background-color: rgb(var(--pt-info-rgb) / 0.18);
    color: var(--pt-pill-text);
}

.stat-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.65rem;
    background: var(--pt-surface-card);
    color: var(--pt-text-neutral);
}

.stat-line .stat-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.stat-value {
    font-weight: 800;
    font-size: 1.05rem;
    white-space: nowrap;
}

.stat-line.stat-yes {
    border-color: rgb(var(--pt-success-rgb) / 0.35);
    background: rgb(var(--pt-success-rgb) / 0.12);
}

.stat-line.stat-maybe {
    border-color: rgb(var(--pt-warning-rgb) / 0.35);
    background: rgb(var(--pt-warning-rgb) / 0.12);
}

.stat-line.stat-no {
    border-color: rgb(var(--pt-danger-rgb) / 0.35);
    background: rgb(var(--pt-danger-rgb) / 0.12);
}

.stat-line.stat-waitlist {
    border-color: rgb(var(--pt-info-rgb) / 0.35);
    background: rgb(var(--pt-info-rgb) / 0.12);
}

.account-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.65rem;
    background: rgb(var(--pt-warning-rgb) / 0.12);
    border-color: rgb(var(--pt-warning-rgb) / 0.35);
    color: var(--pt-warning-ink);
}

.rsvp-total-chip {
    background: var(--pt-surface-panel);
    color: var(--pt-text-strong);
    font-weight: 600;
}

.rsvp-total-chip strong {
    font-weight: 700;
    color: var(--pt-text-strong);
}

.rsvp-detail-pill {
    background-color: var(--pt-surface-soft);
    color: var(--pt-text-subtle-strong);
}

.rsvp-table td {
    vertical-align: top;
}

.rsvp-note {
    max-width: 360px;
    min-width: 220px;
    white-space: normal;
}

.note-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    text-align: left;
    padding: 0.45rem 0.65rem;
    border-radius: 0.75rem;
    border: 1px solid var(--brand-border);
    background: var(--pt-surface-subtle);
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.note-preview:hover,
.note-preview:focus-visible {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgb(var(--pt-action-rgb) / 0.12);
    outline: none;
}

.note-preview:active {
    transform: translateY(1px);
}

.note-preview-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-preview-more {
    color: var(--brand-primary);
    font-size: 0.9rem;
    font-weight: 700;
}

.note-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.note-modal-meta {
    color: var(--pt-text-subtle);
    font-size: 0.95rem;
}

.note-modal-text {
    margin: 0;
    padding: 0.85rem;
    border: 1px solid var(--brand-border);
    border-radius: 0.85rem;
    background: var(--pt-surface-subtle);
    white-space: pre-wrap;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.info-page {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.info-hero {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.page-lead {
    margin: 0;
    font-size: 1.05rem;
    color: var(--pt-text-body);
    line-height: 1.7;
}

.info-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.info-section p {
    margin: 0;
    color: var(--pt-text-body);
    line-height: 1.7;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.info-card {
    border: 1px solid var(--brand-border);
    border-radius: 0.95rem;
    padding: 1rem 1.15rem;
    background: var(--pt-surface-card);
    box-shadow: 0 10px 28px var(--pt-shadow-soft-3);
}

.info-card p {
    margin: 0.5rem 0 0;
    color: var(--pt-text-body);
    line-height: 1.65;
}

.info-list {
    margin: 0;
    padding-left: 1.2rem;
}

.info-list li + li {
    margin-top: 0.45rem;
}

.info-callout {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgb(var(--pt-action-rgb) / 0.08);
    border: 1px solid var(--brand-border);
}

.info-callout p {
    margin: 0.35rem 0 0;
    color: var(--pt-text-body);
    line-height: 1.7;
}

.faq-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.policy-meta {
    margin-top: -0.25rem;
    color: var(--pt-text-muted);
    font-weight: 600;
}

.policy-placeholder {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: rgb(var(--pt-action-rgb) / 0.08);
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
}

textarea {
    min-height: 120px;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
    list-style: none;
}

.messages li {
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: var(--pt-surface-muted);
}

.messages .meta {
    font-size: 0.85rem;
    color: var(--pt-text-subtle);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.6rem;
    border-bottom: 1px solid var(--brand-border);
    text-align: left;
}

#blazor-error-ui {
    background: var(--pt-error-banner-bg);
    bottom: 0;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.group-stack {
    position: relative;
}

.group-drop-target {
    outline: 2px dashed var(--brand-primary);
    outline-offset: -6px;
}

.drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    cursor: grab;
    flex-shrink: 0;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.group-handle {
    margin-top: 0.35rem;
    margin-left: -1rem;
}

.slot-handle {
    margin-left: -0.5rem;
    align-self: center;
}

.slot-drop-zone {
    border: 1px dashed var(--brand-border);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--pt-text-subtle);
    background: var(--pt-surface-subtle);
}

.slot-drop-zone.empty {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.slot-drop-zone.active {
    border-color: var(--brand-primary);
    color: var(--brand-primary-dark);
    background: rgb(var(--pt-action-rgb) / 0.1);
}

.cta-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

dialog.pt-modal {
    border: none;
    border-radius: 1rem;
    padding: 0;
    box-shadow: var(--pt-dialog-shadow);
    width: min(90vw, 720px);
    z-index: 1200;
}

dialog.pt-modal[open] {
    display: block !important; /* override bootstrap modal reset */
}

dialog.pt-modal::backdrop {
    background: var(--pt-modal-backdrop);
    backdrop-filter: blur(2px);
}

.hero h1:focus,
.hero h1:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Minimal branded scrollbars */
* {
    scrollbar-width: thin;
}

.modal-inner {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-header {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.board-share-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.board-share-inline code {
    background: var(--pt-surface-subtle);
    padding: 0.25rem 0.4rem;
    border-radius: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
}

.share-modal .share-subtext {
    margin-bottom: 0.5rem;
}

.share-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.share-task {
    border: 1px solid var(--brand-border);
    border-radius: 1rem;
    padding: 1rem;
    background: var(--pt-surface-card);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.share-link-field {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-link-field input {
    flex: 1;
    border-radius: 0.75rem;
    border: 1px solid var(--pt-border-subtle);
    padding: 0.65rem 0.75rem;
}

.share-link-field button {
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.share-button {
    border: 1px solid var(--brand-border);
    border-radius: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: var(--pt-surface-subtle);
    color: var(--brand-primary-dark);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.share-button:hover,
.share-button:focus-visible {
    background: var(--pt-callout-bg);
    outline: none;
}

.share-qr-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    min-height: 150px;
}

.share-qr-inner img {
    width: min(220px, 100%);
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 8px 25px var(--pt-shadow-soft-6);
}

.qr-placeholder {
    border: 1px dashed var(--brand-border);
    border-radius: 1rem;
    padding: 1rem;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    color: var(--pt-text-subtle);
}

.ghost.subtle {
    border-color: transparent;
    background-color: var(--pt-shadow-soft-4);
    color: var(--pt-text-strong);
}

.form-check {
    margin: 0;
    padding-left: 2em;
}

.form-check .form-check-input {
    margin-top: 0;
    margin-left: -2em;
}

.form-check-input {
    accent-color: var(--pt-control-accent);
}

input[type="range" i] {
    accent-color: var(--pt-control-accent);
}

input[type="range" i]::-webkit-slider-runnable-track {
    height: 0.4rem;
    border-radius: 999px;
    background-color: rgb(var(--pt-text-strong-rgb) / 0.25);
}

input[type="range" i]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background-color: var(--pt-text-strong);
    border: 2px solid var(--pt-surface-card);
    margin-top: -0.3rem;
}

.form-check-input:focus {
    border-color: var(--pt-control-accent);
    box-shadow: 0 0 0 0.25rem rgb(var(--pt-control-accent-rgb) / 0.25);
}

.form-check-input:checked {
    background-color: var(--pt-control-accent);
    border-color: var(--pt-control-accent);
}

.form-check-input:indeterminate {
    background-color: var(--pt-control-accent);
    border-color: var(--pt-control-accent);
}

.form-switch {
    padding-left: 3.5em;
}

.form-switch .form-check-input {
    width: 2.5em;
    margin-left: -3em;
    margin-top: 0;
}

.board-controls {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 100%;
    margin-bottom: 1rem;
    width: 100%;
    left: 0;
}

.board-actions {
    display: flex;
    gap: 0.5rem;
    z-index: 4;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.board-controls .board-actions {
    color: var(--pt-text-strong);
    background-color: rgb(255 255 255 / 0.7);
}

.board-controls .board-actions .icon-only {
    color: inherit;
}

@media (max-width: 640px) {
    .board-controls {
        padding: 0 0.5rem;
    }
}

.print-layout {
    min-height: 100vh;
    background: #fff;
    color: #000;
}

.assignments-print {
    font-size: 10pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
    padding: 0.5in 0.6in;
}

.assignments-print * {
    color: #000;
}

.assignments-print h1 {
    margin: 0;
    font-size: 14pt;
}

.assignments-print h2 {
    margin: 0 0 0.12in;
    font-size: 12pt;
}

.assignments-print .print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.2in;
}


.assignments-print .print-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 10pt;
}

.assignments-print .print-section {
    margin-top: 0.2in;
}

.assignments-print .print-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #000;
    border-radius: 0.12in;
    overflow: hidden;
    background: #fff;
}

.assignments-print .print-table th,
.assignments-print .print-table td {
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 0.08in 0.1in;
    vertical-align: top;
    background: #fff;
}

.assignments-print .print-table th:last-child,
.assignments-print .print-table td:last-child {
    border-right: none;
}

.assignments-print .print-table tr:last-child td {
    border-bottom: none;
}

.assignments-print .slot-title {
    font-weight: 700;
    margin-bottom: 0.05in;
    font-size: 12pt;
}

.assignments-print .slot-detail {
    margin-top: 0.04in;
}

.assignments-print .slot-label {
    font-weight: 700;
    margin-right: 0.1in;
}

.assignments-print .print-list {
    margin: 0;
    padding-left: 1em;
}

.assignments-print .print-list li {
    margin: 0 0 0.05in;
}

.assignments-print .print-table tr {
    page-break-inside: avoid;
}

:root {
    --pt-ad-footer-height: 56px;
}

.ad-slot {
    position: relative;
    border: 1px dashed var(--brand-border);
    border-radius: 0.85rem;
    background: var(--pt-surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-slot__label {
    position: absolute;
    top: 0.45rem;
    left: 0.65rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgb(var(--pt-neutral-rgb) / 0.12);
    color: var(--pt-text-subtle);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    pointer-events: none;
}

.ad-slot__container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot--inline {
    margin: 1.5rem 0;
    min-height: 120px;
    height: 120px;
}

.ad-slot--footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--pt-ad-footer-height);
    max-height: 60px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    z-index: 900;
}

body.ads-sticky-visible .main-content {
    padding-bottom: calc(4rem + var(--pt-ad-footer-height));
}

body.ads-sticky-visible .site-footer {
    margin-bottom: var(--pt-ad-footer-height);
}

@media (max-width: 640px) {
    body.ads-sticky-visible .main-content {
        padding-bottom: calc(1.5rem + var(--pt-ad-footer-height));
    }
}
