:root {
  --bg: #e8ece9;
  --panel: #f8faf8;
  --panel-2: #ffffff;
  --ink: #17211d;
  --muted: #64716b;
  --line: #cfd8d2;
  --line-strong: #aebbb4;
  --green: #16884a;
  --green-2: #37c978;
  --blue: #2f5ff4;
  --amber: #b17600;
  --danger: #b42318;
  --shadow: 0 18px 45px rgb(36 49 43 / 16%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.browser {
  background: #f5f7f5;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 #fff inset;
}

.lesson-strip,
.tab-strip,
.address-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}

.lesson-strip {
  justify-content: space-between;
  min-height: 42px;
}

.brand,
.lesson-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  font-weight: 750;
}

.brand-mark,
.wp-logo,
.card-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-weight: 800;
}

.brand-mark {
  width: 26px;
  height: 26px;
  background: var(--green);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.green {
  background: #dff8e8;
  color: #075d31;
}

.pill.amber {
  background: #fff0c2;
  color: #805000;
}

.muted,
small,
.note {
  color: var(--muted);
}

.tab-strip {
  padding-bottom: 0;
  overflow-x: auto;
}

.tab,
.new-tab {
  border: 1px solid var(--line);
  background: #edf1ee;
  min-height: 38px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px 10px 0 0;
  white-space: nowrap;
  color: #35423c;
}

.tab.active {
  background: var(--panel-2);
  border-bottom-color: var(--panel-2);
  font-weight: 700;
}

.new-tab {
  width: 38px;
  border-radius: 10px 10px 0 0;
  font-size: 22px;
  color: var(--green);
}

.dot,
.site-dot,
.status-light,
.lock-dot {
  display: inline-block;
  border-radius: 999px;
}

.dot,
.status-light,
.lock-dot {
  width: 9px;
  height: 9px;
}

.dot.unsaved,
.site-dot.unsaved,
.status-light {
  background: #e6a400;
}

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

.address-row {
  flex-wrap: wrap;
  background: var(--panel-2);
  border-top: 1px solid var(--line);
}

.address {
  flex: 1 1 360px;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #eef2ef;
  padding: 0 10px;
  min-height: 38px;
}

.address input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: #27322d;
}

.icon-button,
.route-button,
.drawer-button,
.ghost,
.toolbar button,
.filter-row button,
.log-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  color: #26322d;
  border-radius: 7px;
}

.icon-button {
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.route-button,
.drawer-button,
.ghost,
.primary,
.toolbar button,
.filter-row button,
.log-tabs button,
.link-button {
  min-height: 36px;
  padding: 7px 12px;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #5d4300;
  white-space: nowrap;
}

.primary {
  border: 1px solid #0f753b;
  background: var(--green);
  color: #fff;
  border-radius: 7px;
  font-weight: 750;
}

.primary.small {
  min-height: 34px;
  padding-inline: 13px;
}

.primary.full,
.ghost.full {
  width: 100%;
  margin-top: 10px;
}

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

.drawer-button.active {
  border-color: #89caa5;
  background: #e5f8ec;
  color: #075d31;
  font-weight: 750;
}

.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  gap: 14px;
  padding: 14px;
  min-height: 0;
}

.site-frame,
.drawer {
  min-width: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.site-frame {
  display: flex;
  flex-direction: column;
  min-height: 680px;
}

.wp-admin-bar {
  min-height: 33px;
  background: #20262a;
  color: #f4f6f5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px;
  font-size: 13px;
}

.wp-logo {
  width: 22px;
  height: 22px;
  background: #f5f5f5;
  color: #111;
  font-size: 14px;
}

.grow {
  flex: 1;
}

.wp-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px 38px;
  font-size: 16px;
}

.wp-nav strong {
  font-size: 22px;
}

.wp-nav a {
  color: #303733;
  text-decoration: none;
}

.wp-page {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(280px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 36px 54px 70px;
  overflow: hidden;
}

.wp-copy {
  max-width: 480px;
}

.wp-copy h1 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 55px);
  line-height: 1.18;
  font-weight: 500;
}

.wp-copy h1 span {
  color: #3357f2;
}

.wp-copy p {
  font-size: 22px;
  line-height: 1.45;
}

mark {
  background: #fff19d;
}

.wp-cta {
  border: 0;
  background: #3853ec;
  color: #fff;
  border-radius: 3px;
  padding: 16px 26px;
  font-size: 18px;
  font-weight: 750;
}

.wp-graphic {
  position: relative;
  height: min(48vw, 520px);
  min-height: 300px;
}

.green-ring {
  position: absolute;
  inset: 12% -18% -2% 4%;
  border: 52px solid #34e978;
  border-radius: 50%;
}

.green-ring::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -88px;
  height: 150px;
  border: 52px solid #34e978;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: #fff;
}

.wp-big {
  position: absolute;
  top: 0;
  right: 5%;
  width: 300px;
  height: 300px;
  border: 18px solid #1e1e1e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 210px;
  line-height: 1;
  font-weight: 900;
  color: #1e1e1e;
}

.drawer {
  max-height: calc(100vh - 154px);
  overflow-y: auto;
}

.drawer-panel {
  display: none;
  padding: 20px;
}

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

.drawer-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
}

h2,
h3 {
  margin: 0;
}

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

h3 {
  font-size: 15px;
}

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

.start-card {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  min-height: 112px;
  display: grid;
  gap: 7px;
}

.start-card.selected {
  border-color: #71bf93;
  background: #f0fbf4;
  box-shadow: inset 3px 0 0 var(--green);
}

