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

:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --ink: #0c0f19;
    --muted: #5b667a;
    --accent: #2a7cff;
    --accent-soft: #e4efff;
    --stroke: #e3e8f0;
    --shadow: 0 20px 60px rgba(28, 44, 80, 0.12);
}

* {
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f6f8fc 0%, #eef3fb 60%, #f5f7fb 100%);
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
}

.site-footer {
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-meta {
    display: grid;
    gap: 6px;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--accent);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    background: var(--accent);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.brand-mark:hover,
.brand-mark:focus {
    text-decoration: none;
}

.brand-text {
    font-size: 1.05rem;
}

.content {
    flex: 1;
    padding: 16px 24px 40px;
}

.menu {
    position: relative;
}

.menu-toggle {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 6px 10px;
    background: #fff;
    color: var(--text);
}

.menu-toggle::-webkit-details-marker {
    display: none;
}

.menu-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 12px;
    z-index: 20;
}

.menu[open] .menu-panel {
    display: block;
}

.site-header--public {
    position: relative;
    z-index: 60;
    width: min(1420px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 14px 18px;
    border-radius: 22px;
    border: 1px solid rgba(220, 228, 240, 0.98);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 255, 0.9) 100%);
    box-shadow: 0 18px 40px rgba(28, 44, 80, 0.08);
    backdrop-filter: blur(8px);
}

.site-header--public .menu {
    position: relative;
    z-index: 61;
}

.site-header--public .menu-panel {
    z-index: 80;
}

.site-header--public .brand {
    gap: 12px;
}

