:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #242b28;
  background: #f5f5f2;
  font-synthesis: none;
  --accent: #27634c;
  --line: #e2e6df;
  --muted: #7c847e;
  --aside: #182a22;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button svg,
a svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.boot {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  gap: 3px;
}
.boot small {
  font-size: 13px;
  margin-left: 24px;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--aside);
  color: #d5dfd7;
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 12px 46px;
}
.brand-mark {
  height: 34px;
  width: 34px;
  border: 1px solid #90b298;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 25px;
  color: #d6e3d4;
}
.brand strong {
  font-size: 21px;
  letter-spacing: 2.4px;
  font-weight: 550;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 3.3px;
  color: #91a697;
  margin-top: 4px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #7f9b88;
  margin: 24px 14px 12px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 13px;
  margin: 3px 0;
  color: #b6c7bc;
}
.nav-link:hover {
  background: #ffffff0a;
}
.nav-link.active {
  background: #dce9d519;
  color: #e8f0e5;
}
.nav-link.active:after {
  content: '';
  width: 6px;
  height: 6px;
  background: #b6d79f;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #ffffff14;
  padding: 23px 12px 0;
  font-size: 12px;
  color: #a4b5a8;
  line-height: 1.8;
}
.local-dot {
  display: inline-block;
  background: #b6d79f;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
}
.main {
  grid-column: 2;
  padding: 0 38px 48px;
  max-width: 1800px;
  width: 100%;
  margin: auto;
}
.topbar {
  height: 87px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 18px;
  margin-bottom: 35px;
}
.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 30px;
  font-size: 10px;
  letter-spacing: 0.4px;
  padding: 7px 11px;
  background: #e7ede4;
  color: #58704c;
}
.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5e8df;
  color: #53624a;
  font-size: 12px;
  font-weight: 600;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  line-height: 1.18;
  font-weight: 550;
  margin: 0 0 10px;
}
h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
  margin: 0 0 15px;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  min-height: 41px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #dce2d9;
  color: #38423c;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.btn:hover {
  background: #f1f4ed;
  border-color: #bcc9b7;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #20543f;
}
.btn.danger {
  color: #a9473c;
  background: #fff6f2;
  border-color: #eed8d1;
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.small {
  padding: 7px 11px;
  min-height: 32px;
  font-size: 11px;
}
.btn.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 32px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  position: relative;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-value {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 14px 0 5px;
}
.stat-note {
  font-size: 10px;
  color: #929a92;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.tabs {
  display: flex;
  gap: 4px;
  background: #e9ece5;
  border-radius: 9px;
  padding: 4px;
  width: fit-content;
}
.tab {
  padding: 8px 13px;
  border-radius: 7px;
  background: transparent;
  font-size: 11px;
  color: #7a8379;
  white-space: nowrap;
}
.tab.active {
  background: #fff;
  color: #334534;
  box-shadow: 0 1px 4px #00000008;
}
.search {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
  max-width: 260px;
  font-size: 12px;
  width: 100%;
}
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.job-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  cursor: pointer;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #283f2710;
}
.job-visual {
  aspect-ratio: 1.65;
  background: #edf0e8;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.job-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.job-visual:has(img):after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, #16241930);
}
.placeholder-ring {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #d4ddce;
  color: #7f9a78;
  background: radial-gradient(circle, #e4ebdf, #f0f3ec);
}
.placeholder-ring svg {
  width: 32px;
  height: 32px;
  stroke-width: 1;
}
.job-tag {
  position: absolute;
  bottom: 13px;
  left: 15px;
  border-radius: 30px;
  background: #fffef5e8;
  padding: 6px 10px;
  font-size: 9px;
  color: #506346;
  z-index: 1;
}
.job-body {
  padding: 19px 20px 17px;
}
.job-body h3 {
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.job-meta {
  font-size: 10px;
  color: #939b91;
  display: flex;
  gap: 8px;
  margin: 11px 0 17px;
  align-items: center;
}
.job-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eef0eb;
  padding-top: 14px;
  font-size: 10px;
  color: var(--muted);
}
.mini-progress {
  display: flex;
  gap: 4px;
}
.mini-progress i {
  width: 15px;
  height: 3px;
  background: #e7ebe3;
  border-radius: 3px;
}
.mini-progress i.done {
  background: #7a9d6c;
}
.new-card {
  border: 1px dashed #c8d3c1;
  background: #f0f3eb;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  color: #65805c;
  gap: 12px;
  padding: 28px;
  cursor: pointer;
}
.new-card svg {
  width: 24px;
  height: 24px;
}
.new-card p {
  font-size: 11px;
  color: #8a9784;
  max-width: 180px;
}
.section-caption {
  font-size: 11px;
  color: var(--muted);
  margin: 30px 0 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.work-header h1 {
  font-size: 23px;
  max-width: 760px;
  line-height: 1.4;
}
.steps {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  overflow-x: auto;
  margin-bottom: 26px;
}
.step {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  padding: 0 0 16px;
  font-size: 11px;
  white-space: nowrap;
  color: #92998f;
  border-bottom: 2px solid transparent;
}
.step span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: 9px;
  background: #e9ede5;
  color: #889581;
}
.step.complete span {
  background: #e0e9d9;
  color: #45653c;
}
.step.active {
  color: #27573e;
  border-bottom-color: #386b4b;
}
.step.active span {
  background: #386b4b;
  color: #fff;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 26px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 25px;
  margin-bottom: 18px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 23px;
  gap: 15px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #65705f;
  margin-bottom: 18px;
}
.form-grid .field {
  margin-bottom: 0;
}
label span.required {
  color: #a5a99f;
}
.field input,
.field select,
.field textarea,
.input {
  border: 1px solid #dce2d7;
  border-radius: 8px;
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
  background: #fafbf8;
  color: #303b2f;
  font-size: 12px;
  line-height: 1.6;
}
.field textarea {
  resize: vertical;
  min-height: 100px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid #95b58a80;
  border-color: #9ab58f;
}
.field small {
  font-size: 10px;
  color: #a0a69b;
}
.check-row {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  padding: 11px 12px;
  border: 1px solid #e2e7dc;
  border-radius: 8px;
  background: #fafbf7;
}
.check-row:has(input:checked) {
  background: #eef4e7;
  border-color: #b8caaa;
}
.check-row input {
  accent-color: #346749;
  width: 14px;
  height: 14px;
}
.chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.tone-option {
  padding: 14px 13px;
  border: 1px solid #dfe5d8;
  border-radius: 10px;
  font-size: 12px;
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tone-option:has(input:checked) {
  border-color: #92af82;
  background: #eef4e7;
}
.tone-option input {
  accent-color: #2f6848;
}
.preview-panel {
  position: sticky;
  top: 24px;
  background: #e9eee3;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #dce4d5;
}
.preview-title {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #7e8c75;
  margin-bottom: 26px;
  letter-spacing: 1px;
}
.circle-preview {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(155deg, #dce7d3, #c4d2bc);
  border: 1px solid #c9d7bf;
  display: grid;
  place-items: center;
  position: relative;
  margin: 4px 6px 23px;
}
.circle-preview img,
.circle-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.circle-preview .empty-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 13px;
  color: #7b9470;
  font-size: 10px;
  line-height: 1.7;
  padding: 25px;
}
.empty-circle svg {
  width: 30px;
  height: 30px;
  stroke-width: 1;
}
.preview-details {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px;
  font-size: 10px;
  line-height: 1.5;
  color: #829077;
}
.preview-details strong {
  font-weight: 500;
  color: #4b6140;
  text-align: right;
  max-width: 150px;
}
.asset-status {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #d0dbc7;
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: #85937c;
}
.asset-status .yes {
  color: #3c6b35;
}
.next-box {
  border: 1px solid #cddcc2;
  background: #f0f5e9;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.next-box strong {
  font-size: 12px;
  font-weight: 550;
}
.next-box p {
  font-size: 10px;
  color: #859278;
  margin: 6px 0 0;
}
.alert {
  padding: 13px 16px;
  background: #fff4e6;
  border: 1px solid #eedfc9;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.7;
  color: #9d7443;
  margin-bottom: 18px;
}
.alert.error {
  background: #fff1ed;
  border-color: #efdad2;
  color: #a45646;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.asset-tile {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf8;
}
.asset-tile img,
.asset-tile video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  margin-bottom: 14px;
}
.asset-tile h3 {
  margin: 0 0 12px;
}
.asset-tile .placeholder-ring {
  width: 100%;
  height: 170px;
  border-radius: 9px;
  margin-bottom: 14px;
}
.audio-player {
  width: 100%;
  height: 42px;
  margin: 14px 0;
}
.hint {
  font-size: 11px;
  line-height: 1.7;
  color: #8c9786;
  margin: 12px 0;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}
.empty {
  padding: 65px 28px;
  text-align: center;
  color: #8a9782;
  font-size: 12px;
  border: 1px dashed #d4ddcd;
  border-radius: 13px;
  background: #f9fbf5;
}
.empty h2 {
  color: #536749;
  margin: 15px 0 9px;
}
.empty svg {
  width: 32px;
  height: 32px;
}
.advanced {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-top: 18px;
  padding: 0 20px;
}
.advanced summary {
  padding: 17px 0;
  font-size: 11px;
  color: #819074;
  cursor: pointer;
}
.advanced pre {
  white-space: pre-wrap;
  font: 11px/1.7 inherit;
  color: #7b8575;
}
.advanced .field {
  margin-top: 14px;
}
.idea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.idea {
  padding: 25px;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.idea h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 16px 0;
}
.idea-script {
  font-size: 14px;
  line-height: 1.8;
  padding: 17px 0;
  color: #424c3b;
  min-height: 150px;
}
.idea-translation {
  font-size: 12px;
  line-height: 1.7;
  color: #89927f;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.idea-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tag {
  padding: 6px 9px;
  border-radius: 6px;
  background: #f0f3eb;
  color: #78886b;
  font-size: 10px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}
.library-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 13px;
  cursor: pointer;
}
.library-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}
.library-card .placeholder-ring {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.library-card h3 {
  font-size: 12px;
}
.library-card small {
  font-size: 10px;
  color: #94a08a;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
td,
th {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #edf0e7;
  white-space: nowrap;
}
th {
  font-size: 10px;
  color: #8f9a85;
  font-weight: 500;
  background: #fbfcf9;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #15241d77;
  display: grid;
  place-items: center;
  padding: 22px;
  z-index: 60;
  backdrop-filter: blur(4px);
}
.modal {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  width: min(600px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 100px #101e2433;
}
.modal.wide {
  width: min(960px, 100%);
}
.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 22px;
}
.modal-top h2 {
  font-size: 21px;
}
.close {
  background: #f0f3ec;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 19px;
  color: #7a8870;
}
.modal-foot {
  margin-top: 25px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.price {
  font-size: 35px;
  letter-spacing: -1.3px;
  font-weight: 500;
  margin: 18px 0 8px;
  color: #285d41;
}
.prompt-text {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.8;
  background: #f5f7f1;
  padding: 18px;
  max-height: 300px;
  overflow: auto;
  border-radius: 10px;
}
.reference-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}
.reference-strip img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: #20392b;
  color: #dce8d5;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-art:before,
.login-art:after {
  content: '';
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  border: 1px solid #98b08326;
  right: -120px;
  top: 18%;
}
.login-art:after {
  width: 390px;
  height: 390px;
  right: -38px;
  top: 29%;
  background: radial-gradient(circle, #8ea77812, transparent);
}
.login-art h1 {
  font-size: 50px;
  line-height: 1.1;
  letter-spacing: -2px;
  max-width: 390px;
  position: relative;
  z-index: 1;
}
.login-art p {
  color: #a7bba1;
  font-size: 13px;
  max-width: 310px;
  margin-top: 25px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.login-form > div {
  width: 350px;
}
.login-form h1 {
  font-size: 29px;
  margin-bottom: 14px;
}
.login-form .field {
  margin-top: 30px;
}
.login-form .note {
  font-size: 10px;
  color: #9aa58e;
  line-height: 1.8;
  margin-top: 26px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  border-radius: 10px;
  background: #243e2c;
  color: white;
  padding: 13px 20px;
  font-size: 12px;
  box-shadow: 0 8px 30px #0002;
  display: none;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #934f42;
}
.mobile-menu {
  display: none;
}
.busy-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #34684b, #a5c991, #34684b);
  z-index: 90;
  animation: busy 1s infinite;
}
.toggle-lang {
  font-size: 10px;
  letter-spacing: 1px;
  background: #eef2e9;
  color: #76876a;
  border-radius: 5px;
  padding: 4px 7px;
}
.file-input {
  font-size: 11px;
  max-width: 100%;
  padding: 10px;
  border: 1px dashed #c5d3b9;
  border-radius: 8px;
  width: 100%;
  background: #f8faf5;
}
.progress-label {
  font-size: 10px;
  color: #92a085;
}
.readonly {
  opacity: 0.8;
}
.skeleton {
  height: 230px;
  background: linear-gradient(90deg, #e7ece0, #f3f6ef, #e7ece0);
  border-radius: 12px;
  animation: busy 1s infinite;
}
.backend-note {
  font-size: 10px;
  color: #819275;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
}
@keyframes busy {
  50% {
    opacity: 0.5;
  }
}
@media (min-width: 1600px) {
  .main {
    padding-left: 50px;
    padding-right: 50px;
  }
  .job-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
@media (max-width: 1180px) {
  .main {
    padding: 0 24px 40px;
  }
  .sidebar {
    width: 200px;
  }
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 275px;
  }
  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps {
    gap: 13px;
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 78px 1fr;
  }
  .sidebar {
    width: 78px;
    padding: 26px 10px;
  }
  .brand {
    margin: 0 auto 40px;
  }
  .brand > div:last-child,
  .nav-label,
  .nav-link span,
  .sidebar-foot {
    display: none;
  }
  .nav-link {
    justify-content: center;
    padding: 14px 0;
  }
  .nav-link.active:after {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: static;
    max-width: 400px;
    width: 100%;
    margin: auto;
  }
  .preview-panel .circle-preview {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }
  .preview-panel {
    grid-row: 1;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-value {
    font-size: 23px;
  }
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login-art {
    padding: 40px;
  }
  .login-art h1 {
    font-size: 39px;
  }
}
@media (max-width: 600px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 100%;
    height: 62px;
    bottom: auto;
    flex-direction: row;
    padding: 8px 13px;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    margin: 0 8px 0 0;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
  }
  .nav-link {
    padding: 11px;
    margin: 0;
    width: 38px;
  }
  .sidebar nav .nav-link:nth-child(5),
  .sidebar nav .nav-link:nth-child(6) {
    display: none;
  }
  .main {
    grid-column: 1;
    padding: 62px 17px 35px;
  }
  .topbar {
    height: 62px;
    margin-bottom: 25px;
  }
  .topbar-right > span:first-child {
    display: none;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading > .actions .btn {
    font-size: 0;
    padding: 11px;
  }
  .page-heading > .actions .btn svg {
    width: 17px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
  }
  .stat {
    padding: 14px 16px;
  }
  .stat-value {
    margin: 8px 0;
  }
  .job-grid,
  .idea-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .job-visual {
    aspect-ratio: 1.7;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search {
    max-width: 100%;
  }
  .tabs {
    max-width: 100%;
    overflow: auto;
  }
  .tabs .tab {
    padding: 7px 10px;
  }
  .panel {
    padding: 19px;
  }
  .work-header h1 {
    font-size: 20px;
  }
  .steps {
    margin-bottom: 20px;
  }
  .preview-panel {
    display: none;
  }
  .next-box {
    align-items: start;
    flex-direction: column;
  }
  .next-box .btn {
    width: 100%;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-form {
    min-height: 100vh;
    padding: 32px;
  }
  .modal {
    padding: 23px;
  }
  .library-grid {
    gap: 10px;
  }
  .library-card {
    padding: 10px;
  }
  .asset-grid {
    gap: 10px;
  }
  .asset-tile {
    padding: 10px;
  }
  .asset-tile .actions {
    flex-direction: column;
  }
  .asset-tile .btn {
    width: 100%;
  }
  .btn {
    white-space: normal;
  }
  .asset-status {
    flex-wrap: wrap;
  }
  .topbar .avatar {
    display: none;
  }
  .page-heading .subtitle {
    max-width: 220px;
  }
  .idea-script {
    min-height: 0;
  }
  .work-header .actions {
    justify-content: flex-start;
  }
  .work-header {
    flex-direction: column;
  }
  .form-grid .wide {
    grid-column: auto;
  }
}

svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.stat-label svg {
  width: 16px;
  height: 16px;
  opacity: 0.65;
}
.preview-title svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: static;
    grid-row: auto;
    max-width: 400px;
    width: 100%;
    margin: auto;
  }
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .preview-panel {
    grid-row: auto;
  }
  .stat-label {
    min-height: 22px;
  }
}
@media (max-width: 600px) {
  .sidebar nav .nav-link:nth-child(5),
  .sidebar nav .nav-link:nth-child(6) {
    display: flex;
  }
  .sidebar nav {
    gap: 0;
  }
  .nav-link {
    width: 35px;
  }
  .sidebar {
    justify-content: flex-start;
    gap: 6px;
  }
}

[hidden] {
  display: none !important;
}
.mobile-nav {
  display: none;
}
.workspace,
.workspace > section,
.form-grid,
.field,
.panel,
.modal {
  min-width: 0;
}
.field select {
  max-width: 100%;
}
.advanced pre,
.prompt-text {
  overflow-wrap: anywhere;
}
.work-header h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 100%;
    height: 58px;
    inset: 0 0 auto;
    padding: 10px 17px;
    flex-direction: row;
    align-items: center;
  }
  .sidebar .brand {
    margin: 0;
    gap: 10px;
  }
  .sidebar .brand > div:last-child {
    display: block;
  }
  .sidebar .brand strong {
    font-size: 15px;
    letter-spacing: 2px;
  }
  .sidebar .brand small,
  .sidebar nav,
  .sidebar .nav-label,
  .sidebar .sidebar-foot {
    display: none;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }
  .main {
    grid-column: 1;
    padding: 58px 15px 32px;
  }
  .topbar {
    height: 64px;
    margin-bottom: 24px;
  }
  .topbar .breadcrumbs {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar-right > span:first-child,
  .topbar .avatar {
    display: none;
  }
  .mobile-nav {
    display: block;
    max-width: 190px;
    width: 55%;
    font: 13px inherit;
    background: #fff;
    border: 1px solid var(--line);
    padding: 11px 12px;
    border-radius: 8px;
    color: #334b35;
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 22px;
  }
  .page-heading > .actions {
    justify-content: flex-start;
    width: 100%;
  }
  .page-heading > .actions .btn {
    font-size: 12px;
    padding: 11px 13px;
    min-height: 44px;
    flex: 1;
  }
  .page-heading .subtitle {
    max-width: none;
    font-size: 12px;
  }
  .work-header h1 {
    font-size: 21px;
    line-height: 1.4;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-label {
    font-size: 11px;
  }
  .stat-value {
    font-size: 24px;
  }
  .stat-note {
    font-size: 10px;
    line-height: 1.5;
  }
  .steps {
    position: sticky;
    top: 58px;
    z-index: 12;
    background: #f5f5f2;
    gap: 14px;
    padding-top: 10px;
  }
  .step {
    min-height: 44px;
    padding-bottom: 12px;
    font-size: 11px;
  }
  .workspace {
    display: block;
  }
  .preview-panel {
    display: none;
  }
  .panel {
    padding: 18px;
    border-radius: 12px;
  }
  .panel-head {
    margin-bottom: 20px;
  }
  .panel-head h2 {
    font-size: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form-grid .wide {
    grid-column: 1;
  }
  .field {
    font-size: 12px;
    gap: 8px;
  }
  .field input,
  .field select,
  .field textarea,
  .input {
    font-size: 16px;
    min-height: 46px;
    padding: 11px 12px;
  }
  .field small {
    font-size: 11px;
    line-height: 1.5;
  }
  .field textarea {
    min-height: 110px;
  }
  .check-row {
    font-size: 13px;
    min-height: 46px;
    padding: 12px;
    line-height: 1.4;
    max-width: 100%;
    flex: 1 1 auto;
  }
  .check-row input {
    width: 17px;
    height: 17px;
    margin: 0;
    flex: none;
  }
  .tone-option {
    flex: 1 1 100%;
    font-size: 14px;
    min-height: 49px;
  }
  .tone-option input {
    width: 17px;
    height: 17px;
  }
  .actions {
    gap: 10px;
  }
  .actions .btn {
    min-height: 44px;
    max-width: 100%;
    font-size: 12px;
  }
  .next-box {
    display: block;
    padding: 17px;
  }
  .next-box .btn {
    width: 100%;
    margin-top: 14px;
    min-height: 46px;
  }
  .next-box p {
    font-size: 11px;
    line-height: 1.6;
  }
  .hint {
    font-size: 11px;
  }
  .toolbar {
    flex-wrap: wrap;
    gap: 14px;
  }
  .tabs {
    max-width: 100%;
    overflow-x: auto;
  }
  .search {
    max-width: 100%;
    font-size: 16px;
  }
  .job-grid,
  .idea-grid {
    grid-template-columns: 1fr;
  }
  .job-body h3 {
    font-size: 15px;
  }
  .job-meta,
  .job-bottom {
    font-size: 11px;
  }
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .library-card h3 {
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    padding: 21px;
  }
  .modal-foot {
    flex-wrap: wrap;
  }
  .modal-foot .btn {
    flex: 1;
    min-height: 44px;
  }
  .asset-grid {
    grid-template-columns: 1fr;
  }
  .asset-tile .actions {
    flex-direction: row;
  }
  .asset-tile .btn {
    width: auto;
    flex: 1;
  }
  .advanced {
    padding: 0 16px;
  }
  .advanced pre {
    font-size: 12px;
    line-height: 1.7;
  }
  .advanced summary {
    font-size: 12px;
  }
  .idea h2 {
    font-size: 19px;
  }
  .idea-script {
    font-size: 15px;
  }
  .idea-translation {
    font-size: 13px;
  }
}

.tablet-save {
  margin-top: 17px;
}
.upload-requirements {
  font-size: 12px;
  color: #728568;
  line-height: 1.8;
  padding-left: 18px;
}
.tablet-screens {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tablet-screen {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafcf7;
}
.tablet-screen img {
  width: 125px;
  max-height: 110px;
  object-fit: contain;
  border: 1px solid #e0e5da;
  border-radius: 7px;
  background: #fff;
}
.tablet-screen-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tablet-screen-info strong {
  font-size: 13px;
}
.tablet-screen-info small {
  font-size: 10px;
  color: #8b9781;
}
.tablet-screen .btn {
  min-width: 40px;
}
.tablet-screen .btn:disabled {
  cursor: default;
  opacity: 0.3;
}
@media (max-width: 700px) {
  .tablet-screen {
    gap: 12px;
    padding: 11px;
    align-items: start;
  }
  .tablet-screen img {
    width: 92px;
    max-height: 100px;
  }
  .tablet-screen-info .actions {
    gap: 6px;
  }
  .tablet-screen-info .btn {
    min-width: 38px;
    padding: 7px;
    font-size: 11px;
  }
  .upload-requirements {
    font-size: 12px;
  }
  .file-input {
    font-size: 12px !important;
    padding: 13px !important;
  }
}

@media (max-width: 700px) {
  .tablet-screen-info .btn {
    min-width: 44px;
    min-height: 44px;
  }
}
.main {
  min-width: 0;
}
.steps {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 700px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .main {
    max-width: 100vw;
  }
  .steps {
    width: 100%;
  }
  .workspace,
  .workspace > section {
    max-width: 100%;
  }
}

/* Editorial calendar: spacious macOS-style month grid, circular video ideas. */
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 22px;
  align-items: start;
}
.calendar-surface {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 5px 24px #21382a04;
}
.calendar-toolbar {
  padding: 23px 22px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.calendar-month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.calendar-month-nav h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 0 10px 0 6px;
  text-transform: capitalize;
}
.btn.icon-btn {
  padding: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-grid;
  place-items: center;
  font-size: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.calendar-modes {
  display: flex;
  background: #f2f3f0;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.calendar-modes .btn {
  font-size: 11px;
  padding: 7px 11px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #747b75;
  border-radius: 6px;
}
.calendar-modes .active {
  background: white;
  color: #283d30;
  box-shadow: 0 1px 4px #152a1715;
}
.calendar-legend {
  display: flex;
  gap: 14px;
  padding: 0 22px 18px;
  flex-wrap: wrap;
}
.calendar-legend-item {
  background: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7b827b;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.calendar-legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stage);
}
.calendar-legend-item.active {
  color: var(--stage);
  border-color: var(--stage);
}
.lifestyle {
  --stage: #5e8c66;
  --stage-bg: #eef4eb;
}
.bridge {
  --stage: #b88c40;
  --stage-bg: #faf4e8;
}
.investment {
  --stage: #6686b8;
  --stage-bg: #edf2fa;
}
.app {
  --stage: #9b79b0;
  --stage-bg: #f4eef8;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  background: #fcfcfa;
}
.calendar-weekdays span {
  padding-left: 12px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #9a9f98;
}
.calendar-weekdays span:nth-last-child(-n + 2) {
  color: #b1b5af;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-day {
  min-height: 142px;
  border-right: 1px solid #eceee8;
  border-bottom: 1px solid #eceee8;
  min-width: 0;
  padding: 8px 5px 6px;
  position: relative;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
  background: #fcfcfa;
}
.calendar-day:nth-child(7n-1) {
  background: #fcfcfa;
}
.calendar-day.selected {
  background: #f1f6ee;
  box-shadow: inset 0 0 0 1px #b1c6a6;
}
.calendar-day.outside {
  background: #f8f9f6;
}
.calendar-day.outside .calendar-day-events {
  opacity: 0.5;
}
.calendar-day-number {
  height: 26px;
  width: 26px;
  background: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  color: #565e55;
  margin-left: 3px;
  margin-bottom: 6px;
}
.calendar-day.today .calendar-day-number {
  background: #c4604b;
  color: #fff;
}
.calendar-day.selected:not(.today) .calendar-day-number {
  background: #dbe8d3;
  color: #2c4b34;
}
.calendar-day.outside .calendar-day-number {
  color: #bcc1b8;
}
.calendar-event {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 4px;
  background: var(--stage-bg);
  border-radius: 9px;
  min-width: 0;
  margin-bottom: 4px;
  color: #344133;
  position: relative;
}
.calendar-event > span:not(.calendar-ring) {
  min-width: 0;
}
.calendar-event small {
  font-size: 9px;
  color: var(--stage);
  display: block;
  margin-bottom: 2px;
}
.calendar-event strong {
  font-size: 10px;
  line-height: 1.35;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.calendar-ring {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--stage), transparent 58%);
  background: var(--stage-bg);
  color: var(--stage);
  overflow: hidden;
}
.calendar-ring img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.calendar-ring svg {
  width: 14px;
  height: 14px;
}
.calendar-event .event-dot {
  width: 4px;
  height: 4px;
  background: var(--stage);
  position: absolute;
  right: 4px;
  top: 5px;
  border-radius: 50%;
  opacity: 0.5;
}
.calendar-event .event-dot.done {
  opacity: 1;
  background: #246645;
}
.btn.calendar-more {
  font-size: 10px;
  background: none;
  padding: 2px 5px;
  color: #7b8579;
  border: 0;
}
.calendar-caption {
  font-size: 10px;
  line-height: 1.6;
  color: #92998f;
  padding: 13px 19px;
  background: #fcfcfa;
}
.calendar-inspector {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.calendar-day-panel,
.calendar-strategy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  min-width: 0;
}
.calendar-inspector-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
}
.calendar-inspector-top small {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #9aa293;
}
.calendar-inspector-top h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
  font-weight: 500;
  margin: 6px 0 0;
}
.calendar-day-empty {
  text-align: center;
  padding: 20px 0;
  color: #83907e;
}
.calendar-day-empty > svg {
  width: 33px;
  height: 33px;
  color: #bac6b2;
}
.calendar-day-empty p {
  font-size: 14px;
  margin: 12px 0 5px;
  color: #64715f;
}
.calendar-day-empty small {
  font-size: 11px;
  line-height: 1.7;
  display: block;
  margin-bottom: 15px;
}
.calendar-day-card {
  border: 1px solid #e8ece3;
  padding: 11px;
  border-radius: 12px;
  margin-top: 10px;
}
.calendar-card-main {
  display: flex;
  gap: 12px;
  align-items: center;
  background: none;
  text-align: left;
  width: 100%;
  padding: 0;
}
.calendar-card-main .calendar-ring {
  width: 45px;
  height: 45px;
}
.calendar-card-main > span:last-child {
  min-width: 0;
}
.calendar-card-main small {
  font-size: 9px;
  color: var(--stage);
  display: block;
  line-height: 1.5;
}
.calendar-card-main strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0;
}
.calendar-card-main em {
  font-size: 9px;
  color: #899581;
  font-style: normal;
}
.calendar-day-card > .btn {
  margin-top: 12px;
  font-size: 10px;
}
.calendar-strategy {
  background: #f1f4ed;
  border-color: #e1e7da;
}
.calendar-strategy .eyebrow {
  font-size: 8px;
}
.calendar-strategy h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin: 12px 0 22px;
}
.warmup-path {
  position: relative;
  display: grid;
  gap: 15px;
}
.warmup-path:before {
  content: '';
  position: absolute;
  left: 12px;
  top: 13px;
  bottom: 13px;
  border-left: 1px solid #d2dcc8;
}
.warmup-path > div {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.warmup-path span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--stage-bg);
  color: var(--stage);
  border: 1px solid #dce4d3;
  font-size: 9px;
}
.warmup-path strong {
  font-size: 11px;
  font-weight: 500;
  color: #4d6145;
}
.calendar-strategy p {
  font-size: 11px;
  line-height: 1.8;
  color: #7c8875;
  margin: 20px 0;
}
.calendar-strategy > small {
  font-size: 10px;
  line-height: 1.8;
  color: #8c9685;
  display: block;
}
.calendar-goal {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #dde5d4;
  padding: 15px 0;
}
.calendar-goal strong {
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
  color: #45603e;
  letter-spacing: -0.7px;
}
.calendar-goal span {
  font-size: 9px;
  line-height: 1.7;
  color: #7f8c77;
}
.calendar-strategy > .btn {
  margin-top: 14px;
  background: #fff9;
  font-size: 10px;
}
.calendar-agenda {
  padding: 0 22px 20px;
}
.calendar-agenda > section {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  gap: 18px;
}
.calendar-agenda h3 {
  font-size: 13px;
  font-weight: 500;
  margin-top: 5px;
}
.calendar-agenda .calendar-event {
  padding: 12px;
  gap: 12px;
}
.calendar-agenda .calendar-event strong {
  font-size: 13px;
}
.calendar-agenda .calendar-event small {
  font-size: 11px;
}
.calendar-agenda .calendar-ring {
  width: 40px;
  height: 40px;
}
.calendar-idea-head {
  padding: 10px 22px 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.calendar-idea-head h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 7px;
}
.calendar-idea-head p {
  font-size: 12px;
  color: #8a9482;
  margin: 0;
}
.calendar-ideas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 22px 22px;
  gap: 16px;
}
.calendar-idea-card {
  border: 1px solid #e5e9df;
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
}
.calendar-idea-title {
  display: flex;
  gap: 13px;
  align-items: center;
}
.calendar-idea-title .calendar-ring {
  width: 56px;
  height: 56px;
}
.calendar-idea-title small {
  font-size: 9px;
  color: var(--stage);
}
.calendar-idea-title h3 {
  font-size: 14px;
  line-height: 1.5;
  margin: 5px 0 0;
  font-weight: 500;
}
.calendar-it {
  font-size: 12px;
  line-height: 1.9;
  color: #58624f;
}
.calendar-idea-card details {
  font-size: 11px;
  line-height: 1.7;
  color: #87917e;
}
.calendar-idea-card details summary {
  cursor: pointer;
}
.calendar-idea-card .actions {
  margin-top: 16px;
}
.calendar-idea-card .btn {
  font-size: 10px;
  padding: 9px 12px;
}
@media (min-width: 1500px) {
  .calendar-day {
    min-height: 165px;
  }
  .calendar-event strong {
    font-size: 11px;
  }
  .calendar-ring {
    width: 33px;
    height: 33px;
  }
}
@media (max-width: 1200px) {
  .calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .calendar-inspector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-day {
    min-height: 135px;
  }
}
@media (max-width: 700px) {
  .calendar-toolbar {
    padding: 18px 12px 12px;
    gap: 14px;
    align-items: stretch;
    flex-direction: column;
  }
  .calendar-month-nav {
    gap: 6px;
  }
  .calendar-month-nav h2 {
    font-size: 20px;
    margin-right: auto;
    margin-left: 3px;
  }
  .calendar-month-nav .btn {
    font-size: 12px;
    padding: 8px;
  }
  .calendar-month-nav .icon-btn {
    font-size: 23px;
    width: 30px;
    min-width: 30px;
  }
  .calendar-modes {
    align-self: stretch;
  }
  .calendar-modes .btn {
    flex: 1;
    font-size: 12px;
    min-height: 36px;
  }
  .calendar-legend {
    padding: 0 12px 12px;
    gap: 7px 12px;
  }
  .calendar-legend-item {
    font-size: 10px;
    min-height: 28px;
  }
  .calendar-weekdays span {
    font-size: 9px;
    padding-left: 7px;
  }
  .calendar-day {
    min-height: 90px;
    padding: 5px 2px;
  }
  .calendar-day-number {
    font-size: 11px;
    height: 25px;
    width: 25px;
    margin: 0 0 5px 2px;
  }
  .calendar-day-events {
    display: flex;
    gap: 3px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .calendar-event {
    width: auto;
    padding: 0;
    margin: 0;
    background: none;
  }
  .calendar-event .calendar-ring {
    width: 26px;
    height: 26px;
  }
  .calendar-event svg {
    width: 12px;
    height: 12px;
  }
  .calendar-day .calendar-event > span:not(.calendar-ring) {
    display: none;
  }
  .calendar-day .event-dot {
    right: -1px;
    top: 0;
  }
  .calendar-day .calendar-more {
    width: 100%;
    font-size: 8px;
    min-height: 15px;
  }
  .calendar-inspector {
    grid-template-columns: minmax(0, 1fr);
  }
  .calendar-day-panel {
    scroll-margin-top: 70px;
  }
  .calendar-day-panel,
  .calendar-strategy {
    padding: 20px;
  }
  .calendar-caption {
    font-size: 10px;
    padding: 12px;
  }
  .calendar-card-main strong {
    font-size: 14px;
  }
  .calendar-card-main small {
    font-size: 11px;
  }
  .calendar-card-main em {
    font-size: 10px;
  }
  .calendar-day-card > .btn {
    font-size: 12px;
  }
  .calendar-ideas {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 12px 12px;
  }
  .calendar-idea-head {
    padding: 8px 12px 18px;
    flex-wrap: wrap;
  }
  .calendar-idea-head p {
    font-size: 11px;
  }
  .calendar-idea-card .btn {
    font-size: 11px;
  }
  .calendar-agenda {
    padding: 0 12px 12px;
  }
  .calendar-agenda > section {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .calendar-agenda .calendar-event {
    background: var(--stage-bg);
    width: 100%;
    margin-top: 8px;
  }
  .calendar-agenda .calendar-event > span:not(.calendar-ring) {
    display: block;
  }
}

.calendar-day-plus {
  position: absolute;
  top: 8px;
  right: 7px;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #dce4d5;
  color: #5c7951;
  opacity: 0;
  transition: opacity 0.15s;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.calendar-day:hover .calendar-day-plus,
.calendar-day:focus-within .calendar-day-plus {
  opacity: 1;
}
.calendar-theme-filter {
  padding: 0 22px 13px;
}
.calendar-theme-filter .field {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}
.calendar-theme-filter .field > span {
  color: #858f7c;
}
.calendar-theme-filter select {
  width: auto;
  max-width: 230px;
  padding: 7px 11px;
  font-size: 11px;
  min-height: 32px;
  border-radius: 7px;
}
.calendar-work-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.calendar-work-card .calendar-ring {
  width: 58px;
  height: 58px;
}
.calendar-work-card small {
  font-size: 10px;
  color: #85917c;
}
.calendar-work-card h3 {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  margin: 6px 0 12px;
}
.composer-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 26px;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.composer-steps > span {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #a1a89a;
}
.composer-steps i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f2f4ee;
  font-size: 10px;
}
.composer-steps .active {
  color: #365d32;
}
.composer-steps .active i {
  background: #376647;
  color: #fff;
}
.composer-steps .complete {
  color: #778e69;
}
.composer-steps .complete i {
  background: #e7efe0;
}
.composer-formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.composer-format {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #fafbf7;
  border: 1px solid #e1e8d9;
  border-radius: 14px;
  padding: 24px 17px;
  color: #3f5439;
  gap: 15px;
}
.composer-format.active {
  border-color: #78996a;
  background: #eef5e8;
  box-shadow: 0 0 0 1px #78996a;
}
.composer-format > svg {
  width: 29px;
  height: 29px;
}
.composer-format strong {
  font-size: 14px;
  font-weight: 500;
}
.composer-format small {
  font-size: 11px;
  line-height: 1.7;
  color: #8a967f;
}
.composer-media > small {
  font-size: 11px;
  line-height: 1.8;
  color: #8b9384;
  display: block;
  margin-top: 7px;
}
.composer-assets {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.composer-assets article {
  display: flex;
  gap: 13px;
  padding: 12px;
  border: 1px solid #e2e7da;
  border-radius: 12px;
}
.composer-assets img,
.composer-assets article > span {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 10px;
  background: #edf2e8;
  display: grid;
  place-items: center;
}
.composer-assets article > span svg {
  width: 26px;
  height: 26px;
}
.composer-assets strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.composer-assets small {
  display: block;
  font-size: 10px;
  color: #8a9680;
  margin: 6px 0;
}
.composer-assets .btn {
  font-size: 10px;
}
.composer-link-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 8px;
  margin: 10px 0;
}
.composer-link-row input {
  min-width: 0;
  padding: 10px;
  font-size: 12px;
}
.composer-preview-label {
  font-size: 10px;
  color: #8e9986;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.telegram-post-preview {
  max-width: 440px;
  border: 1px solid #e1e7db;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  margin: 14px auto 24px;
  box-shadow: 0 8px 24px #203f2410;
}
.telegram-post-preview header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
}
.telegram-post-preview header strong {
  font-size: 13px;
  display: block;
  font-weight: 500;
}
.telegram-post-preview header small {
  font-size: 10px;
  color: #98a18f;
  display: block;
  margin-top: 5px;
}
.telegram-preview-media {
  display: grid;
  gap: 3px;
}
.telegram-preview-media.album {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.telegram-preview-media img,
.telegram-preview-media video {
  max-width: 100%;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #f3f5ef;
  display: block;
}
.telegram-preview-media.album img {
  height: 170px;
  object-fit: cover;
}
.telegram-preview-media audio {
  max-width: 100%;
  width: 100%;
}
.telegram-preview-body {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 4px 16px 16px;
}
.telegram-preview-buttons {
  padding: 0 12px;
  display: grid;
  gap: 5px;
}
.telegram-preview-buttons span {
  padding: 11px;
  background: #edf3e7;
  border-radius: 8px;
  color: #58764a;
  font-size: 12px;
  text-align: center;
}
.telegram-preview-time {
  display: block;
  text-align: right;
  font-size: 9px;
  color: #a1aa98;
  padding: 12px;
}
.telegram-file {
  display: flex;
  gap: 12px;
  padding: 18px;
  font-size: 12px;
  align-items: center;
  overflow-wrap: anywhere;
}
.telegram-file svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.telegram-poll-options {
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 2;
}
.composer-idea-preview {
  background: #f7f9f3;
  border-radius: 14px;
  padding: 22px;
}
.composer-idea-preview h2 {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
}
.composer-idea-preview p {
  font-size: 13px;
  line-height: 1.8;
}
@media (max-width: 700px) {
  .calendar-day-plus {
    opacity: 1;
    right: 3px;
    top: 7px;
    width: 20px;
    height: 20px;
    font-size: 15px;
  }
  .calendar-theme-filter {
    padding: 0 12px 12px;
  }
  .calendar-theme-filter select {
    font-size: 14px;
    min-height: 38px;
    max-width: 210px;
  }
  .calendar-modes .btn {
    font-size: 10px;
    padding: 7px 8px;
    white-space: nowrap;
  }
  .calendar-day .calendar-day-number {
    width: 21px;
    height: 21px;
    font-size: 10px;
    margin-left: 0;
    margin-bottom: 9px;
  }
  .composer-steps {
    gap: 4px;
    margin-bottom: 20px;
  }
  .composer-steps > span {
    font-size: 9px;
    gap: 5px;
    flex-direction: column;
    align-items: center;
  }
  .composer-steps i {
    width: 24px;
    height: 24px;
  }
  .composer-formats {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .composer-format {
    display: grid;
    grid-template-columns: 30px 1fr;
    padding: 17px;
    gap: 8px 13px;
  }
  .composer-format small {
    grid-column: 2;
  }
  .composer-format > svg {
    grid-row: span 2;
  }
  .composer-link-row {
    grid-template-columns: 1fr auto;
  }
  .composer-link-row input:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .composer-link-row .btn {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .telegram-preview-body {
    font-size: 14px;
  }
  .calendar-work-card h3 {
    font-size: 14px;
  }
}
@media (hover: none) {
  .calendar-day-plus {
    opacity: 1;
  }
}

.timeline-scroll {
  max-height: 75vh;
  overflow: auto;
  position: relative;
  border-top: 1px solid #e7ecf2;
  background: #fff;
  overscroll-behavior: contain;
}
.timeline-row {
  display: grid;
  grid-template-columns: 52px repeat(7, minmax(0, 1fr));
  min-height: 44px;
}
.timeline-row.single {
  grid-template-columns: 60px minmax(0, 1fr);
}
.timeline-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  min-height: 71px;
  border-bottom: 1px solid #e7ecf2;
}
.timeline-header > button {
  background: #fff;
  border-left: 1px solid #edf0f5;
  color: #7c8caa;
  padding: 13px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.timeline-header > button small {
  font-size: 10px;
  text-transform: uppercase;
}
.timeline-header > button strong {
  font-size: 15px;
  font-weight: 500;
}
.timeline-header > button.today strong {
  background: #4263dc;
  color: #fff;
  min-width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.timeline-hour {
  font-size: 10px;
  color: #a5b1c5;
  text-align: center;
  padding: 9px 0;
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 0;
}
.timeline-hour svg {
  width: 18px;
  height: 18px;
  margin: 15px auto;
  color: #c1cada;
}
.timeline-cell {
  min-height: 44px;
  border-left: 1px solid #edf0f5;
  border-bottom: 1px solid #f2f4f7;
  position: relative;
  padding: 3px;
  min-width: 0;
}
.timeline-row.hour-start .timeline-cell {
  border-top: 1px solid #edf0f5;
}
.timeline-cell.selected {
  background: #f9fbff;
}
.timeline-plus {
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 2;
  opacity: 0;
  width: 23px;
  height: 23px;
  background: #f3f6ff;
  border: 1px solid #dce4f5;
  border-radius: 7px;
  color: #6d83bb;
  font-size: 17px;
}
.timeline-cell:hover .timeline-plus,
.timeline-cell:focus-within .timeline-plus {
  opacity: 1;
}
.timeline-event {
  position: relative;
  width: 100%;
  text-align: left;
  border: 1px solid var(--stage);
  border-left: 3px solid var(--stage);
  background: var(--stage-bg);
  border-radius: 7px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #556883;
  margin-bottom: 3px;
}
.timeline-event-time {
  font-size: 8px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--stage);
}
.timeline-event strong {
  font-weight: 500;
  font-size: 10px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.timeline-event-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}
.timeline-event-foot .calendar-ring {
  height: 22px;
  width: 22px;
}
.timeline-event-foot .calendar-ring svg {
  width: 11px;
  height: 11px;
}
.timeline-event-foot small {
  font-size: 8px;
  color: var(--stage);
}
.timeline-event[data-category='sport'] {
  --stage: #45a15c;
  --stage-bg: #f0f9f1;
}
.timeline-event[data-category='family'] {
  --stage: #ed8d56;
  --stage-bg: #fff7f1;
}
.timeline-event[data-category='lifestyle'] {
  --stage: #5c86db;
  --stage-bg: #f3f7ff;
}
.timeline-event[data-category='money'] {
  --stage: #d4a23a;
  --stage-bg: #fffaf0;
}
.timeline-event[data-category='investments'] {
  --stage: #9770df;
  --stage-bg: #f8f4ff;
}
.timeline-event[data-category='app'] {
  --stage: #d875a7;
  --stage-bg: #fdf3f8;
}
.timeline-event[data-category='travel'] {
  --stage: #46afb6;
  --stage-bg: #f0fbfc;
}
.timeline-event[data-category='food'] {
  --stage: #c98b55;
  --stage-bg: #fff8f1;
}
.timeline-row.single .timeline-event {
  padding: 13px 15px;
  gap: 9px;
}
.timeline-row.single .timeline-event strong {
  font-size: 13px;
}
.timeline-row.single .timeline-event-time,
.timeline-row.single .timeline-event-foot small {
  font-size: 11px;
}
.timeline-mobile-note {
  display: none;
}
.calendar-modes {
  flex-wrap: wrap;
}
.calendar-month-nav h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
}
.profile-rail {
  position: fixed;
  right: 13px;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  z-index: 15;
}
.profile-rail button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #d4dfd0;
  padding: 2px;
  background: #fff;
  box-shadow: 0 3px 10px #233f3210;
  color: #7f9576;
  display: grid;
  place-items: center;
}
.profile-rail img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-rail .rail-add {
  font-size: 23px;
  border: 1px dashed #c6d0bf;
  box-shadow: none;
  background: #f7faf4;
}
@media (min-width: 1350px) {
  .main {
    padding-right: 78px;
  }
  .profile-rail {
    right: 17px;
  }
}
@media (max-width: 1349px) {
  .profile-rail {
    display: none;
  }
}
@media (max-width: 700px) {
  .timeline-scroll.week-view .timeline-row {
    min-width: 840px;
    grid-template-columns: 45px repeat(7, minmax(0, 1fr));
  }
  .timeline-scroll {
    max-height: 67vh;
    scrollbar-width: thin;
  }
  .timeline-row.single {
    grid-template-columns: 43px minmax(0, 1fr);
  }
  .timeline-cell {
    min-height: 39px;
  }
  .timeline-header {
    min-height: 64px;
  }
  .timeline-header > button small {
    font-size: 10px;
  }
  .timeline-header > button strong {
    font-size: 15px;
  }
  .timeline-plus {
    opacity: 1;
    width: 19px;
    height: 19px;
    right: 3px;
    top: 3px;
    font-size: 15px;
  }
  .timeline-cell:has(.timeline-event) .timeline-plus {
    opacity: 0;
  }
  .timeline-row.single .timeline-event strong {
    font-size: 13px;
  }
  .timeline-mobile-note {
    display: block;
    padding: 10px 12px;
    font-size: 10px;
    line-height: 1.7;
    color: #9aa6b9;
  }
  .calendar-modes .btn {
    font-size: 9px;
  }
}
@media (hover: none) {
  .timeline-plus {
    opacity: 1;
  }
  .timeline-cell:has(.timeline-event) .timeline-plus {
    opacity: 0;
  }
}

/* Light editorial workspace inspired by the supplied calendar reference. */
body {
  background: #f3f5f9;
}
.sidebar {
  background: #f8f9fc;
  color: #6d7e9a;
  border-right: 1px solid #e6eaf2;
}
.brand strong {
  color: #4e6385;
}
.brand small {
  color: #a7b3c6;
}
.brand-mark {
  color: #59718e;
  border-color: #d2dce8;
}
.nav-label {
  color: #aeb9ca;
}
.nav-link {
  color: #8291aa;
}
.nav-link:hover {
  background: #fff;
}
.nav-link.active {
  color: #5575bf;
  background: #fff;
  box-shadow: 0 5px 20px #6c7f9b0a;
}
.nav-link.active:after {
  background: #728ed3;
}
.sidebar-foot {
  color: #9eabc1;
  border-color: #e6eaf1;
}
.calendar-surface {
  border-color: #e8edf4;
  box-shadow: 0 10px 35px #49638704;
}
.calendar-day-panel {
  border-color: #e8edf4;
}
.calendar-toolbar .calendar-modes {
  background: #f5f7fa;
}
.calendar-modes .active {
  color: #617398;
}
.calendar-strategy {
  background: #f7f9fc;
  border-color: #e7edf4;
}
.calendar-strategy h3 {
  color: #5b7094;
}
.calendar-strategy .eyebrow {
  color: #8a9cb8;
}
.calendar-month-nav h2 {
  color: #5b6d8e;
  font-size: 18px;
}

.timeline-layout {
  grid-template-columns: minmax(0, 1fr);
}
.timeline-layout .calendar-inspector {
  display: none;
}
.calendar-month-nav h2 {
  text-transform: none;
}
.calendar-theme-filter label.field {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: nowrap;
  width: auto;
  max-width: 370px;
  margin: 0;
}
.calendar-theme-filter label.field > span {
  flex: none;
}
.calendar-theme-filter select {
  flex: 1;
  min-width: 0;
}

/* Final reference layout: pale frame, profile and tiled left navigation. */
:root {
  --accent: #526cf1;
  --line: #edf0f5;
  --muted: #94a2bc;
  --aside: #f7f8fb;
  color: #586e91;
  background: #e3e6ed;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body {
  background: #e3e6ed;
  padding: 16px 22px;
  color: #586e91;
}
.studio-frame {
  background: #f7f8fb;
  border-radius: 22px;
  min-height: calc(100vh - 32px);
  overflow: clip;
}
.studio-frame .shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 32px);
  position: relative;
  background: #f7f8fb;
}
.studio-frame .sidebar {
  position: sticky;
  inset: auto;
  top: 0;
  height: calc(100vh - 32px);
  width: auto;
  background: transparent;
  border: 0;
  padding: 40px 28px 25px;
  display: flex;
  flex-direction: column;
  color: #9aabc5;
  z-index: 10;
}
.studio-wordmark {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0 38px;
  font-size: 15px;
  color: #526687;
}
.studio-wordmark svg {
  color: #bbc6d7;
  width: 21px;
  height: 21px;
}
.studio-wordmark strong {
  font-weight: 650;
}
.studio-profile {
  text-align: center;
  padding: 12px 0 38px;
}
.studio-profile-photo {
  position: relative;
  padding: 7px;
  border: 2px solid #5775ff;
  border-radius: 50%;
  background: #f7f8fb;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  margin: auto;
  box-shadow: 0 12px 30px #6681b409;
}
.studio-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.studio-profile-photo > span {
  background: #e9edf6;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 44px;
  color: #8499b8;
}
.studio-profile h3 {
  font-size: 16px;
  font-weight: 600;
  color: #7a8fae;
  margin: 24px 0 12px;
}
.studio-profile small {
  font-size: 11px;
  color: #aab7cd;
}
.studio-nav-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #e7ecf4;
  border-radius: 20px;
  margin-top: 18px;
  overflow: visible;
}
.studio-nav-tiles .nav-link {
  margin: 0;
  border: 0;
  border-right: 1px solid #edf0f5;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 17px;
  min-height: 114px;
  padding: 18px 5px;
  border-radius: 0;
  font-size: 10px;
  background: transparent;
  color: #a7b5cd;
  text-align: center;
  white-space: normal;
}
.studio-nav-tiles .nav-link:nth-child(2n) {
  border-right: 0;
}
.studio-nav-tiles .nav-link:nth-child(n + 3) {
  border-bottom: 0;
}
.studio-nav-tiles .nav-link svg {
  width: 22px;
  height: 22px;
  color: #bfcbdd;
}
.studio-nav-tiles .nav-link.active {
  background: #fff;
  color: #778faf;
  border-radius: 20px;
  box-shadow: 0 14px 36px #768eb815;
  transform: scale(1.05);
  position: relative;
  z-index: 2;
}
.studio-nav-tiles .nav-link.active svg {
  color: #496bff;
}
.studio-nav-tiles .nav-link.active:after {
  width: 6px;
  height: 6px;
  position: absolute;
  right: 13px;
  top: 14px;
  background: #ff6b47;
  margin: 0;
}
.studio-nav-tiles .nav-link:hover {
  background: #fff9;
}
.studio-frame .sidebar-foot {
  margin-top: auto;
  border: 0;
  padding: 35px 5px 0;
  color: #b4c1d4;
  font-size: 10px;
}
.studio-frame .main {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 42px 88px 35px 16px;
}
.studio-frame .main.calendar-screen {
  padding-top: 42px;
}
.calendar-screen > .page-heading {
  display: none;
}
.studio-mobile-header {
  display: none;
}
.calendar-surface {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 12px 40px #6b7d9903;
}
.calendar-toolbar {
  min-height: 108px;
  padding: 24px 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}
