:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-2: #475569;
    --ink-3: #94a3b8;
    --line: #e2e8f0;
    --line-2: #eef2f7;
    --accent: #0d9488;          /* vibrant teal */
    --accent-2: #2563eb;        /* electric blue */
    --accent-3: #ec4899;        /* pink */
    --accent-4: #f59e0b;        /* amber */
    --accent-soft: rgba(13,148,136,0.10);
    --gold: #f59e0b;
    --gold-soft: #fef3c7;
    --danger: #ef4444;
    --radius: 14px;
    --radius-sm: 8px;
    --grad-hero: linear-gradient(135deg, #0d9488 0%, #2563eb 55%, #ec4899 100%);
    --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; color: var(--ink); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  body {
    min-height: 100vh;
    background: #ffffff;
  }
  /* Slow ambient drift */
  @keyframes ambientFloat {
    0%, 100% { transform: translate3d(0,0,0); }
    50%      { transform: translate3d(0,-12px,0); }
  }
  .ambient-orb {
    position: fixed; pointer-events: none; z-index: 0;
    width: 560px; height: 560px; border-radius: 50%;
    filter: blur(90px); opacity: 0;
    display: none;
  }
  .ambient-orb.o1 { top: -160px; left: -140px; background: radial-gradient(circle, rgba(13,148,136,0.85), transparent 70%); }
  .ambient-orb.o2 { bottom: -200px; right: -140px; background: radial-gradient(circle, rgba(37,99,235,0.70), transparent 70%); animation-delay: -6s; }
  .ambient-orb.o3 { top: 25%; left: 38%; width: 460px; height: 460px; background: radial-gradient(circle, rgba(236,72,153,0.55), transparent 70%); animation-delay: -3s; }
  .ambient-orb.o4 { top: 55%; right: 28%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(245,158,11,0.55), transparent 70%); animation-delay: -9s; opacity: 0.6; }
  .app { position: relative; z-index: 1; }

  /* ============ Browser chrome ============ */
  .chrome {
    background: linear-gradient(135deg, #e6fffb 0%, #e0ecff 50%, #ffe4f1 100%);
    padding: 10px 16px 0 16px;
    border-bottom: 1px solid rgba(37,99,235,0.12);
  }
  .tabs-row { display: flex; align-items: center; gap: 4px; }
  .win-controls { display: flex; gap: 6px; margin-right: 12px; }
  .win-controls span { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
  .win-controls .c1 { background: #ed6a5e; }
  .win-controls .c2 { background: #f4bf4f; }
  .win-controls .c3 { background: #61c554; }
  .tab {
    background: rgba(255,255,255,0.7);
    color: var(--ink-2);
    padding: 8px 16px 9px 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-size: 12.5px;
    font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    max-width: 240px;
    border: 1px solid rgba(37,99,235,0.10);
    border-bottom: none;
  }
  .tab.active {
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    border-color: rgba(37,99,235,0.18);
    box-shadow: 0 -2px 8px -2px rgba(37,99,235,0.10);
  }
  .tab .close { color: var(--ink-3); font-size: 13px; line-height: 1; cursor: pointer; }
  .tab .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); display: inline-block; }
  .url-row { display: flex; align-items: center; gap: 10px; padding: 8px 0 10px 0; }
  .url-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: #6c6a62; font-size: 14px; }
  .url-bar {
    flex: 1; height: 32px; border-radius: 16px; background: #ecebe3;
    display: flex; align-items: center; padding: 0 14px; font-size: 13px; color: #4a4a45;
    border: 1px solid #d9d6cc;
  }
  .url-bar .lock { margin-right: 8px; color: #6c6a62; }

  /* ============ App layout ============ */
  .page {
    padding: clamp(10px, 2vw, 22px);
    min-height: 100vh;
    position: relative; z-index: 1;
  }
  .app {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    min-height: calc(100vh - 44px);
    gap: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.6) inset,
      0 30px 80px -30px rgba(15,23,42,0.25),
      0 12px 40px -16px rgba(37,99,235,0.18);
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.40);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    backdrop-filter: blur(28px) saturate(160%);
  }
  @media (max-width: 900px) {
    .app { grid-template-columns: 1fr; min-height: auto; }
    .sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.5); }
    .content { min-height: auto !important; height: auto !important; }
    .activity-bottom { margin-top: 24px !important; }
  }

  /* ---- Sidebar ---- */
  .sidebar {
    padding: clamp(20px, 4vw, 36px) clamp(18px, 3vw, 32px) 28px;
    border-right: 1px solid rgba(15,23,42,0.06);
    display: flex; flex-direction: column;
    background: #f4f7fb;
    position: relative;
  }
  .sidebar::before {
    content: ''; position: absolute; inset: 0;
    background: none;
    pointer-events: none;
  }
  .sidebar > * { position: relative; z-index: 1; }
  .brand { display: flex; align-items: center; gap: 14px; }
  .brand-mark {
    width: 60px; height: 60px; border-radius: 16px;
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: heroShift 8s ease-in-out infinite;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff;
    position: relative;
    box-shadow:
      inset 0 0 0 2px rgba(255,255,255,0.25),
      0 12px 32px -6px rgba(37,99,235,0.50),
      0 6px 20px -4px rgba(236,72,153,0.40);
  }
  @keyframes heroShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
  }
  .brand-mark::after {
    content: ''; position: absolute; inset: -16px; border-radius: 24px;
    background: radial-gradient(circle, rgba(37,99,235,0.35), transparent 65%);
    z-index: -1; filter: blur(10px);
  }
  .brand-mark svg { width: 30px; height: 30px; }
  .brand-text { line-height: 1.1; }
  .brand-title {
    font-family: 'Newsreader', serif;
    font-size: 26px; font-weight: 600; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 10px;
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: heroShift 8s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .brand-title .badge { -webkit-text-fill-color: #fff; }
  .brand-title .badge {
    font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 600;
    background: var(--grad-warm); color: #ffffff;
    border: none;
    padding: 3px 10px; border-radius: 999px;
    letter-spacing: 0.05em; text-transform: uppercase;
    box-shadow: 0 4px 12px -4px rgba(236,72,153,0.5);
  }
  .brand-sub { font-size: 12px; color: var(--ink-2); margin-top: 4px; font-style: italic; font-family: 'Newsreader', serif; }

  /* Tabs (Prototype / Slide deck / From template / Other) */
  /* Outlook-style nav */
  .outlook-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 26px;
    padding: 6px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 14px;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.7) inset,
      0 8px 24px -12px rgba(15,23,42,0.15);
  }
  .outlook-nav button {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    background: none; border: none;
    padding: 11px 14px;
    font: inherit; font-size: 13px; font-weight: 500;
    color: var(--ink-2);
    text-align: left;
    border-radius: 9px;
    cursor: pointer;
    position: relative;
    transition: all .18s;
  }
  .outlook-nav button .nav-icon {
    width: 28px; height: 28px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px;
    background: rgba(15,23,42,0.05);
    color: var(--ink-2);
    transition: all .18s;
  }
  .outlook-nav button .nav-icon svg { width: 16px; height: 16px; }
  .outlook-nav button .nav-label { flex: 1; min-width: 0; letter-spacing: 0.01em; }
  .outlook-nav button .nav-chev {
    color: var(--ink-3); font-size: 14px;
    opacity: 0.55;
    transition: opacity .18s, transform .25s cubic-bezier(.4,0,.2,1), color .18s;
  }
  .outlook-nav button:hover .nav-chev { opacity: 1; color: var(--accent); }
  .outlook-nav button:hover {
    background: linear-gradient(135deg, rgba(13,148,136,0.10), rgba(37,99,235,0.08));
    color: var(--ink);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.7) inset,
      0 4px 14px -6px rgba(37,99,235,0.20);
    transform: translateX(2px);
  }
  .outlook-nav button:hover .nav-icon {
    background: var(--grad-hero);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: 0 4px 10px -3px rgba(37,99,235,0.35);
  }
  .outlook-nav button.on {
    color: #ffffff;
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: heroShift 8s ease-in-out infinite;
    box-shadow:
      0 8px 20px -6px rgba(37,99,235,0.45),
      0 4px 12px -3px rgba(236,72,153,0.30),
      inset 0 1px 0 rgba(255,255,255,0.35);
    font-weight: 600;
  }
  .outlook-nav button.on .nav-icon {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  }
  .outlook-nav button.on .nav-chev { opacity: 1; transform: rotate(90deg); color: rgba(255,255,255,0.85); }

  /* Slide-out submenu inside the nav */
  .outlook-nav .nav-item { position: relative; }
  .outlook-nav .nav-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s cubic-bezier(.4,0,.2,1), margin .25s, padding .25s;
  }
  .outlook-nav .nav-item.expanded .nav-sub {
    max-height: 720px;
    margin: 4px 0 8px 0;
    padding: 6px 4px 6px 4px;
  }
  .outlook-nav .nav-sub li {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px 9px 50px;
    font-size: 12.5px; color: var(--ink);
    cursor: pointer;
    border-radius: 8px;
    margin: 1px 4px;
    position: relative;
    transition: background .15s, color .15s, transform .15s;
    transform: translateX(-8px);
    opacity: 0;
  }
  .outlook-nav .nav-item.expanded .nav-sub li {
    transform: translateX(0);
    opacity: 1;
    transition: transform .35s, opacity .35s, background .15s, color .15s;
  }
  /* Staggered entrance */
  .outlook-nav .nav-item.expanded .nav-sub li:nth-child(1)  { transition-delay: .03s; }
  .outlook-nav .nav-item.expanded .nav-sub li:nth-child(2)  { transition-delay: .06s; }
  .outlook-nav .nav-item.expanded .nav-sub li:nth-child(3)  { transition-delay: .09s; }
  .outlook-nav .nav-item.expanded .nav-sub li:nth-child(4)  { transition-delay: .12s; }
  .outlook-nav .nav-item.expanded .nav-sub li:nth-child(5)  { transition-delay: .15s; }
  .outlook-nav .nav-item.expanded .nav-sub li:nth-child(6)  { transition-delay: .18s; }
  .outlook-nav .nav-item.expanded .nav-sub li:nth-child(7)  { transition-delay: .21s; }
  .outlook-nav .nav-item.expanded .nav-sub li:nth-child(8)  { transition-delay: .24s; }
  .outlook-nav .nav-item.expanded .nav-sub li:nth-child(9)  { transition-delay: .27s; }
  .outlook-nav .nav-item.expanded .nav-sub li:nth-child(10) { transition-delay: .30s; }

  .outlook-nav .nav-sub li .sub-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .outlook-nav .nav-sub li .sub-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(15,23,42,0.06);
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    transition: all .15s;
  }
  .outlook-nav .nav-sub li:hover .sub-count {
    background: var(--grad-hero);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: 0 4px 10px -3px rgba(37,99,235,0.30);
  }
  .outlook-nav .nav-sub li.active .sub-count {
    background: var(--grad-hero);
    background-size: 200% 200%;
    color: #ffffff;
    box-shadow: 0 4px 10px -3px rgba(37,99,235,0.30);
  }
  .outlook-nav .nav-sub li::before {
    content: ''; position: absolute; left: 28px; top: 50%;
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(15,23,42,0.20);
    transform: translateY(-50%);
    transition: all .15s;
  }
  .outlook-nav .nav-sub li:hover {
    background: linear-gradient(90deg, rgba(13,148,136,0.10), rgba(37,99,235,0.06));
    color: var(--accent);
  }
  .outlook-nav .nav-sub li:hover::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.18);
  }
  .outlook-nav .nav-sub li.active {
    background: linear-gradient(90deg, rgba(13,148,136,0.14), rgba(37,99,235,0.10) 60%, transparent);
    color: var(--accent);
    font-weight: 600;
  }
  .outlook-nav .nav-sub li.active::before {
    background: var(--grad-hero);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.20);
  }
  /* Spine for nested visual cue */
  .outlook-nav .nav-item.expanded .nav-sub::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 6px; bottom: 8px;
    width: 1.5px;
    background: linear-gradient(180deg, rgba(13,148,136,0.30), rgba(37,99,235,0.10) 60%, transparent);
    border-radius: 2px;
  }

  /* Form card */
  .form-card {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius);
    padding: 22px;
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.8) inset,
      0 12px 40px -16px rgba(37,99,235,0.20),
      0 4px 16px -8px rgba(236,72,153,0.12);
    position: relative;
    overflow: hidden;
  }
  .form-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: heroShift 8s ease-in-out infinite;
  }
  .form-title { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; margin: 0 0 18px 0; }

  .field { margin-bottom: 18px; }
  .field label { display:block; font-size: 11px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
  .input, .select {
    width: 100%; height: 40px; border: 1px solid rgba(226,232,240,0.9);
    background: rgba(255,255,255,0.7); border-radius: var(--radius-sm);
    padding: 0 12px; font: inherit; font-size: 13px; color: var(--ink);
    outline: none;
    transition: all .15s;
  }
  .input::placeholder { color: var(--ink-3); }
  .input:focus, .select:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13,148,136,0.15), 0 4px 12px -4px rgba(13,148,136,0.20);
  }

  .select {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
    padding: 0 10px 0 10px;
  }
  .select .sw { width: 28px; height: 28px; border-radius: 7px; background: var(--grad-hero); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 10px -3px rgba(37,99,235,0.4); }
  .select .meta { display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
  .select .meta strong { font-size: 13px; font-weight: 500; }
  .select .meta span { font-size: 11px; color: var(--ink-3); }
  .select .caret { color: var(--ink-3); font-size: 11px; }

  .toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px;
    background: #fafaf6;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }
  .toggle-text strong { font-size: 13px; font-weight: 500; display: block; }
  .toggle-text span { font-size: 11px; color: var(--ink-3); }
  .switch {
    width: 34px; height: 20px; background: #d6d3c8; border-radius: 999px; position: relative; cursor: pointer; transition: background .15s;
  }
  .switch::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    transition: left .15s;
  }
  .switch.on { background: var(--grad-hero); background-size: 200% 200%; animation: heroShift 8s ease-in-out infinite; }
  .switch.on::after { left: 16px; }

  .primary-btn {
    margin-top: 6px;
    width: 100%; height: 46px;
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: heroShift 8s ease-in-out infinite;
    color: #ffffff;
    border: none; border-radius: var(--radius-sm);
    font: inherit; font-size: 13.5px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer;
    letter-spacing: 0.02em;
    box-shadow:
      0 12px 28px -8px rgba(37,99,235,0.45),
      0 6px 16px -4px rgba(236,72,153,0.30),
      inset 0 1px 0 rgba(255,255,255,0.3);
    transition: transform .15s, box-shadow .15s;
  }
  .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow:
      0 18px 36px -8px rgba(37,99,235,0.55),
      0 8px 20px -4px rgba(236,72,153,0.40),
      inset 0 1px 0 rgba(255,255,255,0.4);
  }
  .primary-btn .plus { font-weight: 400; }

  .privacy-note {
    margin-top: 16px;
    font-size: 11px; color: var(--ink-3); text-align: center;
  }

  .sidebar-footer {
    margin-top: auto; padding-top: 28px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .pill {
    display: inline-flex; align-items: center; gap: 10px;
    height: 38px;
    padding: 0 14px 0 6px;
    background: linear-gradient(135deg, rgba(13,148,136,0.14), rgba(37,99,235,0.12));
    border: 1px solid rgba(37,99,235,0.18);
    border-radius: 999px;
    font-size: 12.5px; color: var(--ink);
    font-weight: 500;
    width: max-content;
    box-shadow: 0 4px 14px -6px rgba(37,99,235,0.25);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .pill::before {
    content: ''; width: 26px; height: 26px; border-radius: 50%;
    background: var(--grad-warm);
    box-shadow: 0 2px 8px -2px rgba(236,72,153,0.4);
    flex-shrink: 0;
  }
  .pill svg { width: 12px; height: 12px; }
  .pill.muted { background: transparent; }

  /* ---- Content ---- */
  .content {
    padding: clamp(20px, 4vw, 36px) clamp(20px, 4vw, 40px);
    display: flex; flex-direction: column;
    min-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
  }
  .activity-bottom { margin-top: auto; margin-bottom: 0; }

  /* --- Menu list (left pane) --- */
  .menu-list {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius);
    overflow: hidden;
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.8) inset,
      0 12px 40px -16px rgba(37,99,235,0.20);
    position: relative;
  }
  .menu-list::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: heroShift 8s ease-in-out infinite;
  }
  .menu-list .menu-title {
    padding: 14px 18px 10px 18px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-3);
    border-bottom: 1px solid var(--line-2);
  }
  .menu-list ul { list-style: none; margin: 0; padding: 6px 0; }
  .menu-list li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px;
    font-size: 13px; color: var(--ink);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background .12s, border-color .12s;
  }
  .menu-list li:hover { background: linear-gradient(90deg, rgba(13,148,136,0.10), rgba(37,99,235,0.06)); border-left-color: var(--accent); }
  .menu-list li.active {
    background: linear-gradient(90deg, rgba(13,148,136,0.14), rgba(37,99,235,0.10) 60%, transparent);
    border-left-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
  }
  .menu-list li .mi-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #cfcdc0; flex-shrink: 0;
  }
  .menu-list li:hover .mi-dot, .menu-list li.active .mi-dot {
    background: var(--grad-hero);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.20);
  }
  .menu-list li .mi-caret { margin-left: auto; color: var(--ink-3); font-size: 11px; }
  .content-tabs {
    display: flex; gap: 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0;
  }
  .ct {
    font-size: 14px; padding: 0 0 14px 0;
    color: var(--ink-3); cursor: pointer;
    border-bottom: 2px solid transparent;
    transform: translateY(1px);
    font-weight: 500;
  }
  .ct.on { color: var(--ink); border-bottom-color: var(--accent); }

  .toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 26px;
  }
  .filter-group {
    display: inline-flex; gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
  }
  .filter-group button {
    border: none; background: transparent; font: inherit; font-size: 13px;
    padding: 7px 18px; border-radius: 999px; cursor: pointer; color: var(--ink-2);
  }
  .filter-group button.on { background: var(--ink); color: #f3ead8; }

  .search-wrap { position: relative; }
  .search-wrap input {
    width: clamp(160px, 20vw, 220px);
    max-width: 100%;
    height: 38px; border-radius: 999px;
    border: 1px solid rgba(228, 226, 219, 0.8);
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0 14px 0 36px; font: inherit; font-size: 13px;
    outline: none;
    transition: box-shadow .2s, border-color .2s;
  }
  .search-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(27,94,79,0.08), 0 0 24px rgba(27,94,79,0.10);
  }
  .search-wrap input:focus { border-color: var(--accent); }
  .search-wrap .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }

  /* Log off button */
  .logoff-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px;
    padding: 0 16px 0 14px;
    border: 1px solid rgba(239,68,68,0.25);
    background: rgba(255,255,255,0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #b91c1c;
    border-radius: 999px;
    font: inherit; font-size: 12.5px; font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    letter-spacing: 0.02em;
  }
  .logoff-btn svg { width: 15px; height: 15px; }
  .logoff-btn:hover {
    background: linear-gradient(135deg, #ef4444, #ec4899);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 22px -8px rgba(239,68,68,0.45);
    transform: translateY(-1px);
  }

  /* Date & time pill */
  .dt-pill {
    display: inline-flex; align-items: center; gap: 10px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(37,99,235,0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 12.5px;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px -8px rgba(37,99,235,0.20);
  }
  .dt-pill svg { width: 15px; height: 15px; color: var(--accent); }
  .dt-pill .dt-date { color: var(--ink); }
  .dt-pill .dt-sep { color: var(--ink-3); opacity: 0.55; }
  .dt-pill .dt-time { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }

  /* Soft dashboard */
  .dash {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.6vw, 20px);
    margin-top: 26px;
  }
  @media (max-width: 960px) {
    .dash { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 560px) {
    .dash { grid-template-columns: 1fr; }
  }
  .dash-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.7);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.8) inset,
      0 14px 36px -18px rgba(15,23,42,0.18);
    transition: transform .2s, box-shadow .2s;
  }
  .dash-card { cursor: default; }
  .dash-card[data-card-tab] { cursor: pointer; }
  .dash-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .dash-card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.8) inset,
      0 22px 48px -20px rgba(37,99,235,0.30),
      0 8px 22px -10px rgba(236,72,153,0.20);
  }
  .dash-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  }
  .dash-card.c1::before { background: linear-gradient(90deg, #0d9488, #2563eb); }
  .dash-card.c2::before { background: linear-gradient(90deg, #2563eb, #ec4899); }
  .dash-card.c3::before { background: linear-gradient(90deg, #ec4899, #f59e0b); }
  .dash-card.c4::before { background: linear-gradient(90deg, #f59e0b, #84cc16); }
  .dash-card.c5::before { background: linear-gradient(90deg, #10b981, #0d9488); }
  .dash-card.c6::before { background: linear-gradient(90deg, #6366f1, #a855f7); }
  .dash-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
  }
  .dash-ic {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(15,23,42,0.25);
  }
  .dash-ic svg { width: 20px; height: 20px; }
  .dash-card.c1 .dash-ic { background: linear-gradient(135deg, #0d9488, #2563eb); }
  .dash-card.c2 .dash-ic { background: linear-gradient(135deg, #2563eb, #ec4899); }
  .dash-card.c3 .dash-ic { background: linear-gradient(135deg, #ec4899, #f59e0b); }
  .dash-card.c4 .dash-ic { background: linear-gradient(135deg, #f59e0b, #84cc16); }
  .dash-card.c5 .dash-ic { background: linear-gradient(135deg, #10b981, #0d9488); }
  .dash-card.c6 .dash-ic { background: linear-gradient(135deg, #6366f1, #a855f7); }
  .dash-label {
    font-size: 12px; font-weight: 600;
    color: var(--ink-2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .dash-num {
    font-family: 'Newsreader', serif;
    font-size: clamp(34px, 4.2vw, 44px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .dash-sub {
    margin-top: 8px;
    font-size: 12px;
    color: var(--ink-3);
    display: flex; align-items: center; gap: 6px;
  }
  .dash-sub .delta {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
  }
  .dash-sub .delta.up { background: rgba(13,148,136,0.12); color: #0d9488; }
  .dash-sub .delta.dn { background: rgba(239,68,68,0.10); color: #dc2626; }
  .dash-spark {
    margin-top: 14px;
    height: 32px;
    width: 100%;
    opacity: 0.85;
  }

  /* Section heading */
  .section-h {
    margin-top: 36px;
    display: flex; align-items: baseline; gap: 12px;
  }
  .section-h h3 { margin: 0; font-family: 'Newsreader', serif; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
  .section-h span { font-size: 12px; color: var(--ink-3); }

  /* Cards grid */
  .grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 18px;
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    cursor: pointer;
  }
  .card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -14px rgba(20,24,31,0.18); border-color: #d4d1c5; }
  .thumb {
    aspect-ratio: 16 / 10;
    background: var(--accent-soft);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--line);
  }
  .thumb.gold { background: var(--gold-soft); }
  .thumb.cream { background: #f0ecdf; }
  .thumb.slate { background: #e6e9ed; }
  .thumb.dust { background: #ece6db; }
  .thumb.rose { background: #efe0d6; }
  .thumb-icon { width: 64px; height: 50px; border-radius: 6px 6px 4px 4px; position: relative; }
  .thumb-icon::before { content: ''; position: absolute; left: 0; top: -8px; width: 22px; height: 10px; background: inherit; border-radius: 3px 3px 0 0; }

  .badge-status {
    position: absolute; top: 12px; left: 12px;
    font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
    background: #fff; color: var(--ink-2); border: 1px solid var(--line);
  }
  .badge-status.live { color: #1b5e4f; border-color: #c4d8cf; background: #f0f6f3; }
  .badge-status.draft { color: #6a4e1f; border-color: #e2d2a7; background: #f8f0dc; }
  .badge-status.review { color: #883a30; border-color: #e8c8bf; background: #f6e6e0; }

  .card-meta { padding: 16px 18px 18px 18px; }
  .card-title { font-size: 15px; font-weight: 600; margin: 0 0 4px 0; letter-spacing: -0.005em; }
  .card-sub {
    font-size: 12px; color: var(--ink-3);
    display: flex; align-items: center; gap: 6px;
  }
  .card-sub .accent { color: var(--accent); font-weight: 500; }
  .card-sub .dot-sep { color: #c4c0b3; }

  .card-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 12px;
  }
  .stat-row { display: flex; gap: 14px; font-size: 11px; color: var(--ink-3); }
  .stat-row b { color: var(--ink); font-weight: 600; }

  /* === Recent activity strip === */
  .activity {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius);
    padding: 22px 24px;
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.8) inset,
      0 16px 48px -18px rgba(37,99,235,0.22),
      0 6px 20px -8px rgba(236,72,153,0.14);
    position: relative;
    overflow: hidden;
  }
  .activity::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-hero);
    background-size: 200% 200%;
    animation: heroShift 8s ease-in-out infinite;
  }
  .activity h4 { margin: 0 0 14px 0; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
  .activity h4 .live-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(13,148,136,0.20);
    animation: livePulse 1.8s ease-in-out infinite;
  }
  @keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(13,148,136,0.20); }
    50%      { box-shadow: 0 0 0 8px rgba(13,148,136,0.08); }
  }
  .activity ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
  .activity li {
    display: grid; grid-template-columns: 80px 1fr auto;
    align-items: center;
    padding: 10px 0;
    border-top: 1px dashed var(--line);
    font-size: 13px;
  }
  .activity li:first-child { border-top: none; }
  .activity .time { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-3); }
  .activity .who { color: var(--ink-2); }
  .activity .who b { color: var(--ink); font-weight: 600; }
  .activity .tag {
    font-size: 10.5px; padding: 4px 10px; border-radius: 999px;
    background: rgba(13,148,136,0.12); color: #0d9488; font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(13,148,136,0.20);
  }
  .activity .tag.gold { background: rgba(245,158,11,0.15); color: #b45309; border-color: rgba(245,158,11,0.25); }
  .activity .tag.rose { background: rgba(236,72,153,0.12); color: #be185d; border-color: rgba(236,72,153,0.22); }

  /* Empty placeholder thumbnail icon */
  .thumb-art {
    width: 68%; height: 56%;
    border-radius: 8px;
    background:
      repeating-linear-gradient(
        135deg,
        rgba(0,0,0,0.05) 0 8px,
        transparent 8px 16px
      );
    border: 1px dashed rgba(0,0,0,0.18);
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px; color: rgba(0,0,0,0.45);
    letter-spacing: 0.04em; text-transform: uppercase;
  }