.site-header--public .brand-mark--public {
    padding: 8px 12px;
    border-radius: 12px;
    letter-spacing: 0.05em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.site-header--public .brand-text {
    font-size: 1rem;
    color: #5e6d83;
    font-weight: 700;
}

.site-header--public .header-actions--public {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header--public .header-actions--public .primary-button,
.site-header--public .header-actions--public .ghost-button {
    min-height: 40px;
    border-radius: 12px;
}

.site-header--public .menu-toggle {
    min-height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer--public {
    width: min(1420px, calc(100% - 32px));
    margin: 8px auto 18px;
    padding: 14px 18px 0;
    border-top: 1px solid rgba(214, 224, 239, 0.96);
    color: #6a788d;
}

.site-footer--public .footer-meta {
    gap: 2px;
}

.site-footer--public .footer-links a {
    position: relative;
}

.site-footer--public .footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.site-footer--public .footer-links a:hover::after {
    opacity: 0.25;
}

.menu-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.menu-links {
    display: grid;
    gap: 6px;
}

.menu-link {
    text-decoration: none;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.menu-link:hover,
.menu-link:focus {
    background: var(--accent-soft);
    color: var(--accent);
    text-decoration: none;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.notif {
    position: relative;
}

.notif-toggle {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.notif-toggle::-webkit-details-marker {
    display: none;
}

.notif-dot {
    color: var(--accent);
}

.notif-count {
    background: #d93636;
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.75rem;
}

.notif-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 280px;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 10px;
    z-index: 20;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-list {
    display: grid;
    gap: 8px;
}

.notif-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: #f8fafc;
}

.notif-item .muted {
    display: block;
    font-size: 0.85rem;
}

.notif[open] .notif-toggle {
    border-color: var(--accent-soft);
    background: var(--accent-soft);
    color: var(--accent);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 16px 18px;
    display: none;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow);
    z-index: 20;
}

.cookie-banner p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .site-header,
    .site-footer {
        padding: 12px 16px;
    }

    .site-header--public,
    .site-footer--public {
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
    }

    .site-header--public {
        padding: 12px 14px;
        border-radius: 18px;
        margin-top: 12px;
    }

    .site-footer--public {
        padding: 12px 14px 0;
        margin-bottom: 12px;
    }

    .brand {
        gap: 6px;
    }

    .brand-mark {
        font-size: 0.78rem;
        padding: 6px 8px;
        border-radius: 10px;
    }

    .brand-text {
        font-size: 0.95rem;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .ghost-button,
    .header-actions .user-pill {
        display: none;
    }

    .menu-toggle {
        padding: 8px 12px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .subnav {
        display: none;
    }

    .content {
        padding: 12px 16px 32px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cookie-actions .primary-button,
    .cookie-actions .ghost-button {
        width: 100%;
    }
}

.cookie-banner.is-visible {
    display: flex;
}

.user-pill {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 24px 12px;
}

.subnav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--stroke);
}

@media (max-width: 820px) {
    .subnav {
        display: none;
    }
}

.hero {
    display: grid;
    gap: 24px;
}

.hero-card {
    background: var(--card);
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.hero-card h1 {
    font-size: 1.8rem;
    margin: 0 0 12px;
}

.subtext {
    color: var(--muted);
    margin: 0 0 20px;
    line-height: 1.6;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.primary-button {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(42, 124, 255, 0.2);
    border: none;
    appearance: none;
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.primary-button.is-loading {
    gap: 10px;
}

.button-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: button-spin 0.8s linear infinite;
}

.payment-card #payment-element {
    margin-bottom: 16px;
}

.payment-card #pay-button {
    margin-top: 16px;
}

.wallet-checkout {
    margin-bottom: 16px;
}

.wallet-checkout #wallet-button-element {
    display: grid;
    gap: 10px;
}

.ghost-button {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.1;
    appearance: none;
}

.danger-button {
    background: #c62828;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(198, 40, 40, 0.2);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.1;
    appearance: none;
}

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

.hero-meta {
    display: grid;
    gap: 16px;
}

.meta-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 18px 20px;
}

.meta-card h2 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.meta-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.section {
    display: grid;
    gap: 16px;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.section-header h1 {
    margin: 0;
    font-size: 1.6rem;
}

.section-header p {
    margin: 0;
    color: var(--muted);
}

.section-spacer {
    height: 8px;
}

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--stroke);
    box-shadow: 0 10px 30px rgba(28, 44, 80, 0.08);
}

.card-subtle {
    background: #f8fafc;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 12px;
}

.card h2 {
    margin: 0;
}

.placeholder-bar {
    position: sticky;
    bottom: 16px;
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(28, 44, 80, 0.08);
    display: grid;
    gap: 10px;
    z-index: 5;
}

.placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.placeholder-chip {
    border: 1px solid var(--stroke);
    background: #f8fafc;
    color: var(--text);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85rem;
    cursor: pointer;
}

.placeholder-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.placeholder-notice {
    margin: 0;
}

.template-toggle {
    background: none;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.template-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.template-chevron {
    display: inline-block;
    font-size: 1.4rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.card.is-open .template-chevron {
    transform: rotate(90deg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.card-header > div {
    display: grid;
    gap: 4px;
}

.card-header p {
    margin: 0;
}

.card-body {
    display: grid;
    gap: 10px;
}

.card-body p {
    margin: 0;
}

.card-body > h3 + .list {
    margin-top: -4px;
}

.card.stack {
    gap: 12px;
}

.stack > h1,
.stack > h2,
.stack > h3,
.stack > h4,
.stack > h5,
.stack > h6,
.card-body > h1,
.card-body > h2,
.card-body > h3,
.card-body > h4,
.card-body > h5,
.card-body > h6 {
    margin: 0;
}

@media (max-width: 720px) {
    .support-request-grid {
        grid-template-columns: 1fr;
    }

    .support-request-help {
        order: 1;
    }

    .support-request-form {
        order: 2;
    }
}

.thread-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.inline-edit summary {
    list-style: none;
}

.inline-edit summary::-webkit-details-marker {
    display: none;
}

.inline-edit[open] summary {
    margin-bottom: 12px;
}

.badge {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.order-summary-list li {
    align-items: flex-start;
}

.order-summary-list li > span:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.order-summary-list li > span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
}

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

.table {
    display: grid;
    gap: 8px;
}

.table-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    align-items: center;
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
}

.table-head {
    background: transparent;
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    padding-left: 4px;
}

.table-total {
    font-weight: 700;
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.link.is-disabled {
    color: var(--muted);
    text-decoration: line-through;
    cursor: not-allowed;
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-dashboard-page .dashboard-page-frame {
    max-width: 1420px;
    margin: 0 auto;
}

.admin-dashboard-page .dashboard-shell {
    display: grid;
    gap: 16px;
    position: relative;
}

.admin-dashboard-page .dashboard-shell::before {
    content: '';
    position: absolute;
    inset: 18px 0 auto 0;
    height: 180px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(42, 124, 255, 0.11), rgba(42, 124, 255, 0) 34%),
        linear-gradient(180deg, rgba(42, 124, 255, 0.07) 0%, rgba(42, 124, 255, 0) 100%);
    pointer-events: none;
}

.dashboard-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dashboard-header {
    align-items: end;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.dashboard-header p {
    max-width: 46rem;
}

.dashboard-masthead {
    padding: 16px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 250, 255, 0.9) 100%);
    border: 1px solid rgba(220, 228, 240, 0.98);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(28, 44, 80, 0.08);
    backdrop-filter: blur(8px);
}

.dashboard-masthead h1 {
    margin: 0;
    letter-spacing: -0.03em;
}

.dashboard-masthead p {
    margin: 4px 0 0;
    color: var(--muted);
}

.dashboard-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    position: relative;
    z-index: 1;
}

.dashboard-kpi {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.95) 100%);
    border: 1px solid rgba(220, 228, 240, 0.98);
    border-radius: 18px;
    padding: 14px 16px 14px 18px;
    box-shadow: 0 12px 28px rgba(28, 44, 80, 0.07);
    display: grid;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.dashboard-kpi::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #2a7cff 0%, #8bb7ff 100%);
}

.dashboard-kpi.is-urgent {
    border-color: rgba(198, 40, 40, 0.18);
    background: linear-gradient(180deg, rgba(255, 246, 246, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.dashboard-kpi.is-attention {
    border-color: rgba(42, 124, 255, 0.16);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.dashboard-kpi-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-kpi-value {
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #18263a;
}

.dashboard-kpi-meta {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.dashboard-secondary-stats {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    position: relative;
    z-index: 1;
}

.dashboard-secondary-stat {
    display: grid;
    gap: 3px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(220, 228, 240, 0.92);
    border-radius: 14px;
}

.dashboard-secondary-stat strong {
    font-size: 1.05rem;
}

.dashboard-secondary-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-workgrid {
    display: grid;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.dashboard-stack {
    display: grid;
    gap: 14px;
    align-content: start;
}

.dashboard-panel {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(220, 228, 240, 0.98);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.96) 100%);
    box-shadow: 0 14px 30px rgba(28, 44, 80, 0.075);
}

.dashboard-panel-header {
    gap: 8px;
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(227, 232, 240, 0.85);
}

.dashboard-panel-header h2 {
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.dashboard-panel-header p {
    font-size: 0.88rem;
    color: var(--muted);
}

.dashboard-list {
    display: grid;
    gap: 8px;
}

.dashboard-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 12px 12px;
    border-top: none;
    border: 1px solid rgba(221, 229, 241, 0.95);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-row:first-child {
    border-top: none;
}

.dashboard-row-main {
    min-width: 0;
}

.dashboard-row-main strong {
    display: block;
    margin: 0 0 4px;
    line-height: 1.35;
    color: #18263a;
}

.dashboard-row-meta,
.dashboard-row-submeta {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.dashboard-row-side {
    display: grid;
    justify-items: end;
    gap: 8px;
    text-align: right;
}

.dashboard-row-amount {
    font-weight: 700;
    white-space: nowrap;
    color: #18263a;
}

.dashboard-row-link {
    font-weight: 600;
}

.dashboard-empty {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    padding: 12px;
    border: 1px dashed rgba(215, 223, 235, 0.95);
    border-radius: 12px;
    background: #fbfcff;
}

.dashboard-inline-notices {
    display: grid;
    gap: 8px;
    margin: 0 0 2px;
}

.dashboard-inline-notice {
    display: grid;
    gap: 2px;
    text-decoration: none;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(42, 124, 255, 0.18);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(241, 247, 255, 0.96) 100%);
}

.dashboard-inline-notice-label {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.table-actions form {
    margin: 0;
}

.table-actions button.link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.upload-list {
    display: grid;
    gap: 10px;
}

.upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.upload-item.is-error {
    border-color: #f1b0b0;
    color: #a73535;
    background: #fff5f5;
}

.thread-message {
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.thread-message.from-customer {
    border-color: #dbe8ff;
    background: #f7faff;
}

.thread-message.from-admin {
    border-color: #f0e4ff;
    background: #fbf8ff;
}

.thread-message.thread-message-system {
    border-style: dashed;
    border-color: #d7dee8;
    background: #f8fafc;
}

.thread-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.attachment {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    text-decoration: none;
    color: var(--accent);
    background: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.attachment-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: #fff;
    padding: 0;
    width: 140px;
    height: 105px;
    overflow: hidden;
    cursor: pointer;
}

.attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 15, 25, 0.85);
    z-index: 1000;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(10, 15, 25, 0.6);
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

.status {
    text-transform: capitalize;
    font-weight: 600;
}

.status.open {
    color: #1b6cf0;
}

.status.closed {
    color: #6c7486;
}

.status.paid {
    color: #0a8f4d;
}

.status.due {
    color: #d77400;
}

.status.expired,
.status.failed,
.status.refunded {
    color: #c32b2b;
}

.status.cancelled {
    color: #6c7486;
}

.status.awaiting_payment,
.status.pending {
    color: #d77400;
}

.status.approved,
.status.processing,
.status.quote_sent,
.status.design,
.status.build,
.status.review {
    color: #1b6cf0;
}

.status.fulfilled,
.status.active,
.status.ready_to_launch,
.status.live {
    color: #0a8f4d;
}

.status.rejected,
.status.suspended,
.status.archived,
.status.quote_rejected,
.status.on_hold {
    color: #6c7486;
}

.status.quote_draft,
.status.final_due {
    color: #d77400;
}

.grid {
    display: grid;
    gap: 20px;
}

.notice {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
}

.metric {
    font-size: 2rem;
    margin: 0;
}

.field textarea,
.field select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
}

.field textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.radio {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--muted);
}

.inline-form {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.inline-action {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-left: 8px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-top: 16px;
}

.tab-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-button {
    border: 1px solid var(--stroke);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

.tab-button.is-active {
    color: var(--accent);
    border-color: var(--accent-soft);
    background: var(--accent-soft);
}

.email-preview {
    background: #fff;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 16px;
}

.wysiwyg-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wysiwyg-editor {
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 12px;
    min-height: 180px;
    background: #fff;
}

.note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.stack {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.field input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
}

.field input[type="number"],
.field input[type="date"] {
    max-width: 220px;
}

.inline-select {
    max-width: 140px;
}

.field.is-hidden {
    display: none;
}

.option-group {
    display: grid;
    gap: 10px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--muted);
}

.option-row input[type="radio"],
.option-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.mailbox-request-options {
    gap: 14px;
}

.mailbox-request-option-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.mailbox-request-option {
    display: block;
    cursor: pointer;
}

.mailbox-request-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mailbox-request-option-card {
    display: grid;
    gap: 10px;
    min-height: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: #fff;
    color: var(--muted);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.mailbox-request-option:hover .mailbox-request-option-card {
    border-color: rgba(34, 102, 190, 0.28);
    box-shadow: 0 10px 24px rgba(28, 44, 80, 0.08);
    transform: translateY(-1px);
}

.mailbox-request-option input[type="radio"]:checked + .mailbox-request-option-card {
    border-color: rgba(34, 102, 190, 0.42);
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 12px 28px rgba(28, 44, 80, 0.1);
    color: var(--text);
}

.mailbox-request-option-top {
    display: flex;
    gap: 12px;
    align-items: start;
    justify-content: space-between;
}

.mailbox-request-option-price {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 102, 190, 0.1);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.mailbox-request-option-copy {
    line-height: 1.5;
}

.unit-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f4f7ff;
    border: 1px solid var(--stroke);
}

.unit-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.unit-pill {
    border: 1px solid var(--stroke);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
}

.unit-pill.is-active {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.wizard-title {
    font-size: 1.4rem;
}

.cron-progress.is-hidden {
    display: none;
}

.progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e9edf6;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-field input {
    padding-right: 70px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--stroke);
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    cursor: pointer;
}

.field input:focus {
    outline: 2px solid rgba(42, 124, 255, 0.25);
    border-color: var(--accent);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 40;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 21, 43, 0.55);
}

.modal-card {
    position: relative;
    width: min(1100px, 100%);
    max-height: min(85vh, 860px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--stroke);
    background: #fff;
}

.modal-body {
    padding: 24px;
    overflow: auto;
}

body.modal-open {
    overflow: hidden;
}

@media (min-width: 900px) {
    .content {
        padding: 40px 80px 60px;
    }

    .hero {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }

    .hero-card h1 {
        font-size: 2.2rem;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-workgrid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.92fr);
        align-items: start;
    }

    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 700px) and (max-width: 899px) {
    .dashboard-workgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 699px) {
    .dashboard-masthead {
        padding: 14px;
    }

    .dashboard-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-row-side {
        justify-items: start;
        text-align: left;
    }
}

.website-project-page .wp-page-frame {
    max-width: 1420px;
    margin: 0 auto;
}

.website-project-page .website-project-shell {
    position: relative;
}

.website-project-page .website-project-shell::before {
    content: '';
    position: absolute;
    inset: 22px 0 auto 0;
    height: 184px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(42, 124, 255, 0.12), rgba(42, 124, 255, 0) 46%),
        linear-gradient(180deg, rgba(42, 124, 255, 0.08) 0%, rgba(42, 124, 255, 0) 100%);
    pointer-events: none;
}

.website-project-page .wp-workspace {
    display: grid;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.website-project-page .wp-masthead {
    display: grid;
    gap: 12px;
    padding: 14px 18px 16px;
    background:
        radial-gradient(circle at top left, rgba(42, 124, 255, 0.11), rgba(42, 124, 255, 0) 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 255, 0.9) 100%);
    border: 1px solid rgba(214, 224, 239, 0.98);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(20, 34, 58, 0.08);
    backdrop-filter: blur(10px);
}

.website-project-page .wp-masthead__top,
.website-project-page .wp-masthead__main,
.website-project-page .wp-title-row,
.website-project-page .wp-chip-row,
.website-project-page .wp-title-meta,
.website-project-page .wp-breadcrumbs,
.website-project-page .wp-masthead__actions,
.website-project-page .wp-action-cluster,
.website-project-page .wp-inline-actions,
.website-project-page .wp-task-row__top,
.website-project-page .wp-task-row__meta,
.website-project-page .wp-checkpoint-pill__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.website-project-page .wp-masthead__top,
.website-project-page .wp-masthead__main {
    justify-content: space-between;
}

.website-project-page .wp-masthead__main {
    align-items: flex-start;
}

.website-project-page .wp-masthead__top {
    align-items: center;
}

.website-project-page .wp-breadcrumbs {
    font-size: 0.82rem;
    color: var(--muted);
    opacity: 0.92;
}

.website-project-page .wp-title-block {
    min-width: 0;
    flex: 1 1 auto;
}

.website-project-page .wp-masthead__identity {
    display: grid;
    gap: 10px;
}

.website-project-page .wp-title-row h1 {
    margin: 0;
    font-size: clamp(1.72rem, 2.4vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.website-project-page .wp-title-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.website-project-page .wp-title-meta--chips {
    gap: 6px;
}

.website-project-page .wp-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(220, 229, 243, 0.95);
    color: #5a6a80;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.website-project-page .wp-meta-chip strong {
    color: #233248;
}

.website-project-page .wp-masthead__actions {
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 10px;
}

.website-project-page .wp-masthead__status {
    padding-top: 2px;
}

.website-project-page .wp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid #dde5ef;
    background: rgba(244, 248, 255, 0.92);
    color: #304256;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.website-project-page .wp-chip--paid,
.website-project-page .wp-chip--live,
.website-project-page .wp-chip--complete,
.website-project-page .wp-chip--done,
.website-project-page .wp-chip--approved,
.website-project-page .wp-chip--active {
    background: #e8f7ef;
    color: #166534;
    border-color: #c7ead4;
}

.website-project-page .wp-chip--overdue,
.website-project-page .wp-chip--cancelled,
.website-project-page .wp-chip--quote_rejected,
.website-project-page .wp-chip--failed {
    background: #fff1f0;
    color: #b42318;
    border-color: #f5d0cc;
}

.website-project-page .wp-chip--open,
.website-project-page .wp-chip--final_due,
.website-project-page .wp-chip--requires_payment_method,
.website-project-page .wp-chip--requires_source,
.website-project-page .wp-chip--not_linked,
.website-project-page .wp-chip--neutral {
    background: #fff7e8;
    color: #92400e;
    border-color: #f2ddad;
}

.website-project-page .wp-chip--in_progress,
.website-project-page .wp-chip--design,
.website-project-page .wp-chip--build,
.website-project-page .wp-chip--review,
.website-project-page .wp-chip--ready_to_launch,
.website-project-page .wp-chip--quote_sent,
.website-project-page .wp-chip--awaiting_payment,
.website-project-page .wp-chip--pending,
.website-project-page .wp-chip--on_hold,
.website-project-page .wp-chip--open {
    background: #eaf1ff;
    color: #1d4ed8;
    border-color: #cedcff;
}

.website-project-page .wp-kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: -2px;
}

.website-project-page .wp-kpi {
    display: grid;
    gap: 4px;
    padding: 14px 14px 14px 17px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.96) 100%);
    border: 1px solid rgba(227, 232, 240, 0.95);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(28, 44, 80, 0.07);
}

.website-project-page .wp-kpi::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #2a7cff 0%, #81b0ff 100%);
    opacity: 0.9;
}

