:root {
  --green: #173f35;
  --green-dark: #0f3027;
  --cream: #f6f5ef;
  --paper: #fffefa;
  --gold: #b5965f;
  --ink: #193b32;
  --muted: #737970;
  --line: #e1e4d9;
  --soft: #eef0e8;
  --red: #963e32;
  --shadow: 0 16px 60px #183d3210;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b5965f;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 40px;
  letter-spacing: -1.7px;
  line-height: 1.12;
  margin-bottom: 14px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.6;
}
em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #8b7953;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2.3px;
  line-height: 1.7;
  color: #7c806f;
  margin-bottom: 13px;
}
.brand {
  display: block;
  font-size: 12px;
  letter-spacing: 2.2px;
  font-weight: 800;
  line-height: 1.5;
}
.brand span {
  display: block;
  font-family: Georgia, serif;
  font-size: 41px;
  font-style: italic;
  letter-spacing: -1px;
  font-weight: 400;
  line-height: 1.1;
}
.button,
button.primary,
button.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 14px 23px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green) !important;
}
.primary:hover:not(:disabled) {
  background: var(--green-dark);
}
.secondary {
  background: var(--paper);
  color: var(--ink);
}
.text-link,
.text-button {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button {
  background: none;
  border: 0;
  padding: 8px 0;
}
.full {
  width: 100%;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 38px 26px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 238px;
  height: 100vh;
}
.sidebar .brand {
  padding: 0 10px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 48px;
}
.nav-item {
  border: 0;
  background: none;
  text-align: left;
  padding: 15px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-weight: 550;
  font-size: 14px;
}
.nav-item.active {
  background: var(--green);
  color: white;
}
.nav-item svg {
  width: 20px;
  height: 20px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 20px 10px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.sidebar-footer strong {
  color: var(--green);
}
.workspace {
  grid-column: 2;
  padding: 0 48px 40px;
  max-width: 1560px;
  width: 100%;
  margin: auto;
}
.topbar {
  height: 97px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 39px;
}
.topbar .crumb {
  font-size: 13px;
  color: var(--muted);
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.avatar {
  width: 35px;
  height: 35px;
  background: #e4e7d9;
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.mobile-brand {
  display: none;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 25px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}
.step-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 9px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.88fr);
  gap: 30px;
  align-items: start;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-label h2 {
  font-size: 16px;
  letter-spacing: -0.2px;
  margin: 0;
}
.pill {
  font-size: 10px;
  border-radius: 99px;
  background: var(--soft);
  padding: 6px 9px;
  color: #68735e;
  white-space: nowrap;
}
.upload {
  border: 1.5px dashed #aab6a4;
  background: #f3f5ed;
  min-height: 266px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.upload svg {
  height: 28px;
  width: 28px;
}
.upload-icon {
  width: 58px;
  height: 58px;
  background: #e4eadb;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 16px;
}
.upload strong {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.upload small {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.upload.has-photo {
  padding: 0;
  min-height: 0;
  aspect-ratio: 4/3;
  background: #e2e6dd;
}
.upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.replace-label {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: white;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}
.photo-tip {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 0;
  line-height: 1.6;
}
.field {
  display: block;
  margin-bottom: 19px;
}
.field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea,
select {
  width: 100%;
  border: 1px solid #dce0d4;
  background: #fffefa;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 14px;
  min-height: 47px;
}
.field textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 110px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #979c92;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  margin: 4px 0 22px;
}
.check input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}
.small-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  margin: 13px 0 0;
}
.studio-note {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.studio-note strong {
  display: block;
  color: var(--green);
  font-size: 12px;
}
.studio-note svg {
  width: 22px;
  flex-shrink: 0;
}
.preview-panel {
  background: #e9ede2;
  border-radius: 20px;
  padding: 25px;
}
.preview-panel canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 9px 28px #16352a20;
}
.preview-note {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin: 15px 0 0;
}
.segmented {
  display: flex;
  gap: 5px;
  background: var(--soft);
  padding: 5px;
  border-radius: 11px;
  margin-bottom: 20px;
}
.segmented button {
  flex: 1;
  padding: 10px 6px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
}
.segmented button.active {
  background: var(--paper);
  color: var(--green);
  box-shadow: 0 2px 5px #00000008;
}
.layout-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.layout-row button {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 11px 3px;
  border-radius: 9px;
  font-size: 11px;
}
.layout-row button.active {
  border-color: var(--green);
  background: #e4eadd;
}
.action-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.action-row > * {
  flex: 1;
  white-space: nowrap;
}
.notice {
  background: #f4eddb;
  color: #72613e;
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.error {
  background: #f9e9e4;
  color: var(--red);
}
.success {
  background: #e5efdf;
  color: #34582b;
}
.destination {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.destination input {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
}
.destination .dest-icon {
  height: 35px;
  width: 35px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.destination .dest-name {
  flex: 1;
}
.destination strong {
  display: block;
  font-size: 13px;
}
.destination small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.destination:has(input:disabled) {
  cursor: default;
}
.dest-status {
  font-size: 10px;
  color: var(--muted);
}
.mini-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.mini-preview canvas {
  width: 74px;
  height: auto;
  border-radius: 8px;
}
.mini-preview h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.mini-preview p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.group-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.6;
}
.group-card p {
  margin: 4px 0 9px;
  color: var(--muted);
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.draft-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
}
.draft-card h3 {
  margin: 15px 0 10px;
  line-height: 1.4;
}
.draft-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.draft-cover {
  height: 135px;
  border-radius: 9px;
  background: linear-gradient(140deg, #dce6d4, #b1c2a5);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 28px;
  font-style: italic;
  color: var(--green);
  overflow: hidden;
}
.draft-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.empty-state {
  border: 1px dashed #c3cbbb;
  border-radius: 18px;
  text-align: center;
  padding: 55px 25px;
  grid-column: 1/-1;
  color: var(--muted);
}
.empty-state h2 {
  color: var(--green);
}
.empty-state p {
  font-size: 14px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.settings-grid p,
.settings-grid li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.settings-grid ol {
  padding-left: 20px;
}
.connection-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  padding: 70px;
  background: var(--green);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}
.login-art h1 {
  font-family: Georgia, serif;
  font-size: 65px;
  font-weight: 400;
  letter-spacing: -2px;
}
.login-art p {
  max-width: 350px;
  color: #c9d4c4;
  font-size: 15px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.login-form {
  max-width: 360px;
  width: 100%;
}
.login-form h2 {
  font-size: 30px;
}
.login-form > p {
  color: var(--muted);
  font-size: 14px;
}
.mobile-nav {
  display: none;
}
.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 30px;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--green);
  color: white;
  border-radius: 12px;
  padding: 14px 22px;
  max-width: 90vw;
  font-size: 13px;
  z-index: 100;
  transition: transform 0.2s;
  box-shadow: 0 8px 40px #0002;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
.busy-screen {
  position: fixed;
  inset: 0;
  background: #f6f5efe8;
  backdrop-filter: blur(4px);
  z-index: 90;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
}
.spinner {
  height: 36px;
  width: 36px;
  border: 3px solid #dce3d3;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
.busy-screen h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 29px;
}
.busy-screen p {
  font-size: 13px;
  color: var(--muted);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.public-header {
  padding: 30px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.public-main {
  max-width: 1150px;
  margin: 65px auto;
  padding: 0 25px;
}
.public-main > h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 66px;
  max-width: 850px;
  margin-top: 20px;
}
.intro {
  max-width: 530px;
  color: var(--muted);
  font-size: 17px;
}
.filter-row {
  margin: 35px 0 24px;
  font-size: 12px;
  max-width: 280px;
}
.filter-row select {
  margin-top: 8px;
}
.public-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.discovery {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
}
.discovery img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.discovery a > div {
  padding: 20px;
}
.discovery h2 {
  font-family: Georgia, serif;
  font-weight: 400;
}
.discovery p {
  font-size: 12px;
  color: var(--muted);
}
.contact-card {
  background: var(--green);
  border-radius: 20px;
  padding: 40px;
  color: var(--cream);
  margin-top: 60px;
}
.contact-card h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 34px;
}
.contact-card p {
  color: #ccd6c7;
}
.contact-card .primary {
  background: var(--cream);
  color: var(--green);
}
.public-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 30px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.story-image {
  max-width: 550px;
  width: 100%;
  border-radius: 15px;
  display: block;
  margin: 25px 0;
}
.story-copy {
  font-size: 17px;
  line-height: 1.8;
  max-width: 700px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .workspace {
    padding: 0 75px 50px;
  }
  .editor-grid {
    gap: 40px;
  }
  .card {
    padding: 32px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 190px;
    padding: 30px 15px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .workspace {
    padding: 0 25px 35px;
  }
  .editor-grid {
    gap: 18px;
  }
  .card {
    padding: 20px;
  }
  .library-grid {
    grid-template-columns: 1fr 1fr;
  }
  .login-art {
    padding: 40px;
  }
  .login-art h1 {
    font-size: 48px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    padding: 0 19px 110px;
  }
  .topbar {
    height: 84px;
    margin-bottom: 25px;
  }
  .mobile-brand {
    display: block;
  }
  .topbar .crumb {
    display: none;
  }
  .mobile-brand .brand {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .mobile-brand .brand span {
    font-size: 28px;
  }
  .account {
    font-size: 11px;
  }
  .avatar {
    height: 31px;
    width: 31px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 31px;
    letter-spacing: -1.1px;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 270px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.7px;
  }
  .step-label {
    font-size: 9px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .card {
    padding: 20px;
    border-radius: 17px;
  }
  .upload {
    min-height: 200px;
  }
  .studio-note {
    margin-top: 17px;
    padding: 15px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffefaf5;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 8px 15px max(8px, env(safe-area-inset-bottom));
    z-index: 50;
    justify-content: space-around;
  }
  .mobile-nav .nav-item {
    padding: 7px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    background: none;
    color: var(--muted);
  }
  .mobile-nav .nav-item.active {
    color: var(--green);
    font-weight: 750;
  }
  .mobile-nav .nav-item svg {
    height: 23px;
    width: 23px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .preview-panel {
    padding: 20px;
  }
  .preview-panel canvas {
    max-width: 360px;
    margin: auto;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .library-grid {
    gap: 12px;
  }
  .draft-card {
    padding: 12px;
  }
  .draft-cover {
    height: 100px;
  }
  .draft-card h3 {
    font-size: 15px;
  }
  .login-wrap {
    display: block;
  }
  .login-art {
    min-height: auto;
    padding: 28px;
  }
  .login-art h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 30px 0 12px;
  }
  .login-art p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .login-art > small {
    display: none;
  }
  .login-art .brand span {
    font-size: 30px;
  }
  .login-form-wrap {
    padding: 30px 24px;
  }
  .login-form h2 {
    font-size: 25px;
  }
  .login-form .notice {
    font-size: 11px;
  }
  #toast {
    bottom: 95px;
    width: max-content;
    max-width: 90vw;
  }
  .public-main {
    margin: 35px auto;
    padding: 0 20px;
  }
  .public-main > h1 {
    font-size: 43px;
  }
  .public-header {
    padding: 20px;
  }
  .public-header .text-link {
    font-size: 11px;
    max-width: 140px;
    text-align: right;
  }
  .public-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 27px;
  }
  .contact-card h2 {
    font-size: 29px;
  }
  .public-header .brand {
    font-size: 9px;
  }
  .public-header .brand span {
    font-size: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
