@font-face { font-family: Space; src: url('/fonts/space-grotesk.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Inter; src: url('/fonts/inter.woff2') format('woff2'); font-display: swap; }
:root { color-scheme: dark; --bg: #000; --panel: #08060c; --raised: #100c18; --purple: #a77bff; --text: #f3f1f7; --muted: #9893a4; --line: #24202d; --danger: #ff9da7; font-family: Inter, sans-serif; color: var(--text); background: var(--bg); }
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: #c8aaff; }
button, input, select { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 14px; border: 1px solid #31283f; border-radius: 7px; background: var(--raised); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
button:hover, .button:hover { border-color: #8060b5; color: var(--text); background: #181020; }
button:disabled { cursor: not-allowed; opacity: .45; }
button.primary, .button.primary { background: #a77bff; border-color: #b68eff; color: #140b23; box-shadow: 0 1px 0 #d1baff66 inset, 0 3px 14px #7447d81a; font-weight: 650; }
button.primary:hover, .button.primary:hover { background: #b990ff; color: #140b23; }
button.danger { color: var(--danger); border-color: #63323d; background: #1a0d12; }
button svg, .button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
header { height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); background: #030204; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font: 600 21px Space, sans-serif; letter-spacing: -.05em; }
.brand svg { width: 22px; height: 22px; fill: none; stroke: var(--purple); stroke-width: 2; }
.product { display: flex; align-items: center; gap: 10px; padding-left: 24px; border-left: 1px solid var(--line); font-size: 13px; }
.preview-tag { color: #b8a1d9; background: #20152f; border: 1px solid #3b2852; border-radius: 4px; font-size: 10px; padding: 3px 6px; }
#account { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--muted); font-size: 12px; }
#account button { background: transparent; border-color: var(--line); min-height: 32px; padding: 6px 10px; font-size: 12px; }
.avatar { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #4b326b; border-radius: 50%; background: #20132e; color: #c4a4f5; font-size: 11px; }
.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 64px); }
nav { display: flex; flex-direction: column; gap: 5px; border-right: 1px solid var(--line); background: #030204; padding: 24px 14px 20px; }
.workspace-label { display: flex; align-items: center; gap: 10px; margin: 0 9px 27px; font-size: 12px; font-weight: 550; }
.workspace-label small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); font-weight: 400; }
.workspace-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #423150; border-radius: 7px; color: #c3a3ef; background: #1a1123; font: 600 16px Space, sans-serif; }
nav a { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 10px 12px; color: var(--muted); border: 1px solid transparent; border-radius: 6px; font-size: 12px; }
nav a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
nav a:hover { background: #0d0814; color: var(--text); }
nav a[aria-current] { border-color: #352343; background: #1a1025; color: #c9a7ff; }
.nav-bottom { margin-top: auto; padding-top: 90px; }
.nav-note { margin: 18px 12px 0; font-size: 10px; line-height: 1.6; color: #b0a3bd; }
.nav-note small { display: block; color: #776e83; font-size: 10px; margin-top: 4px; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--purple); border-radius: 50%; margin-right: 6px; }
main { min-width: 0; width: 100%; max-width: 1440px; margin: 0 auto; padding: 30px 38px 48px; }
h1, h2, h3 { font-family: Space, sans-serif; letter-spacing: -.035em; }
h1 { font-size: 29px; line-height: 1.25; margin: 0 0 7px; font-weight: 600; overflow-wrap: anywhere; }
h2 { font-size: 18px; margin: 0 0 10px; font-weight: 550; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 550; }
p { line-height: 1.6; max-width: 70ch; color: var(--muted); margin: 0 0 16px; font-size: 13px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.heading > div { min-width: 0; }
.heading p { margin: 0; }
.heading .button { flex-shrink: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 18px; color: #70677d; }
.breadcrumb a { color: #a496b7; }
.breadcrumb > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-banner { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: #a996bf; font-size: 11px; }
.local-banner .dot { margin: 0; width: 5px; height: 5px; }
.local-banner strong { font-weight: 500; color: #c6b4dd; }
.local-banner .banner-detail { padding-left: 10px; border-left: 1px solid var(--line); color: #756c82; }
.badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #b7a5cc; background: #1b1226; border: 1px solid #352642; padding: 5px 8px; border-radius: 5px; font-size: 10px; font-weight: 500; }
.badge::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #9b79c7; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 29px; }
.stat { min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 18px 19px; }
.stat span { color: #aaa0b7; font-size: 11px; }
.stat strong { display: block; font: 500 30px Space, sans-serif; letter-spacing: -.04em; margin-top: 12px; }
.stat small { display: block; color: #8d7e9c; font: 11px Inter, sans-serif; letter-spacing: 0; margin-top: 6px; }
.stat .meter { height: 3px; background: #23192f; border-radius: 4px; margin-top: 12px; overflow: hidden; }
.stat .meter span { display: block; height: 100%; background: #a77bff; width: var(--usage, 0%); }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.section-heading h2 { margin: 0; font-size: 16px; }
.muted { color: var(--muted); font-weight: 400; margin-left: 6px; }
.section-heading a { font-size: 11px; }
.project-list { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--panel); }
.project-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; padding: 21px 22px; align-items: start; border-bottom: 1px solid var(--line); }
.project-row:last-child { border-bottom: 0; }
.project-row:hover { background: #0e0915; }
.project-symbol { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #332440; background: #191020; border-radius: 8px; color: #cbb1ed; font: 500 15px Space, sans-serif; }
.project-row h3 { font-size: 14px; margin: 0 0 5px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.project-row h3 a { color: #eee8f6; }
.project-row code { font-size: 11px; color: #8e7b9f; }
.project-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; color: #91849f; font-size: 10px; }
.project-meta span { display: inline-flex; gap: 5px; align-items: center; }
.project-meta svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.project-row > .badge { margin-top: 2px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 24px; }
.side-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 20px; margin-bottom: 14px; }
.side-panel h3 { font-size: 13px; }
.side-panel p { font-size: 11px; line-height: 1.7; margin: 0 0 14px; }
.side-panel a { font-size: 11px; }
.checklist { display: grid; gap: 15px; padding: 0; margin: 16px 0 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 9px; color: #9f92ae; font-size: 11px; }
.check-mark { display: grid; place-items: center; width: 17px; height: 17px; border: 1px solid #3c2b4c; border-radius: 50%; color: #b98bf1; font-size: 10px; }
.check-mark.pending { color: #726480; border-style: dashed; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--panel); border: 1px solid var(--line); padding: 43px 24px; border-radius: 9px; }
.empty > svg { width: 35px; height: 35px; padding: 6px; stroke: #b295d5; fill: none; stroke-width: 1.5; border: 1px solid #39284a; border-radius: 7px; background: #1a1025; margin-bottom: 18px; }
.empty h2 { font-size: 17px; }
.empty p { font-size: 12px; max-width: 46ch; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.form { max-width: 900px; }
.form-section { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 24px; margin-bottom: 18px; }
.form-section > h2 { margin-bottom: 18px; font-size: 16px; }
.form-section > p { font-size: 12px; margin: -8px 0 20px; }
.form-section .field:last-child { margin-bottom: 0; }
label { display: block; font-size: 12px; color: #d4c9e2; margin-bottom: 8px; }
input, select { width: 100%; min-width: 0; min-height: 40px; padding: 10px 12px; background: #040207; border: 1px solid #2c2236; border-radius: 6px; color: var(--text); font-size: 12px; }
input::placeholder { color: #675b75; }
input:hover, select:hover { border-color: #493159; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.fields .field { margin-bottom: 0; }
.field { min-width: 0; margin-bottom: 20px; }
.field small { display: block; font-size: 10px; color: #80718f; line-height: 1.6; margin-top: 7px; }
.domain-input { display: flex; align-items: center; border: 1px solid #47315c; background: #0c0711; border-radius: 6px; box-shadow: 0 0 0 3px #a77bff06; }
.domain-input input { border: 0; background: transparent; color: #ceb3f1; font-family: ui-monospace, monospace; }
.domain-input span { padding: 0 12px; color: #89729f; font: 11px ui-monospace, monospace; white-space: nowrap; }
.domain-input:focus-within { outline: 2px solid var(--purple); outline-offset: 3px; }
.domain-input input:focus-visible { outline: none; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 22px 0 24px; }
.tabs a { padding: 12px 0; font-size: 12px; color: #8f829f; white-space: nowrap; }
.tabs a[aria-current] { color: #c5a1f5; border-bottom: 2px solid #a77bff; }
.project-top { display: flex; align-items: center; gap: 13px; }
.project-top .project-symbol { width: 44px; height: 44px; flex-shrink: 0; }
.project-top h1 { font-size: 26px; }
.project-top code { color: #8e7b9f; font-size: 11px; overflow-wrap: anywhere; }
.deployment-panel { border: 1px solid #352343; border-radius: 9px; overflow: hidden; background: var(--panel); margin-bottom: 22px; }
.deployment-preview { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; min-height: 180px; background: radial-gradient(ellipse at 50% 100%, #251333 0%, transparent 65%), #07040a; border-bottom: 1px solid #302039; }
.deployment-preview svg { width: 38px; height: 38px; stroke: #9473b7; fill: none; stroke-width: 1.2; }
.deployment-preview code { color: #b89ad3; font-size: 12px; text-align: center; padding: 0 20px; overflow-wrap: anywhere; }
.deployment-body { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; }
.deployment-body h2 { font-size: 16px; margin-bottom: 6px; }
.deployment-body p { margin: 0; font-size: 12px; }
.deployment-body .actions { margin: 0; flex-shrink: 0; }
.details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 6px 22px; }
.details > div { min-width: 0; padding: 16px 0; border-bottom: 1px solid #1c1525; }
.details > div:nth-last-child(-n+2) { border-bottom: 0; }
.details dt { color: #83758f; font-size: 10px; margin-bottom: 7px; }
.details dd { margin: 0; color: #d9cfe6; font-size: 12px; overflow-wrap: anywhere; }
code { font: 12px ui-monospace, monospace; color: #b5a1cb; }
.error { color: var(--danger); }
.note { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); margin: 18px 0; }
.note h3 { font-size: 13px; }
.note p { font-size: 12px; }
.note p:last-child { margin-bottom: 0; }
.danger-section { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-color: #41202c; padding: 20px 24px; margin-top: 24px; }
.danger-section h2 { color: #eac4cb; font-size: 14px; margin: 0 0 6px; }
.danger-section p { margin: 0; font-size: 11px; }
.footer-note { color: #71647d; font-size: 10px; margin-top: 23px; }
.login { max-width: 650px; padding: 50px 0; }
.login h1 { font-size: 44px; line-height: 1.15; }
.login p { font-size: 14px; margin-top: 20px; }
.separator { margin: 25px 0; border-top: 1px solid var(--line); }
.skip { position: absolute; top: -60px; left: 12px; background: var(--purple); color: #000; padding: 10px; z-index: 2; }
.skip:focus { top: 12px; }
#notice { display: none; position: fixed; bottom: 20px; right: 20px; max-width: 360px; padding: 13px 18px; border: 1px solid #543970; border-radius: 7px; background: #1a1025; color: #dac5f5; box-shadow: 0 8px 30px #0008; font-size: 12px; z-index: 5; }
#notice.visible { display: block; }
dialog { width: min(92vw, 460px); padding: 26px; border: 1px solid #4b325e; border-radius: 10px; color: var(--text); background: #0c0711; box-shadow: 0 24px 100px #000c; }
dialog::backdrop { background: #000b; backdrop-filter: blur(3px); }
dialog h2 { margin-top: 0; }
dialog p { font-size: 12px; }
#delete-error { margin-top: 12px; color: var(--danger); }
[hidden] { display: none !important; }
.badge.live { color: #b7e4cc; border-color: #284536; background: #0c1b14; }
.badge.live::before { background: #89cfa8; }
.deployment-row { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); margin-bottom: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; }
.deployment-title { display: flex; align-items: center; gap: 12px; }
.deployment-row p { font-size: 11px; margin: 10px 0 0; }
.deployment-controls { display: flex; gap: 8px; }
.deployment-controls button { min-height: 32px; padding: 7px 10px; font-size: 11px; }
.log-panel { width: 100%; min-width: 0; }
.log-toolbar { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.log-toolbar label { flex: 1; min-width: 0; margin: 0; font-size: 10px; }
.log-toolbar input, .log-toolbar select { margin-top: 7px; }
.log-content { margin: 0; padding: 15px; border: 1px solid #2a2036; background: #020103; border-radius: 6px; font: 11px/1.9 ui-monospace, monospace; color: #b5a3c6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 380px; overflow-y: auto; }
.upload-help { font-size: 11px; margin: 10px 0 20px; }
#upload-file { padding: 14px 10px; }
@media (max-width: 1100px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .workspace-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .deployment-body { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 180px minmax(0, 1fr); }
  main { padding: 26px 24px; }
  nav { padding-left: 10px; padding-right: 10px; }
  .workspace-label { font-size: 10px; margin-left: 4px; }
  .workspace-icon { width: 26px; height: 26px; }
  .workspace-label small { font-size: 9px; }
  .stats { gap: 8px; }
  .stat { padding: 15px 12px; }
  .project-row { padding: 18px; }
  .project-row > .badge { grid-column: 2; }
  .fields { gap: 14px; }
  .tabs { gap: 17px; }
  .tabs a { font-size: 11px; }
}
@media (max-width: 640px) {
  header { height: 58px; gap: 14px; padding: 0 17px; }
  .brand { font-size: 20px; }
  .product { padding-left: 14px; font-size: 12px; }
  .preview-tag, #account > span:not(.avatar) { display: none; }
  #account { gap: 7px; }
  .avatar { display: none; }
  .shell { display: block; }
  nav { flex-direction: row; gap: 5px; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  nav > a { flex: 1; justify-content: center; gap: 7px; padding: 9px 7px; min-height: 35px; font-size: 11px; }
  nav a svg { width: 13px; height: 13px; }
  .workspace-label, .nav-bottom { display: none; }
  main { padding: 22px 18px 36px; }
  h1 { font-size: 25px; }
  .heading { align-items: flex-start; gap: 15px; margin-bottom: 22px; }
  .heading p { font-size: 11px; }
  .heading > .button { font-size: 11px; min-height: 34px; padding: 8px 11px; }
  .local-banner { margin-bottom: 17px; font-size: 10px; }
  .banner-detail { display: none; }
  .stats { gap: 7px; margin-bottom: 24px; }
  .stat { padding: 13px 10px; }
  .stat span { font-size: 9px; }
  .stat strong { font-size: 25px; margin-top: 9px; }
  .stat small { font-size: 9px; line-height: 1.5; min-height: 26px; }
  .project-row { padding: 17px 15px; gap: 10px; grid-template-columns: 31px minmax(0, 1fr); }
  .project-symbol { width: 31px; height: 31px; font-size: 13px; }
  .project-row h3 { font-size: 13px; }
  .project-row code { font-size: 10px; overflow-wrap: anywhere; }
  .project-meta { gap: 10px; font-size: 9px; }
  .project-row > .badge { width: fit-content; padding: 4px 6px; font-size: 9px; }
  .workspace-aside { display: block; }
  .side-panel { padding: 17px; }
  .empty { padding: 32px 20px; }
  .project-top { gap: 10px; }
  .project-top .project-symbol { width: 34px; height: 34px; }
  .project-top h1 { font-size: 22px; }
  .project-top code { font-size: 10px; }
  .project-header { flex-direction: column; gap: 12px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: 7px; padding: 4px; background: var(--panel); }
  .tabs a { display: block; text-align: center; font-size: 10px; padding: 9px 4px; border-radius: 4px; }
  .tabs a[aria-current] { background: #241530; border-bottom: 0; color: #d1b3f4; }
  .deployment-preview { min-height: 145px; }
  .deployment-preview code { font-size: 10px; }
  .deployment-body { padding: 17px; }
  .deployment-body h2 { font-size: 15px; }
  .deployment-body p { font-size: 11px; }
  .details { gap: 0 15px; padding: 3px 16px; }
  .details dt { font-size: 9px; }
  .details dd, .details code { font-size: 11px; }
  .form-section { padding: 19px 16px; margin-bottom: 14px; }
  .form-section > h2 { font-size: 15px; margin-bottom: 16px; }
  .form-section > p { font-size: 11px; }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .domain-input span { font-size: 10px; padding: 0 8px; }
  .danger-section { flex-direction: column; align-items: flex-start; gap: 14px; }
  .login { padding: 30px 0; }
  .login h1 { font-size: 34px; }
  #notice { left: 16px; right: 16px; bottom: 16px; }
}
@media (max-width: 380px) { .product { display: none; } .heading:not(.project-header) { flex-direction: column; } .stat { padding: 12px 8px; } }
@media (prefers-reduced-motion: no-preference) { button, a { transition: background .12s, border-color .12s, color .12s; } }
