/* =========================================================
   Project Nova — Adobe GenStudio campaign dashboard
   Values taken from Figma node 4389:2065
   ========================================================= */

:root {
  --bg-app: #090a0a;
  --ink: #121419;
  --ink-2: #14151b;
  --ink-strong: #131722;
  --text-2: #4c5362;
  --text-3: #414858;
  --text-muted: #667084;
  --text-sub: #596174;
  --text-tab: #474f60;
  --text-crumb: #596171;
  --placeholder: #7c8598;
  --chevron: #536071;
  --chevron-soft: #d2d8df;

  --border: #e6e8eb;
  --border-2: #e7e9ed;
  --border-3: #e9eaed;
  --border-input: #dfe2e8;
  --border-btn: #dce0e5;
  --border-cell: #eef0f2;
  --border-soft: #eee;
  --border-nav: #e3e5e9;

  --track: #e4e7ec;
  --surface-head: #f7f8f9;
  --surface-chip: #edefef;
  --surface-num: #edf0f3;

  --green: #08b850;
  --green-bar: #08b952;
  --green-ring: #07b34e;
  --green-ok: #0bb34d;
  --amber: #ffba00;
  --amber-text: #ffa000;
  --red: #ff3345;
  --red-text: #ff253d;
  --red-alert: #ff3043;
  --red-soft: #ffe9ed;
  --red-cell: #fff0f1;
  --red-cell-border: #ff8290;
  --grey-dot: #b5bac2;
  --blue: #075aff;
  --blue-2: #0051ff;
  --blue-info: #076aff;
  --blue-tab: #1766ff;
  --blue-badge-bg: #e2eaff;
  --blue-badge: #004eff;
  --purple: #8531ff;
  --btn-dark: #101112;

  --sidebar-w: 169px;
  --header-h: 54px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-app);
  color: var(--ink);
  font-size: 14px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body:not(.is-ready) .app { visibility: hidden; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
img { display: block; }

/* ---------- Icon primitives ---------- */
.crop { position: relative; display: inline-block; overflow: hidden; flex: none; }
.crop > img { position: absolute; max-width: none; pointer-events: none; }

.mask {
  display: inline-block;
  flex: none;
  background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-position: center; mask-position: center;
}
.m-home     { -webkit-mask-image: url(../assets/icons/home-mask.png);      mask-image: url(../assets/icons/home-mask.png); }
.m-bookmark { -webkit-mask-image: url(../assets/icons/bookmark-mask.png);  mask-image: url(../assets/icons/bookmark-mask.png); }
.m-rocket   { -webkit-mask-image: url(../assets/icons/rocket-mask.png);    mask-image: url(../assets/icons/rocket-mask.png); }
.m-search   { -webkit-mask-image: url(../assets/icons/search-mask.png);    mask-image: url(../assets/icons/search-mask.png); transform: scaleX(-1); }
.m-list     { -webkit-mask-image: url(../assets/icons/list-mask.png);      mask-image: url(../assets/icons/list-mask.png); }
.m-monitor  { -webkit-mask-image: url(../assets/icons/monitor-mask.png);   mask-image: url(../assets/icons/monitor-mask.png); }
.m-email    { -webkit-mask-image: url(../assets/icons/email-mask.png);     mask-image: url(../assets/icons/email-mask.png); }
.m-audience { -webkit-mask-image: url(../assets/icons/audiences-mask.png); mask-image: url(../assets/icons/audiences-mask.png); }
.m-cube     { -webkit-mask-image: url(../assets/icons/cube-mask.png);      mask-image: url(../assets/icons/cube-mask.png); }
.m-doc      { -webkit-mask-image: url(../assets/icons/doc-mask.png);       mask-image: url(../assets/icons/doc-mask.png); }
.m-globe    { -webkit-mask-image: url(../assets/icons/globe-mask.png);     mask-image: url(../assets/icons/globe-mask.png); }
.m-create   { -webkit-mask-image: url(../assets/icons/nav-create-mask.png); mask-image: url(../assets/icons/nav-create-mask.png); }
.m-help     { -webkit-mask-image: url(../assets/icons/help-mask.png);      mask-image: url(../assets/icons/help-mask.png); }
.m-cal      { -webkit-mask-image: url(../assets/icons/calendar.png);       mask-image: url(../assets/icons/calendar.png); }
.m-bars     { -webkit-mask-image: url(../assets/icons/bar-chart.png);      mask-image: url(../assets/icons/bar-chart.png); }
.m-person   { -webkit-mask-image: url(../assets/icons/person-mask.svg);    mask-image: url(../assets/icons/person-mask.svg); }
.m-image    { -webkit-mask-image: url(../assets/icons/image-mask.svg);     mask-image: url(../assets/icons/image-mask.svg); }
.m-layout   { -webkit-mask-image: url(../assets/icons/layout-mask.svg);    mask-image: url(../assets/icons/layout-mask.svg); }
.m-cta      { -webkit-mask-image: url(../assets/icons/cta-mask.svg);       mask-image: url(../assets/icons/cta-mask.svg); }
.ci-dlic { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url(../assets/icons/download.svg) center / contain no-repeat; mask: url(../assets/icons/download.svg) center / contain no-repeat; }

/* ---------- App frame ---------- */
.app { position: relative; height: 100vh; min-height: 720px; min-width: 1280px; }

/* Header */
.topbar { position: absolute; inset: 0 0 auto 0; height: var(--header-h); }
.brand { position: absolute; left: 19px; top: 12px; display: flex; align-items: center; gap: 15px; }
.brand-logo { position: relative; width: 30px; height: 30px; border-radius: 6px; background: #fff; overflow: hidden; }
.brand-logo img { position: absolute; left: 5.5px; top: 6.58px; width: 19px; height: 16.84px; object-fit: cover; }
.brand-name { color: #fff; font-weight: 700; font-size: 16px; line-height: 19px; }

.top-actions { position: absolute; right: 19px; top: 13px; width: 185px; height: 28px; }
.top-btn { position: absolute; display: grid; place-items: center; border-radius: 6px; transition: background .15s; }
.top-btn:hover { background: rgba(255,255,255,.1); }
.top-btn.grid { left: 0; top: 0; width: 28px; height: 28px; }
.top-btn.grid .crop { width: 20px; height: 20px; }
.top-btn.help { left: 51px; top: 0; width: 28px; height: 28px; }
.help-dot { position: relative; width: 20.09px; height: 20.09px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.help-dot .mask { width: 21px; height: 19.17px; color: #000; position: absolute; left: 0; top: 0; }
.top-btn.bell { left: 104px; top: 0; width: 30px; height: 28px; }
.top-btn.bell .crop { width: 18px; height: 23px; }
.bell-badge { position: absolute; left: 8px; top: 2px; width: 8px; height: 8px; border-radius: 50%; background: #ff0004; }
.top-btn.user { left: 157px; top: 0; width: 28px; height: 28px; border-radius: 14px; overflow: hidden; }
.avatar-adobe { position: relative; width: 28px; height: 28px; border-radius: 14px; overflow: hidden; background: #fff; }
.avatar-adobe img { position: absolute; }

/* Sidebar */
.sidebar { position: absolute; left: 0; top: 71px; bottom: 8px; width: var(--sidebar-w); transition: width .25s ease; }
.nav-item {
  position: relative; display: flex; align-items: center; height: 44px;
  padding-left: 26px; color: #fff; font-size: 14px; border-radius: 4px;
  white-space: nowrap; transition: background .15s;
}
.nav-item:hover { background: #1a1a1a; }
.nav-item.is-active { background: #242424; font-weight: 700; padding-left: 21px; border-left: 5px solid #fff; }
.nav-item .nav-ic { position: relative; width: 18px; height: 23px; flex: none; display: flex; align-items: center; }
.nav-item .nav-label { margin-left: 16px; }
.nav-group-bottom { position: absolute; left: 0; bottom: 88px; width: 145px; }
.nav-item.shared .nav-label { margin-left: 15px; }
.sidebar-collapse { position: absolute; right: 28px; bottom: 33px; width: 18px; height: 19px; display: grid; place-items: center; border-radius: 4px; }
.sidebar-collapse:hover { background: #1a1a1a; }
.sidebar-collapse img { transform: rotate(90deg); width: 16px; height: 18px; transition: transform .25s; }

.content-ic { position: relative; width: 20.14px; height: 19.87px; }
.content-ic span { position: absolute; background: #000; border: .8px solid #fff; border-radius: 2px; }
.content-ic span:nth-child(1) { left: 0; top: 0; width: 13.52px; height: 14.07px; }
.content-ic span:nth-child(2) { left: 2.62px; top: 2.48px; width: 14.07px; height: 14.07px; }
.content-ic span:nth-child(3) { left: 5.24px; top: 4.96px; width: 14.9px; height: 14.9px; }

body.nav-collapsed { --sidebar-w: 72px; }
body.nav-collapsed .nav-label { display: none; }
body.nav-collapsed .nav-group-bottom { width: 72px; }
body.nav-collapsed .sidebar-collapse { right: 27px; }
body.nav-collapsed .sidebar-collapse img { transform: rotate(-90deg); }
body.nav-collapsed .brand-name { display: none; }

/* Main canvas */
.main {
  position: absolute; left: var(--sidebar-w); right: 0; top: var(--header-h); bottom: 0;
  border-radius: 15px 15px 0 0;
  background: linear-gradient(115deg, #fff 0%, #fafbfd 100%);
  overflow-y: auto; overflow-x: hidden;
  transition: left .25s ease;
}
.main-inner { position: relative; padding: 0 20px 21px; min-height: 970px; }

.crumbs { position: relative; height: 18px; top: 16px; font-size: 14px; display: flex; gap: 0; }
.crumbs a { color: var(--text-crumb); width: 107px; }
.crumbs a:hover { color: var(--ink); }
.crumbs strong { color: var(--ink-2); }

/* Campaign hero */
.hero { position: relative; margin-top: 28px; height: 114px; display: flex; gap: 18px; }
.hero-media { position: relative; width: 180px; height: 114px; border-radius: 5px; overflow: hidden; flex: none; }
.hero-media .bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media .fg { position: absolute; left: -7px; top: 0; width: 195px; height: 116px; object-fit: cover; }
.hero-body { position: relative; width: 846px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; background: var(--surface-chip); font-size: 12px; color: var(--ink); }
.hero-title { position: absolute; left: 0; top: 25px; height: 34px; display: flex; align-items: center; gap: 17px; }
.hero-title h1 { font-size: 29px; line-height: 34px; color: var(--ink); }
.badge-progress { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 4px; background: var(--blue-badge-bg); color: var(--blue-badge); font-size: 12px; font-weight: 700; }
.hero-sub { position: absolute; top: 63px; left: 0; font-size: 15px; line-height: 18px; color: var(--text-2); }
.hero-meta { position: absolute; top: 93px; left: 0; display: flex; height: 18px; }
.meta-item { position: relative; display: flex; align-items: center; height: 18px; font-size: 14px; color: var(--text-3); border-right: 1px solid var(--border-soft); margin-right: 22px; white-space: nowrap; }
.meta-item:last-child { margin-right: 0; }
.meta-item .late { color: #f00; margin-left: 12px; }
.meta-item .mask { color: var(--text-3); }
.meta-item.launch { width: 253px; }
.meta-item.markets { width: 112px; }
.meta-item.channels { width: 117px; }
.meta-item.audiences { width: 125px; }
.meta-item.experiences { width: 151px; }
.meta-item.markets .mask { width: 15px; height: 15px; margin: 0 10px 0 -1px; }
.meta-item.channels .crop { width: 17px; height: 17px; margin-right: 10px; top: -1px; }
.meta-item.audiences .mask { width: 20.41px; height: 14.48px; margin: 0 8px 0 -3px; }
.meta-item.experiences .mask { width: 15.21px; height: 17.05px; margin: 0 10px 0 -3px; }

.hero-actions { position: absolute; right: 8.54px; top: -17px; height: 39px; display: flex; align-items: center; gap: 12px; }
.updated { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #646b79; margin-right: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.green { background: var(--green); }
.dot.amber { background: var(--amber); }
.dot.red { background: var(--red); }
.dot.grey { background: var(--grey-dot); }
.dot.blue { background: var(--blue); }
.dot.sm { width: 7px; height: 7px; }
.updated .dot.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(8,184,80,.5); } 70% { box-shadow: 0 0 0 6px rgba(8,184,80,0); } 100% { box-shadow: 0 0 0 0 rgba(8,184,80,0); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 5px; border: 1px solid var(--border-btn);
  background: #fff; color: var(--ink-2); font-size: 13.3px; font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: #f4f5f7; }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 32px; font-size: 12px; padding: 0 12px; }
.btn.icon-only { width: 42px; padding: 0; }
.btn-dark { background: var(--btn-dark); border-color: var(--btn-dark); color: #fff; }
.btn-dark:hover { background: #2a2c2f; }
.btn-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-blue:hover { background: #004ae0; }
.btn-danger { color: #d0182c; }
.btn-split { position: relative; height: 39px; width: 149px; padding: 0; justify-content: flex-start; }
.btn-split .main-part { width: 111px; height: 100%; display: grid; place-items: center; padding-left: 4px; }
.btn-split .divider { position: absolute; left: 110.05px; top: 0; width: 1px; height: 100%; background: #fff; }
.btn-split .caret { width: 38px; height: 100%; display: grid; place-items: center; }
.btn-split .caret img { width: 17px; height: 8.1px; }

/* Tabs */
.tabs { position: relative; margin-top: 18px; height: 39px; border-bottom: 1px solid var(--border-nav); display: flex; gap: 40px; }
.tab { position: relative; height: 37px; padding-top: 9px; font-size: 14px; color: var(--text-tab); white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--ink-strong); }
.tab.is-active { color: var(--ink-strong); font-weight: 700; border-bottom: 2px solid var(--blue-tab); }

.page { position: relative; margin-top: 21px; }

/* ---------- Generic components ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.card-lg { border-radius: 8px; border-color: var(--border-3); }
.card-title { font-size: 16px; font-weight: 700; line-height: 19px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.section-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.muted { color: var(--text-muted); }
.sub { color: var(--text-sub); font-size: 12px; }
.chev { font-size: 21px; line-height: 25px; color: var(--chevron); }
.chev.soft { color: var(--chevron-soft); }
.info-i { font-weight: 400; font-size: 14px; color: var(--ink); }

.bar { position: relative; height: 7px; border-radius: 6px; background: var(--track); overflow: hidden; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar > i.green { background: var(--green-bar); }
.bar > i.amber { background: var(--amber); }
.bar > i.red { background: var(--red); }
.bar > i.blue { background: var(--blue); }
.bar > i.purple { background: var(--purple); }

.select {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 32px; padding: 0 9px 0 11px; border: 1px solid var(--border-input); border-radius: 4px;
  background: #fff; font-size: 12px; color: var(--ink); white-space: nowrap; transition: border-color .15s;
}
.select:hover { border-color: #b9bfca; }
.select .caret { width: 9px; height: 4px; display: inline-block; }
.select .caret::before { content: ""; display: block; width: 5px; height: 5px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translate(1px,-2.27px) rotate(45deg); border-radius: 1px; }
.select.is-open { border-color: var(--blue); }

.search {
  position: relative; display: flex; align-items: center; height: 35px; border: 1px solid var(--border-input);
  border-radius: 4px; background: #fff; padding-left: 26px; min-width: 130px;
}
.search .mask { position: absolute; left: 7.99px; top: 10px; width: 14px; height: 14px; color: var(--placeholder); }
.search input { border: 0; outline: 0; background: transparent; font-size: 12px; width: 100%; height: 100%; color: var(--ink); padding-right: 8px; }
.search input::placeholder { color: var(--placeholder); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,90,255,.12); }

.icon-btn { display: grid; place-items: center; height: 35px; border: 1px solid var(--border-input); border-radius: 4px; background: #fff; transition: background .15s, border-color .15s; }
.icon-btn:hover { background: #f4f5f7; }
.icon-btn.is-active { border-color: var(--ink); background: #f4f5f7; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.ready { background: #e6f7ed; color: #067a37; }
.badge.risk { background: #fff4d9; color: #a86a00; }
.badge.blocked { background: var(--red-soft); color: #d0182c; }
.badge.info { background: var(--blue-badge-bg); color: var(--blue-badge); }
.badge.neutral { background: var(--surface-chip); color: var(--ink); }
.badge.purple { background: #f0e6ff; color: #6a1fd6; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--border-input); background: #fff; font-size: 12px; color: var(--ink); transition: all .15s; white-space: nowrap; }
.chip:hover { border-color: #b9bfca; }
.chip.is-active { background: var(--btn-dark); border-color: var(--btn-dark); color: #fff; }
.chip .count { font-weight: 700; opacity: .7; }

.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.avatar.lg { width: 36px; height: 36px; font-size: 13px; }

.flag { position: relative; width: 29px; height: 29px; border-radius: 50%; border: 1px solid var(--border-soft); overflow: hidden; flex: none; }
.flag.sm { width: 20px; height: 20px; }
.flag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flag.us img { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.flag.fr { background: linear-gradient(90deg, #003da5 33%, #fff 33%, #fff 66%, #ff1437 66%); }
.flag.de { background: linear-gradient(180deg, #000 33%, #fa0019 33%, #fa0019 66%, #ffc400 66%); }
.flag.jp { background: radial-gradient(circle at 50% 50%, #fa1938 0 29.6%, #fff 29.6%); }
.flag.ca { background: radial-gradient(circle at 50% 50%, #e8112d 0 18%, transparent 18%), linear-gradient(90deg, #e8112d 27%, #fff 27%, #fff 73%, #e8112d 73%); }
.flag.br { background: radial-gradient(circle at 50% 50%, #002776 0 22%, #ffdf00 22% 40%, #009b3a 40%); }
.flag.in { background: radial-gradient(circle at 50% 50%, #06038d 0 10%, transparent 10%), linear-gradient(180deg, #ff9933 33%, #fff 33%, #fff 66%, #138808 66%); }

.thumb { position: relative; overflow: hidden; border-radius: 5px; flex: none; background: #e9ecf0; }
.thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 45%; }

/* Toggle */
.switch { position: relative; width: 34px; height: 20px; border-radius: 10px; background: #cfd4dc; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.switch.is-on { background: var(--blue); }
.switch.is-on::after { transform: translateX(14px); }

/* Checkbox */
.check { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #b9bfca; background: #fff; display: inline-grid; place-items: center; flex: none; transition: all .15s; }
.check.is-on { background: var(--blue); border-color: var(--blue); }
.check.is-on::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

/* Dropdown menu */
.menu {
  position: fixed; z-index: 60; min-width: 180px; padding: 6px; border-radius: 8px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(18,20,25,.14), 0 2px 6px rgba(18,20,25,.06);
  font-size: 13px; animation: pop .14s ease-out;
}
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 5px; text-align: left; color: var(--ink); }
.menu button:hover, .menu a:hover { background: #f3f4f6; }
.menu .is-selected { font-weight: 700; }
.menu .is-selected::after { content: "✓"; margin-left: auto; color: var(--blue); }
.menu hr { border: 0; border-top: 1px solid var(--border-soft); margin: 6px 2px; }
.menu .danger { color: #d0182c; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.notif-menu { width: 340px; padding: 0; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--border-soft); }
.notif-head strong { font-size: 14px; }
.notif-head button { width: auto; padding: 0; color: var(--blue); font-size: 12px; }
.notif-head button:hover { background: none; text-decoration: underline; }
.notif-item { display: flex !important; gap: 12px !important; align-items: flex-start !important; padding: 12px 16px !important; border-radius: 0 !important; border-bottom: 1px solid #f3f4f6; }
.notif-item .dot { margin-top: 4px; }
.notif-item p { font-size: 12px; line-height: 17px; }
.notif-item small { color: var(--text-muted); font-size: 11px; }
.notif-item.is-read .dot { visibility: hidden; }

/* Modal */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(9,10,10,.45); display: grid; place-items: center; animation: fade .18s ease-out; }
.modal { width: 520px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px); overflow: auto; background: #fff; border-radius: 10px; box-shadow: 0 24px 64px rgba(0,0,0,.28); animation: rise .2s ease-out; }
.modal.wide { width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border-soft); }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 20px 22px; font-size: 13px; color: var(--text-2); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border-soft); background: #fafbfc; border-radius: 0 0 10px 10px; }
.close-x { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: 20px; color: var(--text-muted); }
.close-x:hover { background: #f3f4f6; color: var(--ink); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Drawer */
.drawer-overlay { position: fixed; inset: 0; z-index: 65; background: rgba(9,10,10,.25); animation: fade .18s; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; z-index: 66; width: 420px; background: #fff; box-shadow: -16px 0 40px rgba(0,0,0,.16); display: flex; flex-direction: column; animation: slide .25s cubic-bezier(.2,.8,.2,1); }
.drawer-body { flex: 1; overflow: auto; padding: 20px 22px; }
@keyframes slide { from { transform: translateX(100%); } to { transform: none; } }

/* Toast */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 8px; background: #121419; color: #fff; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: rise .2s ease-out; }
.toast .ok { width: 18px; height: 18px; border-radius: 50%; background: var(--green-ok); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .25s; }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink); }
.field .hint { font-size: 11px; color: var(--text-muted); }
.input, .textarea {
  height: 36px; padding: 0 12px; border-radius: 5px; border: 1px solid var(--border-input); background: #fff;
  font-size: 13px; color: var(--ink); outline: 0; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,90,255,.12); }

.empty { padding: 40px 0; text-align: center; color: var(--text-muted); font-size: 13px; }

/* Scrollbars */
.main::-webkit-scrollbar, .scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.main::-webkit-scrollbar-thumb, .scroll::-webkit-scrollbar-thumb { background: #d6dae1; border-radius: 4px; }
.main::-webkit-scrollbar-track { background: transparent; }

.fade-in { animation: rise .35s ease-out both; }
