:root {
  color-scheme: dark;
  --bg: #030608;
  --chrome: #0a0f12;
  --chrome-2: #11181d;
  --panel: #f7fbff;
  --panel-2: #e8f2f6;
  --ink: #071014;
  --muted: #64727a;
  --line: #243139;
  --line-light: #c8d6dc;
  --cyan: #18d8ff;
  --cyan-dark: #007fa3;
  --lime: #72ffad;
  --warn: #ffd94d;
  --danger: #ff5c7a;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: #f8fbff;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.browser-app {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 48px 54px 1fr;
  background:
    linear-gradient(90deg, rgba(24, 216, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(24, 216, 255, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: 40px 40px;
}

.browser-tabs,
.omnibar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 13, 16, 0.98);
  border-bottom: 1px solid var(--line);
}

.browser-tabs {
  padding: 7px 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 142px;
  color: white;
}

.brand-glyph,
.wp-dot,
.wp-mark {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.brand-glyph {
  width: 26px;
  height: 26px;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}

.tab-strip {
  display: flex;
  align-self: end;
  gap: 4px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
}

.tab-chip {
  min-width: 196px;
  height: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #0e1519;
  color: #d8e3e8;
  padding: 0 12px;
}

.tab-chip.active {
  background: #f7fbff;
  color: var(--ink);
}

.tab-chip small {
  color: var(--muted);
  white-space: nowrap;
}

.tab-chip.compact {
  min-width: 42px;
  grid-template-columns: 1fr;
  justify-items: center;
  color: var(--cyan);
  font-size: 20px;
  font-weight: 800;
}

.tab-state {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(255, 217, 77, 0.14);
}

.tab-state.saved {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(114, 255, 173, 0.16);
}

.window-button,
.icon-button,
.chrome-actions button,
.manager-tabs button,
.filter-row button,
.tool-row button,
.manager-links button,
.ghost-button,
.text-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111a20;
  color: #eef8fb;
  min-height: 34px;
  padding: 0 12px;
}

.window-button {
  width: 34px;
  padding: 0;
  color: #9cabaf;
}

.omnibar {
  padding: 8px 12px;
}

.icon-button {
  width: 36px;
  padding: 0;
  color: var(--cyan);
  font-weight: 800;
}

.address-field {
  flex: 1;
  min-width: 180px;
  height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid #2d3b43;
  border-radius: 8px;
  background: #172128;
  overflow: hidden;
}

.scheme {
  padding-left: 12px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 13px;
}

.address-field input,
.search-field input,
.dialog input,
.settings-grid select {
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
}

.address-field input {
  width: 100%;
  height: 100%;
  padding: 0 12px 0 4px;
  color: white;
}

.save-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--warn);
  white-space: nowrap;
  font-size: 13px;
}

.save-meter span:last-child {
  color: #aab7bd;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn);
}

.primary-button,
.cyan-button {
  min-height: 36px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  background: var(--cyan);
  color: #001117;
  font-weight: 800;
  padding: 0 15px;
}

.chrome-actions {
  display: flex;
  gap: 6px;
}

.chrome-actions button {
  color: #dce9ef;
}

.chrome-actions button.active {
  border-color: var(--cyan);
  color: var(--cyan);
}

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(330px, 420px) 1fr;
  gap: 10px;
  padding: 10px;
}

.workspace > * {
  min-width: 0;
}

