:root {
  color-scheme: dark;
  --bg: #141719;
  --panel: #1d2327;
  --panel-2: #252c31;
  --panel-3: #111416;
  --line: #3a454d;
  --line-2: #4c5963;
  --text: #f2f5f7;
  --muted: #a9b2ba;
  --muted-2: #7e8992;
  --blue: #3f6df6;
  --cyan: #2dbbd3;
  --green: #50d48b;
  --amber: #ffd45a;
  --red: #ff806e;
  --pink: #d78af5;
  --paper: #f7f5ec;
  --ink: #1d2024;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(45, 187, 211, .08), transparent 320px),
    linear-gradient(90deg, rgba(255, 212, 90, .04), transparent 48%),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  color: var(--text);
  background: #293137;
  cursor: pointer;
  white-space: normal;
}

button:hover,
button:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: #15191c;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

h3 {
  font-size: 16px;
}

pre {
  margin: 0;
  overflow: auto;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #dce7ef;
}

code {
  font-family: inherit;
}

.workspace {
  min-height: 100vh;
  padding-bottom: 28px;
}

.shellbar,
.project-tabs,
.project-header,
.section-tabs,
.content-grid {
  width: min(1420px, calc(100% - 28px));
  margin-inline: auto;
}

.shellbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(280px, 1.3fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  padding: 10px 0;
  background: rgba(20, 23, 25, .94);
  backdrop-filter: blur(16px);
}

.brand,
.address,
.shell-actions,
.project-tab,
.project-header,
.header-buttons,
.card-head,
.saved-list article,
.browser-top,
.wp-nav,
.command-row,
.tool-row,
.editor-bar,
.filter-row,
.bottom-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  min-width: 0;
}

.brand > div,
.project-tab span,
.saved-list div,
.project-header > div,
.browser-top span,
.wp-nav span,
.wp-nav strong {
  min-width: 0;
}

.brand-mark,
.mini-wp {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #6d7880;
  border-radius: 50%;
  color: white;
  font-weight: 800;
  background: radial-gradient(circle at 30% 20%, #3f6df6, #111416 72%);
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.mini-wp {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.brand strong,
.brand span,
.project-tab span,
.project-tab small,
.saved-list strong,
.saved-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.address {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
}

.icon-button {
  width: 36px;
  padding: 0;
}

.shell-actions,
.header-buttons,
.command-row,
.tool-row {
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.primary {
  border-color: #5f82ff;
  background: var(--blue);
  color: white;
  font-weight: 700;
}

.wide {
  width: 100%;
}

.saved-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.saved-state.unsaved {
  color: #201900;
  background: var(--amber);
}

.project-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) minmax(150px, .7fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--panel-3);
}

.project-tab {
  justify-content: flex-start;
  gap: 9px;
  min-height: 52px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #1b2024;
}

.project-tab.active {
  background: var(--panel-2);
  box-shadow: inset 0 3px 0 var(--cyan);
}

.project-tab.add {
  justify-content: center;
  color: var(--amber);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot.saved {
  background: var(--green);
}

.dot.unsaved {
  background: var(--amber);
}

.project-tab small {
  color: var(--muted-2);
  font-size: 11px;
}

.project-header {
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-inline: 1px solid var(--line);
  background: rgba(29, 35, 39, .94);
}

.project-header p {
  color: var(--muted);
  margin-top: 6px;
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800;
}

.section-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-top: 0;
  background: #171b1e;
}

.section-tab {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}

.section-tab.active {
  color: white;
  background: #22292e;
  box-shadow: inset 0 -3px 0 var(--amber);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: 14px;
  padding-top: 14px;
}

.side-stack,
.tab-panels {
  min-width: 0;
}

.side-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.card,
.tab-panel,
.browser-frame,
.file-tree,
.editor-pane,
.log-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(29, 35, 39, .96);
  box-shadow: var(--shadow);
}

.card {
  padding: 16px;
}

.card.compact {
  box-shadow: none;
}

.card-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head > span,
.card p,
.launch-detail p,
.info-card p,
.notice span {
  color: var(--muted);
}

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

.launch-option {
  min-height: 48px;
  text-align: left;
  background: #222a2f;
}

.launch-option.active,
.segmented .active,
.filter-row .active {
  border-color: var(--cyan);
  background: rgba(45, 187, 211, .18);
  color: white;
}

.launch-detail {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #151a1d;
}

.detail-control {
  margin-top: 2px;
}

.save-card {
  display: grid;
  gap: 12px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.progress-row {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #101315;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.saved-list {
  display: grid;
  gap: 8px;
}

.saved-list article {
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #171c20;
}

.saved-list article.selected {
  border-color: #5f82ff;
  background: rgba(63, 109, 246, .16);
}

.saved-list div {
  flex: 1 1 auto;
}

.saved-list small {
  color: var(--muted-2);
}

.tab-panel {
  display: none;
  min-height: 680px;
  padding: 14px;
}

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

.site-tab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 14px;
}

.browser-frame {
  overflow: hidden;
  background: #f7f7f7;
}

.browser-top {
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 14px;
  color: #dce3e8;
  background: #1d2327;
  font-size: 13px;
}

.wp-page {
  min-height: 590px;
  color: #121416;
  background: white;
}

.wp-nav {
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 0 28px;
  font-size: 15px;
}

.wp-nav span,
.wp-nav strong {
  white-space: nowrap;
}

.wp-hero {
  display: grid;
  grid-template-columns: minmax(250px, 460px) minmax(240px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 70px 28px 50px 42px;
  overflow: hidden;
}

.wp-hero h2 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  color: #111;
}

.wp-hero h2 span {
  color: #3858f6;
}

.wp-hero p {
  margin-top: 18px;
  color: #151515;
  font-size: 20px;
  line-height: 1.45;
}

.wp-hero mark {
  display: inline-block;
  margin-top: 22px;
  padding: 0 4px;
  background: #fff099;
}

.wp-hero button {
  margin-top: 22px;
  min-height: 44px;
  border-color: #3858f6;
  background: #3858f6;
  color: white;
}

.wp-glyph {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}

.wp-glyph::before,
.wp-glyph::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 220px;
  border: 42px solid #31e879;
  border-radius: 50%;
  transform: rotate(3deg);
}