.website-project-page .wp-kpi strong {
    font-size: 1.08rem;
    line-height: 1.12;
}

.website-project-page .wp-kpi__value {
    color: #122033;
    letter-spacing: -0.02em;
}

.website-project-page .wp-kpi small,
.website-project-page .wp-panel__head p,
.website-project-page .wp-feed__item span,
.website-project-page .wp-conversation-row p,
.website-project-page .wp-conversation-row__meta span,
.website-project-page .wp-activity-row__body span,
.website-project-page .wp-empty-state span,
.website-project-page .wp-note-inline span,
.website-project-page .wp-task-row__meta,
.website-project-page .wp-disclosure summary small {
    color: var(--muted);
}

.website-project-page .wp-kpi__label,
.website-project-page .wp-facts-grid dt,
.website-project-page .wp-mini-list dt {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.website-project-page .wp-tabbar {
    gap: 6px;
    padding: 6px 0 4px;
    border-bottom: 1px solid rgba(227, 232, 240, 0.85);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.website-project-page .wp-tabbar::-webkit-scrollbar {
    display: none;
}

.website-project-page .wp-tabbar .tab-button {
    padding: 10px 15px;
    border-radius: 13px;
    border-bottom-color: transparent;
    background: rgba(255, 255, 255, 0.68);
    color: #66758b;
    flex: 0 0 auto;
    font-weight: 700;
}

.website-project-page .wp-tabbar .tab-button.is-active {
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    color: #15253a;
    border-color: rgba(214, 224, 239, 0.95);
    box-shadow: 0 10px 18px rgba(28, 44, 80, 0.07);
}

.website-project-page .website-project-tabpanel {
    padding-top: 2px;
}

.website-project-page .wp-overview-grid,
.website-project-page .wp-delivery-grid,
.website-project-page .wp-conversation-grid {
    display: grid;
    gap: 12px;
    align-items: start;
}

.website-project-page .wp-overview-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
}

.website-project-page .wp-delivery-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr);
}

