:root {
    --bg: #f2f2f7;
    --surface: #ffffff;
    --surface-hover: #f9f9fb;
    --border: rgba(0, 0, 0, 0.06);
    --separator: rgba(0, 0, 0, 0.1);
    --text: #1c1c1e;
    --text-secondary: #3a3a3c;
    --text-muted: #8e8e93;
    --accent: #007aff;
    --accent-hover: #0066d6;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   HEADER — frosted glass
   ============================================================ */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--separator);
    position: sticky;
    top: 0;
    z-index: 50;
}

header h1 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--text);
}

.brand-flow {
    color: var(--accent);
}

header nav {
    display: flex;
    gap: 1px;
    background: rgba(0, 0, 0, 0.06);
    padding: 2px;
    border-radius: 9px;
}

.mode-btn {
    padding: 6px 18px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.mode-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0.5px 1px rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

.mode-btn:hover:not(.active) {
    color: var(--text);
}

/* ============================================================
   VIEWS
   ============================================================ */
.view {
    display: none;
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.view.active { display: block; }

#main-view {
    max-width: 1200px;
}

/* ============================================================
   DASHBOARD TOP — hero tagline + time saved badge
   ============================================================ */
.dashboard-top {
    margin-bottom: 32px;
}

.hero-tagline h2 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.25;
}

.hero-tagline p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 400;
}

/* ---- Time Saved Card ---- */
#time-saved-badge {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ---- Activity Rings ---- */
.ring-stat {
    margin-bottom: 10px;
}

.ring-stat-val {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1.1;
}

.ring-stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.stats-rings-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.stats-rings {
    width: 140px;
    height: 140px;
}

.ring-hover {
    cursor: pointer;
}

.ring-tooltip {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 5;
}

.ring-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ring-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ring-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.ring-goals-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
}

.ring-goals-btn:hover {
    text-decoration: underline;
}

.goal-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.goal-input-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.goal-field input {
    width: 70px;
    padding: 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    text-align: right;
    background: var(--surface);
    color: var(--text);
}

.goal-field select {
    padding: 6px 8px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
}

.goal-hint {
    font-size: 12px;
    color: var(--text-muted);
    min-height: 18px;
}

/* ============================================================
   DASHBOARD BODY — two-column grid
   ============================================================ */
.dashboard-body {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    grid-template-areas: "calendar main sidebar";
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

.dashboard-left {
    grid-area: calendar;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-main {
    grid-area: main;
}

.dashboard-sidebar {
    grid-area: sidebar;
}

/* ---- Recording Card ---- */
.recording-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 24px 20px;
}

.recording-card .mic-container {
    margin: 0 0 24px;
}

.recording-card .transcript-container {
    margin-bottom: 0;
}

.recording-card #transcript {
    background: var(--bg);
    box-shadow: none;
    border: 1px solid var(--border);
}

.recording-card #transcript:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

/* ============================================================
   MIC BUTTON
   ============================================================ */
.mic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 16px 0 36px;
}

.mic-btn {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.recording-card .mic-btn {
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.12), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.mic-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.15), var(--shadow-lg);
}

.mic-btn:active {
    transform: scale(0.97);
}

.mic-btn.recording {
    background: var(--danger);
    color: #fff;
    animation: pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mic-btn svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.35); }
    50% { box-shadow: 0 0 0 20px rgba(255, 59, 48, 0); }
}

.mic-status {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.mic-status.recording {
    color: var(--danger);
    font-weight: 600;
}

/* ============================================================
   TRANSCRIPT
   ============================================================ */
.transcript-container {
    margin-bottom: 36px;
}

#transcript {
    width: 100%;
    min-height: 150px;
    padding: 16px 18px;
    background: var(--surface);
    border: 0.5px solid var(--separator);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.65;
    resize: vertical;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#transcript:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

#transcript::placeholder {
    color: var(--text-muted);
}

