/* ============================================================
   MW // OPERATOR — Komponenty
   ============================================================ */

/* ============================================================
   APP SHELL
   ============================================================ */

.mw-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--mw-bg-cream);
    position: relative;
}

.mw-app-grid {
    flex: 1;
    padding: var(--mw-sp-4);
    display: grid;
    grid-template-columns: 280px 1fr 380px;
    grid-template-rows: auto auto auto auto;
    gap: var(--mw-sp-4);
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
}

/* Tablet: 2 kolumny */
@media (max-width: 1280px) {
    .mw-app-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* Wszystkie sekcje przepływają w grid (bez sztywnego positioningu) */
    .mw-app-grid > section {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    /* Wyjątek: GENERATOR i SESJA pełna szerokość */
    .mw-app-grid > section#mw-generator-card,
    .mw-app-grid > section[data-mw-section="session"] {
        grid-column: 1 / -1 !important;
    }
}

/* Mobile: 1 kolumna */
@media (max-width: 768px) {
    .mw-app-grid {
        grid-template-columns: 1fr;
        padding: var(--mw-sp-2);
        gap: var(--mw-sp-3);
    }
    .mw-app-grid > section {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
    /* Mniejszy padding kart na mobile */
    .mw-card {
        padding: var(--mw-sp-4);
    }
    /* Status header — kompresja metryk */
    .mw-status-header {
        flex-wrap: wrap;
        gap: var(--mw-sp-2);
        font-size: var(--mw-fs-mono-xs);
    }
    .mw-status-metrics {
        gap: var(--mw-sp-3);
    }
    /* Display headlines mniejsze */
    .mw-h-display {
        font-size: 38px !important;
    }
    .mw-h-1 { font-size: 28px; }
    .mw-h-2 { font-size: 22px; }
    /* Pill row scrollable na mobile */
    .mw-pill-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 calc(var(--mw-sp-4) * -1);
        padding: 0 var(--mw-sp-4);
    }
    .mw-pill-row::-webkit-scrollbar { display: none; }
    .mw-pill { flex-shrink: 0; }
    /* Donut row scrollable */
    .mw-donut-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    /* Form fields w generatorze — pojedyncza kolumna */
    [data-mw-generator] .mw-row {
        flex-direction: column;
        gap: var(--mw-sp-2) !important;
    }
    /* QR modal pełna szerokość */
    .mw-modal {
        max-width: 100%;
        margin: 0;
        padding: var(--mw-sp-4);
    }
    /* ASCII corners ukryte na mobile */
    .mw-ascii-corner { display: none; }
}

/* Bardzo małe ekrany */
@media (max-width: 380px) {
    .mw-h-display {
        font-size: 28px !important;
    }
    .mw-status-brand {
        font-size: 10px;
    }
}

/* ============================================================
   STATUS HEADER (top bar — operator OS metrics)
   Inspiracja: Jerrod OS "BROOKLYN, NY · 58°F · BAT 92% · ..."
   ============================================================ */

.mw-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--mw-sp-3) var(--mw-sp-4);
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-sm);
    letter-spacing: var(--mw-ls-mono);
    text-transform: uppercase;
    color: var(--mw-text-muted);
    border-bottom: 1px solid var(--mw-border-soft);
    background: var(--mw-bg-cream);
}

.mw-status-brand {
    color: var(--mw-text-primary);
    display: flex;
    align-items: center;
    gap: var(--mw-sp-2);
}

.mw-status-brand .mw-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--mw-accent);
    box-shadow: 0 0 0 2px var(--mw-accent-bg);
}

.mw-status-metrics {
    display: flex;
    gap: var(--mw-sp-6);
    align-items: center;
}

.mw-status-metrics > span {
    white-space: nowrap;
}

.mw-status-metrics .mw-sep {
    color: var(--mw-text-faint);
}

/* ============================================================
   THEME TOGGLE (sun/moon)
   ============================================================ */

.mw-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--mw-sp-1);
    padding: var(--mw-sp-1) var(--mw-sp-2);
    border-radius: var(--mw-radius-pill);
    transition: background var(--mw-dur-fast) var(--mw-ease-out);
}

.mw-theme-toggle:hover {
    background: var(--mw-accent-bg);
}

.mw-theme-toggle .mw-theme-icon {
    width: 18px; height: 18px;
    fill: currentColor;
    color: var(--mw-text-muted);
    transition: color var(--mw-dur-fast) var(--mw-ease-out);
}

