/* "Human" look. Quiet on purpose: a top bar, one profile menu, text on the page instead of poster headers,
   few borders, one accent color. Same pages and functions as Classic; chosen in Settings or Account, saved per person. */

html[data-ui="human"] { font-size: 15px; --h-shadow: 0 1px 2px rgb(20 40 90 / .06), 0 8px 24px rgb(20 40 90 / .07); --display: "Hanken Grotesk", system-ui, sans-serif; }
html[data-ui="human"][data-theme="light"] {
  --canvas: #eef2fa; --canvas-subtle: #ffffff; --canvas-inset: #e6ecf8; --canvas-overlay: #dbe4f5;
  --border: #d3dcf0; --border-muted: #e1e8f6;
  --fg: #121a2e; --fg-muted: #4c5875; --fg-subtle: #576280;
  --accent: #2057d6; --accent-emphasis: #2057d6; --accent-hover: #1744ad; --accent-subtle: #e0eaff; --on-accent: #ffffff;
  --sheet-line: #dbe3f3; --sheet-head: #e6ecf8; --sheet-head-strong: #dbe4f5; --sheet-cell: #ffffff; --sheet-hover: #eaf1ff; --sheet-accent: #2057d6;
  --shadow: 0 10px 28px rgb(20 40 90 / .15); --heat-empty: #e1e8f6; --code: #e6ecf8; --glow: rgb(59 130 246 / .13);
}
html[data-ui="human"][data-theme="dark"] {
  --canvas: #0d1420; --canvas-subtle: #151e2f; --canvas-inset: #111a29; --canvas-overlay: #1d2a42;
  --border: #25334f; --border-muted: #1f2b44;
  --fg: #eaf0fb; --fg-muted: #a6b3cf; --fg-subtle: #96a4c2;
  --accent: #6ea8ff; --accent-emphasis: #3b82f6; --accent-hover: #9cc4ff; --accent-subtle: rgba(110, 168, 255, .16); --on-accent: #0d1420;
  --sheet-line: #25334f; --sheet-head: #151e2f; --sheet-head-strong: #1d2a42; --sheet-cell: #111a29; --sheet-hover: #1d2a42; --sheet-accent: #6ea8ff;
  --heat-empty: #1f2b44; --code: #1d2a42; --h-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .25); --glow: rgb(59 130 246 / .2);
}
html[data-ui="human"] body { line-height: 1.6; background: radial-gradient(1100px 420px at 50% -140px, var(--glow), transparent 70%) no-repeat, var(--canvas); }
html[data-ui="human"] :is(h1, h2, h3, .pagehead-title, .section-title, .box-header, .log-day) { font-family: var(--display); }

/* Profile menu: only in this look. */
.user-menu { display: none; position: relative; }
html[data-ui="human"] .user-menu { display: block; }
html[data-ui="human"] :is(.user-chip, .signout-btn, .tab-extra, .rail-mark, .brand-product) { display: none !important; }
.user-menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-weight: 550; cursor: pointer; }
.user-menu-btn:hover, .user-menu-btn[aria-expanded="true"] { background: var(--canvas-overlay); }
.user-menu-btn .octicon { color: var(--fg-muted); transition: transform .2s; }
.user-menu-btn[aria-expanded="true"] .octicon { transform: rotate(180deg); }
.user-menu-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; width: 248px; padding: 6px; border: 1px solid var(--border-muted); border-radius: 18px; background: var(--canvas-subtle); box-shadow: var(--shadow); transform-origin: top right; }
.user-menu-pop.is-floating { position: fixed; top: 64px; inset-inline-end: 12px; z-index: 200; width: min(280px, calc(100vw - 24px)); max-height: calc(100dvh - 76px); overflow-y: auto; }
.user-menu-pop:not([hidden]) { animation: pop .16s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.user-menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.user-menu-head div { display: grid; line-height: 1.25; min-width: 0; } .user-menu-head span { color: var(--fg-muted); font-size: 13px; }
.user-menu-pop :is(a, button[role="menuitem"]) { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--fg); font: inherit; text-align: start; text-decoration: none; cursor: pointer; }
.user-menu-pop :is(a, button[role="menuitem"]):is(:hover, :focus-visible) { background: var(--canvas-overlay); outline: none; }
.user-menu-pop a[aria-current="page"] { color: var(--accent); background: var(--accent-subtle); }
.user-menu-pop .octicon { color: var(--fg-muted); } .user-menu-pop .danger-item .octicon { color: var(--danger); }
.user-menu-pop hr { border: 0; border-top: 1px solid var(--border-muted); margin: 6px 4px; }

