:root {
    color-scheme: dark;
    --bg: #050505;
    --bg-soft: #0a0a0a;
    --surface: #101010;
    --surface-raised: #151515;
    --surface-soft: rgba(255, 255, 255, 0.045);
    --surface-glass: rgba(9, 9, 9, 0.78);
    --text: #ffffff;
    --text-soft: #efefef;
    --muted: #b7b7b7;
    --muted-2: #7f7f7f;
    --orange: #ff8c00;
    --orange-bright: #ffa733;
    --orange-soft: rgba(255, 140, 0, 0.11);
    --green: #42d992;
    --green-soft: rgba(66, 217, 146, 0.11);
    --blue: #78a9ff;
    --blue-soft: rgba(120, 169, 255, 0.11);
    --violet: #ad91ff;
    --violet-soft: rgba(173, 145, 255, 0.11);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 22px 58px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 36px 100px rgba(0, 0, 0, 0.54);
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 38px;
    --content-width: 1120px;
    --bottom-nav-height: 88px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
}

html[data-text-size="large"] {
    font-size: 112.5%;
}

html[data-text-size="xlarge"] {
    font-size: 125%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 12px);
    color: var(--text);
    background:
        radial-gradient(circle at 8% -8%, rgba(255, 140, 0, 0.18), transparent 30rem),
        radial-gradient(circle at 94% 4%, rgba(255, 140, 0, 0.06), transparent 28rem),
        linear-gradient(180deg, #070707 0%, #030303 50%, #070707 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.017) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

body.drawer-open,
body.dialog-open {
    overflow: hidden;
}

body[data-simple-layout="true"]::before,
body[data-simple-layout="true"] .command-hero::before,
body[data-simple-layout="true"] .progress-panel::after {
    display: none;
}

body[data-simple-layout="true"] {
    background: #050505;
}

body[data-high-contrast="true"] {
    --muted: #e3e3e3;
    --muted-2: #c2c2c2;
    --line: rgba(255, 255, 255, 0.24);
    --line-strong: rgba(255, 255, 255, 0.4);
}

body[data-reduce-motion="true"] *,
body[data-reduce-motion="true"] *::before,
body[data-reduce-motion="true"] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
}

h1,
h2,
h3,
p,
dl,
dd {
    margin-top: 0;
}

::selection {
    color: #fff;
    background: rgba(255, 140, 0, 0.32);
}

:focus-visible {
    outline: 3px solid rgba(255, 140, 0, 0.92);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-shell {
    width: min(calc(100% - 32px), var(--content-width));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 12px;
    z-index: 1000;
    transform: translateY(-170%);
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--orange);
    color: #050505;
    font-weight: 900;
    box-shadow: var(--shadow-md);
    transition: transform 180ms var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

.system-banner {
    position: fixed;
    top: calc(76px + env(safe-area-inset-top));
    left: 50%;
    z-index: 700;
    width: min(calc(100% - 24px), 720px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 16px;
    background: #17110a;
    color: #ffd199;
    font-size: 0.82rem;
    font-weight: 750;
    box-shadow: var(--shadow-md);
}

.system-banner button {
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 850;
}

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 300;
    padding: calc(10px + env(safe-area-inset-top)) 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(26px) saturate(150%);
}

.topbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 0, 0.45);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36), 0 0 0 4px rgba(255, 140, 0, 0.045);
}

.brand-logo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.brand-copy span {
    max-width: 270px;
    margin-top: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted-2);
    font-size: 0.71rem;
    font-weight: 720;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-icon-button,
.icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted);
    cursor: pointer;
    transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.topbar-icon-button:hover,
.icon-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 140, 0, 0.35);
    background: var(--orange-soft);
    color: var(--orange);
}

.notification-trigger {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding-inline: 5px;
    border: 2px solid #060606;
    border-radius: 999px;
    background: var(--orange);
    color: #090909;
    font-size: 0.64rem;
    font-weight: 950;
}

.profile-trigger {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
    border-color: rgba(255, 140, 0, 0.34);
    background: rgba(255, 140, 0, 0.07);
}

.profile-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 140, 0, 0.32);
    border-radius: 12px;
    background: linear-gradient(145deg, #ff9c24, #f07800);
    color: #090909;
    font-size: 0.78rem;
    font-weight: 950;
}

.profile-avatar.large {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
    font-size: 0.88rem;
}

.profile-trigger-copy {
    min-width: 0;
    text-align: left;
}

.profile-trigger-copy strong,
.profile-trigger-copy small {
    display: block;
}