.mw-theme-toggle:hover .mw-theme-icon {
    color: var(--mw-accent);
}

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

/* ============================================================
   NUMBERED CARD (główny element layoutu)
   Inspiracja: "01 // OPERATOR    ONLINE"
   ============================================================ */

.mw-card {
    background: var(--mw-bg-card);
    border-radius: var(--mw-radius-card);
    padding: var(--mw-sp-5);
    box-shadow: var(--mw-shadow-card);
    transition: box-shadow var(--mw-dur-base) var(--mw-ease-out),
                transform var(--mw-dur-base) var(--mw-ease-out);
    position: relative;
    overflow: hidden;
    animation: mw-fade-in-up var(--mw-dur-base) var(--mw-ease-out) both;
}

.mw-card:hover {
    box-shadow: var(--mw-shadow-card-hi);
}

.mw-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--mw-sp-4);
    gap: var(--mw-sp-3);
}

.mw-card-num {
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-sm);
    font-weight: 500;
    letter-spacing: var(--mw-ls-mono);
    text-transform: uppercase;
    color: var(--mw-text-muted);
    display: flex;
    align-items: center;
    gap: var(--mw-sp-2);
}

.mw-card-num-id {
    color: var(--mw-text-faint);
    font-weight: 600;
}

.mw-card-num-sep {
    color: var(--mw-text-faint);
}

.mw-card-status {
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-xs);
    font-weight: 500;
    letter-spacing: var(--mw-ls-mono);
    text-transform: uppercase;
    color: var(--mw-text-muted);
    display: flex;
    align-items: center;
    gap: var(--mw-sp-1);
}

.mw-card-status.is-online::before,
.mw-card-status.is-live::before,
.mw-card-status.is-urgent::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.mw-card-status.is-online::before { background: var(--mw-status-online); }
.mw-card-status.is-live::before { background: var(--mw-accent); animation: mw-pulse 1.5s ease-in-out infinite; }
.mw-card-status.is-urgent::before { background: var(--mw-status-urgent); }

/* Card emphasized (akcent obwódki — tylko 1 kluczowa karta) */
.mw-card.is-accent {
    border: 1px solid var(--mw-accent-soft);
}

/* ============================================================
   ASCII CORNERS (dekoracja narożników głównego kontenera)
   ============================================================ */

.mw-ascii-corner {
    position: absolute;
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-body);
    color: var(--mw-text-faint);
    pointer-events: none;
    user-select: none;
}

.mw-ascii-corner.tl { top: 8px; left: 12px; }
.mw-ascii-corner.tr { top: 8px; right: 12px; }
.mw-ascii-corner.bl { bottom: 8px; left: 12px; }
.mw-ascii-corner.br { bottom: 8px; right: 12px; }

/* ============================================================
   MONO LABEL + VALUE (mała metryka w stylu OS)
   ============================================================ */

.mw-metric {
    display: flex;
    flex-direction: column;
    gap: var(--mw-sp-1);
}

.mw-metric-label {
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-xs);
    font-weight: 500;
    letter-spacing: var(--mw-ls-mono);
    text-transform: uppercase;
    color: var(--mw-text-muted);
}

.mw-metric-value {
    font-family: var(--mw-font-serif);
    font-size: var(--mw-fs-h2);
    font-weight: 400;
    line-height: 1.1;
    color: var(--mw-text-primary);
}

.mw-metric-value-mono {
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-h3);
    font-weight: 500;
    color: var(--mw-text-primary);
}

.mw-metric-unit {
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-xs);
    color: var(--mw-text-muted);
    margin-left: var(--mw-sp-1);
    text-transform: uppercase;
    letter-spacing: var(--mw-ls-mono);
}

/* ============================================================
   PILL SELECTOR (date picker, filter)
   Inspiracja: Jerrod OS "MON 13 | TUE 14 | ... | SAT 18"
   ============================================================ */

.mw-pill-row {
    display: flex;
    gap: var(--mw-sp-2);
    flex-wrap: wrap;
}

.mw-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: var(--mw-sp-2) var(--mw-sp-3);
    background: var(--mw-bg-muted);
    border: 1px solid transparent;
    border-radius: var(--mw-radius-card-sm);
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-xs);
    color: var(--mw-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--mw-ls-mono);
    cursor: pointer;
    transition: all var(--mw-dur-fast) var(--mw-ease-out);
    line-height: 1.1;
}

