/* Proteus — Dashboard of Dashboards */

:root {
    --bg: #0B0F1A;
    --surface: #141929;
    --surface-2: #1E2640;
    --surface-3: #283352;
    --border: #283352;
    --text: #94A3B8;
    --text-dim: #64748B;
    --text-faint: #475569;
    --white: #F1F5F9;
    --blue: #3B82F6;
    --blue-dim: rgba(59,130,246,.15);
    --cyan: #06B6D4;
    --cyan-dim: rgba(6,182,212,.15);
    --orange: #F97316;
    --orange-dim: rgba(249,115,22,.15);
    --green: #10B981;
    --green-dim: rgba(16,185,129,.15);
    --red: #EF4444;
    --red-dim: rgba(239,68,68,.15);
    --violet: #8B5CF6;
    --violet-dim: rgba(139,92,246,.15);
    --radius: 10px;
    --radius-lg: 16px;
    --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */

.contain { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.contain-sm { max-width: 800px; margin: 0 auto; padding: 0 40px; }

/* ---- Header ---- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,15,26,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 1.25rem; font-weight: 700; color: var(--white);
    letter-spacing: -.02em; display: flex; align-items: center; gap: 8px;
}
.logo-mark {
    width: 28px; height: 28px; background: linear-gradient(135deg, var(--blue), var(--violet));
    border-radius: 7px; display: flex; align-items: center; justify-content: center;
    font-size: .8rem; color: #fff; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; font-size: 1.4rem; }

/* Header right */
.header-right { display: flex; align-items: center; gap: 14px; }
.sidebar-toggle {
    display: none; background: none; border: none; color: var(--text); cursor: pointer;
    width: 36px; height: 36px; border-radius: 8px;
    align-items: center; justify-content: center;
}
.sidebar-toggle:hover { background: var(--surface-2); color: var(--white); }

/* User menu */
.nav-user { display: none; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.nav-user-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 700; color: #fff;
}
.nav-user-name { color: var(--white); font-size: .85rem; font-weight: 500; }
.nav-user-dropdown {
    display: none; position: absolute; top: 100%; right: 0; padding-top: 8px;
    min-width: 180px;
}
.nav-user-dropdown-inner {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 6px 0; box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.nav-user:hover .nav-user-dropdown { display: block; }
.nav-user-dropdown a {
    display: block; padding: 8px 16px; color: var(--text); font-size: .85rem;
}
.nav-user-dropdown a:hover { background: var(--surface-2); color: var(--white); text-decoration: none; }

/* Nav signin */
.nav-signin {
    display: inline-flex; align-items: center; padding: 7px 18px;
    background: var(--blue); color: #fff; border-radius: 8px;
    font-size: .85rem; font-weight: 600;
}
.nav-signin:hover { background: #2563EB; text-decoration: none; }

/* ---- Buttons ---- */

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; background: var(--blue); color: #fff;
    border: none; border-radius: 10px; font-size: .95rem; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.btn-primary:hover { background: #2563EB; text-decoration: none; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; background: transparent; color: var(--white);
    border: 1px solid var(--border); border-radius: 10px;
    font-size: .95rem; font-weight: 600; cursor: pointer; transition: border-color .15s;
}
.btn-ghost:hover { border-color: var(--text); text-decoration: none; }

.btn-sm { padding: 7px 16px; font-size: .8rem; border-radius: 8px; }

/* ---- Hero ---- */

.hero {
    text-align: center; padding: 100px 0 80px;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59,130,246,.08), transparent);
}
.hero-badge {
    display: inline-block; padding: 5px 14px; border-radius: 20px;
    background: var(--blue-dim); color: var(--blue); font-size: .8rem; font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 3.4rem; font-weight: 800; color: var(--white);
    line-height: 1.1; letter-spacing: -.03em; margin-bottom: 20px;
}
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.2rem; color: var(--text); max-width: 600px; margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Stats bar ---- */

.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--border); border-radius: var(--radius-lg); overflow: hidden;
    margin: 60px 0;
}
.stat-item { background: var(--surface); padding: 28px; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--white); }
.stat-value.blue { color: var(--blue); }
.stat-value.cyan { color: var(--cyan); }
.stat-value.green { color: var(--green); }
.stat-value.violet { color: var(--violet); }
.stat-label { font-size: .85rem; color: var(--text-dim); margin-top: 4px; }

/* ---- Section ---- */