.profile-trigger-copy strong {
    font-size: 0.79rem;
    line-height: 1.12;
}

.profile-trigger-copy small {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 0.65rem;
}

.chevron-icon {
    width: 17px;
    height: 17px;
    color: var(--muted-2);
    transition: transform 180ms var(--ease);
}

.profile-trigger[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 350;
    width: min(330px, calc(100vw - 24px));
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: rgba(18, 18, 18, 0.98);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    transform-origin: top right;
    animation: menuIn 170ms var(--ease);
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 14px;
    border-bottom: 1px solid var(--line);
}

.profile-menu-header strong,
.profile-menu-header small {
    display: block;
}

.profile-menu-header strong {
    font-size: 0.91rem;
}

.profile-menu-header small {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 0.73rem;
}

.profile-menu-links {
    display: grid;
    gap: 3px;
    padding-top: 8px;
}

.profile-menu-links a,
.profile-menu-links button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 760;
}

.profile-menu-links a:hover,
.profile-menu-links button:hover {
    background: var(--orange-soft);
    color: var(--orange-bright);
}

/* Main and hero */
.main-content {
    padding-top: 22px;
}

.command-hero {
    position: relative;
    isolation: isolate;
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
    align-items: end;
    gap: 26px;
    overflow: hidden;
    padding: clamp(26px, 5vw, 54px);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: clamp(28px, 5vw, 42px);
    background:
        radial-gradient(circle at 92% 2%, rgba(255, 140, 0, 0.18), transparent 29rem),
        linear-gradient(140deg, rgba(24, 24, 24, 0.98), rgba(7, 7, 7, 0.99));
    box-shadow: var(--shadow-lg);
}

.command-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(120deg, transparent 0 63%, rgba(255, 255, 255, 0.025) 63% 63.2%, transparent 63.2%),
        radial-gradient(circle at 13% 100%, rgba(255, 140, 0, 0.08), transparent 26rem);
}

.command-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.86), transparent);
}

.hero-copy {
    max-width: 720px;
}

.status-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange-bright);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}

.status-pill {
    width: max-content;
    max-width: 100%;
    margin-bottom: 24px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 140, 0, 0.25);
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.08);
}

.live-dot,
.account-state-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(66, 217, 146, 0.1);
}

.hero-greeting {
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 780;
}

.command-hero h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(2.65rem, 7vw, 5.6rem);
    font-weight: 950;
    line-height: 0.93;
    letter-spacing: -0.068em;
}

.command-hero h1 span {
    color: var(--orange);
}

.hero-lede {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.14rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

.button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 17px;
    border: 1px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.89rem;
    font-weight: 900;
    line-height: 1.1;
    transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    border-color: var(--orange);
    background: var(--orange);
    color: #080808;
    box-shadow: 0 14px 32px rgba(255, 140, 0, 0.17);
}

.button.primary:hover {
    border-color: var(--orange-bright);
    background: var(--orange-bright);
    box-shadow: 0 18px 40px rgba(255, 140, 0, 0.22);
}

.button.secondary {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
}

.button.secondary:hover {
    border-color: rgba(255, 140, 0, 0.35);
    background: var(--orange-soft);
}

.full-width {
    width: 100%;
}

.hero-account-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

.account-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-avatar {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 140, 0, 0.35);
    border-radius: 18px;
    background: linear-gradient(145deg, #ffa42e, #e87900);
    color: #080808;
    font-size: 1rem;
    font-weight: 950;
}

.account-state {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 780;
}