.calendar-month-nav {
  gap: 15px;
  display: flex;
  flex-wrap: nowrap;
}
.calendar-month-nav h2 {
  font-size: 13px;
  color: #8192ae;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
  white-space: nowrap;
}
.calendar-month-nav .btn.icon-btn {
  border: 1px solid #f0f2f7;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  box-shadow: 0 3px 8px #8394af09;
  color: #bdc8dc;
  font-size: 22px;
}
.calendar-month-nav .btn[data-act='cal-today'] {
  order: -1;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #eff2f6;
  box-shadow: 0 3px 7px #8296b510;
  color: #8394ae;
  font-size: 11px;
  padding: 12px 18px;
  margin-right: 10px;
}
.calendar-modes {
  background: #fff !important;
  border: 1px solid #edf0f6;
  border-radius: 22px;
  padding: 0;
  gap: 0;
  flex-wrap: nowrap;
  align-self: center;
  justify-self: end;
  box-shadow: 0 2px 5px #7f90ac08;
  overflow: hidden;
}
.calendar-modes .btn {
  border: 0;
  border-right: 1px solid #f0f2f6;
  font-size: 10px;
  font-weight: 600;
  min-height: 39px;
  padding: 11px 13px;
  color: #afbbce;
  border-radius: 0;
  white-space: nowrap;
}
.calendar-modes .btn:last-child {
  border-right: 0;
}
.calendar-modes .btn.active {
  box-shadow: none;
  color: #7186a5;
  background: #fcfdff;
}
.calendar-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 2;
}
.calendar-tools .btn {
  font-size: 10px;
  border-color: #edf0f5;
  color: #9aaac3;
  background: #fff;
  padding: 6px 10px;
  min-height: 26px;
  border-radius: 20px;
}
.calendar-theme-filter {
  margin-top: -41px;
  padding: 0 25px 15px;
  max-width: 360px;
}
.calendar-theme-filter label.field {
  max-width: 310px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 11px;
  font-size: 10px;
}
.calendar-theme-filter label.field > span {
  margin: 0;
  font-size: 10px;
  color: #acb8ca;
}
.calendar-theme-filter select {
  max-width: 190px;
  font-size: 10px;
  border: 1px solid #f1f3f7;
  background: #fff;
  color: #96a6bf;
  min-height: 28px;
  padding: 6px 9px;
}
.calendar-legend {
  padding: 0 25px 15px;
  gap: 16px;
}
.calendar-legend-item {
  font-size: 9px;
  color: #a6b3c8;
}
.calendar-caption {
  font-size: 9px;
  color: #b5c0d2;
  background: #fff;
  border-top: 1px solid #f1f3f7;
}
.timeline-scroll {
  border-color: #eef1f6;
  max-height: calc(100vh - 225px);
}
.timeline-header {
  min-height: 77px;
}
.timeline-header > button {
  color: #8094b3;
  border-color: #f0f2f7;
}
.timeline-header > button small {
  font-size: 10px;
  text-transform: capitalize;
}
.timeline-header > button strong {
  font-size: 11px;
  font-weight: 600;
}
.timeline-hour {
  color: #adbcd2;
  font-size: 10px;
}
.timeline-cell {
  border-color: #f2f4f8;
}
.timeline-row.hour-start .timeline-cell {
  border-top-color: #edf1f7;
}
.timeline-cell.selected {
  background: #fff;
}
.timeline-event {
  border-width: 2px;
  border-radius: 5px;
  padding: 9px 9px;
  min-height: 88px;
  margin: 1px 0;
  gap: 10px;
}
.timeline-event-time {
  background: var(--stage);
  color: #fff;
  font-size: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  width: fit-content;
}
.timeline-event strong {
  font-size: 10px;
  color: #61789b;
  font-weight: 600;
  line-height: 1.8;
}
.timeline-event-foot .calendar-ring {
  border: 0;
  border-radius: 6px;
  width: 23px;
  height: 23px;
  background: #fff8;
}
.timeline-event-foot .calendar-ring img {
  border-radius: 6px;
}
.timeline-event-foot small {
  font-size: 8px;
  color: #95a7bc;
}
.timeline-event[data-category='sport'] {
  --stage: #36cc49;
  --stage-bg: #f6fcf6;
}
.timeline-event[data-category='family'] {
  --stage: #ff7349;
  --stage-bg: #fff8f5;
}
.timeline-event[data-category='lifestyle'] {
  --stage: #39bdf4;
  --stage-bg: #f4fbff;
}
.timeline-event[data-category='money'] {
  --stage: #ffcd35;
  --stage-bg: #fffdf3;
}
.timeline-event[data-category='investments'] {
  --stage: #974dff;
  --stage-bg: #faf6ff;
}
.timeline-event[data-category='app'] {
  --stage: #f13d91;
  --stage-bg: #fff6fa;
}
.timeline-event[data-category='travel'] {
  --stage: #2adfc7;
  --stage-bg: #f5fffd;
}
.timeline-event[data-category='food'] {
  --stage: #c9833c;
  --stage-bg: #fffcf7;
}
.profile-rail {
  position: fixed;
  right: 40px;
  top: 350px;
  display: flex !important;
  gap: 25px;
}
.profile-rail button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: #fff;
  font-size: 16px;
  color: #a0afc6;
}
.profile-rail .rail-add {
  border: 1px solid #e2e8f3;
  background: #fff;
  color: #b5c2d6;
}
.studio-floating-create {
  position: fixed;
  right: 35px;
  top: 180px;
  width: 55px;
  height: 145px;
  border-radius: 30px;
  background: #9138ff;
  color: #fff;
  box-shadow: 0 12px 25px #8438ee1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  z-index: 14;
}
.studio-floating-create svg {
  width: 23px;
  height: 23px;
}
.studio-floating-create span {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 600;
}
.btn.primary {
  background: #657ff4;
  border-color: #657ff4;
  color: #fff;
}
.modal {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 30px 85px #667da22b;
  color: #7890b0;
}
.modal h2 {
  color: #7188aa;
  font-size: 19px;
  font-weight: 600;
}
.modal .form-grid {
  gap: 18px;
}
.modal input,
.modal textarea,
.modal select {
  border-color: #edf1f7;
  color: #6f87a8;
  background: #fff;
}
.modal input::placeholder,
.modal textarea::placeholder {
  color: #bcc6d6;
}
.modal .field > span {
  color: #93a4bd;
  font-size: 11px;
}
.modal-backdrop:has(.composer-steps) {
  background: #78848c55;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal:has(.composer-steps) {
  max-width: 580px;
  width: 100%;
  max-height: min(88vh, calc(100dvh - 48px));
  overscroll-behavior: contain;
  padding: 27px 30px;
}
.composer-steps {
  border-color: #f0f3f8;
  gap: 6px;
  margin-bottom: 22px;
}
.composer-steps > span {
  font-size: 9px;
  color: #bdc6d5;
}
.composer-steps i {
  background: #f4f6fb;
  color: #aebbd0;
}
.composer-steps .active {
  color: #8095b4;
}
.composer-steps .active i {
  background: #8b70fa;
}
.composer-steps .complete i {
  background: #edf0ff;
  color: #8f9ed6;
}
.composer-formats {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid #f0f3f8;
  border-radius: 15px;
  overflow: hidden;
}
.composer-format {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f1f3f8;
  border-radius: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px 14px;
  color: #8da2c0;
}
.composer-format:last-child {
  border-bottom: 0;
}
.composer-format > svg {
  grid-row: span 2;
  color: #c1ccdc;
  width: 25px;
  height: 25px;
  align-self: center;
}
.composer-format strong {
  font-size: 12px;
  color: #8196b6;
}
.composer-format small {
  grid-column: 2;
  font-size: 10px;
  color: #b6c1d2;
}
.composer-format.active {
  background: #fbfcff;
  box-shadow: inset 3px 0 #9a7aff;
}
.emoji-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: -5px;
}
.emoji-tools > small {
  font-size: 9px;
  line-height: 1.7;
  color: #b1bfd3;
}
.emoji-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  background: #fff;
  border: 1px solid #edf1f8;
  padding: 10px;
  border-radius: 14px;
  width: 100%;
}
.emoji-picker .emoji-choice {
  font-size: 21px;
  padding: 8px;
  border: 0;
  background: #fff;
}
@media (min-width: 1650px) {
  .studio-frame .shell {
    grid-template-columns: 335px minmax(0, 1fr);
  }
  .studio-frame .sidebar {
    padding-left: 45px;
    padding-right: 45px;
  }
  .studio-frame .main {
    padding: 48px 106px 38px 20px;
  }
  .studio-profile {
    padding-top: 34px;
    padding-bottom: 45px;
  }
  .studio-profile-photo {
    width: 145px;
    height: 145px;
  }
  .studio-nav-tiles {
    margin-top: 35px;
  }
  .studio-nav-tiles .nav-link {
    min-height: 130px;
  }
  .calendar-toolbar {
    padding: 28px 30px;
    min-height: 115px;
  }
}
@media (max-width: 1150px) and (min-width: 701px) {
  body {
    padding: 12px;
  }
  .studio-frame .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .studio-frame .sidebar {
    padding: 30px 16px 20px;
  }
  .studio-profile-photo {
    width: 102px;
    height: 102px;
  }
  .studio-profile {
    padding-bottom: 20px;
  }
  .studio-wordmark {
    font-size: 13px;
    padding-bottom: 18px;
  }
  .studio-nav-tiles .nav-link {
    min-height: 95px;
    font-size: 9px;
  }
  .studio-frame .main {
    padding: 28px 65px 28px 5px;
  }
  .profile-rail {
    right: 21px;
  }
  .profile-rail button {
    width: 33px;
    height: 33px;
  }
  .studio-floating-create {
    right: 17px;
    width: 42px;
    height: 127px;
  }
  .calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
  }
  .calendar-modes {
    margin-left: auto;
  }
  .calendar-modes .btn {
    font-size: 9px;
    padding: 9px;
  }
  .calendar-tools {
    margin-left: auto;
  }
  .calendar-theme-filter {
    margin-top: 0;
  }
}
@media (max-width: 700px) {
  body {
    padding: 10px;
    background: #e4e7ed;
  }
  .studio-frame {
    border-radius: 20px;
    min-height: calc(100vh - 20px);
  }
  .studio-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 17px 23px;
    border-bottom: 1px solid #eff2f7;
    color: #5f7698;
  }
  .studio-mobile-header > a {
    font-weight: 650;
    font-size: 16px;
  }
  .studio-menu-button,
  .studio-mobile-profile {
    width: 43px;
    height: 43px;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 3px 8px #8a9bb509;
    color: #c1ccdc;
    padding: 0;
    font-size: 19px;
  }
  .studio-frame .shell {
    display: block;
    min-height: calc(100vh - 110px);
    padding: 0;
  }
  .studio-frame .sidebar {
    display: none;
  }
  .studio-menu-open .studio-frame .sidebar {
    display: flex;
    position: fixed;
    top: 85px;
    bottom: 12px;
    left: 18px;
    width: 235px;
    height: auto;
    z-index: 110;
    background: #fff;
    border: 1px solid #eef1f7;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 60px #627c9b33;
    overflow: auto;
  }
  .studio-menu-open .studio-wordmark {
    display: flex;
  }
  .studio-menu-open .studio-profile {
    padding: 0 0 10px;
  }
  .studio-menu-open .studio-profile-photo {
    width: 85px;
    height: 85px;
  }
  .studio-menu-open .studio-profile h3 {
    margin: 10px 0;
  }
  .studio-menu-open .studio-nav-tiles .nav-link {
    min-height: 80px;
    gap: 10px;
    font-size: 10px;
  }
  .studio-menu-open .nav-link span {
    display: block;
  }
  .studio-frame .main,
  .studio-frame .main.calendar-screen {
    padding: 17px 12px 24px;
    margin: 0;
    max-width: none;
    width: 100%;
  }
  .profile-rail,
  .studio-floating-create {
    display: none !important;
  }
  .calendar-toolbar {
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: 0;
  }
  .calendar-month-nav {
    justify-content: space-between;
    gap: 6px;
  }
  .calendar-month-nav h2 {
    font-size: 10px;
    white-space: nowrap;
  }
  .calendar-month-nav .btn.icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .calendar-month-nav .btn[data-act='cal-today'] {
    font-size: 10px;
    margin: 0;
    padding: 10px 12px;
  }
  .calendar-modes {
    width: 100%;
    justify-self: auto;
    align-self: stretch;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .calendar-modes .btn {
    font-size: 9px;
    padding: 9px 10px;
    min-height: 34px;
    flex: 1;
  }
  .calendar-tools {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
  }
  .calendar-theme-filter {
    margin-top: 0;
    padding: 0 12px 13px;
  }
  .calendar-theme-filter select {
    font-size: 12px;
    min-height: 32px;
    max-width: none;
  }
  .calendar-legend {
    padding: 0 12px 13px;
    gap: 8px 12px;
  }
  .calendar-legend-item {
    font-size: 8px;
  }
  .timeline-scroll {
    max-height: 70vh;
  }
  .timeline-row.single .timeline-event {
    min-height: 84px;
    padding: 12px 14px;
  }
  .timeline-event-time {
    font-size: 9px;
  }
  .timeline-header {
    min-height: 60px;
  }
  .timeline-header > button small,
  .timeline-header > button strong {
    font-size: 11px;
  }
  .calendar-caption {
    padding: 12px;
    font-size: 8px;
  }
  .modal-backdrop:has(.composer-steps) {
    padding: 10px;
    background: #78848c55;
    place-items: center;
  }
  .modal:has(.composer-steps) {
    max-width: none;
    width: 100%;
    max-height: calc(100dvh - 20px);
    padding: 21px 18px;
    border-radius: 20px;
  }
  .modal .form-grid {
    grid-template-columns: 1fr;
  }
  .modal input,
  .modal textarea,
  .modal select {
    font-size: 16px;
  }
  .composer-steps > span {
    font-size: 9px;
  }
  .emoji-picker {
    grid-template-columns: repeat(7, 1fr);
  }
  .emoji-picker .emoji-choice {
    padding: 6px;
    font-size: 20px;
  }
}