/* Top bar (desktop); phones keep the compact menu every look shares. */
@media (min-width: 901px) {
  html[data-ui="human"] .dashboard-shell { display: block; }
  html[data-ui="human"] .dashboard-rail {
    position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 24px; overflow: visible;
    padding: 10px clamp(18px, 3vw, 40px); border: 0; background: color-mix(in srgb, var(--canvas) 90%, transparent); backdrop-filter: blur(14px);
  }
  html[data-ui="human"] .dashboard-rail .brand { flex-direction: row; align-self: center; width: auto; }
  html[data-ui="human"] .dashboard-rail .brand strong { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: 0; }
  html[data-ui="human"] .dashboard-rail .tabnav { flex: 1 1 auto; min-width: 0; flex-direction: row; gap: 2px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
  html[data-ui="human"] .dashboard-rail .tabnav a { padding: 7px 13px; font-size: 14.5px; font-weight: 500; border-radius: 999px; color: var(--fg-muted); }
  html[data-ui="human"] .dashboard-rail .tabnav a:hover:not([aria-current="page"]) { background: var(--canvas-overlay); color: var(--fg); }
  html[data-ui="human"] .dashboard-rail .tabnav a[aria-current="page"], html[data-ui="human"] .dashboard-rail.has-jind .tabnav a[aria-current="page"] { background: var(--accent-subtle); color: var(--accent); box-shadow: none; font-weight: 650; view-transition-name: navpill; }
  html[data-ui="human"] .dashboard-rail .counter { margin-inline-start: 4px; }
  html[data-ui="human"] .rail-controls { margin: 0; flex: none; flex-wrap: nowrap; gap: 6px; }
  html[data-ui="human"] .rail-controls .search-trigger { border-color: transparent; background: var(--canvas-overlay); }
}
html[data-ui="human"] .jind, html[data-ui="human"] .dashboard-rail .tabnav a::before { display: none; }
@media (max-width: 900px) {
  html[data-ui="human"] .user-menu-btn .user-name, html[data-ui="human"] .user-menu-btn .octicon { display: none; }
  html[data-ui="human"] .user-menu-btn { padding: 2px; }
  html[data-ui="human"] .dashboard-rail .tabnav a[aria-current="page"] { background: var(--accent-emphasis); color: var(--on-accent); border-color: var(--accent-emphasis); }
  html[data-ui="human"][data-theme="dark"] .dashboard-rail .tabnav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); }
}
html[data-ui="human"] .dashboard-workspace { max-width: 1180px; margin: 0 auto; background: none; padding-top: 12px; }

/* Page header: text on the page, no poster. */
html[data-ui="human"] .dashboard-workspace .pagehead, html[data-ui="human"] .dashboard-workspace .overview-hero {
  min-height: 0; padding: 6px 0 22px; margin: 0 auto 4px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--fg); align-items: end;
}
html[data-ui="human"] :is(.pagehead, .overview-hero)::after, html[data-ui="human"] :is(.overview-art-motion, .route-emblem) { display: none; }
html[data-ui="human"] .pagehead-content .pagehead-title { font-size: clamp(26px, 3vw, 34px); font-weight: 650; letter-spacing: -.01em; line-height: 1.15; }
html[data-ui="human"] .pagehead-greeting { display: block; margin: 0 0 6px; font-size: 17px; color: var(--fg-muted); }
html[data-ui="human"] .pagehead-content :is(.live, .pagehead-meta, .pagehead-status .live) { color: var(--fg-muted); border-color: var(--border); }
html[data-ui="human"] .pagehead-content .pagehead-meta { margin-top: 8px; }
html[data-ui="human"] .pagehead-content .label.success { color: var(--success); background: var(--success-subtle); }
html[data-ui="human"] .pagehead-content .label.attention { color: var(--attention); background: var(--attention-subtle); }
html[data-ui="human"] .pagehead-content .label.danger { color: var(--danger); background: var(--danger-subtle); }
html[data-ui="human"] .overview-hero .pagehead-status { order: 3; margin: 10px 0 0; }

/* Surfaces: one soft step above the page, hairline border, no glow. */
html[data-ui="human"] .dashboard-workspace :is(.box, .stat, .panel) { border-radius: 18px; border: 1px solid var(--border-muted); background: var(--canvas-subtle); box-shadow: var(--h-shadow); }
html[data-ui="human"] .dashboard-workspace :is(.box, .stat)::after { display: none; }
html[data-ui="human"] .dashboard-workspace .box-header { font-weight: 650; border-bottom-color: var(--border-muted); }
html[data-ui="human"] .dashboard-workspace .section-title, html[data-ui="human"] .task-card h3 { letter-spacing: 0; }
html[data-ui="human"] .dashboard-workspace :is(.layout, .stats, .stack) { gap: 18px; }