.micro-label {
    display: block;
    margin-bottom: 8px;
    color: var(--orange-bright);
    font-size: 0.65rem;
    font-weight: 920;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-account-card > div > strong {
    display: block;
    margin-bottom: 7px;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.hero-account-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.account-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.text-button {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
}

.text-button:hover {
    border-color: rgba(255, 140, 0, 0.3);
    color: var(--orange-bright);
}

/* Sections */
.section {
    padding: 32px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 17px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(1.55rem, 4vw, 2.4rem);
    font-weight: 930;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.section-heading p {
    max-width: 620px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.91rem;
}

.compact-heading {
    align-items: flex-start;
}

.today-date {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 780;
}

.today-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 13px;
}

.today-card {
    min-height: 285px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(150deg, rgba(19, 19, 19, 0.98), rgba(9, 9, 9, 0.98));
    box-shadow: var(--shadow-sm);
}

.card-heading-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
}

.card-icon.orange {
    border: 1px solid rgba(255, 140, 0, 0.22);
    background: var(--orange-soft);
    color: var(--orange);
}

.card-icon.blue {
    border: 1px solid rgba(120, 169, 255, 0.22);
    background: var(--blue-soft);
    color: var(--blue);
}

.card-icon.violet {
    border: 1px solid rgba(173, 145, 255, 0.22);
    background: var(--violet-soft);
    color: var(--violet);
}

.card-kicker {
    color: var(--muted-2);
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.session-main strong,
.session-main span {
    display: block;
}

.session-main strong {
    margin-bottom: 4px;
    font-size: clamp(1.3rem, 3vw, 1.85rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.session-main span {
    color: var(--orange-bright);
    font-size: 0.92rem;
    font-weight: 850;
}

.detail-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 20px;
}

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-list dt,
.detail-list dd {
    margin: 0;
    font-size: 0.76rem;
}

.detail-list dt {
    color: var(--muted-2);
}

.detail-list dd {
    color: var(--text-soft);
    font-weight: 780;
    text-align: right;
}

.success-text {
    color: var(--green) !important;
}

.empty-state-copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.12rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.empty-state-copy p,
.today-card > p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.card-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--orange-bright);
    font-size: 0.78rem;
    font-weight: 860;
}

.button-reset {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.metric-block {
    margin-bottom: 13px;
}

.metric-block strong,
.metric-block span {
    display: block;
}

.metric-block strong {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.metric-block span {
    margin-top: 7px;
    color: var(--muted-2);
    font-size: 0.76rem;
    font-weight: 790;
}

.split-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.split-links a {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 820;
}

.split-links a:hover {
    border-color: rgba(255, 140, 0, 0.3);
    background: var(--orange-soft);
    color: var(--orange-bright);
}

/* Action grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.action-card {
    position: relative;
    min-height: 154px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.98), rgba(9, 9, 9, 0.98));
    box-shadow: var(--shadow-sm);
    transition: transform 190ms var(--ease), border-color 190ms var(--ease), box-shadow 190ms var(--ease);
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 140, 0, 0.32);
    box-shadow: var(--shadow-md);
}

.action-card.featured {
    border-color: rgba(255, 140, 0, 0.22);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 140, 0, 0.14), transparent 16rem),
        linear-gradient(145deg, #1b1712, #0a0a0a);
}

.action-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 140, 0, 0.22);
    border-radius: 17px;
    background: var(--orange-soft);
    color: var(--orange);
}

.action-copy {
    min-width: 0;
}

.action-copy strong,
.action-copy span {
    display: block;
}

.action-copy strong {
    font-size: 1.04rem;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.action-copy span {
    margin-top: 6px;
    color: var(--muted-2);
    font-size: 0.79rem;
    line-height: 1.42;
}

.action-arrow {
    color: var(--muted-2);
    transition: color 180ms var(--ease), transform 180ms var(--ease);
}

.action-card:hover .action-arrow {
    color: var(--orange);
    transform: translate(2px, -2px);
}

/* Progress */
.progress-panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 30px;
    overflow: hidden;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid rgba(255, 140, 0, 0.18);
    border-radius: 32px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 140, 0, 0.12), transparent 24rem),
        linear-gradient(145deg, #151515, #080808);
    box-shadow: var(--shadow-lg);
}

.progress-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.08;
    mask-image: linear-gradient(90deg, transparent, #000);
}

.progress-copy h2 {
    margin: 9px 0 12px;
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.progress-copy p {
    max-width: 610px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.91rem;
}

.progress-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.progress-metric {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(12px);
}

.metric-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    border-radius: 12px;
    background: var(--orange-soft);
    color: var(--orange);
}

.progress-metric strong,
.progress-metric > span:last-child {
    display: block;
}

.progress-metric strong {
    margin-top: 18px;
    font-size: 2.2rem;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.progress-metric > span:last-child {
    margin-top: 7px;
    color: var(--muted-2);
    font-size: 0.7rem;
    line-height: 1.35;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.service-link {
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: var(--shadow-sm);
    transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.service-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 140, 0, 0.3);
    background: var(--orange-soft);
}

.service-link > .icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    overflow: visible;
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 13px;
    background: rgba(255, 140, 0, 0.08);
    color: var(--orange);
}

.service-link span {
    min-width: 0;
}

.service-link strong,
.service-link small {
    display: block;
}

.service-link strong {
    font-size: 0.86rem;
    line-height: 1.2;
}

.service-link small {
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 0.69rem;
    line-height: 1.32;
}

/* Install */
.install-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.98), rgba(9, 9, 9, 0.98));
    box-shadow: var(--shadow-md);
}