.drawer {
  display: none;
  min-height: 0;
  overflow: auto;
  background: #f8fcff;
  color: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.drawer.open {
  display: block;
}

.drawer.wide {
  min-width: min(52vw, 720px);
}

.drawer-head {
  padding: 22px 24px 12px;
}

.drawer-head p,
.dialog > p {
  margin: 0 0 5px;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.drawer-head h1,
.dialog h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
  letter-spacing: 0;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 24px 18px;
}

.start-tile,
.blueprint-pins button,
.saved-stack article,
.library-list article,
.export-stack button {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.start-tile {
  min-height: 112px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding: 14px;
  text-align: left;
}

.start-tile span {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  border-radius: 6px;
  background: #001219;
  color: var(--cyan);
  font-weight: 900;
  font-size: 12px;
}

.start-tile.strong {
  background: #031116;
  color: white;
  border-color: var(--cyan);
}

.start-tile small,
.blueprint-pins small,
.saved-stack small,
.library-list small,
.export-stack small,
.gallery-grid small {
  color: var(--muted);
}

.drawer-section,
.saved-stack {
  padding: 0 24px 22px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title h2 {
  margin: 0;
  font-size: 16px;
}

.text-button {
  background: transparent;
  color: var(--cyan-dark);
  border-color: var(--line-light);
}

.blueprint-pins {
  display: grid;
  gap: 10px;
}

.blueprint-pins button {
  min-height: 82px;
  display: grid;
  grid-template-columns: 86px 1fr;
  grid-template-rows: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 8px;
  text-align: left;
}

.pin-art,
.gallery-image {
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  grid-row: 1 / 3;
}

.pin-art {
  width: 86px;
  height: 64px;
}

.art { background: linear-gradient(135deg, #695018, #eac66d 48%, #2f827b 49%, #b9e8ff); }
.coffee { background: linear-gradient(160deg, #4a1777 0 45%, #f08435 46% 68%, #ffe0a3 69%); }
.feed { background: linear-gradient(180deg, #f6f8ff, #ffffff 42%, #b7cdfb 43%, #3857d7); }
.gaming { background: linear-gradient(135deg, #0b0b0b 0 38%, #f4f4f4 39% 56%, #c63721 57%, #ffc24b); }
.nonprofit { background: linear-gradient(130deg, #27130a, #b26320 42%, #f8c78c 43%, #202020); }
.blog { background: linear-gradient(135deg, #65133b, #32061d); }

.saved-stack article,
.library-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
  margin-bottom: 8px;
}

.saved-stack article.selected,
.library-list article.active {
  border-color: var(--cyan);
  box-shadow: inset 4px 0 0 var(--cyan);
}

.saved-stack button,
.library-list button,
.split-actions button,
.dialog-actions button {
  min-height: 32px;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
}

.wp-dot {
  width: 34px;
  height: 34px;
  background: #0b1115;
  color: white;
}

.library-list,
.drawer-card,
.export-stack {
  padding: 10px 24px 24px;
}

.split-actions {
  display: flex;
  gap: 6px;
}

.split-actions .danger,
.library-list .danger {
  color: #a40025;
  border-color: #ffb6c4;
}

.drawer-card {
  margin: 0 24px 24px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: #eef8fb;
}

.drawer-card h2,
.database-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
}

.drawer-card p,
.database-card p,
.dialog-copy,
.gallery-grid p {
  color: #44545c;
  line-height: 1.45;
}

.progress-row {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: #40515a;
}

meter {
  width: 100%;
  height: 10px;
}

.manager-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-right: 20px;
}

.manager-links {
  display: flex;
  gap: 8px;
  padding-top: 22px;
}

.manager-links button,
.tool-row button,
.manager-tabs button,
.filter-row button,
.ghost-button {
  background: #f6fbff;
  color: var(--ink);
  border-color: var(--line-light);
}

.manager-tabs,
.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 24px 14px;
}

.manager-tabs button.active,
.filter-row button.active,
.tool-row .filled {
  background: #001219;
  color: var(--cyan);
  border-color: var(--cyan);
}

.manager-panel {
  display: none;
  padding: 0 24px 24px;
}

.manager-panel.active {
  display: block;
}

.notice-bar {
  padding: 12px;
  border-left: 4px solid var(--cyan);
  background: #eaf8fc;
  color: #24343c;
  margin-bottom: 14px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.settings-grid label,
.dialog label {
  display: grid;
  gap: 6px;
  color: #40515a;
  font-size: 13px;
  font-weight: 700;
}

.settings-grid select,
.dialog input {
  min-height: 38px;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0 10px;
}

.settings-grid .check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.cyan-button,
.ghost-button {
  margin-right: 8px;
}

.tool-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.code-workbench {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 342px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  overflow: hidden;
}

.file-tree {
  list-style: none;
  margin: 0;
  padding: 10px;
  background: #f0f5f8;
  border-right: 1px solid var(--line-light);
  color: #26353d;
}

.file-tree li {
  padding: 8px 10px;
  border-radius: 6px;
}

.file-tree .active {
  background: white;
  box-shadow: inset 3px 0 0 var(--cyan);
}

.file-tree.single {
  max-width: 170px;
}

pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  background: #071014;
  color: #d7f8ff;
  line-height: 1.55;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.database-card {
  padding: 18px;
  background: #f0f7fa;
  border: 1px solid var(--line-light);
  border-radius: 8px;
}

dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 14px;
  margin: 18px 0;
}

dt {
  color: #44545c;
  font-weight: 800;
}

dd {
  margin: 0;
}

.log-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.log-tabs button {
  min-height: 34px;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
}

.log-tabs .active {
  background: #001219;
  color: var(--cyan);
  border-color: var(--cyan);
}

.log-empty {
  min-height: 230px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  border: 1px dashed var(--line-light);
  border-radius: 8px;
  color: #53646c;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: 420px;
  margin: 0 24px 18px;
  padding: 0 12px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  color: #667982;
  background: white;
}

.search-field input {
  width: 100%;
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 24px;
}

.gallery-grid article {
  min-height: 264px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.gallery-grid article.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(24, 216, 255, 0.18);
}

.gallery-image {
  height: 120px;
  border: 0;
  border-radius: 0;
}

.gallery-grid strong,
.gallery-grid p,
.gallery-grid small {
  display: block;
  margin: 12px 14px 0;
}

.export-stack {
  display: grid;
  gap: 10px;
}

.export-stack button {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
  text-align: left;
}

.viewport {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #101517;
}

.wp-adminbar {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  background: #171d21;
  color: #edf2f5;
  font-size: 13px;
}

.wp-adminbar button {
  border: 0;
  background: transparent;
  color: inherit;
}

.wp-mark {
  width: 22px;
  height: 22px;
  border: 1px solid #d8e2e6;
  color: white;
}

.spacer {
  flex: 1;
}

.site-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 42px;
  border-bottom: 1px solid #f0f0f0;
}

.site-header strong {
  font-size: 20px;
}

.site-header nav {
  display: flex;
  gap: 24px;
}

.site-header a {
  color: #293036;
  text-decoration: none;
}

.site-page {
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  align-items: center;
  gap: 40px;
  padding: 54px 46px 90px;
}

.site-copy h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0;
}

.site-copy h2 span {
  color: #3453ff;
}

.site-copy p {
  margin: 0 0 14px;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.45;
}

.site-copy .highlight {
  display: inline;
  background: #ffe97d;
}

.site-copy button {
  min-height: 58px;
  margin-top: 14px;
  border: 0;
  border-radius: 2px;
  background: #3657f0;
  color: white;
  padding: 0 28px;
  font-weight: 800;
  font-size: 18px;
}

.wp-graphic {
  position: relative;
  min-height: 560px;
}

.halo {
  position: absolute;
  left: 4%;
  right: -28%;
  border: 58px solid #30ec79;
  border-radius: 50%;
  transform: rotate(-6deg);
}

.halo.one {
  top: 80px;
  height: 270px;
}

.halo.two {
  top: 300px;
  height: 220px;
}

.wp-circle {
  position: absolute;
  top: 26px;
  left: 28%;
  width: 310px;
  height: 310px;
  display: grid;
  place-items: center;
  border: 18px solid #1c1c1c;
  border-radius: 50%;
  color: #1c1c1c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 210px;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.78);
}

.status-dock {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #d8e3e8;
}

.status-dock div {
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 9px 12px;
  background: rgba(248, 252, 255, 0.94);
}

.status-dock strong {
  font-size: 11px;
  text-transform: uppercase;
  color: #5d6d74;
}

.status-dock span {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.dialog {
  width: min(560px, 100%);
  position: relative;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.dialog h2 {
  margin-bottom: 18px;
}

.dialog label {
  margin-bottom: 14px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--line-light);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  min-height: 32px;
}

.radio-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-cards label {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 12px;
  background: #f5fbff;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: minmax(300px, 380px) 1fr;
  }

  .chrome-actions button {
    padding: 0 9px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-page {
    grid-template-columns: minmax(280px, 520px) 0.75fr;
    padding-left: 32px;
    padding-right: 24px;
  }
}

@media (max-width: 900px) {
  .browser-tabs,
  .omnibar,
  .workspace {
    max-width: 100vw;
  }

  .browser-app {
    grid-template-rows: auto auto auto;
    overflow-x: hidden;
  }

  .browser-tabs,
  .omnibar {
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .save-meter {
    order: 4;
    width: 100%;
  }

  .chrome-actions {
    width: 100%;
    overflow-x: auto;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }

  .drawer,
  .drawer.wide {
    min-width: 0;
    max-height: none;
  }

  .viewport {
    min-height: 680px;
  }

  .site-header {
    padding: 16px 22px;
    align-items: start;
    flex-direction: column;
  }

  .site-page {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 22px 94px;
  }

  .wp-graphic {
    min-height: 260px;
  }

  .halo {
    border-width: 34px;
    left: 16%;
  }

  .halo.one {
    top: 18px;
    height: 160px;
  }

  .halo.two {
    top: 146px;
    height: 130px;
  }

  .wp-circle {
    width: 180px;
    height: 180px;
    top: 0;
    left: 28%;
    border-width: 10px;
    font-size: 120px;
  }
}

@media (max-width: 620px) {
  .tab-chip {
    min-width: 174px;
  }

  .address-field {
    flex-basis: calc(100% - 46px);
  }

  .primary-button {
    flex: 1;
  }

  .start-grid,
  .settings-grid,
  .gallery-grid,
  .radio-cards,
  .status-dock {
    grid-template-columns: 1fr;
  }

  .manager-top,
  .site-header nav {
    flex-direction: column;
  }

  .manager-links {
    padding: 0 24px 14px;
  }

  .code-workbench {
    grid-template-columns: 1fr;
  }

  .file-tree {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .wp-adminbar {
    overflow-x: auto;
  }

  .site-copy p {
    font-size: 17px;
  }

  .site-copy button {
    width: 100%;
    white-space: normal;
  }

  .status-dock {
    position: static;
    margin: 0 14px 14px;
  }
}