.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-size: 2.2rem; font-weight: 800; color: var(--white);
    letter-spacing: -.02em; margin-bottom: 12px;
}
.section-header p { font-size: 1.05rem; color: var(--text); max-width: 560px; margin: 0 auto; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px;
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; font-size: 1.2rem;
}
.feature-icon.blue   { background: var(--blue-dim); color: var(--blue); }
.feature-icon.cyan   { background: var(--cyan-dim); color: var(--cyan); }
.feature-icon.green  { background: var(--green-dim); color: var(--green); }
.feature-icon.orange { background: var(--orange-dim); color: var(--orange); }
.feature-icon.violet { background: var(--violet-dim); color: var(--violet); }
.feature-icon.red    { background: var(--red-dim); color: var(--red); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--text); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { text-align: center; counter-increment: step; }
.step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--blue-dim); color: var(--blue);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--text); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--blue); }
.price-card .tier { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 8px; }
.price-card .price { font-size: 2.4rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.price-card .price-note { font-size: .85rem; color: var(--text-dim); margin-bottom: 24px; }
.price-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price-card li { padding: 6px 0; font-size: .9rem; color: var(--text); display: flex; gap: 8px; align-items: baseline; }
.price-card li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 6px; }

/* CTA */
.cta {
    text-align: center; padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(59,130,246,.04));
}
.cta h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.cta p { font-size: 1.05rem; color: var(--text); margin-bottom: 28px; }

/* ---- Footer ---- */

.site-footer {
    border-top: 1px solid var(--border); padding: 40px 0; text-align: center;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); font-size: .85rem; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--text-faint); font-size: .8rem; }

/* ---- Card / Panel ---- */

.card, .panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.panel-head {
    padding: 16px 20px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.panel-head h3 { font-size: .95rem; font-weight: 700; color: var(--white); }
.panel-body { padding: 20px; }

/* ---- Badge ---- */

.badge {
    display: inline-block; padding: 2px 10px; border-radius: 6px;
    font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.badge-blue   { background: var(--blue-dim); color: var(--blue); }
.badge-cyan   { background: var(--cyan-dim); color: var(--cyan); }
.badge-green  { background: var(--green-dim); color: var(--green); }
.badge-orange { background: var(--orange-dim); color: var(--orange); }
.badge-red    { background: var(--red-dim); color: var(--red); }
.badge-violet { background: var(--violet-dim); color: var(--violet); }
.badge-dim    { background: rgba(100,116,139,.15); color: var(--text-dim); }

/* ---- Status dot ---- */

.status-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-faint);
}
.status-dot.active  { background: var(--green); }
.status-dot.warning { background: var(--orange); }
.status-dot.danger  { background: var(--red); }
.status-dot.info    { background: var(--blue); }

/* ---- Dashboard layout ---- */

.dash-shell { display: flex; min-height: calc(100vh - 64px); }

.dash-sidebar {
    width: 240px; flex-shrink: 0; background: var(--surface);
    border-right: 1px solid var(--border); padding: 24px 0;
}
.dash-sidebar-nav { list-style: none; }
.dash-sidebar-nav li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 24px; color: var(--text); font-size: .88rem; font-weight: 500;
}
.dash-sidebar-nav li a:hover { background: var(--surface-2); color: var(--white); text-decoration: none; }
.dash-sidebar-nav li a.active { color: var(--blue); background: var(--blue-dim); }
.dash-sidebar-nav .icon { width: 16px; height: 16px; display: inline-flex; opacity: .7; }
.dash-sidebar-nav li a.active .icon { opacity: 1; }
.dash-sidebar-label {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-faint); padding: 20px 24px 8px;
}

.dash-main { flex: 1; padding: 32px 40px; overflow-x: hidden; }
.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.dash-header p { font-size: .9rem; color: var(--text-dim); }

/* Dash stats */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.dash-stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 20px;
}
.dash-stat-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 6px; }
.dash-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.dash-stat-sub { font-size: .78rem; color: var(--text-faint); margin-top: 2px; }
.dash-stat-value.blue   { color: var(--blue); }
.dash-stat-value.green  { color: var(--green); }
.dash-stat-value.cyan   { color: var(--cyan); }
.dash-stat-value.orange { color: var(--orange); }
.dash-stat-value.violet { color: var(--violet); }

/* Dashboard grid layouts */
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-wide { grid-column: 1 / -1; }
.panel-head .panel-count { font-size: .78rem; color: var(--text-dim); font-weight: 500; }
.panel-head .panel-action { font-size: .78rem; color: var(--blue); font-weight: 500; }
.panel-head .panel-action:hover { text-decoration: underline; }
.empty-state-sm { padding: 28px 20px; text-align: center; }
.empty-state-sm p { font-size: .88rem; color: var(--text-dim); }

