/* Campaign workspace glass surfaces and atmospheric depth. */
:root {
  --glass-ink: #221d26;
  --glass-muted: #615561;
  --glass-bright: #fcf8fa;
  --glass-edge: #ffffffa6;
  --glass-shadow: 0 16px 45px #21171f24, inset 0 1px #ffffffc9;
  --shell-max: 1530px;
}
body { color: var(--glass-ink); background: #37313e; isolation:isolate }
.postal-scene {
  position: fixed;
  inset: -25px;
  z-index: -1;
  background:
    linear-gradient(114deg, #211a28de 3%, #4e283dbd 48%, #2b2736b0 100%),
    url('/meghdoot-bhawan.webp') center 35% / cover;
  transform: translate3d(var(--scene-x,0px),var(--scene-y,0px),0);
  transition: transform .75s cubic-bezier(.22,1,.36,1);
}
#app { isolation: isolate }
.header {
  position: sticky;
  top: 0;
  margin: 0 auto;
  max-width: var(--shell-max);
  border: 0;
  border-bottom: 1px solid #ffffff24;
  height: 76px;
  padding: 0 clamp(17px,2vw,29px);
  background: #231b2ae6;
  color: #fff;
  backdrop-filter: blur(20px) saturate(1.24);
  box-shadow: 0 12px 35px #1b132a30;
  border-radius: 0 0 23px 23px;
  gap: 14px;
}
.header .brand small, .header .person small { color: #dfd2dd }
.header .brand-mark {
  border: 1px solid #ff9caa68;
  background: linear-gradient(155deg,#c53a54,#8d1636);
  box-shadow: inset 0 1px #ffffff3b, 0 6px 15px #160a1d50;
}
.header .square { border-radius: 50%; color: #fff; background: #ffffff13; border-color: #ffffff37 }
.header .square:hover { background: #ffffff29 }
.header-right { gap:10px; flex-shrink:0 }
.header-right img {
  width: 67px;
  height: 49px;
  background: #fff;
  border-radius: 11px;
  padding: 3px;
  object-fit: contain;
  box-shadow: 0 5px 14px #150a2144;
}
.header .sep { background: #ffffff33 }
.header .avatar { background:#fff0f2; color:#921f40 }
.header .unread { background:#ffb28a; border:0 }
.nav-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
  padding: 4px;
  border: 1px solid #ffffff3c;
  border-radius: 999px;
  background: #ffffff10;
  box-shadow: inset 0 1px #ffffff25;
}
.nav-pill button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: #f1e6ee;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: color .2s, background .2s, transform .25s cubic-bezier(.22,1,.36,1);
}
.nav-pill button .ico { width:16px;height:16px }
.nav-pill button:hover { background:#ffffff1f; transform:translateY(-1px) }
.nav-pill button[aria-current=page] { color:#7e1c38;background:#fff2f4;box-shadow:0 3px 10px #130a2345 }
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 21px clamp(14px,2.3vw,33px) 37px;
  grid-template-columns: 64px minmax(0,1fr);
  align-items: start;
  gap: 15px;
}
.side {
  position: sticky;
  top: 97px;
  z-index: 5;
  padding: 7px;
  max-height: none;
  border: 1px solid #ffffff43;
  background: #271d2ee8;
  box-shadow: inset 0 1px #ffffff21, 0 15px 35px #18101f42;
  backdrop-filter: blur(24px);
  border-radius: 36px;
  overflow: visible;
}
.nav-label, .side-copy { display:none }
.nav-items { gap: 3px }
.nav-items button, .signout {
  position: relative;
  display:grid;
  place-items:center;
  width: 48px;
  min-height: 45px;
  height: 45px;
  border-radius: 50%;
  padding: 0;
  color: #f4eaf0;
  transition: background-color .22s, color .22s;
}
.nav-items button:hover, .signout:hover { background:#ffffff23 }
.nav-items button[aria-current=page] { color:#831637;background:#fff2f4;box-shadow:0 3px 12px #12091e61 }
.rail-label {
  position: absolute;
  left: calc(100% + 13px);
  z-index: 70;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ffffff4d;
  color: #fff;
  background: #302138f5;
  box-shadow: 0 5px 15px #170e2347;
  opacity:0;
  visibility:hidden;
  transform:translateX(-5px);
  transition:opacity .18s,transform .18s,visibility .18s;
  pointer-events:none;
}
.nav-items button:is(:hover,:focus-visible) .rail-label { opacity:1;visibility:visible;transform:none }
.side-foot { margin: 5px 0 0; padding: 5px 0 0; border-top:1px solid #ffffff25 }
.side .signout { font-size:0 }
.side .signout .ico { font-size: 1rem }
.spatial-board {
  padding: clamp(14px,2.05vw,29px);
  border: 1px solid var(--glass-edge);
  border-radius: 31px;
  background: #f9f5f8ed;
  box-shadow: var(--glass-shadow), 0 26px 50px #2d193b59;
  backdrop-filter: blur(24px) saturate(1.16);
  min-height: calc(100dvh - 134px);
}
.spatial-board:focus { outline:none }
.topline { margin-bottom: 14px }
.crumb { color:#705e6e }
.scope-line select,.scope-line input { border-radius:999px; border-color:#e3d6df; background-color:#fffafc }
.scope-line select { max-width: min(34vw,290px) }
.demo-banner { background:#fff4d6; border-color:#eedcaa; border-radius:12px }
.campaign-stage { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(255px,.88fr);gap:14px }
.campaign-stage.no-period { grid-template-columns:1fr }
.hero {
  display:flex;
  align-items:flex-end;
  position:relative;
  padding: clamp(20px,3vw,39px);
  border:1px solid #ffffff87;
  border-radius: 25px;
  min-height: 282px;
  background:
    linear-gradient(88deg,#291b2aea 0%,#541630eb 31%,#592038b9 58%,#311d3859 100%),
    url('/meghdoot-bhawan.webp') 58% 26% / cover;
  box-shadow:0 13px 27px #55203f30, inset 0 1px #ffebed65;
}
.hero::before { content:none }
.hero-story { position:relative; z-index:1; min-width:0 }
.hero .eyebrow { color:#ffdade }
.hero h1 { font-size:clamp(29px,3.3vw,53px); line-height:1.04; margin:10px 0 12px }
.hero p { color:#fff1f3; max-width: 44ch }
.hero .chip { border-radius:999px; padding:6px 10px; background:#280c25af; border-color:#ffffff57 }
.hero-location {
  position:absolute;
  right:11px;top:11px;
  display:flex;align-items:center;gap:5px;
  font-size:11px;font-weight:700;color:#fff;padding:6px 8px;
  background:#271b34e8;border:1px solid #ffffff46;border-radius:999px;
}
.hero-location .ico { width:13px;height:13px }
.drive-meter {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:0;
  align-items:center;
  min-width:0;
  margin:0;
  padding:16px 19px 14px;
  border:1px solid #ffffff82;
  border-radius:25px;
  background: radial-gradient(85% 100% at 12% 0%,#965060,#503143 60%,#332538);
  color:#fff;
  box-shadow:0 13px 27px #55203f30,inset 0 1px #ffffff59;
}
.drive-header { display:flex;justify-content:space-between;align-items:center;width:100%;gap:8px }
.drive-header h2 { margin:0;font-size:16px;letter-spacing:-.025em }
.meter-icon { width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#ffffff21;color:#ffd99b }
.meter-icon .ico { width:16px;height:16px }
.campaign-dial { display:block;width:min(185px,100%);height:auto;overflow:visible;margin:1px 0 0 }
.campaign-dial path { fill:none;stroke-width:11;stroke-linecap:round }
.dial-track { stroke:#3a243a82 }
.dial-arc { stroke:url('#postal-arc');filter:drop-shadow(0 1px 5px #ffc77653);animation:arc-in .7s cubic-bezier(.22,1,.36,1) both }
@keyframes arc-in { from { stroke-dasharray:0 100 } }
.dial-ticks line { stroke:#fff5f852;stroke-width:1.4;stroke-linecap:round }
.dial-ticks .dial-active { stroke:#fff1d1 }
.dial-knob { fill:#fff9e8;stroke:#ffd796;stroke-width:1 }
.dial-percent,.dial-caption { fill:#fff;text-anchor:middle;font-weight:800;font-family:inherit }
.dial-percent { font-size:35px;letter-spacing:-.08em }
.dial-caption { font-size:11px;fill:#f5d9e7;font-weight:700 }
.drive-summary { text-align:center;margin-top:-9px;align-self:stretch }
.drive-summary b { font-size:15px }
.drive-summary small { color:#ffedf3;font-size:12px }
.card,.metric {
  background:#ffffffde;
  border: 1px solid #e8dbe5;
  box-shadow: 0 7px 21px #3920360d,inset 0 1px #fff;
  border-radius:19px;
}
.metric { min-height:96px }
.metric .icon-tile,.action .icon-tile { border-radius:50% }
.metric-premium {
  background: linear-gradient(120deg,#ffdfaa 0%,#f6bcc0 51%,#e499b4 100%);
  color:#542137;
  border-color:#e2a6ab;
  box-shadow:0 6px 20px #91365722,inset 0 1px #fff1d8;
}
.metric-premium small { color:#6e2c45 }
.metric-premium .icon-tile { color:#731a38;background:#fff1ded4 }
.chart-legend .swatch,.chart-group span { background:#a83a59 }
.chart-legend .swatch.gold,.chart-group span:nth-child(2) { background:#d68d3d }
.btn,.action,.day-tile { transition:background-color .18s,border-color .18s }
.action { border-radius: 999px; padding: 8px 11px; }
.btn.primary { background:#9e2144;border-color:#9e2144 }
.btn.primary:hover { background:#7b1633 }
dialog { border-radius: 22px }
dialog::backdrop { background:#241830ab;backdrop-filter:blur(3px) }
.toast { background:#402640;border-radius:999px }
.login {
  color: var(--glass-ink);
  background: transparent;
  gap:18px;
}
.login-top {
  color:#fff;background:#241b2de8;
  backdrop-filter:blur(20px);
  border:0;border-bottom:1px solid #ffffff34;
}
.login-top .brand small { color:#e3d6df }
.login-top img { background:#fff;border-radius:10px;padding:3px }
.login-content {
  background:#fcf8fbea;
  border:1px solid #ffffff9c;
  box-shadow:var(--glass-shadow), 0 26px 70px #180d2b70;
  backdrop-filter: blur(25px);
  border-radius:30px;
}
.login-feature {
  background:
    linear-gradient(90deg,#301c32f5,#5d1938e0 47%,#21173075),
    url('/meghdoot-bhawan.webp') center 38% / cover;
}
.login-feature::before { content:none }
.login-feature .chip { background:#201327bf }
.login-footer { color:#f5e8f1 }
.login-form-panel .tabs { border-radius:999px;background:#eae1e9 }
.login-form-panel .tabs button { border-radius:999px }
@media (min-width:761px) and (max-width:1120px){
  .header .person div:not(.avatar),.header .sep { display:none }
  .nav-pill button { padding-inline:8px }
}
@media(max-width:870px){
  .nav-pill button .ico { display:none }
  .header .brand small { font-size:11px }
}
@media(max-width:760px){
  .header { padding: 0 11px; height: 63px;border-radius:0;gap:8px }
  .nav-pill { display:none }
  .header-right { gap:7px }
  .header-right img { width:56px;height:43px }
  .header .brand-mark { display:none }
  .shell { display:block;padding:10px 8px 22px }
  .spatial-board { border-radius:21px;min-height:calc(100dvh - 95px);padding:12px }
  .side { width:min(275px,82vw);left:7px;top:70px;bottom:auto;max-height:calc(100dvh - 80px);padding:10px;overflow:auto;border-radius:19px }
  .side .nav-label { display:block;color:#e2d1e0 }
  .nav-items button,.signout { display:flex;gap:10px;justify-content:flex-start;width:100%;padding:0 10px;border-radius:10px }
  .rail-label { position:static;opacity:1;visibility:visible;transform:none;padding:0;border:0;background:none;box-shadow:none;color:inherit }
  .side .signout { font-size:14px }
  .scope-line select { max-width:100% }
  .campaign-stage { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr);gap:8px }
  .hero { min-height:224px;align-items:flex-end;padding:14px;border-radius:19px }
  .hero h1 { font-size:30px }
  .hero p { font-size:13px;line-height:1.35 }
  .hero-location { font-size:10px;top:8px;right:8px }
  .drive-meter { padding:10px 9px;border-radius:19px }
  .drive-header h2 { font-size:13px }
  .meter-icon { width:22px;height:22px }
  .meter-icon .ico { width:13px;height:13px }
  .campaign-dial { width:min(142px,100%) }
  .drive-summary { margin-top:-3px }
  .drive-summary b { font-size:13px }
  .drive-summary small { font-size:11px }
  .metric { min-height:81px;border-radius:14px }
  .action { border-radius:14px }
}
@media(max-width:450px){
  .campaign-stage { grid-template-columns:minmax(0,1fr) }
  .hero { min-height:210px }
  .hero h1 { font-size:32px }
  .drive-meter { display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:5px 12px;padding:9px 13px }
  .drive-header { align-self:end;justify-content:flex-start }
  .meter-icon { order:-1 }
  .campaign-dial { grid-column:2;grid-row:1/3;width:85px;margin-block:-3px }
  .drive-summary { text-align:left;margin:0 0 0 30px }
  .drive-summary small { margin-top:3px }
  .login { gap:0 }
  .login-content { width:calc(100% - 18px);border-radius:20px }
}
@media(prefers-reduced-motion:reduce){
  .postal-scene { transform:none;transition:none }
  .nav-pill button,.nav-items button,.rail-label { transition:none }
}
@media print{
  .postal-scene,.nav-pill { display:none!important }
  body { background:white }
  .shell,.spatial-board { padding:0 }
  .spatial-board { background:none;box-shadow:none;border:0;backdrop-filter:none;min-height:0 }
}
