@font-face {
  font-family: system;
  src: local("Arial");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f3ed;
  color: #20231d;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.service-space {
  max-width: 900px;
  margin: 8px auto 50px;
}
.service-heading,
.service-thread-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.service-heading h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin: 8px 0 28px;
}
.service-welcome {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #cbd0bd;
}
.service-welcome p {
  max-width: 650px;
  margin: 6px 0 0;
}
.service-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  color: #e4ff96;
  background: #242a1e;
  font-weight: bold;
}
.service-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 38px;
}
.service-action {
  background: #fbfbf7;
  border: 1px solid #d5d8cb;
  padding: 24px;
  min-width: 0;
}
.service-action h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 8px 0 12px;
}
.service-action button {
  display: block;
  text-align: left;
  margin-top: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.service-results {
  grid-column: 1/-1;
  display: flex;
  gap: 12px 24px;
  align-items: center;
  flex-wrap: wrap;
  background: transparent;
  padding: 16px 24px;
}
.service-results p {
  margin: 0;
  flex: 1;
  min-width: 180px;
}
.service-results button {
  margin: 0;
}
.service-history {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
  min-height: 80px;
}
.service-message {
  border: 1px solid #d5d8cb;
  background: #fffef9;
  max-width: 85%;
  padding: 20px 24px;
  align-self: flex-start;
  min-width: 0;
}
.service-message.from-client {
  align-self: flex-end;
  background: #e9eddf;
}
.service-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: space-between;
  font-size: 0.78rem;
}
.service-message-meta time {
  color: #67705c;
}
.service-message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0 0;
}
.service-message button {
  margin-top: 14px;
}
.service-composer {
  background: #fbfbf7;
  padding: 18px;
  border: 1px solid #aab397;
}
.service-composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 90px;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 8px;
}
.service-compose-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.service-compose-footer p {
  font-size: 0.8rem;
  margin: 0;
}
.service-admin {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #cbd0bd;
}
.service-email {
  padding: 20px 0;
  border-bottom: 1px solid #cbd0bd;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .service-next {
    grid-template-columns: minmax(0, 1fr);
  }
  .service-action {
    padding: 20px;
  }
  .service-message {
    max-width: 95%;
    padding: 16px;
  }
  .service-thread-heading {
    flex-wrap: wrap;
  }
  .service-compose-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .service-results {
    align-items: flex-start;
  }
  .service-heading {
    align-items: flex-start;
  }
}

