:root {
  color-scheme: dark;
  --bg: #0a0a0a; --sidebar: #111111; --panel: #141414; --raised: #202020;
  --hover: #292929; --border: #333333; --border-soft: #262626;
  --text: #f5f5f5; --muted: #b0b0b0; --subtle: #8c8c8c;
  --accent: #8ab4ff; --accent-hover: #a4c5ff; --primary: #2563eb; --primary-hover: #1d4ed8; --accent-soft: #3b82f612;
  --green: #78c4a0; --shadow: 0 16px 48px #0006; --sidebar-width: 260px;
  --ease: cubic-bezier(.2,.7,.2,1);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html[data-theme=light] {
  color-scheme: light; --bg: #ffffff; --sidebar: #fff; --panel: #fff; --raised: #f5f5f5;
  --hover: #eeeeee; --border: #dddddd; --border-soft: #e9e9e9; --text: #111111;
  --muted: #555555; --subtle: #737373; --accent: #2563eb; --accent-hover: #1d4ed8;
  --accent-soft: #3b82f610; --green: #277c57; --shadow: 0 16px 48px #00000010;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a, button { transition: color .16s, background-color .16s, border-color .16s, box-shadow .16s, transform .18s var(--ease); }
a:hover { color: var(--accent); }
button { color: inherit; background: transparent; border: 0; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; font-weight: 620; line-height: 1.25; letter-spacing: -.9px; overflow-wrap: anywhere; }
h2 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.25px; }
h3 { font-size: 14px; font-weight: 600; }
p { line-height: 1.7; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); } .accent-text { color: var(--accent); } .danger { color: #e99688; }
html[data-theme=light] .danger { color: #ad3527; }
.block { display: block; } .hidden, [hidden] { display: none !important; }
.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; width: 34px; height: 34px; color: var(--muted); }
.icon-button:hover { background: var(--hover); color: var(--text); }
.skip-link { position: fixed; top: -60px; left: 20px; padding: 10px 18px; border-radius: 8px; background: var(--primary); color: #ffffff; z-index: 100; }
.skip-link:focus { top: 10px; }
.page-progress { position: fixed; inset: 0 auto auto 0; height: 2px; width: 0; background: var(--accent); z-index: 100; pointer-events: none; }
.page-loading .page-progress { width: 75%; transition: width 5s cubic-bezier(.1,.7,.1,1); }

/* Navigation */
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40; background: var(--sidebar); border-right: 1px solid var(--border); }
.sidebar-header { min-height: 72px; position: relative; display: flex; align-items: center; padding: 0 12px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 8px; border-radius: 8px; text-align: left; width: 100%; }
button.brand:hover { background: var(--raised); }
.brand-mark { display: block; color: var(--accent); width: 32px; height: 32px; flex: 0 0 auto; }
.brand-copy { display: block; min-width: 0; flex: 1; }
.brand-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 550; }
.brand-copy small { display: block; margin-top: 2px; color: var(--subtle); font-size: 10px; }
.account-chevron { color: var(--subtle); } .account-chevron .ui-icon { width: 14px; height: 14px; }
.account-menu { position: absolute; left: 12px; top: 66px; width: 270px; max-width: calc(100vw - 24px); padding: 7px; background: var(--panel); border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow); z-index: 60; animation: float-in .14s var(--ease); }
.account-identity { display: flex; align-items: center; gap: 10px; padding: 10px 8px 14px; margin-bottom: 5px; border-bottom: 1px solid var(--border); min-width: 0; }
.account-identity>div { min-width: 0; } .account-identity strong { font-size: 12px; display: block; }
.account-identity small { font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.account-menu>a, .account-menu button { display: flex; gap: 10px; align-items: center; padding: 10px; width: 100%; border-radius: 5px; font-size: 12px; text-align: left; }
.account-menu .ui-icon { width: 17px; height: 17px; color: var(--muted); }
.account-menu>a:hover, .account-menu button:hover { background: var(--hover); color: var(--text); }
.account-menu form { border-top: 1px solid var(--border); margin-top: 5px; padding-top: 5px; }
.quick-search { display: flex; align-items: center; gap: 9px; margin: 6px 15px 14px; padding: 8px 10px; min-height: 36px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); text-align: left; font-size: 12px; background: var(--panel); }
.quick-search:hover { border-color: var(--subtle); color: var(--text); }
.quick-search .ui-icon { width: 16px; height: 16px; }
.quick-search kbd { margin-left: auto; border: 0; padding: 0; background: transparent; font-size: 10px; }
kbd { color: var(--subtle); background: var(--raised); border: 1px solid var(--border); border-radius: 4px; padding: 2px 5px; font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.sidebar-nav { padding: 0 12px 16px; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.nav-item, .nav-group summary { display: flex; gap: 11px; align-items: center; min-height: 37px; padding: 8px 10px; margin: 2px 0; border-radius: 6px; font-size: 12px; color: var(--muted); cursor: pointer; list-style: none; position: relative; }
.nav-item .ui-icon, .nav-group summary>.ui-icon { width: 18px; height: 18px; opacity: .85; }
.nav-item:hover, .nav-group summary:hover { background: var(--raised); color: var(--text); }
.nav-item.active, .nav-group.is-active>summary { color: var(--text); background: var(--raised); }
.nav-item.active>.ui-icon, .nav-group.is-active>summary>.ui-icon { color: var(--accent); opacity: 1; }
.nav-group summary::-webkit-details-marker { display: none; }
.chevron { margin-left: auto; color: var(--subtle); display: inline-flex; transition: transform .16s var(--ease); }
.chevron .ui-icon { width: 13px; height: 13px; }
.nav-group[open]>summary .chevron { transform: rotate(90deg); }
.nav-heading { padding: 20px 10px 7px; color: var(--subtle); font-size: 10px; font-weight: 500; letter-spacing: .2px; }
.submenu { margin: 4px 0 7px 19px; padding: 2px 0 2px 17px; border-left: 1px solid var(--border); display: grid; gap: 2px; animation: float-in .16s var(--ease); }
.submenu a { color: var(--muted); padding: 7px 9px; font-size: 11px; border-radius: 5px; }
.submenu a:hover { color: var(--text); background: var(--raised); }
.submenu a[aria-current=page] { color: var(--accent); background: var(--accent-soft); }
.flyout-heading { display: none; }
.sidebar-footer { padding: 0 12px; border-top: 1px solid var(--border-soft); }
.workspace-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; padding: 12px 0 9px; }
.workspace-shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 7px 2px; border-radius: 6px; color: var(--muted); }
.workspace-shortcuts a:hover, .workspace-shortcuts a[aria-current=page] { background: var(--raised); color: var(--text); }
.workspace-shortcuts .ui-icon { width: 16px; height: 16px; } .workspace-shortcuts span { font-size: 9px; white-space: nowrap; }
.sidebar-bottom { display: flex; align-items: center; gap: 6px; color: var(--subtle); padding: 8px 0 10px; border-top: 1px solid var(--border-soft); font-size: 9px; }
.sidebar-bottom .ui-icon { width: 17px; height: 17px; } .sidebar-bottom small { margin-left: auto; font-size: 9px; padding-right: 7px; }
.nav-tooltip { position: fixed; z-index: 80; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--text); color: var(--bg); font-size: 11px; pointer-events: none; box-shadow: var(--shadow); }
.mobile-menu, .mobile-nav-close, .sidebar-backdrop { display: none; }
.workspace { margin-left: var(--sidebar-width); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 0 34px; border-bottom: 1px solid var(--border-soft); }
.breadcrumbs { display: flex; align-items: center; gap: 13px; font-size: 11px; min-width: 0; color: var(--subtle); }
.breadcrumbs>span { color: var(--border); } .breadcrumbs strong { font-weight: 450; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.top-actions>a { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.top-actions>a:hover { color: var(--text); } .top-actions .ui-icon { width: 16px; height: 16px; }
.top-divider { height: 18px; width: 1px; background: var(--border); }
.avatar { display: inline-flex !important; align-items: center; justify-content: center; height: 29px; width: 29px; border-radius: 50%; background: var(--accent-soft); color: var(--accent) !important; border: 1px solid #3b82f630; font-size: 11px; flex-shrink: 0; }
.theme-button>span { display: flex; } .theme-moon, html[data-theme=light] .theme-sun { display: none !important; }
html[data-theme=light] .theme-moon { display: flex !important; }
main { width: 100%; max-width: 1370px; margin: 0 auto; padding: 38px 36px 56px; flex: 1; min-width: 0; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 36px; border-top: 1px solid var(--border-soft); color: var(--subtle); font-size: 10px; }
footer>div { display: flex; gap: 16px; align-items: center; } footer nav { display: flex; gap: 21px; flex-wrap: wrap; }
.footer-brand { color: var(--muted); font-size: 11px; font-weight: 600; } .footer-brand span { font-weight: 400; margin-left: 5px; color: var(--subtle); }

/* The collapsed rail uses fixed flyouts so scroll containers cannot clip controls. */
.collapsed { --sidebar-width: 72px; }
.collapsed .sidebar-header { padding: 0 9px; }
.collapsed .brand { padding: 8px; justify-content: center; }
.collapsed .brand-copy, .collapsed .account-chevron, .collapsed .quick-search .nav-label, .collapsed .nav-label, .collapsed .chevron, .collapsed .nav-heading span, .collapsed .workspace-shortcuts span, .collapsed .sidebar-bottom>span, .collapsed .sidebar-bottom>small { display: none; }
.collapsed .quick-search { margin: 6px 15px 14px; padding: 8px; justify-content: center; }
.collapsed .sidebar-nav { padding-left: 12px; padding-right: 12px; }
.collapsed .nav-item, .collapsed .nav-group summary { justify-content: center; padding: 9px; }
.collapsed .nav-heading { padding: 0; height: 18px; margin-bottom: 9px; border-bottom: 1px solid var(--border-soft); }
.collapsed .submenu { position: fixed; left: 81px; top: var(--flyout-top,100px); margin: 0; width: 226px; padding: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); z-index: 60; }
.collapsed .flyout-heading { display: block; font-size: 11px; padding: 6px 9px 10px; color: var(--text); }
.collapsed .submenu a { font-size: 12px; padding: 9px; }
.collapsed .workspace-shortcuts { grid-template-columns: 1fr; padding: 8px 0; }
.collapsed .workspace-shortcuts a { padding: 9px 0; }
.collapsed .sidebar-bottom { justify-content: center; padding: 8px 0; }
.collapsed [data-collapse]>.ui-icon { transform: rotate(180deg); }

/* Overview */
.feature-icon, .mobile-tabbar { display: none; }
.table-hint { color: var(--muted); font-size: 12px; padding: 8px 0; display: flex; align-items: center; gap: 6px; }
.table-hint .ui-icon { width: 15px; height: 15px; }
.dashboard-intro { text-align: center; padding-top: 0; margin-bottom: 29px; }
.announcement { display: inline-flex; align-items: center; gap: 9px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 20px; color: var(--muted); font-size: 10px; background: var(--panel); margin-bottom: 30px; }
.announcement:hover { border-color: var(--subtle); color: var(--text); }
.announcement .ui-icon { width: 13px; height: 13px; margin-left: 5px; }
.announcement-divider { width: 1px; height: 10px; background: var(--border); }
.announcement-note { color: var(--subtle); }
.accent-dot, .green-dot, .gray-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.green-dot { background: var(--green); } .gray-dot { background: var(--subtle); }
.dashboard-intro h1 { font-size: clamp(27px,2.5vw,35px); font-weight: 580; letter-spacing: -1.1px; }
.dashboard-intro p { margin-top: 10px; font-size: 12px; color: var(--muted); }
.hero-search { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--border); background: var(--panel); border-radius: 10px; text-align: left; color: var(--subtle); box-shadow: 0 0 0 4px #b0b0b004; margin-bottom: 29px; }
.hero-search:hover { color: var(--muted); border-color: var(--subtle); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero-search>span { flex: 1; font-size: 12px; } .hero-search .ui-icon { width: 18px; height: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.feature-card { border: 1px solid var(--border); background: var(--panel); border-radius: 12px; padding: 8px; min-width: 0; display: flex; flex-direction: column; }
.feature-card:hover { border-color: #646464; transform: translateY(-2px); box-shadow: 0 7px 22px #0000000a; }
.feature-content { padding: 20px 14px 14px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.card-kicker { font-size: 8px; letter-spacing: 1.2px; color: var(--subtle); margin-bottom: 7px; }
.feature-content h2 { font-size: 16px; font-weight: 580; letter-spacing: -.35px; }
.feature-content p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 10px 0 23px; }
.feature-content .button { font-size: 11px; margin-top: auto; } .feature-content .button .ui-icon { width: 14px; height: 14px; }
.card-art { position: relative; height: 179px; background: linear-gradient(145deg,#202020,#171717); border: 1px solid #b0b0b00c; border-radius: 7px; overflow: hidden; color: var(--accent); }
html[data-theme=light] .card-art { background: linear-gradient(145deg,#fafafa,#f1f1f1); border-color: #dddddd; }
.dotted-square { position: absolute; inset: 9px; border: 1px dashed #b0b0b026; border-radius: 4px; }
.folder-icon { width: 57px; height: 39px; position: absolute; left: calc(50% - 29px); top: 61px; border: 1px solid #77777760; background: linear-gradient(120deg,#353535,#2a2a2a); border-radius: 5px; box-shadow: 0 8px 18px #00000015; transform: rotate(-4deg); transition: transform .2s var(--ease); }
.folder-icon:before { content: ''; position: absolute; top: -8px; left: -1px; width: 26px; height: 9px; background: #353535; border: 1px solid #77777760; border-bottom: none; border-radius: 5px 5px 0 0; }
html[data-theme=light] .folder-icon, html[data-theme=light] .folder-icon:before { background: #dddddd; border-color: #b7b7b7; }
.cursor-art { position: absolute; left: calc(50% + 17px); top: 91px; transform: rotate(-8deg); }
.cursor-art .ui-icon { width: 24px; height: 24px; fill: var(--accent); stroke: var(--accent); stroke-width: 1; }
.feature-card:hover .folder-icon { transform: translateY(-3px) rotate(-2deg); }
.art-label { position: absolute; bottom: 24px; width: 100%; left: 0; font-size: 9px; color: var(--subtle); text-align: center; }
.server-art { padding: 33px 29px 0; }
.server-line { height: 31px; display: flex; align-items: center; gap: 10px; padding: 0 12px; margin-bottom: 12px; border: 1px solid #88888833; border-radius: 20px; background: #b0b0b00b; }
.server-line:first-child { opacity: .55; transform: translateX(8px); border-style: dashed; }
.server-line b { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #3b82f610; }
.server-line>span { width: 63%; height: 5px; background: #3b82f6; border-radius: 5px; }
.server-line i { margin-left: auto; display: flex; color: var(--accent); } .server-line .ui-icon { height: 13px; width: 13px; }
.skeleton { display: flex; flex-wrap: wrap; gap: 6px; padding: 3px 14px; }
.skeleton i { width: 60%; height: 4px; background: #b0b0b020; border-radius: 3px; } .skeleton i:nth-child(2) { width: 30%; } .skeleton i:nth-child(3) { width: 45%; }
.community-art { display: flex; align-items: center; justify-content: center; gap: 22px; padding-bottom: 17px; }
.community-art:before { content: ''; position: absolute; inset: 15px 30px; border: 1px dashed #b0b0b018; border-radius: 50%; transform: rotate(-15deg); }
.art-connection { height: 1px; background: #3b82f640; width: 58%; position: absolute; left: 21%; top: calc(50% - 8px); }
.art-person { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #b0b0b030; background: #242424; border-radius: 10px; z-index: 1; color: var(--muted); transform: rotate(-6deg); }
.person-center { width: 51px; height: 51px; background: #3b82f614; color: var(--accent); border-color: #3b82f645; transform: rotate(0); }
.person-center .ui-icon { width: 26px; height: 26px; } .person-right { transform: rotate(6deg); }
html[data-theme=light] .art-person { background: #f5f5f5; } html[data-theme=light] .person-center { background: #edf4ff; }
.dashboard-lower { display: grid; grid-template-columns: 1.25fr 1fr; gap: 17px; margin-top: 23px; }
.activity-panel .stat-grid { margin: 23px 0 0; padding-bottom: 24px; border-bottom: 1px solid var(--border-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.stat-grid strong { font-size: 27px; line-height: 1.3; font-weight: 480; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.stat-grid span, .stat-grid small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.quiet-link { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); padding-top: 17px; }
.quiet-link>.ui-icon { width: 16px; height: 16px; } .quiet-link>.ui-icon:last-child { margin-left: auto; }
.roadmap-panel { background: radial-gradient(at top right,#3b82f608,transparent 75%),var(--panel); display: flex; flex-direction: column; align-items: flex-start; }
.roadmap-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; }
.roadmap-panel h2 { margin: 20px 0 9px; font-size: 19px; font-weight: 550; letter-spacing: -.4px; }
.roadmap-panel p { font-size: 11px; color: var(--muted); max-width: 340px; }
.roadmap-panel>a { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; margin-top: auto; padding-top: 17px; color: var(--accent); }
.roadmap-panel>a .ui-icon { width: 14px; height: 14px; }

/* Shared pages and controls */
.panel { padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); min-width: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 1px 0 29px; }
.eyebrow { color: var(--subtle); font-size: 9px; font-weight: 500; letter-spacing: 1.3px; text-transform: uppercase; }
.page-heading h1 { margin-top: 7px; } .page-heading p { color: var(--muted); font-size: 12px; margin-top: 10px; max-width: 670px; }
.page-heading>a:not(.button) { font-size: 11px; color: var(--muted); white-space: nowrap; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-title>a { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.section-title>a:hover { color: var(--accent); } .section-title>a .ui-icon { width: 13px; height: 13px; }
.section-title h2 { font-size: 14px; }
.button, .primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 13px; min-height: 37px; background: var(--raised); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-weight: 500; font-size: 12px; line-height: 1.35; white-space: nowrap; }
.button:hover { background: var(--hover); border-color: var(--subtle); color: var(--text); box-shadow: 0 2px 5px #00000008; }
.button:active, .primary:active { transform: translateY(1px); }
.button .ui-icon, .primary .ui-icon { width: 15px; height: 15px; }
.button.primary, .primary { background: var(--primary); border-color: var(--primary); color: #ffffff; }
.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #ffffff; }
.button.small { font-size: 10px; min-height: 31px; padding: 7px 10px; }
.button.danger { color: #f4aba0; background: #b2462e20; border-color: #b2462e60; }
html[data-theme=light] .button.danger { color: #9e2e1e; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.button.is-loading, .primary.is-loading { cursor: wait; pointer-events: none; opacity: .7; }
.is-loading:after { content: ''; width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; }
.stack { display: flex; flex-direction: column; gap: 19px; } .stack>h2 { margin-bottom: 3px; }
.spaced { margin-top: 24px; } .narrow { max-width: 480px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.6; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #777777; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; } input::placeholder, textarea::placeholder { color: var(--subtle); }
input[type=checkbox] { accent-color: var(--accent); width: 15px; min-height: 15px; margin: 0; }
input[type=file] { color: var(--muted); font-size: 11px; }
input::file-selector-button { color: var(--text); background: var(--raised); border: 0; border-right: 1px solid var(--border); padding: 7px 10px; margin: -10px 12px -10px -12px; cursor: pointer; }
.checkbox { flex-direction: row; align-items: center; gap: 9px; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 24px; } .filter-bar input { flex: 1; } .filter-bar select { max-width: 260px; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.project-card { display: flex; flex-direction: column; gap: 17px; min-height: 222px; transition: border-color .18s, transform .18s var(--ease); }
.project-card:hover { border-color: var(--subtle); transform: translateY(-1px); }
.project-card p { color: var(--muted); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tag, .badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 9px; font-weight: 450; line-height: 1.5; white-space: nowrap; }
.tag { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge[data-status=accepted], .badge[data-status=active], .badge[data-status=verified] { color: var(--green); border-color: #78c4a044; background: #78c4a008; }
.badge[data-status=pending], .badge[data-status=submitted], .badge[data-status=under-review], .badge[data-status=changes-requested] { color: var(--accent); background: var(--accent-soft); border-color: #3b82f62c; }
.badge[data-status=declined], .badge[data-status=terminated], .badge[data-status=suspended] { color: #e58e81; border-color: #e58e8130; }
.card-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--border-soft); color: var(--subtle); font-size: 10px; }
.card-footer a { color: var(--muted); } .card-footer a:hover { color: var(--accent); }
.empty { text-align: center; padding: 65px 25px; }
.empty>span { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid var(--border); border-radius: 15px; background: var(--raised); color: var(--accent); margin: 0 auto 23px; }
.empty>span .ui-icon { width: 27px; height: 27px; }
.empty h2 { font-size: 22px; } .empty p { font-size: 12px; color: var(--muted); max-width: 470px; margin: 13px auto 24px; }
.notice, .toast { padding: 14px 16px; margin-bottom: 24px; border: 1px solid #3b82f630; border-radius: 7px; background: var(--accent-soft); color: var(--muted); font-size: 11px; line-height: 1.8; }
.notice a { color: var(--accent); } .notice.warning { border-color: var(--accent); }
.toast { display: flex; align-items: center; gap: 10px; border-color: var(--border); background: var(--raised); color: var(--text); animation: float-in .2s var(--ease); }
.toast>.ui-icon { color: var(--accent); width: 17px; height: 17px; } .toast>span { flex: 1; }
.toast .icon-button { width: 25px; height: 25px; margin: -3px -6px -3px auto; } .toast .icon-button .ui-icon { width: 15px; height: 15px; }
.toast.is-error { border-color: #e58e8170; } .toast.is-error>.ui-icon { color: #e58e81; }
.editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 268px; gap: 22px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 22px; }
.editor-aside { position: sticky; top: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.editor-aside>.badge { align-self: flex-start; } .editor-aside p { color: var(--muted); font-size: 11px; }
.editor-aside>a:last-child { font-size: 11px; color: var(--muted); }
.editor-section { border: 1px solid var(--border-soft); background: var(--bg); border-radius: 7px; padding: 18px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 15px; }
.editor-section input, .editor-section textarea { background: var(--panel); }
legend { font-size: 10px; color: var(--subtle); padding: 0 7px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; text-align: left; padding: 4px 0; width: fit-content; }
.text-button:hover { color: var(--text); }
.publish-bar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 24px; }
.publish-bar p { color: var(--muted); font-size: 11px; margin-top: 7px; }
[data-save-state] { font-size: 10px; color: var(--subtle); } [data-save-state].is-dirty { color: var(--accent); }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; }
.prose h2 { margin: 28px 0 12px; } .prose h2:first-child { margin-top: 0; } .prose h3 { margin: 17px 0 7px; }
.prose p { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.comment { padding: 19px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.comment p { margin: 13px 0; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment details { font-size: 10px; margin: 10px 0; }
.revision-link { display: block; color: var(--muted); font-size: 11px; }
.revision-link small { display: block; margin-top: 4px; font-size: 10px; color: var(--subtle); }
details>summary { cursor: pointer; font-size: 12px; list-style-position: inside; } details .stack { margin-top: 18px; }
pre { padding: 16px; background: var(--bg); border: 1px solid var(--border-soft); border-radius: 6px; font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 600px; overflow: auto; }
.diff { max-width: 100%; }
.table-wrap { overflow: auto; border-radius: 5px; scrollbar-width: thin; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 11px; }
th { padding: 14px 12px; color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--border); background: #b0b0b004; }
td { padding: 15px 12px; border-bottom: 1px solid var(--border-soft); line-height: 1.7; vertical-align: top; }
tr:last-child td { border-bottom: 0; } tbody tr:hover { background: #b0b0b003; }
.plan-tile { transition: border-color .17s, transform .17s var(--ease); }
.plan-tile:hover { border-color: var(--subtle); transform: translateY(-1px); color: var(--text); }
.plan-tile h2 { margin: 12px 0 9px; font-size: 16px; } .plan-tile p { font-size: 11px; color: var(--muted); margin-bottom: 20px; }
.plan-tile>span:last-child { font-size: 10px; }
.plan-content article { padding: 25px 0; border-bottom: 1px solid var(--border-soft); } .plan-content article:first-child { padding-top: 0; }
.plan-content h3 { margin-bottom: 10px; }
.plan-content article>small { display: inline-block; margin-bottom: 12px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 4px; font-size: 10px; color: var(--accent); }
.plan-content p, .plan-content li { font-size: 12px; line-height: 1.8; color: var(--muted); } .plan-content p { margin: 12px 0; white-space: pre-wrap; }
.developer-card { text-align: center; }
.developer-avatar { display: grid; place-items: center; height: 46px; width: 46px; margin: 0 auto 17px; background: var(--accent-soft); color: var(--accent); border: 1px solid #3b82f620; border-radius: 14px; font-size: 20px; }
.developer-card h2 { margin-bottom: 9px; } .presence { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.developer-card p { margin-top: 18px; color: var(--muted); font-size: 11px; }
.integration { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.category-hero { padding: 42px 25px; text-align: center; background: radial-gradient(at 50% 0,#3b82f609,transparent 70%),var(--panel); }
.category-symbol { display: grid; place-items: center; width: 61px; height: 61px; border: 1px solid #3b82f630; border-radius: 16px; background: var(--accent-soft); margin: 0 auto 23px; color: var(--accent); }
.category-symbol .ui-icon { width: 30px; height: 30px; }
.category-hero h2 { font-size: 24px; font-weight: 550; } .category-hero p { max-width: 510px; margin: 14px auto 24px; color: var(--muted); font-size: 12px; }
.category-hero .button-row { justify-content: center; }
.inline-form { display: flex; align-items: center; gap: 7px; min-width: 465px; }
.inline-form input, .inline-form select { width: 100px; padding: 7px; font-size: 10px; } .inline-form input { flex: 1; }
.recent-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 3px; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.recent-row:last-child { border-bottom: none; } .recent-row>span { display: flex; align-items: center; gap: 12px; }
.recent-row .ui-icon { width: 17px; height: 17px; color: var(--subtle); } .recent-row small { color: var(--subtle); font-size: 10px; display: flex; align-items: center; gap: 15px; }
.code-editor { font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.error { color: #eea293; padding: 12px; background: #b2462e15; border: 1px solid #b2462e60; border-radius: 6px; font-size: 11px; }

/* Search */
dialog { margin-top: min(16vh,150px); padding: 0; width: 550px; max-width: calc(100vw - 30px); max-height: 80dvh; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
dialog[open] { animation: dialog-in .18s var(--ease); }
dialog::backdrop { background: #00000090; backdrop-filter: blur(4px); }
dialog form { padding: 19px 19px 16px; border-bottom: 1px solid var(--border); }
dialog label { font-size: 10px; font-weight: 450; color: var(--subtle); padding-bottom: 10px; }
.search-input { display: flex; align-items: center; gap: 12px; }
.search-input>.ui-icon { width: 20px; height: 20px; color: var(--subtle); }
.search-input input { background: transparent; border: none; border-radius: 0; padding: 4px 0; font-size: 15px; box-shadow: none; }
.search-input input:focus { box-shadow: none; }
.key-button { border: 1px solid var(--border); padding: 3px 6px; border-radius: 4px; font-size: 9px; color: var(--subtle); }
.command-section-label { padding: 15px 22px 3px; font-size: 9px; color: var(--subtle); }
.command-links { display: grid; gap: 2px; padding: 7px 10px 11px; }
.command-links a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 6px; }
.command-links a:hover, .command-links a:focus-visible { background: var(--raised); outline: none; color: var(--text); }
.command-links a>.ui-icon { width: 18px; height: 18px; color: var(--muted); }
.command-links a>.ui-icon:last-child { margin-left: auto; width: 13px; height: 13px; opacity: 0; transition: opacity .15s; }
.command-links a:hover>.ui-icon:last-child, .command-links a:focus-visible>.ui-icon:last-child { opacity: 1; }
.command-links span { font-size: 12px; } .command-links small { display: block; margin-top: 3px; font-size: 10px; color: var(--subtle); }
.command-footer { display: flex; justify-content: space-between; gap: 15px; padding: 12px 21px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 9px; }
.command-footer kbd { margin-right: 4px; }

/* Account pages */
.auth-top { display: flex; align-items: center; justify-content: space-between; min-height: 79px; padding: 0 40px; border-bottom: 1px solid var(--border-soft); }
.auth-top .brand { width: fit-content; gap: 11px; padding: 0; }
.auth-top .brand strong { font-size: 19px; font-weight: 650; letter-spacing: -.6px; } .auth-top .brand small { font-size: 14px; color: var(--subtle); font-weight: 400; margin-left: 5px; }
.auth-main { max-width: 1160px; margin: 0 auto; padding: 65px 40px; }
.auth-grid { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 85px; align-items: start; }
.auth-story { position: relative; padding: 23px 0; }
.auth-story h1 { font-size: clamp(38px,4vw,49px); line-height: 1.17; letter-spacing: -1.9px; font-weight: 560; margin: 22px 0; }
.auth-story em { color: var(--accent); font-style: normal; } .auth-story>p { max-width: 380px; color: var(--muted); font-size: 13px; }
.auth-points { display: flex; flex-wrap: wrap; gap: 13px 19px; margin-top: 27px; font-size: 10px; color: var(--muted); }
.auth-points span { display: inline-flex; align-items: center; gap: 6px; } .auth-points .ui-icon { width: 13px; height: 13px; color: var(--subtle); }
.auth-story>small { display: block; margin-top: 225px; max-width: 360px; color: var(--subtle); font-size: 9px; }
.auth-panel { padding: 33px; border: 1px solid var(--border); background: var(--panel); border-radius: 12px; }
.logo-mark { display: grid; place-items: center; height: 39px; width: 39px; margin-bottom: 23px; border: 1px solid #3b82f62c; background: var(--accent-soft); border-radius: 10px; color: var(--accent); }
.logo-mark .brand-mark { height: 26px; width: 26px; }
.auth-panel h2 { font-size: 23px; font-weight: 580; letter-spacing: -.6px; margin-bottom: 10px; } .auth-panel>p.muted { margin-bottom: 26px; font-size: 11px; }
.auth-panel .primary { width: 100%; justify-content: space-between; padding: 11px 13px; }
.auth-panel label { font-size: 11px; } .auth-panel input { padding: 11px 12px; }
.divider { position: relative; border-top: 1px solid var(--border); text-align: center; margin: 29px 0 23px; height: 1px; }
.divider span { position: relative; top: -9px; padding: 0 11px; background: var(--panel); color: var(--subtle); font-size: 10px; }
.github { width: 100%; margin-bottom: 20px; } .github .ui-icon { width: 17px; height: 17px; }
.integration-off { font-size: 11px; color: var(--subtle); text-align: center; border: 1px dashed var(--border); border-radius: 6px; padding: 12px; margin-bottom: 23px; }
.auth-switch { font-size: 11px; color: var(--muted); margin-bottom: 18px; } .auth-switch a { color: var(--accent); }
.orbit-art { position: absolute; left: -12px; top: 370px; width: 350px; height: 210px; perspective: 600px; }
.orbit { position: absolute; inset: 30px 5px; border: 1px solid #3b82f626; border-radius: 50%; transform: rotate(-22deg) rotateX(40deg); }
.orbit.two { inset: 48px 40px; transform: rotate(24deg) rotateX(35deg); border-style: dashed; } .orbit.three { inset: 66px 80px; border-color: #3b82f645; }
.orbit-art>b { position: absolute; left: 143px; top: 70px; color: var(--accent); transform: skew(-10deg); } .orbit-art>b .ui-icon { height: 53px; width: 53px; stroke-width: 1; }
.orbit-art>i { position: absolute; right: 55px; top: 55px; height: 6px; width: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 25px #3b82f640; }

@keyframes float-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(-8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: .10s; } ::view-transition-new(root) { animation-duration: .14s; }

@media (min-width: 1550px) {
  main { padding-top: 43px; } .dashboard-intro { margin-bottom: 34px; }
  .card-art { height: 205px; } .folder-icon { top: 74px; } .cursor-art { top: 105px; }
  .server-art { padding-top: 44px; } .feature-content { padding: 23px 17px 18px; }
}
@media (max-width: 1150px) {
  :root { --sidebar-width: 240px; } main { padding: 30px 26px 45px; } .topbar { padding: 0 26px; }
  .top-actions { gap: 13px; } .top-projects { display: none !important; }
  .feature-grid { gap: 12px; } .feature-content { padding: 18px 10px 11px; }
  .feature-content h2 { font-size: 15px; } .feature-content p { font-size: 11px; }
  .card-art { height: 159px; } .folder-icon { top: 53px; } .cursor-art { top: 84px; }
  .server-art { padding: 30px 20px 0; } .community-art { gap: 12px; }
  .art-person { width: 30px; height: 30px; border-radius: 8px; } .person-center { width: 42px; height: 42px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-grid { grid-template-columns: minmax(0,1fr) 264px; } .editor-layout { grid-template-columns: minmax(0,1fr) 235px; }
  .auth-grid { gap: 40px; grid-template-columns: minmax(0,1fr) 400px; }
  footer { padding: 23px 26px; } .footer-copyright { display: none; }
}
@media (max-width: 900px) {
  .content-grid, .editor-layout { grid-template-columns: minmax(0,1fr); } .editor-aside { position: static; }
  .feature-grid { grid-template-columns: 1fr; } .feature-card { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 4px; }
  .card-art { height: 100%; min-height: 180px; } .feature-content { padding: 16px; } .feature-content p { font-size: 12px; margin-bottom: 17px; }
  .folder-icon { top: calc(50% - 29px); } .cursor-art { top: calc(50% + 1px); } .art-label { bottom: 27px; font-size: 8px; }
  .server-art { padding: 50px 16px 0; } .community-art { gap: 9px; }
  .art-person { width: 29px; height: 29px; } .person-center { width: 40px; height: 40px; } .person-center .ui-icon { width: 23px; height: 23px; }
  .art-person>.ui-icon { width: 17px; height: 17px; } .person-center>.ui-icon { width: 23px; height: 23px; }
  .dashboard-lower { grid-template-columns: 1fr; } .roadmap-panel>a { margin-top: 8px; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; } .top-actions { gap: 10px; }
  .top-actions>a>span, .top-divider { display: none; } .breadcrumbs { gap: 9px; }
  .project-grid { grid-template-columns: 1fr; } .auth-story { display: none; } .auth-grid { grid-template-columns: 1fr; max-width: 430px; margin: auto; }
  footer { flex-direction: column; align-items: flex-start; gap: 13px; }
}
/* Tablets and phones share the drawer, leaving the full screen for content. */
@media (max-width: 1023px) {
  :root, .collapsed { --sidebar-width: min(320px, calc(100vw - 32px)); }
  .sidebar { height: 100vh; height: 100dvh; transform: translateX(-100%); transition: transform .2s var(--ease); box-shadow: none; padding-top: env(safe-area-inset-top,0px); }
  .workspace { margin-left: 0; } .menu-open { overflow: hidden; }
  .menu-open .sidebar { transform: translateX(0); box-shadow: 15px 0 65px #0005; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: #00000080; backdrop-filter: blur(2px); }
  .sidebar-backdrop:not([hidden]) { display: block; }
  .mobile-menu, .mobile-nav-close { display: inline-flex; flex-shrink: 0; }
  .sidebar-header { padding-right: 10px; min-height: 76px; } .sidebar-header .brand { flex: 1; min-height: 48px; }
  .sidebar-header .account-chevron { display: none; }
  .brand-copy strong { font-size: 14px; } .brand-copy small { font-size: 12px; }
  .collapsed .brand-copy, .collapsed .quick-search .nav-label, .collapsed .nav-label, .collapsed .chevron, .collapsed .nav-heading span, .collapsed .workspace-shortcuts span, .collapsed .sidebar-bottom>span, .collapsed .sidebar-bottom>small { display: revert; }
  .collapsed .brand { justify-content: flex-start; } .collapsed .sidebar-header { padding-left: 12px; }
  .quick-search, .collapsed .quick-search { justify-content: flex-start; padding: 11px 12px; min-height: 44px; font-size: 14px; }
  .nav-item, .nav-group summary, .collapsed .nav-item, .collapsed .nav-group summary { justify-content: flex-start; padding: 11px 12px; min-height: 44px; font-size: 14px; }
  .nav-group summary>.ui-icon, .nav-item>.ui-icon { width: 20px; height: 20px; }
  .nav-heading, .collapsed .nav-heading { padding: 19px 12px 7px; height: auto; margin: 0; border: 0; font-size: 12px; }
  .collapsed .submenu { position: static; width: auto; margin: 4px 0 7px 19px; padding: 2px 0 2px 17px; border: 0; border-left: 1px solid var(--border); border-radius: 0; box-shadow: none; background: none; }
  .collapsed .flyout-heading { display: none; }
  .submenu a, .collapsed .submenu a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .workspace-shortcuts, .collapsed .workspace-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 8px 0; }
  .workspace-shortcuts a, .collapsed .workspace-shortcuts a { padding: 9px 2px; min-height: 52px; }
  .workspace-shortcuts span { font-size: 11px; } .workspace-shortcuts .ui-icon { width: 19px; height: 19px; }
  .collapsed .sidebar-bottom { justify-content: flex-start; }
  [data-collapse] { display: none; } .sidebar-bottom { padding: 12px 5px; font-size: 11px; }
  .sidebar-footer { padding-bottom: env(safe-area-inset-bottom,0px); }
  .topbar { position: sticky; top: 0; z-index: 25; min-height: 68px; padding: 4px max(18px,env(safe-area-inset-right,0px)) 4px max(18px,env(safe-area-inset-left,0px)); gap: 12px; background: var(--bg); }
  .breadcrumbs { flex: 1; font-size: 13px; gap: 10px; }
  .top-actions { gap: 7px; } .top-actions .avatar { width: 40px; height: 40px; font-size: 14px; }
  .icon-button, .top-actions .icon-button { width: 44px; height: 44px; }
  .top-actions .ui-icon { width: 20px; height: 20px; }
  .account-menu { width: min(292px,calc(100vw - 50px)); }
  .account-menu>a, .account-menu button { min-height: 44px; font-size: 14px; }
  .account-identity strong { font-size: 14px; } .account-identity small { font-size: 12px; }
  .content-grid, .editor-layout { grid-template-columns: minmax(0,1fr); } .editor-aside { position: static; }
  main { padding: 32px max(24px,env(safe-area-inset-right,0px)) 44px max(24px,env(safe-area-inset-left,0px)); }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .button, .primary, .button.small { min-height: 44px; font-size: 14px; padding: 11px 14px; }
  input, select, textarea, .auth-panel input { min-height: 44px; font-size: 16px; }
  input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; }
  label { font-size: 13px; } .page-heading p, .prose p, .project-card p, .plan-tile p { font-size: 14px; }
  .plan-content p, .plan-content li, td { font-size: 14px; }
  th { font-size: 12px; } .comment p, .editor-aside p { font-size: 14px; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; }
  .publish-bar { flex-wrap: wrap; } .publish-bar p { font-size: 13px; }
  .text-button { min-height: 44px; font-size: 13px; }
  .recent-row { min-height: 60px; font-size: 14px; } .recent-row small { font-size: 12px; }
  .command-links a { min-height: 60px; } .command-links span { font-size: 14px; } .command-links small { font-size: 12px; }
  .search-input input { font-size: 16px; } .key-button { min-width: 44px; min-height: 44px; font-size: 12px; }
  .toast { font-size: 13px; } .toast .icon-button { width: 44px; height: 44px; flex-shrink: 0; }
}
@media (min-width: 601px) and (max-width: 1023px) {
  .feature-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .feature-card { display: flex; gap: 0; }
  .card-art { height: 155px; min-height: 155px; }
  .feature-content { padding: 18px 11px 12px; } .feature-content h2 { font-size: 17px; }
  .feature-content p { font-size: 13px; margin: 10px 0 20px; }
  .feature-content .button { font-size: 12px; padding: 10px; }
  .dashboard-lower { grid-template-columns: 1.15fr 1fr; } .stat-grid span { font-size: 11px; }
}
@media (max-width: 600px) {
  .workspace { padding-bottom: calc(76px + env(safe-area-inset-bottom,0px)); }
  .topbar { min-height: 64px; gap: 8px; padding-left: max(12px,env(safe-area-inset-left,0px)); padding-right: max(12px,env(safe-area-inset-right,0px)); }
  .breadcrumbs { font-size: 13px; } .breadcrumbs>a, .breadcrumbs>span { display: none; }
  .top-actions>a:not(.avatar) { display: none; } .top-actions { gap: 2px; }
  main { padding: 28px max(16px,env(safe-area-inset-right,0px)) 32px max(16px,env(safe-area-inset-left,0px)); }
  .announcement { font-size: 11px; padding: 6px 11px; margin-bottom: 23px; min-height: 32px; }
  .announcement-note, .announcement-divider { display: none; }
  .announcement .ui-icon { display: block; }
  .dashboard-intro { margin-bottom: 24px; } .dashboard-intro h1 { font-size: clamp(26px,7.4vw,33px); letter-spacing: -.9px; }
  .dashboard-intro p { font-size: 14px; max-width: 280px; margin: 12px auto 0; }
  .hero-search { min-height: 52px; padding: 13px 14px; gap: 10px; margin-bottom: 22px; }
  .hero-search>span { font-size: 13px; } .hero-search kbd { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 13px; }
  .feature-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; padding: 18px; }
  .feature-content { padding: 0; min-width: 0; }
  .feature-content h2 { font-size: 18px; line-height: 1.35; }
  .feature-content p { font-size: 14px; line-height: 1.65; margin: 9px 0 16px; }
  .feature-content .button { width: 100%; min-height: 44px; font-size: 13px; padding: 11px; }
  .feature-content .button .ui-icon { width: 16px; height: 16px; }
  .card-kicker { font-size: 10px; letter-spacing: 1px; margin-bottom: 7px; }
  .card-art { display: grid; place-items: center; height: 44px; min-height: 44px; width: 44px; padding: 0; border-radius: 12px; border-color: #3b82f633; background: var(--accent-soft); overflow: hidden; }
  .card-art>:not(.feature-icon), .card-art:before, .card-art:after { display: none; }
  .card-art>.feature-icon { display: flex; color: var(--accent); } .feature-icon .ui-icon { height: 23px; width: 23px; }
  .dashboard-lower { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .panel { padding: 20px; border-radius: 12px; } .section-title h2 { font-size: 16px; }
  .section-title>a { font-size: 12px; min-height: 44px; }
  .stat-grid { gap: 12px; } .stat-grid strong { font-size: 28px; } .stat-grid span { font-size: 11px; }
  .activity-panel .stat-grid { margin-top: 15px; } .quiet-link { font-size: 13px; min-height: 48px; }
  .roadmap-panel h2 { font-size: 22px; } .roadmap-panel p { font-size: 14px; }
  .roadmap-panel>a { min-height: 44px; font-size: 13px; } .eyebrow { font-size: 10px; }
  .project-grid { grid-template-columns: 1fr; } .project-card h2, .plan-tile h2 { font-size: 18px; }
  .card-footer { font-size: 12px; } .card-footer a { min-height: 44px; }
  .page-heading h1 { font-size: 28px; } .page-heading { margin-bottom: 24px; }
  .page-heading>.button { width: 100%; } .page-heading>a:not(.button) { min-height: 44px; font-size: 13px; }
  .button-row { display: flex; width: 100%; gap: 8px; }
  .button-row .button { flex: 1 1 auto; min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .button { max-width: 100%; white-space: normal; text-align: center; }
  .filter-bar { flex-wrap: wrap; } .filter-bar input { flex-basis: 100%; } .filter-bar select { flex: 1; max-width: none; }
  .publish-bar { flex-direction: column; align-items: stretch; gap: 16px; } .publish-bar h2 { font-size: 18px; }
  .editor-section { padding: 16px; } .editor-main .section-title { flex-wrap: wrap; }
  .editor-aside p, .prose p, .plan-content p, .plan-content li { font-size: 14px; }
  .badge, .tag { font-size: 11px; } [data-save-state] { font-size: 12px; }
  .category-hero { padding: 30px 20px; } .category-hero h2 { font-size: 24px; }
  .category-hero p { font-size: 14px; } .category-hero .button-row { flex-direction: column; }
  .recent-row { align-items: flex-start; flex-direction: column; gap: 9px; } .recent-row>small { padding-left: 29px; }
  .developer-card p { font-size: 14px; } .presence { font-size: 12px; }
  .notice { font-size: 13px; } details>summary { font-size: 14px; min-height: 44px; padding-top: 10px; }
  .comment small { font-size: 11px; } .comment .section-title { flex-wrap: wrap; }
  .revision-link { font-size: 14px; min-height: 44px; } .revision-link small { font-size: 12px; }
  .auth-top { min-height: 72px; padding: env(safe-area-inset-top,0px) 20px 0; }
  .auth-top .brand strong { font-size: 20px; } .auth-top .brand small { font-size: 14px; }
  .auth-main { padding: 25px 16px max(30px,env(safe-area-inset-bottom,0px)); }
  .auth-panel { padding: 26px 22px; } .auth-panel h2 { font-size: 25px; }
  .auth-panel>p.muted, .auth-panel label, .auth-switch { font-size: 14px; }
  .auth-panel .primary { min-height: 48px; font-size: 15px; }
  .auth-panel .small, .integration-off { font-size: 13px; }
  footer { padding: 24px 20px; gap: 17px; } footer nav { gap: 0 18px; font-size: 12px; }
  footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-brand, .footer-brand span { font-size: 13px; }
  dialog { position: fixed; top: auto; bottom: max(12px,env(safe-area-inset-bottom,0px)); margin: 0 auto; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); width: calc(100vw - 24px); border-radius: 16px; }
  dialog form { position: sticky; top: 0; z-index: 1; background: var(--panel); }
  .command-section-label { font-size: 11px; } .command-footer { display: none; }
  .mobile-tabbar { display: grid; position: fixed; inset: auto 0 0; z-index: 30; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--sidebar); border-top: 1px solid var(--border); padding: 5px max(8px,env(safe-area-inset-right,0px)) max(5px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px)); }
  .mobile-tabbar a { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 10px; color: var(--muted); font-size: 11px; }
  .mobile-tabbar .ui-icon { width: 22px; height: 22px; }
  .mobile-tabbar a[aria-current=page] { color: var(--accent); background: var(--accent-soft); }
  .menu-open .mobile-tabbar, .field-focused .mobile-tabbar { visibility: hidden; pointer-events: none; }
  .field-focused .workspace { padding-bottom: 0; }
  .account-table table, .account-table tbody, .account-table tr, .account-table td { display: block; width: 100%; }
  .account-table thead { display: none; } .account-table tbody { display: grid; gap: 16px; }
  .account-table tr { border: 1px solid var(--border); border-radius: 10px; padding: 7px; }
  .account-table td { padding: 10px; border: 0; overflow-wrap: anywhere; }
  .account-table td:before { content: attr(data-label); display: block; margin-bottom: 7px; font-size: 12px; color: var(--muted); }
  .account-table .inline-form { min-width: 0; flex-wrap: wrap; gap: 10px; }
  .account-table .inline-form select { flex: 1 1 90px; width: auto; font-size: 16px; }
  .account-table .inline-form input { flex: 1 1 100%; width: 100%; font-size: 16px; }
  .account-table .inline-form .button { width: 100%; }
}
@media (max-width: 360px) {
  main { padding-left: 12px; padding-right: 12px; }
  .feature-card { grid-template-columns: 36px minmax(0,1fr); gap: 10px; padding: 15px; }
  .card-art { width: 36px; min-height: 36px; height: 36px; border-radius: 9px; }
  .feature-icon .ui-icon { width: 20px; height: 20px; }
  .feature-content .button { font-size: 12px; } .stat-grid { gap: 8px; }
}
@media (pointer: coarse) {
  a, button, summary { touch-action: manipulation; }
  .icon-button { min-height: 44px; min-width: 44px; }
  .feature-card:hover, .project-card:hover, .plan-tile:hover { transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .feature-card:hover, .plan-tile:hover, .project-card:hover { transform: none; }
}
@media print {
  .sidebar, .topbar, footer, .button, .primary, dialog, .notice, .skip-link, .sidebar-backdrop, .mobile-tabbar, .table-hint { display: none !important; }
  .workspace { margin: 0; padding-bottom: 0; } main { padding: 0; max-width: none; }
  :root { --bg: white; --text: black; --panel: white; --muted: #333; }
  .panel { border: 0; } .project-grid { display: block; } section { break-inside: avoid; }
}
.collapsed .submenu { max-height: calc(100dvh - 24px); overflow: auto; }
.card-footer a, .plan-tile>.accent-text, .editor-aside>a:last-child, .page-heading>a:not(.button), .auth-switch a { display: inline-flex; align-items: center; gap: 5px; }
.card-footer a .ui-icon, .plan-tile>.accent-text .ui-icon, .editor-aside>a:last-child .ui-icon, .page-heading>a:not(.button) .ui-icon, .auth-switch a .ui-icon { width: 12px; height: 12px; }
.page-heading>a:not(.button)>.ui-icon:first-child { transform: rotate(180deg); }
.collapsed [data-rail-flyout] { right: auto; bottom: auto; color: var(--text); }
@media (max-width: 1023px) {
  .inline-form input, .inline-form select, .code-editor { font-size: 16px; min-height: 44px; }
  .topbar { padding-top: max(4px,env(safe-area-inset-top,0px)); }
}
@media (max-width: 1023px) {
  input[type=file] { font-size: 16px; }
  input::file-selector-button { font-size: 14px; min-height: 44px; }
}
.panel p, .panel h2, .panel h3, .comment strong, .card-footer span, .recent-row>span { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  .top-actions>a { min-width: 44px; min-height: 44px; justify-content: center; }
  .checkbox { min-height: 44px; padding: 8px 0; }
}

/* Accessible labels remain available to assistive technology without taking layout space. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
