/* ── Reset & Base ── */
* { box-sizing: border-box; }
body { margin: 0; padding: 0; overflow-x: hidden; }

/* ── Dock (top nav) ── */
.dock {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    background: var(--pico-card-background-color);
    border-bottom: 1px solid var(--pico-muted-border-color);
    height: 3.2rem;
    gap: 1rem;
}

.dock-brand {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--pico-color);
}

.dock-center {
    flex: 1;
    max-width: 480px;
}

.dock-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    color: var(--pico-muted-color);
    cursor: pointer;
    font-size: 0.8rem;
    transition: border-color 0.15s;
}
.dock-search:hover { border-color: var(--pico-primary); }

.search-icon {
    font-size: 0.7rem;
    opacity: 0.5;
    font-family: monospace;
    background: rgba(255,255,255,0.06);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.search-placeholder { opacity: 0.4; }

.dock-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dock-icon {
    background: none;
    border: none;
    color: var(--pico-muted-color);
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.dock-icon:hover {
    color: var(--pico-color);
    background: rgba(255,255,255,0.05);
}

.health-score {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    background: rgba(76,175,80,0.15);
    color: #4caf50;
}

/* ── Main content ── */
.main-content {
    padding: 4.5rem 1.5rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Hero ── */
.hero { margin-bottom: 1.5rem; }

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.summary {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.hero-actions { margin-top: 0.5rem; }

button.btn-scan,
button.action-btn,
button.log-btn,
button.setup-btn { width: auto; }

.btn-scan {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    color: var(--pico-color);
    cursor: pointer;
    transition: background 0.15s;
}
.btn-scan:hover { background: rgba(255,255,255,0.08); }

/* ── System bar ── */
.main-content .system-bar {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.system-bar .stat {
    display: inline-flex;
    gap: 0.4rem;
    align-items: baseline;
    font-size: 0.8rem;
}

.stat-label {
    opacity: 0.4;
    text-transform: lowercase;
}

.stat-value { font-weight: 600; }

/* ── App grid ── */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

/* ── App card (Pico neutralization + our styles) ── */
.app-card {
    all: unset;
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1rem;
    margin: 0;
    border-radius: 10px;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    transition: border-color 0.15s;
    box-sizing: border-box;
    cursor: default;
}
.app-card:hover { border-color: rgba(255,255,255,0.12); }

.app-card[data-status="errored"] {
    border-left: 3px solid #ff6b6b;
}

.app-card .app-header {
    all: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.app-name {
    font-weight: 600;
    font-size: 1rem;
}

.runtime-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255,255,255,0.05);
}

.new-badge {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background: #4caf50;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Status ── */
.app-status {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.status-running { color: #4caf50; }
.status-errored { color: #ff6b6b; }
.status-stopped { color: #666; }
.status-unknown { color: #ff9800; }

/* ── Meta ── */
.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.2rem;
}

.app-port {
    font-family: monospace;
    font-size: 0.8rem;
    opacity: 0.5;
}

.app-domain {
    font-size: 0.75rem;
    color: var(--pico-primary);
    text-decoration: none;
}
.app-domain:hover { text-decoration: underline; }

.app-command {
    font-size: 0.7rem;
    font-family: monospace;
    opacity: 0.3;
    margin: 0.2rem 0 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Actions ── */
.app-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.action-btn {
    width: auto;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 5px;
    background: none;
    color: var(--pico-muted-color);
    cursor: pointer;
    transition: all 0.15s;
}

.action-btn:hover {
    color: var(--pico-color);
    background: rgba(255,255,255,0.05);
}

.action-start:hover { border-color: #4caf50; color: #4caf50; }
.action-restart:hover { border-color: #ff9800; color: #ff9800; }
.action-stop:hover { border-color: #ff6b6b; color: #ff6b6b; }
.action-logs:hover { border-color: var(--pico-primary); color: var(--pico-primary); }

/* ── Log panel (slide-up) ── */
.log-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    height: 0;
    background: var(--pico-card-background-color);
    border-top: 1px solid var(--pico-muted-border-color);
    transition: height 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.log-panel.open {
    height: 45vh;
}

.log-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
    flex-shrink: 0;
}

.log-panel-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.log-panel-actions {
    display: flex;
    gap: 0.3rem;
}

.log-btn {
    background: none;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 5px;
    color: var(--pico-muted-color);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    transition: color 0.15s;
}
.log-btn:hover { color: var(--pico-color); }

.log-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--pico-muted-color);
}

/* ── Spotlight ── */
.spotlight-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    padding-top: 15vh;
}

.spotlight-overlay.open {
    display: flex;
}

.spotlight {
    width: 100%;
    max-width: 560px;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.spotlight input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--pico-color);
    font-size: 1rem;
    outline: none;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

#spotlight-results {
    overflow-y: auto;
    flex: 1;
}

.search-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-result { border-bottom: 1px solid rgba(255,255,255,0.03); }

.search-result-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.2rem;
    text-decoration: none;
    color: var(--pico-color);
    transition: background 0.1s;
}
.search-result-link:hover { background: rgba(255,255,255,0.04); }

.search-result-name { font-weight: 600; flex: 1; }
.search-result-status { font-size: 0.75rem; font-weight: 600; }
.search-result-runtime { font-size: 0.65rem; opacity: 0.4; text-transform: uppercase; }
.search-result-port { font-family: monospace; font-size: 0.75rem; opacity: 0.4; }

.search-empty {
    padding: 1.5rem;
    text-align: center;
    opacity: 0.4;
    font-size: 0.85rem;
}

/* ── Notification panel ── */
.notification-panel {
    position: fixed;
    top: 3.2rem;
    right: 0;
    width: 360px;
    max-height: calc(100vh - 3.2rem);
    background: var(--pico-card-background-color);
    border-left: 1px solid var(--pico-muted-border-color);
    z-index: 95;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.notification-panel.open {
    transform: translateX(0);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.notification-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--pico-muted-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
}

.notification-tabs {
    display: flex;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.tab {
    flex: 1;
    padding: 0.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--pico-muted-color);
    cursor: pointer;
    font-size: 0.75rem;
    text-transform: lowercase;
    transition: all 0.15s;
}
.tab.active {
    color: var(--pico-color);
    border-bottom-color: var(--pico-primary);
}
.tab:hover { color: var(--pico-color); }

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.notification-empty {
    padding: 2rem 1rem;
    text-align: center;
    opacity: 0.4;
    font-size: 0.85rem;
}

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 300;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    animation: toast-in 0.3s ease, toast-out 0.3s ease 3s forwards;
}

.toast-error {
    background: rgba(255,107,107,0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,0.3);
}

.toast-success {
    background: rgba(76,175,80,0.15);
    color: #4caf50;
    border: 1px solid rgba(76,175,80,0.3);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ── Empty state ── */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0.4;
    font-size: 0.9rem;
}

/* ── Security page ── */
.score-display {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0.5rem 0;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-green { color: #4caf50; }
.score-yellow { color: #ff9800; }
.score-orange { color: #ff6b00; }
.score-red { color: #ff6b6b; }

.score-label {
    font-size: 1rem;
    opacity: 0.6;
}

.finding-summary {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.finding-count {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

.finding-count.critical { background: rgba(255,107,107,0.15); color: #ff6b6b; }
.finding-count.warning { background: rgba(255,152,0,0.15); color: #ff9800; }
.finding-count.info { background: rgba(100,181,246,0.15); color: #64b5f6; }

.all-clear {
    font-size: 0.85rem;
    color: #4caf50;
}

.findings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.finding-card {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
}

.finding-critical { border-left: 3px solid #ff6b6b; }
.finding-warning { border-left: 3px solid #ff9800; }
.finding-info { border-left: 3px solid #64b5f6; }

.finding-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.finding-severity {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.finding-category {
    font-size: 0.65rem;
    opacity: 0.4;
    text-transform: uppercase;
}

.finding-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.finding-desc {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0 0 0.3rem;
}

.finding-fix {
    font-size: 0.75rem;
    font-family: monospace;
    opacity: 0.5;
    margin: 0;
}

/* ── Diagnosis ── */
.diagnosis-panel {
    padding: 0.75rem;
}

.diagnosis-summary {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.diagnosis-match {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.diagnosis-severity {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 0.3rem;
}

.severity-critical { color: #ff6b6b; }
.severity-warning { color: #ff9800; }
.severity-info { color: #64b5f6; }

.diagnosis-match p { font-size: 0.8rem; opacity: 0.7; margin: 0.2rem 0; }
.diagnosis-fix { color: #4caf50 !important; opacity: 1 !important; }

.diagnosis-line {
    font-size: 0.7rem;
    opacity: 0.4;
    margin: 0.3rem 0 0;
    overflow-x: auto;
    white-space: pre-wrap;
}

.diagnosis-clear {
    font-size: 0.85rem;
    color: #4caf50;
}

.diagnosis-error {
    font-size: 0.85rem;
    color: #ff6b6b;
}

.diagnosis-correlation {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pico-muted-border-color);
}

.diagnosis-correlation strong { font-size: 0.85rem; }
.diagnosis-correlation p { font-size: 0.8rem; opacity: 0.7; margin: 0.2rem 0; }

.health-score-link {
    text-decoration: none;
    color: inherit;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ── Notification items ── */
.notification-item {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.notification-item[data-unread="true"] {
    background: rgba(255,255,255,0.02);
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.notification-title {
    font-weight: 600;
    font-size: 0.8rem;
}

.notification-time {
    font-size: 0.65rem;
    opacity: 0.4;
}

.notification-body {
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0 0 0.3rem;
}

.urgency-critical .notification-title { color: #ff6b6b; }
.urgency-urgent .notification-title { color: #ff9800; }
.urgency-warning .notification-title { color: #ffd54f; }

.badge {
    background: #ff6b6b;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 8px;
    position: absolute;
    top: -4px;
    right: -4px;
}

.notification-bell { position: relative; }

/* ── Settings ── */
.settings-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.settings-section h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ── Backup page ── */
.backup-config {
    margin-bottom: 2rem;
}

.backup-config h2, .action-history h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.backup-field {
    margin-bottom: 1rem;
}

.backup-field label {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.backup-field small {
    font-size: 0.7rem;
    opacity: 0.4;
    display: block;
    margin-top: 0.2rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    font-size: 0.8rem;
}

.history-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.history-hash {
    font-family: monospace;
    font-size: 0.7rem;
    opacity: 0.4;
    flex-shrink: 0;
}

.history-msg {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.history-time {
    font-size: 0.7rem;
    opacity: 0.4;
}

.history-empty {
    padding: 1.5rem;
    text-align: center;
    opacity: 0.4;
    font-size: 0.85rem;
}

/* ── Setup / Login ── */
.setup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.setup-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 12px;
}

.setup-brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.setup-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.setup-desc {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.setup-error {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.setup-card input {
    width: 100%;
    margin-bottom: 1rem;
}

.setup-btn {
    width: 100%;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    background: var(--pico-primary);
    color: var(--pico-primary-inverse);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.setup-checklist {
    margin: 1rem 0 1.5rem;
}

.setup-check {
    font-size: 0.85rem;
    padding: 0.3rem 0;
    opacity: 0.7;
}

/* ── Intelligence ── */
.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.intel-card {
    padding: 1rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 10px;
}

.intel-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.intel-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.intel-detail {
    font-size: 0.8rem;
    opacity: 0.6;
}

.intel-card-good { border-left: 3px solid #4caf50; }
.intel-card-warn { border-left: 3px solid #ff9800; }

.dep-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.85rem;
}

.dep-from { font-weight: 600; }
.dep-arrow { opacity: 0.3; }
.dep-to { font-weight: 600; color: var(--pico-primary); }
.dep-detail { opacity: 0.4; flex: 1; font-size: 0.75rem; }

.digest-preview {
    font-size: 0.8rem;
    line-height: 1.6;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 10px;
    padding: 1.5rem;
    white-space: pre-wrap;
}

/* ── Simple mode ── */
.simple-mode { max-width: 640px; margin: 0 auto; }

.simple-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.simple-score {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.simple-hero h1 {
    font-size: 1.2rem;
    font-weight: 500;
}

.simple-detail {
    font-size: 0.85rem;
    opacity: 0.5;
}

.simple-actions h2, .simple-apps h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.simple-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.simple-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--pico-color);
    transition: border-color 0.15s;
}
.simple-card:hover { border-color: var(--pico-primary); }
.simple-card-urgent { border-left: 3px solid #ff6b6b; }

.simple-card-icon { font-size: 1.5rem; }
.simple-card-title { font-weight: 600; font-size: 0.9rem; }
.simple-card-desc { font-size: 0.75rem; opacity: 0.5; }

.simple-app-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.simple-app-name { font-weight: 600; font-size: 0.9rem; }
.simple-app-status { font-size: 0.8rem; display: block; }

.simple-flow-card {
    padding: 1.25rem;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.simple-flow-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.simple-flow-card p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.simple-flow-alt { margin-top: 0.5rem; }

.simple-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.simple-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.simple-stat-label { opacity: 0.5; }
.simple-stat-value { font-weight: 600; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .dock-center { display: none; }
    .main-content { padding: 4rem 1rem 1rem; }

    .apps-grid { grid-template-columns: 1fr; }

    .hero h1 { font-size: 1.2rem; }

    .system-bar { flex-wrap: wrap; gap: 1rem; }

    .notification-panel { width: 100%; }

    .spotlight { margin: 0 1rem; }

    .log-panel.open { height: 60vh; }
}

@media (max-width: 480px) {
    .dock { padding: 0.5rem 0.75rem; }
    .main-content { padding: 4rem 0.75rem 1rem; }
}
