:root {
    --bg: #f7f7f5;
    --panel: #ffffff;
    --panel-2: #f1f2ef;
    --panel-3: #e8e9e5;
    --text: #171816;
    --muted: #767b74;
    --border: #e2e4df;
    --border-strong: #ced2ca;
    --accent: #bf7636;
    --accent-strong: #96531f;
    --accent-soft: #f7eadf;
    --success: #27734a;
    --success-soft: #e6f3eb;
    --danger: #b33f3f;
    --danger-soft: #fae9e9;
    --warning: #966515;
    --warning-soft: #fff4d9;
    --info: #3e648c;
    --info-soft: #e8f0f8;
    --sidebar-bg: #171817;
    --sidebar-panel: #222321;
    --sidebar-text: #f6f6f3;
    --sidebar-muted: #92978f;
    --sidebar-line: #2d2f2c;
    --radius: 16px;
    --radius-sm: 11px;
    --sidebar: 286px;
}

html[data-theme="dark"] {
    --bg: #101210;
    --panel: #191c19;
    --panel-2: #222622;
    --panel-3: #2a2e2a;
    --text: #f5f6f3;
    --muted: #a2a79f;
    --border: #303630;
    --border-strong: #434a43;
    --accent: #d58b4b;
    --accent-strong: #efaa6e;
    --accent-soft: #35271d;
    --success: #66c18c;
    --success-soft: #1e3428;
    --danger: #ef7b7b;
    --danger-soft: #3a2222;
    --warning: #e0b35c;
    --warning-soft: #3b301d;
    --info: #82abd4;
    --info-soft: #203044;
    --sidebar-bg: #0c0e0c;
    --sidebar-panel: #171a17;
    --sidebar-line: #242824;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-color: var(--accent); }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); min-height: 100vh; background: var(--sidebar-bg); color: var(--sidebar-text); padding: 26px 20px 20px; display: flex; flex-direction: column; z-index: 40; border-right: 1px solid #0e0f0e; }
.sidebar-top { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 850; font-size: 21px; letter-spacing: -.65px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; background: #fff; color: #171817; border-radius: 12px; font-size: 13px; letter-spacing: .02em; }
.brand-copy { min-width: 0; }
.brand small { display: block; margin-top: 3px; color: var(--sidebar-muted); font-size: 10px; line-height: 1; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-close { display: none; margin-left: auto; width: 36px; height: 36px; border: 1px solid var(--sidebar-line); border-radius: 10px; color: #fff; background: transparent; font-size: 23px; }

.nav { display: grid; gap: 8px; margin-top: 30px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #353735 transparent; }
.nav-group { border: 1px solid transparent; border-radius: 14px; overflow: hidden; }
.nav-group.open { background: rgba(255,255,255,.028); border-color: var(--sidebar-line); }
.nav-group-toggle { width: 100%; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border: 0; background: transparent; color: var(--sidebar-muted); text-transform: uppercase; letter-spacing: .09em; font-size: 10px; font-weight: 850; }
.nav-chevron { font-size: 16px; transition: transform .18s ease; }
.nav-group.open .nav-chevron { transform: rotate(180deg); }
.nav-group-links { display: none; padding: 0 7px 8px; }
.nav-group.open .nav-group-links { display: grid; gap: 3px; }
.nav-group-links a { min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 10px; color: #b8bcb5; font-size: 13px; font-weight: 730; }
.nav-group-links a:hover { background: var(--sidebar-panel); color: #fff; }
.nav-group-links a.active { background: #fff; color: #171817; }
.nav-icon { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 13px; font-weight: 900; }
.nav-group-links a.active .nav-icon { background: var(--accent-soft); color: var(--accent-strong); }

.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--sidebar-line); display: flex; align-items: center; gap: 10px; }
.sidebar-user { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.avatar { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 50%; background: #cac8ff; color: #181818; font-size: 12px; font-weight: 900; }
.user-mini { min-width: 0; display: grid; }
.user-mini strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.user-mini small { color: var(--sidebar-muted); text-transform: capitalize; font-size: 11px; }
.logout-link { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--sidebar-line); border-radius: 10px; color: #aeb2ab; font-size: 18px; }
.logout-link:hover { color: #fff; border-color: #4a4e49; }
.sidebar-overlay { display: none; }

.content-shell { grid-column: 2; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 94px; padding: 22px 32px; display: flex; align-items: center; gap: 18px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.page-heading { min-width: 0; }
.page-heading h1 { margin: 3px 0 0; font-size: 27px; line-height: 1.1; letter-spacing: -.85px; }
.eyebrow { color: var(--accent); font-size: 10px; line-height: 1.2; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-status { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 760; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 50%; }
.icon-button:hover { border-color: var(--border-strong); background: var(--panel-2); }
.menu-toggle { display: none; }

.main-content { width: 100%; max-width: 1700px; margin: 0 auto; padding: 30px 32px 42px; flex: 1; }
.app-footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 700; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.dashboard-main, .dashboard-side { min-width: 0; display: grid; gap: 18px; }

.panel { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-head { min-height: 63px; padding: 16px 19px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 16px; line-height: 1.2; letter-spacing: -.35px; }
.panel-body { padding: 20px; }
.panel-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.hero-panel { padding: 25px; background: var(--sidebar-bg); color: #fff; border-color: var(--sidebar-bg); position: relative; overflow: hidden; }
.hero-panel::after { content: ''; position: absolute; width: 210px; height: 210px; right: -80px; top: -100px; border-radius: 50%; border: 40px solid rgba(255,255,255,.035); }
.hero-panel .eyebrow { color: #d9ae87; }
.hero-panel h2 { max-width: 720px; margin: 8px 0 10px; font-size: 30px; line-height: 1.04; letter-spacing: -1.25px; }
.hero-panel p { max-width: 760px; margin: 0; color: #aeb1ac; font-size: 14px; line-height: 1.55; }
.hero-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 9px; position: relative; z-index: 1; }
.hero-panel .button { border-color: #333633; background: #242624; color: #fff; }
.hero-panel .button.primary { background: #fff; border-color: #fff; color: #171817; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { min-height: 126px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; width: 74px; height: 74px; right: -18px; bottom: -24px; border-radius: 50%; background: var(--panel-2); }
.stat strong { position: relative; z-index: 1; display: block; font-size: 35px; line-height: 1; letter-spacing: -1.8px; }
.stat span { position: relative; z-index: 1; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat.violet { background: #efefff; border-color: #e3e2ff; color: #202026; }
.stat.mint { background: #edf7f1; border-color: #deeee4; color: #1f2923; }
.stat.lemon { background: #fff8d9; border-color: #f3e8ad; color: #2b291d; }
.stat.rose { background: #fff0f6; border-color: #f2dce6; color: #2b2226; }
html[data-theme="dark"] .stat.violet, html[data-theme="dark"] .stat.mint, html[data-theme="dark"] .stat.lemon, html[data-theme="dark"] .stat.rose { background: var(--panel); border-color: var(--border); color: var(--text); }

.health-card { padding: 22px; }
.health-score { width: 150px; height: 150px; margin: 2px auto 18px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--border); text-align: center; background: var(--panel); }
.health-score strong { display: block; font-size: 45px; line-height: .95; letter-spacing: -2.4px; }
.health-score small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.health-status { text-align: center; }
.health-status h3 { margin: 0 0 5px; font-size: 17px; }
.health-status p { margin: 0; color: var(--muted); font-size: 12px; }
.health-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.health-count { padding: 10px 6px; border-radius: 11px; background: var(--panel-2); text-align: center; }
.health-count strong { display: block; font-size: 17px; }
.health-count span { color: var(--muted); font-size: 10px; font-weight: 750; }

.smart-list { display: grid; }
.smart-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.smart-item:last-child { border-bottom: 0; }
.smart-item:hover { background: var(--panel-2); }
.smart-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 900; }
.smart-icon.danger { background: var(--danger-soft); color: var(--danger); }
.smart-icon.warning { background: var(--warning-soft); color: var(--warning); }
.smart-icon.info { background: var(--info-soft); color: var(--info); }
.smart-icon.success { background: var(--success-soft); color: var(--success); }
.smart-copy { min-width: 0; flex: 1; }
.smart-copy strong { display: block; font-size: 13px; line-height: 1.3; }
.smart-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.toolbar { min-height: 46px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.toolbar select, .toolbar input { width: auto; min-width: 190px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); font-size: 13px; font-weight: 780; }
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-strong); }
.button.danger { color: var(--danger); }
.button.small { min-height: 31px; padding: 5px 9px; border-radius: 8px; font-size: 11px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--panel-2) 75%, transparent); }
.record-title { color: var(--accent); font-weight: 800; }
.muted { color: var(--muted); }
.small-text { font-size: 12px; }

.badge { min-height: 26px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); font-size: 10px; font-weight: 850; white-space: nowrap; }
.badge.success { color: var(--success); background: var(--success-soft); border-color: transparent; }
.badge.warning { color: var(--warning); background: var(--warning-soft); border-color: transparent; }
.badge.danger { color: var(--danger); background: var(--danger-soft); border-color: transparent; }
.badge.info { color: var(--info); background: var(--info-soft); border-color: transparent; }
.badge.accent { color: var(--accent); background: var(--accent-soft); border-color: transparent; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: var(--text); font-size: 12px; font-weight: 780; }
input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type="checkbox"] { min-height: 0; }
.section-title { margin-top: 5px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 850; }
.help { color: var(--muted); font-size: 11px; line-height: 1.45; font-weight: 550; }
.form-insight { min-height: 74px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-insight strong { color: var(--text); }

.alert { padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px; background: var(--panel); font-size: 13px; line-height: 1.45; }
.alert.error, .alert.danger { border-left-color: var(--danger); }
.alert.success { border-left-color: var(--success); }
.alert.warning { border-left-color: var(--warning); }
.alert.info { border-left-color: var(--info); }
.empty { padding: 34px 20px; color: var(--muted); text-align: center; font-size: 13px; }

.route-builder { display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.route-arrow { height: 42px; display: grid; place-items: center; color: var(--accent); font-size: 22px; font-weight: 900; }
.route-result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; }
.route-score { min-height: 210px; padding: 20px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); text-align: center; }
.route-score strong { display: block; font-size: 54px; line-height: .9; letter-spacing: -3px; }
.route-score span { display: block; margin-top: 9px; font-size: 13px; font-weight: 850; }
.route-score small { display: block; margin-top: 5px; color: var(--muted); }
.route-line { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 8px 2px 17px; }
.route-step { min-width: 190px; max-width: 260px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); position: relative; }
.route-step + .route-step { margin-left: 38px; }
.route-step + .route-step::before { content: '→'; position: absolute; left: -29px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 19px; font-weight: 900; }
.route-step strong { display: block; margin-bottom: 5px; font-size: 13px; line-height: 1.35; }
.route-step span { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.route-summary { font-size: 18px; line-height: 1.45; font-weight: 780; }
.route-segments { display: grid; gap: 8px; margin-top: 15px; }
.route-segment { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.route-segment-index { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); font-size: 10px; font-weight: 900; }
.route-segment strong { display: block; font-size: 12px; }
.route-segment small { color: var(--muted); font-size: 10px; }
.suggestion-grid { display: grid; gap: 10px; }
.suggestion-card { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.suggestion-card h3 { margin: 0 0 7px; font-size: 13px; }
.suggestion-card p { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.diagnostics-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.diagnostic-summary { padding: 18px; }
.diagnostic-summary strong { display: block; font-size: 30px; letter-spacing: -1.4px; }
.diagnostic-summary span { color: var(--muted); font-size: 11px; font-weight: 720; }
.diagnostic-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.diagnostic-row[hidden] { display: none !important; }

.install-body { min-height: 100vh; display: grid; place-items: start center; padding: 42px 18px; }
.install-shell { width: min(900px, 100%); }
.install-panel { padding: 27px; }
.install-panel h1 { margin: 7px 0 10px; font-size: 32px; letter-spacing: -1.1px; }
.install-panel p { color: var(--muted); }
.brand-large { margin-bottom: 20px; font-size: 22px; }
.brand-large .brand-mark { width: 48px; height: 48px; }

.login-body { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); background: var(--bg); }
.login-visual { padding: 54px; display: flex; flex-direction: column; justify-content: space-between; background: var(--sidebar-bg); color: #fff; }
.login-visual h2 { max-width: 650px; margin: 0; font-size: clamp(36px, 5vw, 72px); line-height: .96; letter-spacing: -3px; }
.login-visual p { max-width: 600px; color: #989d96; line-height: 1.55; }
.login-wrap { display: grid; place-items: center; padding: 28px; }
.login-card { width: min(430px, 100%); padding: 26px; }
.login-card h1 { margin: 20px 0 6px; }
.login-card p { margin-top: 0; color: var(--muted); }
.login-card form { display: grid; gap: 14px; margin-top: 24px; }

@media (max-width: 1250px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dashboard-side > :last-child { grid-column: 1 / -1; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 1020px) {
    .app-shell { grid-template-columns: 1fr; }
    .content-shell { grid-column: 1; }
    .sidebar { transform: translateX(-103%); transition: transform .2s ease; box-shadow: none; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: grid; place-items: center; }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.45); }
    .sidebar.open + .sidebar-overlay { display: block; }
    .menu-toggle { display: grid; }
    .route-result-grid { grid-template-columns: 1fr; }
    .route-score { min-height: 145px; }
    .login-body { grid-template-columns: 1fr; }
    .login-visual { display: none; }
}

@media (max-width: 780px) {
    .topbar { min-height: 78px; padding: 15px 16px; }
    .page-heading h1 { font-size: 21px; }
    .topbar-status { display: none; }
    .main-content { padding: 18px 14px 30px; }
    .app-footer { padding: 0 16px; }
    .grid.cols-2, .grid.cols-3, .grid.cols-4, .form-grid, .stats-grid, .dashboard-side, .diagnostics-grid { grid-template-columns: 1fr; }
    .dashboard-side > :last-child { grid-column: auto; }
    .route-builder { grid-template-columns: 1fr; }
    .route-arrow { height: 20px; transform: rotate(90deg); }
    .route-builder .button { width: 100%; }
    .panel-head { align-items: flex-start; }
    .toolbar select, .toolbar input { width: 100%; min-width: 0; }
    .toolbar .spacer { display: none; }
    th, td { padding: 11px 12px; }
    .hero-panel h2 { font-size: 25px; }
}

.install-body .brand-mark { background: var(--accent); color: #fff; }

/* PatchFlow 1.3 */
.check-line { display: flex; align-items: center; gap: 9px; min-height: 42px; }
.check-line input { width: 17px; height: 17px; margin: 0; }
.border-top { border-top: 1px solid var(--border); }
.no-top { margin-top: 0; padding-top: 0; border-top: 0; }
.no-margin { margin: 0; }
.filters { margin: 0; }
.device-layout { align-items: start; }
.form-grid.compact { gap: 11px; }
.list-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: start; }
.list-summary h2 { margin: 7px 0 8px; font-size: 28px; letter-spacing: -1px; }
.list-summary p { max-width: 850px; margin: 0 0 16px; color: var(--muted); line-height: 1.55; }
.list-meta { display: grid; justify-items: end; gap: 10px; color: var(--muted); font-size: 12px; }
.list-meta strong { color: var(--text); font-size: 15px; }
.status-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.unlock-form { flex: 1; min-width: min(500px,100%); display: flex; align-items: end; gap: 10px; }
.unlock-form label { flex: 1; }
.danger-zone { margin-top: 20px; justify-content: flex-end; }
.route-waypoints { display: grid; gap: 10px; }
.waypoint-row { display: grid; grid-template-columns: 32px minmax(180px,1.2fr) minmax(170px,1fr) minmax(170px,1fr) auto; gap: 10px; align-items: end; padding: 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.drag-handle { align-self: center; color: var(--muted); font-size: 18px; text-align: center; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); backdrop-filter: blur(5px); }
.modal-card { width: min(760px,100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
[disabled] { opacity: .55; cursor: not-allowed; }
form[inert] { opacity: .65; pointer-events: none; }

@media (max-width: 950px) {
    .waypoint-row { grid-template-columns: 32px 1fr 1fr; }
    .waypoint-row label:first-of-type { grid-column: 2 / -1; }
    .waypoint-row .button { grid-column: 2 / -1; }
    .list-summary { grid-template-columns: 1fr; }
    .list-meta { justify-items: start; }
}
@media (max-width: 650px) {
    .waypoint-row { grid-template-columns: 1fr; }
    .waypoint-row > * { grid-column: auto !important; }
    .drag-handle { display: none; }
    .unlock-form { display: grid; }
}
