@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font-family:
    "DM Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f2f0f7;
  background: #101014;
  font-synthesis: none;
  --bg: #101014;
  --panel: #19191f;
  --panel2: #1f1f27;
  --border: #2b2b35;
  --muted: #a3a1af;
  --purple: #b49af5;
  --accent: #a587ed;
  --text: #f2f0f7;
  --green: #94caae;
  --sidebar: 224px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
button {
  background: none;
  border: 0;
}
input,
textarea,
select {
  color: var(--text);
  background: #141419;
  border: 1px solid #34333f;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
  cursor: pointer;
  flex-shrink: 0;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 100px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, "DM Sans", sans-serif;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h1 {
  font-size: 34px;
  line-height: 1.25;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.65;
}
small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope, sans-serif;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.brand-dot {
  color: var(--purple);
}
.brand-symbol {
  width: 27px;
  height: 30px;
  display: block;
  position: relative;
  transform: rotate(-3deg);
  margin-right: 3px;
}
.brand-symbol i {
  position: absolute;
  width: 10px;
  height: 29px;
  background: var(--purple);
  transform: skew(-23deg);
  border-radius: 2px;
  left: 4px;
  top: 0;
}
.brand-symbol i + i {
  left: 18px;
  height: 18px;
  top: 11px;
  transform: skew(23deg);
  background: #c5b3f3;
}
.btn {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #3b3948;
  border-radius: 8px;
  background: #26252e;
  color: #e3deee;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.btn:hover {
  background: #33303e;
  border-color: #645973;
}
.btn.primary {
  background: #ac8eea;
  color: #1d142d;
  border-color: #ac8eea;
  font-weight: 650;
}
.btn.primary:hover {
  background: #c2a7fc;
}
.btn.ghost {
  background: transparent;
  border-color: var(--border);
}
.btn.small {
  min-height: 34px;
  padding: 6px 10px;
}
.btn.danger {
  color: #e9aca6;
  border-color: #5c393c;
  background: #3a282b;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: #2a2734;
  color: var(--text);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid #36333d;
  background: #25232c;
  color: #bbb4c7;
  line-height: 1.4;
}
.badge.purple {
  background: #30233f;
  border-color: #4b365f;
  color: #cbb0f9;
}
.badge.green {
  background: #233129;
  border-color: #33493a;
  color: #aad2b7;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #362c46;
  border: 1px solid #544768;
  color: #d4c1f6;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spread {
  justify-content: space-between;
}
.grow {
  flex: 1;
}
.hidden {
  display: none !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 29px 18px 20px;
  border-right: 1px solid var(--border);
  background: #141418;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  padding-left: 10px;
  margin-bottom: 29px;
}
.workspace {
  padding: 14px 12px;
  border: 1px solid #35313f;
  background: #211d2a;
  border-radius: 10px;
  margin-bottom: 29px;
  display: flex;
  gap: 11px;
  align-items: center;
}
.workspace > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #c4acf4;
  background: #34293f;
  border-radius: 8px;
}
.workspace strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.workspace small {
  display: block;
  color: #a89bb8;
  font-size: 12px;
  margin-top: 3px;
}
.nav-label {
  font-size: 12px;
  color: #85818f;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 12px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 11px 12px;
  font-size: 14px;
  color: #ada7b8;
  border: 1px solid transparent;
  border-radius: 8px;
}
.nav button:hover {
  background: #201e27;
}
.nav button.active {
  background: #2b2438;
  border-color: #443653;
  color: #d6c3fa;
}
.nav button .nav-count {
  margin-left: auto;
  font-size: 12px;
  color: #c4abea;
  background: #423251;
  padding: 1px 6px;
  border-radius: 5px;
}
.sidebar-foot {
  margin-top: auto;
}
.local-note {
  padding: 14px 11px;
  margin: 24px 0;
  border: 1px solid #302b3a;
  border-radius: 9px;
  color: #aaa1b9;
  font-size: 13px;
  line-height: 1.55;
}
.local-note strong {
  display: block;
  color: #cdb5f4;
  font-weight: 500;
  margin-bottom: 5px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.profile strong {
  font-size: 14px;
  font-weight: 500;
  display: block;
}
.profile small {
  color: var(--muted);
  font-size: 12px;
}
.shell {
  margin-left: var(--sidebar);
  min-width: 0;
}
.topbar {
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  gap: 12px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.breadcrumb strong {
  color: #dfd8ea;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  gap: 13px;
  align-items: center;
}
.mobile-menu {
  display: none;
}
.main {
  padding: 31px 32px 36px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
}
.page-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 9px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.metric {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  text-align: left;
  position: relative;
}
.metric:hover,
.metric.selected {
  border-color: #5a476e;
  background: #211b2b;
}
.metric-label {
  font-size: 14px;
  color: #aca6b7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric .icon {
  color: #a396b7;
  width: 17px;
}
.metric-value {
  font-family: Manrope, sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 10px 0 4px;
}
.metric-value.purple {
  color: #c4a6f5;
}
.metric-value.green {
  color: #a3d6b7;
}
.metric small {
  font-size: 12px;
  color: #96909f;
}
.metric-bar {
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  background: #292531;
  border-radius: 3px;
}
.metric-bar i {
  display: block;
  height: 100%;
  background: var(--purple);
  border-radius: 3px;
}
.viewbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 19px;
  padding-bottom: 14px;
}
.view-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.view-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #a5a0af;
  font-size: 14px;
  border-radius: 7px;
}
.view-tabs button.active {
  background: #2a2434;
  color: #d3bdf7;
}
.view-tabs button:hover {
  background: #24212b;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  flex: 1;
  min-width: 185px;
  max-width: 300px;
}
.search > .icon {
  position: absolute;
  left: 12px;
  color: #9990a7;
  width: 17px;
}
.search input {
  padding-left: 39px;
  width: 100%;
  height: 39px;
  background: #19181f;
}
.search kbd {
  position: absolute;
  right: 11px;
  font-size: 12px;
  color: #80778d;
  border: 1px solid #383140;
  padding: 1px 4px;
  border-radius: 4px;
}
.filters select,
.filters input[type="month"] {
  height: 39px;
  background: #19181f;
  max-width: 220px;
  padding: 8px 11px;
}
.filter-summary {
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.column {
  min-width: 0;
  background: #15151b;
  border: 1px solid #25242e;
  border-radius: 10px;
  padding: 10px;
  min-height: 380px;
}
.column.drop-over {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
  background: #272032;
}
.col-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 550;
  color: #d4cddd;
}
.col-head .count {
  margin-left: auto;
  font-size: 12px;
  color: #aba1b9;
  background: #29242f;
  padding: 1px 6px;
  border-radius: 5px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--status);
  flex-shrink: 0;
}
.card {
  position: relative;
  background: #1e1d25;
  border: 1px solid #322d3b;
  border-radius: 9px;
  margin-bottom: 10px;
  overflow: hidden;
  transition:
    border-color 0.16s,
    transform 0.16s;
}
.card:hover {
  border-color: #685278;
  transform: translateY(-2px);
}
.card.selected {
  border-color: var(--purple);
  background: #292034;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 11px 0;
  font-size: 12px;
  color: #b9abc9;
}
.card-top .client-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.card-top .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
  border-radius: 7px;
}
.card-check {
  margin-left: auto;
  opacity: 0.35;
}
.card:hover .card-check,
.card.selected .card-check {
  opacity: 1;
}
.card-open {
  display: block;
  text-align: left;
  width: 100%;
  padding: 10px 13px 13px;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
  color: #f0e9f7;
}
.card-title .icon {
  width: 15px;
  color: #7b6a8b;
}
.card-description {
  font-size: 13px;
  color: #a49aaf;
  line-height: 1.55;
  margin: 8px 0 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-note {
  font-size: 12px;
  line-height: 1.5;
  background: #302637;
  color: #cbb5dc;
  border: 1px solid #44334f;
  padding: 7px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-bottom {
  padding-top: 10px;
  border-top: 1px solid #302936;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #a49aaf;
}
.card-date {
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-date .icon {
  width: 13px;
  height: 13px;
}
.overdue {
  color: #e2ac95;
}
.card .type {
  font-size: 12px;
  color: #b7a9c8;
  display: flex;
  gap: 5px;
  align-items: center;
}
.type .icon {
  height: 13px;
  width: 13px;
}
.column-empty {
  border: 1px dashed #36303f;
  border-radius: 8px;
  padding: 29px 10px;
  text-align: center;
  font-size: 13px;
  color: #9788a6;
  margin-top: 3px;
  line-height: 1.6;
}
.column-add {
  width: 100%;
  padding: 9px;
  color: #9e8caf;
  font-size: 13px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.column-add:hover {
  background: #25202c;
  color: #d3bdf7;
}
.column-add .icon {
  height: 14px;
  width: 14px;
}
.bulk {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #5c4772;
  border-radius: 10px;
  background: #30243e;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px #0003;
  flex-wrap: wrap;
  font-size: 14px;
}
.bulk select {
  padding: 7px;
}
.empty {
  padding: 54px 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #3a3245;
  border-radius: 12px;
  line-height: 1.65;
}
.empty h2 {
  color: var(--text);
  margin: 12px 0 5px;
}
.empty .btn {
  margin-top: 20px;
}
.section-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 19px;
  font-size: 12px;
  color: #8f839d;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 11px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 14px;
}
th {
  text-align: left;
  color: #a39aaf;
  font-weight: 500;
  background: #19161f;
  font-size: 13px;
}
td,
th {
  padding: 14px 15px;
  border-bottom: 1px solid #2b2532;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #211b29;
}
td .text-button {
  color: #e8dff1;
  font-weight: 600;
}
td small {
  color: var(--muted);
}
.text-button {
  color: var(--purple);
  padding: 0;
  font-size: 14px;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-nav strong {
  min-width: 170px;
  text-align: center;
  font-size: 15px;
  text-transform: capitalize;
}
.calendar-scroll {
  overflow: auto;
}
.calendar {
  min-width: 700px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.cal-label {
  padding: 13px;
  color: #a99db6;
  font-size: 13px;
  background: #1a161f;
  border-bottom: 1px solid var(--border);
}
.cal-day {
  min-height: 142px;
  padding: 8px;
  border-bottom: 1px solid #302838;
  border-right: 1px solid #302838;
  min-width: 0;
  background: #17141c;
}
.cal-day.outside {
  background: #121014;
  opacity: 0.58;
}
.cal-day.today {
  background: #23192e;
}
.day-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  font-size: 13px;
  color: #baadc6;
}
.day-top span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
}
.today .day-top span {
  background: #a587ed;
  color: #18101f;
  border-radius: 7px;
  font-weight: 600;
}
.cal-task {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  padding: 7px;
  margin-bottom: 5px;
  background: #2b2234;
  border-left: 2px solid var(--status);
  border-radius: 4px;
  color: #dfd0ea;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-task:hover {
  background: #3a2b47;
}
.week .cal-day {
  min-height: 420px;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.panel {
  padding: 23px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
}
.client-card .avatar {
  width: 44px;
  height: 44px;
  font-size: 15px;
  border-radius: 12px;
}
.client-card h3 {
  font-size: 18px;
}
.client-card p {
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 19px 0;
  min-height: 65px;
}
.progress {
  height: 5px;
  background: #332a3d;
  border-radius: 5px;
  overflow: hidden;
  margin: 16px 0 10px;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--purple);
}
.activity {
  display: flex;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.activity p {
  font-size: 14px;
}
.activity small {
  font-size: 13px;
  color: var(--muted);
}
.template-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 90px 1fr 36px;
  gap: 12px;
  margin-bottom: 12px;
}
.template-header {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 13px;
}
.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--purple);
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-aside {
  padding: 50px 60px;
  background: #17131d;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.login-aside .login-copy {
  margin: auto 0;
  max-width: 470px;
}
.login-copy h1 {
  font-size: 52px;
  line-height: 1.15;
  margin: 22px 0;
}
.login-copy h1 em {
  color: var(--purple);
  font-style: normal;
}
.login-copy p {
  color: #b4a8c2;
  margin-bottom: 30px;
}
.login-stages {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-form {
  width: 370px;
  max-width: 100%;
}
.login-form h2 {
  font-size: 29px;
  margin-bottom: 10px;
}
.login-form > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 19px;
  font-size: 14px;
  color: #c8c2d2;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.form-error {
  color: #efb0b6;
  background: #39232a;
  padding: 11px;
  border-radius: 7px;
  font-size: 14px;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.full {
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.span2 {
  grid-column: 1/-1;
}
dialog {
  border: 1px solid #4c3d5d;
  border-radius: 16px;
  background: #19151f;
  color: var(--text);
  padding: 0;
  max-height: 92dvh;
  width: 640px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 25px 100px #0008;
}
dialog::backdrop {
  background: #06040aaa;
  backdrop-filter: blur(5px);
}
dialog.wide {
  width: 1190px;
}
.dialog-head {
  padding: 22px 26px;
  border-bottom: 1px solid #342b3d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  background: #19151ff5;
  z-index: 2;
}
.dialog-head h2 {
  font-size: 23px;
}
.dialog-head .eyebrow {
  margin-bottom: 5px;
}
.dialog-body {
  padding: 24px 26px;
}
.dialog-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 26px;
  border-top: 1px solid #342b3d;
  background: #19151f;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.review-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
}
.review-media {
  min-width: 0;
}
.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.media-slot {
  min-width: 0;
}
.media-title {
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.media-frame {
  aspect-ratio: 9/16;
  width: 100%;
  background: #100c16;
  border: 1px solid #3c2c4c;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  gap: 12px;
  color: #a48eb7;
  font-size: 14px;
  overflow: hidden;
}
.media-frame > .icon {
  width: 30px;
  height: 30px;
  color: #806295;
}
.media-frame video,
.media-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  object-fit: contain;
}
.media-frame:has(video),
.media-frame:has(iframe) {
  padding: 0;
}
.media-note {
  font-size: 13px;
  color: #a597b1;
  line-height: 1.6;
  margin-top: 15px;
}
.media-links {
  display: flex;
  gap: 12px;
  margin-top: 11px;
  font-size: 13px;
}
.review-feedback {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #44334e;
  border-radius: 10px;
  background: #231a2b;
}
.review-feedback h3 {
  margin-bottom: 10px;
}
.review-feedback p {
  font-size: 14px;
  color: #cbb9d8;
  white-space: pre-wrap;
}
.saved-meta {
  color: #8f819b;
  font-size: 12px;
  margin-top: 10px;
}
.error-banner {
  padding: 14px;
  background: #382028;
  border: 1px solid #633644;
  border-radius: 8px;
  color: #efb0bd;
  font-size: 14px;
  margin-bottom: 18px;
}
.toast {
  opacity: 0;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #332440;
  border: 1px solid #6a4a83;
  color: #f0dcff;
  border-radius: 10px;
  padding: 13px 20px;
  box-shadow: 0 8px 35px #0007;
  font-size: 14px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: calc(100vw - 32px);
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.mobile-shade {
  display: none;
}
@media (min-width: 1600px) {
  .main {
    padding: 36px 40px;
  }
  .board {
    gap: 16px;
  }
  .card-open {
    padding: 12px 16px 16px;
  }
  .card-top {
    padding: 15px 14px 0;
  }
  .column {
    padding: 13px;
  }
  .card-title {
    font-size: 18px;
  }
}
@media (max-width: 1250px) {
  :root {
    --sidebar: 200px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .main {
    padding: 25px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .board {
    grid-template-columns: repeat(5, 230px);
    overflow-x: auto;
    padding-bottom: 14px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}
@media (max-width: 850px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    width: 244px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-shade.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #0008;
    z-index: 29;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .topbar-right .top-date {
    display: none;
  }
  .main {
    padding: 24px 18px;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 28px;
  }
  .heading-actions .btn.ghost {
    display: none;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .review-layout {
    grid-template-columns: 1fr;
  }
  .media-frame {
    max-height: 480px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-aside {
    padding: 25px;
    border: 0;
  }
  .login-copy {
    display: none;
  }
  .login-main {
    padding: 35px 24px 70px;
    align-items: flex-start;
  }
  .login-aside > small {
    display: none;
  }
  .filters .filter-summary {
    width: 100%;
    margin: 0;
  }
  .search {
    max-width: none;
  }
  .viewbar {
    flex-wrap: wrap;
  }
  .section-foot {
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  .page-heading {
    flex-direction: column;
    gap: 17px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions .btn.primary {
    width: 100%;
  }
  .metrics {
    gap: 9px;
  }
  .metric {
    padding: 14px;
  }
  .metric-label {
    font-size: 13px;
  }
  .metric small {
    font-size: 12px;
  }
  .metric-value {
    font-size: 28px;
  }
  .topbar .breadcrumb {
    font-size: 12px;
    gap: 7px;
  }
  .topbar-right .badge {
    font-size: 12px;
  }
  .client-grid {
    grid-template-columns: 1fr;
  }
  .filters select {
    flex: 1;
    max-width: none;
  }
  .filters input[type="month"] {
    flex: 1;
    max-width: none;
  }
  .search {
    flex-basis: 100%;
  }
  .view-tabs button {
    font-size: 13px;
    padding: 8px;
  }
  .view-tabs .icon {
    width: 16px;
  }
  .dialog-body {
    padding: 18px;
  }
  .dialog-head {
    padding: 18px;
  }
  .dialog-foot {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .media-pair {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .media-frame {
    font-size: 12px;
    padding: 9px;
  }
  .template-row {
    grid-template-columns: 1fr 1fr;
  }
  .template-row .icon-btn {
    justify-self: end;
  }
  .template-header {
    display: none;
  }
  .calendar-nav strong {
    min-width: 130px;
  }
  .section-foot span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .calendar-nav {
    width: 100%;
    justify-content: space-between;
  }
  .filters select {
    min-width: 150px;
  }
}
/* Editor preview uses server-enforced editor permissions. */
.role-switch {
  width: 100%;
  margin-top: 22px;
  font-size: 14px;
  white-space: normal;
}
.editor-view-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 32px;
  background: #2c223a;
  border-bottom: 1px solid #514064;
  color: #dac7f4;
  font-size: 14px;
}
.calendar-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 14px;
}
.calendar-selection label {
  cursor: pointer;
}
.calendar-selection .muted {
  font-size: 13px;
}
.cal-entry {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  border-left: 3px solid var(--status);
  border-radius: 7px;
  background: #261f30;
  padding: 4px;
}
.cal-entry > input {
  margin-top: 8px;
  width: 15px;
  height: 15px;
}
.cal-entry .cal-task {
  border: 0;
  margin: 0;
  padding: 5px 3px;
  background: none;
  min-width: 0;
  flex: 1;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cal-task > span,
.cal-task > small {
  display: block;
  margin-top: 4px;
}
.cal-entry.selected {
  background: #3b2b4b;
  border-color: #a587ed;
}
.cal-entry[draggable="true"] {
  cursor: grab;
}
.cal-entry[draggable="true"]:active {
  cursor: grabbing;
}
.cal-entry:hover {
  background: #33263f;
}
.cal-day.drop-over {
  background: #3b294e !important;
  outline: 2px dashed #c4a1f4;
  outline-offset: -4px;
}
.cal-day .day-top .row {
  gap: 3px;
}
.calendar.week {
  min-width: 1260px;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
}
.week .cal-label {
  font-size: 16px;
  padding: 18px 14px;
}
.week .cal-day {
  min-height: max(620px, 70vh);
  padding: 12px;
}
.week .day-top {
  margin-bottom: 18px;
}
.week .day-top > span {
  font-size: 23px;
  height: 38px;
  width: 38px;
}
.week .cal-entry {
  padding: 10px 7px;
  margin-bottom: 12px;
}
.week .cal-task {
  font-size: 15px;
  line-height: 1.6;
}
.week .cal-task > strong {
  font-size: 16px;
}
.week .cal-task > small {
  font-size: 13px;
  margin-top: 10px;
}
.week-empty {
  color: #8c7b9b;
  font-size: 14px;
  text-align: center;
  padding: 30px 4px;
}
.week-expanded .metrics {
  display: none;
}
.week-expanded .main {
  padding-left: 22px;
  padding-right: 22px;
}
.week-expanded .page-heading {
  margin-bottom: 18px;
}
.bulk input[type="date"] {
  padding: 7px;
  max-width: 165px;
}
@media (max-width: 850px) {
  .editor-view-banner {
    padding: 12px 18px;
  }
  .calendar.week {
    min-width: 1470px;
    grid-template-columns: repeat(7, 210px);
  }
  .week .cal-day {
    min-height: 65vh;
  }
}
