.wsp-dashboard,
.wsp-dashboard * {
    box-sizing: border-box;
}

.wsp-dashboard {
    position: relative;
    max-width: 1180px;
    margin: 24px auto;
    padding: 24px;
    border: 1px solid #dde2ea;
    border-radius: 24px;
    background: #f7f9fc;
    color: #152033;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wsp-demo-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #172033;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wsp-dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 20px;
}

.wsp-dashboard-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #52627a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wsp-dashboard-hero h1 {
    margin: 0 0 8px;
    color: #101828;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.wsp-dashboard-hero p,
.wsp-dashboard-panel p {
    margin: 0;
    color: #52627a;
    font-size: 15px;
    line-height: 1.55;
}

.wsp-dashboard-hero-card,
.wsp-dashboard-panel,
.wsp-stat-card,
.wsp-dashboard-notice {
    border: 1px solid #dde2ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
}

.wsp-dashboard-hero-card {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 18px;
}

.wsp-dashboard-hero-card strong {
    color: #101828;
    font-size: 20px;
}

.wsp-dashboard-hero-card span {
    color: #52627a;
    font-size: 13px;
}

.wsp-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.wsp-stat-card {
    padding: 18px;
}

.wsp-stat-card strong {
    display: block;
    margin-bottom: 4px;
    color: #101828;
    font-size: 30px;
    line-height: 1;
}

.wsp-stat-card span {
    display: block;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
}

.wsp-stat-card small {
    display: block;
    margin-top: 8px;
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
}

.wsp-dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.wsp-dashboard-panel {
    padding: 20px;
}

.wsp-dashboard-panel--accent {
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
}

.wsp-dashboard-panel h2 {
    margin: 0 0 14px;
    color: #101828;
    font-size: 20px;
}

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

.wsp-step-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fbfcfe;
}

.wsp-step-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #172033;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.wsp-step-item p {
    margin: 0;
    color: #334155;
    font-size: 14px;
}

.wsp-event-card {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #fff;
}

.wsp-event-card strong {
    color: #101828;
    font-size: 17px;
}

.wsp-event-card span {
    color: #52627a;
    font-size: 13px;
}

.wsp-dashboard-empty-map {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px dashed #b9c3d3;
    border-radius: 18px;
    background: #fbfcfe;
    color: #667085;
    text-align: center;
}

.wsp-dashboard-floorplan-preview {
    max-height: 620px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    background: #fff;
}

.wsp-dashboard-notice {
    max-width: 620px;
    margin: 0 auto;
    padding: 28px;
    text-align: center;
}

.wsp-dashboard-notice h2 {
    margin: 0 0 10px;
    color: #101828;
}

.wsp-dashboard-button {
    display: inline-flex;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #172033;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.wsp-dashboard-button:hover,
.wsp-dashboard-button:focus {
    color: #fff;
    text-decoration: none;
}

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

    .wsp-dashboard {
        padding: 16px;
        border-radius: 18px;
    }
}

.wsp-dashboard-panel-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

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

.wsp-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.wsp-permission-item {
    padding: 12px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fbfcfe;
}

.wsp-permission-item strong,
.wsp-permission-item span {
    display: block;
}

.wsp-permission-item strong {
    margin-bottom: 4px;
    color: #101828;
}

.wsp-permission-item span {
    color: #52627a;
    font-size: 13px;
}

.wsp-permission-item.is-enabled {
    border-color: #b7d9c5;
    background: #f6fff8;
}

.wsp-permission-item.is-disabled {
    opacity: 0.72;
}