.spinner {
  display: inline-block;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid #e5eaf7;
  border-top-color: #8d69f6;
  animation: studio-spin 0.8s linear infinite;
  flex: none;
  vertical-align: middle;
}
@keyframes studio-spin {
  to {
    transform: rotate(360deg);
  }
}
.operation-loader {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: calc(100vw - 28px);
  min-width: 290px;
  padding: 17px 23px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 1px solid #edf0f9;
  border-radius: 17px;
  box-shadow: 0 10px 55px #5b71a625;
  color: #8297b8;
  pointer-events: none;
}
.operation-loader strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.operation-loader small {
  display: block;
  color: #b1bfd1;
  font-size: 10px;
  margin-top: 5px;
}
.generation-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 20px;
  border: 1px solid #e9e6f9;
  background: #fcfbff;
  border-radius: 17px;
  padding: 14px 20px;
  margin-bottom: 20px;
}
.generation-progress > div {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.generation-progress section {
  min-width: 0;
}
.generation-progress strong {
  display: block;
  color: #8393b2;
  font-size: 13px;
  font-weight: 600;
}
.generation-progress small {
  display: block;
  color: #adb8cb;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }
}
@media (max-width: 700px) {
  .operation-loader {
    bottom: 15px;
    padding: 15px 18px;
  }
  .generation-progress {
    padding: 12px 14px;
    gap: 8px 12px;
  }
  .generation-progress strong {
    font-size: 12px;
  }
  .generation-progress small {
    font-size: 10px;
  }
}

.studio-profile-photo {
  overflow: hidden;
}
.studio-profile-photo > img,
.studio-profile-photo > span {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  min-height: 0;
  min-width: 0;
}
@media (max-width: 700px) {
  .timeline-cell:has(.timeline-event) .timeline-plus {
    opacity: 1 !important;
    background: #ffffffdd;
  }
}

.calendar-modes {
  scrollbar-width: none;
}
.calendar-modes::-webkit-scrollbar {
  display: none;
}
@media (max-width: 700px) {
  .timeline-scroll.day-view {
    max-height: none;
    overflow: visible;
  }
  .timeline-scroll.day-view .timeline-header {
    position: static;
  }
}

.modal:has(.composer-steps) .modal-top {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 30;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f8;
}
@media (max-width: 700px) {
  .modal:has(.composer-steps) .modal-top .close {
    width: 40px;
    height: 40px;
    flex: none;
  }
  .modal:has(.composer-steps) .modal-top h2 {
    font-size: 17px;
  }
}

.sport {
  --stage: #36cc49;
  --stage-bg: #f6fcf6;
}
.family {
  --stage: #ff7349;
  --stage-bg: #fff8f5;
}
.money {
  --stage: #ffcd35;
  --stage-bg: #fffdf3;
}
.investments {
  --stage: #974dff;
  --stage-bg: #faf6ff;
}
.travel {
  --stage: #2adfc7;
  --stage-bg: #f5fffd;
}
.food {
  --stage: #c9833c;
  --stage-bg: #fffcf7;
}

/* Calendar stays mounted while a circle is edited. Secondary dialogs use modal-root. */
body.workspace-open {
  overflow: hidden;
}
.job-workspace-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #78848c66;
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.job-workspace {
  width: min(1320px, 100%);
  max-height: 92dvh;
  overflow: auto;
  background: #f7f8fc;
  border: 1px solid #e7ebf3;
  border-radius: 26px;
  box-shadow: 0 24px 90px #57627730;
}
.job-workspace-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f7;
}
.job-workspace-top > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8095b4;
}
.job-workspace-top svg {
  width: 22px;
  height: 22px;
}
#job-workspace-content {
  padding: 24px;
}
.job-workspace .workspace {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.job-workspace .work-header h1 {
  font-size: 25px;
}
.job-workspace .preview-panel {
  position: static;
  align-self: start;
}
.preview-value {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.preview-value strong {
  overflow-wrap: anywhere;
}
.btn.preview-edit {
  padding: 4px;
  min-height: 28px;
  min-width: 28px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #849b80;
  flex: none;
}
.preview-edit svg {
  width: 16px;
  height: 16px;
}
.preview-player {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  margin: 0 0 22px;
  background: #ffffffaa;
  border: 1px solid #dce4d7;
  border-radius: 14px;
}
.preview-player button {
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 0;
  border-radius: 50%;
  color: #627c58;
  background: transparent;
  cursor: pointer;
}
.preview-player svg {
  width: 20px;
  height: 20px;
}
.preview-player output {
  text-align: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #718567;
}
.preview-player input {
  min-width: 0;
  width: 100%;
  padding: 0;
  accent-color: #8ba47a;
}
#preview-seek {
  grid-row: 2;
  grid-column: 1/3;
}
#preview-volume {
  grid-row: 2;
  grid-column: 3;
}
.preview-voice {
  margin-top: 15px;
  font-size: 11px;
  color: #788c6f;
}
.calendar-plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid #f0f3f8;
  color: #91a3bd;
  font-size: 12px;
}
.calendar-plan-summary .btn {
  font-size: 11px;
}
.sidebar-logout {
  display: block;
  width: fit-content;
  margin-top: 14px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
}
.sidebar-logout:hover {
  text-decoration: underline;
}
.studio-nav-tiles .nav-link:last-child {
  grid-column: 1 / -1;
  min-height: 56px;
  padding: 16px 20px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  border: 0;
  border-top: 1px solid #edf0f5;
  border-radius: 0 0 19px 19px;
}
.studio-nav-tiles .nav-link:last-child svg {
  width: 18px;
  height: 18px;
}
.studio-nav-tiles .nav-link:last-child.active {
  transform: none;
  box-shadow: none;
}
.studio-nav-tiles .nav-link:last-child.active:after {
  top: 50%;
  transform: translateY(-50%);
}
.studio-profile-photo {
  border: 1px solid #d7dbe3;
  box-shadow: none;
  background: transparent;
}
.studio-profile-photo::before,
.studio-profile-photo::after {
  display: none;
}
.profile-rail button {
  aspect-ratio: 1;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  box-sizing: border-box;
}
.profile-rail img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}
.profile-avatar-upload {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}
.profile-avatar-upload > img,
.profile-avatar-upload > span {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f3f8;
  flex: none;
  display: grid;
  place-items: center;
}
.profile-avatar-upload svg {
  width: 26px;
  height: 26px;
  color: #93a6c2;
}
@media (max-width: 900px) {
  .job-workspace .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .job-workspace .preview-panel {
    width: min(100%, 420px);
    margin: 0 auto;
  }
}
@media (max-width: 700px) {
  .job-workspace-backdrop {
    padding: 8px;
  }
  .job-workspace {
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }
  .job-workspace-top {
    padding: 12px 16px;
  }
  #job-workspace-content {
    padding: 16px;
  }
  .job-workspace .work-header h1 {
    font-size: 21px;
  }
  .calendar-plan-summary {
    padding: 12px;
    flex-wrap: wrap;
  }
}

