:root {
    color-scheme: dark;
    --bg: #050913;
    --bg-soft: #09101e;
    --surface: rgba(17, 25, 43, .74);
    --surface-strong: rgba(13, 21, 37, .94);
    --stroke: rgba(160, 176, 220, .18);
    --stroke-strong: rgba(164, 186, 237, .3);
    --text: #f7f9ff;
    --muted: #9da8c5;
    --muted-2: #707b98;
    --cyan: #14d8ff;
    --cyan-soft: rgba(20, 216, 255, .13);
    --violet: #9d7cff;
    --violet-soft: rgba(157, 124, 255, .13);
    --green: #79dc71;
    --green-soft: rgba(121, 220, 113, .12);
    --orange: #ffae58;
    --orange-soft: rgba(255, 174, 88, .12);
    --danger: #ff758a;
    --shadow: 0 24px 80px rgba(0, 0, 0, .42);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 100% -10%, rgba(47, 46, 164, .3), transparent 32rem),
        linear-gradient(160deg, #040811 0%, #07101c 58%, #050913 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

.svg-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient {
    position: fixed;
    z-index: -1;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .16;
    pointer-events: none;
}
.ambient--one { top: -12rem; right: -12rem; background: #4440ff; }
.ambient--two { bottom: 10%; left: -16rem; background: #00c8ff; }

.app-frame {
    position: relative;
    width: min(100%, 620px);
    min-height: 100vh;
    margin: 0 auto;
}

.screen { padding: max(28px, env(safe-area-inset-top)) 18px 142px; }
.glass-card {
    border: 1px solid var(--stroke);
    background:
        linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
        var(--surface);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 50px rgba(0,0,0,.18);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(2rem, 7vw, 2.65rem); line-height: 1.05; letter-spacing: -.045em; }
h2 { margin-bottom: 4px; font-size: 1.35rem; line-height: 1.18; letter-spacing: -.025em; }
h3 { margin-bottom: 4px; font-size: 1.05rem; }
.eyebrow { margin-bottom: 8px; color: var(--cyan); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.reveal { animation: reveal .58s var(--ease) both; }
.reveal--delay-1 { animation-delay: .08s; }
.reveal--delay-2 { animation-delay: .16s; }
.reveal--delay-3 { animation-delay: .24s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.today-header {
    display: grid;
    grid-template-columns: 1fr 84px;
    gap: 16px;
    align-items: center;
    margin: 18px 2px 28px;
}
.today-header > div:first-child > p { margin-bottom: 10px; }
.date-switcher { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .95rem; }
.date-switcher a { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; }
.date-switcher a:hover { background: rgba(255,255,255,.06); color: var(--text); }

.progress-ring {
    --size: 78px;
    position: relative;
    display: grid;
    width: var(--size);
    height: var(--size);
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--cyan) calc(var(--progress) * 1%), #252546 0);
    box-shadow: 0 0 32px rgba(20,216,255,.12);
}
.progress-ring::before { content: ""; position: absolute; inset: 8px; border-radius: inherit; background: #080d19; box-shadow: inset 0 0 22px rgba(68,64,255,.18); }
.progress-ring span { position: relative; z-index: 1; font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; }

.now-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 20px;
    border-color: rgba(20,216,255,.55);
    border-radius: var(--radius-xl);
    box-shadow: inset 0 0 30px rgba(20,216,255,.035), 0 18px 55px rgba(0,0,0,.26), 0 0 25px rgba(20,216,255,.08);
}
.now-card::after { content: ""; position: absolute; width: 200px; height: 200px; right: -100px; top: -120px; border-radius: 50%; background: rgba(61,62,255,.22); filter: blur(50px); }
.now-card__label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--cyan); font-size: .72rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(20,216,255,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(20,216,255,0); } 100% { box-shadow: 0 0 0 0 rgba(20,216,255,0); } }
.now-card__body { position: relative; z-index: 1; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 15px; align-items: center; }
.now-card__copy h2 { margin: 0; font-size: 1.35rem; }
.now-card__copy > p { margin: 5px 0; color: var(--muted); }
.now-card__copy small { display: flex; gap: 7px; align-items: center; color: var(--muted-2); }
.now-card__copy small .icon { width: 1.05rem; }
.now-card .primary-button--compact { grid-column: 1 / -1; width: 100%; margin-top: 4px; }

.category-icon, .setting-icon, .mini-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
}
.category-icon { width: 52px; height: 52px; }
.category-icon .icon { width: 25px; height: 25px; }
.setting-icon { width: 42px; height: 42px; }
.mini-icon { width: 34px; height: 34px; }
.mini-icon .icon { width: 17px; }
.type-work { color: var(--cyan); background: var(--cyan-soft); }
.type-family { color: var(--violet); background: var(--violet-soft); }
.type-health { color: var(--green); background: var(--green-soft); }
.type-meal { color: var(--orange); background: var(--orange-soft); }
.type-routine, .type-task { color: #b7a8ff; background: var(--violet-soft); }
.type-appointment { color: var(--cyan); background: var(--cyan-soft); }
.type-travel { color: #7bb8ff; background: rgba(85,151,255,.1); }

.primary-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #18ddff, #12bfe8);
    box-shadow: 0 12px 30px rgba(20,216,255,.2), inset 0 1px 0 rgba(255,255,255,.45);
    color: #00131c;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), opacity .22s;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(20,216,255,.28); }
.primary-button:active { transform: scale(.98); }
.primary-button--compact { min-height: 48px; padding: 0 22px; font-size: .83rem; }
.primary-button.is-running { background: rgba(255,255,255,.1); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(20,216,255,.35); }

.smart-slot {
    display: grid;
    width: 100%;
    grid-template-columns: 44px 1fr 24px;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
    padding: 14px;
    border-radius: var(--radius-md);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.smart-slot__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--violet-soft); color: var(--violet); }
.smart-slot strong, .smart-slot small { display: block; }
.smart-slot strong { font-size: .95rem; }
.smart-slot small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.smart-slot > .icon { color: var(--violet); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 0 2px 15px; }
.section-heading p { margin-bottom: 5px; }
.section-heading h2 { margin: 0; }
.filter-pill { min-height: 34px; padding: 0 13px; border: 1px solid var(--stroke); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted); font-size: .73rem; cursor: pointer; }

.timeline { position: relative; }
.timeline-item { position: relative; display: grid; grid-template-columns: 20px 50px minmax(0,1fr); gap: 10px; min-height: 96px; align-items: start; }
.timeline-rail { position: relative; align-self: stretch; }
.timeline-rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 9px; width: 1px; background: linear-gradient(var(--stroke-strong), rgba(112,123,152,.08)); }
.timeline-item:first-child .timeline-rail::before { top: 28px; }
.timeline-item:last-child .timeline-rail::before { bottom: calc(100% - 29px); }
.timeline-rail span { position: absolute; z-index: 1; top: 23px; left: 3px; width: 14px; height: 14px; border: 2px solid #737e9e; border-radius: 50%; background: #0b1120; }
.timeline-item.is-current .timeline-rail span { border-color: #bff7ff; background: var(--cyan); box-shadow: 0 0 0 6px rgba(20,216,255,.13), 0 0 22px rgba(20,216,255,.7); }
.timeline-item.is-completed .timeline-rail span { border-color: var(--cyan); background: var(--cyan); }
.timeline-item > time { padding-top: 19px; color: var(--text); font-size: .9rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.agenda-card {
    display: grid;
    width: 100%;
    min-height: 78px;
    grid-template-columns: 44px minmax(0,1fr) 23px;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.agenda-card:hover { transform: translateX(3px); border-color: var(--stroke-strong); }
.type-border-work, .type-border-appointment { border-left-color: rgba(20,216,255,.62); }
.type-border-health { border-left-color: rgba(121,220,113,.62); }
.type-border-family, .type-border-routine, .type-border-task { border-left-color: rgba(157,124,255,.58); }
.type-border-meal { border-left-color: rgba(255,171,87,.58); }
.type-border-travel { border-left-color: rgba(85,151,255,.58); }
.agenda-card .category-icon { width: 42px; height: 42px; }
.agenda-card .category-icon .icon { width: 21px; height: 21px; }
.agenda-card__copy { min-width: 0; }
.agenda-card__copy strong, .agenda-card__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-card__copy strong { font-size: .98rem; }
.agenda-card__copy small { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.agenda-chevron { color: var(--muted-2); }
.completed-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: rgba(20,216,255,.13); color: var(--cyan); }
.is-completed .agenda-card { opacity: .6; }
.is-completed .agenda-card__copy strong { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.timeline.is-compact .timeline-item { min-height: 73px; }
.timeline.is-compact .agenda-card { min-height: 60px; padding-block: 8px; }
.timeline.is-compact .category-icon { width: 36px; height: 36px; }

.bottom-nav {
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: grid;
    width: min(calc(100% - 22px), 594px);
    min-height: 78px;
    grid-template-columns: 1fr 1fr 78px 1fr 1fr;
    align-items: center;
    padding: 8px 8px 7px;
    border: 1px solid var(--stroke);
    border-radius: 27px;
    background: rgba(9, 15, 28, .86);
    box-shadow: 0 20px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter: blur(24px) saturate(145%);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    transform: translateX(-50%);
}
.nav-item { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 4px; color: #8994b1; font-size: .68rem; font-weight: 650; }
.nav-item .icon { width: 23px; height: 23px; }
.nav-item.is-active { color: var(--cyan); text-shadow: 0 0 18px rgba(20,216,255,.28); }
.nav-add { display: grid; width: 62px; height: 62px; place-self: center; place-items: center; border: 1px solid #67eaff; border-radius: 50%; background: linear-gradient(145deg, #22e2ff, #08b9e7); box-shadow: 0 0 0 8px rgba(20,216,255,.07), 0 12px 30px rgba(0,0,0,.35); color: #00131c; cursor: pointer; }
.nav-add .icon { width: 30px; height: 30px; stroke-width: 2; }

.sheet-layer { position: fixed; z-index: 80; inset: 0; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; pointer-events: none; }
.sheet-layer.is-open { visibility: visible; pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; border: 0; background: rgba(1, 4, 10, .72); opacity: 0; backdrop-filter: blur(8px); transition: opacity .3s; }
.sheet-layer.is-open .sheet-backdrop { opacity: 1; }
.sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: calc(100vh - 42px);
    overflow-y: auto;
    padding: 14px 18px max(28px, env(safe-area-inset-bottom));
    border: 1px solid var(--stroke-strong);
    border-bottom: 0;
    border-radius: 34px 34px 0 0;
    background: linear-gradient(155deg, rgba(16,27,48,.985), rgba(5,10,20,.99));
    box-shadow: 0 -30px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
    transform: translateY(105%);
    transition: transform .42s var(--ease);
}
.sheet-layer.is-open .sheet { transform: translateY(0); }
.sheet-handle { width: 54px; height: 5px; margin: 0 auto 22px; border-radius: 99px; background: #555c85; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sheet-header h2 { margin: 0; font-size: 2rem; }
.icon-button { display: grid; flex: 0 0 auto; width: 46px; height: 46px; place-items: center; border: 1px solid var(--stroke); border-radius: 50%; background: rgba(255,255,255,.035); color: #bbb7e8; cursor: pointer; }
.icon-button:hover { border-color: rgba(20,216,255,.38); color: var(--cyan); }

.smart-input { display: block; margin-bottom: 20px; padding: 16px; border: 1px solid rgba(20,216,255,.5); border-radius: 22px; background: linear-gradient(145deg, rgba(20,216,255,.06), rgba(157,124,255,.045)); box-shadow: inset 0 0 24px rgba(20,216,255,.025); }
.smart-input > span:first-child { display: block; margin-bottom: 8px; color: var(--muted); font-size: .85rem; }
.smart-input__row { display: grid; grid-template-columns: 1fr 42px; gap: 8px; align-items: center; }
.smart-input input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 1.12rem; font-weight: 650; }
.mic-button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan); cursor: pointer; }
.mic-button.is-listening { background: var(--cyan); color: #03101a; box-shadow: 0 0 0 0 rgba(20,216,255,.42); animation: pulse 1.3s infinite; }
.work-inline-preview { display: grid; gap: 4px; margin-top: 8px; }
.work-inline-preview span { overflow: hidden; color: #c7d0e9; font-size: .68rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.work-inline-preview span::before { content: '›'; margin-right: 6px; color: var(--cyan); }
.demo-ribbon { position: relative; z-index: 2; width: max-content; max-width: calc(100% - 32px); margin: 10px auto -4px; padding: 7px 12px; border: 1px solid rgba(20,216,255,.25); border-radius: 999px; background: rgba(5,15,30,.78); box-shadow: 0 8px 24px rgba(0,0,0,.24); color: #bdefff; font-size: .68rem; font-weight: 750; letter-spacing: .02em; text-align: center; backdrop-filter: blur(14px); }

.type-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 22px; padding: 0; border: 0; }
.type-selector legend { grid-column: 1 / -1; margin-bottom: 10px; color: var(--muted); font-weight: 700; }
.type-option { display: flex; min-width: 0; min-height: 76px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--stroke); border-radius: 18px; background: rgba(255,255,255,.026); color: var(--muted); font-size: .72rem; cursor: pointer; transition: border .2s, background .2s, color .2s; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option .icon { width: 23px; height: 23px; }
.type-option.is-selected { border-color: var(--cyan); background: var(--cyan-soft); color: var(--cyan); box-shadow: inset 0 0 20px rgba(20,216,255,.04); }

.form-section h3 { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.form-section { margin-bottom: 14px; }
.setting-row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; min-height: 66px; padding: 8px 4px; border-bottom: 1px solid rgba(157,170,210,.1); }
.setting-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting-copy > span { color: var(--text); font-weight: 650; }
.setting-copy input, .setting-copy select { max-width: 55%; border: 0; outline: 0; background: transparent; color: #c2b8f5; text-align: right; }
.setting-copy select option { color: #101524; }
.toggle-row { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--stroke); border-radius: 18px; background: rgba(255,255,255,.026); }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row small { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle { position: relative; width: 52px; height: 30px; border-radius: 99px; background: #30384e; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: white; transition: transform .22s var(--ease); }
.toggle-row input:checked + .toggle { background: var(--cyan); }
.toggle-row input:checked + .toggle::after { transform: translateX(22px); }
.insight-card { display: flex; align-items: center; gap: 13px; margin: 14px 0; padding: 14px; border: 1px solid rgba(157,124,255,.28); border-radius: 18px; background: var(--violet-soft); color: #c5baff; }
.insight-card .icon { flex: 0 0 auto; width: 27px; height: 27px; }
.insight-card p { margin: 0; font-size: .85rem; }
.add-form > .primary-button { width: 100%; }
.text-button { border: 0; background: transparent; color: #ad9eff; font-weight: 700; cursor: pointer; }
.add-form > .text-button { display: block; margin: 14px auto 0; }

.sheet-layer--full { align-items: flex-end; }
.work-sheet { min-height: min(94vh, 900px); padding-top: max(20px, env(safe-area-inset-top)); }
.work-header { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; margin-bottom: 22px; }
.work-header h2 { margin: 0; font-size: 1.9rem; }
.work-header p { margin: 2px 0 0; color: var(--muted); }
.sync-pill { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid var(--stroke); border-radius: 999px; color: var(--muted); font-size: .66rem; white-space: nowrap; }
.sync-pill .icon { width: 14px; }
.route-summary { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; margin-bottom: 18px; padding: 18px; border-radius: var(--radius-lg); }
.route-summary p, .route-summary strong, .route-summary small { display: block; margin: 0; }
.route-summary p, .route-summary small { color: var(--muted); }
.route-summary strong { margin: 2px 0; font-size: 1.7rem; }
.route-bar { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr .65fr .9fr; gap: 4px; height: 5px; margin-top: 7px; }
.route-bar span { border-radius: 9px; background: rgba(255,255,255,.1); }
.route-bar span:first-child { background: var(--cyan); }
.route-bar span:nth-child(2) { background: #4b85dd; }
.next-action { margin-bottom: 24px; padding: 18px; border-color: rgba(20,216,255,.62); border-radius: var(--radius-lg); box-shadow: inset 0 0 30px rgba(20,216,255,.035), 0 0 30px rgba(20,216,255,.06); }
.next-action__main { display: grid; gap: 18px; }
.next-action h3 { font-size: 1.35rem; }
.next-action__main p { color: var(--muted); }
.reason-list { display: flex; flex-wrap: wrap; gap: 7px; }
.reason-list span { padding: 6px 10px; border: 1px solid rgba(157,124,255,.3); border-radius: 999px; background: var(--violet-soft); color: #bcaeff; font-size: .7rem; }
.after-list h3 { margin: 0 3px 12px; }
.work-task { display: grid; width: 100%; grid-template-columns: 50px 1fr 22px; gap: 12px; align-items: center; margin-bottom: 10px; padding: 14px; border-radius: 19px; color: var(--text); text-align: left; cursor: pointer; }
.work-task strong, .work-task small { display: block; }
.work-task small { margin-top: 4px; color: var(--muted); }
.priority-ring { --angle: calc(var(--score) * 3.6deg); display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; background: radial-gradient(circle at center, #0e1525 57%, transparent 59%), conic-gradient(var(--violet) var(--angle), #242645 0); font-size: .84rem; font-weight: 850; }
.empty-state { padding: 26px; border-radius: var(--radius-lg); text-align: center; }
.empty-state p { margin: 0; color: var(--muted); }

.page-header { display: grid; grid-template-columns: 46px 1fr 46px; gap: 12px; align-items: center; margin: 18px 0 26px; text-align: center; }
.page-header h1 { margin-bottom: 5px; }
.page-header p:last-child { margin: 0; color: var(--muted); }
.week-summary { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; margin-bottom: 16px; padding: 19px; border-color: rgba(20,216,255,.38); border-radius: var(--radius-xl); }
.week-summary h2 { font-size: 1.1rem; }
.week-summary strong { color: var(--cyan); font-size: 1rem; }
.distribution-bar { display: grid; grid-column: 1 / -1; grid-template-columns: 1.5fr .7fr .8fr 1fr 2fr; gap: 3px; height: 6px; margin-top: 8px; }
.distribution-bar span { border-radius: 9px; background: rgba(255,255,255,.11); }
.distribution-bar .bar-work { background: var(--cyan); }
.distribution-bar .bar-meal { background: var(--orange); }
.distribution-bar .bar-family { background: var(--violet); }
.distribution-bar .bar-health { background: var(--green); }
.weekday-strip { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; margin-bottom: 28px; padding: 8px; border-radius: 20px; }
.weekday { display: flex; min-height: 56px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 15px; color: var(--muted); }
.weekday span { font-size: .68rem; }
.weekday strong { margin-top: 2px; font-size: .95rem; }
.weekday.is-active { border-color: var(--cyan); background: var(--cyan-soft); color: var(--text); box-shadow: 0 0 18px rgba(20,216,255,.09); }
.day-card { margin-bottom: 12px; padding: 17px; border-radius: var(--radius-lg); }
.day-card.is-today { border-color: var(--cyan); box-shadow: inset 0 0 25px rgba(20,216,255,.03); }
.day-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.day-card header h3 { margin: 0; letter-spacing: .06em; }
.day-status { font-size: .72rem; }
.status-completed, .status-today { color: var(--cyan); }
.status-planned { color: #b3a7e4; }
.day-card__items > div { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; min-height: 48px; border-top: 1px solid rgba(157,170,210,.09); }
.day-card__items > div:first-child { border-top: 0; }
.day-card__items small { color: var(--muted); }

.simple-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 2px 28px; }
.simple-header > div > p:last-child { max-width: 440px; margin: 8px 0 0; color: var(--muted); }
.routine-hero { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; margin-bottom: 28px; padding: 18px; border-radius: var(--radius-xl); }
.routine-hero h2 { font-size: 1.08rem; }
.routine-hero > strong { color: var(--cyan); }
.routine-progress { height: 5px; margin-top: 10px; border-radius: 99px; background: rgba(255,255,255,.1); }
.routine-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cyan),var(--violet)); }
.routine-card, .settings-card, .integration-card { display: grid; width: 100%; grid-template-columns: 48px 1fr auto 20px; gap: 12px; align-items: center; margin-bottom: 10px; padding: 14px; border-radius: 19px; color: var(--text); text-align: left; }
.routine-card { cursor: pointer; }
.routine-card strong, .routine-card small, .settings-card strong, .settings-card small, .integration-card strong, .integration-card small { display: block; }
.routine-card small, .settings-card small, .integration-card small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.routine-card .category-icon { width: 44px; height: 44px; }
.active-badge, .connected-badge { padding: 5px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .65rem; }

.profile-card { display: grid; grid-template-columns: 54px 1fr auto; gap: 13px; align-items: center; margin-bottom: 28px; padding: 17px; border-radius: var(--radius-lg); }
.avatar { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(20,216,255,.5); border-radius: 50%; background: var(--cyan-soft); color: var(--cyan); font-weight: 900; }
.profile-card h2, .profile-card p { margin: 0; }
.profile-card p { color: var(--muted); font-size: .75rem; }
.settings-group { margin-bottom: 26px; }
.settings-group > h2 { margin: 0 2px 11px; font-size: .95rem; }
.settings-card { grid-template-columns: 44px 1fr 20px; border: 1px solid var(--stroke); cursor: pointer; }
.integration-card { grid-template-columns: 44px 1fr auto; border: 1px solid var(--stroke); }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 110px; max-width: calc(100% - 36px); padding: 12px 17px; border: 1px solid rgba(20,216,255,.3); border-radius: 999px; background: rgba(7,15,27,.96); box-shadow: var(--shadow); color: var(--text); font-size: .82rem; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 560px) {
    .screen { padding-inline: 28px; }
    .now-card__body { grid-template-columns: 62px minmax(0,1fr) auto; }
    .now-card .primary-button--compact { grid-column: auto; width: auto; margin-top: 0; }
    .next-action__main { grid-template-columns: 1fr auto; align-items: end; }
    .add-sheet { padding-inline: 28px; }
}

@media (min-width: 760px) {
    body { padding-block: 18px; }
    .app-frame { min-height: calc(100vh - 36px); border: 1px solid rgba(162,177,219,.11); border-radius: 36px; background: rgba(4,8,17,.25); box-shadow: 0 50px 140px rgba(0,0,0,.48); }
    .bottom-nav { bottom: 28px; }
}

@media (max-width: 390px) {
    .today-header { grid-template-columns: 1fr 70px; }
    .progress-ring { --size: 66px; }
    .date-switcher { font-size: .84rem; }
    .timeline-item { grid-template-columns: 18px 45px minmax(0,1fr); gap: 7px; }
    .agenda-card { grid-template-columns: 38px minmax(0,1fr) 18px; gap: 9px; padding-inline: 10px; }
    .agenda-card .category-icon { width: 37px; height: 37px; }
    .type-option { min-height: 68px; }
    .sync-pill { max-width: 118px; overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.auth-body { display: grid; min-height: 100vh; place-items: center; padding: 24px 18px; }
.auth-shell { width: min(100%, 480px); }
.auth-shell--wide { width: min(100%, 620px); }
.auth-brand { display: flex; align-items: center; gap: 16px; margin: 0 4px 24px; }
.auth-brand img { border-radius: 17px; box-shadow: 0 16px 40px rgba(20,216,255,.12); }
.auth-brand h1 { margin-bottom: 5px; font-size: clamp(2rem, 8vw, 2.6rem); }
.auth-brand p:last-child { margin: 0; color: var(--muted); }
.auth-card { padding: 22px; border-radius: var(--radius-xl); }
.stack-form { display: grid; gap: 16px; }
.stack-form label > span, .stack-form label > small { display: block; }
.stack-form label > span { margin-bottom: 7px; color: #dce3f7; font-size: .78rem; font-weight: 750; }
.stack-form label > small { margin-top: 6px; color: var(--muted); font-size: .68rem; }
.stack-form input, .stack-form select, .stack-form textarea, .field-input {
    width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--stroke); border-radius: 15px;
    outline: 0; background: rgba(255,255,255,.035); color: var(--text); transition: border .2s, box-shadow .2s;
}
.stack-form textarea { min-height: 110px; padding-block: 12px; resize: vertical; }
.stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus, .field-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(20,216,255,.08); }
.form-grid { display: grid; gap: 14px; }
.form-grid--two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-alert { margin-bottom: 16px; padding: 12px 14px; border: 1px solid; border-radius: 14px; font-size: .78rem; }
.form-alert--error { border-color: rgba(255,117,138,.35); background: rgba(255,117,138,.09); color: #ffb3bf; }
.form-alert--success { border-color: rgba(121,220,113,.35); background: rgba(121,220,113,.09); color: #b9f0b4; }
.auth-link { display: block; margin-top: 18px; color: #b7a8ff; font-size: .78rem; font-weight: 700; text-align: center; }
@media (max-width: 520px) { .form-grid--two { grid-template-columns: 1fr; } }

.onboarding-shell { width: min(100%, 920px); margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 18px 110px; }
.onboarding-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.onboarding-brand { display: flex; align-items: center; gap: 14px; }
.onboarding-brand img { border-radius: 16px; box-shadow: 0 14px 35px rgba(20,216,255,.12); }
.onboarding-brand h1 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.wizard-progress { position: relative; display: grid; grid-template-columns: repeat(5,1fr); margin-bottom: 26px; padding: 14px 10px; border-radius: 22px; }
.wizard-dot { position: relative; z-index: 2; display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted-2); cursor: pointer; }
.wizard-dot > span { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--stroke-strong); border-radius: 50%; background: #0a1120; font-size: .72rem; font-weight: 800; }
.wizard-dot small { font-size: .64rem; white-space: nowrap; }
.wizard-dot.is-active, .wizard-dot.is-complete { color: var(--cyan); }
.wizard-dot.is-active > span, .wizard-dot.is-complete > span { border-color: var(--cyan); background: var(--cyan-soft); box-shadow: 0 0 16px rgba(20,216,255,.16); }
.wizard-progress__line { position: absolute; z-index: 1; top: 28px; right: 10%; left: 10%; height: 2px; background: var(--stroke); }
.wizard-progress__line span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,var(--cyan),var(--violet)); transition: width .35s var(--ease); }
.wizard-intro { margin: 0 4px 18px; }
.wizard-intro h2 { margin-bottom: 7px; font-size: clamp(1.6rem,5vw,2.2rem); }
.wizard-intro > p:last-child { max-width: 660px; margin: 0; color: var(--muted); }
.wizard-step { animation: reveal .38s var(--ease) both; }
.onboarding-card { margin-bottom: 16px; padding: 20px; border-radius: var(--radius-lg); }
.onboarding-card > h3 { margin-bottom: 14px; }
.setup-explainer { display: flex; align-items: center; gap: 15px; margin-top: 6px; padding: 16px; border-radius: 18px; background: rgba(20,216,255,.045); }
.setup-explainer p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.schedule-actions { display: flex; justify-content: flex-end; margin: -6px 2px 12px; }
.schedule-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.schedule-card { padding: 16px; border-radius: 21px; }
.schedule-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.schedule-card header h3 { margin: 0; }
.schedule-card header select { min-height: 36px; padding: 0 9px; border: 1px solid var(--stroke); border-radius: 12px; background: #11192b; color: var(--muted); }
.time-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.time-grid label { position: relative; min-width: 0; padding: 9px 10px; border: 1px solid rgba(157,170,210,.1); border-radius: 13px; background: rgba(255,255,255,.02); }
.time-grid label > span:first-child { display: block; margin-bottom: 5px; color: var(--muted); font-size: .62rem; }
.time-grid input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.time-grid label > small { position: absolute; right: 10px; bottom: 12px; color: var(--muted); font-size: .62rem; }
.time-pair { display: grid !important; grid-template-columns: 1fr 1fr; gap: 5px; }
.schedule-card.is-off [data-work-field] { display: none; }
.repeater-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.inline-fields { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8px; }
.inline-fields input, .travel-rule-row input, .travel-rule-row select { min-width: 0; min-height: 44px; padding: 0 11px; border: 1px solid var(--stroke); border-radius: 13px; background: rgba(255,255,255,.035); color: var(--text); }
.card-help { margin: -7px 0 14px; color: var(--muted); font-size: .78rem; }
.config-details { margin-bottom: 9px; padding: 12px 14px; border: 1px solid var(--stroke); border-radius: 16px; background: rgba(255,255,255,.02); }
.config-details summary { cursor: pointer; font-weight: 750; }
.config-details[open] summary { margin-bottom: 14px; color: var(--cyan); }
.day-checks { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; }
.day-checks input { position: absolute; opacity: 0; }
.day-checks label span { display: grid; min-height: 36px; place-items: center; border: 1px solid var(--stroke); border-radius: 11px; color: var(--muted); font-size: .72rem; cursor: pointer; }
.day-checks label input:checked + span { border-color: var(--cyan); background: var(--cyan-soft); color: var(--cyan); }
.travel-rule-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 72px 110px; gap: 7px; margin-bottom: 8px; }
.sport-config-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.sport-config-card { padding: 18px; border-radius: var(--radius-lg); }
.sport-config-card > header { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; margin-bottom: 15px; }
.sport-config-card .category-icon { width: 44px; height: 44px; }
.sport-config-card h3, .sport-config-card p { margin: 0; }
.sport-config-card p { color: var(--muted); font-size: .72rem; }
.sport-config-card .day-checks { margin-bottom: 14px; }
.mini-switch input { position: absolute; opacity: 0; }
.mini-switch span { position: relative; display: block; width: 45px; height: 27px; border-radius: 99px; background: #30384e; cursor: pointer; }
.mini-switch span::after { content:""; position:absolute; top:4px; left:4px; width:19px; height:19px; border-radius:50%; background:white; transition:transform .2s; }
.mini-switch input:checked + span { background: var(--cyan); }
.mini-switch input:checked + span::after { transform: translateX(18px); }
.toggle-stack { display: grid; gap: 9px; margin-top: 15px; }
.notification-permission-button { display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
.finish-card { display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid rgba(20,216,255,.35); border-radius: var(--radius-lg); background: var(--cyan-soft); }
.finish-card h3, .finish-card p { margin: 0; }
.finish-card p { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.wizard-footer { position: fixed; z-index: 60; bottom: max(10px,env(safe-area-inset-bottom)); left: 50%; display: grid; width: min(calc(100% - 24px), 880px); grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 22px; background: rgba(8,14,26,.9); box-shadow: 0 18px 60px rgba(0,0,0,.5); backdrop-filter: blur(20px); transform: translateX(-50%); }
.wizard-footer > span { color: var(--muted); font-size: .72rem; text-align: center; }
.wizard-footer > button:first-child { justify-self: start; }
.wizard-footer > button:last-child, .wizard-footer > button:nth-last-child(2) { justify-self: end; }
@media (max-width: 720px) { .schedule-list, .sport-config-grid { grid-template-columns: 1fr; } .travel-rule-row { grid-template-columns: 1fr 1fr; } .travel-rule-row > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .wizard-dot small { display: none; } .onboarding-header { align-items: flex-start; } .onboarding-brand h1 { font-size: 1.55rem; } .onboarding-brand img { width: 45px; height: 45px; } .repeater-grid, .time-grid { grid-template-columns: 1fr; } .inline-fields { grid-template-columns: 1fr; } .wizard-footer { grid-template-columns: auto 1fr auto; } }

/* Functional v1 surfaces */
.header-actions, .inline-actions, .card-actions, .project-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .icon-button { position: relative; }
.notification-badge { position: absolute; top: -3px; right: -2px; display: grid; min-width: 19px; height: 19px; place-items: center; padding: 0 5px; border: 2px solid #08101e; border-radius: 99px; background: #ff6682; color: white; font-size: .6rem; font-weight: 900; }
.success-banner { display: flex; align-items: center; gap: 12px; margin: -6px 0 16px; padding: 14px 16px; border-color: rgba(121,220,113,.28); border-radius: 18px; background: rgba(121,220,113,.06); }
.success-banner > .icon { color: var(--green); }
.success-banner strong, .success-banner small { display: block; }
.success-banner small { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.warning-banner { margin: -4px 0 16px; padding: 0; border-color: rgba(255,185,92,.25); border-radius: 18px; overflow: hidden; }
.warning-banner summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.warning-banner summary::-webkit-details-marker { display: none; }
.warning-banner summary > span { display: flex; align-items: center; gap: 9px; }
.warning-banner summary .icon { color: var(--orange); }
.warning-banner summary small { color: var(--muted); }
.warning-banner ul { margin: 0; padding: 0 18px 15px 40px; color: var(--muted); font-size: .75rem; }
.warning-banner li + li { margin-top: 5px; }
.filter-pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.filter-pill .icon { width: 15px; height: 15px; }
.delay-chip { grid-column: 3; justify-self: end; z-index: 2; min-height: 27px; margin: -14px 9px 8px 0; padding: 0 9px; border: 1px solid rgba(157,124,255,.25); border-radius: 99px; background: #12182c; color: #b9aaff; font-size: .66rem; cursor: pointer; }
.danger-button { color: #ff8da0; }
.danger-button:hover { border-color: rgba(255,102,130,.45); color: #ff6682; }
.danger-text { color: #ff8da0; }
.danger-setting { border-color: rgba(255,102,130,.15); }

.routine-card { grid-template-columns: 48px minmax(0,1fr) auto 46px; cursor: default; }
.routine-card__main { min-width: 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.routine-card__main strong, .routine-card__main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-badge.is-paused { background: rgba(255,255,255,.05); color: var(--muted); }
.routine-editor { min-height: min(94vh,920px); padding: 24px 24px max(34px,env(safe-area-inset-bottom)); }
.item-detail-sheet { padding-inline: 22px; }
.item-detail-time { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 15px; border: 1px solid var(--stroke); border-radius: 18px; background: rgba(255,255,255,.025); }
.item-detail-time strong, .item-detail-time small { display: block; }
.item-detail-time small { margin-top: 3px; color: var(--muted); }
.routine-detail-steps { margin-bottom: 18px; }
.routine-detail-steps ol { margin: 9px 0 0; padding: 0; list-style: none; counter-reset: routine-step; }
.routine-detail-steps li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; min-height: 48px; align-items: center; padding: 8px 8px 8px 42px; border-top: 1px solid var(--stroke); counter-increment: routine-step; }
.routine-detail-steps li::before { content: counter(routine-step); position: absolute; left: 4px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--violet-soft); color: #bcaeff; font-size: .7rem; font-weight: 850; }
.routine-detail-steps li small { color: var(--cyan); }
.routine-detail-steps li p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .72rem; }
.item-detail-notes { padding: 13px; border-radius: 14px; background: rgba(255,255,255,.03); color: var(--muted); font-size: .78rem; }
.routine-form fieldset { margin: 0; padding: 0; border: 0; }
.routine-form legend { margin-bottom: 9px; color: #dce3f7; font-size: .78rem; font-weight: 750; }
.routine-steps-editor { margin-top: 4px; }
.routine-step-row { display: grid; grid-template-columns: 18px 1.1fr 76px 1fr 42px; gap: 7px; align-items: center; margin-bottom: 8px; }
.routine-step-row input { min-width: 0; min-height: 44px; padding: 0 10px; }
.routine-step-row .icon-button { width: 40px; height: 40px; }
.drag-handle { color: var(--muted-2); letter-spacing: -2px; }

.management-summary { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; margin-bottom: 20px; padding: 18px; border-radius: var(--radius-xl); }
.management-summary h2 { margin: 2px 0; }
.management-summary small { color: var(--muted); }
.event-management-card { display: grid; grid-template-columns: 46px 44px minmax(0,1fr) auto; gap: 12px; align-items: center; margin-bottom: 10px; padding: 14px; border-radius: 20px; }
.event-management-card > time { display: flex; flex-direction: column; align-items: center; color: var(--muted); }
.event-management-card > time strong { color: var(--text); font-size: 1.35rem; }
.event-management-card > time span { font-size: .58rem; font-weight: 800; letter-spacing: .08em; }
.event-management-card h2, .event-management-card p { margin: 0; }
.event-management-card h2 { font-size: .96rem; }
.event-management-card p, .event-management-card small { color: var(--muted); font-size: .72rem; }
.event-management-card .icon-button { width: 39px; height: 39px; }
.external-event-badge { background: var(--cyan-soft); color: var(--cyan); white-space: nowrap; }

.system-health-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 28px; }
.mini-metric { padding: 14px; border-radius: 18px; }
.mini-metric span, .mini-metric strong, .mini-metric small { display: block; }
.mini-metric span, .mini-metric small { color: var(--muted); font-size: .66rem; }
.mini-metric strong { margin: 5px 0 2px; color: var(--cyan); }
.settings-card { text-decoration: none; }
.travel-manager-list { margin-bottom: 10px; }
.travel-manager-card { display: grid; grid-template-columns: 44px minmax(0,1fr) 40px 40px; gap: 9px; align-items: center; margin-bottom: 8px; padding: 11px 12px; border-radius: 17px; }
.travel-manager-card strong, .travel-manager-card small { display: block; }
.travel-manager-card small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.travel-manager-card .icon-button { width: 38px; height: 38px; }
.integration-config { margin-bottom: 10px; padding: 0; border-radius: 20px; overflow: hidden; }
.integration-config > summary { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; min-height: 74px; padding: 13px 15px; cursor: pointer; list-style: none; }
.integration-config > summary::-webkit-details-marker { display: none; }
.integration-config > summary > span:first-child:not(.setting-icon) { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.integration-config > summary strong, .integration-config > summary small { display: block; }
.integration-config > summary small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.integration-config[open] > summary { border-bottom: 1px solid var(--stroke); background: rgba(20,216,255,.025); }
.integration-config form { padding: 16px; }
.integration-config .connected-badge.status-error { background: rgba(255,102,130,.1); color: #ff8da0; }
.integration-config .connected-badge.status-disconnected { background: rgba(255,255,255,.05); color: var(--muted); }
.privacy-note, .security-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .72rem; }
.privacy-note { margin: 0; }
.privacy-note .icon, .security-note .icon { flex: 0 0 auto; color: var(--cyan); }
.security-note { margin-bottom: 9px; padding: 14px; border-radius: 17px; }
.security-note p { margin: 0; }

.project-actions { flex-wrap: wrap; justify-content: flex-end; }
.work-task { grid-template-columns: 50px minmax(0,1fr) auto; cursor: default; }
[data-project-task].is-completed { opacity: .55; }
[data-project-task].is-completed strong { text-decoration: line-through; }
[data-project-task].is-blocked { border-color: rgba(255,102,130,.35); }

.notification-panel { position: fixed; z-index: 110; top: max(14px,env(safe-area-inset-top)); right: 14px; width: min(calc(100% - 28px),390px); max-height: calc(100vh - 28px); padding: 16px; border-radius: 24px; opacity: 0; visibility: hidden; overflow-y: auto; transform: translateY(-12px) scale(.98); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.notification-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.notification-panel > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.notification-panel h2 { margin: 0; }
.notification-row { display: block; width: 100%; padding: 13px 4px; border: 0; border-top: 1px solid var(--stroke); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.notification-row strong, .notification-row small { display: block; }
.notification-row small, .empty-copy { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.schedule-card [data-work-field].is-disabled { display: none; }

@media (max-width: 620px) {
    .system-health-grid { grid-template-columns: 1fr; }
    .mini-metric { display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .mini-metric small { grid-column: 1 / -1; }
    .event-management-card { grid-template-columns: 42px 40px minmax(0,1fr); }
    .event-management-card .card-actions { grid-column: 3; justify-self: end; }
    .routine-step-row { grid-template-columns: 14px 1fr 68px 40px; }
    .routine-step-row input:nth-of-type(3) { grid-column: 2 / 4; }
    .routine-step-row .icon-button { grid-column: 4; grid-row: 1; }
    .project-actions { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .routine-card { grid-template-columns: 43px minmax(0,1fr) 40px; }
    .routine-card .active-badge { display: none; }
    .routine-card > .danger-button { grid-column: 3; }
    .section-heading .inline-actions { gap: 4px; }
    .section-heading .filter-pill { padding-inline: 9px; }
    .travel-manager-card { grid-template-columns: 40px minmax(0,1fr) 36px 36px; gap: 5px; }
}