.analytics {
  min-width: 0;
}
.analytics-actions,
.analytics-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.analytics-tabs {
  margin: 20px 0 28px;
  border-bottom: 1px solid var(--line, #cbd0bd);
  padding-bottom: 14px;
}
.analytics-tabs button {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line, #cbd0bd);
}
.analytics-tabs button.active {
  background: #242a1e;
  color: #e2f48d;
}
.analytics-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line, #cbd0bd);
  margin: 20px 0;
}
.analytics-stat {
  padding: 20px;
  border-right: 1px solid var(--line, #cbd0bd);
}
.analytics-stat:last-child {
  border: 0;
}
.analytics-stat p {
  margin: 0 0 14px;
  font-size: 0.9rem;
}
.analytics-stat strong {
  display: block;
  font-size: 2.7rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.analytics-stat small,
.analytics-flow small,
.analytics-contact small {
  display: block;
  margin-top: 6px;
  color: #606953;
}
.analytics-flow {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) repeat(3, 80px);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line, #cbd0bd);
}
.analytics-flow-list {
  margin-bottom: 32px;
}
.analytics-note {
  border-top: 1px solid var(--line, #cbd0bd);
  margin-top: 30px;
  padding-top: 12px;
}
.analytics-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line, #cbd0bd);
  overflow-wrap: anywhere;
}
.analytics-contact > div {
  min-width: 0;
  flex: 1;
}
.analytics-contact-form {
  display: grid;
  gap: 18px;
}
.analytics .card {
  margin-bottom: 20px;
}
.analytics h3,
.analytics strong {
  overflow-wrap: anywhere;
}
@media (max-width: 650px) {
  .analytics-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-stat {
    padding: 16px;
    border-bottom: 1px solid var(--line, #cbd0bd);
  }
  .analytics-stat:nth-child(2) {
    border-right: 0;
  }
  .analytics-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .analytics-flow > div:first-child {
    grid-column: 1/-1;
  }
  .analytics-contact {
    flex-wrap: wrap;
  }
  .analytics-contact > div {
    flex-basis: 100%;
  }
  .analytics-tabs {
    gap: 7px;
  }
  .analytics-tabs button {
    padding: 10px;
    font-size: 0.82rem;
  }
  .analytics-stat strong {
    font-size: 2.2rem;
  }
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid #ccd0c2;
  background: transparent;
  padding: 12px 18px;
  color: inherit;
  min-height: 44px;
}
button:hover {
  background: #e6e9de;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: #242a1d;
  color: #e7ff99;
  border-color: #242a1d;
}
button.primary:hover {
  background: #38452b;
}
button.accent {
  background: #ff4a2b;
  border-color: #ff4a2b;
  color: #171b13;
}
button.quiet {
  border: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
a {
  color: inherit;
}
header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid #d7d9cd;
}
.logo {
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -5px;
  text-decoration: none;
}
.logo span {
  color: #ff4a2b;
}
.header-label {
  font-size: 10px;
  letter-spacing: 0.12em;
}
#logout {
  margin-left: auto;
}
main {
  max-width: 1500px;
  margin: auto;
  min-height: 75vh;
  padding: 44px clamp(20px, 4vw, 64px);
}
h1 {
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 12px 0 24px;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 8px 0 16px;
}
h3 {
  font-size: 18px;
  margin: 8px 0;
}
p {
  max-width: 65ch;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.muted {
  color: #626858;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}
.intro p {
  max-width: 34ch;
}
.toolbar,
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar {
  justify-content: space-between;
  margin: 24px 0;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #c9cebd;
  gap: 24px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  white-space: nowrap;
  padding: 16px 0;
  border-bottom: 3px solid transparent;
}
.tabs button[aria-current="page"] {
  border-bottom-color: #20231d;
  font-weight: 700;
}
.pill {
  display: inline-block;
  border: 1px solid #b9c0ad;
  font-size: 11px;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pill.review {
  background: #e1f797;
}
.pill.changes,
.pill.uncertain,
.pill.failed {
  background: #ffe1d4;
}
.pill.published {
  background: #dbe8d3;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #cdd0c3;
  border-left: 1px solid #cdd0c3;
}
.view-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #e6e9de;
  width: fit-content;
  margin: 0 0 24px;
  max-width: 100%;
}
.view-switch button {
  border: 0;
  font-size: 13px;
  padding: 11px 20px;
}
.view-switch button[aria-pressed="true"] {
  background: #242a1d;
  color: #f6f8ef;
}
.feed-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.3fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
  padding: 18px 0 40px;
}
.feed-controls {
  max-width: 390px;
  position: sticky;
  top: 28px;
}
.feed-controls h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.feed-controls > .muted {
  margin-bottom: 28px;
}
.feed-date {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.feed-controls input[type="range"] {
  width: 100%;
  min-height: 44px;
  accent-color: #303b22;
  cursor: pointer;
}
.feed-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #626858;
}
.feed-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  margin-top: 8px;
  border-bottom: 1px solid #cdd0c3;
  font-size: 13px;
  cursor: pointer;
  min-height: 48px;
}
.feed-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: #303b22;
  flex-shrink: 0;
}
.feed-hint {
  font-size: 12px;
  color: #626858;
  margin-top: 20px;
}
.ig-preview {
  border: 1px solid #d4d8ca;
  background: #fff;
  max-width: 680px;
  width: 100%;
  margin: auto;
  box-shadow: 0 16px 40px #2530190a;
}
.ig-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #eceee7;
  font-weight: 700;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.preview-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: #eef0e8;
  padding: 5px 8px;
  white-space: nowrap;
}
.ig-profile {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 24px;
}
.ig-avatar {
  display: grid;
  place-items: center;
  background: #242a1d;
  color: #e4f5b8;
  font-size: 30px;
  font-weight: 700;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex-shrink: 0;
  letter-spacing: -0.06em;
}
.ig-profile h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.ig-profile p {
  font-size: 12px;
  margin: 4px 0;
}
.ig-profile .feed-count {
  font-weight: 700;
  color: #303729;
}
.ig-grid-label {
  border-top: 1px solid #eceee7;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  letter-spacing: 0.1em;
  font-size: 10px;
  padding: 12px;
}
.ig-grid-label span {
  font-size: 20px;
  line-height: 1;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.ig-tile {
  padding: 0;
  border: 0;
  aspect-ratio: 3/4;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #e2e6dc;
  color: #fff;
}
.ig-tile img,
.ig-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.ig-tile:hover img {
  transform: scale(1.025);
}
.ig-tile:focus-visible {
  outline-offset: -4px;
  outline-color: #dfff7c;
  z-index: 1;
}
.ig-tile-date {
  position: absolute;
  left: 8px;
  top: 8px;
  background: #131b15d9;
  color: #fff;
  padding: 3px 6px;
  font-size: 10px;
  line-height: 1.5;
}
.ig-tile-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 15px 8px 8px;
  background: linear-gradient(transparent, #101b14de);
  font-size: 10px;
  text-align: left;
  color: #fff;
}
.ig-format {
  position: absolute;
  right: 8px;
  top: 8px;
  font-size: 20px;
  line-height: 1;
  color: white;
  text-shadow: 0 1px 3px #000;
}
.ig-caption-tile {
  display: grid;
  align-content: center;
  background: #263221;
  color: #e4f5b8;
  width: 100%;
  height: 100%;
  padding: 14px;
  text-align: left;
  font-size: clamp(12px, 1.5vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.ig-placeholder {
  aspect-ratio: 3/4;
  background: #f0f2eb;
}
.ig-grid-empty {
  grid-column: 1/-1;
  padding: 35px;
  margin: 0;
  color: #626858;
  font-size: 14px;
}
.ig-preview-note {
  font-size: 11px;
  color: #626858;
  margin: 0;
  padding: 20px 24px;
  line-height: 1.6;
}
@media (max-width: 850px) {
  .feed-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feed-controls {
    max-width: none;
    position: static;
  }
  .feed-controls h2 {
    font-size: 34px;
  }
  .feed-controls > .muted {
    margin-bottom: 20px;
  }
  .ig-preview {
    max-width: 560px;
  }
}
@media (max-width: 420px) {
  .ig-preview-top {
    padding: 16px 12px;
    font-size: 14px;
    gap: 8px;
  }
  .preview-tag {
    font-size: 8px;
    letter-spacing: 0;
    padding: 4px;
  }
  .ig-profile {
    padding: 18px 12px;
    gap: 12px;
  }
  .ig-avatar {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
  .ig-profile h3 {
    font-size: 13px;
  }
  .ig-profile p {
    font-size: 11px;
  }
  .ig-tile-date {
    left: 4px;
    top: 4px;
    font-size: 9px;
    padding: 2px 4px;
  }
  .ig-tile-status {
    font-size: 9px;
    padding: 13px 4px 5px;
  }
  .ig-preview-note {
    padding: 16px 12px;
  }
  .view-switch button {
    padding: 10px 14px;
  }
}
.day {
  border-bottom: 1px solid #cdd0c3;
  border-right: 1px solid #cdd0c3;
  padding: 10px;
  min-height: 150px;
}
.day.empty {
  background: #eaece3;
}
.day-title {
  font-size: 12px;
  display: block;
  margin-bottom: 12px;
  color: #646c5b;
}
.day.today {
  box-shadow: inset 0 3px #ff4a2b;
}
.post-chip {
  display: block;
  text-align: left;
  padding: 10px;
  width: 100%;
  background: #fffdf7;
  margin: 6px 0;
  border: 1px solid #dadfd0;
  border-left: 3px solid #29331e;
  font-size: 12px;
  overflow: hidden;
}
.post-chip small {
  display: block;
  color: #626858;
  margin-bottom: 5px;
}
.post-chip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 6px 0;
}
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 11px;
  margin-bottom: 10px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
.card {
  padding: 24px;
  border: 1px solid #cdd0c3;
  background: #fcfbf6;
}
.card p {
  overflow-wrap: anywhere;
}
.card img,
.card video {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  background: #e8ebdf;
}
.empty-state {
  border: 1px dashed #b9c0ad;
  padding: 40px;
  margin: 24px 0;
  max-width: 700px;
}
.login {
  max-width: 600px;
  margin: 30px auto;
}
.login h1 {
  max-width: 8ch;
}
.field {
  display: block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: #fffef9;
  color: #20231d;
  border: 1px solid #a5ae97;
  padding: 12px;
  min-height: 46px;
  border-radius: 0;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input[type="checkbox"] {
  display: inline;
  width: auto;
  min-height: auto;
}
.notice {
  background: #e2efc1;
  padding: 16px;
  margin: 16px 0;
  border-left: 3px solid #536830;
}
#notice:not(:empty) {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  max-width: 600px;
  margin: auto;
  background: #242a1d;
  color: #fff;
  padding: 16px;
  box-shadow: 0 8px 40px #20231d30;
}
dialog {
  padding: 28px;
  border: 1px solid #b9c0ad;
  background: #f8f8f0;
  color: #20231d;
  width: min(620px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #11180ed9;
}
.dialog-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.dialog-top h2 {
  margin: 10px 0 24px;
}
.dialog-top > button {
  flex-shrink: 0;
  white-space: nowrap;
}
.dialog-media {
  display: flex;
  gap: 12px;
  overflow: auto;
}
.dialog-media img,
.dialog-media video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  flex-shrink: 0;
}
.caption {
  white-space: pre-wrap;
  border-top: 1px solid #d6ddcb;
  padding-top: 20px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.metric-grid strong {
  font-size: 30px;
  display: block;
}
.event {
  padding: 12px 0;
  border-bottom: 1px solid #d6ddcb;
  font-size: 13px;
}
.event small {
  display: block;
  color: #626858;
}
.skip {
  position: fixed;
  left: 20px;
  top: -70px;
  background: #fff;
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #526e20;
  outline-offset: 4px;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 64px);
  border-top: 1px solid #d7d9cd;
  font-size: 11px;
  color: #626858;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #e9ecdf;
  padding: 16px;
}
select {
  max-width: 100%;
  background: #fafaf2;
  padding: 10px;
}
small {
  font-size: 12px;
}
.loading {
  padding: 40px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 700px) {
  header {
    gap: 20px;
    padding: 20px;
  }
  .header-label {
    font-size: 9px;
    max-width: 18ch;
  }
  .logo {
    font-size: 40px;
  }
  main {
    padding-top: 28px;
  }
  .intro {
    display: block;
    margin-bottom: 25px;
  }
  .intro p {
    max-width: 100%;
  }
  .tabs {
    gap: 22px;
  }
  .calendar {
    display: block;
    border: 0;
  }
  .day {
    min-height: 0;
    padding: 12px 0;
    border-right: 0;
  }
  .day.empty,
  .day:has(.day-title:only-child) {
    display: none;
  }
  .day.today {
    box-shadow: none;
  }
  .day-title {
    font-size: 13px;
  }
  .weekdays {
    display: none;
  }
  .post-chip {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    font-size: 14px;
    padding: 16px;
  }
  .post-chip img {
    grid-column: 2;
    grid-row: 1/4;
    width: 66px;
    margin: 0;
  }
  .card {
    padding: 20px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  footer {
    display: block;
  }
  footer span {
    display: block;
    margin-top: 8px;
  }
  .toolbar .row {
    width: 100%;
    justify-content: space-between;
  }
  .intro h1 {
    font-size: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* The artwork is isolated from GUF status controls; hover never alters its crop. */
.ig-tile {
  aspect-ratio: auto;
  align-self: start;
  background: #fff;
  color: #20231d;
  text-align: left;
}
.ig-tile-frame {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eef0e8;
}
.ig-tile-frame.whole img {
  object-fit: contain;
}
.ig-tile:hover img {
  transform: none;
}
.ig-tile-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 6px 14px;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ig-tile-info > span:first-child {
  font-weight: 700;
}
.ig-geometry {
  font-size: 9px;
  color: #626858;
}
.post-chip img {
  object-fit: contain;
}
.media-review {
  margin-top: 24px;
}
.media-stage {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e7e9e2;
  width: 100%;
  margin: auto;
}
.media-stage img,
.media-stage video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 64dvh;
  object-fit: contain;
}
.media-stage:not([data-frame="original"]) img,
.media-stage:not([data-frame="original"]) video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.media-stage[data-frame="profile"] {
  aspect-ratio: 3/4;
  max-width: 360px;
}
.media-stage[data-frame="portrait"] {
  aspect-ratio: 4/5;
  max-width: 400px;
}
.media-stage[data-frame="square"] {
  aspect-ratio: 1;
}
.media-stage[data-frame="vertical"] {
  aspect-ratio: 9/16;
  max-width: 300px;
}
.media-stage[data-frame="wide"] {
  aspect-ratio: 16/9;
}
.media-stage > img,
.media-stage > video {
  min-height: 0;
  min-width: 0;
}
.media-facts {
  font-size: 12px;
  font-weight: 650;
  margin: 14px 0 6px;
}
.crop-report {
  padding: 10px 12px;
  background: #eef0e8;
  font-size: 12px;
  line-height: 1.6;
}
.media-filename {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.media-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0;
}
.media-pager button {
  padding: 10px;
}
.media-position {
  font-size: 11px;
  white-space: nowrap;
}
.media-report {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #d3d7cb;
  background: #f0f2e9;
  font-size: 12px;
  line-height: 1.7;
}
.media-report.needs-review {
  background: #fff1da;
  border-color: #cfb481;
}
.media-report p:last-child {
  margin-bottom: 0;
}
.media-report ul {
  padding-left: 18px;
}
.media-report li + li {
  margin-top: 8px;
}
.media-guidance {
  margin: 20px 0;
  font-size: 12px;
  line-height: 1.7;
}
.media-guidance summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}
.preview-error {
  padding: 24px;
}
@media (max-width: 420px) {
  dialog {
    padding: 18px;
  }
  .media-pager {
    flex-wrap: wrap;
  }
  .media-pager button {
    font-size: 11px;
  }
  .ig-tile-info {
    font-size: 9px;
    padding: 7px 4px 12px;
  }
}

.asset-thumbnail {
  display: block;
  width: 100%;
}
.asset-thumbnail:empty {
  display: none;
}
.video-thumbnail {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  padding: 15px;
  background: #20291e;
  color: #e2efc1;
  font-size: 12px;
}
.destination-label {
  color: #52632e;
}
.destination-notice {
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  border-left: 3px solid #af741c;
  background: #fff1da;
}
.outside-grid {
  margin: 28px auto 0;
  max-width: 680px;
}
.outside-grid h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.outside-grid p {
  font-size: 12px;
}
.outside-post {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: left;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.5;
}
.composer-hint {
  font-size: 12px;
  color: #5b634d;
  line-height: 1.6;
}
.cover-fields {
  padding: 16px;
  margin: 12px 0 20px;
  border: 1px solid #ccd3bf;
}
.feed-layout > div {
  min-width: 0;
}
[hidden] {
  display: none !important;
}
.setup-url {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
}

/* Response operations: one decision at a time, with optional depth. */
.engagement {
  max-width: 1200px;
  margin: 28px auto;
}
.engagement h2 {
  margin: 0;
}
.engagement-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.engagement-nav button {
  min-height: 44px;
  border-color: transparent;
}
.engagement-nav [aria-current="page"] {
  background: var(--ink, #20241b);
  color: var(--paper, #f5f4ed);
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.template {
  min-height: 88px;
  text-align: left;
  font-weight: 650;
  background: #fffef9;
}
.flow-list,
.inbox-list {
  display: grid;
  gap: 12px;
}
.flow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #ccd0c2;
  padding: 22px;
  background: #fffef9;
}
.flow-card h3 {
  margin: 6px 0;
}
.flow-card p {
  margin: 8px 0;
}
.flow-card > .row {
  flex-shrink: 0;
}
.flow-editor {
  display: grid;
  gap: 20px;
}
.flow-step {
  border-top: 1px solid #d0d4c5;
  padding-top: 18px;
  display: grid;
  gap: 12px;
}
.flow-editor textarea,
.flow-editor input,
.flow-editor select,
.thread-detail input,
.thread-detail textarea {
  max-width: 100%;
  box-sizing: border-box;
}
.flow-editor details {
  background: #eeeee5;
  padding: 16px;
}
.flow-editor summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 650;
}
.flow-editor details[open] summary {
  margin-bottom: 12px;
}
.flow-editor .field {
  margin: 0 0 12px;
}
.sequence-step {
  border-top: 1px solid #c6cbbd;
  padding: 16px 0;
}
.flow-preview .bubble {
  margin: 12px 0;
}
.inbox-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  text-align: left;
  gap: 20px;
  padding: 20px;
  background: #fffef9;
}
.inbox-row > div {
  min-width: 0;
}
.inbox-row p {
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.inbox-row > div:last-child {
  max-width: 260px;
  text-align: right;
  font-size: 0.82rem;
}
.thread-detail {
  display: grid;
  gap: 20px;
}
.thread-messages {
  display: grid;
  gap: 14px;
  max-height: 48vh;
  overflow: auto;
  padding: 8px;
}
.bubble {
  padding: 16px;
  border: 1px solid #d5d7cd;
  max-width: 92%;
  overflow-wrap: anywhere;
  background: #fffef9;
}
.bubble.outgoing {
  margin-left: auto;
  background: #ecf2db;
}
.bubble p {
  margin: 8px 0;
}
.message-text {
  white-space: pre-wrap;
}
.bubble .muted {
  font-size: 0.82rem;
}
.response-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 24px 0;
}
.response-counts strong {
  font-size: 2rem;
}
.response-counts p {
  margin: 4px 0;
}
@media (max-width: 640px) {
  .flow-card {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
  }
  .flow-card .row {
    flex-wrap: wrap;
  }
  .flow-card .row button {
    flex: 1;
  }
  .template-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inbox-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }
  .inbox-row > div:last-child {
    text-align: left;
    max-width: 100%;
  }
  .engagement .toolbar,
  .thread-detail .toolbar {
    flex-wrap: wrap;
  }
  .engagement .field,
  .thread-detail .field {
    min-width: 0;
  }
  .engagement-nav {
    gap: 2px;
  }
  .engagement-nav button {
    padding: 10px;
  }
  .bubble {
    max-width: 100%;
  }
  .flow-editor details {
    padding: 12px;
  }
}

/* Client conversation: one column, one current decision, quiet navigation. */
.romina-avatar {
  display: block;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8d8;
}
.access-space {
  max-width: 470px;
  margin: clamp(32px, 8vh, 88px) auto 80px;
  padding: 0 12px;
}
.access-space > .romina-avatar {
  margin-bottom: 24px;
}
.access-space .eyebrow {
  margin-bottom: 10px;
}
.access-copy h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
  margin: 0 0 22px;
}
.access-copy > p {
  color: #53594c;
  line-height: 1.65;
  margin-bottom: 24px;
}
.access-copy form {
  margin-top: 26px;
}
.access-copy input {
  min-height: 52px;
  border-radius: 8px;
  background: #fffef9;
}
.access-copy .primary {
  border-radius: 8px;
  min-height: 50px;
}
.access-copy form .primary {
  width: 100%;
}
.access-feedback:empty {
  display: none;
}
.access-feedback {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #53594c;
}
.access-help {
  font-size: 0.8rem;
}
.client-conversation > header {
  max-width: 100%;
  padding: 18px max(24px, calc((100vw - 1040px) / 2));
}
.client-conversation > header .logo {
  font-size: 2.3rem;
}
.client-conversation .header-label {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}
.client-conversation #main {
  max-width: 860px;
  padding: 24px 24px 0;
  margin: auto;
  min-height: 0;
}
.conversation-space {
  max-width: 760px;
  margin: 0 auto;
}
.conversation-heading {
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid #d9dccf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
}
.conversation-person {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.conversation-heading h1 {
  font-size: 1.1rem;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.35;
}
.conversation-heading p {
  font-size: 0.76rem;
  color: #68705e;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.conversation-heading button {
  font-size: 0.78rem;
  white-space: nowrap;
  flex: none;
}
.conversation-scroll {
  padding: 26px 0 16px;
}
.romina-intro {
  max-width: 520px;
  font-size: 1.03rem;
  line-height: 1.65;
}
.romina-intro p {
  margin: 0;
}
.conversation-space .service-history {
  margin: 22px 0;
  gap: 14px;
  min-height: 0;
}
.conversation-space .service-message {
  padding: 16px 20px;
  border: 0;
  border-radius: 4px 16px 16px 16px;
  max-width: 88%;
  background: #fffef9;
}
.conversation-space .service-message.from-client {
  border-radius: 16px 4px 16px 16px;
  background: #e7ecdd;
}
.conversation-space .service-message-text {
  font-size: 0.94rem;
  line-height: 1.65;
  margin-top: 8px;
}
.conversation-space .service-message-meta {
  font-size: 0.72rem;
}
.conversation-space .service-next {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.romina-card {
  max-width: 570px;
  padding: 22px 24px;
  border: 1px solid #d4dac9;
  border-radius: 4px 18px 18px 18px;
  background: #fffef9;
}
.romina-card > .eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #65704f;
  margin: 0 0 10px;
}
.romina-card h2 {
  font-size: 1.27rem;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}
.romina-card > p.muted {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 16px;
}
.romina-card button {
  border-radius: 7px;
  margin: 6px 8px 0 0;
  font-size: 0.84rem;
  min-height: 44px;
}
.romina-card .primary {
  display: block;
  width: 100%;
  text-align: left;
}
.romina-card .asset-thumbnail {
  display: block;
  max-width: 160px;
  height: 160px;
  margin: 12px 0;
}
.romina-card .asset-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.conversation-space .service-composer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #f4f3ed;
  border: 0;
  border-top: 1px solid #d3d8c8;
  padding: 14px 0 12px;
}
.conversation-space .service-composer textarea {
  background: #fffef9;
  border: 1px solid #c9d0be;
  border-radius: 10px;
  min-height: 76px;
  max-height: 180px;
  resize: vertical;
  padding: 14px;
}
.conversation-space .service-compose-footer {
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}
.conversation-space .service-compose-footer p {
  font-size: 0.68rem;
  max-width: 265px;
  line-height: 1.4;
}
.conversation-space .service-compose-footer .primary {
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 7px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.conversation-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
}
.conversation-tools button {
  font-size: 0.72rem;
  min-height: 36px;
  padding: 4px 0;
}
.client-space-menu {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.client-space-menu > button {
  text-align: left;
  border-bottom: 1px solid #d9dccf;
  padding: 16px 0;
  min-height: 48px;
}
.client-space-menu > p.muted {
  font-size: 0.82rem;
  margin-top: 20px;
}
.client-back {
  margin: 4px 0 28px;
}
.client-conversation > footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 0.65rem;
  gap: 20px;
  border: 0;
}
.client-conversation > footer span {
  display: none;
}
@media (max-width: 600px) {
  .client-conversation > header {
    padding: 14px 18px;
  }
  .client-conversation > header .header-label {
    display: none;
  }
  .client-conversation #main {
    padding: 0 18px;
  }
  .conversation-heading {
    padding: 18px 0;
    gap: 8px;
  }
  .conversation-person {
    gap: 10px;
  }
  .conversation-heading .romina-avatar {
    width: 40px;
    height: 40px;
  }
  .conversation-heading button {
    padding: 10px 0 10px 8px;
  }
  .conversation-heading p {
    font-size: 0.68rem;
  }
  .romina-card {
    padding: 18px;
    max-width: 100%;
  }
  .romina-card h2 {
    font-size: 1.18rem;
  }
  .conversation-space .service-message {
    max-width: 95%;
    padding: 14px 16px;
  }
  .conversation-space .service-message-meta {
    font-size: 0.66rem;
  }
  .conversation-space .service-message-text {
    font-size: 0.91rem;
  }
  .conversation-space .service-composer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .conversation-tools {
    gap: 2px 12px;
  }
  .conversation-tools button {
    font-size: 0.68rem;
  }
  .client-conversation > footer {
    padding: 20px 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .romina-card {
    animation: conversation-in 0.2s ease-out;
  }
  @keyframes conversation-in {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