/* Controls */
html[data-ui="human"] .dashboard-workspace .btn, html[data-ui="human"] .search-trigger { border-radius: 999px; }
html[data-ui="human"] .dashboard-workspace .btn.primary { color: var(--on-accent); background: var(--accent-emphasis); border-color: var(--accent-emphasis); }
html[data-ui="human"][data-theme="dark"] .dashboard-workspace .btn.primary { background: var(--accent); border-color: var(--accent); }
html[data-ui="human"] .dashboard-workspace .btn.primary:hover:not(:disabled) { filter: brightness(1.07); background: var(--accent-emphasis); border-color: var(--accent-emphasis); color: var(--on-accent); }
html[data-ui="human"][data-theme="dark"] .dashboard-workspace .btn.primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
html[data-ui="human"] :is(input[type="text"], input[type="url"], input[type="password"], input[type="number"], input[type="search"], select, textarea, .combo-box, .re-surface) { border-radius: 12px; }
html[data-ui="human"] .rail-controls .icon-btn { border-radius: 50%; border-color: transparent; }
html[data-ui="human"] .dc-message, html[data-ui="human"] .dc-embed { color-scheme: dark; }

/* Motion: calm. Only these happen: the page fades in, the current tab glides, menus pop, the greeting lands once per visit. */
:is(html[data-ui="human"], html[data-motion="calm"]) .dashboard-shell::before { display: none; }
:is(html[data-ui="human"], html[data-motion="calm"]) .dashboard-workspace :is(.btn, .stat, .task-card, .box, .search-trigger, .icon-btn):hover { transform: none !important; top: 0 !important; box-shadow: none; }
:is(html[data-ui="human"], html[data-motion="calm"]) .dashboard-workspace :is(.stat, .task-card, .box).lit { top: 0 !important; }
:is(html[data-ui="human"], html[data-motion="calm"]) .dashboard-workspace :is(.btn.primary):hover { box-shadow: none; }
:is(html[data-ui="human"], html[data-motion="calm"]) .dashboard-workspace main :is(.stack, .layout) > * , :is(html[data-ui="human"], html[data-motion="calm"]) .dashboard-workspace :is(.pagehead, .pagehead-content, .overview-art-motion) { animation: none !important; }
@media (prefers-reduced-motion: no-preference) {
  /* Page changes are one clean crossfade (see the end of this file); browsers without it get a plain fade. */
  @supports not (view-transition-name: a) { html[data-ui="human"][data-motion="full"] .dashboard-workspace > main { animation: h-enter .2s ease both; } }
  @keyframes h-enter { from { opacity: 0; } }
  html[data-ui="human"][data-motion="full"].intro .pagehead-greeting { animation: h-greet .6s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes h-greet { from { opacity: 0; transform: translateY(6px); } }
  html[data-ui="human"] ::view-transition-group(navpill) { animation-duration: .28s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
}
html[data-motion="calm"] *, html[data-motion="calm"] *::before, html[data-motion="calm"] *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html[data-motion="calm"]::view-transition-group(*), html[data-motion="calm"]::view-transition-old(*), html[data-motion="calm"]::view-transition-new(*) { animation: none !important; }

/* Picker thumbnails (Settings > Look) */
.t-human .bar { inset: 0 0 auto; height: 9px; border-radius: 0; }
.t-human .card { inset: 15px 6px 5px; border-radius: 8px; }

/* Page changes: a quick fade, and the current tab glides to its new place. */
html[data-ui="human"] .dashboard-rail { view-transition-name: none; }
html[data-ui="human"]:active-view-transition-type(forward)::view-transition-old(root), html[data-ui="human"]:active-view-transition-type(back)::view-transition-old(root) { animation: vt-out .12s linear both; }
html[data-ui="human"]:active-view-transition-type(forward)::view-transition-new(root), html[data-ui="human"]:active-view-transition-type(back)::view-transition-new(root) { animation: vt-in .2s linear .08s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* Quiet page header: the title, and a status only when something needs attention. The overview keeps one calm status line. */
html[data-ui="human"] .pagehead-content { display: flex; flex-direction: column; }
html[data-ui="human"] .pagehead-greeting { order: 1; } html[data-ui="human"] .pagehead-title { order: 2; } html[data-ui="human"] .pagehead-status { order: 3; } html[data-ui="human"] .pagehead-meta { order: 4; }
html[data-ui="human"] .pagehead:not(.overview-hero) .pagehead-status .live { display: none; }
html[data-ui="human"] .pagehead:not(.overview-hero) .label.success, html[data-ui="human"] .pagehead:not(.overview-hero) .pagehead-meta { display: none; }
html[data-ui="human"] .pagehead:not(.overview-hero) .pagehead-status { margin: 0; }
html[data-ui="human"] .pagehead-title { align-items: center; }