@media (max-width: 900px) {
    .wsp-dashboard-panel-head,
    .wsp-permission-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Step 8: laptop-first workspace for the venue dashboard. */
.wsp-dashboard--workspace {
    width: min(1440px, calc(100vw - 48px));
    max-width: none;
    margin-left: 50%;
    margin-right: 0;
    transform: translateX(-50%);
}

.wsp-dashboard-hero--desktop {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.wsp-venue-workspace {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.wsp-venue-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dde2ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
}

.wsp-venue-sidebar strong {
    margin-bottom: 6px;
    color: #101828;
    font-size: 15px;
}

.wsp-venue-sidebar a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.wsp-venue-sidebar a:hover,
.wsp-venue-sidebar a:focus {
    border-color: #b7c2d4;
    background: #f8fafc;
    color: #111827;
    text-decoration: none;
}

.wsp-venue-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.wsp-action-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    gap: 18px;
    align-items: start;
}

.wsp-action-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.wsp-action-form h3 {
    margin: 0;
    color: #101828;
    font-size: 18px;
}

.wsp-action-form p {
    margin: 0;
}

.wsp-action-form label,
.wsp-action-form label span {
    display: grid;
    gap: 6px;
}

.wsp-action-form label span {
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.wsp-field {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #cfd7e3;
    border-radius: 12px;
    background: #fff;
    color: #101828;
    font: inherit;
}

.wsp-field:focus {
    border-color: #172033;
    outline: 2px solid rgba(23, 32, 51, 0.12);
}

.wsp-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.wsp-permission-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wsp-permission-mini label {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.wsp-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wsp-floorplan-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fff;
}

.wsp-floorplan-card-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 108px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #f8fafc;
    color: #667085;
    font-size: 13px;
}

.wsp-floorplan-card-thumb img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.wsp-floorplan-card-body {
    display: grid;
    align-content: center;
    gap: 6px;
}

.wsp-floorplan-card-body strong {
    color: #101828;
    font-size: 16px;
}

.wsp-floorplan-card-body span,
.wsp-panel-count {
    color: #52627a;
    font-size: 13px;
}

.wsp-action-notices {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.wsp-action-notice {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
}

.wsp-action-notice--success {
    border: 1px solid #b7d9c5;
    background: #f6fff8;
    color: #14532d;
}

.wsp-action-notice--error {
    border: 1px solid #fecaca;
    background: #fff7f7;
    color: #991b1b;
}

@media (max-width: 1100px) {
    .wsp-action-grid,
    .wsp-card-grid {
        grid-template-columns: 1fr;
    }

    .wsp-venue-workspace {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .wsp-dashboard--workspace {
        width: min(100%, calc(100vw - 24px));
    }

    .wsp-venue-workspace,
    .wsp-form-row,
    .wsp-permission-mini,
    .wsp-floorplan-card {
        grid-template-columns: 1fr;
    }

    .wsp-venue-sidebar {
        position: static;
    }
}

/* Step 9: event-to-couple connections and laptop-first couple dashboard. */
.wsp-action-grid--three {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
}

.wsp-action-form--wide {
    grid-column: 1 / -1;
}

.wsp-dashboard-button--small {
    min-height: 34px;
    margin-top: 0;
    padding: 8px 12px;
    font-size: 13px;
}

.wsp-dashboard-button--secondary {
    border: 1px solid #cfd7e3;
    background: #fff;
    color: #172033;
}

.wsp-dashboard-button--secondary:hover,
.wsp-dashboard-button--secondary:focus {
    color: #172033;
}

.wsp-event-card--linked {
    align-content: start;
}

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

.wsp-link-chip {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #f8fafc;
}

.wsp-link-chip span {
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wsp-link-chip code {
    display: block;
    overflow-x: auto;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    font-size: 12px;
    white-space: nowrap;
}

.wsp-couple-workspace {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.wsp-couple-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dde2ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
}

.wsp-couple-sidebar strong {
    margin-bottom: 6px;
    color: #101828;
    font-size: 15px;
}

.wsp-couple-sidebar a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.wsp-couple-sidebar a:hover,
.wsp-couple-sidebar a:focus {
    border-color: #b7c2d4;
    background: #f8fafc;
    color: #111827;
    text-decoration: none;
}

.wsp-couple-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.wsp-couple-event-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.wsp-couple-event-option {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fbfcfe;
    color: #101828;
    text-decoration: none;
}

.wsp-couple-event-option strong {
    color: #101828;
    font-size: 14px;
}

.wsp-couple-event-option span {
    color: #52627a;
    font-size: 12px;
}

.wsp-couple-event-option.is-active,
.wsp-couple-event-option:hover,
.wsp-couple-event-option:focus {
    border-color: #172033;
    background: #fff;
    text-decoration: none;
}

.wsp-readonly-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #b7d9c5;
    border-radius: 999px;
    background: #f6fff8;
    color: #14532d;
    font-size: 12px;
    font-weight: 800;
}

.wsp-readonly-pill--locked {
    border-color: #fecaca;
    background: #fff7f7;
    color: #991b1b;
}

@media (max-width: 1180px) {
    .wsp-couple-event-switch {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .wsp-couple-workspace,
    .wsp-couple-event-switch {
        grid-template-columns: 1fr;
    }

    .wsp-couple-sidebar {
        position: static;
    }
}

/* Step 9: stronger venue-couple connections and laptop-first event editing. */
.wsp-workflow-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.wsp-workflow-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 6px 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid #dde2ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.05);
}

.wsp-workflow-step span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #344054;
    font-weight: 900;
}

.wsp-workflow-step strong {
    color: #101828;
    font-size: 14px;
}

.wsp-workflow-step small {
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
}

.wsp-workflow-step.is-done span {
    background: #172033;
    color: #fff;
}

.wsp-link-grid,
.wsp-couple-workspace,
.wsp-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wsp-link-card,
.wsp-tool-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fbfcfe;
}

.wsp-link-card strong,
.wsp-tool-card strong {
    color: #101828;
    font-size: 15px;
}

.wsp-link-card p,
.wsp-tool-card p {
    margin: 0;
    color: #52627a;
    font-size: 13px;
    line-height: 1.45;
}

.wsp-copy-field {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #cfd7e3;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-size: 13px;
}

.wsp-event-card--editable {
    gap: 16px;
    padding: 18px;
}

.wsp-event-card-summary {
    display: grid;
    gap: 6px;
}

.wsp-event-connection-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #f8fafc;
}

