/* FlintVM's interface: quiet surfaces, immediate feedback, content first. */
:root { font-size: 14px; line-height: 1.5; --sidebar-width: 232px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 36px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); cursor: pointer; font-weight: 500; line-height: 1.4; touch-action: manipulation; transition: background-color 120ms, border-color 120ms, box-shadow 120ms; }
button:hover { background: var(--inset); border-color: color-mix(in srgb, var(--muted) 30%, var(--line)); }
button:active:not(:disabled) { background: color-mix(in srgb, var(--muted) 15%, var(--surface)); transform: scale(.98); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, pre:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 3px; }
.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px #24262912; }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.primary:active:not(:disabled) { background: var(--accent-active); }
.danger { color: var(--red); }
.danger:hover { background: var(--red-bg); border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.icon-button { width: 36px; height: 36px; padding: 0; flex-shrink: 0; background: transparent; border-color: transparent; }
.text-button { background: none; border-color: transparent; color: var(--accent); padding: .4rem 0; box-shadow: none; }
.text-button:hover { background: transparent; border-color: transparent; color: var(--accent-hover); }
.full-width { width: 100%; }
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 2.35rem; letter-spacing: -.045em; line-height: 1.17; font-weight: 650; margin-bottom: .65rem; overflow-wrap: anywhere; }
h2 { font-size: 1.1rem; letter-spacing: -.018em; font-weight: 600; margin-bottom: .4rem; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.muted { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.help-text { color: var(--muted); font-size: .88rem; line-height: 1.6; }
label { display: block; font-size: .9rem; font-weight: 500; }
input, select, textarea { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
label > input, label > select { display: block; width: 100%; margin: .45rem 0 1.15rem; }
pre, textarea { font: .88rem/1.75 ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -100px; left: 20px; background: var(--surface); padding: 12px; z-index: 100; color: var(--accent); }
.skip-link:focus { top: 12px; }
#shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 30px 14px 16px; background: var(--sidebar); backdrop-filter: blur(24px) saturate(130%); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 3; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 9px; margin-bottom: 37px; font-size: 1.4rem; font-weight: 650; letter-spacing: -.04em; }
.brand-icon { color: var(--accent); }
.brand-icon .icon { width: 27px; height: 27px; stroke-width: 1.8; }
.tag { color: var(--muted); font-size: .66rem; letter-spacing: .025em; font-weight: 500; margin-left: auto; }
.nav { width: 100%; background: none; border: 0; justify-content: flex-start; text-align: left; padding: .65rem .8rem; margin-bottom: 3px; gap: .75rem; color: var(--muted); font-size: .92rem; }
.nav > span:nth-child(2) { flex: 1; }
.nav.active { background: var(--tint); color: var(--accent); }
.nav.active > span:nth-child(2) { font-weight: 600; }
.nav-count { font-size: .78rem; font-variant-numeric: tabular-nums; }
.side-title { color: var(--muted); padding: 0 .8rem; margin: 30px 0 8px; font-size: .76rem; font-weight: 600; }
#env-nav { overflow-y: auto; min-height: 0; }
.env-link { width: 100%; justify-content: flex-start; border: 0; background: transparent; padding: .65rem .8rem; font-size: .88rem; color: var(--muted); gap: .75rem; }
.env-link span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.env-link.selected { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.env-link .icon { width: 16px; height: 16px; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.appearance-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; padding: 0 .8rem; margin-bottom: 7px; }
#appearance { margin: 0 .7rem 18px; width: calc(100% - 1.4rem); background: transparent; font-size: .8rem; padding: .35rem .55rem; }
.user-line { display: flex; align-items: center; gap: 10px; padding: 15px 5px 0; border-top: 1px solid var(--line); }
#avatar { height: 33px; width: 33px; display: grid; place-items: center; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: .9rem; font-weight: 600; flex-shrink: 0; }
.user-info { min-width: 0; flex: 1; }
.user-info strong { display: block; font-size: .85rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.user-info small { display: block; font-size: .72rem; color: var(--muted); text-transform: capitalize; }
main { margin-left: var(--sidebar-width); min-width: 0; outline: none; }
.toolbar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 42px; position: sticky; top: 0; z-index: 2; background: var(--toolbar); backdrop-filter: blur(20px) saturate(140%); }
.breadcrumb, .toolbar-actions { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .82rem; min-width: 0; }
.breadcrumb > span:first-child { color: var(--muted); }
.breadcrumb .icon { width: 12px; }
.breadcrumb strong { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-label { font-size: .75rem; white-space: nowrap; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: middle; }
.page { max-width: 1480px; padding: 34px 42px 48px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading > div { min-width: 0; }
.page-heading > button { flex-shrink: 0; }
.overview-summary { display: flex; align-items: center; gap: 16px; margin: 12px 0 22px; color: var(--muted); font-size: .82rem; }
.overview-summary strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-divider { height: 13px; width: 1px; background: var(--line); }
.summary-note { margin-left: auto; font-size: .76rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.library-toolbar h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1rem; }
.count { font-size: .75rem; border-radius: 5px; padding: 1px 6px; font-weight: 500; color: var(--muted); background: var(--inset); }
.search-field { display: flex; align-items: center; gap: 6px; color: var(--muted); border: 1px solid var(--line); background: var(--inset); border-radius: 8px; padding-left: 10px; }
.search-field .icon { width: 15px; }
.search-field input { background: none; border: 0; font-size: .82rem; width: 195px; padding: 7px; }
.list-head, .env-card { display: grid; grid-template-columns: minmax(220px,1fr) 110px 135px 22px; gap: 18px; align-items: center; }
.list-head { background: var(--inset); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 9px 24px; color: var(--muted); font-size: .73rem; font-weight: 500; }
.env-card { width: 100%; padding: 23px 24px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; font-weight: 400; min-height: 99px; }
.env-card:last-child { border-bottom: 0; }
.env-card:active:not(:disabled) { transform: none; }
.env-card:hover { background: color-mix(in srgb, var(--accent) 3%, var(--surface)); }
.env-identity { display: flex; gap: 16px; align-items: center; min-width: 0; }
.environment-icon, .env-symbol { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; background: var(--tint); color: var(--accent); }
.env-symbol.shell { background: var(--inset); color: var(--muted); }
.env-symbol .icon { width: 22px; height: 22px; }
.env-copy { min-width: 0; }
.env-copy h2 { font-size: .97rem; font-weight: 600; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.env-copy p { font-size: .8rem; color: var(--muted); margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.status { font-size: .74rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 4px 8px; color: var(--muted); background: var(--inset); justify-self: start; white-space: nowrap; text-transform: capitalize; }
.status::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status.running, .status.completed { color: var(--green); background: var(--green-bg); }
.status.starting, .status.stopping { color: var(--amber); background: var(--amber-bg); }
.status.failed, .status.invalid { color: var(--red); background: var(--red-bg); }
.card-specs { font-size: .79rem; line-height: 1.65; }
.card-specs small { display: block; color: var(--muted); font-size: .73rem; }
.row-arrow { color: var(--muted); }
.row-arrow .icon { width: 14px; }
.empty-state { padding: 60px 25px; text-align: center; }
.empty-state strong { display: block; font-weight: 600; font-size: 1.15rem; margin-bottom: 7px; }
.empty-state p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.section-heading { margin: 32px 0 16px; }
.section-heading p { font-size: .9rem; }
.quick-templates { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.template-card { text-align: left; padding: 20px; display: flex; align-items: flex-start; justify-content: flex-start; gap: 13px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
.template-card > .icon { color: var(--accent); margin-top: 2px; width: 21px; height: 21px; }
.template-card strong { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 5px; }
.template-card small { color: var(--muted); font-size: .78rem; line-height: 1.5; display: block; }
.info-line { color: var(--muted); font-size: .78rem; display: flex; gap: 7px; align-items: center; margin-top: 25px; }
.info-line .icon { width: 14px; }
.back-button { font-size: .82rem; margin: -8px 0 20px; }
.back-button .icon { width: 15px; }
.detail-heading { display: flex; gap: 16px; align-items: center; }
.detail-heading h1 { font-size: 1.8rem; margin-bottom: 5px; }
.detail-heading p { font-size: .85rem; max-width: 560px; }
.detail-heading .environment-icon { width: 50px; height: 50px; border-radius: 13px; }
.detail-heading .icon { width: 26px; height: 26px; }
.actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.actions .status { margin-right: 6px; }
.workspace { display: flex; flex-direction: column; gap: 18px; }
.tabs { display: flex; gap: 5px; background: var(--inset); padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: transparent; border-color: transparent; color: var(--muted); padding: .5rem 1rem; white-space: nowrap; font-size: .85rem; flex: 1; }
.tabs button .icon { width: 16px; }
.tabs .selected { color: var(--text); background: var(--surface); border-color: var(--line); box-shadow: 0 1px 3px #00000008; }
.tab { min-width: 0; }
.desktop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; color: var(--muted); font-size: .78rem; }
.desktop-bar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#match-display[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.desktop-bar button { min-height: 30px; font-size: .78rem; padding: 5px 10px; }
.desktop-bar #take-control { color: var(--accent); }
#display { background: var(--inset); height: clamp(340px, 52vh, 760px); min-height: 300px; position: relative; overflow: hidden; display: flex; flex-direction: column; border-block: 1px solid var(--line); }
#display:fullscreen { height: 100%; width: 100%; min-height: 0; border: 0; background: var(--console-bg); }
.display-empty { margin: auto; padding: 30px; text-align: center; }
.empty-monitor { width: 86px; height: 86px; border-radius: 22px; color: var(--muted); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); margin: 0 auto 22px; }
.empty-monitor .icon { width: 45px; height: 45px; stroke-width: 1.2; }
.display-empty h2 { font-size: 1.25rem; letter-spacing: -.025em; }
.display-empty p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.empty-caption { color: var(--muted); font-size: .75rem; }
#browser-form { display: flex; gap: 8px; align-items: center; padding: 12px 16px 5px; }
#browser-form label { color: var(--muted); padding: 0 5px; }
#browser-form input { width: 0; flex: 1; font-size: .82rem; background: var(--inset); }
#browser-form button { font-size: .82rem; }
#browser-form .icon { width: 16px; }
.desktop-foot { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); padding: 10px 18px 13px; }
.desktop-foot > span { display: flex; align-items: center; gap: 5px; }
.desktop-foot .icon { width: 12px; height: 12px; }
.settings-content { padding: 30px; min-height: 450px; }
.settings-content > .section-heading:first-child { margin-top: 0; }
.section-line { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-line .muted { font-size: .86rem; }
.section-line > button { flex-shrink: 0; }
.detail-list { display: grid; grid-template-columns: 150px 1fr; margin: 22px 0 30px; font-size: .9rem; }
.detail-list dt, .detail-list dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { font-weight: 500; overflow-wrap: anywhere; }
.inset-code { background: var(--inset); padding: 15px; border-radius: 8px; }
#config-source { width: 100%; min-height: 380px; resize: vertical; background: var(--inset); padding: 20px; tab-size: 2; }
.danger-zone { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.danger-zone p { color: var(--muted); font-size: .85rem; margin: 0; }
.image-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { background: var(--inset); padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.form-icon { width: 40px; height: 40px; background: var(--tint); color: var(--accent); border-radius: 11px; margin-bottom: 18px; }
.form-group > input, .form-group > select { width: 100%; margin: 6px 0 16px; }
.form-group > button { margin-top: 4px; }
.console summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; cursor: pointer; font-size: .88rem; font-weight: 500; list-style: none; }
.console summary::-webkit-details-marker { display: none; }
.console summary > span { display: flex; gap: 9px; align-items: center; }
.console summary .icon { width: 16px; }
.activity-hint { font-size: .76rem; color: var(--muted); font-weight: 400; }
.console[open] summary .activity-hint .icon { transform: rotate(90deg); }
.console[open] summary { border-bottom: 1px solid var(--line); }
.panel-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; font-size: .76rem; color: var(--muted); background: var(--inset); }
.panel-bar button { font-size: .76rem; min-height: 26px; }
.console pre { min-height: 170px; max-height: 360px; overflow: auto; margin: 0; padding: 20px; font-size: .8rem; color: var(--console-text); background: var(--console-bg); }
#command-form { padding: 20px; }
.command-entry { margin: 8px 0; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--inset); }
.command-entry > span { padding-left: 13px; color: var(--muted); }
.command-entry input { width: 0; flex: 1; border: 0; background: transparent; font-family: ui-monospace, monospace; }
.command-entry button { background: transparent; border: 0; border-radius: 0; }
#command-form small { color: var(--muted); font-size: .76rem; }
.settings-card { padding: 28px; margin-bottom: 24px; }
.settings-card-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.settings-card-heading .form-icon { margin: 0; flex-shrink: 0; }
.settings-card-heading p { font-size: .88rem; }
.large-output { background: var(--inset); border: 1px solid var(--line); padding: 24px; border-radius: 10px; min-height: 260px; max-height: 60vh; overflow: auto; margin-bottom: 0; }
.copy-value { overflow-wrap: anywhere; white-space: pre-wrap; padding: 16px; background: var(--tint); border-radius: 8px; color: var(--accent); font: .88rem/1.7 ui-monospace, monospace; }
#users > div { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
#users > .empty-users { display: block; color: var(--muted); font-size: .88rem; }
#password-form { max-width: 540px; }
#password-form > .muted { margin-bottom: 25px; }
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 40px 20px; background: var(--bg); }
.auth-card { max-width: 400px; width: 100%; text-align: center; }
.app-icon { width: 64px; height: 64px; color: var(--on-accent); background: var(--accent); border-radius: 17px; margin: 0 auto 26px; box-shadow: 0 4px 15px #24262928, inset 0 1px 1px #ffffff50; }
.app-icon .icon { width: 34px; height: 34px; }
.auth h1 { font-size: 2rem; }
.auth .muted { font-size: .95rem; }
.auth form { margin-top: 28px; text-align: left; }
.auth .text-button { font-size: .85rem; margin-top: 15px; }
.admin-access { margin-bottom: 20px; font-size: .85rem; color: var(--muted); }
.admin-access summary { cursor: pointer; padding: 4px 0; }
.admin-access label { margin-top: 14px; }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: .78rem; margin-top: 30px; }
.auth-foot .icon { width: 13px; }
#auth-error { color: var(--red); font-size: .88rem; margin-top: 14px; }
#auth-error:empty { display: none; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--modal-shadow); width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 30px; }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(6px); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-header .form-icon { width: 44px; height: 44px; }
dialog h2 { font-size: 1.65rem; letter-spacing: -.035em; }
dialog .muted { margin-bottom: 26px; }
.template-description { background: var(--inset); border-radius: 9px; padding: 13px; font-size: .85rem; color: var(--muted); line-height: 1.6; min-height: 65px; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; }
.dialog-footer > span { color: var(--muted); font-size: .75rem; }
#toast { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar-width)/2); transform: translateX(-50%); padding: 14px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 36px #0002; max-width: min(520px, calc(100vw - 32px)); width: max-content; font-size: .88rem; z-index: 10; }
#toast.error { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); color: var(--red); }
.execution-notice { padding: 12px 42px; background: var(--amber-bg); color: var(--amber); font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1600px) { .page { padding-top: 48px; } .env-card { padding-block: 27px; } #display { height: 58vh; } }
@media (max-width: 1150px) { :root { --sidebar-width: 210px; } .page { padding-inline: 28px; } .toolbar { padding-inline: 28px; } .list-head,.env-card { grid-template-columns: minmax(180px,1fr) 100px 90px 14px; gap: 12px; } .template-card { padding: 17px; flex-direction: column; } .detail-page .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; } .detail-heading p { max-width: none; } }
@media (max-width: 820px) { :root { --sidebar-width: 70px; } .sidebar { padding: 25px 9px 15px; } .brand { justify-content: center; padding: 0; margin-bottom: 27px; } .brand > span:not(.brand-icon),.nav > span:not(:first-child),.side-title,#env-nav,.appearance-label,.user-info,#avatar { display: none; } .nav { padding: 12px; justify-content: center; } .nav .icon { width: 21px; height: 21px; } #appearance { width: 100%; margin: 0 0 12px; padding: 5px 0; font-size: .66rem; } .user-line { justify-content: center; padding-top: 12px; } .page { padding: 25px; } .toolbar { padding: 0 25px; } .quick-templates { gap: 10px; } .summary-note { display: none; } .image-forms { grid-template-columns: 1fr; } .tabs button { padding-inline: 10px; } .tabs .icon { display: none; } }
@media (max-width: 600px) { :root { --sidebar-width: 56px; } .sidebar { padding-inline: 4px; } .brand-icon .icon { width: 24px; } .page { padding: 23px 16px 32px; } .toolbar { height: 56px; padding: 0 16px; } .breadcrumb { gap: 6px; font-size: .76rem; } .breadcrumb > span:first-child,.breadcrumb > [data-icon],.connection-label { display: none; } h1 { font-size: 1.9rem; } .page-heading { flex-direction: column; align-items: flex-start; gap: 18px; } .page-heading .muted { font-size: .88rem; } .overview-summary { gap: 9px; font-size: .73rem; } .library-toolbar { flex-direction: column; align-items: stretch; gap: 14px; padding: 17px; } .search-field input { width: 100%; } .list-head { display: none; } .env-card { grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 18px 15px; } .env-identity { gap: 11px; } .env-symbol { width: 35px; height: 35px; border-radius: 9px; } .env-symbol .icon { width: 19px; } .env-copy h2 { font-size: .85rem; } .env-copy p { font-size: .73rem; } .card-specs,.row-arrow { display: none; } .status { font-size: .66rem; padding: 3px 5px; } .quick-templates { grid-template-columns: 1fr; } .template-card { flex-direction: row; gap: 14px; } .info-line { align-items: flex-start; } .detail-heading .environment-icon { display: none; } .detail-heading h1 { font-size: 1.6rem; } .actions { gap: 6px; flex-wrap: wrap; } .actions button { font-size: .8rem; } .tabs { gap: 0; padding: 5px; } .tabs button { font-size: .72rem; padding-inline: 7px; min-height: 34px; } .desktop-bar { padding: 10px; align-items: flex-start; flex-direction: column; gap: 8px; } #display { min-height: 270px; height: 42vh; } .display-empty { padding: 20px; } .display-empty p { font-size: .8rem; } .empty-monitor { width: 64px; height: 64px; } #browser-form { padding: 10px 8px 0; gap: 5px; } #browser-form label { display: none; } #browser-form input { padding: 8px; font-size: .75rem; } .desktop-foot { padding-inline: 10px; font-size: .64rem; } .activity-hint { font-size: 0; } .settings-content,.settings-card { padding: 20px; } .section-line,.danger-zone { align-items: flex-start; flex-direction: column; gap: 15px; } .detail-list { grid-template-columns: 110px 1fr; font-size: .8rem; } .form-group { padding: 18px; } .settings-card-heading { align-items: flex-start; } .settings-card-heading .form-icon { display: none; } .large-output { padding: 14px; font-size: .76rem; } #toast { left: 50%; } .dialog-footer { gap: 10px; } dialog { padding: 24px; } .dialog-footer > button { font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } button:active:not(:disabled) { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .sidebar { background: var(--inset); backdrop-filter: none; } .toolbar { background: var(--bg); backdrop-filter: none; } dialog::backdrop { backdrop-filter: none; background: #1b1d1f80; } }
@media (prefers-contrast: more) { .toolbar,.sidebar { background: var(--bg); backdrop-filter: none; } }
@media (pointer: coarse) { button, input, select, .tabs button { min-height: 44px; } .icon-button { width: 44px; } .sidebar .nav { min-height: 46px; } }
.doctor-summary { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 10px; margin-bottom: 20px; }
.doctor-summary.ready { background: var(--green-bg); color: var(--green); }
.doctor-summary.needs-attention { background: var(--amber-bg); color: var(--amber); }
.doctor-summary > .icon { width: 24px; height: 24px; }
.doctor-summary h3 { margin: 0 0 3px; }
.doctor-summary p { font-size: .82rem; margin: 0; }
.doctor-check { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 2px; border-top: 1px solid var(--line); }
.doctor-check strong { font-size: .88rem; font-weight: 550; }
.doctor-check p { font-size: .8rem; color: var(--muted); margin: 4px 0 0; overflow-wrap: anywhere; }
.doctor-check > div { min-width: 0; }
.doctor-check .status { flex-shrink: 0; }
.doctor-check .check-remedy { color: var(--text); margin-top: 10px; }
.raw-diagnostics { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.raw-diagnostics summary { font-size: .85rem; color: var(--muted); cursor: pointer; }

/* Configuration and administration share the same quiet controls and surfaces. */
#create-dialog { width: min(660px, calc(100vw - 32px)); max-height: 90dvh; overflow-y: auto; }
#wizard-progress { margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
.configuration-form { margin: 24px 0; }
.configuration-form > button { margin-top: 12px; }
label > textarea { display: block; width: 100%; margin: 8px 0 18px; resize: vertical; }
label.check-field { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-weight: 400; }
label.check-field > input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.privacy-note { background: var(--inset); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: .86rem; color: var(--muted); }
.advanced-config { margin-top: 26px; }
.advanced-config > summary { cursor: pointer; margin-bottom: 16px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px; }
.stat-card strong { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.graph-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.usage-chart { border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-width: 0; }
.usage-chart svg { display: block; width: 100%; color: var(--accent); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.chart-value { font-size: 1.7rem; font-weight: 550; font-variant-numeric: tabular-nums; margin: 6px 0 16px; }
.table-scroll { overflow-x: auto; }
.admin-table { border-collapse: collapse; width: 100%; text-align: left; font-size: .85rem; }
.admin-table th { color: var(--muted); font-weight: 500; }
.admin-table td, .admin-table th { padding: 13px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td:first-child, .admin-table th:first-child { padding-left: 0; }
#key-scopes { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; padding: 12px 18px; }
#key-scopes legend { padding: 0 6px; font-weight: 500; }
#new-key { margin-top: 24px; padding: 18px; background: var(--tint); border-radius: 10px; }
#key-secret { font-family: ui-monospace, monospace; }
#oauth-dialog { max-width: 540px; }
#oauth-scopes { padding-left: 22px; line-height: 2; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .form-grid, .graph-grid { grid-template-columns: 1fr; } .stat-grid { gap: 8px; } .stat-card { padding: 14px; } .stat-card strong { font-size: 1.15rem; } }

.package-picker { margin: 24px 0; min-width: 0; }
.package-picker input[type=search] { width: 100%; margin-top: 8px; }
.package-results { max-height: 240px; overflow: auto; display: grid; gap: 4px; }
.package-result { display: flex; flex-direction: column; align-items: flex-start; text-align: left; overflow-wrap: anywhere; min-width: 0; }
.package-result small { color: var(--muted); font-weight: normal; }
.package-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.package-chip { font-size: .8rem; padding: 5px 9px; overflow-wrap: anywhere; max-width: 100%; }
.catalog-preset { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 12px; align-items: end; margin-block: 16px; }
.catalog-preset label input { width: 100%; }
@media (max-width: 700px) { .catalog-preset { grid-template-columns: 1fr 1fr; } }

/* Teams and notices reuse the same quiet cards, typography and focus treatment. */
.community-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.community-row { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
.community-row>span { flex:1; min-width:160px; overflow-wrap:anywhere; }
.community-row label { flex:1; margin:0; }
.community-row select { width:auto; }
.message-body { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; line-height:1.6; }
.fixture-message { padding:20px 0; border-top:1px solid var(--line); }
.notice-banner { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 24px; background:var(--tint); border-bottom:1px solid var(--line); }
.notice-banner span { overflow-wrap:anywhere; }
@media(max-width:700px) { .community-grid { grid-template-columns:1fr; gap:0; } .notice-banner { flex-wrap:wrap; } }

/* FlintVM identity. Images remain crisp in both color schemes. */
.flint-app-icon { display:block; margin:0 auto 24px; width:72px; height:72px; }
.flint-brand-mark { display:block; flex:none; width:30px; height:30px; }
/* SSO follows the same restrained controls as the rest of the workspace. */
.sso-buttons { display:grid; gap:10px; margin:24px 0 16px; }
.sso-button { width:100%; min-height:44px; }
.auth-divider { display:flex; align-items:center; gap:14px; color:var(--muted); font-size:.8rem; margin:24px 0; }
.auth-divider::before,.auth-divider::after { content:""; height:1px; flex:1; background:var(--line); }
.sso-invitation { margin:16px 0; color:var(--muted); text-align:left; }
.sso-invitation summary { cursor:pointer; margin-bottom:16px; }
.sso-settings-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-top:24px; }
.sso-provider { border:1px solid var(--line); border-radius:12px; padding:20px; min-width:0; }
.sso-provider legend { padding:0 8px; font-weight:600; }
.sso-provider textarea { display:block; width:100%; margin:8px 0 16px; }
.sso-provider .inset-code { font-size:.8rem; }
@media(max-width:1100px) { .sso-settings-grid { grid-template-columns:1fr; } }

.fleet-server,.fleet-vm{padding:20px 0;border-bottom:1px solid var(--line)}.fleet-vm{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.fleet-vm .field-error{flex-basis:100%}.fleet-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.fleet-slot{padding:12px 0}.fleet-slot p{margin:6px 0;overflow-wrap:anywhere}.fleet-server h3{margin:0}.fleet-server details{margin:16px 0}.fleet-server .field-error{overflow-wrap:anywhere}#server-form{padding-top:18px}#server-list .badge{white-space:nowrap}@media(max-width:600px){.fleet-actions button{flex:1 1 45%}.fleet-server .section-line{align-items:flex-start;flex-wrap:wrap}}

body[data-admin-app] .user-sign-in, body[data-admin-app] #register-toggle, body[data-admin-app] #register-form, body[data-admin-app] #sso-login { display: none; }
