html,
body {
    margin: 0;
    padding: 0;
}

.app-body {
    background:
        radial-gradient(circle at 12% 8%, rgba(16, 185, 129, 0.14), transparent 32%),
        radial-gradient(circle at 88% 4%, rgba(14, 116, 144, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #141414;
}

.app-shell {
    position: relative;
}

.surface-card {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.modern-input {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.modern-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.modern-button {
    border: 1px solid rgba(5, 46, 22, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #052e16;
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.2);
}

.modern-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.modern-button:active {
    transform: translateY(0);
}

.modern-button.is-unsaved {
    border-color: rgba(120, 53, 15, 0.45);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #451a03;
    box-shadow: 0 8px 16px rgba(180, 83, 9, 0.28);
}

.modern-link {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.9);
    transition: background-color 120ms ease, border-color 120ms ease;
}

.modern-link:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(209, 250, 229, 0.8);
}

.copy-campaign-link {
    min-width: 48px;
    text-align: center;
    font-size: 14px;
}

.campaign-controls {
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(6px);
}

.scheduler-frame {
    overflow-x: auto;
    border-radius: 12px;
}

.scheduler-grid {
    display: grid;
    grid-template-columns: 88px repeat(7, minmax(88px, 1fr));
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    overflow: hidden;
    min-width: 760px;
    background: rgba(255, 255, 255, 0.94);
}

.day-header,
.time-label,
.slot {
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

.day-header {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.04);
}

.time-label {
    height: 20px;
    padding-right: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 11px;
    color: #64748b;
    background: rgba(15, 23, 42, 0.03);
}

.time-label.grid-row-even,
.slot.grid-row-even {
    background-color: #ffffff;
}

.time-label.grid-row-odd,
.slot.grid-row-odd {
    background-color: #f3f4f6;
}

.slot {
    height: 20px;
    transition: background-color 80ms linear;
}

.slot-input {
    cursor: crosshair;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1;
    color: transparent;
    user-select: none;
}

.slot-input.is-active {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.85));
    color: #ecfdf5;
    font-weight: 600;
}

.slot-heat {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    color: transparent;
    user-select: none;
}

.slot-heat.has-score {
    color: #064e3b;
    font-weight: 600;
}

.recommendation-card {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
}

.recommendation-card-full {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(209, 250, 229, 0.85);
}