.wsp-event-connection-form label,
.wsp-event-connection-form label span {
    display: grid;
    gap: 6px;
}

.wsp-event-connection-form label span {
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.wsp-tool-card span {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.wsp-tool-card.is-enabled {
    border-color: #b7d9c5;
    background: #f6fff8;
}

.wsp-tool-card.is-enabled span {
    background: #dcfce7;
    color: #14532d;
}

.wsp-tool-card.is-disabled {
    opacity: 0.78;
}

@media (max-width: 1100px) {
    .wsp-workflow-strip,
    .wsp-link-grid,
    .wsp-couple-workspace,
    .wsp-tool-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .wsp-workflow-strip,
    .wsp-link-grid,
    .wsp-couple-workspace,
    .wsp-tool-grid {
        grid-template-columns: 1fr;
    }
}

/* Step 9 hardening: clearer links, editable event cards, and first guest workspace. */
.wsp-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wsp-link-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #fbfcfe;
    min-width: 0;
}

.wsp-link-box strong {
    color: #101828;
    font-size: 15px;
}

.wsp-link-box a {
    overflow-wrap: anywhere;
}

.wsp-link-box--compact {
    margin-top: 6px;
    background: #fff;
}

.wsp-event-list--connected {
    gap: 16px;
}

.wsp-event-card-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.wsp-event-card-head > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.wsp-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.wsp-status-pill--setup {
    background: #f1f5f9;
    color: #334155;
}

.wsp-status-pill--with_couple {
    background: #ecfdf5;
    color: #166534;
}

.wsp-status-pill--locked {
    background: #fff7ed;
    color: #9a3412;
}

.wsp-status-pill--completed {
    background: #fef2f2;
    color: #991b1b;
}

.wsp-event-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wsp-event-meta-grid span {
    display: block;
    padding: 9px 10px;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #fbfcfe;
}

.wsp-event-edit-details {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.wsp-event-edit-details summary {
    cursor: pointer;
    color: #172033;
    font-weight: 800;
}

.wsp-action-form--inline {
    margin-top: 12px;
    background: #f8fafc;
}

.wsp-permission-mini--full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wsp-couple-event-switcher {
    margin-bottom: 18px;
}

.wsp-event-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wsp-event-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #e6eaf0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-weight: 800;
    text-decoration: none;
}

.wsp-event-tabs a.is-active,
.wsp-event-tabs a:hover,
.wsp-event-tabs a:focus {
    border-color: #172033;
    color: #101828;
    text-decoration: none;
}

.wsp-guest-panel {
    margin-bottom: 18px;
}

.wsp-guest-panel .wsp-dashboard-panel-head {
    align-items: flex-start;
}

.wsp-guest-panel .wsp-dashboard-panel-head p {
    margin: 4px 0 0;
    color: #52627a;
    font-size: 13px;
}

.wsp-action-form--guest {
    margin-bottom: 14px;
}

.wsp-form-row--guest {
    grid-template-columns: 1.25fr 0.85fr 0.6fr 0.6fr;
}

.wsp-textarea {
    min-height: 76px;
}

.wsp-guest-table {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.wsp-guest-table > div,
.wsp-guest-row {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fff;
}

.wsp-guest-table strong {
    color: #101828;
    font-size: 14px;
}

.wsp-guest-table span {
    color: #52627a;
    font-size: 13px;
}

.wsp-dashboard-empty-map--small {
    min-height: 96px;
}

@media (max-width: 1180px) {
    .wsp-permission-mini--full,
    .wsp-form-row--guest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .wsp-link-grid,
    .wsp-event-meta-grid,
    .wsp-permission-mini--full,
    .wsp-form-row--guest {
        grid-template-columns: 1fr;
    }

    .wsp-event-card-head {
        display: grid;
    }
}

/* Step 10: standalone desktop application shell and frontend floorplan editor. */
body.wsp-standalone-body {
    margin: 0;
    background: #eef2f7;
    color: #152033;
}

body.wsp-standalone-body #wpadminbar {
    position: fixed;
}

.wsp-standalone-shell,
.wsp-standalone-shell * {
    box-sizing: border-box;
}

.wsp-standalone-shell {
    min-height: 100vh;
    padding: 18px 24px 34px;
    background: radial-gradient(circle at top left, #ffffff 0, #eef2f7 38%, #e8edf5 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.admin-bar .wsp-standalone-shell {
    padding-top: 50px;
}

.wsp-standalone-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1680px, calc(100vw - 48px));
    margin: 0 auto 18px;
    padding: 12px 14px;
    border: 1px solid #dce3ee;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.07);
    backdrop-filter: blur(10px);
}