.transcript-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.word-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 9px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: rgba(0, 122, 255, 0.06);
    color: var(--accent);
    border: 1.5px solid rgba(0, 122, 255, 0.2);
}

.btn-primary:hover {
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.35);
}

.btn-danger {
    color: var(--danger);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text);
    color: #fff;
    padding: 12px 24px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================================
   SIDEBAR — Recent Thoughts + Calendar
   ============================================================ */
.dashboard-sidebar {
    min-width: 0;
}

.sidebar-thoughts {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    border-bottom: 0.5px solid var(--separator);
}

.sidebar-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gear-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}

.gear-btn svg {
    width: 15px;
    height: 15px;
}

.gear-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.sidebar-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 2px;
}

.sidebar-toggle-btn {
    padding: 3px 10px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.sidebar-toggle-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sidebar-detail {
    overflow-y: auto;
    max-height: 560px;
    padding: 12px;
}

.sidebar-empty {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: 32px 16px;
}

.sidebar-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sidebar-date-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-panel {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cal-nav span {
    font-size: 15px;
    font-weight: 600;
}

.cal-nav-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: var(--accent);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.cal-nav-btn:hover {
    background: rgba(0, 122, 255, 0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.cal-weekday {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 0 8px;
}

.cal-day {
    position: relative;
    font-size: 13px;
    padding: 6px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
    color: var(--text);
}

.cal-day.empty {
    cursor: default;
}

.cal-day.no-entry {
    color: var(--text-muted);
    cursor: default;
}

.cal-day.has-entry:hover {
    background: rgba(0, 122, 255, 0.08);
}

.cal-day.today {
    font-weight: 700;
    color: var(--accent);
}

.cal-day.selected {
    background: var(--accent);
    color: #fff;
}

.cal-day.selected.today {
    color: #fff;
}

.cal-dot {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

.cal-day.selected .cal-dot {
    background: #fff;
}

/* ============================================================
   ARCHIVE ITEMS — topic groups, transcript cards, actions
   ============================================================ */
.archive-detail-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.archive-topic-group {
    margin-bottom: 12px;
}

.archive-topic-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.topic-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.archive-topic-count {
    font-size: 12px;
    color: var(--text-muted);
}

.archive-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid rgba(0, 122, 255, 0.25);
}

.archive-item:hover {
    background: rgba(0, 122, 255, 0.04);
}

.archive-item-selected {
    background: rgba(0, 122, 255, 0.08);
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.archive-item-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    margin-top: 2px;
    transition: all 0.15s;
}

.archive-item-selected .archive-item-check {
    background: var(--accent);
    border-color: var(--accent);
}

.archive-item-body {
    flex: 1;
    min-width: 0;
}

.archive-item-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-item-meta {
    display: flex;
    align-items: center;
}

.archive-item-time {
    font-size: 11px;
    color: var(--text-muted);
}

.topic-dot-sm {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.archive-item-topic-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 6px;
}

/* ---- Action bar (sticky bottom of sidebar) ---- */
.archive-action-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin: 8px -12px -12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 0.5px solid var(--separator);
    border-radius: 0 0 var(--radius) var(--radius);
}

.archive-action-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-right: auto;
}

/* ---- Topic Picker Dropdown ---- */
.topic-picker {
    position: fixed;
    z-index: 200;
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 160px;
    animation: fadeIn 0.1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.topic-picker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.1s;
}

.topic-picker-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.topic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   FEATURE HIGHLIGHTS — horizontal card strip
   ============================================================ */
.feature-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.highlight-card {
    text-align: center;
    padding: 18px 8px;
    background: transparent;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.highlight-card:hover {
    background: rgba(0, 122, 255, 0.03);
}

.highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.highlight-icon svg {
    width: 22px;
    height: 22px;
}

.hl-blue { background: rgba(0, 122, 255, 0.08); color: #007aff; }
.hl-amber { background: rgba(255, 149, 0, 0.08); color: #ff9500; }
.hl-green { background: rgba(52, 199, 89, 0.08); color: #34c759; }

.highlight-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.highlight-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================================
   DASHBOARD QUOTE
   ============================================================ */
.dashboard-quote {
    text-align: center;
    padding: 24px 0 8px;
}

.dashboard-quote p {
    font-size: 16px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 6px;
}

.dashboard-quote span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================================
   ERROR BANNER
   ============================================================ */
.error-banner {
    background: rgba(255, 59, 48, 0.08);
    border: 0.5px solid rgba(255, 59, 48, 0.2);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--danger);
    font-weight: 500;
}

/* ============================================================
   TOPIC MANAGEMENT MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    animation: fadeIn 0.15s ease;
}

.modal-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 420px;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 0.5px solid var(--separator);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.modal-body {
    padding: 16px 20px 20px;
    overflow-y: auto;
}

.modal-divider {
    height: 1px;
    background: var(--separator);
    margin: 16px 0;
}

.modal-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

/* ---- Topic list ---- */
.topic-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    transition: background 0.1s;
}

.topic-row:hover {
    background: var(--bg);
}

.topic-row .topic-dot {
    flex-shrink: 0;
}

.topic-row-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.topic-row-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 122, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.topic-row-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.topic-delete-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
}

.topic-delete-btn:hover {
    background: rgba(255, 59, 48, 0.08);
    color: var(--danger);
}

/* ---- Add topic form ---- */
.topic-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-field input[type="text"] {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s;
}

.form-field input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.form-field input[type="text"]::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.color-swatches {
    display: flex;
    gap: 6px;
    padding: 2px 0;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.selected {
    border-color: var(--text);
    transform: scale(1.15);
}

.modal-add-btn {
    align-self: flex-start;
    margin-top: 4px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
#about-view { max-width: 1100px; }

.about-hero {
    text-align: center;
    margin-bottom: 40px;
}

.about-hero h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.about-tagline {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: stretch;
}

.about-col-left {
    display: flex;
    flex-direction: column;
}

.about-section {
    margin-bottom: 28px;
}

.about-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

/* ---- Timeline Steps ---- */
.about-timeline {
    position: relative;
    padding-left: 28px;
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--separator);
    border-radius: 1px;
}

.about-tl-step {
    position: relative;
    padding-bottom: 24px;
}

.about-tl-step:last-child {
    padding-bottom: 0;
}

.about-tl-dot {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
    z-index: 1;
}

.about-tl-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.about-tl-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Feature Cards ---- */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-feature {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.about-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-feature-icon svg {
    width: 18px;
    height: 18px;
}

.about-feature-body {
    flex: 1;
}

.about-feature-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.about-feature-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---- Release Notes ---- */
.about-releases {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.about-release-version {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.about-release-date {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 8px;
}

.about-releases ul {
    list-style: none;
    padding: 0;
}

.about-releases li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 5px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.about-releases li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---- Built By ---- */
.about-col-left .about-section:has(.about-builder-card) {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-builder-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-builder-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.about-builder-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.about-builder-name a {
    color: var(--accent);
    text-decoration: none;
}

.about-builder-name a:hover {
    text-decoration: underline;
}

.about-builder-role {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
    margin-bottom: 12px;
}

.about-builder-quote {
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

/* ---- Footer ---- */
.about-footer {
    text-align: center;
    padding: 8px 0 0;
}

.about-footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1060px) {
    .dashboard-body {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "main main"
            "calendar sidebar";
    }
    .sidebar-detail {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .dashboard-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar"
            "calendar";
    }
    .feature-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    header { flex-direction: column; gap: 12px; }
    .view { padding: 24px 16px 40px; }
    .dashboard-top {
        margin-bottom: 24px;
    }
    .recording-card {
        padding: 24px 16px 16px;
    }
    .about-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
}
