:root {
  --cream: #f7f5f0;
  --paper: #fff;
  --ink: #263c36;
  --muted: #6e7a74;
  --line: #e3e7df;
  --sage: #e6ede3;
  --green: #34594b;
  --tan: #bba184;
  --red: #a34c43;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
button:hover,
.button:hover {
  background: var(--sage);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.primary:hover {
  background: #264639;
}
.danger {
  color: var(--red);
}
.layout {
  display: grid;
  grid-template-columns: 242px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #eff1e9;
  border-right: 1px solid var(--line);
  padding: 32px 23px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.company-logo {
  width: 178px;
  height: auto;
}
.product {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
}
.product small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--muted);
}
nav {
  display: grid;
  gap: 7px;
}
nav button {
  text-align: left;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  font-weight: 500;
  padding: 13px;
}
nav button.active {
  background: #fff;
  box-shadow: 0 2px 8px #21362c08;
  color: var(--green);
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
main {
  padding: 35px 48px;
  max-width: 1440px;
  width: 100%;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 38px;
  font-size: 13px;
  color: var(--muted);
}
h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 0 0 12px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  margin: 0 0 15px;
}
h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
p {
  line-height: 1.6;
}
.subtle,
.help {
  color: var(--muted);
}
.help {
  font-size: 13px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 13px;
}
.hero {
  padding: 35px;
  background: linear-gradient(120deg, #e6ede3, #f2eee5);
  border-radius: 18px;
  margin: 25px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hero p {
  max-width: 570px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}
.card,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.card strong.stat {
  display: block;
  font-size: 34px;
  margin-top: 10px;
}
.panel {
  margin: 20px 0;
}
.panel p:last-child {
  margin-bottom: 0;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #ccd5cb;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: var(--ink);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input[type='checkbox'] {
  width: auto;
  margin-right: 8px;
}
.check {
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
  gap: 5px;
}
.check input {
  margin-top: 4px;
  flex: none;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  background: var(--sage);
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.badge.pending {
  background: #f5ead8;
  color: #8b662c;
}
.notice {
  border: 1px solid #e4d5b6;
  border-radius: 10px;
  background: #fbf7ed;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0;
}
.empty {
  padding: 38px;
  text-align: center;
  border: 1px dashed #bdc9bb;
  border-radius: 14px;
  margin-top: 20px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.photo-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.photo-card {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 12px;
}
.photo-card .help {
  font-size: 12px;
}
.preview {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 10px;
  background: #f5f5f1;
}
.caption-card {
  margin: 20px 0;
}
.caption-card textarea {
  min-height: 180px;
}
.small {
  font-size: 12px;
}
.login {
  max-width: 440px;
  margin: 10vh auto;
  padding: 35px;
}
.login .company-logo {
  width: 210px;
  margin-bottom: 28px;
}
.login h1 {
  font-size: 30px;
}
.login .field {
  margin: 17px 0;
}
#toast:not(:empty) {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #fff6f2;
  border: 1px solid #ddb4a7;
  color: #773b31;
  padding: 16px;
  border-radius: 12px;
  max-width: 420px;
  z-index: 100;
  box-shadow: 0 5px 30px #0001;
}
.loading {
  padding: 40px;
}
.progress {
  padding: 12px;
  font-size: 13px;
  background: var(--sage);
  border-radius: 8px;
}
.list-row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border-bottom: 0;
}
.calendar-date {
  font-weight: 600;
  font-size: 13px;
}
.steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}
.steps span {
  padding: 8px 12px;
  background: #fff9;
  border-radius: 8px;
}
a {
  color: var(--green);
}
:focus-visible {
  outline: 3px solid #adbea5;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  main {
    padding: 28px;
  }
  .layout {
    grid-template-columns: 205px 1fr;
  }
  .sidebar {
    padding: 28px 16px;
  }
  .company-logo {
    width: 165px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 18px;
  }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .layout {
    display: block;
  }
  .sidebar {
    padding: 18px;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .company-logo,
  .sidebar-bottom {
    display: none;
  }
  .product {
    font-size: 23px;
  }
  .product small {
    display: inline;
    font-size: 9px;
    margin-left: 10px;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  nav button {
    white-space: nowrap;
    padding: 9px;
    font-size: 12px;
  }
  main {
    padding: 20px;
  }
  .topbar {
    margin-bottom: 25px;
  }
  .hero {
    padding: 23px;
    display: block;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .cards .card:last-child {
    grid-column: 1/-1;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .photo-grid img {
    height: 120px;
  }
  h1 {
    font-size: 28px;
  }
  .row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .panel {
    padding: 19px;
  }
  .login {
    margin: 5vh 15px;
  }
  .card strong.stat {
    font-size: 28px;
  }
}

.photo-editor {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  width: auto;
  height: auto;
  margin: 20px auto;
  touch-action: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: crosshair;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.calendar-weekday {
  background: #eff1e9;
  padding: 10px 5px;
  text-align: center;
  font-size: 11px;
  font-weight: 650;
}
.calendar-cell {
  background: white;
  min-height: 90px;
  padding: 7px;
  overflow: hidden;
}
.calendar-cell.other-month {
  background: #f7f7f3;
  color: #a4aaa3;
}
.calendar-cell.today .day-number {
  background: var(--green);
  color: white;
  border-radius: 50%;
  padding: 4px 7px;
}
.day-number {
  font-size: 12px;
}
.calendar-cell button {
  display: block;
  width: 100%;
  font-size: 10px;
  text-align: left;
  padding: 5px;
  white-space: normal;
  word-break: break-word;
  background: var(--sage);
  margin-top: 7px;
  border: 0;
  font-weight: 500;
}
.calendar-panel .actions {
  margin: 0;
}
@media (max-width: 700px) {
  .calendar-cell {
    min-height: 64px;
    padding: 4px;
  }
  .calendar-weekday {
    font-size: 10px;
  }
  .calendar-cell button {
    font-size: 8px;
    padding: 3px;
  }
  .calendar-panel {
    padding: 12px;
  }
}

#app[aria-busy='true'] {
  cursor: progress;
  opacity: 0.92;
}

.policy-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.policy-page {
  max-width: 820px;
  margin: 2rem auto;
  line-height: 1.65;
  padding: 2rem;
}
.policy-page .company-logo {
  display: block;
  margin: 1rem 0;
}
@media (max-width: 850px) {
  .policy-page {
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 1.25rem;
  }
}

.illustration-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.illustration-grid img {
  height: auto;
  object-fit: contain;
  display: block;
}
.illustration-grid a {
  display: inline-block;
  margin-top: 10px;
}
@media (max-width: 650px) {
  .illustration-grid {
    grid-template-columns: 1fr;
  }
}

/* Preserve HTML hidden semantics when component display rules apply. */
[hidden] {
  display: none !important;
}
/* Guided brand-first creation. */
.flow-steps {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 28px 0 32px;
  flex-wrap: wrap;
}
.flow-steps li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.flow-steps li span {
  display: grid;
  place-items: center;
  background: var(--sage);
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.flow-steps li[aria-current] {
  color: var(--ink);
  font-weight: 650;
}
.flow-steps li[aria-current] span {
  background: var(--green);
  color: white;
}
.post-wizard {
  max-width: 900px;
}
.post-wizard fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.post-wizard fieldset[hidden] {
  display: none;
}
.post-wizard textarea {
  min-height: 150px;
  font-size: 19px;
}
.post-wizard details,
.brand-onboarding details {
  margin: 24px 0;
}
.style-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.style-choice {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.style-choice:has(input:checked) {
  border-color: var(--green);
  background: var(--sage);
}
.style-choice input {
  width: auto;
}
.style-choice small {
  color: var(--muted);
}
.upload-zone {
  border: 2px dashed var(--tan);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 25px 0;
}
.upload-symbol {
  font-size: 38px;
}
.upload-zone input {
  max-width: 100%;
}
.flow-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.flow-photo-preview img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  border-radius: 12px;
}
.inline-form {
  display: flex;
  gap: 12px;
}
.inline-form input {
  flex: 1;
  min-width: 0;
}
.setup-logo {
  max-width: 160px;
  max-height: 100px;
  object-fit: contain;
}
.settings-tabs,
.account-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.settings-tabs .active,
.account-tabs .active {
  background: var(--sage);
  border-color: var(--green);
}
.brand-onboarding {
  max-width: 950px;
  margin: auto;
}
.settings-group[hidden] {
  display: none;
}
.create-hero {
  padding: 36px;
  border-radius: 24px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.create-hero h2 {
  font-size: 32px;
  margin: 0 0 10px;
}
.create-hero p {
  margin: 0;
}
.draft-channel-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.preview-caption {
  max-width: 540px;
  white-space: pre-wrap;
}
.sidebar-bottom p {
  display: none;
}
@media (max-width: 650px) {
  .style-choices {
    grid-template-columns: 1fr;
  }
  .inline-form,
  .create-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .flow-steps {
    gap: 12px;
  }
  .flow-steps li {
    font-size: 12px;
  }
  .flow-steps li span {
    width: 24px;
    height: 24px;
  }
  .settings-tabs button {
    font-size: 12px;
  }
  .create-hero {
    padding: 24px;
  }
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.project-card {
  overflow: hidden;
}
.project-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}
.project-card h2 {
  font-size: 20px;
  line-height: 1.4;
}
.caption-card[hidden] {
  display: none;
}
.panel > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}
.brand-palette {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}
.brand-palette label {
  font-size: 12px;
  color: var(--muted);
}
.brand-palette input[type='color'] {
  display: block;
  width: 55px;
  height: 42px;
  padding: 2px;
  border-radius: 8px;
}
.photo-card > img {
  display: block;
}
.project-card h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#campaign-edit[inert] {
  opacity: 0.55;
  pointer-events: none;
}

.photo-card .photo-use {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.65rem;
  margin: 0 0 0.75rem;
  background: var(--cream, #f5f1e9);
  border-radius: 0.5rem;
}
.photo-card .photo-use input {
  width: 1.4rem;
  height: 1.4rem;
  flex: 0 0 1.4rem;
}

.project-row {
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border-radius: 0.5rem;
}
.project-row:hover {
  background: var(--cream, #f5f1e9);
}
.project-row:focus-visible {
  outline: 2px solid var(--ink, #343834);
  outline-offset: 2px;
}
.project-title {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* Studio visual system: quiet surfaces, photographic hierarchy, restrained motion. */
:root {
  --cream: #f8f7f4;
  --ink: #233831;
  --muted: #78817b;
  --line: #eceee8;
  --green: #305847;
}
body {
  -webkit-font-smoothing: antialiased;
}
.sidebar {
  background: #f0f2ec;
  border: 0;
}
main {
  animation: studio-enter 0.32s ease-out both;
}
h1 {
  letter-spacing: -0.045em;
  line-height: 1.12;
}
h2 {
  letter-spacing: -0.025em;
}
.eyebrow {
  letter-spacing: 0.15em;
  font-size: 0.65rem;
}
.panel {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 4px 28px #263c3605;
}
button,
.button {
  border-color: transparent;
  border-radius: 12px;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
button:hover:not(:disabled),
.button:hover {
  transform: translateY(-1px);
}
button:active:not(:disabled),
.button:active {
  transform: translateY(0);
}
.primary {
  box-shadow: 0 4px 12px #23383116;
}
input:not([type='checkbox']):not([type='radio']):not([type='color']),
textarea,
select {
  border-color: #e8ebe4;
  border-radius: 12px;
  background: #fcfcfa;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #88a18f;
  outline-offset: 2px;
}
.create-hero {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 42px;
  border: 0;
  border-radius: 26px;
  background: #e8eee4;
  isolation: isolate;
}
.create-hero::after {
  content: '';
  position: absolute;
  right: -65px;
  top: -140px;
  width: 400px;
  height: 400px;
  border: 55px solid #d5dfcf;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.create-hero h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  max-width: 480px;
}
.create-hero p {
  color: #607568;
}
.recent-projects {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
}
.project-row {
  display: flex;
  width: 100%;
  border: 0 !important;
  box-shadow: none;
  background: transparent;
  padding: 16px 12px;
  gap: 20px;
  border-radius: 16px;
  margin: 5px 0;
}
.project-row:hover {
  background: #eef1e9;
}
.project-row-copy {
  flex: 1;
  min-width: 0;
}
.project-title {
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.project-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 15px;
  flex: 0 0 72px;
}
.project-placeholder {
  display: grid;
  place-items: center;
  background: #e9eee4;
  font-size: 1.7rem;
}
.badge {
  border: 0;
  font-size: 0.7rem;
  letter-spacing: 0.015em;
  padding: 6px 10px;
}
.project-card {
  padding: 16px;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px #263c3610;
}
.project-card > img {
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photo-card {
  border: 0;
  background: #fafaf7;
  border-radius: 18px;
  padding: 14px;
}
.photo-card > img {
  border-radius: 12px;
}
.photo-card .photo-use {
  background: transparent;
  padding: 4px 0 12px;
}
.caption-card {
  border: 0;
}
.help {
  font-size: 0.8rem;
  line-height: 1.5;
}
details.panel > summary {
  padding: 8px 0;
  color: #607568;
}
.post-wizard {
  max-width: 820px;
  padding: 32px;
}
.post-wizard fieldset:not([hidden]) {
  animation: studio-enter 0.25s ease-out both;
}
.upload-zone {
  border-radius: 20px;
  background: #f0f4ed;
  transition:
    background 0.2s,
    transform 0.2s;
}
.upload-zone:hover {
  background: #e8eee3;
}
.style-choices label {
  border-radius: 16px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.style-choices label:has(input:checked) {
  background: #e9f0e4;
  box-shadow: 0 0 0 2px #78937b;
}
@keyframes studio-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .create-hero {
    padding: 25px;
    min-height: 200px;
  }
  .project-row {
    gap: 10px;
    padding: 12px 2px;
    flex-wrap: wrap;
  }
  .project-thumb {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
  .project-row-copy {
    min-width: 140px;
  }
  .post-wizard {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.badge.needs-review,
.project-row .badge.pending {
  background: #f7e5e1;
  color: #99483e;
}

.reachready-logo {
  display: block;
  width: 250px;
  max-width: 48vw;
  height: auto;
}

.sidebar .sidebar-brand {
  width: 100%;
  max-width: 210px;
  height: auto;
}
.sidebar .sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: auto;
  padding-top: 28px;
}
.sidebar-footer .company-logo {
  width: 160px;
  height: auto;
}
.sidebar-footer button {
  width: 100%;
  justify-content: flex-start;
}
@media (max-width: 760px) {
  .sidebar .sidebar-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 12px;
    gap: 16px;
  }
  .sidebar-footer button {
    width: auto;
  }
  .sidebar-footer .company-logo {
    display: block;
    width: 125px;
  }
}

.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.settings-heading > .subtle:empty {
  display: none;
}
.settings-heading h1 {
  margin-right: auto;
}

/* Project-based image and video creation. */
main:has(> .creative-studio) {
  animation: none;
}
.studio-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #e9ede3;
  border: 1px solid #dce1d4;
  border-radius: 22px;
  padding: 28px 32px;
  margin: 24px 0;
}
.studio-entry .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.studio-entry h2 {
  margin: 0 0 8px;
  font-size: 23px;
  letter-spacing: -0.6px;
}
.studio-entry p {
  margin: 0;
  color: #697060;
  font-size: 14px;
}
.studio-entry button {
  flex-shrink: 0;
}
.creative-studio {
  color: #333832;
  max-width: 1180px;
  margin: 0 auto;
}
.studio-topline {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 44px;
}
.studio-back {
  padding: 0;
  background: transparent;
  border: 0;
  white-space: nowrap;
  font-size: 13px;
  color: #626c61;
}
.studio-back:hover {
  background: transparent;
  color: #2c4237;
}
.studio-project {
  margin-left: auto;
  font-size: 12px;
  color: #747b6e;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-heading {
  margin-bottom: 32px;
}
.studio-heading .eyebrow {
  color: #8d775f;
  font-size: 10px;
  letter-spacing: 2px;
}
.studio-heading h1 {
  font-size: clamp(29px, 3.1vw, 43px);
  font-weight: 550;
  letter-spacing: -1.6px;
}
.studio-heading p {
  margin: 0;
  color: #7a8073;
  font-size: 15px;
}
.studio-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.15fr);
  gap: 28px;
  align-items: start;
}
.studio-compose {
  background: #fffefb;
  border: 1px solid #e5e4d9;
  border-radius: 24px;
  padding: 28px;
}
.studio-compose fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.studio-compose fieldset:disabled {
  opacity: 0.7;
}
.studio-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  padding: 4px;
  background: #eeeee7;
  margin-bottom: 28px;
}
.studio-kind button {
  border: 0;
  color: #76806f;
  background: transparent;
  border-radius: 9px;
  padding: 11px;
  font-size: 13px;
}
.studio-kind button[aria-pressed='true'] {
  background: #fffefb;
  color: #344837;
  box-shadow: 0 2px 6px #2c352c0b;
}
.studio-kind button span {
  font-size: 18px;
  line-height: 1;
}
.studio-field-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.studio-compose textarea {
  min-height: 160px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid #dfe2d6;
  background: #fbfbf6;
  font-size: 14px;
  padding: 16px;
  line-height: 1.65;
}
.studio-compose textarea::placeholder {
  color: #92988a;
}
.studio-compose textarea:focus {
  outline: 2px solid #92a28b;
  outline-offset: 2px;
}
.studio-idea-options {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: -2px 0 10px;
}
.studio-idea-circle {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #e1e4d9;
  border-radius: 50%;
  background: #f2f3eb;
  color: #71806a;
  font-size: 12px;
  font-weight: 650;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}
.studio-idea-circle:hover:not(:disabled),
.studio-idea-circle.is-previewing {
  background: #e6ebdd;
  color: #354a32;
  transform: translateY(-2px);
}
.studio-idea-circle[aria-pressed='true'] {
  color: #fff;
  background: #5e7253;
  border-color: #5e7253;
}
.studio-idea-circle:focus-visible {
  outline: 2px solid #a48b54;
  outline-offset: 3px;
}
.studio-idea-circle:disabled {
  opacity: 0.45;
  cursor: default;
}
.studio-idea-status {
  color: #828877;
  font-size: 10px;
  line-height: 1.4;
}
.studio-prompt-wrap {
  position: relative;
}
.studio-prompt-wrap textarea {
  display: block;
  width: 100%;
}
.studio-idea-preview {
  position: absolute;
  inset: 1px;
  overflow: hidden;
  padding: 15px;
  border-radius: 13px;
  background: #fbfbf6;
  color: #92988a;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.studio-idea-preview[hidden] {
  display: none;
}
.studio-prompt-wrap textarea.is-idea-preview {
  color: transparent;
  caret-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .studio-idea-circle {
    transition: none;
  }
}
.studio-prompt-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #828877;
  font-size: 10px;
  margin: 8px 0 27px;
}
.studio-photo-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.studio-photo-label > span {
  font-size: 10px;
  color: #828877;
}
.studio-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.studio-photos > p {
  grid-column: 1/-1;
}
.studio-photo {
  position: relative;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #edeee7;
  border: 2px solid transparent;
}
.studio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.77;
  transition: opacity 0.15s;
}
.studio-photo:hover img,
.studio-photo.is-selected img {
  opacity: 1;
}
.studio-photo.is-selected {
  border-color: #55704e;
  box-shadow:
    0 0 0 2px #fffefb,
    0 0 0 3px #98ab8b;
}
.studio-photo-check {
  position: absolute;
  bottom: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #fffefbea;
  color: #3e5140;
  font-size: 10px;
}
.studio-photo.is-selected .studio-photo-check {
  background: #3e5742;
  color: #fff;
}
.studio-photo-hint {
  font-size: 11px;
  margin: 12px 0 24px;
  color: #808775;
}
.studio-controls {
  display: flex;
  gap: 12px;
}
.studio-controls label {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: #687360;
}
.studio-controls select {
  font-size: 12px;
  background: #fffefb;
  border-color: #dfe2d6;
  margin-top: 7px;
  padding: 11px 9px;
}
.studio-create {
  margin-top: 20px;
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-size: 13px;
  background: #3d5140;
  border-color: #3d5140;
}
.studio-create span {
  margin-left: auto;
}
.studio-create:disabled {
  cursor: not-allowed;
}
.studio-footnote {
  text-align: center;
  font-size: 10px;
  margin: 12px 0 0;
  color: #838975;
}
.studio-setup {
  background: #f0ece3;
  color: #786850;
  border-radius: 12px;
  padding: 15px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.5;
}
.studio-setup p {
  font-size: 11px;
  margin: 6px 0 10px;
}
.studio-setup button {
  background: transparent;
  color: #786850;
  border-color: #d5cbb9;
  padding: 6px 9px;
  font-size: 11px;
}
.studio-output {
  min-width: 0;
  background: #f0f0e8;
  border: 1px solid #e3e4d8;
  border-radius: 24px;
  padding: 24px;
  min-height: 570px;
}
.studio-empty {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.studio-empty h2 {
  font-weight: 500;
  font-size: 25px;
  letter-spacing: -0.8px;
  line-height: 1.3;
  color: #5d6854;
  margin: 32px 0 0;
}
.studio-empty > p {
  font-size: 12px;
  color: #868c7c;
}
.studio-empty-art {
  height: 140px;
  width: 160px;
  position: relative;
}
.studio-empty-art span {
  position: absolute;
  border: 1px solid #c6cbb8;
  border-radius: 18px;
  width: 95px;
  height: 115px;
  background: #e0e5d4;
  left: 8px;
  top: 15px;
  transform: rotate(-15deg);
}
.studio-empty-art span:nth-child(2) {
  background: #e6dac8;
  border-color: #d6c8b1;
  left: 53px;
  top: 8px;
  transform: rotate(12deg);
}
.studio-empty-art span:last-child {
  left: 32px;
  top: 29px;
  transform: rotate(0);
  display: grid;
  place-items: center;
  background: #f8f6ed;
  color: #8d9b7b;
  font-size: 43px;
  border-color: #e3dfce;
  box-shadow: 0 8px 20px #4b55330b;
}
.studio-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 19px;
}
.studio-kicker {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: #7a8270;
}
.studio-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #62724f;
}
.studio-status.is-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8d9b70;
}
.studio-media {
  background: #e4e5da;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.studio-media img,
.studio-media video {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  display: block;
}
.studio-media.is-portrait img,
.studio-media.is-portrait video {
  max-height: 520px;
}
.studio-result-prompt {
  font-size: 12px;
  color: #66735c;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.studio-result .actions {
  gap: 8px;
}
.studio-result .actions button,
.studio-result .actions .button {
  font-size: 11px;
  border-radius: 9px;
  padding: 10px 12px;
}
.studio-result .studio-delete {
  background: transparent;
  color: #7e786c;
}
.studio-progress {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.studio-progress-symbol {
  font-size: 45px;
  color: #95a180;
  margin-bottom: 20px;
}
.studio-progress h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.studio-progress p {
  font-size: 12px;
  color: #7b8272;
  max-width: 290px;
  margin-top: 0;
}
.studio-history {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #dbdfd1;
}
.studio-history h3 {
  font-size: 12px;
  font-weight: 500;
  color: #65735a;
  margin-bottom: 14px;
}
.studio-history-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.studio-history-item {
  min-width: 0;
  justify-content: flex-start;
  padding: 7px;
  border: 1px solid transparent;
  background: #f8f8f1;
  text-align: left;
  gap: 9px;
  border-radius: 11px;
}
.studio-history-item[aria-pressed='true'] {
  border-color: #9ea98c;
}
.studio-history-item > img,
.studio-history-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.studio-history-icon {
  display: grid;
  place-items: center;
  background: #e8eadf;
  font-size: 21px;
  color: #7a8769;
}
.studio-history-item strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.studio-history-item small {
  display: block;
  font-size: 9px;
  color: #7e8773;
  margin-top: 4px;
}
.studio-refresh {
  display: block;
  margin: 20px auto 0;
  padding: 4px;
  font-size: 11px;
  background: transparent;
  border: 0;
  font-weight: 400;
  color: #76816b;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .studio-workspace {
    gap: 18px;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  }
  .studio-compose {
    padding: 22px;
  }
  .studio-output {
    padding: 20px;
  }
  .studio-history-items {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .studio-workspace {
    grid-template-columns: 1fr;
  }
  .studio-output {
    min-height: 320px;
  }
  .studio-empty {
    min-height: 320px;
  }
  .studio-history-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-entry {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}
@media (max-width: 600px) {
  .studio-topline {
    margin-bottom: 30px;
    gap: 16px;
  }
  .studio-project {
    max-width: 150px;
    font-size: 10px;
  }
  .studio-heading {
    margin-bottom: 24px;
  }
  .studio-heading h1 {
    letter-spacing: -1px;
  }
  .studio-heading p {
    font-size: 13px;
  }
  .studio-compose {
    padding: 20px;
  }
  .studio-history-items {
    grid-template-columns: 1fr;
  }
}

/* Media lifetime: small timestamps, quiet placeholders, no broken thumbnails. */
.media-expiry {
  color: #6e746e;
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 0.65rem 0;
}
.media-expiry.is-expired {
  color: #9b5743;
}
.photo-card > .media-expiry {
  padding: 0 0.8rem;
}
.media-expired {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  background: #f2f1ed;
  color: #85877e;
  border-radius: 14px;
  font-size: 0.85rem;
}
.media-expired > span:first-child {
  font-size: 1.8rem;
}
.studio-photo:disabled {
  opacity: 0.65;
  cursor: default;
}
.studio-photo .media-expired {
  min-height: 0;
  height: 100%;
  border-radius: 0;
  font-size: 0.65rem;
}
.studio-photo .media-expired > span:first-child {
  font-size: 1.1rem;
}
.studio-photo:disabled .studio-photo-check {
  display: none;
}
#schedule fieldset {
  margin: 0;
  border: 0;
  padding: 0;
  min-width: 0;
}

.photo-card {
  min-width: 0;
}
.photo-card .media-expired {
  min-height: 120px;
  aspect-ratio: auto;
}
@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A quiet sortable photo strip: move the handle, keep controls independently usable. */
.photo-order-heading {
  align-items: center;
  gap: 12px;
}
.photo-order-heading .help {
  margin: 0;
}
#campaign-photos .photo-card {
  position: relative;
  transition:
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}
#campaign-photos .photo-use {
  padding-right: 82px;
  min-height: 44px;
}
.photo-order-tools {
  position: absolute;
  top: 14px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.photo-order-number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9ede7;
  color: #526055;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.photo-drag-handle {
  width: 40px;
  height: 42px;
  min-height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: #647167;
  border-radius: 10px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.photo-drag-handle:hover {
  background: #e9ede7;
  color: #263c36;
}
.photo-drag-handle:focus-visible {
  outline: 2px solid #a67c39;
  outline-offset: 2px;
}
.photo-drag-handle[aria-pressed='true'] {
  cursor: grabbing;
  background: #e9ede7;
}
.photo-drag-handle:disabled {
  cursor: default;
  opacity: 0.3;
}
#campaign-photos .photo-reordering {
  opacity: 0.5;
  outline: 2px dashed #ac8a4e;
  outline-offset: 2px;
  box-shadow: 0 8px 28px #263c3614;
}
.photo-reordering-grid {
  user-select: none;
  -webkit-user-select: none;
}
.photo-drag-preview {
  position: fixed;
  width: 150px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  z-index: 10000;
  background: #e9ede7;
  box-shadow: 0 16px 40px #12261f40;
  transform: rotate(3deg);
}
.photo-drag-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  #campaign-photos .photo-card {
    transition: none;
  }
}

/* Shared login actions and company attribution. */
.login > button {
  margin-top: 14px;
}
.login > button + button {
  margin-left: 10px;
}
.footer-company-logo {
  display: block;
  width: 150px;
  max-width: 45vw;
  height: auto;
  margin: 8px auto;
}

/* Account forms also use <main>; include mobile margins inside their width. */
.login {
  width: calc(100% - 30px);
}

@media (min-width: 701px) {
  .layout {
    grid-template-rows: 1fr auto;
  }
  .layout > .sidebar {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .layout > main,
  .layout > .policy-footer {
    grid-column: 2;
    min-width: 0;
  }
}
.shared-project {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
}
.shared-project .shared-brand {
  width: 9rem;
}
#shared-preview :is(img, video) {
  display: block;
  width: 100%;
  max-height: 72svh;
  object-fit: contain;
  border-radius: 12px;
  background: #15211d;
}
#shared-download {
  margin-top: 1rem;
}
#shared-download[hidden] {
  display: none;
}
.studio-share-panel {
  width: min(30rem, 90vw);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 64px #13241f33;
  padding: 1.5rem;
}
.studio-share-panel::backdrop {
  background: #13241f66;
}
.studio-share-panel [role='status']:empty {
  display: none;
}
.studio-share-panel input {
  width: 100%;
}
.post-filters,
.post-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.post-filters label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
}
.post-filters select {
  min-height: 2.5rem;
}
.post-pager {
  justify-content: center;
  margin-top: 1rem;
}
.post-pager span,
.post-kind {
  font-size: 0.85rem;
}
.post-kind {
  margin-inline-start: 0.5rem;
}
.project-card .library-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
}