.wsp-standalone-brand,
.wsp-standalone-brand:hover,
.wsp-standalone-brand:focus {
    display: grid;
    gap: 2px;
    color: #101828;
    text-decoration: none;
}

.wsp-standalone-brand span {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.wsp-standalone-brand small {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.wsp-standalone-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.wsp-standalone-nav a,
.wsp-standalone-nav span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #e6eaf0;
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.wsp-standalone-nav a:hover,
.wsp-standalone-nav a:focus {
    border-color: #172033;
    color: #101828;
    text-decoration: none;
}

.wsp-standalone-main {
    width: 100%;
}

.wsp-standalone-body .wsp-dashboard,
.wsp-dashboard--workspace {
    width: min(1680px, calc(100vw - 48px)) !important;
    max-width: none !important;
    margin: 0 auto 24px !important;
    transform: none !important;
}

.wsp-standalone-body .wsp-dashboard {
    padding: 24px;
    border-radius: 26px;
}

.wsp-standalone-body .wsp-dashboard-hero--desktop {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.wsp-standalone-body .wsp-venue-workspace {
    grid-template-columns: 280px minmax(0, 1fr);
}

.wsp-standalone-body .wsp-venue-main,
.wsp-standalone-body .wsp-couple-main {
    min-width: 0;
}

.wsp-standalone-body .wsp-action-grid {
    grid-template-columns: minmax(360px, 0.8fr) minmax(560px, 1.25fr);
}

.wsp-standalone-body .wsp-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wsp-standalone-body .wsp-permission-mini {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wsp-floorplan-editor-panel {
    border-color: #c7d2fe;
    background: linear-gradient(135deg, #ffffff 0%, #f6f8ff 100%);
}

.wsp-dashboard-panel-head--editor {
    align-items: flex-start;
}

.wsp-dashboard-panel-head--editor > div {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.wsp-frontend-floorplan-form {
    display: grid;
    gap: 14px;
}

.wsp-frontend-floorplan-form .wsp-designer {
    margin: 0;
}

.wsp-frontend-floorplan-form .wsp-designer-main {
    display: grid;
    gap: 12px;
}

.wsp-frontend-floorplan-form .wsp-workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.wsp-frontend-floorplan-form .wsp-stage-wrap {
    min-width: 0;
    overflow: auto;
}

.wsp-frontend-floorplan-form .button,
.wsp-frontend-floorplan-form button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #cfd7e3;
    border-radius: 999px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.wsp-frontend-floorplan-form .button-primary,
.wsp-frontend-floorplan-form button.button-primary {
    border-color: #172033;
    background: #172033;
    color: #fff;
}

.wsp-frontend-floorplan-form .button:disabled,
.wsp-frontend-floorplan-form button.button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.wsp-frontend-floorplan-form .description {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.wsp-editor-save-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid #dce3ee;
    border-radius: 16px;
    background: #fff;
}

.wsp-editor-save-bar .wsp-dashboard-button {
    margin-top: 0;
}

.wsp-editor-save-bar span {
    color: #52627a;
    font-size: 13px;
    font-weight: 700;
}

.wsp-floorplan-card-body .wsp-dashboard-button {
    width: fit-content;
}

@media (max-width: 1280px) {
    .wsp-standalone-body .wsp-action-grid,
    .wsp-frontend-floorplan-form .wsp-workspace {
        grid-template-columns: 1fr;
    }

    .wsp-standalone-body .wsp-permission-mini {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .wsp-standalone-shell {
        padding-right: 12px;
        padding-left: 12px;
    }

    .wsp-standalone-topbar,
    .wsp-standalone-body .wsp-dashboard,
    .wsp-dashboard--workspace {
        width: min(100%, calc(100vw - 24px)) !important;
    }

    .wsp-standalone-topbar,
    .wsp-standalone-body .wsp-dashboard-hero--desktop,
    .wsp-standalone-body .wsp-venue-workspace,
    .wsp-standalone-body .wsp-form-row,
    .wsp-standalone-body .wsp-permission-mini {
        display: grid;
        grid-template-columns: 1fr;
    }

    .wsp-standalone-nav {
        justify-content: flex-start;
    }
}


/* Step 11: λειτουργίες ζευγαριού */
.wsp-occupancy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.wsp-occupancy-card {
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #f8fafc;
    padding: 12px;
}

.wsp-occupancy-card strong,
.wsp-occupancy-card span {
    display: block;
}

.wsp-occupancy-card strong {
    margin-bottom: 4px;
    color: #111827;
}

.wsp-occupancy-card span {
    color: #52627a;
    font-size: 13px;
}

.wsp-occupancy-card.is-over {
    border-color: #dc2626;
    background: #fff1f2;
}

.wsp-occupancy-card.is-over strong,
.wsp-occupancy-card.is-over span {
    color: #991b1b;
}

.wsp-guest-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.wsp-guest-row strong,
.wsp-guest-row span {
    grid-column: 1;
}

.wsp-inline-delete-form {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
}

.wsp-link-button {
    border: 0;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    font-weight: 700;
    text-decoration: underline;
}

.wsp-link-button:hover {
    color: #7a271a;
}