.card-icon {
  width: 34px;
  height: 34px;
  background: #26322d;
  font-size: 12px;
}

.form-card,
.notice,
.empty-state,
.info-list,
.warning {
  border: 1px solid var(--line);
  background: #fbfcfb;
  border-radius: 8px;
}

.form-card {
  padding: 14px;
  margin-top: 14px;
}

.form-card.compact {
  margin-top: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
.search {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.inline-form input {
  flex: 1;
  min-width: 0;
}

.note {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.section-title,
.button-row,
.radio-row,
.progress-label,
.toolbar,
.filter-row,
.log-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  margin: 20px 0 10px;
  justify-content: space-between;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 800;
}

.blueprint-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blueprint-shortcuts button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #edf3ef;
  min-height: 34px;
  padding: 6px 10px;
}

.radio-row {
  align-items: flex-start;
  flex-direction: column;
  margin: 14px 0;
}

.radio-row label,
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.progress-block {
  margin: 12px 0 16px;
}

.progress-label {
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 7px;
}

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

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}

.button-row.wrap {
  flex-wrap: wrap;
}

.info-list {
  padding: 12px 14px;
  margin-top: 14px;
  display: grid;
  gap: 9px;
  color: #38443f;
  font-size: 13px;
}

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

.saved-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
}

.saved-row.current {
  border-color: #79bd96;
  background: #f1fbf5;
}

.site-dot {
  width: 16px;
  height: 16px;
}

.saved-row small {
  display: block;
  margin-top: 3px;
}

.kebab {
  border: 0;
  background: transparent;
  font-size: 22px;
}

.action-menu {
  margin-left: auto;
  width: 210px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: var(--shadow);
}

.action-menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 5px;
  padding: 8px;
}

.danger {
  color: var(--danger);
}

.manager-tabs,
.filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.manager-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 8px 4px;
  white-space: nowrap;
  font-weight: 700;
  color: #5c6862;
}

.manager-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--green);
}

.manager-panel {
  display: none;
  padding-top: 14px;
}

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

.field-grid {
  display: grid;
  gap: 12px;
}

.check {
  margin-top: 12px;
  font-size: 14px;
}

.warning {
  margin-top: 14px;
  padding: 11px;
  border-color: #f0c369;
  background: #fff8e2;
  color: #5c4100;
  font-size: 13px;
}

.toolbar {
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.split-tool {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.file-tree {
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #f1f4f2;
  border-right: 1px solid var(--line);
  font-size: 13px;
}

.file-tree li {
  padding: 7px 6px;
  border-radius: 5px;
}

.file-tree .selected {
  background: #dff8e8;
  color: #075d31;
  font-weight: 800;
}

.code-view {
  margin: 0;
  min-height: 260px;
  overflow: auto;
  padding: 12px;
  background: #fff;
  color: #9b2f00;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-view.tall {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice {
  padding: 14px;
  border-left: 4px solid var(--green);
  margin-bottom: 14px;
}

.notice p {
  margin: 8px 0 0;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 12px;
  font-size: 13px;
}

.facts dt {
  font-weight: 800;
}

.facts dd {
  margin: 0;
  min-width: 0;
  word-break: break-word;
}

.empty-state {
  padding: 22px;
  text-align: center;
  margin-top: 12px;
}

.empty-state p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.export-card {
  text-align: left;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 14px;
}

.export-card span {
  color: var(--muted);
}

.filter-row {
  flex-wrap: wrap;
  margin-bottom: 10px;
}

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

.filter-row button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.search {
  width: 100%;
  margin-bottom: 12px;
}

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

.gallery-card {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(135deg, #66726c, #2c3732);
  overflow: hidden;
  position: relative;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.88;
  background: linear-gradient(150deg, rgb(255 255 255 / 20%), transparent 46%), var(--card-bg);
}

.gallery-card strong,
.gallery-card span {
  position: relative;
}

.gallery-card span {
  font-size: 12px;
  color: rgb(255 255 255 / 78%);
}

.gallery-card.selected {
  outline: 3px solid #77c99a;
}

.art { --card-bg: linear-gradient(135deg, #7a611d, #2b736b); }
.coffee { --card-bg: linear-gradient(135deg, #52237f, #f18f3b); }
.feed { --card-bg: linear-gradient(135deg, #eef4ff, #3566f2); }
.gaming { --card-bg: linear-gradient(135deg, #030303, #c33b24); }
.nonprofit { --card-bg: linear-gradient(135deg, #3a180a, #df6d3b); }
.blog { --card-bg: linear-gradient(135deg, #6d0d3e, #19131d); }

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

  .drawer {
    order: -1;
    max-height: none;
  }

  .site-frame {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .lesson-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-meta {
    flex-wrap: wrap;
  }

  .workspace {
    padding: 8px;
    gap: 8px;
  }

  .address-row {
    padding: 8px;
  }

  .route-button,
  .save-state {
    display: none;
  }

  .wp-nav {
    padding: 18px;
    flex-wrap: wrap;
  }

  .wp-page {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .wp-copy p {
    font-size: 18px;
  }

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

  .green-ring {
    border-width: 34px;
  }

  .green-ring::after {
    border-width: 34px;
  }

  .wp-big {
    width: 190px;
    height: 190px;
    font-size: 128px;
    border-width: 12px;
  }

  .start-grid,
  .gallery-grid,
  .split-tool {
    grid-template-columns: 1fr;
  }

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

  .inline-form {
    flex-direction: column;
  }
}