/* Quick links */
.quick-links { padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.quick-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: var(--surface-2); border-radius: 8px;
    font-size: .82rem; color: var(--text); transition: background .15s;
}
.quick-link:hover { background: var(--surface-3); color: var(--white); text-decoration: none; }
.quick-link-icon { opacity: .5; display: inline-flex; }
.quick-link-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }

/* App cards grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 28px; }
.app-grid-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.app-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px; display: flex; flex-direction: column; gap: 14px;
    transition: border-color .15s;
}
.app-card:hover { border-color: var(--blue); }
.app-card-head { display: flex; align-items: center; gap: 12px; }
.app-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.app-card-title { font-size: 1rem; font-weight: 700; color: var(--white); }
.app-card-desc { font-size: .85rem; color: var(--text); flex: 1; }
.app-card-footer { display: flex; align-items: center; justify-content: space-between; }
.app-card-meta { font-size: .8rem; color: var(--text-dim); }
.app-card-link { font-size: .82rem; color: var(--blue); font-weight: 600; text-decoration: none; }
.app-card-link:hover { text-decoration: underline; }
.app-card-link.disabled, .btn-sm.disabled { opacity: .4; pointer-events: none; cursor: default; }

/* App sections */
.app-section { margin-bottom: 32px; }
.app-section-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.app-section-head h3 { font-size: .95rem; font-weight: 700; color: var(--white); }
.app-section-star { color: var(--orange); display: flex; align-items: center; }
.app-section-count {
    font-size: .75rem; font-weight: 600; color: var(--text-dim);
    background: var(--surface-2); border-radius: 10px; padding: 2px 8px;
}

/* Drop zones */
.app-drop-zone { min-height: 80px; border-radius: var(--radius-lg); transition: box-shadow .15s, border-color .15s; border: 2px dashed transparent; }
.app-drop-zone.drop-zone-active { border-color: var(--blue); box-shadow: inset 0 0 20px rgba(59,130,246,.06); }
.app-drop-empty {
    grid-column: 1 / -1; text-align: center; padding: 24px;
    color: var(--text-faint); font-size: .88rem;
}

/* Drag and drop */
.app-card[draggable="true"] { cursor: grab; }
.app-card[draggable="true"]:active { cursor: grabbing; }
.app-card.dragging { opacity: .4; border-color: var(--blue); }
.app-card.drag-over { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-dim); }

/* Inactive app */
.app-card.app-inactive { opacity: .5; }
.app-card.app-inactive:hover { opacity: .7; }

/* Notification list */
.notif-list { list-style: none; }
.notif-item {
    display: flex; gap: 14px; padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(59,130,246,.04); }
.notif-dot {
    width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex-shrink: 0;
    background: var(--blue);
}
.notif-item:not(.unread) .notif-dot { background: transparent; }
.notif-body { flex: 1; }
.notif-title { font-size: .9rem; color: var(--white); font-weight: 600; }
.notif-text { font-size: .8rem; color: var(--text); margin-top: 2px; }
.notif-time { font-size: .75rem; color: var(--text-faint); white-space: nowrap; margin-top: 2px; }

/* Tables */
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
    text-align: left; padding: 10px 16px; font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint);
    border-bottom: 1px solid var(--border);
}
.dash-table td {
    padding: 12px 16px; font-size: .88rem; color: var(--text);
    border-bottom: 1px solid var(--border);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .cell-white { color: var(--white); font-weight: 600; }
.dash-table .cell-blue { color: var(--blue); }
.dash-table .cell-dim { color: var(--text-dim); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 2.4rem; color: var(--text-faint); margin-bottom: 16px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.empty-state p { font-size: .9rem; color: var(--text); max-width: 400px; margin: 0 auto; }

/* Spinner */
.spinner {
    width: 36px; height: 36px; border: 3px solid var(--border);
    border-top-color: var(--blue); border-radius: 50%;
    animation: spin .7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sign-in page */
.signin-wrap {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; padding: 40px;
    background: radial-gradient(ellipse 60% 40% at 50% 30%, rgba(59,130,246,.06), transparent);
}
.signin-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 48px 40px; text-align: center; max-width: 400px; width: 100%;
}
.signin-logo { margin-bottom: 24px; }
.signin-logo .logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: #fff; font-weight: 800;
}
.signin-card h1 {
    font-size: 1.5rem; font-weight: 800; color: var(--white);
    margin-bottom: 8px; letter-spacing: -.02em;
}
.signin-card > p {
    font-size: .9rem; color: var(--text); margin-bottom: 32px; line-height: 1.5;
}
.apple-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px 24px;
    background: #fff; color: #000; border: none; border-radius: 10px;
    font-family: var(--font); font-size: .95rem; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.apple-btn:hover { background: #e8e8e8; }
.apple-btn svg { flex-shrink: 0; }
.signin-footer {
    margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
}
.signin-footer p { font-size: .78rem; color: var(--text-faint); line-height: 1.5; }
.signin-footer a { color: var(--text-dim); }
.signin-footer a:hover { color: var(--white); }
.signin-back {
    margin-top: 20px; font-size: .85rem; color: var(--text-dim);
}
.signin-back:hover { color: var(--white); }

/* Callback page */
.callback-wrap {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 40px;
}
.callback-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 48px; text-align: center; max-width: 420px; width: 100%;
}
.callback-card h2 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin: 20px 0 8px; }
.callback-card p { font-size: .9rem; color: var(--text); }
.callback-card .error { color: var(--orange); }
.callback-card .success { color: var(--green); }

