@font-face{font-family:RVHDevanagari;src:url("/devanagari.ttf") format("truetype");font-weight:100 900;font-display:swap;unicode-range:U+0900-097F,U+A8E0-A8FF}
:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    RVHDevanagari,
    sans-serif;
  color: #173b35;
  background: #f5f6f2;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d89435;
  outline-offset: 3px;
}
button,
.button {
  border: 1px solid #d9e2da;
  background: white;
  border-radius: 9px;
  padding: 11px 16px;
  color: #214b41;
  font-weight: 600;
  min-height: 44px;
}
.primary {
  background: #1b6454;
  color: #fff;
  border-color: #1b6454;
}
.muted,
p {
  color: #687b72;
  line-height: 1.6;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  color: #8fa89d;
}
h1 {
  font-size: clamp(28px, 3.3vw, 42px);
  letter-spacing: -0.05em;
  font-weight: 650;
  margin: 10px 0;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 17px;
}
aside {
  position: fixed;
  width: 242px;
  inset: 0 auto 0 0;
  background: #123c36;
  color: white;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 42px;
}
.brand img {
  width: 42px;
}
.brand strong {
  display: block;
  font-size: 16px;
}
.brand small {
  font-size: 11px;
  color: #b6cfc4;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  background: none;
  color: #bdd1c6;
  border-color: transparent;
  text-align: left;
  font-weight: 500;
}
.nav button.active {
  background: #2c554c;
  color: #fff;
}
.nav button span {
  display: inline-block;
  width: 28px;
}
.side-bottom {
  margin-top: auto;
  font-size: 12px;
  color: #a9c6b8;
  line-height: 1.8;
}
.side-bottom button {
  margin-top: 12px;
  background: transparent;
  color: #c8d8ce;
  border-color: #43665c;
}
.shell {
  margin-left: 242px;
}
header {
  height: 82px;
  border-bottom: 1px solid #e0e5dc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 10px;
  background: #fff;
}
.header-name {
  font-size: 14px;
}
.pill {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 30px;
  background: #e8efe5;
  color: #476450;
  display: inline-block;
}
.pill.pending {
  background: #fff0d6;
  color: #876018;
}
.pill.approved,
.pill.completed {
  background: #dff0e4;
  color: #2e684a;
}
.pill.failed {
  background: #fbe2df;
  color: #9b453d;
}
main {
  padding: 32px 38px;
  max-width: 1500px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.heading p {
  margin: 0;
}
.hero {
  background: #e8eee1;
  border: 1px solid #dbe3d0;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.hero p {
  max-width: 590px;
}
.hero .eyebrow {
  color: #647653;
}
.hero-mark {
  font-size: 85px;
  color: #98af85;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat,
.card {
  background: #fff;
  border: 1px solid #e0e5dc;
  border-radius: 13px;
  padding: 23px;
}
.stat span {
  font-size: 12px;
  color: #718174;
}
.stat strong {
  display: block;
  font-size: 32px;
  margin-top: 8px;
  font-weight: 600;
}
.agent-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #edf0e5;
  color: #526e3e;
  border-radius: 11px;
  font-size: 23px;
}
.agent-card p {
  min-height: 52px;
  font-size: 13px;
}
.agent-card button {
  border: 0;
  padding-left: 0;
  min-height: 36px;
  color: #2c6c54;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 26px;
}
.split {
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 17px 0 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7dfd5;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  color: #254438;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #37826b;
  box-shadow: 0 0 0 3px #dcece4;
}
textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-size: 14px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: #7b8a7d;
}
.empty strong {
  display: block;
  color: #49604d;
  margin: 12px;
}
.banner {
  padding: 13px 16px;
  background: #fff2d9;
  border: 1px solid #eedeb7;
  color: #7c6332;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.list {
  display: grid;
  gap: 12px;
}
.draft-row {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 20px;
  background: #fff;
}
.draft-row strong {
  display: block;
  overflow-wrap: anywhere;
}
.draft-row small {
  display: block;
  color: #7d8b7e;
  margin-top: 8px;
  font-weight: 400;
}
.filter {
  max-width: 240px;
  margin-bottom: 16px;
}
.login {
  max-width: 430px;
  margin: 12vh auto;
  padding: 30px;
}
.login img {
  width: 62px;
}
.login button {
  width: 100%;
  margin-top: 24px;
}
.login h1 {
  font-size: 32px;
}
.note {
  font-size: 12px;
  color: #768574;
  line-height: 1.7;
}
.editor {
  min-height: 350px;
}
.run {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e8ece3;
}
.run small {
  display: block;
  color: #7a8778;
  margin-top: 6px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.mobile-menu {
  display: none;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: #163f34;
  color: white;
  border-radius: 10px;
  box-shadow: 0 6px 30px #0002;
  padding: 15px 22px;
  max-width: 90vw;
  font-size: 14px;
}
.offline {
  background: #fbe2df;
  color: #863f37;
}
.install-guide {
  font-size: 13px;
  line-height: 1.8;
}
a {
  color: #246d57;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dfebe3;
  border-top-color: #1b6454;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1050px) {
  aside {
    width: 210px;
  }
  .shell {
    margin-left: 210px;
  }
  main {
    padding: 25px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
}
@media (max-width: 700px) {
  aside {
    display: none;
    width: 260px;
    z-index: 20;
    box-shadow: 10px 0 60px #0004;
  }
  aside.open {
    display: flex;
  }
  .shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
    padding: 8px 12px;
  }
  header {
    height: 70px;
    padding: 0 16px;
  }
  .header-name {
    font-size: 12px;
  }
  main {
    padding: 22px 16px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading button {
    font-size: 12px;
  }
  .hero {
    padding: 22px;
  }
  .hero-mark {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat strong {
    font-size: 27px;
  }
  .card {
    padding: 20px;
  }
  .login {
    margin: 8vh 16px;
  }
  .draft-row {
    padding: 16px;
  }
  .heading h1 {
    font-size: 29px;
  }
  .brand {
    margin-bottom: 24px;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .side-bottom {
    margin-top: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
/* Marketing studio workflows */
fieldset{border:0;padding:0;margin:0;min-width:0}fieldset:disabled{opacity:.65}input[type=checkbox]{width:auto}.check{display:flex;align-items:center;gap:10px}.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:12px 18px;border-radius:10px;background:var(--green,#1d6557);color:white;font-weight:650}.actions{flex-wrap:wrap}.studio-extra{margin-top:24px}.social-preview{background:white;border:1px solid #dbe2d7;border-radius:16px;padding:24px;white-space:pre-wrap}.social-preview header{display:flex;gap:12px;align-items:center;margin-bottom:20px}.social-preview header img{width:44px;height:44px}.preview-contact{border-top:1px solid #dde4da;margin-top:20px;padding-top:14px;font-size:14px}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.media-grid img,.media-grid video{width:100%;max-height:420px;object-fit:contain;background:#eef1e9;border-radius:10px}.media-grid small{display:block;margin:8px 0}.library-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-bottom:20px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-cell{min-height:85px;display:flex;flex-direction:column;align-items:flex-start;background:white;color:#153e35;border:1px solid #dae3d5;padding:8px;text-align:left}.calendar-cell small{font-size:11px;line-height:1.3}.calendar-cell.muted{opacity:.45}.calendar-cell.selected{outline:2px solid #1d6557}.calendar-cell.today{background:#e9efdf}.calendar-month{width:auto}.chat-history{max-height:65vh;overflow:auto;margin-bottom:20px}.chat-message{padding:16px;border-radius:12px;background:#eaf0e3;margin-bottom:14px;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message.user{margin-left:10%;background:#f4f5ef}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid #e3e8df}.pill.published{background:#d8ebdf}.pill.processing,.pill.starting{background:#fff0cb}aside{overflow-y:auto}nav{gap:4px}nav button{padding-top:10px;padding-bottom:10px}.media-error{color:#963c29;overflow-wrap:anywhere}
@media(max-width:760px){.template-grid,.media-grid,.library-filters{grid-template-columns:1fr}.calendar-grid{gap:2px}.calendar-cell{padding:4px;min-height:65px;font-size:12px}.calendar-cell small{font-size:9px}.social-preview{padding:16px}}

.social-header{display:flex;gap:12px;align-items:center;margin-bottom:20px;white-space:normal}.social-header img{width:44px;height:44px}.social-header small{display:block;margin-top:5px}.calendar-grid strong{text-align:center;font-size:13px}.card{min-width:0}.actions.quick-actions{margin-bottom:24px}.stats{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}
/* Complete advertisement previews fit both desktop and mobile cards. */
.asset-preview{display:block;width:100%;max-width:100%;max-height:520px;object-fit:contain;background:#123c36;border-radius:12px}
#ad-edit .card{margin:18px 0;border:1px solid #dae3d5}
#ad-start{margin:24px 0;padding:20px;background:#f4f5ef;border-radius:12px}

/* Task-first navigation and progressive video form. */
[hidden]{display:none!important}
.task-card{text-align:left;width:100%;cursor:pointer;color:var(--ink,#123c36)}
.task-card h2{margin:0 0 8px}.task-card strong{font-weight:500}.task-card span{font-weight:700}
.nav details{width:100%}.nav summary{padding:14px 20px;cursor:pointer;color:inherit}.nav details button{width:100%}
.next-step{margin-top:24px}.step-progress{padding:12px 16px;background:#e7efdf;border-radius:8px;font-weight:700}
#ad-create{scroll-margin-top:24px}details>summary{cursor:pointer}#builder-form details{margin:12px 0}
