:root {
  font-family: Arial, 'Segoe UI', sans-serif;
  color: #302b35;
  background: #f7f6f8;
  font-size: 16px;
  --ink: #342a36;
  --muted: #69636e;
  --purple: #654969;
  --plum: #533b57;
  --wash: #f1eaf2;
  --line: #e4dfe6;
  --paper: #fff;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #805b93;
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: var(--purple);
}
svg.icon {
  display: inline-block;
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: fixed;
  left: 10px;
  top: -80px;
  z-index: 20;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 5px;
}
.loading {
  padding: 40px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.sidebar {
  background: #fcfbfc;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 16px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 28px;
}
.brand-icon {
  background: var(--plum);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font:
    bold 36px/0.8 Georgia,
    serif;
  padding-bottom: 6px;
}
.brand strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -1.5px;
  color: var(--ink);
}
.brand small {
  display: block;
  font-size: 0.78rem;
  margin-top: 2px;
  color: var(--muted);
  letter-spacing: 0.015em;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button,
.side-account,
.role,
.plain,
.icon-btn,
.close {
  border: 0;
  background: transparent;
}
.nav button {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 10px;
  text-align: left;
  padding: 13px 12px;
  color: #625c68;
  font-size: 0.91rem;
  line-height: 1.35;
}
.nav button:hover,
.side-account:hover,
.role:hover,
.icon-btn:hover {
  background: #f3f0f4;
}
.nav button.active {
  background: #ede4ef;
  color: #563c5a;
  font-weight: 700;
}
.nav button.active .icon {
  stroke-width: 2;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.side-account {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 8px;
  border-radius: 10px;
}
.ig-mark {
  background: #f8e9ee;
  color: #8d4c66;
  border: 1px solid #eddbe2;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.side-account strong,
.role strong {
  display: block;
  font-size: 0.9rem;
}
.side-account small,
.role small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 3px;
}
.topbar {
  min-height: 65px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 clamp(20px, 3vw, 48px);
  background: #fcfbfc;
}
.crumb,
.top-actions,
.row,
.button-row,
.format,
.media-meta,
.section-head,
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crumb {
  font-size: 0.87rem;
  color: var(--muted);
}
.crumb b {
  font-weight: 600;
  color: #413749;
}
.top-actions {
  gap: 16px;
}
.mode {
  font-size: 0.77rem;
  color: #66516f;
  background: #f0eaf3;
  border: 1px solid #dfd4e3;
  padding: 5px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.role {
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e2d6e8;
  color: #533956;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font: bold 0.76rem Arial;
}
.role .icon {
  width: 14px;
}
.content {
  max-width: 1550px;
  margin: 0 auto;
  padding: clamp(22px, 2.7vw, 42px) clamp(20px, 3vw, 48px) 48px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}
.heading h1 {
  font:
    500 clamp(2rem, 3.2vw, 3.25rem) / 1.07 Georgia,
    'Times New Roman',
    serif;
  letter-spacing: -0.055em;
  margin: 0;
  color: var(--ink);
}
.heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 10px 15px;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
  min-height: 41px;
}
.btn:hover {
  background: #f8f5f9;
  border-color: #c8bbcc;
}
.btn.primary {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}
.btn.primary:hover {
  background: #67476d;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn.outline {
  background: transparent;
}
.plain {
  color: var(--purple);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 3px;
}
.plain:hover {
  text-decoration: underline;
}
.icon-btn,
.close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--muted);
}
.mobile-menu {
  display: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat,
.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}
.stat {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px;
  text-align: left;
  padding: 18px 20px;
}
.stat:hover {
  border-color: #bcaac3;
}
.stat .value {
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}
.stat .label {
  color: #625969;
  font-size: 0.85rem;
  font-weight: 600;
}
.stat-icon {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.lav {
  background: #efe8f5;
  color: #755786;
}
.peach {
  background: #fbede1;
  color: #9b6946;
}
.sage {
  background: #e9f0ea;
  color: #4f775b;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(230px, 0.92fr);
  gap: 18px;
  align-items: start;
}
.main-col,
.rail {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.panel {
  padding: 21px;
}
.card-head,
.section-head {
  justify-content: space-between;
  gap: 12px;
}
.card-head {
  margin-bottom: 17px;
}
.section-head {
  margin-bottom: 16px;
}
.panel h2,
.panel h3 {
  margin: 0;
  font-size: 1.03rem;
  letter-spacing: -0.025em;
}
.panel h3 {
  font-size: 0.93rem;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-title .icon {
  width: 17px;
  color: var(--purple);
}
.badge,
.format {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  line-height: 1.4;
  letter-spacing: 0.005em;
  font-weight: 600;
}
.badge {
  padding: 5px 10px;
  border-radius: 99px;
  background: #eee9f0;
  color: #634c70;
}
.badge.warm {
  color: #845627;
  background: #fff1dd;
}
.badge.green {
  color: #42634b;
  background: #e8f0e6;
}
.badge.blue {
  color: #3c5a76;
  background: #eaf0f8;
}
.dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.format {
  color: #705e72;
}
.format .icon {
  width: 15px;
  height: 15px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(16px, 1.8vw, 28px);
  align-items: center;
}
.visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  min-height: 316px;
  background: #eee4eb;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
}
.visual.day {
  background: linear-gradient(145deg, #f2e5e7, #e2c4d0 55%, #eee5f0);
}
.poster,
.thumb {
  display: block;
  object-fit: cover;
}
.visual .poster {
  height: clamp(270px, 24vw, 370px);
  max-width: 100%;
  width: auto;
  aspect-ratio: 9/16;
  object-fit: contain;
  box-shadow: 0 1px 24px #86586736;
}
.visual img.single,
.visual video.single {
  width: 100%;
  height: 310px;
  object-fit: contain;
}
.play {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: #463444c9;
  border-radius: 50%;
  border: 1px solid #ffffff77;
}
.play .icon {
  width: 17px;
  fill: currentColor;
  stroke-width: 0;
}
.duration {
  position: absolute;
  bottom: 15px;
  right: 11px;
  background: #392c3cc9;
  color: white;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
}
.feature-copy {
  min-width: 0;
}
.feature-copy h2 {
  font:
    500 clamp(1.7rem, 2.2vw, 2.4rem) / 1.08 Georgia,
    serif;
  letter-spacing: -0.05em;
  margin: 10px 0;
}
.info-line {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}
.caption {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 8px 0 0;
}
.caption-title {
  color: #706576;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 18px 0 0;
}
.media-meta {
  color: #766c79;
  font-size: 0.77rem;
  flex-wrap: wrap;
  margin-top: 17px;
  gap: 7px;
}
.media-meta .icon {
  width: 15px;
  height: 15px;
}
.button-row {
  flex-wrap: wrap;
  gap: 8px;
}
.feature-actions {
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 16px;
}
.work-note {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0 0;
}
.workflow {
  list-style: none;
  padding: 0;
  margin: 0;
}
.workflow li {
  position: relative;
  display: flex;
  gap: 12px;
  min-height: 57px;
}
.workflow li:last-child {
  min-height: auto;
}
.workflow li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 25px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.step {
  width: 27px;
  height: 27px;
  border: 1px solid #ded7e2;
  background: #faf9fa;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: #9b929e;
}
.step .icon {
  width: 14px;
  height: 14px;
}
.done .step {
  background: #e9f0e8;
  color: #58785c;
  border-color: #dbe6da;
}
.current .step {
  background: var(--wash);
  color: var(--purple);
  border-color: #d7c6dc;
}
.workflow strong {
  display: block;
  font-size: 0.86rem;
  margin: 2px 0 3px;
}
.workflow small {
  display: block;
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.35;
}
.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-row strong {
  font-size: 0.94rem;
}
.account-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}
.rail .plain {
  margin-top: 15px;
}
.list {
  display: grid;
  gap: 0;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  width: 100%;
  text-align: left;
}
.list-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.list-row:last-child {
  padding-bottom: 0;
}
.list-row .label {
  font-size: 0.92rem;
  font-weight: 600;
  display: block;
}
.list-row small {
  display: block;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
  margin-top: 2px;
}
.list-row .badge {
  margin-left: auto;
}
.thumb {
  width: 38px;
  height: 46px;
  border-radius: 6px;
  background: var(--wash);
}
.placeholder-thumb {
  display: grid;
  place-items: center;
  color: var(--purple);
}
.empty {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 10px 0 0;
}
.count {
  font-size: 0.8rem;
  color: var(--muted);
}
.history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.history li:first-child {
  border: 0;
  padding-top: 0;
}
.history small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.tabs button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 0.85rem;
}
.tabs button.active {
  background: #fff;
  border-color: var(--line);
  color: var(--purple);
  font-weight: 700;
}
.banner {
  padding: 12px 14px;
  border: 1px solid #e5d7c2;
  background: #fff6e8;
  color: #6b4e28;
  border-radius: 10px;
  font-size: 0.87rem;
  line-height: 1.5;
  margin: 12px 0;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  margin: 17px 0 0;
}
.result-grid div {
  background: #f7f5f8;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.8rem;
}
.result-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  max-width: min(540px, calc(100vw - 26px));
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 20px 80px #261a3033;
}
dialog::backdrop {
  background: #20172370;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.dialog-head h2,
.login h1 {
  font:
    500 1.75rem Georgia,
    serif;
  letter-spacing: -0.04em;
  margin: 0;
}
.dialog-body p,
.login p {
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.92rem;
}
.dialog-body video,
.dialog-body img.preview {
  display: block;
  max-height: 52vh;
  max-width: 100%;
  margin: 12px auto;
  border-radius: 10px;
  background: #eee9ed;
}
.dialog-body .caption {
  color: var(--ink);
  padding: 12px;
  background: #f7f5f8;
  border-radius: 8px;
}
.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 16px 0;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cfc7d3;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 1rem;
}
.field textarea {
  resize: vertical;
  min-height: 115px;
  line-height: 1.5;
}
.field input[type='file'] {
  font-size: 0.85rem;
}
.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.45;
  margin: 14px 0;
  font-size: 0.9rem;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 19px;
}
.form-error {
  color: #943f46;
  line-height: 1.5;
  font-size: 0.87rem;
}
.form-error:empty {
  display: none;
}
.login {
  max-width: 430px;
  margin: 12vh auto;
  padding: 26px;
}
.login .brand {
  padding: 0 0 25px;
}
#message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9px;
  background: #382f3b;
  color: #fff;
  z-index: 11;
  padding: 10px 16px;
  font-size: 0.88rem;
  max-width: 90vw;
  pointer-events: none;
}
#message:empty {
  display: none;
}
@media (min-width: 1550px) {
  .content {
    padding-top: 40px;
  }
  .feature {
    grid-template-columns: minmax(200px, 0.83fr) 1.17fr;
  }
  .visual {
    min-height: 370px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .columns {
    grid-template-columns: minmax(0, 1.9fr) minmax(190px, 0.85fr);
  }
  .content {
    padding-inline: 20px;
  }
  .panel {
    padding: 16px;
  }
  .feature {
    gap: 14px;
    grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1fr);
  }
  .visual {
    min-height: 255px;
  }
  .visual .poster {
    height: 255px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 14px;
  }
  .feature-copy h2 {
    font-size: 1.7rem;
  }
}
@media (max-width: 950px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .rail {
    grid-template-columns: 1.15fr 1fr;
  }
  .feature {
    grid-template-columns: minmax(170px, 0.85fr) 1.15fr;
  }
  .visual .poster {
    height: 290px;
  }
  .stat-icon {
    width: 32px;
    height: 32px;
  }
  .top-actions {
    gap: 7px;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .shell.nav-open .sidebar {
    display: flex;
    position: fixed;
    inset: 59px auto 0 0;
    width: 230px;
    height: calc(100dvh - 59px);
    z-index: 8;
    box-shadow: 10px 10px 24px #32233720;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    min-height: 59px;
    padding: 0 12px;
  }
  .crumb {
    gap: 7px;
  }
  .crumb .parent,
  .crumb .sep {
    display: none;
  }
  .content {
    padding: 20px 13px 36px;
  }
  .heading {
    margin-bottom: 16px;
    gap: 7px;
  }
  .heading h1 {
    font-size: 2rem;
  }
  .heading p {
    font-size: 0.84rem;
  }
  .topbar .role small {
    display: none;
  }
  .stats {
    gap: 6px;
    margin-bottom: 12px;
  }
  .stat {
    padding: 12px 9px;
    grid-template-columns: 1fr;
    gap: 6px;
    border-radius: 11px;
  }
  .stat .label {
    font-size: 0.75rem;
  }
  .stat .value {
    font-size: 1.6rem;
  }
  .stat-icon {
    display: none;
  }
  .columns,
  .main-col,
  .rail {
    gap: 12px;
  }
  .panel {
    border-radius: 13px;
    padding: 15px;
  }
  .feature {
    grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.2fr);
  }
  .visual .poster {
    height: auto;
    width: 100%;
    max-height: 275px;
  }
  .visual {
    min-height: 0;
  }
  .feature-copy h2 {
    font-size: 1.53rem;
  }
  .caption {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .caption-title {
    margin-top: 12px;
  }
  .media-meta {
    margin-top: 10px;
  }
  .rail {
    grid-template-columns: 1fr 1fr;
  }
  .mode {
    font-size: 0.67rem;
    padding: 4px 7px;
  }
  .role strong {
    font-size: 0.8rem;
  }
}
@media (max-width: 465px) {
  .heading {
    align-items: flex-start;
  }
  .heading .btn {
    font-size: 0.78rem;
    padding: 9px;
  }
  .rail {
    grid-template-columns: 1fr;
  }
  .brand {
    padding-bottom: 20px;
  }
  .section-title {
    gap: 6px;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .visual {
    min-height: 230px;
  }
  .visual .poster {
    height: 230px;
    width: auto;
  }
  .feature-copy h2 {
    margin: 7px 0;
  }
  .feature-actions {
    margin-top: 15px;
  }
  .btn {
    min-height: 40px;
  }
  .topbar .avatar {
    display: none;
  }
  .role {
    gap: 3px;
  }
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.calendar-nav button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--plum);
  min-width: 32px;
  min-height: 32px;
  padding: 3px 8px;
  font-size: 0.86rem;
}
.calendar-nav button:hover {
  background: var(--wash);
}
.calendar .info-line {
  margin: 9px 0 12px;
}
.agenda-row {
  grid-template-columns: minmax(105px, 0.85fr) minmax(0, 1.15fr);
  font-size: 0.86rem;
}
.calendar .empty {
  margin-bottom: 0;
}
.btn:disabled {
  cursor: default;
}
.calendar .section-head {
  flex-wrap: wrap;
}