.public-plans { max-width: 67rem; margin: clamp(1rem,7vh,5rem) auto; padding: 1.5rem; }
.public-plans > .reachready-logo { width: 11rem; max-height: 4rem; object-fit: contain; }
.plan-picker h1,.pay-panel h1 {font-size:clamp(1.9rem,4vw,3rem);letter-spacing:-.04em}
.plan-interval { display:inline-flex; gap:.25rem; padding:.25rem; border-radius:1.5rem; background:#f1f3f5; margin-bottom:1.4rem; }
.plan-interval button { border:0; border-radius:1.5rem; background:transparent; }
.plan-interval [aria-pressed=true] {background:#182731;color:white;}
.plan-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem;}
.plan-card {display:flex; flex-direction:column;align-items:flex-start;}
.plan-card p {margin:.3rem 0;} .plan-card button {margin-top:auto;align-self:stretch;}
.plan-card p:last-of-type {margin-bottom:1.5rem;}
.plan-price {font-size:2rem;font-weight:700;} .plan-price small {font-size:.95rem;font-weight:500}
.pay-panel {max-width:37rem;margin:1.5rem auto;}
.plan-limits label{display:block;margin:1.15rem 0;} .plan-limits label strong{float:right;}
.plan-limits progress {display:block;width:100%;margin-top:.35rem;accent-color:#a16318;}

.plan-card-heading { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; margin-bottom:.5rem; }
.plan-card-heading h2 { margin:0; }
.plan-card.plan-recommended { background:#fffaf0; border:1px solid #d7b477; }
.plan-badge { color:#714a0d; background:#fae9c8; border-radius:1rem; padding:.2rem .6rem; font-size:.75rem; font-weight:650; }