.mw-pill-day {
    font-size: var(--mw-fs-mono-xs);
    color: var(--mw-text-faint);
}

.mw-pill-num {
    font-family: var(--mw-font-serif);
    font-size: 18px;
    color: var(--mw-text-primary);
    margin-top: 2px;
    letter-spacing: 0;
    text-transform: none;
}

.mw-pill:hover {
    background: var(--mw-bg-cream-2);
    border-color: var(--mw-border-medium);
}

.mw-pill.is-active {
    background: var(--mw-text-primary);
    color: var(--mw-bg-card);
}

.mw-pill.is-active .mw-pill-day,
.mw-pill.is-active .mw-pill-num {
    color: var(--mw-bg-card);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.mw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--mw-sp-2);
    padding: var(--mw-sp-3) var(--mw-sp-5);
    border-radius: var(--mw-radius-button);
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-sm);
    font-weight: 500;
    letter-spacing: var(--mw-ls-mono);
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--mw-dur-fast) var(--mw-ease-out);
    border: 1px solid transparent;
}

.mw-btn-primary {
    background: var(--mw-text-primary);
    color: var(--mw-bg-card);
}
.mw-btn-primary:hover {
    background: var(--mw-accent-strong);
    transform: translateY(-1px);
}

.mw-btn-accent {
    background: var(--mw-accent);
    color: var(--mw-text-on-accent);
}
.mw-btn-accent:hover {
    background: var(--mw-accent-strong);
}

.mw-btn-ghost {
    background: transparent;
    color: var(--mw-text-primary);
    border-color: var(--mw-border-medium);
}
.mw-btn-ghost:hover {
    background: var(--mw-bg-muted);
    border-color: var(--mw-text-primary);
}

.mw-btn-icon {
    width: 36px; height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* ============================================================
   FORMS (Login + dashboard inputs)
   ============================================================ */

.mw-field {
    display: flex;
    flex-direction: column;
    gap: var(--mw-sp-2);
    margin-bottom: var(--mw-sp-4);
}

.mw-field-label {
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-xs);
    font-weight: 500;
    letter-spacing: var(--mw-ls-mono);
    text-transform: uppercase;
    color: var(--mw-text-muted);
}

.mw-field-hint {
    font-family: var(--mw-font-sans);
    font-size: var(--mw-fs-caption, 12px);
    color: var(--mw-text-muted);
    line-height: 1.4;
    margin-top: calc(var(--mw-sp-1) * -1);
}

.mw-input:invalid:not(:placeholder-shown) {
    border-color: var(--mw-status-warn, #c46a3a);
}

.mw-input,
.mw-select,
.mw-textarea {
    width: 100%;
    padding: var(--mw-sp-3) var(--mw-sp-4);
    background: var(--mw-bg-cream-light);
    border: 1px solid var(--mw-border-soft);
    border-radius: var(--mw-radius-button);
    font-family: var(--mw-font-sans);
    font-size: var(--mw-fs-body);
    color: var(--mw-text-primary);
    transition: border-color var(--mw-dur-fast) var(--mw-ease-out),
                background var(--mw-dur-fast) var(--mw-ease-out);
}

.mw-input:focus,
.mw-select:focus,
.mw-textarea:focus {
    outline: none;
    border-color: var(--mw-accent);
    background: var(--mw-bg-card);
}

.mw-input::placeholder {
    color: var(--mw-text-faint);
}

/* ============================================================
   DONUT CHART (SVG)
   Inspiracja: Jerrod OS Move/Exercise/Stand
   ============================================================ */

.mw-donut-row {
    display: flex;
    gap: var(--mw-sp-5);
    justify-content: center;
    flex-wrap: wrap;
}

.mw-donut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--mw-sp-2);
}

.mw-donut-svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.mw-donut-svg circle.bg {
    fill: none;
    stroke: var(--mw-bg-muted);
    stroke-width: 8;
}

.mw-donut-svg circle.fg {
    fill: none;
    stroke: var(--mw-accent);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset var(--mw-dur-slow) var(--mw-ease-out);
}

.mw-donut-svg.is-sent circle.fg { stroke: var(--mw-status-info); }
.mw-donut-svg.is-opened circle.fg { stroke: var(--mw-accent); }
.mw-donut-svg.is-meeting circle.fg { stroke: var(--mw-status-online); }