/* Legal pages */
.legal { padding: 60px 0; }
.legal h1 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.legal .updated { font-size: .85rem; color: var(--text-dim); margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin: 28px 0 12px; }
.legal p, .legal li { font-size: .95rem; color: var(--text); margin-bottom: 12px; }
.legal ul { padding-left: 24px; }

/* Radar */
.radar-filters { padding: 0 0 8px; }
.radar-filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radar-filter-row select {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--white); padding: 8px 12px; font-family: var(--font); font-size: .85rem;
}
.radar-detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.radar-detail-grid .panel-wide { grid-column: 2; }
.radar-detail-grid > .panel:first-child { grid-row: 1 / span 10; }
.radar-back { font-size: .85rem; color: var(--text-dim); }
.radar-back:hover { color: var(--white); }
.radar-text { padding: 16px 20px; }
.radar-pre {
    font-family: var(--font); font-size: .9rem; color: var(--text); line-height: 1.6;
    white-space: pre-wrap; word-break: break-word; margin: 0;
}
.cell-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .8rem; color: var(--text-dim); letter-spacing: .02em; }

/* Radar form */
.radar-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--white); padding: 10px 14px; font-family: var(--font); font-size: .9rem;
    transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 60px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-faint); }
.form-actions { display: flex; gap: 12px; padding-top: 8px; }
.btn-primary {
    background: var(--blue); color: #fff; border: none; border-radius: var(--radius);
    padding: 10px 24px; font-family: var(--font); font-size: .9rem; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.btn-primary:hover { background: #2563eb; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost {
    background: transparent; color: var(--text-dim); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 10px 24px; font-family: var(--font);
    font-size: .9rem; cursor: pointer; transition: all .15s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--text-dim); }

/* Voice recording */
.voice-record {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 16px;
}
.mic-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border);
    background: transparent; color: var(--text-dim); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s; flex-shrink: 0;
}
.mic-btn:hover { border-color: var(--blue); color: var(--blue); }
.mic-btn.recording {
    border-color: var(--red); color: var(--red);
    animation: mic-pulse 1.2s ease-in-out infinite;
}
.mic-btn.has-audio { border-color: var(--green); color: var(--green); }
@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
    50% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}
.mic-status { font-size: .85rem; color: var(--text-dim); flex: 1; }
.mic-timer { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .9rem; color: var(--red); font-weight: 600; }
.mic-clear {
    background: none; border: none; color: var(--text-faint); font-size: 1.3rem;
    cursor: pointer; padding: 0 4px; line-height: 1;
}
.mic-clear:hover { color: var(--red); }

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .hero h1 { font-size: 2.4rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .feature-grid, .pricing-grid, .steps { grid-template-columns: 1fr; }
    .dash-grid-2 { grid-template-columns: 1fr; }
    .sidebar-toggle { display: inline-flex; }
    .dash-sidebar {
        display: none; position: fixed; top: 64px; left: 0; bottom: 0; z-index: 90;
        width: 260px; box-shadow: 8px 0 32px rgba(0,0,0,.4);
    }
    .dash-sidebar.open { display: block; }
    .dash-main { padding: 24px 20px; }
    .radar-detail-grid { grid-template-columns: 1fr; }
    .radar-detail-grid .panel-wide { grid-column: 1; }
    .radar-detail-grid > .panel:first-child { grid-row: auto; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .contain, .contain-sm { padding: 0 20px; }
    .header-inner { padding: 0 20px; }
    .nav-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 12px; }
    .nav-links.open { display: flex; }
    .hero { padding: 60px 0 48px; }
    .hero h1 { font-size: 2rem; }
    .footer-inner { flex-direction: column; text-align: center; }
}