.website-project-page .wp-conversation-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
}

.website-project-page .wp-side-rail {
    display: grid;
    gap: 12px;
}

.website-project-page .wp-main-stack {
    display: grid;
    gap: 12px;
}

.website-project-page .wp-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.96) 100%);
    border: 1px solid rgba(220, 228, 240, 0.98);
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(28, 44, 80, 0.075);
}

.website-project-page .wp-masthead__actions .primary-button,
.website-project-page .wp-masthead__actions .ghost-button {
    min-height: 40px;
    border-radius: 12px;
    font-weight: 700;
}

.website-project-page .website-project-card {
    position: relative;
}

.website-project-page .website-project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.website-project-page .wp-panel__head {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(227, 232, 240, 0.8);
}

.website-project-page .wp-panel--compact {
    gap: 10px;
}

.website-project-page .wp-panel--tight {
    gap: 10px;
    padding: 12px;
}

.website-project-page .wp-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.website-project-page .wp-panel__head h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.website-project-page .wp-panel__head p {
    margin: 3px 0 0;
    font-size: 0.86rem;
}

.website-project-page .wp-panel__head--rail {
    align-items: center;
}

.website-project-page .wp-panel__head--split {
    align-items: center;
}

.website-project-page .wp-disclosure,
.website-project-page .wp-inline-notes {
    border: 1px solid rgba(227, 232, 240, 0.98);
    border-radius: 12px;
    background: #fbfcff;
}