.mw-donut-label {
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-xs);
    color: var(--mw-text-muted);
    letter-spacing: var(--mw-ls-mono);
    text-transform: uppercase;
}

.mw-donut-value {
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-md);
    color: var(--mw-text-primary);
    font-weight: 500;
}

/* ============================================================
   LIVE STATUS LIST (inbox / leady)
   ============================================================ */

.mw-list-item {
    display: flex;
    align-items: flex-start;
    gap: var(--mw-sp-3);
    padding: var(--mw-sp-3) 0;
    border-bottom: 1px solid var(--mw-border-soft);
    transition: background var(--mw-dur-fast) var(--mw-ease-out);
}

.mw-list-item:last-child { border-bottom: none; }

.mw-list-item:hover {
    background: var(--mw-bg-muted);
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
}

.mw-list-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--mw-bg-muted);
    color: var(--mw-text-muted);
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-sm);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: var(--mw-ls-mono-tight);
}

.mw-list-content {
    flex: 1;
    min-width: 0;
}

.mw-list-title {
    font-weight: 600;
    font-size: var(--mw-fs-body);
    color: var(--mw-text-primary);
    display: flex;
    align-items: center;
    gap: var(--mw-sp-2);
}

.mw-list-subtitle {
    font-size: var(--mw-fs-body);
    color: var(--mw-text-secondary);
    margin-top: 2px;
}

.mw-list-time {
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-xs);
    color: var(--mw-text-faint);
    flex-shrink: 0;
}

.mw-badge {
    display: inline-flex;
    padding: 2px var(--mw-sp-2);
    border-radius: 3px;
    font-family: var(--mw-font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: var(--mw-ls-mono);
    text-transform: uppercase;
}

.mw-badge.is-urgent { background: var(--mw-accent); color: var(--mw-text-on-accent); }
.mw-badge.is-info   { background: var(--mw-status-info); color: var(--mw-text-on-accent); }
.mw-badge.is-success { background: var(--mw-status-online); color: var(--mw-text-on-accent); }
.mw-badge.is-soft   { background: var(--mw-bg-muted); color: var(--mw-text-secondary); }

/* ============================================================
   LINK ACTIONS (per-row buttons na liście "Moje linki")
   ============================================================ */

.mw-link-row {
    align-items: center;
}

.mw-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--mw-sp-2);
}

.mw-link-actions {
    display: flex;
    gap: 4px;
    opacity: 0.4;
    transition: opacity var(--mw-dur-fast) var(--mw-ease-out);
}

.mw-link-row:hover .mw-link-actions {
    opacity: 1;
}

.mw-link-act {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-family: var(--mw-font-mono);
    font-size: 14px;
    color: var(--mw-text-muted);
    background: var(--mw-bg-muted);
    transition: all var(--mw-dur-fast) var(--mw-ease-out);
}

.mw-link-act:hover {
    background: var(--mw-text-primary);
    color: var(--mw-bg-card);
    transform: scale(1.08);
}

.mw-link-act-success:hover { background: var(--mw-status-online); }
.mw-link-act-danger:hover  { background: var(--mw-status-urgent); }

.mw-link-act-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--mw-status-online);
    font-size: 14px;
}

@media (max-width: 768px) {
    .mw-link-actions { opacity: 1; }
    .mw-list-meta { flex-direction: row; align-items: center; }
    .mw-list-time { display: none; }
}

/* ============================================================
   FUNNEL BAR (lifecycle progression)
   ============================================================ */

.mw-funnel {
    display: flex;
    flex-direction: column;
    gap: var(--mw-sp-2);
}

.mw-funnel-row {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    gap: var(--mw-sp-3);
    align-items: center;
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-sm);
}

.mw-funnel-stage {
    color: var(--mw-text-muted);
    letter-spacing: var(--mw-ls-mono);
    text-transform: uppercase;
}

.mw-funnel-bar {
    height: 8px;
    background: var(--mw-bg-muted);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.mw-funnel-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mw-accent-soft), var(--mw-accent));
    border-radius: 999px;
    transition: width var(--mw-dur-slow) var(--mw-ease-out);
}

.mw-funnel-count {
    text-align: right;
    color: var(--mw-text-primary);
    font-weight: 500;
}

/* ============================================================
   LOGIN SCREEN (centered card, full viewport)
   ============================================================ */

.mw-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--mw-sp-6);
    background: var(--mw-bg-cream);
    background-image:
        radial-gradient(circle at 20% 20%, var(--mw-accent-bg) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--mw-accent-bg) 0%, transparent 50%);
}