.studio-frame .studio-nav-tiles .nav-link:last-child {
  min-height: 56px;
}

.job-workspace-top h2 {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  line-height: 1.45;
  color: #6d84a7;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.job-workspace-top .close {
  flex: none;
  margin-left: 20px;
}
#job-workspace-content > .steps {
  margin-top: 0;
}
.workspace-request {
  margin: 18px 0 24px;
}
.script-notes {
  border-top: 1px solid #eef1f6;
  margin-top: 22px;
  padding-top: 16px;
  font-size: 12px;
  color: #93a0b1;
}
.script-notes summary {
  cursor: pointer;
}
.script-notes p {
  line-height: 1.7;
  margin-top: 14px;
}
.generation-progress footer {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  margin: 0;
}
@media (max-width: 520px) {
  .generation-progress {
    grid-template-columns: minmax(0, 1fr);
  }
  .generation-progress footer {
    grid-column: 1;
    grid-row: auto;
  }
}
.location-control {
  min-width: 0;
}
.location-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #e2e7dc;
  border-radius: 9px;
  background: #fafbf7;
  color: #5e7357;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.location-choice span {
  flex: 1;
  min-width: 0;
}
.location-choice > svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.location-choice img {
  width: 54px;
  height: 38px;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
}
.picker-backdrop {
  z-index: 85;
}
.location-gallery input[type='search'] {
  margin-bottom: 22px;
}
.location-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.location-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 14px;
  text-align: left;
  overflow: hidden;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: #fff;
  color: #7c91af;
  cursor: pointer;
}
.location-card > img,
.location-no-photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #f2f4f8;
}
.location-no-photo {
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #a9b5c5;
}
.location-no-photo svg {
  width: 24px;
  height: 24px;
}
.location-card > span:not(.location-no-photo) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 7px;
  font-size: 12px;
  font-weight: 600;
}
.location-card > span > svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.location-card > small {
  padding: 0 14px;
  color: #a3b0c3;
  font-size: 10px;
}
.location-card.selected {
  border-color: #8b79ef;
  box-shadow: 0 0 0 2px #8b79ef22;
}
.location-card:hover:not(:disabled) {
  border-color: #ab9af4;
}
.location-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.location-card[hidden] {
  display: none;
}
.cast-chip {
  gap: 9px;
  padding: 9px 12px;
  min-height: 56px;
}
.cast-chip .cast-avatar {
  display: block;
  width: 34px;
  height: 34px;
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.cast-chip .cast-fallback {
  display: grid;
  place-items: center;
  background: #edf1f6;
  color: #a4b3c5;
}
.cast-fallback svg {
  width: 19px;
  height: 19px;
}
.cast-chip input {
  width: 15px;
  height: 15px;
  flex: none;
}
#voice-form {
  display: grid;
  gap: 24px;
}
#voice-form > .field,
#voice-form .voice-options > .field {
  margin: 0;
}
#voice-form .voice-options {
  gap: 20px;
}
#voice-form .voice-options .check-row {
  min-height: 48px;
  margin: 0;
}
#voice-form .voice-tones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#voice-form .tone-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 150px;
  gap: 10px;
  padding: 16px;
  min-height: 56px;
}
#voice-form .tone-option input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
}
#voice-form .tone-option span {
  white-space: normal;
}
#voice-form .actions {
  margin: 0;
}
#voice-form [data-laugh-position][hidden] {
  display: none;
}
@media (max-width: 700px) {
  .job-workspace-top h2 {
    font-size: 15px;
  }
  .location-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .location-card > span:not(.location-no-photo) {
    font-size: 11px;
    padding: 10px;
  }
  .location-card > small {
    padding: 0 10px;
  }
  #voice-form {
    gap: 22px;
  }
  #voice-form .voice-tones {
    flex-direction: column;
  }
  #voice-form .tone-option {
    flex: 0 0 auto;
    width: 100%;
  }
  .cast-chip {
    flex: 0 1 auto;
  }
}