.wp-glyph::after {
  width: 360px;
  height: 130px;
  bottom: 45px;
  border-top-color: transparent;
}

.wp-glyph span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 250px;
  height: 250px;
  border: 18px solid #1f1f1f;
  border-radius: 50%;
  color: #1f1f1f;
  font-family: Georgia, serif;
  font-size: 180px;
  line-height: 1;
  background: rgba(255, 255, 255, .82);
}

.class-notes {
  display: grid;
  gap: 14px;
  align-content: start;
}

.command-row {
  justify-content: flex-start;
}

.blueprint-shortcuts,
.export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.manager-layout,
.blueprint-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
}

.file-tree {
  padding: 12px;
  box-shadow: none;
}

.tool-row {
  justify-content: flex-start;
  margin-bottom: 12px;
}

.file-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-tree li {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
}

.file-tree li.open {
  color: white;
  background: #14191c;
}

.file-tree li.active {
  color: white;
  background: rgba(45, 187, 211, .18);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.editor-pane {
  overflow: hidden;
  min-width: 0;
  background: #101315;
  box-shadow: none;
}

.editor-bar {
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #1b2024;
}

.editor-bar span {
  color: #dfe8ed;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-pane pre {
  min-height: 570px;
  padding: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 72px),
    #101315;
}

.blueprint-workspace {
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
}

.gallery-panel {
  min-width: 0;
}

.blueprint-files {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #171c20;
}

.blueprint-files ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blueprint-files li {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #111416;
}

.blueprint-files li.active {
  color: white;
  border-color: var(--cyan);
}

.gallery-panel .card-head {
  align-items: flex-start;
}

.gallery-panel .card-head input {
  max-width: 240px;
}

.filter-row {
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.filter-row button {
  min-height: 30px;
  border-radius: 999px;
}

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

.gallery-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #20262b;
}

.gallery-grid strong,
.gallery-grid span {
  display: block;
  padding-inline: 10px;
}

.gallery-grid strong {
  padding-top: 9px;
}

.gallery-grid span {
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.thumb {
  height: 86px;
  border-bottom: 1px solid var(--line);
}

.thumb.art {
  background: linear-gradient(135deg, #826223, #193f46 44%, #e7c06a);
}

.thumb.coffee {
  background: linear-gradient(135deg, #4c2571, #ffb35d 64%, #411c4f);
}

.thumb.feed {
  background: linear-gradient(135deg, #e7eef7, #728ee6);
}

.thumb.news {
  background: linear-gradient(135deg, #111, #bb4228 45%, #f5f5f5 46%);
}

.thumb.nonprofit {
  background: linear-gradient(135deg, #3b1d10, #b67a32, #161616);
}

.data-grid,
.logs-grid,
.settings-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card,
.settings-card {
  display: grid;
  gap: 14px;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #171c20;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.log-card {
  overflow: hidden;
  box-shadow: none;
}

.log-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #1b2024;
}

.log-card span {
  color: var(--green);
}

.log-card pre {
  min-height: 260px;
  padding: 14px;
  background: #101315;
}

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

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

.check input {
  width: auto;
  min-height: auto;
}

.notice {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 212, 90, .1);
}

.bottom-nav {
  display: none;
}

@media (max-width: 1100px) {
  .shellbar {
    grid-template-columns: 1fr;
  }

  .shell-actions {
    justify-content: flex-start;
  }

  .project-tabs {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .project-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-grid,
  .site-tab-layout,
  .manager-layout,
  .blueprint-workspace,
  .data-grid,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .side-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .workspace {
    padding-bottom: 82px;
  }

  .shellbar,
  .project-tabs,
  .project-header,
  .section-tabs,
  .content-grid {
    width: min(100% - 20px, 720px);
  }

  .project-tabs {
    grid-template-columns: repeat(4, 190px);
  }

  .section-tabs {
    display: none;
  }

  .project-header {
    padding: 14px;
  }

  .header-buttons button {
    flex: 1 1 130px;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .tab-panel {
    min-height: auto;
    padding: 10px;
  }

  .wp-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .wp-hero {
    grid-template-columns: 1fr;
    padding: 32px 18px;
  }

  .wp-glyph {
    min-height: 240px;
  }

  .wp-glyph::before,
  .wp-glyph::after {
    width: 320px;
    height: 130px;
    border-width: 28px;
  }

  .wp-glyph span {
    width: 150px;
    height: 150px;
    border-width: 12px;
    font-size: 104px;
  }

  .launch-grid,
  .segmented,
  .blueprint-shortcuts,
  .export-grid,
  .gallery-grid,
  .settings-grid,
  .logs-grid {
    grid-template-columns: 1fr;
  }

  .gallery-panel .card-head {
    display: grid;
  }

  .gallery-panel .card-head input {
    max-width: none;
  }

  dl div {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: rgba(20, 23, 25, .96);
    box-shadow: var(--shadow);
  }

  .bottom-item {
    min-height: 44px;
    padding: 0 4px;
    font-size: 12px;
  }

  .bottom-item.active {
    border-color: var(--amber);
    background: rgba(255, 212, 90, .16);
  }
}