.install-panel-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 140, 0, 0.24);
    border-radius: 18px;
    background: var(--orange-soft);
    color: var(--orange);
}

.install-panel h2 {
    margin: 8px 0 6px;
    font-size: 1.28rem;
    letter-spacing: -0.035em;
}

.install-panel p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.installed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(66, 217, 146, 0.22);
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 850;
}

/* Footer */
.app-footer {
    padding: 20px 0 38px;
}

.footer-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.footer-inner strong {
    display: block;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.footer-inner p {
    margin: 4px 0 0;
}

/* Bottom nav */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 290;
    padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 5, 5, 0.86);
    backdrop-filter: blur(26px) saturate(160%);
    box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.34);
}

.bottom-nav-inner {
    width: min(100%, 720px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
}

.bottom-nav-item {
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 4px;
    border-radius: 15px;
    color: var(--muted-2);
    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1;
    transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    background: var(--orange-soft);
    color: var(--orange);
}

.bottom-nav-item:active {
    transform: scale(0.96);
}

/* Drawers */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.67);
    backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity 220ms var(--ease);
}

.drawer-backdrop.visible {
    opacity: 1;
}

.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 520;
    width: min(440px, 100%);
    display: flex;
    flex-direction: column;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
    border-left: 1px solid var(--line-strong);
    background: linear-gradient(180deg, #161616, #080808);
    box-shadow: -30px 0 90px rgba(0, 0, 0, 0.58);
    transform: translateX(104%);
    transition: transform 260ms var(--ease);
}

.side-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
    margin: 7px 0 0;
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: -0.045em;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding-top: 16px;
    overscroll-behavior: contain;
}

.notification-list {
    display: grid;
    gap: 10px;
}

.notification-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.035);
}

.notification-item.unread {
    border-color: rgba(255, 140, 0, 0.23);
    background: rgba(255, 140, 0, 0.065);
}

.notification-dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--muted-2);
}

.notification-item.unread .notification-dot {
    background: var(--orange);
    box-shadow: 0 0 0 5px rgba(255, 140, 0, 0.09);
}

.notification-item strong {
    display: block;
    font-size: 0.88rem;
}

.notification-item p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.45;
}

.notification-item time {
    display: block;
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 0.67rem;
}

.drawer-empty-state {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.drawer-empty-state > span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(66, 217, 146, 0.22);
    border-radius: 21px;
    background: var(--green-soft);
    color: var(--green);
}

.drawer-empty-state > span .icon {
    width: 30px;
    height: 30px;
}

.drawer-empty-state strong {
    font-size: 1.12rem;
}

.drawer-empty-state p {
    max-width: 300px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.settings-list {
    display: grid;
    align-content: start;
    gap: 12px;
}

.setting-group {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.setting-group legend {
    padding: 0 4px;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 850;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    padding: 5px;
    border-radius: 13px;
    background: rgba(0, 0, 0, 0.3);
}

.segmented-control button {
    min-height: 42px;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 820;
}

.segmented-control button.active {
    background: var(--orange);
    color: #070707;
}

.toggle-setting {
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.toggle-setting strong,
.toggle-setting small {
    display: block;
}

.toggle-setting strong {
    font-size: 0.84rem;
}

.toggle-setting small {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 0.69rem;
    line-height: 1.35;
}

.toggle-setting input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-ui {
    position: relative;
    width: 48px;
    height: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #292929;
    transition: background 180ms var(--ease), border-color 180ms var(--ease);
}

.toggle-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f4f4f4;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
    transition: transform 180ms var(--ease);
}

.toggle-setting input:checked + .toggle-ui {
    border-color: var(--orange);
    background: var(--orange);
}

.toggle-setting input:checked + .toggle-ui::after {
    transform: translateX(20px);
    background: #080808;
}

/* Dialogs */
dialog {
    color: var(--text);
}

.search-dialog,
.ios-dialog {
    width: min(calc(100% - 24px), 720px);
    max-height: min(86vh, 760px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 28px;
    background: #111;
    box-shadow: var(--shadow-lg);
}

.search-dialog::backdrop,
.ios-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(9px);
}

.search-dialog[open],
.ios-dialog[open] {
    animation: dialogIn 190ms var(--ease);
}

@keyframes dialogIn {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-dialog-inner {
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 760px);
    padding: 20px;
}

.search-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.search-dialog-header h2 {
    margin: 7px 0 0;
    font-size: 1.55rem;
    line-height: 1;
    letter-spacing: -0.045em;
}

.search-field {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted-2);
}

.search-field:focus-within {
    border-color: rgba(255, 140, 0, 0.48);
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.07);
}