.approval-error {
  flex-basis: 100%;
  margin-bottom: 10px;
  padding: 13px 16px;
  color: #a24848;
  background: #fff4f3;
  border: 1px solid #f0d1cd;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.approval-error[hidden] {
  display: none;
}
.btn .spinner {
  width: 16px;
  height: 16px;
}
[data-act='approve-draft']:disabled {
  cursor: wait;
  opacity: 0.65;
}

.modal-foot:has(.approval-error) {
  flex-wrap: wrap;
}
.script-model-control [hidden] {
  display: none;
}
.draft-model {
  color: #8297b5;
  font-size: 12px;
  margin: 0 0 18px;
}
.calendar-ring.is-circle,
.timeline-event-foot .calendar-ring.is-circle,
.timeline-event-foot .calendar-ring.is-circle img {
  border-radius: 50%;
}
.calendar-ring.is-square,
.calendar-ring.is-square img,
.timeline-event-foot .calendar-ring.is-square,
.timeline-event-foot .calendar-ring.is-square img {
  border-radius: 6px;
}
.calendar-ring video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.timeline-event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.timeline-event-header .timeline-event-time {
  flex: none;
  white-space: nowrap;
}
.timeline-event-category {
  margin-left: auto;
  min-width: 0;
  max-width: 50%;
  font-size: 8px;
  line-height: 1.4;
  text-align: right;
  color: #93a5bf;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event {
  position: relative;
}
.calendar-event-category {
  position: absolute;
  top: 6px;
  right: 8px;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  color: #93a5bf;
}
.calendar-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.calendar-card-category {
  margin-left: auto;
  text-align: right;
}

