:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #22231f;
  background: #f7f7f2;
  font-size: 15px;
  --accent: #272e25;
  --line: #dfe1d7;
  --muted: #777b71;
  --paper: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b5ca88;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 650;
  letter-spacing: -1.7px;
  line-height: 1.12;
}
h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 17px;
  font-weight: 650;
}
p {
  line-height: 1.65;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  margin: 8px 0;
}
.studio-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: #f7f7f2;
  gap: 24px;
}
.wordmark {
  font-size: 22px;
  letter-spacing: -0.9px;
  font-weight: 750;
  white-space: nowrap;
}
.wordmark span {
  font-weight: 400;
  margin-left: 4px;
}
.studio-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
}
.studio-header nav form {
  margin: 0;
}
.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.2;
  min-height: 42px;
  text-align: center;
  transition:
    transform 0.15s,
    background 0.15s;
}
.button:active {
  transform: scale(0.98);
}
.button.secondary {
  background: #fff;
  color: #33372f;
  border-color: #d5d9ce;
}
.button:hover {
  background: #424c3d;
}
.button.secondary:hover {
  background: #f1f4eb;
}
.text-button {
  border: 0;
  padding: 9px 0;
  background: transparent;
  font-size: 13px;
  line-height: 1.3;
}
.text-button:hover {
  text-decoration: underline;
}
.icon-button {
  border: 0;
  background: transparent;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.danger {
  color: #9c3829;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #818976;
  margin-bottom: 13px;
}
.intro {
  color: var(--muted);
  font-size: 15px;
  margin-top: 13px;
}
.dashboard {
  max-width: 1400px;
  margin: auto;
  padding: 54px clamp(20px, 5vw, 76px) 90px;
}
.dashboard.narrow {
  max-width: 1100px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.project-cover {
  height: 174px;
  background: var(--cover);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.4px;
  color: #171717;
  position: relative;
}
.project-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff2b, transparent);
  pointer-events: none;
}
.project-cover img {
  height: 56px;
  width: 56px;
  border-radius: 13px;
  object-fit: cover;
}
.project-card-body {
  padding: 24px;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.card-title h2 {
  font-size: 21px;
  overflow-wrap: anywhere;
}
.project-path {
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #6a7364;
  margin: 7px 0 12px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.badge {
  font-size: 10px;
  white-space: nowrap;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 4px;
  background: #f0f0e9;
  color: #74786b;
}
.badge.published {
  background: #edf4e4;
  color: #526d35;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.empty-state {
  border: 1px dashed #cbd1c0;
  border-radius: 12px;
  text-align: center;
  padding: 80px 22px;
  background: #ffffff66;
}
.empty-state p {
  color: var(--muted);
  margin: 14px 0 26px;
}
.empty-symbol {
  border-radius: 15px;
  background: #edf1e6;
  color: #60704c;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 31px;
  margin: 0 auto 23px;
}
.card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 22px;
}
.card > h2 {
  margin-bottom: 22px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
}
input,
textarea,
select {
  border: 1px solid #d9ddd2;
  border-radius: 6px;
  background: #fff;
  padding: 11px 12px;
  width: 100%;
  color: #272e25;
  font-size: 14px;
  min-height: 42px;
}
input:disabled {
  background: #f6f6f2;
  color: #777;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
label small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}
input[type="color"] {
  padding: 5px;
  height: 44px;
  cursor: pointer;
}
input[type="range"] {
  padding: 4px 0;
  accent-color: #748a55;
  border: 0;
  min-height: 28px;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin: 0;
  accent-color: #60704c;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.check-label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  gap: 10px;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.grow {
  flex: 1;
}
.inline-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.error {
  font-size: 13px;
  color: #9c3829;
  background: #fff1ed;
  padding: 12px;
  border-radius: 6px;
  line-height: 1.6;
}
.success {
  color: #466331;
  background: #edf4e4;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
}
.form-error {
  margin: 0;
}
.auth-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 20px;
  gap: 42px;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: 31px;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.auth-card > .muted {
  margin-bottom: 28px;
}
.auth-card > .error {
  margin-bottom: 20px;
}
.auth-card > .button {
  margin-top: 22px;
}
.footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 28px;
}
.studio-dialog {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: #222;
  padding: 30px;
  width: calc(100% - 32px);
  max-width: 470px;
  box-shadow: 0 25px 100px #0002;
}
.studio-dialog::backdrop {
  background: #1b241a66;
  backdrop-filter: blur(4px);
}
.studio-dialog p {
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.address-field {
  display: flex;
  align-items: center;
  border: 1px solid #d9ddd2;
  border-radius: 6px;
  padding: 0 12px;
  color: #888;
}
.address-field input {
  border: 0;
  padding-left: 6px;
  padding-right: 6px;
}
.people-list {
  display: flex;
  flex-direction: column;
}
.person-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #eceee6;
  flex-wrap: wrap;
}
.person-row:last-child {
  border-bottom: 0;
}
.person-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 180px;
}
.person-identity strong {
  font-size: 14px;
}
.person-identity small {
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--muted);
}
.account-shell {
  max-width: 650px;
}
.account-shell h1 {
  margin-bottom: 32px;
}
.setup-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px;
}
.setup-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  margin-top: 40px;
  align-items: start;
}
.checks {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 12px;
  margin: 0 0 28px;
}
.passed {
  color: #4f703b;
}
.failed {
  color: #a03525;
}
.setup-grid aside p {
  margin-top: 18px;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  color: #fff;
  background: #272e25;
  border-radius: 7px;
  font-size: 13px;
  z-index: 100;
  box-shadow: 0 6px 30px #0002;
  max-width: calc(100vw - 32px);
}
.editor-shell {
  max-width: 1500px;
  margin: auto;
  padding: 28px clamp(20px, 5vw, 76px) 80px;
}
.editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.back-link {
  font-size: 12px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 14px;
}
.editor-heading > div:first-child {
  min-width: 0;
  max-width: 100%;
}
.editor-heading h1 {
  overflow-wrap: anywhere;
  font-size: 32px;
  letter-spacing: -1px;
}
.editor-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 410px);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}
.editor-settings {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  min-width: 0;
  overflow: hidden;
}
.editor-tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.editor-tabs button {
  white-space: nowrap;
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 20px 12px;
  border-bottom: 2px solid transparent;
  color: #7a7e73;
}
.editor-tabs button[aria-selected="true"] {
  border-bottom-color: #36452c;
  color: #293324;
  font-weight: 650;
}
.settings-panel {
  padding: 30px;
}
.section-heading {
  margin-bottom: 7px;
}
.section-heading h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.media-choice {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid #e5e8df;
  border-radius: 8px;
}
.media-choice > img,
.avatar-placeholder {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 15px;
  flex-shrink: 0;
}
.avatar-placeholder {
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9ecdf;
  font-size: 23px;
  overflow: hidden;
  color: #6a7655;
}
.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-choice strong {
  font-size: 13px;
}
.media-choice p {
  font-size: 11px;
  margin: 5px 0 12px;
}
.media-choice .text-button {
  margin-left: 12px;
  font-size: 11px;
}
.small-button {
  font-size: 11px;
  min-height: 34px;
  padding: 8px 12px;
}
.theme-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.theme-presets button {
  border: 1px solid #dfe3d6;
  background: #f9faf6;
  border-radius: 6px;
  padding: 12px;
  text-align: left;
  font-size: 12px;
}
.theme-presets button:hover {
  border-color: #93a975;
}
.upload-zone {
  border: 1px dashed #cbd2c2;
  border-radius: 8px;
  background: #fafbf7;
  padding: 22px;
}
.upload-zone strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.upload-zone p {
  margin: 10px 0 16px;
  font-size: 11px;
}
.upload-zone .text-button {
  margin-left: 16px;
}
.preview-column {
  position: sticky;
  top: 24px;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #767d6e;
  margin-bottom: 13px;
  padding: 0 7px;
}
.preview-heading .text-button {
  font-size: 11px;
}
.phone-preview {
  height: min(760px, calc(100dvh - 165px));
  min-height: 560px;
  width: 100%;
  max-width: 393px;
  margin: 0 auto;
  overflow: hidden;
  border: 7px solid #2e332b;
  border-radius: 32px;
  background: #000;
  box-shadow: 0 18px 50px #2731221c;
}
.phone-preview iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.preview-note {
  font-size: 11px;
  color: #8b9082;
  text-align: center;
  max-width: 310px;
  margin: 20px auto;
  line-height: 1.7;
}
.comment-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.script-comment {
  padding: 18px;
  border: 1px solid #e0e5d7;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fcfdf9;
}
.script-comment .comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #829070;
}
.script-comment .comment-top button {
  color: #a26458;
  font-size: 11px;
}
.script-comment textarea {
  font-size: 13px;
}
.script-comment label {
  font-size: 11px;
}
.upload-progress {
  margin: 0 30px 26px;
  background: #f0f5e7;
  padding: 15px;
  border-radius: 7px;
  font-size: 12px;
}
.upload-progress progress {
  width: 100%;
  height: 5px;
  accent-color: #6a8350;
  display: block;
  margin-top: 10px;
}
#editor-error {
  margin: 0 30px 30px;
}
@media (max-width: 1000px) {
  .editor-grid {
    grid-template-columns: minmax(320px, 1fr) 320px;
    gap: 26px;
  }
  .settings-panel {
    padding: 22px;
  }
  .editor-tabs {
    padding: 0 8px;
  }
  .editor-tabs button {
    padding: 18px 9px;
  }
  .editor-actions .button {
    padding: 11px 13px;
    font-size: 12px;
  }
  .studio-header {
    padding: 0 24px;
  }
  .editor-shell {
    padding: 24px;
  }
  .phone-preview {
    min-height: 540px;
  }
}
@media (max-width: 760px) {
  .studio-header {
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding: 20px;
    gap: 18px;
  }
  .studio-header nav {
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
  }
  .studio-header .wordmark {
    font-size: 20px;
  }
  .dashboard {
    padding-top: 35px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 23px;
    margin-bottom: 28px;
  }
  .page-heading h1 {
    max-width: 320px;
  }
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .editor-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .preview-column {
    position: static;
    order: 2;
    max-width: 410px;
    width: 100%;
    margin: auto;
  }
  .phone-preview {
    height: 720px;
    min-height: 0;
  }
  .settings-panel {
    padding: 24px 20px;
  }
  .editor-tabs {
    gap: 0;
    justify-content: space-between;
  }
  .editor-tabs button {
    font-size: 11px;
    padding: 18px 10px;
  }
  .editor-actions {
    width: 100%;
  }
  .editor-actions .button {
    flex: 1;
  }
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .setup-shell {
    padding-top: 38px;
  }
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
  .person-row {
    gap: 12px;
  }
  .person-identity {
    min-width: 150px;
  }
  .card {
    padding: 22px;
  }
  .auth-shell {
    padding-top: 40px;
  }
  .auth-card {
    padding: 28px;
  }
  .field-grid {
    gap: 14px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .theme-presets {
    gap: 8px;
  }
  .media-choice {
    padding: 14px;
    gap: 15px;
  }
  .media-choice .text-button {
    margin-left: 0;
  }
  .editor-shell {
    padding: 24px 16px 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.project-cover > span {
  max-width: 65%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
