:root {
  color-scheme: dark;
  --bg: #0b1015;
  --sidebar: #0e141b;
  --surface: #111921;
  --surface-raised: #16212b;
  --surface-hover: #19242e;
  --border: #24303a;
  --border-soft: #1e2932;
  --text: #edf1f3;
  --muted: #8997a5;
  --subtle: #5e6e7d;
  --accent: #67e5c1;
  --accent-deep: #102f2b;
  --danger: #f39a9c;
  --radius: 10px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, input, select, textarea { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; vertical-align: middle; }
button svg, .nav-icon svg { width: 18px; height: 18px; }
h1, h2, h3, p { margin: 0; }
button { color: inherit; }
::selection { background: #23574b; color: white; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #34424e; border-radius: 5px; }
.hidden, [hidden] { display: none !important; }
.app-layout { min-height: 100vh; }

.sidebar { width: 224px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 29px 18px 18px; background: var(--sidebar); border-right: 1px solid var(--border-soft); z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; font-family: Inter, sans-serif; font-size: 20px; letter-spacing: 3px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 34px; color: var(--accent); }
.brand-mark svg { width: 31px; height: 34px; }
.workspace-switch { width: 100%; display: flex; align-items: center; gap: 10px; margin: 35px 0 30px; padding: 10px; border: 1px solid #2a3641; border-radius: 7px; color: #cbd4dc; background: #151d26; text-align: left; font-size: 12px; font-weight: 600; }
.workspace-switch > svg:last-child { margin-left: auto; width: 14px; height: 14px; color: var(--muted); }
.workspace-icon { display: grid; place-items: center; height: 25px; width: 25px; border: 1px solid #4b535e; border-radius: 6px; color: #d3d9df; background: #303a46; font-size: 11px; }
.workspace-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-label { padding: 0 12px; margin: 0 0 11px; font-size: 9px; font-weight: 700; letter-spacing: 1.55px; color: var(--subtle); }
.nav-group { display: grid; gap: 5px; margin-bottom: 29px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #97a5b3; text-align: left; font-size: 12px; font-weight: 500; transition: background .16s, color .16s; }
.nav-item:hover { background: #17212b; color: var(--text); }
.nav-item.active { background: #16302c; color: var(--accent); border-color: #224039; }
.nav-icon { display: grid; place-items: center; color: inherit; }
.nav-count { margin-left: auto; background: #243f38; min-width: 20px; padding: 1px 5px; border-radius: 4px; color: #a3dfcd; text-align: center; font-size: 10px; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.sidebar-note { margin: 0 10px 22px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(125deg, #18242d, #111a22); }
.sidebar-note strong { display: block; font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.sidebar-note p { color: var(--muted); font-size: 10px; line-height: 1.7; }
.sidebar-note a, .sidebar-note button { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); border: 0; background: none; padding: 10px 0 0; font-size: 10px; font-weight: 600; }
.profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border-soft); padding: 18px 9px 0; }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e3d7bb; color: #4a4439; font-size: 10px; font-weight: 700; }
.profile-name { color: #d1d9e0; font-size: 11px; font-weight: 600; }
.profile-role { font-size: 10px; color: var(--subtle); margin-top: 1px; }
.profile > svg, .profile > button { margin-left: auto; }
.main { margin-left: 224px; min-width: 0; }
.topbar { height: 77px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--border-soft); }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--subtle); }
.breadcrumb strong, .breadcrumb .current { font-weight: 500; color: #c5ced6; }
.breadcrumb svg { width: 14px; height: 14px; }
.top-actions { display: flex; align-items: center; gap: 19px; }
.icon-button { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; color: #8695a3; background: transparent; }
.icon-button:hover { background: var(--surface-raised); color: var(--text); border-color: var(--border); }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; color: #a3b0bc; font-size: 10px; line-height: 1; }
.connection-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #dcbd78; box-shadow: 0 0 0 3px #dcbd7811; }
.connection-pill.live::before { background: var(--accent); box-shadow: 0 0 0 3px #67e5c110; }
.top-divider { height: 18px; width: 1px; background: var(--border); }
.mobile-menu { display: none; }

.page { max-width: 1540px; margin: 0 auto; padding: 36px 38px 25px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { color: var(--accent); font-size: 9px; font-weight: 600; letter-spacing: 1.9px; margin-bottom: 8px; text-transform: uppercase; }
.page-title { font-family: Inter, sans-serif; font-size: 29px; line-height: 1.3; font-weight: 750; letter-spacing: -.85px; }
.page-subtitle { font-size: 12px; color: var(--muted); margin-top: 8px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 13px; border: 1px solid #34424d; border-radius: 6px; color: #d5dde4; background: #141d26; font-size: 11px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { background: #202c36; border-color: #50616e; }
.button:active { transform: translateY(1px); }
.button svg { width: 15px; height: 15px; }
.button.primary { color: #09251d; background: var(--accent); border-color: var(--accent); box-shadow: 0 2px 14px #67e5c10b; }
.button.primary:hover { background: #8deed2; border-color: #8deed2; }
.button.danger { color: #ffb7b8; background: #381e26; border-color: #63323f; }
.button.small { min-height: 29px; padding: 6px 10px; font-size: 10px; }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button.ghost:hover { color: var(--text); background: var(--surface-raised); }
.demo-banner { display: flex; align-items: center; gap: 11px; padding: 11px 14px; margin-bottom: 22px; border: 1px solid #31453e; border-radius: 7px; background: #12221e; color: #a9c1b6; font-size: 11px; line-height: 1.6; }
.demo-banner svg { width: 15px; height: 15px; color: #89bda5; }
.demo-banner strong { color: #c9dece; font-weight: 600; }
.demo-banner button { margin-left: auto; flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 29px; }
.stat-card { position: relative; min-height: 138px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 18px 19px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9aa9b6; font-size: 11px; font-weight: 500; }
.stat-top svg { width: 16px; height: 16px; color: #6c7e8e; }
.stat-value { font-family: Inter, sans-serif; margin-top: 12px; font-size: 29px; line-height: 1.2; letter-spacing: -.7px; font-weight: 650; }
.stat-value small, .stat-value span { font-family: Inter, sans-serif; color: #778896; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: #7d8f9d; font-size: 9px; }
.stat-foot .positive, .positive { color: var(--accent); }
.stat-foot svg { width: 11px; height: 11px; }
.sparkline { position: absolute; bottom: 17px; right: 15px; width: 81px; height: 29px; color: var(--accent); opacity: .8; }
.two-columns { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.panel { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.panel + .panel { margin-top: 23px; }
.panel-heading { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.panel-title { font-family: Inter, sans-serif; font-size: 14px; font-weight: 650; letter-spacing: -.2px; }
.panel-title small { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; margin-left: 7px; padding: 0 6px; background: #202c36; border: 1px solid #2e3a46; border-radius: 5px; color: #a7b4bf; font-family: Inter, sans-serif; font-size: 10px; }
.panel-subtitle { margin-top: 4px; color: var(--muted); font-size: 11px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: #8d9caa; font-size: 10px; }
.text-link:hover { color: var(--accent); }
.text-link svg { width: 13px; height: 13px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 22px 18px; }
.tabs { display: flex; align-items: center; gap: 2px; padding: 3px; background: #0b1219; border: 1px solid #25313b; border-radius: 6px; }
.tab { padding: 6px 11px; border: 0; border-radius: 4px; background: transparent; color: #7e909f; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.tab:hover { color: #cdd6df; }
.tab.active { color: #e1e8ed; background: #25313c; box-shadow: 0 1px 4px #0004; }
.search { display: flex; align-items: center; gap: 8px; width: 182px; min-width: 110px; padding: 0 10px; min-height: 32px; border: 1px solid #293743; border-radius: 5px; background: #0e161e; color: #687b8a; }
.search svg { width: 13px; height: 13px; }
.search-input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #cdd6df; font-size: 10px; }
.search-input::placeholder { color: #758795; }
.search:focus-within { border-color: #67e5c1a0; }
.table-wrap { width: 100%; overflow-x: auto; }
.server-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.server-table th { padding: 11px 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #0e171f; color: #647887; font-size: 9px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; }
.server-table th:first-child, .server-table td:first-child { padding-left: 22px; }
.server-table th:last-child, .server-table td:last-child { padding-right: 22px; text-align: right; }
.server-table td { padding: 18px 16px; border-bottom: 1px solid var(--border-soft); color: #a8b6c1; font-size: 10px; }
.server-table tbody tr:last-child td { border-bottom: 0; }
.server-table tbody tr { transition: background .15s; }
.server-table tbody tr:hover { background: #151f28; }
.server-cell { display: flex; align-items: center; gap: 11px; }
.server-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; flex-shrink: 0; border: 1px solid #374652; border-radius: 8px; background: #253541; color: #9dcce6; }
.server-icon svg { width: 18px; height: 18px; }
.server-icon.minecraft { background: #223c2c; border-color: #385541; color: #a7d789; }
.server-icon.postgres { background: #1e3249; border-color: #2c4764; color: #8bb3df; }
.server-icon.mysql { background: #3a2e22; border-color: #5c4531; color: #dfb47c; }
.server-icon.redis { background: #3c272d; border-color: #5b353e; color: #e98d92; }
.server-icon.custom { background: #2c2c46; border-color: #42405e; color: #b5a3e7; }
.server-name { color: #d7dfe6; font-size: 11px; font-weight: 550; cursor: pointer; }
.server-name:hover { color: var(--accent); }
.server-meta { margin-top: 3px; color: #657988; font-size: 9px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; background: #25303b; color: #9aabba; font-size: 9px; font-weight: 500; line-height: 1.4; }
.badge.running { color: #83d8b5; background: #173329; }
.badge.stopped { color: #98a5b0; background: #252f3a; }
.badge.error { color: #f2a0a4; background: #3d232b; }
.badge.deploying { color: #e2c37f; background: #3b3322; }
.status-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.resource-line { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.resource-line span { min-width: 29px; }
.meter { height: 4px; width: 48px; flex-shrink: 0; overflow: hidden; border-radius: 2px; background: #283743; }
.meter-fill { height: 100%; width: 0; border-radius: inherit; background: #65d6b2; transition: width .4s; }
.meter-fill.blue { background: #76a4e0; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 3px; }
.row-actions .icon-button { width: 24px; height: 26px; }
.row-actions svg { width: 14px; height: 14px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 22px; border-top: 1px solid var(--border); color: #637887; font-size: 9px; }

.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 22px 22px; }
.template-card { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; border: 1px solid #2a3641; border-radius: 7px; text-align: left; background: #111b24; transition: border-color .2s, transform .2s; }
.template-card:hover { border-color: #5c9c89; transform: translateY(-2px); }
.template-visual { height: 95px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; background: #152827; color: #78c791; }
.template-visual::before { content: ''; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#a1c4b90b 1px, transparent 1px), linear-gradient(90deg, #a1c4b90b 1px, transparent 1px); background-size: 17px 17px; mask-image: linear-gradient(to bottom, #000, transparent); }
.template-visual.game { background-color: #172922; background-image: radial-gradient(ellipse at center bottom, #315137 0, transparent 74%); }
.template-visual.game::after { content: ''; width: 39px; height: 39px; position: absolute; background: linear-gradient(90deg, #8fc978 25%, #77b565 25% 50%, #8ac46f 50% 75%, #6ca45b 75%); border-bottom: 21px solid #79563a; box-shadow: 9px 9px 0 #172820, 0 -5px 0 #a1d985; transform: rotate(-9deg) skewY(7deg); }
.template-visual.data { background-color: #172332; background-image: radial-gradient(ellipse at center bottom, #263c5a, transparent 76%); color: #8db9e2; }
.template-visual.data::after { content: ''; width: 47px; height: 49px; border: 1px solid #6b98c4; border-radius: 50% / 17%; background: repeating-linear-gradient(to bottom, transparent 0 12px, #7badce70 13px 14px), linear-gradient(100deg, #487fa3, #294b70); box-shadow: inset 0 7px 0 #83b2ce, 0 10px 20px #0002; transform: rotate(-8deg); }
.template-visual.app { background-color: #242137; background-image: radial-gradient(ellipse at center bottom, #3c3655, transparent 76%); color: #b0a1de; }
.template-visual.app::after { content: ''; width: 47px; height: 36px; border: 1px solid #a59bc1; border-radius: 3px; background: repeating-linear-gradient(90deg, #84769f 0 5px, #57466c 5px 7px); box-shadow: 8px -8px 0 -1px #62517d, 8px -8px 0 0 #aa9bbd, 0 10px 22px #0003; transform: rotate(-8deg) skewY(6deg); }
.template-visual svg { position: relative; z-index: 2; width: 43px; height: 43px; }
.template-visual:has(svg)::after { display: none; }
.template-content { padding: 13px 13px 14px; }
.template-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 13px 4px; color: #d2dce4; font-size: 11px; font-weight: 600; }
.template-name svg { width: 13px; height: 13px; color: #778c99; }
.template-description { margin: 0 13px 15px; color: #7d919f; font-size: 9px; line-height: 1.7; }
.template-content .template-name { margin: 0 0 4px; }
.template-content .template-description { margin: 0; }
.activity-list { list-style: none; margin: 0; padding: 0 20px 8px; }
.activity-item { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 5px 0 21px; }
.activity-item:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 28px; bottom: 1px; width: 1px; background: #26333d; }
.activity-dot { display: grid; place-items: center; width: 23px; height: 23px; flex-shrink: 0; border: 1px solid #305447; border-radius: 50%; background: #163229; color: #74cba3; }
.activity-dot svg { width: 11px; height: 11px; }
.activity-dot.blue { color: #91b2de; border-color: #344d68; background: #1c3047; }
.activity-dot.neutral { color: #93a2b1; border-color: #37444e; background: #26313b; }
.activity-body { padding-top: 2px; color: #acbcc8; font-size: 10px; line-height: 1.6; }
.activity-body strong { color: #cbd7df; font-weight: 500; }
.activity-body p { color: #6e8595; margin-top: 2px; font-size: 9px; }
.activity-time { margin-top: 5px; color: #5a7182; font-size: 9px; }
.region-card { padding: 18px 20px 20px; }
.region-map { position: relative; height: 106px; margin: 7px 0 17px; opacity: .9; background-image: radial-gradient(circle, #3a5b60 1.4px, transparent 1.6px); background-size: 7px 7px; clip-path: polygon(2% 23%, 11% 9%, 26% 11%, 32% 24%, 42% 22%, 45% 34%, 38% 39%, 33% 53%, 36% 69%, 30% 94%, 23% 82%, 21% 59%, 10% 43%, 5% 44%, 0 34%, 48% 25%, 60% 13%, 73% 18%, 80% 11%, 97% 22%, 99% 38%, 86% 49%, 77% 45%, 81% 64%, 91% 70%, 94% 84%, 80% 91%, 75% 75%, 67% 62%, 57% 65%, 55% 89%, 44% 76%, 48% 53%, 42% 38%); }
.region-info { display: flex; align-items: center; gap: 9px; }
.region-info strong { color: #c6d2dc; font-size: 10px; font-weight: 500; }
.region-info span { margin-left: auto; color: var(--accent); font-size: 9px; }
.region-caption { margin-top: 6px; color: #607889; font-size: 9px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; color: #526979; font-size: 9px; }
.page-footer span, .page-footer a { display: inline-flex; align-items: center; gap: 6px; }
.page-footer .status-dot { color: #69b99a; }
.page-footer a:hover { color: var(--accent); }
.empty-state { padding: 50px 25px; text-align: center; color: var(--muted); }
.empty-state svg { width: 35px; height: 35px; margin-bottom: 14px; color: #526c7f; }
.empty-state h3 { color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.empty-state p { max-width: 390px; margin: 0 auto 18px; font-size: 12px; }
.view { animation: view-in .18s ease-out; }

.modal { width: min(650px, calc(100% - 32px)); max-height: min(90vh, 920px); margin: auto; padding: 0; color: var(--text); border: 1px solid #364754; border-radius: 12px; background: #121c25; box-shadow: 0 25px 90px #0009; overflow: auto; }
.modal::backdrop { background: #03090fbd; backdrop-filter: blur(5px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 24px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-family: Inter, sans-serif; font-size: 19px; font-weight: 650; }
.modal-head p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.modal-body { padding: 24px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 18px 24px; border-top: 1px solid var(--border); background: #101922; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full, .full-width { grid-column: 1 / -1; }
.field-label { color: #c5d2dc; font-size: 11px; font-weight: 600; }
.field-input, .field-select { width: 100%; min-height: 39px; padding: 10px 12px; border: 1px solid #334652; border-radius: 6px; color: #e1e8ec; background: #0c151e; font-size: 12px; }
.field-input::placeholder { color: #607988; }
textarea.field-input { min-height: 90px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.field-input:focus, .field-select:focus { border-color: var(--accent); }
.field-help { color: #7b91a0; font-size: 10px; line-height: 1.7; }
.checkbox-field { display: flex; align-items: flex-start; gap: 9px; color: #a3b4c0; font-size: 11px; }
.checkbox-field input { accent-color: var(--accent); margin-top: 3px; }
.form-section { margin: 24px 0 14px; color: #cad8e0; font-size: 12px; font-weight: 600; }
.code-block { padding: 13px 15px; border: 1px solid #2e3e4a; border-radius: 7px; background: #0a1219; color: #a4c6b9; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.7; }
.console { min-height: 250px; max-height: 420px; overflow: auto; padding: 16px; border: 1px solid #263b44; border-radius: 7px; background: #070f15; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.9; }
.console-line { color: #92b5a9; white-space: pre-wrap; overflow-wrap: anywhere; }
.console-line.error { color: #f2a0a4; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.detail-stat { padding: 14px; border: 1px solid var(--border); border-radius: 7px; background: #101922; }
.detail-stat span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.detail-stat strong { font-family: Inter, sans-serif; color: #dce5eb; font-size: 18px; font-weight: 600; }
.detail-actions { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.toast-stack { position: fixed; z-index: 100; bottom: 24px; right: 24px; display: grid; gap: 9px; width: min(365px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; color: #d8e8e1; border: 1px solid #42685b; border-radius: 8px; background: #1a3029; box-shadow: 0 8px 32px #0005; font-size: 12px; animation: toast-in .2s ease-out; }
.toast svg { width: 17px; height: 17px; color: var(--accent); margin-top: 1px; }
.toast.error { background: #352229; border-color: #70404b; color: #f1c7cc; }
.inline-error { padding: 10px 12px; margin-top: 16px; border: 1px solid #613843; border-radius: 6px; background: #312129; color: #f2a7ae; font-size: 11px; }
.settings-card { max-width: 760px; padding: 24px; }
.settings-card .form-grid { margin-top: 20px; }
.settings-card .button { margin-top: 20px; }
.notice { padding: 14px; margin-bottom: 20px; border: 1px solid #3d493a; border-radius: 7px; color: #bfcba8; background: #232a1f; font-size: 11px; line-height: 1.8; }
.brand { font-size: 17px; letter-spacing: 2px; gap: 9px; }
.brand-mark { font-size: 27px; font-weight: 800; letter-spacing: -4px; transform: skewY(-7deg); padding-right: 4px; }
.brand-tag { align-self: center; border: 1px solid #33433e; border-radius: 3px; padding: 2px 3px; color: #79a290; font-family: Inter, sans-serif; font-size: 6px; letter-spacing: .5px; }
.workspace-switch { gap: 8px; }
.workspace-switch > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.workspace-switch small { display: block; margin-top: 2px; color: #728696; font-size: 8px; font-weight: 400; }
.workspace-switch > span:last-child { margin-left: auto; color: #7f939f; }
.sidebar nav > .nav-item { margin-bottom: 3px; }
.sidebar nav > .nav-label { margin-top: 30px; }
.host-prompt { margin: 0 2px 22px; padding: 15px 12px; border: 1px solid #2b3c41; border-radius: 7px; background: linear-gradient(125deg, #172b2b, #141e25); }
.host-prompt > .small-icon { display: block; color: #81bbaa; margin-bottom: 12px; }
.small-icon svg { width: 17px; height: 17px; }
.host-prompt strong { font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; line-height: 1.7; }
.host-prompt p { margin: 7px 0 14px; color: #829ba1; font-size: 10px; line-height: 1.7; }
.host-prompt .button { width: 100%; justify-content: space-between; border-color: #3b514f; background: #233732; color: #c1ded3; }
.profile > span:nth-child(2) { font-size: 10px; font-weight: 500; color: #c4d0d9; }
.profile small { display: block; font-size: 9px; color: #687d8d; margin-top: 3px; font-weight: 400; }
.profile-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.small-avatar { height: 27px; width: 27px; font-size: 9px; }
.demo-banner > button { padding: 0; background: transparent; border: 0; color: #a9d9c9; font-size: 10px; white-space: nowrap; }
.demo-banner > button span { margin-left: 6px; }
.count-label { margin-left: 6px; padding: 2px 6px; border: 1px solid #2d3b46; border-radius: 4px; color: #a3b2be; background: #202c35; font-family: Inter, sans-serif; font-size: 10px; }
.search kbd { display: grid; place-items: center; min-width: 17px; height: 18px; border: 1px solid #283a48; border-radius: 3px; color: #5e7788; font-family: inherit; font-size: 10px; }
.tiny-dot { display: inline-block; width: 4px; height: 4px; margin-right: 4px; border-radius: 50%; background: #76ad91; vertical-align: middle; }
#overview-bottom { margin-top: 23px; }
.two-columns > .panel + .panel { margin-top: 0; }
.activity-footer { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border: 0; border-top: 1px solid var(--border); background: #121c25; color: #8ca29d; text-align: left; font-size: 10px; }
.activity-footer:hover { color: var(--accent); background: #16241f; }
.full-templates { padding: 0; gap: 20px; }
.full-templates .template-visual { height: 140px; }
.full-templates .template-name { font-size: 14px; margin: 18px 18px 6px; }
.full-templates .template-description { font-size: 11px; margin: 0 18px 20px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 23px; }
.settings-body { padding: 0 22px 22px; color: #8fa4b3; font-size: 12px; line-height: 1.8; }
.settings-body .button { margin-top: 13px; }
.setup-step { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 27px; }
.setup-step:last-child { margin-bottom: 0; }
.setup-step > span { display: grid; place-items: center; flex-shrink: 0; width: 25px; height: 25px; border: 1px solid #36544b; border-radius: 50%; background: #18302b; color: #92ceb8; font-size: 10px; }
.setup-step > div { min-width: 0; }
.setup-step h3 { margin: 1px 0 6px; color: #d8e2e8; font-size: 12px; font-weight: 500; }
.domain-value { color: #d5e2dc; font-size: 12px; overflow-wrap: anywhere; margin-bottom: 10px; }
.settings-note p { margin-bottom: 6px; }
.footer-mark { display: inline-flex; align-items: center; justify-content: center; height: 15px; width: 15px; border: 1px solid #364955; border-radius: 3px; font-size: 9px; }
.modal-intro { color: #99afbc; font-size: 12px; margin-bottom: 23px; line-height: 1.8; }
.modal-body > .field + .field { margin-top: 20px; }
.modal-body > .field-help { margin: 12px 0; }
.modal-body .checkbox-field { margin: 21px 0 12px; }
.checkbox-field a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.optional { color: #627e8c; font-size: 10px; font-weight: 400; margin-left: 5px; }
.modal-body > p { line-height: 1.8; }

@keyframes view-in { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) { .page { padding-top: 44px; } .stat-card { min-height: 152px; } .template-visual { height: 120px; } }
@media (max-width: 1250px) {
  .sidebar { width: 204px; padding-left: 12px; padding-right: 12px; }
  .main { margin-left: 204px; }
  .topbar { padding: 0 26px; }
  .page { padding: 29px 26px 22px; }
  .two-columns { grid-template-columns: minmax(0, 1fr) 255px; gap: 18px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 17px 15px; }
  .stat-value { font-size: 27px; }
  .sparkline { width: 60px; opacity: .55; }
  .toolbar { flex-wrap: wrap; gap: 12px; }
  .search { width: 100%; }
  .server-table th, .server-table td { padding-left: 12px; padding-right: 12px; }
  .template-grid { gap: 10px; }
}
@media (max-width: 1050px) {
  .two-columns { grid-template-columns: minmax(0, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .right-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .right-column .panel + .panel { margin-top: 0; }
  .toolbar { flex-wrap: nowrap; }
  .search { width: 180px; }
  .heading-actions { gap: 7px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { min-height: 130px; }
  .sparkline { width: 85px; opacity: .8; }
}
@media (max-width: 760px) {
  .sidebar { width: 70px; padding: 24px 9px 18px; align-items: center; }
  .brand { padding: 0; gap: 0; font-size: 0; letter-spacing: 0; }
  .brand > span:not(.brand-mark), .brand-name { display: none; }
  .workspace-switch, .nav-label, .nav-item > span:not(.nav-icon), .nav-count, .sidebar-note, .profile > div:not(.avatar), .profile > svg, .profile > button { display: none; }
  .sidebar nav { width: 100%; margin-top: 32px; }
  .host-prompt, .profile > span:not(.avatar) { display: none; }
  .nav-group { width: 100%; margin-bottom: 20px; }
  .nav-item { justify-content: center; padding: 12px 0; font-size: 0; gap: 0; }
  .nav-item svg { width: 19px; height: 19px; }
  .sidebar-bottom { width: 100%; padding-top: 15px; }
  .profile { justify-content: center; padding: 17px 0 0; gap: 0; }
  .main { margin-left: 70px; }
  .topbar { height: 62px; padding: 0 20px; }
  .top-actions { gap: 7px; }
  .connection-pill { font-size: 9px; }
  .page { padding: 25px 20px 20px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 17px; }
  .page-title { font-size: 27px; }
  .page-subtitle { line-height: 1.8; }
  .heading-actions { width: 100%; }
  .demo-banner { align-items: flex-start; }
  .demo-banner > svg { margin-top: 3px; }
  .demo-banner button { display: none; }
  .right-column { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 15px 16px; }
  .panel-heading { padding: 18px 16px; }
  .toolbar { padding: 0 16px 16px; flex-wrap: wrap; }
  .search { width: 100%; }
  .template-name { font-size: 10px; margin-left: 10px; margin-right: 10px; }
  .template-description { font-size: 9px; margin-left: 10px; margin-right: 10px; }
  .page-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .sidebar { width: 56px; padding-left: 5px; padding-right: 5px; }
  .brand-mark { width: 26px; }
  .main { margin-left: 56px; }
  .topbar { padding: 0 13px; }
  .breadcrumb { font-size: 10px; gap: 6px; }
  .top-divider, .top-actions > .icon-button { display: none; }
  .connection-pill { max-width: 88px; font-size: 8px; }
  .page { padding: 22px 13px; }
  .page-title { font-size: 25px; }
  .page-subtitle { font-size: 11px; }
  .stats-grid { gap: 9px; margin-bottom: 20px; }
  .stat-card { min-height: 125px; padding: 14px 11px; }
  .stat-top { font-size: 10px; }
  .stat-top svg { width: 13px; height: 13px; }
  .stat-value { font-size: 25px; }
  .stat-value small, .stat-value span { font-size: 11px; }
  .stat-foot { font-size: 8px; }
  .sparkline { width: 43px; height: 21px; bottom: 13px; right: 9px; opacity: .5; }
  .tab { padding: 6px 8px; font-size: 9px; }
  .template-grid { grid-template-columns: 1fr; }
  .template-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto; }
  .template-visual { grid-row: 1 / 3; height: 100%; min-height: 82px; }
  .template-name { margin-top: 14px; }
  .template-description { margin-bottom: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .modal-head, .modal-body { padding: 20px; }
  .modal-footer { padding: 16px 20px; flex-wrap: wrap; }
  .toast-stack { bottom: 15px; right: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Interactive table cells and template artwork. */
.server-cell { border: 0; padding: 0; background: transparent; text-align: left; }
.server-name, .server-meta { display: block; }
.endpoint-button { border: 0; padding: 4px 0; background: transparent; color: #91a6b6; font-size: 10px; }
.endpoint-button:hover { color: var(--accent); }
.endpoint-button > span { color: #627c8d; margin-left: 5px; }
.template-visual { flex-direction: column; gap: 6px; }
.template-chip { font-size: 8px; letter-spacing: 1px; opacity: .8; }
.template-description { display: block; }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-stat { min-width: 0; }
.detail-stat strong { overflow-wrap: anywhere; font-size: 15px; }
.detail-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.console-label { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; letter-spacing: .7px; }
@media (max-width: 480px) { .template-chip { display: none; } .template-visual svg { width: 35px; height: 35px; } }