.timeline-cell {
  container-type: inline-size;
}
@container (max-width:150px) {
  .timeline-event-header {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .timeline-event-category {
    order: -1;
    max-width: none;
    white-space: normal;
  }
}

/* Clear, spacious progression through the circle editor. */
.steps {
  align-items: stretch;
  gap: 16px;
  padding: 8px 0 0;
  scrollbar-width: thin;
  scroll-padding-inline: 20px;
}
.steps .step {
  flex: 0 0 auto;
  gap: 10px;
  min-height: 70px;
  padding: 6px 4px 20px;
  font-size: 15px;
  font-weight: 500;
  border-bottom-width: 3px;
  transition: color 160ms ease, border-color 160ms ease;
}
.steps .step span {
  flex: none;
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.step-connector {
  display: flex;
  flex: 1 0 20px;
  align-items: center;
  justify-content: center;
  padding-bottom: 14px;
  color: #b2bdc9;
}
.step-connector svg {
  width: 20px;
  height: 20px;
}
.step.complete + .step-connector,
.step.active + .step-connector {
  color: #739780;
}
@media (max-width: 700px) {
  .steps {
    gap: 14px;
  }
  .steps .step {
    min-height: 64px;
    font-size: 14px;
    padding-bottom: 16px;
  }
  .step-connector {
    padding-bottom: 10px;
  }
}

/* Category controls are separate from the card's open action. */
.calendar-category-edit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-height: 28px;
  padding: 2px 0;
  background: transparent;
  border-radius: 5px;
  font-weight: 500;
}
.calendar-category-edit svg { width: 11px; height: 11px; }
.calendar-category-edit:hover { color: #536cb4; background: #ffffff80; }
.calendar-category-edit:focus-visible { outline: 2px solid #6c7cff; }
.timeline-event-open {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.calendar-event-open {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 14px 0 0;
  text-align: left;
  background: transparent;
  color: inherit;
}
.calendar-event-open > span:not(.calendar-ring) { min-width: 0; }
.calendar-day-card { position: relative; }
.calendar-day-card > .calendar-card-category {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 11px;
  color: #93a5bf;
}
.calendar-day-card .calendar-card-meta { padding-right: 120px; }
.sound-required { margin-bottom: 24px; }
.sound-required h3 { margin: 0 0 8px; }
.sound-required p { margin: 0 0 18px; }
.sound-dialog-text { white-space: pre-wrap; line-height: 1.6; }
/* An occupied cell's add button must never cover its category control. */
.timeline-cell:has(.timeline-event) > .timeline-plus { display: none !important; }
.sound-required { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sound-required h3 { margin: 0; }
.ambient-choices { display: grid; gap: 12px; max-height: min(52dvh, 500px); overflow-y: auto; padding: 4px; }
.ambient-choice { padding: 16px; border: 1px solid #e2e7f0; border-radius: 12px; background: #fafbfe; }
.ambient-choice:has(input:checked) { border-color: #6c7cff; background: #f4f5ff; }
.ambient-choice label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ambient-choice input { width: 18px; height: 18px; flex: none; accent-color: #6879f4; }
.ambient-choice strong { display: block; color: #617b9f; font-size: 14px; }
.ambient-choice small { display: block; margin-top: 5px; color: #96a5bc; font-size: 11px; }
.ambient-choice audio { display: block; width: 100%; height: 34px; margin-top: 12px; }

/* Conversation topics: one choice, then approximate duration and five texts. */
.script-ideas-panel { margin-bottom: 28px; }
.script-themes { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 12px; scrollbar-width: thin; }
.script-theme { display: flex; flex: 0 0 92px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 88px; padding: 14px 8px; border: 1px solid #e2e7f1; border-radius: 15px; background: #fff; color: #95a4be; }
.script-theme svg { width: 25px; height: 25px; }
.script-theme span { font-size: 11px; white-space: nowrap; }
.script-theme:hover { border-color: #9ca7f5; color: #6679d5; }
.script-theme.selected { border-color: #7889f6; background: #f0f2ff; color: #6275df; box-shadow: 0 3px 12px #7889f612; }
.script-ideas-controls .panel-head h2 { margin: 0; }
.script-duration { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.script-duration legend { padding: 0; margin-bottom: 12px; color: #8e9fbb; font-size: 12px; }
.script-duration > div { display: flex; flex-wrap: wrap; gap: 10px; }
.script-duration label { position: relative; cursor: pointer; }
.script-duration input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.script-duration span { display: block; min-width: 74px; text-align: center; padding: 11px 16px; border: 1px solid #e0e6f0; border-radius: 10px; color: #8196b5; font-size: 13px; }
.script-duration input:checked + span { background: #eef1ff; color: #6275df; border-color: #7889f6; }
.script-duration input:focus-visible + span { outline: 2px solid #7889f6; outline-offset: 3px; }
.idea-source-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.idea-source-tabs .btn { color: #8d9db9; background: #fafbfe; }
.idea-source-tabs .selected { color: #6377da; border-color: #a8b2f4; background: #f3f5ff; }
.script-results-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 16px; }
.script-results-title h2 { margin: 0; font-size: 18px; color: #637fa4; }
.script-results-title > span { color: #93a4bd; font-size: 11px; }
.script-option { background: #fff; border: 1px solid #e2e8f2; border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.script-option.chosen { border-color: #99b69c; }
.script-option > summary { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 18px 20px; cursor: pointer; list-style: none; }
.script-option > summary::-webkit-details-marker { display: none; }
.script-option > summary > strong { flex: 1; font-size: 14px; line-height: 1.5; color: #6a83a6; }
.script-option-number { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #8093bc; background: #f1f4fb; font-size: 12px; }
.script-option summary > svg { flex: none; width: 16px; height: 16px; color: #9aacc5; transition: transform 150ms; }
.script-option[open] summary > svg { transform: rotate(180deg); }
.script-option-body { border-top: 1px solid #eef1f7; padding: 24px; display: grid; gap: 20px; }
.script-option-body small { color: #9aabc2; font-size: 11px; }
.script-option-body p { margin: 9px 0 0; line-height: 1.7; color: #617a9b; font-size: 13px; }
.script-option-body > .btn { justify-self: start; }
.author-profile-text { white-space: pre-wrap; overflow-wrap: anywhere; background: #f8f9fc; border-radius: 12px; padding: 18px; line-height: 1.7; font: inherit; font-size: 13px; }
@media (max-width: 700px) {
  .script-theme { flex-basis: 82px; min-height: 82px; }
  .script-duration > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .script-duration span { min-width: 0; }
  .script-option > summary { padding: 16px; gap: 10px; }
  .script-option-body { padding: 18px; }
  .script-ideas-controls .actions > .btn { width: 100%; }
}
@media (min-width: 701px) {
  .script-themes { flex-wrap: wrap; gap: 8px; overflow: visible; }
  .script-theme { flex-basis: 86px; }
}
:is(.dj,.humor,.self_irony) { --stage: #974dff; --stage-bg: #faf7ff; }
:is(.business,.success) { --stage: #ffcd35; --stage-bg: #fffdf3; }
:is(.plans,.philosophy,.live) { --stage: #39bdf4; --stage-bg: #f3fbff; }
.timeline-event:is([data-category='dj'],[data-category='humor'],[data-category='self_irony']) { --stage: #974dff; --stage-bg: #faf7ff; }
.timeline-event:is([data-category='business'],[data-category='success']) { --stage: #ffcd35; --stage-bg: #fffdf3; }
.timeline-event:is([data-category='plans'],[data-category='philosophy'],[data-category='live']) { --stage: #39bdf4; --stage-bg: #f3fbff; }
@media (min-width: 701px) {
  .script-theme { flex-basis: 80px; min-width: 0; }
  .script-theme span { font-size: 10px; }
}
@media (min-width: 901px) {
  .job-workspace .preview-panel { margin: 0; max-width: none; }
}
.saved-script { margin: 0 0 24px; border: 1px solid #e2e7f1; border-radius: 13px; background: #fff; }
.saved-script > summary { display: flex; align-items: center; gap: 12px; padding: 17px 20px; cursor: pointer; list-style: none; color: #8599b6; font-size: 12px; }
.saved-script > summary::-webkit-details-marker { display: none; }
.saved-script > summary > span { margin-left: auto; color: #a4b2c7; font-size: 11px; }
.saved-script > summary > svg { width: 15px; height: 15px; flex: none; }
.saved-script[open] > summary > svg { transform: rotate(180deg); }
.saved-script-editor > .panel { border: 0; margin: 0; border-top: 1px solid #eef1f7; border-radius: 0 0 13px 13px; }
