:root {
  color-scheme: dark;
  --bg: #151716; --panel: #1d201f; --panel2: #252927; --border: #363d38;
  --text: #f0eee8; --muted: #a7afa8; --accent: #d5b68b; --ink: #211d16; --red: #f0a09c;
  --field: #171a18; --label: #d1d6cf; --teal: #a4c8bd;
  --mono: ui-monospace,SFMono-Regular,Consolas,monospace;
  font: 14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
::selection { background: #d5b68b40; color: var(--text); }
[hidden] { display: none !important; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; border: 0; transition: background .15s,border-color .15s; }
button:disabled { opacity: .4; cursor: not-allowed; }
a { text-decoration: none; color: inherit; }
button,a,input,select,textarea { outline-offset: 4px; }
button:focus-visible,a:focus-visible,[tabindex]:focus-visible { outline: 2px solid var(--accent); }
input,select,textarea { color: var(--text); border: 1px solid #454d46; background: var(--field); padding: 12px; border-radius: 7px; width: 100%; accent-color: var(--accent); }
input:focus,select:focus,textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: 12px; font-weight: 550; color: var(--label); line-height: 1.7; }
label input,label select,label textarea { margin: 7px 0 18px; }
small { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 0; font-size: 21px; font-weight: 700; letter-spacing: -.8px; white-space: nowrap; }
.brand img { width: 35px; height: 35px; margin-right: 10px; }
.brand span { color: var(--muted); font-weight: 400; }
.brand em,.early { font: 8px var(--mono); font-style: normal; letter-spacing: 1px; border: 1px solid #4c534c; padding: 5px 7px; border-radius: 4px; color: #b9c1b9; background: #ffffff03; }
.brand em { margin-left: 18px; }
.primary { background: var(--accent); color: var(--ink); padding: 12px 19px; border: 1px solid #dec49f; border-radius: 6px; font-weight: 650; white-space: nowrap; }
.primary:hover { background: #e3c9a6; }
.primary span { margin-left: 20px; }
.secondary,.danger { background: var(--panel2); color: #dedfd8; border: 1px solid #505950; padding: 9px 13px; border-radius: 6px; font-size: 12px; }
.secondary:hover { border-color: #a9ad9d; background: #303630; }
.danger { color: var(--red); background: #332226; border-color: #5e3940; }
.text-button { padding: 0; background: none; color: var(--accent); font-weight: 600; }
.wide { width: 100%; }
.eyebrow { font: 9px var(--mono); letter-spacing: 1.6px; color: var(--muted); font-weight: 550; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #89c9a8; flex-shrink: 0; }
#auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-story { display: flex; flex-direction: column; border-right: 1px solid var(--border); padding: 38px 8% 30px; background: radial-gradient(ellipse at 0% 40%,#bc916018,transparent 60%),radial-gradient(ellipse at 100% 80%,#78a89a0d,transparent 60%),#191c19; }
.hero-copy { margin: auto 0; padding: 60px 0; }
.hero-copy h1 { font-size: clamp(40px,4.5vw,68px); font-weight: 550; letter-spacing: -3px; line-height: 1.1; margin: 24px 0; }
.hero-copy h1 span { color: var(--accent); font-family: Georgia,"Times New Roman",serif; font-style: italic; font-weight: 400; letter-spacing: -2px; }
.hero-copy>p { font-size: 14px; color: #b2b9af; line-height: 1.9; max-width: 430px; }
.architecture-preview { margin: 32px 0; border: 1px solid #454a3d; border-radius: 10px; background: #191d19; padding: 24px; max-width: 430px; }
.architecture-preview>div { display: grid; grid-template-columns: 32px 1fr; column-gap: 13px; align-items: center; }
.step-number { border: 1px solid #625744; background: #302b22; border-radius: 6px; font: 10px var(--mono); width: 30px; height: 30px; display: grid; place-items: center; color: var(--accent); grid-row: span 2; }
.architecture-preview strong { font-size: 12px; font-weight: 550; }
.architecture-preview small { font-size: 10px; margin-top: 5px; }
.architecture-preview i { display: block; width: 1px; height: 20px; background: #4e5547; margin: 5px 15px; }
.hero-bottom { display: flex; gap: 22px; color: var(--muted); font: 8px var(--mono); letter-spacing: 1px; }
.auth-story>small { font-size: 10px; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 45px 30px; }
.auth-form { width: 100%; max-width: 360px; }
.auth-form h2 { font-size: 31px; font-weight: 550; letter-spacing: -1px; margin: 19px 0 12px; }
.auth-form>p { color: var(--muted); font-size: 13px; margin: 0 0 30px; line-height: 1.8; }
.form-error { color: var(--red); font-size: 12px; line-height: 1.6; margin: 0 0 15px; }
.auth-form .auth-switch { text-align: center; font-size: 12px; margin: 25px 0 35px; }
.auth-note { font-size: 10px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 22px; display: flex; align-items: center; gap: 8px; line-height: 1.7; }
#app { display: flex; min-height: 100vh; }
.sidebar { width: 238px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; border-right: 1px solid var(--border); padding: 27px 19px 18px; background: #191c1a; }
.sidebar .brand { margin: 0 4px 33px; font-size: 20px; }
.workspace-label { font: 8px var(--mono); letter-spacing: 1.5px; color: var(--muted); margin: 0 4px 21px; }
.workspace-label select { font: 12px -apple-system,BlinkMacSystemFont,sans-serif; letter-spacing: 0; background: var(--panel); padding: 11px 9px; margin: 9px 0 0; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: transparent; padding: 11px; border: 1px solid transparent; border-radius: 6px; color: #b1b8b0; font-size: 12px; margin: 3px 0; }
.nav-item>span { font-size: 17px; width: 18px; line-height: 1; color: #959f94; }
.nav-item.active { color: #f0e2ca; background: #d5b68b0c; border-color: #d5b68b24; box-shadow: inset 2px 0 var(--accent); }
.nav-item.active>span { color: var(--accent); }
.nav-item:hover { background: #ffffff04; }
.nav-item b { font: 9px var(--mono); margin-left: auto; background: #2b312b; color: #b9c1b6; padding: 3px 6px; border-radius: 4px; }
.nav-heading { font: 8px var(--mono); letter-spacing: 1.3px; color: #959f94; margin: 25px 11px 10px; }
.sidebar-foot { margin-top: auto; padding-top: 30px; }
.host-pulse { display: flex; align-items: center; gap: 8px; font-size: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); margin-bottom: 20px; }
.user-row { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--border); padding-top: 18px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #605846; background: #302c23; color: #dfc9a5; display: grid; place-items: center; font-size: 10px; }
.user-row strong { display: block; font-size: 11px; font-weight: 550; max-width: 125px; overflow: hidden; text-overflow: ellipsis; }
.user-row small { display: block; font-size: 9px; margin-top: 4px; text-transform: capitalize; }
.user-row button { margin-left: auto; background: none; font-size: 21px; color: var(--muted); }
main { margin-left: 238px; width: calc(100% - 238px); min-width: 0; }
.topbar { height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 38px; border-bottom: 1px solid var(--border); font-size: 11px; }
.breadcrumb { color: var(--muted); }
.slash { color: #727d72; padding: 0 12px; }
.topbar-right { display: flex; align-items: center; gap: 23px; color: var(--muted); font: 9px var(--mono); }
.main-content { max-width: 1450px; margin: auto; padding: 35px 38px 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.page-heading h1 { font-size: 32px; font-weight: 500; letter-spacing: -1.2px; margin: 12px 0 10px; }
.page-heading p { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.7; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 30px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 20px; }
.stat-title { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #bfc6bc; }
.stat-icon { color: #a2b5a7; font-size: 15px; }
.stat-value { font-size: 32px; font-weight: 500; letter-spacing: -1.2px; margin: 15px 0 9px; }
.stat-value small { margin-left: 5px; font: 10px var(--mono); letter-spacing: 0; }
.stat-note { display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--muted); line-height: 1.7; }
.stat-note .dot { width: 4px; height: 4px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 25px 0 16px; }
.section-title h2 { font-size: 15px; font-weight: 550; letter-spacing: -.2px; margin: 0; }
.section-title h2 small { margin-left: 9px; font: 9px var(--mono); }
.section-title button { background: none; color: var(--accent); font-size: 10px; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.project-card { background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 22px; cursor: pointer; }
.project-card:hover { border-color: #788172; }
.project-card-top { display: flex; justify-content: space-between; align-items: center; }
.project-icon { width: 38px; height: 38px; border: 1px solid #576353; background: #29312a; border-radius: 9px; color: #c1ceb7; display: grid; place-items: center; font-size: 23px; }
.project-card h3 { font-size: 15px; font-weight: 550; margin: 18px 0 8px; }
.project-card p { color: var(--muted); font-size: 11px; line-height: 1.8; min-height: 36px; margin: 0 0 20px; overflow-wrap: anywhere; }
.project-card-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 14px; font-size: 9px; color: var(--muted); }
.app-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 24px; gap: 22px; }
.app-card { overflow: hidden; cursor: default; }
.app-art { height: 150px; margin: -22px -22px 22px; color: #a4c8bd; border-bottom: 1px solid var(--border); background-color: #1b2420; background-image: linear-gradient(#a4c8bd08 1px,transparent 1px),linear-gradient(90deg,#a4c8bd08 1px,transparent 1px); background-size: 25px 25px; }
.app-art svg { width: 100%; height: 100%; display: block; }
.app-card[data-app="blender"] .app-art { color: #cfab88; background-color: #28231e; background-image: linear-gradient(#cfab8808 1px,transparent 1px),linear-gradient(90deg,#cfab8808 1px,transparent 1px); }
.app-category { color: var(--muted); font: 8px var(--mono); letter-spacing: 1.2px; }
.app-card h3 { font-size: 24px; font-weight: 500; letter-spacing: -.5px; margin-top: 20px; }
.app-card .primary { background: transparent; border-color: #636b5e; color: var(--text); font-size: 11px; }
.app-card .primary:hover { background: #d5b68b12; border-color: var(--accent); color: #e6d3b5; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 9px var(--mono); padding: 5px 7px; border: 1px solid #3c554c; background: #91c6aa08; border-radius: 5px; color: #a8d1b8; white-space: nowrap; }
.badge.gray { color: #b8bdb5; border-color: #4b534a; background: #b8bdb508; }
.badge.gray .dot { background: #a3ad9f; }
.badge.red { color: #efaba6; border-color: #64403f; background: #e8a39408; }
.badge.red .dot { background: #de9e94; }
.badge.amber { color: #d6bd8b; border-color: #615136; background: #e2bd7608; }
.badge.amber .dot { background: #d6bd8b; }
.badge .dot { width: 4px; height: 4px; }
.table-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: 9px; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 13px 18px; color: #abb5a7; font: 8px var(--mono); letter-spacing: 1px; background: #222722; border-bottom: 1px solid var(--border); }
td { padding: 18px; font-size: 11px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
td strong { font-weight: 550; }
td small { display: block; font-size: 9px; margin-top: 5px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.mono { color: #bdc5b8; font: 10px var(--mono); }
.actions { display: flex; gap: 6px; }
.actions button,.actions a { font-size: 10px; padding: 7px 10px; }
.empty { padding: 34px 25px; text-align: center; border: 1px dashed #485146; background: #1c211c55; border-radius: 9px; }
.empty-symbol { display: grid; place-items: center; width: 43px; height: 43px; margin: 0 auto 15px; border: 1px solid #5b654f; border-radius: 10px; background: #2b3327; color: #c0cbaa; font-size: 23px; }
.empty h3 { margin: 0 0 9px; font-size: 15px; font-weight: 550; }
.empty p { margin: 0 auto 18px; max-width: 430px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.empty button { font-size: 11px; }
.onboarding { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.info-card { padding: 24px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); }
.info-card.accent { background: linear-gradient(110deg,#2a3027,var(--panel)); border-color: #4b5743; }
.info-card .eyebrow { font-size: 8px; margin-bottom: 14px; }
.info-card h3 { font-size: 14px; font-weight: 550; margin: 0 0 9px; }
.info-card p { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 0 0 18px; max-width: 370px; }
.info-card button { font-size: 10px; }
.task-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.task-column { background: #191d19; border: 1px solid var(--border); border-radius: 9px; padding: 17px; min-height: 280px; }
.task-column h2 { color: #b0bba9; font: 9px var(--mono); letter-spacing: 1px; margin: 0 0 20px; }
.task-card { background: var(--panel2); border: 1px solid var(--border); border-radius: 7px; padding: 16px; margin-bottom: 12px; }
.task-card h3 { font-size: 12px; font-weight: 550; line-height: 1.6; margin: 0 0 8px; overflow-wrap: anywhere; }
.task-card p { color: var(--muted); font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.task-card small { display: block; font: 9px var(--mono); margin: 9px 0 15px; }
.task-card button { font-size: 10px; margin-right: 6px; }
.hint { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 0 0 20px; }
.hint strong { color: #d2d7ca; font-weight: 550; }
.notice { background: #bd964609; border: 1px solid #5b4b32; color: #d2bd98; padding: 14px 18px; border-radius: 7px; font-size: 11px; line-height: 1.8; margin: 0 0 24px; }
.token-box { background: #121613; border: 1px solid #465346; border-radius: 6px; padding: 16px; font: 10px/1.9 var(--mono); color: #b9d1c4; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; margin: 14px 0; }
.inline-code { font: 10px var(--mono); color: var(--teal); overflow-wrap: anywhere; }
.error-detail { color: var(--red); font-size: 10px; line-height: 1.8; max-width: 350px; white-space: normal; }
.filter-row { display: flex; gap: 12px; margin-bottom: 20px; }
.filter-row select { max-width: 260px; font-size: 12px; }
.freshness { color: var(--muted); font-size: 10px; margin-top: 18px; }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 20px 0; margin-top: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; }
footer>span:first-child { display: flex; align-items: center; gap: 7px; }
footer .dot { width: 4px; height: 4px; }
dialog { padding: 26px; width: 490px; max-width: calc(100% - 30px); border: 1px solid #596050; border-radius: 12px; color: var(--text); background: var(--panel); box-shadow: 0 25px 100px #0007; }
dialog::backdrop { background: #080c09b3; backdrop-filter: blur(4px); }
.modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-top h2 { font-size: 21px; font-weight: 550; letter-spacing: -.6px; margin: 0; }
.modal-top button { background: none; color: var(--muted); font-size: 25px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-actions button { font-size: 12px; }
#toast { position: fixed; bottom: 24px; right: 26px; z-index: 100; max-width: 450px; padding: 15px 22px; background: #28332b; border: 1px solid #6c846c; color: #d4e4d4; border-radius: 8px; font-size: 12px; line-height: 1.7; box-shadow: 0 10px 40px #0004; }
#toast.error { background: #3a2326; border-color: #8a5259; color: #f2b8b2; }
.wizard { max-width: 980px; margin: auto; }
.wizard-steps { display: grid; grid-template-columns: repeat(4,1fr); margin: 0 0 28px; border-bottom: 1px solid var(--border); }
.wizard-step { display: flex; align-items: center; gap: 9px; padding: 0 7px 18px; color: var(--muted); font-size: 11px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.wizard-step .step-number { width: 25px; height: 25px; color: #aab4a5; background: #222820; border-color: #454f3e; font-size: 9px; }
.wizard-step.current { color: #e6d3b5; border-color: var(--accent); }
.wizard-step.current .step-number { background: #393124; border-color: #8f7a58; color: #f0dcc0; }
.wizard-step.complete { color: #91b9a0; }
.wizard-step.complete .step-number { background: #22372c; color: #a6c8b0; border-color: #3f624b; }
.wizard-panel { padding: 30px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.wizard-panel h2 { font-size: 22px; font-weight: 500; letter-spacing: -.6px; margin: 13px 0 12px; }
.wizard-panel>p { max-width: 600px; }
.infra-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin: 27px 0; }
.infra-option { position: relative; text-align: left; padding: 22px; border: 1px solid #454e43; border-radius: 8px; background: var(--field); color: var(--text); min-height: 154px; }
.infra-option:hover { border-color: #858e7a; }
.infra-option.selected { background: #d5b68b08; border-color: var(--accent); box-shadow: inset 0 0 0 1px #d5b68b12; }
.infra-option .choice-mark { position: absolute; top: 17px; right: 17px; width: 13px; height: 13px; border: 1px solid #66715e; border-radius: 50%; }
.infra-option.selected .choice-mark { border: 4px solid var(--accent); background: var(--field); }
.infra-option .option-icon { display: block; width: 32px; height: 32px; border: 1px solid #56654f; border-radius: 7px; background: #2b3527; text-align: center; line-height: 30px; color: #c3d0b6; font-size: 19px; margin-bottom: 17px; }
.infra-option strong { display: block; font-size: 13px; font-weight: 550; margin-bottom: 8px; }
.infra-option p { font-size: 11px; color: #b5bdb0; line-height: 1.8; margin: 0; max-width: 290px; }
.wizard-detail { padding: 22px; background: var(--field); border: 1px solid var(--border); border-radius: 8px; margin-top: 20px; }
.wizard-detail h3 { font-size: 13px; font-weight: 550; margin: 0 0 12px; }
.wizard-detail p { font-size: 11px; color: var(--muted); line-height: 1.9; }
.wizard-detail label:last-child select { margin-bottom: 0; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-top: 24px; border-top: 1px solid var(--border); margin-top: 25px; }
.wizard-actions>div { display: flex; gap: 10px; align-items: center; }
.wizard-actions button { font-size: 11px; }
.wizard-actions small { font-size: 10px; line-height: 1.7; }
.wizard-note { display: flex; gap: 9px; align-items: flex-start; font: 10px/1.8 var(--mono); color: var(--muted); margin: 17px 0 0; }
.wizard-note .dot { margin-top: 6px; width: 4px; height: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row label { min-width: 0; }
.setup-status { display: flex; align-items: center; gap: 11px; margin: 17px 0; font-size: 12px; color: #c4ceba; }
.setup-status .dot { box-shadow: 0 0 0 4px #a5cfb30b; }
.setup-checklist { list-style: none; padding: 0; margin: 22px 0; }
.setup-checklist li { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 11px; color: #c2cab9; gap: 15px; }
.setup-checklist li>span:first-child { color: #d4dbca; }
.setup-checklist small { font: 9px var(--mono); color: var(--muted); }
.wizard details { margin: 17px 0; }
.wizard summary { cursor: pointer; color: var(--accent); font-size: 11px; }
.wizard details .hint { margin-top: 15px; }
.wizard .token-box { background: #111612; }
.setup-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin: 22px 0; }
.setup-summary>div { padding: 17px; border: 1px solid #46513e; border-radius: 7px; background: #22291e; }
.setup-summary small { display: block; font: 8px var(--mono); letter-spacing: 1px; margin-bottom: 10px; color: #adb9a0; }
.setup-summary strong { font-size: 12px; font-weight: 550; color: #dbe1cf; overflow-wrap: anywhere; }
.setup-banner { border: 1px solid #57533f; border-radius: 9px; padding: 23px 26px; margin-bottom: 27px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(120deg,#b5925720,#8caf9c06); }
.setup-banner h2 { font-size: 18px; font-weight: 500; margin: 0 0 9px; letter-spacing: -.4px; }
.setup-banner p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.8; }
.setup-banner button { font-size: 11px; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 17px; }
.copy-row h3 { margin: 0; }
.copy-row button { font-size: 9px; }
.download-client { display: inline-block; font-size: 11px; }
.consent { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; font-weight: 400; line-height: 1.8; margin: 17px 0; }
.consent input { width: auto; margin: 4px 0 0; flex-shrink: 0; }
.pending-ring { display: inline-block; width: 10px; height: 10px; border: 2px solid #59624f; border-top-color: var(--accent); border-radius: 50%; }
@media(min-width:1500px) { .main-content { padding-left: 50px; padding-right: 50px; } }
@media(max-width:1100px) {
  .sidebar { width: 208px; padding-left: 13px; padding-right: 13px; }
  main { margin-left: 208px; width: calc(100% - 208px); }
  .main-content { padding: 30px 25px 0; }
  .topbar { padding: 0 25px; }
  .stats { gap: 10px; }
  .stat { padding: 15px; }
  .stat-value { font-size: 28px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wizard-panel { padding: 24px; }
  .wizard-step { font-size: 10px; gap: 6px; }
  .hero-bottom { gap: 12px; font-size: 7px; }
  .brand em { display: none; }
}
@media(max-width:760px) {
  #auth { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-form-wrap { min-height: 100vh; padding: 35px 25px; }
  #app { display: block; }
  .sidebar { position: relative; inset: auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--border); padding: 17px 18px 13px; }
  .sidebar .brand { margin: 0 45px 18px 0; font-size: 21px; }
  .workspace-label { margin-bottom: 12px; }
  .workspace-label select { margin-top: 6px; padding: 9px; }
  .sidebar nav { display: flex; gap: 5px; overflow-x: auto; }
  .nav-item { width: auto; white-space: nowrap; font-size: 10px; padding: 9px 11px; }
  .nav-item>span,.nav-heading,.nav-item b { display: none; }
  .sidebar-foot { position: absolute; top: 19px; right: 18px; padding: 0; }
  .host-pulse,.sidebar-foot .user-row>div { display: none; }
  .user-row { border: 0; padding: 0; }
  .user-row button { display: block; width: 34px; height: 34px; border: 1px solid var(--border); background: var(--panel2); border-radius: 7px; margin: 0; }
  main { margin: 0; width: 100%; }
  .topbar { height: 50px; padding: 0 20px; }
  .topbar-right #clock { display: none; }
  .main-content { padding: 25px 18px 0; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 25px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { max-width: 260px; font-size: 11px; }
  .page-heading>.primary { font-size: 10px; padding: 11px 12px; margin-top: 23px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .project-grid,.onboarding,.task-grid { grid-template-columns: 1fr; }
  .project-card p { min-height: 0; }
  .task-column { min-height: 120px; }
  footer>span:last-child { display: none; }
  .early { font-size: 7px; }
  th { padding: 12px 15px; }
  td { padding: 15px; }
  #toast { right: 15px; left: 15px; bottom: 15px; }
  dialog { padding: 22px; }
  .wizard-step { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 9px; padding-bottom: 13px; }
  .wizard-step .step-number { width: 24px; height: 24px; }
  .wizard-panel { padding: 22px 18px; }
  .wizard-panel h2 { font-size: 21px; }
  .infra-options { grid-template-columns: 1fr; gap: 12px; }
  .infra-option { min-height: 0; padding: 20px; }
  .infra-option .option-icon { float: left; margin: 0 15px 35px 0; }
  .wizard-detail { padding: 17px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .setup-summary { grid-template-columns: 1fr; gap: 8px; }
  .setup-summary>div { padding: 13px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
  .setup-summary small { margin: 0; }
  .setup-banner { padding: 20px; flex-direction: column; align-items: flex-start; }
  .wizard-actions small { max-width: 170px; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
