/* FILTER017 application shell
   Quiet, spatial, app-like. No marketing gradients and no card-outline grid. */
:root {
  --ui-canvas: #e9e9ec;
  --ui-window: #ffffff;
  --ui-sidebar: rgba(246, 246, 248, .78);
  --ui-fill: #f5f5f7;
  --ui-fill-strong: #ededf0;
  --ui-text: #1d1d1f;
  --ui-secondary: #6e6e73;
  --ui-tertiary: #98989d;
  --ui-accent: #0071e3;
  --ui-accent-pressed: #0064ca;
  --ui-green: #248a3d;
  --ui-red: #d70015;
  --ui-orange: #b25000;
  --ui-separator: rgba(60, 60, 67, .12);
  --ui-shadow: 0 22px 70px rgba(0, 0, 0, .11), 0 2px 10px rgba(0, 0, 0, .04);
  --ui-shadow-soft: 0 8px 28px rgba(0, 0, 0, .07);
  --accent: var(--ui-accent);
  --text: var(--ui-text);
  --muted: var(--ui-secondary);
  --card: #fff;
  --border: var(--ui-separator);
  --radius: 18px;
  --shadow: none;
}

.skip-link { position: fixed; left: 18px; top: 10px; z-index: 10000; padding: 9px 13px; border-radius: 10px; color: #fff; background: #1d1d1f; transform: translateY(-150%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
.glass-filter-defs { position: fixed; pointer-events: none; }

/* Keep the original public homepage completely untouched. */
.landing-page .nav-glass-lens { display: none; }

/* Authenticated application becomes a desktop-style window with a glass sidebar. */
.is-authenticated {
  min-height: 100vh;
  color: var(--ui-text);
  background: var(--ui-canvas);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang TC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
.is-authenticated *, .is-authenticated *::before, .is-authenticated *::after { box-sizing: border-box; }
.is-authenticated button, .is-authenticated input, .is-authenticated select, .is-authenticated textarea { font: inherit; }
.is-authenticated button:focus-visible, .is-authenticated a:focus-visible, .is-authenticated input:focus-visible, .is-authenticated select:focus-visible, .is-authenticated textarea:focus-visible { outline: 3px solid rgba(0, 113, 227, .28); outline-offset: 2px; box-shadow: none !important; }
.is-authenticated ::selection { color: #fff; background: var(--ui-accent); }

.is-authenticated .site-header {
  position: fixed;
  z-index: 1000;
  left: 14px;
  top: 14px;
  bottom: 14px;
  width: 246px;
  padding: 0;
  color: var(--ui-text);
  background: var(--ui-sidebar);
  border: 0;
  border-radius: 26px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, .08);
  backdrop-filter: blur(42px) saturate(1.25);
  -webkit-backdrop-filter: blur(42px) saturate(1.25);
}
.is-authenticated .header-inner { width: 100%; height: 100%; max-width: none; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 22px 12px 12px; }
.is-authenticated .brand { display: block; padding: 5px 13px 24px; color: var(--ui-text); text-decoration: none; }
.is-authenticated .brand h1 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.is-authenticated .brand small { display: block; margin-top: 2px; color: var(--ui-tertiary); font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.is-authenticated .header-nav { position: relative; min-height: 0; flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 0; background: transparent; border: 0; box-shadow: none; isolation: isolate; }
.is-authenticated .nav-group-label { position: relative; z-index: 3; display: block; margin: 20px 13px 7px; color: var(--ui-tertiary); font-size: 10px; font-weight: 600; }
.is-authenticated .nav-group-label:first-of-type { margin-top: 0; }
.is-authenticated .nav-link, .is-authenticated .user-menu-trigger {
  position: relative;
  z-index: 3;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  color: #2c2c2e;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 540;
  white-space: nowrap;
}
.is-authenticated .nav-link:hover, .is-authenticated .user-menu-trigger:hover { background: rgba(0, 0, 0, .035); }
.is-authenticated .nav-link[aria-current="page"] { color: var(--ui-accent); font-weight: 620; }
.is-authenticated .nav-icon { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; color: currentColor; font-size: 16px; font-weight: 500; }

/* One moving frosted selection material; no rim or colored glow. */
.is-authenticated .nav-glass-lens {
  --lens-x: 0px;
  --lens-y: 0px;
  --lens-w: 100px;
  --lens-h: 42px;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: var(--lens-w);
  height: var(--lens-h);
  overflow: hidden;
  opacity: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .07), inset 0 1px 0 rgba(255, 255, 255, .62);
  backdrop-filter: blur(26px) saturate(1.15);
  -webkit-backdrop-filter: blur(26px) saturate(1.15);
  transform: translate3d(var(--lens-x), var(--lens-y), 0);
  transition: width .34s cubic-bezier(.22,.8,.2,1), height .34s cubic-bezier(.22,.8,.2,1), transform .34s cubic-bezier(.22,.8,.2,1), opacity .14s ease;
  pointer-events: none;
}
.is-authenticated .nav-glass-lens.is-visible { opacity: 1; }
.is-authenticated .nav-glass-lens.is-immediate { transition: none; }
.is-authenticated .nav-glass-optics { position: absolute; inset: -20px; background: rgba(255,255,255,.16); filter: url("#liquid-glass-displace"); }
.is-authenticated .nav-glass-tint { position: absolute; inset: 0; background: rgba(255,255,255,.22); }
.is-authenticated .nav-glass-rim { display: none; }

.is-authenticated .user-menu { position: relative; z-index: 4; margin-top: auto; padding-top: 10px; }
.is-authenticated .user-menu-trigger { min-height: 52px; padding: 6px 8px; }
.is-authenticated .user-avatar-text { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #2c2c2e; font-size: 12px; font-weight: 650; }
.is-authenticated .user-copy { min-width: 0; display: grid; gap: 2px; text-align: left; }
.is-authenticated .user-name { overflow: hidden; color: var(--ui-text); font-size: 12px; font-weight: 600; text-overflow: ellipsis; }
.is-authenticated .user-copy small { color: var(--ui-tertiary); font-size: 9px; }
.is-authenticated .user-chevron { margin-left: auto; color: var(--ui-tertiary); transition: transform .18s ease; }
.is-authenticated .user-menu.is-open .user-chevron { transform: rotate(180deg); }
.is-authenticated .user-dropdown {
  position: absolute;
  z-index: 10;
  left: calc(100% + 12px);
  bottom: 0;
  top: auto;
  right: auto;
  min-width: 230px;
  padding: 8px;
  border: 0;
  border-radius: 18px;
  color: var(--ui-text);
  background: rgba(248, 248, 250, .86);
  box-shadow: var(--ui-shadow-soft);
  backdrop-filter: blur(34px) saturate(1.2);
  -webkit-backdrop-filter: blur(34px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px) scale(.98);
  transform-origin: bottom left;
  transition: opacity .16s ease, transform .2s ease, visibility .16s;
}
.is-authenticated .user-menu.is-open .user-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.is-authenticated .dropdown-meta { display: grid; gap: 2px; padding: 8px 10px 12px; }
.is-authenticated .dropdown-meta small { color: var(--ui-tertiary); font-size: 9px; }
.is-authenticated .dropdown-meta strong { font-size: 13px; }
.is-authenticated .user-dropdown a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 10px; color: var(--ui-text); text-decoration: none; font-size: 12px; }
.is-authenticated .user-dropdown a:hover { background: rgba(0,0,0,.05); }
.is-authenticated .user-dropdown .logout-link { margin-top: 5px; color: var(--ui-red); }

.is-authenticated > main {
  min-height: calc(100vh - 28px);
  margin: 14px 14px 14px 274px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ui-window);
  box-shadow: var(--ui-shadow);
}
.is-authenticated .flash-container { position: fixed; z-index: 1200; top: 27px; left: calc(50% + 130px); width: min(88vw,500px); transform: translateX(-50%); }
.is-authenticated .flash-message { padding: 11px 14px; border: 0; border-radius: 13px; background: rgba(245,245,247,.9); box-shadow: var(--ui-shadow-soft); backdrop-filter: blur(24px); font-size: 12px; transition: .2s ease; }
.is-authenticated .flash-message.is-leaving { opacity: 0; transform: translateY(-6px); }

/* Main dashboard: one spacious content plane, restrained nested fills. */
.is-authenticated .db-topbar, .is-authenticated .task-bar, .is-authenticated .work-layout, .is-authenticated .history-container, .is-authenticated .tutorial-wrap, .is-authenticated .tutorial-content, .is-authenticated .admin-wrap { max-width: 1440px; margin-left: auto; margin-right: auto; }
.is-authenticated .db-topbar { padding: 46px 48px 24px; align-items: end; background: transparent; }
.is-authenticated .db-welcome h2 { margin: 0; font-size: 32px; font-weight: 680; line-height: 1.05; letter-spacing: -.035em; }
.is-authenticated .db-subtitle { display: block; max-width: 560px; margin-top: 8px; color: var(--ui-secondary); font-size: 12px; letter-spacing: 0; text-transform: none; }
.is-authenticated .db-quota-area { gap: 9px; }
.is-authenticated .quota-pill { padding: 7px 12px; border: 0; border-radius: 999px; color: var(--ui-text); background: var(--ui-fill); box-shadow: none; }
.is-authenticated .quota-bar-track { background: var(--ui-fill-strong); }
.is-authenticated .quota-bar-fill { background: var(--ui-accent); }
.is-authenticated .quota-icon { color: var(--ui-accent); }

.is-authenticated .task-bar { position: sticky; z-index: 40; top: 0; display: flex; gap: 4px; margin: 0 32px; padding: 8px; overflow-x: auto; border: 0; border-radius: 16px; background: rgba(245,245,247,.86); backdrop-filter: blur(22px); scrollbar-width: none; }
.is-authenticated .task-bar::-webkit-scrollbar { display: none; }
.is-authenticated .task-btn { min-width: 130px; flex: 0 0 auto; padding: 10px 12px; border: 0; border-radius: 11px; color: var(--ui-secondary); background: transparent; }
.is-authenticated .task-btn:hover { background: rgba(255,255,255,.55); }
.is-authenticated .task-btn.active { color: var(--ui-text); background: #fff; box-shadow: 0 2px 9px rgba(0,0,0,.07); }
.is-authenticated .task-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: inherit; background: transparent; font-size: 14px; }
.is-authenticated .task-label { font-size: 12px; font-weight: 620; }
.is-authenticated .task-desc { color: var(--ui-tertiary); font-size: 9px; }
.is-authenticated .task-panel { padding-bottom: 48px; }
.is-authenticated .work-layout { grid-template-columns: 218px minmax(0,1fr) 270px; gap: 22px; padding: 28px 48px 60px; }
.is-authenticated .work-sidebar { top: 30px; }
.is-authenticated .sidebar-section { padding: 17px; border: 0; border-radius: 16px; background: var(--ui-fill); box-shadow: none; }
.is-authenticated .sidebar-label { margin-bottom: 11px; color: var(--ui-tertiary); font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.is-authenticated .hint-item { position: relative; padding: 6px 0 6px 17px; color: var(--ui-secondary); font-size: 11px; }
.is-authenticated .hint-item::before { content: ""; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--ui-tertiary); }
.is-authenticated .work-main { gap: 14px; }
.is-authenticated .work-card, .is-authenticated .work-result { padding: 24px; border: 0; border-radius: 20px; background: var(--ui-fill); box-shadow: none; }
.is-authenticated .work-step { margin-bottom: 16px; color: var(--ui-text); font-size: 14px; font-weight: 650; }
.is-authenticated .step-badge, .is-authenticated .section-index { color: var(--ui-text); background: #fff; border: 0; }

/* Upload surfaces use material fills instead of dashed boxes. */
.is-authenticated .whitebg-dropzone-lg, .is-authenticated .collage-dropzone-sm, .is-authenticated .upload-drop, .is-authenticated .mao-upload, .is-authenticated .mao-dropzone { border: 0 !important; border-radius: 18px !important; background: #fff !important; box-shadow: none !important; transition: transform .18s ease, background .18s ease !important; }
.is-authenticated .whitebg-dropzone-lg:hover, .is-authenticated .collage-dropzone-sm:hover, .is-authenticated .upload-drop:hover, .is-authenticated .mao-upload:hover { background: #fafafa !important; transform: scale(.998); }
.is-authenticated .wbg-item, .is-authenticated .wbg-result-card, .is-authenticated .wbg-shot-slot, .is-authenticated .collage-asset, .is-authenticated .history-item, .is-authenticated .hist-project, .is-authenticated .task-card { border: 0 !important; border-radius: 14px !important; background: #fff !important; box-shadow: none !important; }
.is-authenticated .wbg-type-card, .is-authenticated .wbg-mode-card, .is-authenticated .wbg-feature-chip, .is-authenticated .batch-feature-chip { border: 0 !important; border-radius: 12px !important; color: var(--ui-secondary); background: #fff !important; box-shadow: none !important; }
.is-authenticated .wbg-type-card:hover, .is-authenticated .wbg-mode-card:hover, .is-authenticated .wbg-feature-chip:hover { background: #fafafa !important; }
.is-authenticated .wbg-type-card.active, .is-authenticated .wbg-mode-card.active, .is-authenticated .wbg-feature-chip.checked, .is-authenticated .batch-feature-chip.checked { color: var(--ui-accent); background: rgba(0,113,227,.09) !important; box-shadow: none !important; }
.is-authenticated .wbg-profile-summary, .is-authenticated .tut-tip { border: 0; border-radius: 13px; background: #fff; }
.is-authenticated .collage-stage-wrap { padding: 14px; border: 0; border-radius: 18px; background: #e8e8ed; }
.is-authenticated .collage-stage { border: 0; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,.07); }

/* Apple-style controls: solid color, filled secondary controls, no outlined pills. */
.is-authenticated .btn-generate-lg, .is-authenticated .btn-submit, .is-authenticated .primary-btn, .is-authenticated .dark-btn, .is-authenticated .mao-btn:not(.secondary), .is-authenticated .btn-sm.primary { border: 0 !important; border-radius: 12px !important; color: #fff !important; background: var(--ui-accent) !important; box-shadow: none !important; font-weight: 620 !important; transition: background .15s ease, transform .15s ease !important; }
.is-authenticated .btn-generate-lg:hover, .is-authenticated .btn-submit:hover, .is-authenticated .primary-btn:hover, .is-authenticated .dark-btn:hover, .is-authenticated .mao-btn:not(.secondary):hover, .is-authenticated .btn-sm.primary:hover { background: var(--ui-accent-pressed) !important; transform: none; }
.is-authenticated .btn-reset, .is-authenticated .btn-sm, .is-authenticated .ghost-btn, .is-authenticated .mao-btn.secondary, .is-authenticated .quota-upgrade { border: 0 !important; border-radius: 11px !important; color: var(--ui-text) !important; background: var(--ui-fill-strong) !important; box-shadow: none !important; }
.is-authenticated .btn-reset:hover, .is-authenticated .btn-sm:hover, .is-authenticated .ghost-btn:hover, .is-authenticated .mao-btn.secondary:hover { background: #e2e2e7 !important; }
.is-authenticated .btn-sm.danger { color: var(--ui-red) !important; }
.is-authenticated button:disabled, .is-authenticated .mao-btn:disabled { opacity: .42 !important; cursor: not-allowed !important; }
.is-authenticated input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .is-authenticated select, .is-authenticated textarea { border: 0 !important; border-radius: 11px !important; color: var(--ui-text) !important; background: var(--ui-fill) !important; box-shadow: inset 0 0 0 1px transparent !important; }
.is-authenticated input:focus, .is-authenticated select:focus, .is-authenticated textarea:focus { background: #fff !important; box-shadow: inset 0 0 0 2px var(--ui-accent) !important; outline: none; }

/* List/table pages rely on spacing and separators, not containers around every row. */
.is-authenticated .history-container, .is-authenticated .admin-wrap, .is-authenticated .tutorial-wrap, .is-authenticated .tutorial-content { padding: 46px 48px 72px; }
.is-authenticated .history-header h3, .is-authenticated .admin-header h2, .is-authenticated .tutorial-content h2 { font-size: 30px; font-weight: 680; letter-spacing: -.035em; }
.is-authenticated .hist-project { border-radius: 0 !important; border-bottom: 1px solid var(--ui-separator) !important; }
.is-authenticated .hist-project-head { background: transparent; }
.is-authenticated .hist-project-head:hover { background: var(--ui-fill); }
.is-authenticated .hist-project-body { background: var(--ui-fill); border: 0; }
.is-authenticated .hist-batch-head span { color: var(--ui-accent); background: rgba(0,113,227,.09); }
.is-authenticated .admin-header { align-items: flex-end; }
.is-authenticated .admin-nav { gap: 3px; padding: 4px; border: 0; border-radius: 13px; background: var(--ui-fill); }
.is-authenticated .admin-nav a { border-radius: 9px; }
.is-authenticated .admin-nav a:hover, .is-authenticated .admin-nav a.active { color: var(--ui-text); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.is-authenticated .stats-grid { gap: 12px; }
.is-authenticated .stat-card { padding: 22px; border: 0; border-radius: 18px; background: var(--ui-fill); box-shadow: none; }
.is-authenticated .stat-label { color: var(--ui-tertiary); font-size: 10px; letter-spacing: 0; text-transform: none; }
.is-authenticated .stat-value { margin-top: 6px; font-size: 32px; letter-spacing: -.04em; }
.is-authenticated .admin-table-wrap { overflow-x: auto; border: 0; border-radius: 18px; background: var(--ui-fill); box-shadow: none; }
.is-authenticated .admin-table th { color: var(--ui-tertiary); background: transparent; }
.is-authenticated .admin-table td { border-color: var(--ui-separator); }
.is-authenticated .admin-table tr:hover td { background: rgba(255,255,255,.64); }
.is-authenticated .tutorial-card, .is-authenticated .tutorial-content .tut-step { border: 0; border-radius: 18px; background: var(--ui-fill); box-shadow: none; }
.is-authenticated .tutorial-card:hover { background: var(--ui-fill-strong); transform: none; }

/* Account */
.is-authenticated .account-page { max-width: 1080px; margin: 0 auto; padding: 48px 48px 80px; }
.is-authenticated .account-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 28px; }
.is-authenticated .account-heading>div>span, .is-authenticated .account-label, .is-authenticated .learning-heading>span { color: var(--ui-tertiary); font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.is-authenticated .account-heading h2, .is-authenticated .learning-heading h2 { margin: 6px 0 8px; font-size: 32px; font-weight: 680; letter-spacing: -.04em; }
.is-authenticated .account-heading p, .is-authenticated .learning-heading p { margin: 0; color: var(--ui-secondary); font-size: 13px; line-height: 1.6; }
.is-authenticated .account-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 12px; }
.is-authenticated .account-card { padding: 23px; border: 0; border-radius: 19px; background: var(--ui-fill); box-shadow: none; }
.is-authenticated .account-identity { display: flex; align-items: center; gap: 16px; }
.is-authenticated .account-avatar { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #2c2c2e; font-size: 22px; font-weight: 650; }
.is-authenticated .account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.is-authenticated .account-card h3 { margin: 5px 0; font-size: 17px; }
.is-authenticated .account-card p { margin: 0; color: var(--ui-secondary); font-size: 12px; line-height: 1.55; }
.is-authenticated .plan-badge, .is-authenticated .verified-badge { display: inline-flex; margin-top: 9px; margin-right: 4px; padding: 4px 8px; border-radius: 999px; color: var(--ui-accent); background: rgba(0,113,227,.09); font-size: 9px; font-weight: 650; }
.is-authenticated .verified-badge { color: var(--ui-green); background: rgba(36,138,61,.09); }
.is-authenticated .account-card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.is-authenticated .account-card-head>strong { font-size: 19px; }
.is-authenticated .account-usage-track { height: 6px; margin: 18px 0; border-radius: 999px; background: #dedee2; overflow: hidden; }
.is-authenticated .account-usage-track i { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: var(--ui-accent); }
.is-authenticated .account-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; overflow: hidden; border-radius: 12px; background: var(--ui-separator); }
.is-authenticated .account-metrics div { display: grid; gap: 3px; padding: 11px; background: #fff; }
.is-authenticated .account-metrics span { color: var(--ui-tertiary); font-size: 9px; }
.is-authenticated .account-metrics b { font-size: 12px; }
.is-authenticated .account-keys, .is-authenticated .account-danger { grid-column: 1/-1; }
.is-authenticated .account-danger { display: flex; justify-content: space-between; align-items: center; }
.is-authenticated .api-key-list { margin-top: 15px; }
.is-authenticated .api-key-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ui-separator); }
.is-authenticated .api-key-row>div:first-child, .is-authenticated .api-key-actions { display: flex; align-items: center; gap: 8px; }
.is-authenticated .api-key-row code { color: var(--ui-secondary); font-size: 10px; }
.is-authenticated .key-status { padding: 3px 7px; border-radius: 999px; font-size: 8px; }
.is-authenticated .key-status.is-active { color: var(--ui-green); background: rgba(36,138,61,.09); }
.is-authenticated .key-status.is-disabled { color: var(--ui-red); background: rgba(215,0,21,.08); }

/* Shared upper/other-object project workbenches. */
.is-authenticated .mao-page { max-width: 1420px !important; padding: 46px 48px 72px !important; }
.is-authenticated .mao-header { margin-bottom: 25px !important; padding: 0 !important; border: 0 !important; }
.is-authenticated .mao-header h2 { font-size: 32px !important; font-weight: 680 !important; letter-spacing: -.04em !important; }
.is-authenticated .mao-header p { color: var(--ui-secondary) !important; }
.is-authenticated .mao-grid { gap: 14px !important; }
.is-authenticated .mao-card { border: 0 !important; border-radius: 20px !important; background: var(--ui-fill) !important; box-shadow: none !important; }
.is-authenticated .mao-step { color: var(--ui-text) !important; background: #fff !important; }
.is-authenticated .mao-log { border: 0 !important; border-radius: 14px !important; color: var(--ui-secondary) !important; background: #fff !important; }
.is-authenticated .mao-pill { border: 0 !important; background: #fff !important; }
.is-authenticated .mao-pill.active { color: var(--ui-accent) !important; background: rgba(0,113,227,.09) !important; }
.is-authenticated .mao-pill.done { color: var(--ui-green) !important; background: rgba(36,138,61,.09) !important; }
.is-authenticated .mao-output-card, .is-authenticated .mao-image-card, .is-authenticated .mao-task-card { border: 0 !important; border-radius: 14px !important; background: #fff !important; }
.is-authenticated .mao-next, .is-authenticated .mao-mini-card, .is-authenticated .mao-check, .is-authenticated .mao-image-row, .is-authenticated .mao-plan-item, .is-authenticated .mao-plan-task, .is-authenticated .mao-ref, .is-authenticated .mao-analysis span, .is-authenticated .mao-color-panel, .is-authenticated .mao-color-read, .is-authenticated .mao-preset, .is-authenticated .mao-summary div, .is-authenticated .mao-plan-meta pre, .is-authenticated .mao-output-empty, .is-authenticated .mao-link-btn { border: 0 !important; box-shadow: none !important; }
.is-authenticated .mao-next { border-radius: 16px !important; background: var(--ui-fill) !important; }
.is-authenticated .mao-mini-card, .is-authenticated .mao-check, .is-authenticated .mao-image-row, .is-authenticated .mao-plan-item, .is-authenticated .mao-plan-task, .is-authenticated .mao-color-read, .is-authenticated .mao-summary div, .is-authenticated .mao-plan-meta pre { background: #fff !important; }
.is-authenticated .mao-plan-task.required { border-left: 0 !important; }
.is-authenticated .mao-plan-warn, .is-authenticated .mao-color-warning, .is-authenticated .mao-badge.warn, .is-authenticated .mao-tag.warn { border: 0 !important; }
.is-authenticated .mao-output img, .is-authenticated .mao-output-card img { border: 0 !important; }
.is-authenticated .mao-details { border-top-color: var(--ui-separator) !important; }

/* Pants keeps its information density but belongs to the same white app shell. */
.is-authenticated.pants-body { background: var(--ui-canvas) !important; }
.is-authenticated .pants-body .site-header, .is-authenticated.pants-body .site-header { display: block !important; }
.is-authenticated .pants-shell { min-height: calc(100vh - 28px) !important; max-width: none; margin: 0; background: transparent !important; }
.is-authenticated .pants-sidebar { display: none !important; }
.is-authenticated .pants-main { margin: 0 !important; background: #fff !important; }
.is-authenticated .pants-topbar { position: static !important; border: 0 !important; background: #fff !important; }
.is-authenticated .pants-topbar h1, .is-authenticated .pants-hero h2 { color: var(--ui-text) !important; letter-spacing: -.04em !important; }
.is-authenticated .eyebrow, .is-authenticated .hero-kicker { color: var(--ui-tertiary) !important; }
.is-authenticated .pants-hero, .is-authenticated .pants-workspace, .is-authenticated .analysis-section, .is-authenticated .outputs-section { border: 0 !important; border-radius: 20px !important; background: var(--ui-fill) !important; box-shadow: none !important; }
.is-authenticated .hero-visual, .is-authenticated .master-library, .is-authenticated .upload-panel, .is-authenticated .profile-card, .is-authenticated .availability-card, .is-authenticated .warning-card, .is-authenticated .output-card { border: 0 !important; border-radius: 16px !important; background: #fff !important; }
.is-authenticated .master-card, .is-authenticated .asset-card, .is-authenticated .availability-item { border: 0 !important; border-radius: 12px !important; }
.is-authenticated .master-card.is-selected, .is-authenticated .output-card.is-selected { box-shadow: inset 0 0 0 2px var(--ui-accent) !important; }
.is-authenticated .asset-card select { border: 0 !important; background: var(--ui-fill) !important; }
.is-authenticated .hero-visual::before { display: none !important; }
.is-authenticated .warning-card { color: var(--ui-text) !important; background: #fff4e5 !important; }
.is-authenticated .warning-icon { border: 0 !important; color: var(--ui-orange) !important; background: rgba(178,80,0,.1) !important; border-radius: 50%; }
.is-authenticated .hero-metrics div { border-color: var(--ui-separator) !important; }
.is-authenticated .hero-metrics b, .is-authenticated .section-index { color: var(--ui-text) !important; }
.is-authenticated .output-spec { border: 0 !important; border-radius: 11px !important; background: var(--ui-fill) !important; }
.is-authenticated .batch-progress { border: 0 !important; border-radius: 15px !important; background: rgba(0,113,227,.08) !important; }
.is-authenticated .batch-progress-track i { background: var(--ui-accent) !important; }

/* Login is neutral glass, while the public homepage remains as it was. */
.login-page { background: #ececee !important; }
.login-page .site-header { background: transparent !important; }
.login-page .login-wrap { max-width: 450px !important; padding: 88px 20px 80px !important; }
.login-page .login-card { padding: 32px !important; border: 0 !important; border-radius: 24px !important; background: rgba(255,255,255,.76) !important; box-shadow: 0 18px 60px rgba(0,0,0,.1) !important; backdrop-filter: blur(34px) saturate(1.15); }
.login-page .login-card::before { display: none !important; }
.login-page .login-card h2 { font-size: 26px !important; font-weight: 680 !important; letter-spacing: -.035em; }
.login-page .login-card .sub { color: var(--ui-secondary) !important; font-weight: 500 !important; }
.login-page .login-tabs { gap: 3px; padding: 4px; border: 0 !important; border-radius: 13px !important; background: rgba(118,118,128,.12) !important; }
.login-page .login-tab { border: 0 !important; border-radius: 9px !important; color: var(--ui-secondary) !important; background: transparent !important; font-weight: 560 !important; }
.login-page .login-tab.active { color: var(--ui-text) !important; background: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,.08) !important; }
.login-page .form-group input { min-height: 45px; border: 0 !important; border-radius: 11px !important; background: rgba(118,118,128,.1) !important; }
.login-page .btn-submit { border-radius: 11px !important; background: var(--ui-accent) !important; }
.login-page .btn-google { border: 0 !important; border-radius: 11px !important; background: rgba(118,118,128,.1) !important; }

.is-authenticated .status-bar, .is-authenticated .pants-toast { border: 0 !important; border-radius: 15px !important; background: rgba(29,29,31,.9) !important; box-shadow: var(--ui-shadow-soft) !important; backdrop-filter: blur(22px); }
.is-authenticated .status-badge, .is-authenticated .hist-status, .is-authenticated .task-card-status { border-radius: 999px !important; }

@media (max-width: 1000px) {
  .is-authenticated .site-header { width: 218px; }
  .is-authenticated > main { margin-left: 246px; }
  .is-authenticated .work-layout { grid-template-columns: 190px minmax(0,1fr); padding-left: 30px; padding-right: 30px; }
  .is-authenticated .work-result { display: none; }
}

@media (max-width: 760px) {
  .is-authenticated { padding-bottom: 76px; background: #fff; }
  .is-authenticated .site-header { left: 12px; right: 12px; top: auto; bottom: 10px; width: auto; height: 62px; border-radius: 22px; background: rgba(246,246,248,.9); }
  .is-authenticated .header-inner { flex-direction: row; padding: 7px; }
  .is-authenticated .brand, .is-authenticated .nav-group-label, .is-authenticated .nav-link:nth-of-type(n+5) { display: none; }
  .is-authenticated .header-nav { flex-direction: row; align-items: center; justify-content: space-around; }
  .is-authenticated .nav-link { width: auto; min-width: 48px; min-height: 48px; justify-content: center; padding: 0 10px; }
  .is-authenticated .nav-link>span:last-child { display: none; }
  .is-authenticated .nav-icon { font-size: 18px; }
  .is-authenticated .user-menu { margin: 0; padding: 0; }
  .is-authenticated .user-menu-trigger { width: 48px; min-height: 48px; padding: 7px; }
  .is-authenticated .user-copy, .is-authenticated .user-chevron { display: none; }
  .is-authenticated .user-dropdown { position: fixed; left: 12px; right: 12px; bottom: 82px; width: auto; }
  .is-authenticated > main { min-height: calc(100vh - 88px); margin: 0; border-radius: 0; box-shadow: none; }
  .is-authenticated .db-topbar, .is-authenticated .history-container, .is-authenticated .admin-wrap, .is-authenticated .tutorial-wrap, .is-authenticated .tutorial-content, .is-authenticated .account-page, .is-authenticated .mao-page { padding-left: 18px !important; padding-right: 18px !important; }
  .is-authenticated .db-topbar { align-items: flex-start; padding-top: 28px; }
  .is-authenticated .db-quota-area { width: 100%; }
  .is-authenticated .task-bar { margin: 0 12px; }
  .is-authenticated .task-btn { min-width: 112px; }
  .is-authenticated .task-desc { display: none; }
  .is-authenticated .work-layout { display: block; padding: 22px 14px 50px; }
  .is-authenticated .work-sidebar { position: static; margin-bottom: 12px; }
  .is-authenticated .account-heading, .is-authenticated .admin-header { align-items: flex-start; }
  .is-authenticated .account-grid { grid-template-columns: 1fr; }
  .is-authenticated .account-keys, .is-authenticated .account-danger { grid-column: auto; }
  .is-authenticated .api-key-row, .is-authenticated .api-key-row>div:first-child { align-items: flex-start; flex-direction: column; }
  .is-authenticated .api-key-actions { flex-wrap: wrap; }
  .is-authenticated .admin-nav { width: 100%; overflow-x: auto; }
  .is-authenticated .mao-actions { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .nav-glass-lens { transition: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .is-authenticated .site-header, .is-authenticated .nav-glass-lens, .is-authenticated .user-dropdown, .login-page .login-card { background: #f5f5f7 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .is-authenticated .nav-glass-optics { display: none; }
}

@supports not (backdrop-filter: blur(1px)) {
  .is-authenticated .site-header, .is-authenticated .user-dropdown { background: rgba(246,246,248,.98); }
  .is-authenticated .nav-glass-optics { filter: none; }
}

/* Reusable liquid-glass controls. The color stays flat; depth comes from optics. */
.is-authenticated .liquid-button {
  --glass-x: 50%;
  --glass-y: 50%;
  --glass-shift-x: 0px;
  --glass-shift-y: 0px;
  --glass-scale: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0 !important;
  color: var(--ui-text) !important;
  background: transparent !important;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.82), 0 7px 20px rgba(0,0,0,.08) !important;
  transform: translate3d(var(--glass-shift-x), var(--glass-shift-y), 0) scale(var(--glass-scale));
  transform-origin: center;
  transition: color .16s ease, box-shadow .24s ease !important;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.is-authenticated .liquid-button::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -12%;
  border-radius: inherit;
  background: rgba(238,238,243,.78);
  backdrop-filter: blur(16px) saturate(1.3) contrast(1.03);
  -webkit-backdrop-filter: blur(16px) saturate(1.3) contrast(1.03);
  filter: url("#liquid-glass-displace");
  transform: translate3d(0,0,0);
}
.is-authenticated .liquid-button::after {
  display: none;
}
.is-authenticated .liquid-button:hover {
  background: transparent !important;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.96), 0 10px 28px rgba(0,0,0,.12) !important;
}
.is-authenticated .liquid-button.is-pressed { box-shadow: inset 0 0 0 .5px rgba(255,255,255,.72), 0 3px 10px rgba(0,0,0,.08) !important; }
.is-authenticated .liquid-button:focus-visible { outline: 3px solid rgba(0,113,227,.24) !important; outline-offset: 3px; }
.is-authenticated .liquid-button--accent { color: #fff !important; text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.is-authenticated .liquid-button--accent::before { background: rgba(0,113,227,.84); }
.is-authenticated .liquid-button--accent:hover::before { background: rgba(0,104,215,.88); }
.is-authenticated .liquid-button:disabled {
  opacity: .42 !important;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.6) !important;
  transform: none !important;
}
.is-authenticated .liquid-button:disabled::before { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .is-authenticated .liquid-button { transform: none !important; }
  .is-authenticated .liquid-button::before { transform: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .is-authenticated .liquid-button::before { background: #e8e8ed; backdrop-filter: none; -webkit-backdrop-filter: none; filter: none; }
  .is-authenticated .liquid-button--accent::before { background: var(--ui-accent); }
  .is-authenticated .liquid-button::after { display: none; }
}

@supports not (backdrop-filter: blur(1px)) {
  .is-authenticated .liquid-button::before { background: rgba(232,232,237,.97); filter: none; }
  .is-authenticated .liquid-button--accent::before { background: var(--ui-accent); }
}