.search-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 0.91rem;
}

.search-field input::placeholder {
    color: var(--muted-2);
}

.search-results {
    display: grid;
    gap: 7px;
    overflow-y: auto;
    margin-top: 14px;
    padding-right: 2px;
}

.search-results > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--muted);
}

.search-results > a:hover {
    border-color: rgba(255, 140, 0, 0.25);
    background: var(--orange-soft);
    color: var(--text-soft);
}

.search-results > a > .icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    overflow: visible;
    border-radius: 12px;
    background: rgba(255, 140, 0, 0.09);
    color: var(--orange);
}

.search-results strong,
.search-results small {
    display: block;
}

.search-results strong {
    font-size: 0.83rem;
}

.search-results small {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 0.68rem;
}

.no-results {
    padding: 30px 14px;
    color: var(--muted);
    text-align: center;
    font-size: 0.82rem;
}

.ios-dialog {
    width: min(calc(100% - 24px), 460px);
}

.ios-dialog-inner {
    position: relative;
    padding: 30px;
    text-align: center;
}

.dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.dialog-feature-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 12px auto 18px;
    border: 1px solid rgba(255, 140, 0, 0.24);
    border-radius: 22px;
    background: var(--orange-soft);
    color: var(--orange);
}

.dialog-feature-icon .icon {
    width: 30px;
    height: 30px;
}

.ios-dialog h2 {
    margin-bottom: 18px;
    font-size: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.ios-dialog ol {
    margin: 0;
    padding-left: 24px;
    color: var(--muted);
    text-align: left;
    font-size: 0.85rem;
}

.ios-dialog li + li {
    margin-top: 9px;
}

/* Responsive */
@media (max-width: 980px) {
    .command-hero {
        grid-template-columns: 1fr;
    }

    .hero-account-card {
        min-height: auto;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 18px;
    }

    .account-card-top {
        display: block;
    }

    .account-state {
        margin-top: 10px;
    }

    .account-card-actions {
        min-width: 250px;
    }

    .today-grid {
        grid-template-columns: 1fr 1fr;
    }

    .session-card {
        grid-column: 1 / -1;
    }

    .progress-panel {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .app-shell {
        width: min(calc(100% - 24px), var(--content-width));
    }

    .main-content {
        padding-top: 14px;
    }

    .brand-copy span,
    .profile-trigger-copy,
    .chevron-icon {
        display: none;
    }

    .profile-trigger {
        width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 4px;
        border-radius: 14px;
    }

    .profile-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .command-hero {
        min-height: 520px;
        align-items: end;
        padding: 24px 20px;
        border-radius: 29px;
    }

    .command-hero h1 {
        font-size: clamp(2.6rem, 14vw, 4.6rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-account-card {
        display: flex;
    }

    .account-card-top {
        display: flex;
    }

    .account-card-actions {
        min-width: 0;
    }

    .section {
        padding: 25px 0;
    }

    .section-heading {
        align-items: flex-start;
    }

    .today-date {
        display: none;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .progress-metrics {
        grid-template-columns: 1fr;
    }

    .progress-metric {
        min-height: 120px;
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: center;
        justify-content: start;
        gap: 13px;
    }

    .metric-icon,
    .progress-metric strong {
        margin: 0;
    }

    .progress-metric > span:last-child {
        margin: 0;
    }

    .install-panel {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .install-panel .button,
    .installed-badge {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .footer-inner {
        display: block;
        text-align: center;
    }

    .footer-inner > p {
        margin-top: 12px;
    }
}

@media (max-width: 560px) {
    .topbar-tools {
        gap: 6px;
    }

    .search-trigger {
        display: none;
    }

    .today-grid {
        grid-template-columns: 1fr;
    }

    .session-card {
        grid-column: auto;
    }

    .today-card {
        min-height: 250px;
    }

    .account-card-actions {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-link {
        min-height: 94px;
    }

    .install-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .install-panel-icon {
        margin-inline: auto;
    }

    .install-panel .button,
    .installed-badge {
        grid-column: auto;
    }

    .side-drawer {
        width: 100%;
        border-left: 0;
    }

    .segmented-control {
        grid-template-columns: 1fr;
    }

    .bottom-nav-item {
        font-size: 0.61rem;
    }

    .bottom-nav-item .icon {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 1180px) {
    body {
        padding-bottom: 38px;
    }

    .bottom-nav {
        left: 50%;
        right: auto;
        bottom: 18px;
        width: 620px;
        transform: translateX(-50%);
        padding: 7px;
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.56);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