.mw-login-card {
    width: 100%;
    max-width: 440px;
    background: var(--mw-bg-card);
    border-radius: var(--mw-radius-card);
    box-shadow: var(--mw-shadow-modal);
    padding: var(--mw-sp-10) var(--mw-sp-8);
    position: relative;
    animation: mw-fade-in-up var(--mw-dur-base) var(--mw-ease-out) both;
}

/* Brand mark — Playfair serif + accent line (spojne z brand sidebara dashboardu) */
.mw-login-mark {
    font-family: var(--mw-font-serif);
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.005em;
    color: var(--mw-text-primary);
    line-height: 1;
    margin-bottom: var(--mw-sp-8);
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}
.mw-login-mark::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--mw-accent);
    border-radius: 1px;
}
.mw-login-mark-tld {
    color: var(--mw-accent);
    font-style: italic;
    font-weight: 500;
    margin-left: 1px;
}

.mw-login-footer {
    margin-top: var(--mw-sp-6);
    padding-top: var(--mw-sp-4);
    border-top: 1px solid var(--mw-border-soft);
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-xs);
    color: var(--mw-text-faint);
    text-align: center;
    letter-spacing: var(--mw-ls-mono);
    text-transform: uppercase;
}

/* ============================================================
   TOAST (system feedback)
   ============================================================ */

.mw-toast-container {
    position: fixed;
    top: var(--mw-sp-6);
    right: var(--mw-sp-6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--mw-sp-2);
    pointer-events: none;
}

.mw-toast {
    background: var(--mw-text-primary);
    color: var(--mw-bg-card);
    padding: var(--mw-sp-3) var(--mw-sp-5);
    border-radius: var(--mw-radius-button);
    box-shadow: var(--mw-shadow-modal);
    font-family: var(--mw-font-mono);
    font-size: var(--mw-fs-mono-sm);
    letter-spacing: var(--mw-ls-mono-tight);
    pointer-events: auto;
    animation: mw-fade-in-down var(--mw-dur-base) var(--mw-ease-out) both;
    max-width: 360px;
}

.mw-toast.is-error { background: var(--mw-status-urgent); }
.mw-toast.is-success { background: var(--mw-status-online); }

/* ============================================================
   LOADING (shimmer skeleton)
   ============================================================ */

.mw-skeleton {
    background: linear-gradient(
        90deg,
        var(--mw-bg-muted) 0%,
        var(--mw-bg-cream-2) 50%,
        var(--mw-bg-muted) 100%
    );
    background-size: 200% 100%;
    animation: mw-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--mw-radius-card-sm);
}

/* ============================================================
   MODAL (QR + ogólny)
   ============================================================ */

.mw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 24, 20, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--mw-sp-4);
    animation: mw-fade-in var(--mw-dur-base) var(--mw-ease-out) both;
}

.mw-modal {
    background: var(--mw-bg-card);
    border-radius: var(--mw-radius-card);
    box-shadow: var(--mw-shadow-modal);
    max-width: 480px;
    width: 100%;
    padding: var(--mw-sp-6);
    position: relative;
    animation: mw-fade-in-up var(--mw-dur-base) var(--mw-ease-out) both;
}

.mw-modal-close {
    position: absolute;
    top: var(--mw-sp-3);
    right: var(--mw-sp-3);
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--mw-text-muted);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mw-modal-close:hover {
    background: var(--mw-bg-muted);
    color: var(--mw-text-primary);
}

/* ============================================================
   UTILITY
   ============================================================ */

.mw-row { display: flex; gap: var(--mw-sp-3); align-items: center; }
.mw-row-between { display: flex; gap: var(--mw-sp-3); align-items: center; justify-content: space-between; }
.mw-col { display: flex; flex-direction: column; gap: var(--mw-sp-3); }
.mw-flex-1 { flex: 1; }
.mw-mt-2 { margin-top: var(--mw-sp-2); }
.mw-mt-4 { margin-top: var(--mw-sp-4); }
.mw-mt-6 { margin-top: var(--mw-sp-6); }
.mw-mb-2 { margin-bottom: var(--mw-sp-2); }
.mw-mb-4 { margin-bottom: var(--mw-sp-4); }
.mw-hidden { display: none !important; }
.mw-text-center { text-align: center; }
.mw-text-right { text-align: right; }