.website-project-page .wp-disclosure summary,
.website-project-page .wp-inline-notes summary {
    list-style: none;
    cursor: pointer;
}

.website-project-page .wp-disclosure summary::-webkit-details-marker,
.website-project-page .wp-inline-notes summary::-webkit-details-marker {
    display: none;
}

.website-project-page .wp-disclosure summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
}

.website-project-page .wp-disclosure summary span:first-child {
    display: grid;
    gap: 4px;
}

.website-project-page .wp-disclosure__hint {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 700;
}

.website-project-page .wp-disclosure__body {
    padding: 0 14px 14px;
}

.website-project-page .wp-copy-block {
    line-height: 1.55;
    color: #243245;
}

.website-project-page .wp-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0;
}

.website-project-page .wp-facts-grid div,
.website-project-page .wp-mini-list div {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border-radius: 15px;
    background: linear-gradient(180deg, #fcfdff 0%, #f6f9ff 100%);
    border: 1px solid rgba(223, 231, 242, 0.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.website-project-page .wp-facts-grid dd,
.website-project-page .wp-mini-list dd {
    margin: 0;
    font-weight: 700;
    word-break: break-word;
}

.website-project-page .wp-feed {
    display: grid;
    gap: 0;
}

.website-project-page .wp-feed__item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(227, 232, 240, 0.98);
}

.website-project-page .wp-feed__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.website-project-page .wp-reference-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.website-project-page .wp-reference-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 15px;
    background: linear-gradient(180deg, #fcfdff 0%, #f7faff 100%);
    border: 1px solid rgba(223, 231, 242, 0.95);
}

.website-project-page .wp-reference-row dd {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.website-project-page .wp-reference-main {
    font-weight: 700;
    color: #1d2b3d;
}

.website-project-page .wp-action-cluster {
    gap: 8px;
}

.website-project-page .wp-inline-form-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.website-project-page .wp-inline-form-grid .field--full {
    grid-column: 1 / -1;
}

.website-project-page .wp-inline-form-grid > button {
    align-self: end;
}

.website-project-page .wp-mini-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.website-project-page .wp-empty-state {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px dashed #d7dfeb;
    border-radius: 12px;
    background: #fbfcff;
}

.website-project-page .wp-rail {
    position: sticky;
    top: 14px;
}

.website-project-page .wp-rail-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.website-project-page .wp-rail-summary__item,
.website-project-page .wp-detail-pill {
    display: grid;
    gap: 4px;
    padding: 10px 11px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
    border: 1px solid rgba(220, 228, 240, 0.98);
}

.website-project-page .wp-checkpoint-rail {
    display: grid;
    gap: 8px;
}

.website-project-page .wp-checkpoint-pill {
    display: grid;
    gap: 6px;
    padding: 12px 12px;
    border-radius: 18px;
    border: 1px solid rgba(220, 228, 240, 0.98);
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.website-project-page .wp-checkpoint-pill:hover {
    transform: translateY(-1px);
    border-color: #c9d7f1;
}

.website-project-page .wp-checkpoint-pill.is-active {
    border-color: #aac7fb;
    background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
    box-shadow: inset 0 0 0 1px #d6e4ff, 0 12px 24px rgba(42, 124, 255, 0.11);
}

.website-project-page .wp-checkpoint-pill__top,
.website-project-page .wp-conversation-row,
.website-project-page .wp-detail-title-row,
.website-project-page .wp-task-header-row,
.website-project-page .wp-detail-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.website-project-page .wp-checkpoint-pill__meta,
.website-project-page .wp-checkpoint-pill__bottom,
.website-project-page .wp-task-row__meta,
.website-project-page .wp-conversation-row p {
    font-size: 0.85rem;
}

.website-project-page .wp-annotation-strip {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid rgba(227, 232, 240, 0.98);
}

.website-project-page .wp-annotation-strip p {
    margin: 0;
    color: #243245;
    line-height: 1.55;
}

.website-project-page .wp-checkpoint-dashboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.website-project-page .wp-detail-toolbar {
    align-items: stretch;
}

.website-project-page .wp-detail-pill {
    min-width: 0;
    flex: 1 1 0;
}

.website-project-page .wp-checkpoint-stat,
.website-project-page .wp-stage-strip__item,
.website-project-page .wp-snapshot-band__item {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #fcfdff 0%, #f5f8ff 100%);
    border: 1px solid rgba(221, 229, 241, 0.95);
}

.website-project-page .wp-stage-strip,
.website-project-page .wp-snapshot-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.website-project-page .wp-stage-form {
    display: grid;
    gap: 10px;
}

.website-project-page .wp-checkpoint-progress {
    grid-column: 1 / -1;
}

.website-project-page .wp-checkpoint-progress__bar {
    height: 8px;
    border-radius: 999px;
    background: #e6edf8;
    overflow: hidden;
}

.website-project-page .wp-checkpoint-progress__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2a7cff 0%, #73a6ff 100%);
}

.website-project-page .wp-task-table {
    display: grid;
    gap: 8px;
}

.website-project-page .wp-task-table__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 80px 220px;
    gap: 10px;
    padding: 0 12px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.website-project-page .wp-task-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 80px 220px;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(220, 228, 240, 0.98);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    align-items: start;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.website-project-page .wp-task-row.is-done {
    background: linear-gradient(180deg, #f9fdfb 0%, #f2fbf5 100%);
}

.website-project-page .wp-task-row__main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.website-project-page .wp-task-row__status,
.website-project-page .wp-task-row__order {
    display: flex;
    align-items: center;
}

.website-project-page .wp-task-row__title {
    font-size: 0.98rem;
    line-height: 1.3;
    color: #17263a;
}

.website-project-page .wp-task-row__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.website-project-page .wp-task-row__actions .ghost-button,
.website-project-page .wp-task-row__actions .link {
    min-height: 34px;
}

.website-project-page .wp-inline-notes summary {
    padding: 8px 10px;
    font-size: 0.86rem;
    color: var(--muted);
}

.website-project-page .wp-inline-notes__body {
    padding: 0 10px 10px;
    line-height: 1.5;
    color: #243245;
    font-size: 0.92rem;
}

.website-project-page .wp-note-inline {
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
    border: 1px solid rgba(220, 228, 240, 0.98);
}

.website-project-page .wp-document-preview,
.website-project-page .wp-note-card {
    padding: 14px 15px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fcfdff 0%, #f4f8ff 100%);
    border: 1px solid rgba(227, 232, 240, 0.98);
}

.website-project-page .wp-document-preview p,
.website-project-page .wp-note-card p {
    margin: 0;
    line-height: 1.6;
    color: #243245;
}

.website-project-page .wp-conversation-list,
.website-project-page .wp-activity-list {
    display: grid;
    gap: 8px;
}

.website-project-page .wp-conversation-row {
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(220, 228, 240, 0.98);
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.website-project-page .wp-conversation-row__top {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.website-project-page .wp-conversation-row p {
    margin: 4px 0 0;
}

.website-project-page .wp-conversation-row__meta {
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
    font-size: 0.84rem;
}

.website-project-page .wp-activity-panel {
    min-height: 0;
}

.website-project-page .wp-activity-list {
    position: relative;
    padding-left: 4px;
}

.website-project-page .wp-activity-list::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: #dbe4ef;
}

.website-project-page .wp-activity-row {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
}

.website-project-page .wp-activity-row__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 7px;
    position: relative;
    z-index: 1;
}

.website-project-page .wp-activity-row__body {
    display: grid;
    gap: 3px;
    padding: 2px 0 10px;
}

.website-project-page .wp-modal-card {
    width: min(760px, 100%);
    max-height: min(86vh, 900px);
}

.website-project-page .wp-task-row__primary {
    border-color: rgba(42, 124, 255, 0.28);
    background: rgba(42, 124, 255, 0.08);
    color: #1950c9;
}

.website-project-page .wp-modal-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.website-project-page .wp-panel--feature {
    background:
        radial-gradient(circle at top right, rgba(42, 124, 255, 0.08), rgba(42, 124, 255, 0) 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
}

.website-project-page .wp-delivery-setup-bar {
    margin-bottom: 16px;
}

.website-project-page .wp-delivery-setup-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    align-items: end;
}

.website-project-page .wp-inline-form-grid--delivery {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.website-project-page .wp-delivery-setup-actions,
.website-project-page .wp-delivery-template-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.website-project-page .wp-delivery-template-summary {
    display: grid;
    gap: 2px;
}

.website-project-page .ghost-button--danger {
    border-color: rgba(176, 46, 46, 0.18);
    color: #a22b2b;
    background: rgba(176, 46, 46, 0.05);
}

.website-project-page .field--checkbox {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.website-project-page .field--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

@media (max-width: 1100px) {
    .website-project-page .wp-overview-grid,
    .website-project-page .wp-delivery-grid,
    .website-project-page .wp-conversation-grid {
        grid-template-columns: 1fr;
    }

    .website-project-page .wp-delivery-setup-grid,
    .website-project-page .wp-inline-form-grid--delivery {
        grid-template-columns: 1fr;
    }

    .website-project-page .wp-rail {
        position: static;
    }
}

@media (max-width: 720px) {
    .website-project-page .wp-masthead {
        padding: 12px 12px 14px;
        border-radius: 18px;
    }

    .website-project-page .wp-masthead__top,
    .website-project-page .wp-masthead__main,
    .website-project-page .wp-task-row__actions,
    .website-project-page .wp-conversation-row,
    .website-project-page .wp-feed__item,
    .website-project-page .wp-detail-title-row,
    .website-project-page .wp-detail-toolbar,
    .website-project-page .wp-panel__head {
        flex-direction: column;
        align-items: stretch;
    }

    .website-project-page .wp-inline-form-grid,
    .website-project-page .wp-facts-grid,
    .website-project-page .wp-modal-grid,
    .website-project-page .wp-stage-strip,
    .website-project-page .wp-snapshot-band,
    .website-project-page .wp-checkpoint-dashboard,
    .website-project-page .wp-task-row,
    .website-project-page .wp-task-table__head {
        grid-template-columns: 1fr;
    }

    .website-project-page .wp-conversation-row__meta {
        justify-items: start;
        text-align: left;
    }

    .website-project-page .wp-masthead__actions {
        justify-content: flex-start;
    }

    .website-project-page .wp-reference-row {
        grid-template-columns: 1fr;
    }

    .website-project-page .wp-task-table__head {
        display: none;
    }

    .website-project-page .wp-task-row__status,
    .website-project-page .wp-task-row__order {
        justify-content: flex-start;
    }
}
