@font-face {
  font-family: "MP Amatic Chalk";
  src: url("../fonts/amatic-sc-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MP Amatic Chalk";
  src: url("../fonts/amatic-sc-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MP Cabin Sketch";
  src: url("../fonts/cabin-sketch-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MP Cabin Sketch";
  src: url("../fonts/cabin-sketch-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MP Fredericka";
  src: url("../fonts/fredericka-the-great-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MP Rock Salt";
  src: url("../fonts/rock-salt-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070b10;
  --panel: #111821;
  --panel-2: #151e2a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f7f4ee;
  --muted: #96a1b3;
  --blue: #4774df;
  --pink: #cf236d;
  --pink-dark: #72113d;
  --paper-shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--text);
  font-family: Inter, Arial, Tahoma, sans-serif;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

.project-start {
  position: fixed;
  inset: 74px 0 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    rgba(7, 11, 16, 0.96);
  background-size: 28px 28px;
}

.project-start[hidden] {
  display: none;
}

.project-start-card {
  width: min(920px, 100%);
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.project-kicker {
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-start h1 {
  margin: 8px 0 8px;
  font-size: 38px;
  line-height: 1.05;
}

.project-start p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.project-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.project-steps li {
  min-height: 72px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.project-steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  text-align: center;
  line-height: 22px;
}

.project-name-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.project-name-field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #080d14;
  color: var(--text);
  font-weight: 850;
}

.project-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-type-grid button {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111927;
  text-align: left;
}

.project-type-grid button:hover {
  border-color: rgba(207, 35, 109, 0.78);
  background: rgba(207, 35, 109, 0.16);
}

.project-type-grid strong,
.project-type-grid span {
  display: block;
}

.project-type-grid strong {
  margin-bottom: 7px;
  font-size: 16px;
}

.project-type-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-overview {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-overview-head,
.project-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.project-overview-head {
  margin-bottom: 10px;
}

.project-overview-head strong {
  font-size: 15px;
}

.project-overview button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111927;
  font-size: 13px;
  font-weight: 900;
}

.project-overview button:hover {
  border-color: rgba(207, 35, 109, 0.72);
}

#projectList {
  width: 100%;
  min-height: 116px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #080d14;
  color: var(--text);
  font-weight: 800;
}

#projectList option {
  padding: 7px;
}

.project-actions button:first-child {
  flex: 1;
  background: var(--pink);
  border-color: transparent;
}

.project-actions button:last-child {
  min-width: 120px;
  background: rgba(110, 23, 43, 0.55);
}

body.project-start-open .workspace {
  filter: blur(2px);
  pointer-events: none;
}

.app-legal-links {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.76);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.app-legal-links a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.app-legal-links a:hover {
  color: var(--pink);
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 58px;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 27, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.cookie-banner.is-open {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-banner strong {
  display: block;
  color: var(--text);
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.n6-shell {
  height: 100vh;
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr);
}

.topbar {
  display: grid;
  grid-template-columns: 104px minmax(210px, 260px) 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  background: rgba(5, 9, 14, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

.brand strong {
  display: inline-block;
  font-size: 24px;
  letter-spacing: 0;
  position: relative;
}

.brand strong::after {
  content: "";
  position: absolute;
  left: 48px;
  right: -2px;
  bottom: 2px;
  height: 4px;
  background: var(--pink);
  border-radius: 99px;
}

.brand span {
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 2px;
  background: #7c879a;
}

.customer-select,
.top-actions,
.week-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-select {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.85);
}

.ghost-btn.compact {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.customer-select span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

select,
input,
textarea {
  min-width: 0;
  color: var(--text);
  background: #111822;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
}

textarea {
  min-height: 92px;
  resize: vertical;
  padding: 12px;
}

.customer-select select {
  width: 100%;
  padding: 10px 38px 10px 12px;
}

.week-nav {
  justify-content: center;
}

.week-pill,
.icon-btn,
.ghost-btn,
.primary-btn,
.format-btn,
.avatar-btn,
.square-btn {
  border: 1px solid var(--line);
  background: #141c28;
  border-radius: 7px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 750;
}

.week-pill {
  min-width: 76px;
  color: #c8cfdb;
  background: transparent;
  border-color: transparent;
}

.week-pill.active {
  color: #fff;
  background: linear-gradient(90deg, var(--pink-dark), #9d174f);
}

.icon-btn,
.square-btn,
.avatar-btn {
  width: 42px;
  padding: 0;
  font-size: 24px;
}

.ghost-btn {
  background: rgba(15, 22, 31, 0.85);
}

.primary-btn {
  background: linear-gradient(90deg, #a4165a, var(--pink));
  border-color: rgba(255, 255, 255, 0.1);
}

.avatar-btn {
  border-radius: 999px;
  background: #15365c;
  font-size: 14px;
}

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 74px 316px minmax(520px, 1fr) 344px;
}

body.ai-addons-open .workspace {
  grid-template-columns: 74px 316px minmax(520px, 1fr) 344px minmax(420px, 520px);
}

.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 22px 9px;
  background: rgba(7, 12, 18, 0.9);
  border-right: 1px solid var(--line);
}

.rail-btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #a7b0be;
  font-size: 20px;
  font-weight: 750;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.rail-btn.active,
.rail-btn:hover {
  background: rgba(207, 35, 109, 0.18);
  border-color: rgba(207, 35, 109, 0.62);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(207, 35, 109, 0.14);
}

.left-panel,
.inspector {
  min-height: 0;
  overflow: auto;
  padding: 24px;
  background: rgba(11, 17, 24, 0.84);
}

.left-panel {
  border-right: 1px solid var(--line);
}

.inspector {
  border-left: 1px solid var(--line);
}

.ai-addons-panel {
  display: none;
  min-width: 0;
  min-height: 0;
  background: rgba(8, 12, 18, 0.96);
  border-left: 1px solid var(--line);
}

body.ai-addons-open .ai-addons-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.ai-addons-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.ai-addons-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ai-addons-head strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.ai-addons-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.ai-addons-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #141c28;
  color: #c8cfdb;
  font-weight: 850;
}

.ai-addons-tabs button.active {
  color: #fff;
  background: linear-gradient(90deg, var(--pink-dark), var(--pink));
}

.ai-addons-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #070a0f;
}

.panel-card {
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.78);
}

.panel-card-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.panel-card-title {
  flex: 1;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.panel-card-arrow {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #b8c2d1;
  font-size: 18px;
  transition: transform 0.16s ease;
}

.panel-help-btn {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(207, 35, 109, 0.62);
  border-radius: 999px;
  background: rgba(207, 35, 109, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
}

.panel-card-body {
  margin-top: 14px;
}

.text-block-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-card.is-collapsed .panel-card-arrow,
.inspector-card.is-collapsed .panel-card-arrow {
  transform: rotate(-90deg);
}

.panel-card.is-collapsed .panel-card-body,
.inspector-card.is-collapsed .panel-card-body {
  display: none;
}

.inspector-card {
  margin-bottom: 14px;
  padding: 16px;
  background: rgba(14, 21, 30, 0.7);
}

.inspector-card .panel-card-title {
  font-size: 12px;
}

.week-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(24, 34, 47, 0.88), rgba(14, 21, 30, 0.9));
  border-color: rgba(255, 255, 255, 0.11);
}

.week-card-head {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  margin-bottom: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.week-card-title {
  flex: 1;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.week-card-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(207, 35, 109, 0.38);
  border-radius: 999px;
  color: #f6a4c9;
  background: rgba(207, 35, 109, 0.12);
  font-size: 11px;
  font-weight: 850;
}

.week-card-arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #b8c2d1;
  font-size: 18px;
  transition: transform 0.16s ease;
}

.week-card.is-collapsed .week-card-arrow {
  transform: rotate(-90deg);
}

.week-card.is-collapsed .week-card-body {
  display: none;
}

.week-card-copy {
  max-width: 220px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.week-card .field-grid {
  gap: 10px;
  margin-bottom: 14px;
}

.week-card .field-grid label {
  gap: 6px;
  color: #c9d1df;
  font-size: 12px;
  font-weight: 800;
}

.week-card .field-grid input {
  height: 42px;
  padding: 9px 12px;
  background: #111924;
  border-color: rgba(255, 255, 255, 0.13);
  font-size: 17px;
  font-weight: 750;
}

.week-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.weekend-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.weekend-actions .ghost-btn {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.1;
}

.weekend-actions .ghost-btn.active {
  color: #fff;
  background: rgba(207, 35, 109, 0.28);
  border-color: rgba(207, 35, 109, 0.72);
}

.week-btn {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.1;
}

.week-btn.wide {
  grid-column: span 2;
}

.week-btn.danger {
  color: #ffb8b8;
  background: rgba(220, 56, 56, 0.13);
  border-color: rgba(220, 56, 56, 0.32);
}

.ghost-btn.danger {
  color: #ffb8b8;
  background: rgba(220, 56, 56, 0.13);
  border-color: rgba(220, 56, 56, 0.32);
}

.license-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(207, 35, 109, 0.28);
  border-radius: 8px;
  background: rgba(207, 35, 109, 0.1);
}

.license-summary span,
.license-summary small {
  color: #aeb8c7;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.license-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.layout-card.is-locked {
  opacity: 0.48;
  cursor: not-allowed;
}

.layout-card.is-locked::after {
  content: "Upgrade";
  display: inline-flex;
  width: max-content;
  margin-top: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(207, 35, 109, 0.38);
  border-radius: 999px;
  color: #f2a6c8;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-manager .stacked {
  margin-bottom: 14px;
}

.customer-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.license-key-hint {
  margin: -2px 0 14px;
  color: #9ca7b7;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.customer-manager-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.customer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#customerManagerStatus {
  min-height: 18px;
  margin: 12px 0 0;
  color: #b6c1d1;
  font-size: 12px;
  line-height: 1.3;
}

#licenseAdminStatus {
  min-height: 18px;
  margin: 12px 0 0;
  color: #b6c1d1;
  font-size: 12px;
  line-height: 1.3;
}

#adminStatus {
  min-height: 18px;
  margin: 12px 0 0;
  color: #b6c1d1;
  font-size: 12px;
  line-height: 1.3;
}

.admin-session {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(207, 35, 109, 0.28);
  border-radius: 8px;
  background: rgba(207, 35, 109, 0.1);
}

.admin-session > div {
  grid-column: 1 / -1;
}

.admin-session .ghost-btn {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
}

.admin-session span {
  display: block;
  color: #aeb8c7;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-session strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
}

.admin-customer-list {
  display: grid;
  gap: 12px;
}

.admin-empty {
  margin: 0;
  color: #8f9bad;
  font-size: 13px;
  line-height: 1.35;
}

.admin-workspace {
  min-height: 0;
  overflow: auto;
  padding: 28px;
}

.admin-workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 18, 27, 0.86);
}

.admin-workspace-head span {
  display: block;
  margin-bottom: 7px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-workspace-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.admin-workspace-head p {
  margin: 8px 0 0;
  color: #aeb8c7;
  font-size: 14px;
  font-weight: 650;
}

.admin-platform {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
}

.admin-platform-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 4px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-platform-nav button {
  width: calc(100% - 18px);
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca7b7;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-platform-nav button.active {
  color: #fff;
}

.admin-platform-nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.admin-platform-content {
  min-width: 0;
}

.admin-platform-panel[hidden] {
  display: none;
}

.admin-dashboard,
.admin-section-head {
  margin: 0 0 18px;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-stat span {
  display: block;
  color: #9ca7b7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.admin-stat.is-good {
  border-color: rgba(55, 214, 122, 0.25);
  background: rgba(55, 214, 122, 0.07);
}

.admin-stat.is-warn,
.admin-stat.is-info {
  border-color: rgba(238, 178, 69, 0.24);
  background: rgba(238, 178, 69, 0.065);
}

.admin-stat.is-danger {
  border-color: rgba(220, 56, 56, 0.27);
  background: rgba(220, 56, 56, 0.07);
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.admin-section-head span {
  display: block;
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-section-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

.admin-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-section-tabs button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd3df;
  font-size: 12px;
  font-weight: 850;
}

.admin-section-tabs button.active {
  border-color: rgba(207, 35, 109, 0.58);
  background: rgba(207, 35, 109, 0.18);
  color: #fff;
}

.admin-info-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-info-card span {
  display: block;
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-info-card h2 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}

.admin-info-card p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #aeb8c7;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.admin-support-list,
.admin-license-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.admin-support-row,
.admin-license-row {
  display: grid;
  grid-template-columns: 18px minmax(180px, 1fr) 110px 130px 260px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-license-row {
  grid-template-columns: minmax(180px, 1fr) 96px 104px 128px 230px;
}

.admin-support-row strong,
.admin-support-row small,
.admin-license-row strong,
.admin-license-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-row strong,
.admin-license-row strong {
  color: #fff;
  font-size: 14px;
}

.admin-support-row small,
.admin-license-row small {
  margin-top: 2px;
  color: #9ca7b7;
  font-size: 12px;
  font-weight: 750;
}

.admin-support-actions,
.admin-license-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-support-actions button,
.admin-license-actions button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.admin-support-actions button.danger,
.admin-license-actions button.danger {
  border-color: rgba(220, 56, 56, 0.3);
  color: #ffb8b8;
  background: rgba(220, 56, 56, 0.09);
}

.admin-customer-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-customer-head {
  display: grid;
  grid-template-columns: 18px minmax(180px, 1fr) 90px 150px 92px 76px 34px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

.admin-customer-head small,
.admin-customer-head span:not(:first-child) {
  color: #9ca7b7;
  font-size: 12px;
  font-weight: 750;
}

.admin-customer-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-customer-main strong,
.admin-customer-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-customer-main strong {
  color: #fff;
  font-size: 14px;
}

.admin-status-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d34b4b;
  box-shadow: 0 0 0 4px rgba(211, 75, 75, 0.12);
}

.admin-status-light.is-online {
  background: #37d67a;
  box-shadow: 0 0 0 4px rgba(55, 214, 122, 0.14);
}

.admin-customer-head .customer-status-pill {
  justify-self: start;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.admin-action-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #eaf0f8;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  cursor: pointer;
}

.admin-action-dot:hover {
  border-color: rgba(207, 35, 109, 0.54);
  background: rgba(207, 35, 109, 0.16);
}

.admin-customer-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #cbd3df;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.16s ease;
}

.admin-customer-card.is-open .admin-customer-arrow {
  transform: rotate(90deg);
}

.admin-customer-body {
  display: none;
  gap: 12px;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-customer-card.is-open .admin-customer-body {
  display: grid;
}

.admin-monitor-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-monitor-strip span {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #dfe6f1;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-monitor-strip strong {
  color: #8f9bad;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-customer-card label {
  display: grid;
  gap: 5px;
  color: #aeb8c7;
  font-size: 11px;
  font-weight: 800;
}

.admin-customer-card input,
.admin-customer-card select {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: #111924;
  color: #fff;
  padding: 0 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.admin-customer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 2px;
}

.admin-danger-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-reset-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(207, 35, 109, 0.28);
  border-radius: 8px;
  color: #cbd3df;
  background: rgba(207, 35, 109, 0.08);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-reset-note strong {
  color: #fff;
}

.admin-reset-note span {
  display: block;
  margin-top: 3px;
  color: #9ca7b7;
}

.admin-staff-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(75, 134, 255, 0.22);
  border-radius: 9px;
  background: rgba(75, 134, 255, 0.06);
}

.admin-staff-box > strong {
  color: #fff;
  font-size: 13px;
}

.admin-staff-box.is-system {
  border-color: rgba(116, 154, 255, 0.24);
  background: rgba(41, 77, 153, 0.1);
}

.admin-staff-system-note {
  margin: 0;
  color: #aeb8c7;
  font-size: 13px;
  line-height: 1.45;
}

.admin-staff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-staff-list > small {
  color: #9ca7b7;
  font-size: 12px;
  font-weight: 750;
}

.admin-staff-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(75, 134, 255, 0.34);
  border-radius: 999px;
  color: #d8e8ff;
  background: rgba(75, 134, 255, 0.12);
  font-size: 12px;
  font-weight: 850;
}

.admin-staff-pill small {
  color: #9fbaf2;
  font-size: 10px;
  text-transform: uppercase;
}

.admin-staff-pill.is-inactive {
  opacity: .48;
}

body.is-editor-access [data-panel-scope="designer"],
body.is-editor-access [data-designer-edit],
body.is-editor-access .inspector .tabs,
body.is-editor-access .inspector .selection-summary,
body.is-editor-access #tab-layout,
body.is-editor-access #tab-type,
body.is-editor-access #tab-colors,
body.is-editor-access #tab-media,
body.is-editor-access #tab-layers,
body.is-editor-access #tab-backgrounds {
  display: none !important;
}

body.is-editor-access .printstudio-panel {
  margin-top: 0;
}

.admin-mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.customer-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffd3df;
  background: rgba(207, 35, 109, 0.16);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-status-pill.is-active {
  color: #c8f7dd;
  background: rgba(55, 214, 122, 0.16);
}

.customer-status-pill.is-admin {
  color: #d8e8ff;
  background: rgba(75, 134, 255, 0.2);
}

.customer-status-pill.is-trial {
  color: #ffe8b5;
  background: rgba(238, 178, 69, 0.16);
}

.admin-danger-zone strong {
  color: #fff;
  font-size: 13px;
}

.admin-danger-zone span {
  color: #aeb8c7;
  font-size: 12px;
  font-weight: 750;
}

.customer-status-pill.is-paused,
.customer-status-pill.is-expired,
.customer-status-pill.is-blocked {
  color: #ffb8b8;
  background: rgba(220, 56, 56, 0.16);
}

.stage.is-admin-view .stage-toolbar,
.stage.is-admin-view .canvas-scroll {
  display: none !important;
}

.stage.is-admin-view {
  display: block;
  overflow: auto;
}

#weekStatus {
  min-height: 16px;
  margin: 12px 0 0;
  color: #b6c1d1;
  font-size: 12px;
  line-height: 1.3;
}

h2 {
  margin: 0 0 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.segmented button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 12px 8px;
}

.segmented button.active {
  background: linear-gradient(90deg, #951857, #d32d79);
}

.element-list {
  display: grid;
  gap: 8px;
}

.element-item {
  display: grid;
  grid-template-columns: 24px 1fr 34px 28px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d8dde7;
}

.element-item button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.layout-grid {
  display: grid;
  gap: 8px;
}

.layout-groups {
  gap: 10px;
}

.layout-group {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(10, 15, 22, 0.34);
}

.layout-group summary {
  cursor: pointer;
  list-style: none;
  padding: 9px 10px;
  color: #dfe5ee;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.layout-group summary::-webkit-details-marker {
  display: none;
}

.layout-group summary::after {
  content: "⌄";
  float: right;
  color: var(--muted);
}

.layout-group:not([open]) summary::after {
  content: "›";
}

.layout-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 8px 8px;
}

.layout-card {
  display: block;
  text-align: left;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #141d29;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.layout-card span {
  display: block;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
}

.layout-card small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.15;
}

.layout-card.active {
  border-color: var(--pink);
  background: rgba(169, 27, 89, 0.22);
}

.layout-card.is-planned {
  opacity: 0.55;
}

.mode-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.layout-link {
  border-color: rgba(216, 63, 124, 0.3);
  background:
    linear-gradient(135deg, rgba(207, 35, 109, 0.18), rgba(66, 117, 223, 0.1)),
    #141d29;
}

.layout-link:hover {
  border-color: var(--pink);
  background:
    linear-gradient(135deg, rgba(207, 35, 109, 0.26), rgba(66, 117, 223, 0.14)),
    #172131;
}

.background-preview {
  height: 120px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    radial-gradient(circle at 85% 12%, rgba(76, 135, 54, 0.8), transparent 18%),
    radial-gradient(circle at 16% 86%, rgba(171, 43, 91, 0.46), transparent 24%),
    linear-gradient(135deg, #151515, #2a2a26 48%, #111);
  margin-bottom: 12px;
}

.background-preview.is-empty {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.035) !important;
}

.background-preview.is-empty::after {
  content: "Kein Hintergrund";
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bg-scope-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 22, 31, 0.85);
}

.bg-scope-control button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.bg-scope-control button.active {
  background: linear-gradient(90deg, #a4165a, var(--pink));
  color: #fff;
}

#clearPageBgBtn,
#toggleBgBtn {
  margin-bottom: 12px;
}

#clearPageBgBtn:disabled,
#deleteBgServerBtn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.background-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.bg-swatch {
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #141d29;
}

.bg-swatch.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(207, 35, 109, 0.16);
}

.bg-swatch-default {
  background:
    radial-gradient(circle at 85% 12%, rgba(76, 135, 54, 0.8), transparent 22%),
    radial-gradient(circle at 16% 86%, rgba(171, 43, 91, 0.46), transparent 28%),
    linear-gradient(135deg, #151515, #2a2a26 48%, #111);
}

.bg-swatch-warm {
  background:
    radial-gradient(circle at 84% 16%, rgba(207, 35, 109, 0.62), transparent 25%),
    radial-gradient(circle at 12% 90%, rgba(180, 82, 34, 0.82), transparent 30%),
    linear-gradient(135deg, #160f13, #2a1f20 52%, #111);
}

.bg-swatch-paper {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 232, 219, 0.96));
}

.bg-swatch-upload {
  background:
    linear-gradient(135deg, rgba(66, 117, 223, 0.22), rgba(207, 35, 109, 0.24)),
    #141d29;
}

.bg-template-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.bg-current-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(207, 35, 109, 0.35);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(207, 35, 109, 0.16), rgba(66, 117, 223, 0.08)),
    rgba(17, 24, 33, 0.86);
}

.bg-current-card.is-empty {
  grid-template-columns: 1fr;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.bg-current-card small,
.bg-library-head small,
.bg-template-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bg-current-card strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
}

.bg-current-thumb {
  display: block;
  height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background-position: center;
  background-size: cover;
}

.bg-library-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bg-template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bg-template-card {
  position: relative;
  display: grid;
  grid-template-rows: 74px auto;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 24, 33, 0.72);
  color: #e8edf5;
  font-weight: 800;
  cursor: pointer;
}

.bg-template-card strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bg-template-card.active {
  border-color: var(--pink);
  background: rgba(207, 35, 109, 0.14);
}

.bg-template-card input {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
  z-index: 1;
}

.bg-template-thumb {
  display: block;
  height: 74px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background-position: center;
  background-size: cover;
}

.bg-template-meta {
  min-width: 0;
}

.upload-btn {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  cursor: pointer;
}

.upload-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.panel-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
}

.compact-fields {
  margin-top: 14px;
  margin-bottom: 0;
}

.full {
  width: 100%;
}

.range-row,
.color-row,
.stacked {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: #cdd4df;
}

.range-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

input[type="range"] {
  accent-color: var(--pink);
}

.stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr);
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: rgba(8, 13, 20, 0.5);
}

.format-btn.active {
  border-color: var(--pink);
  background: rgba(207, 35, 109, 0.16);
}

.zoom-box {
  display: grid;
  grid-template-columns: 42px 66px 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111822;
}

.zoom-box button {
  height: 38px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 22px;
}

.zoom-box strong {
  text-align: center;
}

.canvas-scroll {
  min-height: 0;
  overflow: auto;
  padding: 22px 40px 40px;
  text-align: center;
}

.page-toolbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 16px;
  padding: 8px;
  background: rgba(7, 11, 17, 0.88);
  backdrop-filter: blur(10px);
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.page-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101822;
  color: #cdd4df;
  font-size: 12px;
  font-weight: 800;
}

.page-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #121a25;
  color: #dce3ec;
  font-weight: 800;
}

.page-tab.active {
  border-color: var(--pink);
  background: rgba(207, 35, 109, 0.24);
}

.danger-btn {
  border-color: rgba(231, 117, 117, 0.4);
  background: rgba(92, 28, 38, 0.42);
  color: #ffd2d2;
}

.page-stack {
  display: grid;
  justify-items: center;
  gap: 36px;
}

.page-sheet {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.page-label {
  color: #dce3ec;
  font-size: 13px;
  font-weight: 900;
}

.page-sheet.active .page-label {
  color: var(--pink);
}

.page-placeholder {
  display: grid;
  place-items: center;
}

.page-placeholder-text {
  position: relative;
  z-index: 10;
  color: #9aa4b2;
  font-weight: 900;
}

.free-page-zones {
  position: absolute;
  inset: 38mm 24mm auto;
  z-index: 10;
  display: grid;
  gap: 10mm;
  pointer-events: none;
}

.free-page-zones span {
  display: grid;
  place-items: center;
  min-height: 32mm;
  border: 1px dashed rgba(207, 35, 109, 0.38);
  border-radius: 6px;
  color: rgba(154, 164, 178, 0.8);
  font-size: 12px;
  font-weight: 900;
}

.menu-canvas {
  position: relative;
  display: inline-block;
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  text-align: left;
  color: var(--canvas-text, #f4efe4);
  background: var(--canvas-paper, #141414);
  box-shadow: var(--paper-shadow);
  transform-origin: top center;
  user-select: none;
}

.menu-canvas.format-trifold {
  width: 420mm;
  height: 297mm;
}

.print-guides {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 95;
}

.print-guides::before,
.print-guides::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.print-guides::before {
  inset: 0;
  border: 2px solid rgba(37, 221, 255, 0.95);
  box-shadow: 0 0 0 2.5mm rgba(37, 221, 255, 0.12);
}

.print-guides::after {
  inset: 5mm;
  border: 2px dashed rgba(78, 236, 136, 0.92);
}

.print-guide-label {
  position: absolute;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(10, 15, 22, 0.74);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}

.guide-trim {
  top: 2mm;
  right: 2mm;
  color: #9bddff;
  border: 1px solid rgba(91, 190, 255, 0.5);
}

.guide-safe {
  top: 7mm;
  left: 7mm;
  color: #9ff0b9;
  border: 1px solid rgba(104, 218, 143, 0.5);
}

.guide-bleed {
  left: 2mm;
  bottom: 2mm;
  color: #ffc2cc;
  border: 1px solid rgba(255, 106, 130, 0.48);
}

.trifold-fold-guide,
.trifold-bleed-guide {
  position: absolute;
  inset-block: 0;
  width: 0;
  border-left: 2px solid rgba(41, 230, 255, 0.98);
}

.trifold-fold-guide::before,
.trifold-bleed-guide::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2mm;
  width: 4mm;
  border-left: 2px solid rgba(41, 230, 255, 0.58);
  border-right: 2px solid rgba(41, 230, 255, 0.58);
}

.trifold-bleed-guide {
  opacity: 0.82;
}

.trifold-fold-guide[data-fold="1"] {
  left: 33.3333%;
}

.trifold-fold-guide[data-fold="2"] {
  left: 66.6667%;
}

.trifold-bleed-guide[data-edge="left"] {
  left: 0;
}

.trifold-bleed-guide[data-edge="right"] {
  right: 0;
}

.pdf-snapshot .print-guides {
  display: none !important;
}

.canvas-bg {
  position: absolute;
  inset: 0;
  opacity: var(--bg-opacity, 0.92);
  background:
    radial-gradient(circle at 91% 4%, rgba(98, 145, 71, 0.7), transparent 13%),
    radial-gradient(circle at 7% 94%, rgba(96, 54, 25, 0.85), transparent 16%),
    linear-gradient(145deg, #111 0%, #242622 48%, #101114 100%);
}

.paper-note {
  color: var(--muted);
  font-size: 12px;
}

.canvas-block {
  position: absolute;
  min-height: 12mm;
}

.media-block {
  min-height: 0;
}

.canvas-media-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.media-resize-handle {
  position: absolute;
  right: -10px;
  bottom: -10px;
  z-index: 31;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  cursor: nwse-resize;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.canvas-block:hover .media-resize-handle,
.canvas-block.selected .media-resize-handle {
  opacity: 1;
}

.media-resize-handle:hover {
  transform: scale(1.08);
}

.kwBlock-block,
.dateBlock-block,
.titleBlock-block,
.subtitleBlock-block,
.footer-block,
.canvas-block:has(.custom-text) {
  min-height: 0;
}

.canvas-block.draggable {
  cursor: move;
}

.canvas-block .editable {
  cursor: text;
}

.canvas-block .editable:focus {
  outline: none;
}

.text-fit-block {
  width: fit-content;
  max-width: 100%;
}

.canvas-block.selected {
  outline: 1px dashed var(--pink);
  outline-offset: 2mm;
}

.canvas-block.selected::before,
.canvas-block.selected::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--pink);
  z-index: 10;
}

.canvas-block.selected::before {
  left: -5px;
  top: -5px;
}

.canvas-block.selected::after {
  right: -5px;
  bottom: -5px;
}

.block-drag-handle {
  position: absolute;
  right: -10px;
  top: -10px;
  z-index: 30;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  cursor: grab;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.canvas-block:hover .block-drag-handle,
.canvas-block.selected .block-drag-handle {
  opacity: 1;
}

.block-drag-handle:hover {
  transform: scale(1.08);
}

.header-block,
.kwBlock-block,
.dateBlock-block,
.titleBlock-block,
.subtitleBlock-block {
  text-align: center;
}

.kw {
  color: var(--block-color, var(--accent, #cf236d));
  font-size: var(--block-font-size, calc(var(--title-size, 24) * 1pt));
  font-weight: var(--block-font-weight, 900);
  line-height: 1;
}

.kwBlock-block .kw,
.dateBlock-block .date,
.titleBlock-block .headline,
.subtitleBlock-block .subline,
.footer-block,
.custom-text {
  color: var(--block-color, currentColor);
  font-family: var(--block-font-family, inherit);
  font-size: var(--block-font-size, inherit);
  font-weight: var(--block-font-weight, inherit);
  font-style: var(--block-font-style, inherit);
  text-align: var(--block-text-align, inherit);
  text-decoration: var(--block-text-decoration, none);
}

.date {
  margin-top: 0;
  font-weight: var(--block-font-weight, 700);
  font-size: var(--block-font-size, 11pt);
  color: var(--block-color, #ded4c0);
}

.headline {
  margin-top: 0;
  font-size: var(--block-font-size, 24pt);
  font-weight: var(--block-font-weight, 900);
  letter-spacing: 0;
}

.subline,
.footer-block {
  color: var(--block-color, var(--accent, #cf236d));
  font-style: var(--block-font-style, italic);
}

.subline {
  margin-top: 0;
  font-size: var(--block-font-size, 14pt);
}

.custom-text {
  display: block;
  width: 100%;
  min-width: 1ch;
  max-width: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.custom-text[data-text-kind="headline"] {
  white-space: normal;
}

.custom-text[data-text-kind="note"] {
  opacity: 0.94;
}

.scan-sector-menu {
  width: 100%;
  padding: calc(var(--content-padding, 0) * 1mm);
  border: 1px solid rgba(255, 255, 255, var(--content-border, 0));
  background: rgba(var(--content-bg-rgb, 255, 255, 255), var(--content-opacity, 0));
  color: var(--block-color, #111);
  font-family: var(--block-font-family, Inter, Arial, sans-serif);
  font-size: var(--block-font-size, 7pt);
  font-weight: var(--block-font-weight, 800);
  line-height: 1.05;
}

.scan-sector-group {
  position: relative;
  margin: 0 0 var(--scan-section-gap, 2.4mm);
}

.scan-sector-group h3 {
  margin: 0 0 var(--scan-title-gap, 0.7mm);
  color: var(--block-color, #111);
  font-size: 1.55em;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.scan-sector-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14mm 15mm;
  column-gap: 1.5mm;
  align-items: baseline;
  margin: 0 0 var(--scan-item-gap, 0.9mm);
}

.event-delete-btn.scan-delete-btn {
  left: -7mm;
  top: -1mm;
  z-index: 70;
}

.event-delete-btn.scan-delete-item {
  right: -7mm;
  left: auto;
  top: -0.5mm;
  z-index: 70;
}

.scan-sector-row strong,
.scan-sector-row b,
.scan-sector-row span {
  display: block;
  line-height: 1.05;
}

.scan-sector-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.scan-sector-row span,
.scan-sector-row b {
  text-align: right;
  white-space: nowrap;
}

.scan-sector-row em,
.scan-sector-row small {
  grid-column: 1 / -1;
  display: block;
  margin-top: -0.08mm;
  font-size: 0.76em;
  font-style: normal;
  font-weight: 650;
  line-height: 0.92;
  opacity: 0.9;
}

.scan-sector-row small + small,
.scan-sector-row em + small {
  margin-top: 0;
}

.menu-frame {
  width: 100%;
  padding: calc(var(--content-padding, 7) * 1mm);
  border: 1px solid rgba(255, 255, 255, var(--content-border, 0.18));
  background: rgba(var(--content-bg-rgb, 0, 0, 0), var(--content-opacity, 0.34));
  backdrop-filter: blur(1px);
  font-family: var(--block-font-family, inherit);
  color: var(--block-color, var(--canvas-text, #f4efe4));
  font-size: var(--block-font-size, calc(var(--text-size, 10) * 1pt));
  font-weight: var(--block-font-weight, inherit);
  font-style: var(--block-font-style, inherit);
  text-align: var(--block-text-align, inherit);
  text-decoration: var(--block-text-decoration, none);
}

.day-row {
  display: grid;
  column-gap: 6mm;
  row-gap: 0;
  margin-bottom: calc(var(--day-gap, 14) * 1mm);
}

.layout-left .day-row {
  grid-template-columns: var(--day-label-width, 37mm) minmax(0, 1fr);
  align-items: start;
  border-bottom: 1px solid rgba(207, 35, 109, 0.58);
  padding-bottom: 4mm;
}

.day-label {
  display: inline-flex;
  align-items: center;
  justify-content: var(--block-justify-content, flex-start);
  min-height: max(12mm, calc(var(--day-size, 11) * 1.35mm));
  padding: 2.5mm 4mm;
  background: var(--day-fill, var(--day-bg, rgba(207, 35, 109, 0.68)));
  border: 0.35mm solid transparent;
  color: #fff;
  border-radius: calc(var(--radius, 4) * 1px);
  font-size: calc(var(--day-size, 11) * 1pt);
  font-weight: 800;
  text-transform: uppercase;
  font-family: var(--block-font-family, inherit);
}

.menu-canvas.day-outline .day-label {
  background: transparent;
  border-color: var(--day-bg, rgba(207, 35, 109, 0.68));
  color: var(--block-color, #fff);
}

.layout-top .day-label,
.layout-compact .day-label {
  min-height: calc(var(--day-size, 11) * 1.15mm);
  margin-bottom: 2mm;
  padding: 1.5mm 3mm;
}

.layout-top .day-label {
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
}

.layout-left .day-label {
  width: 100%;
  min-height: calc(var(--day-size, 11) * 0.72mm);
  padding: 0.8mm 1.8mm;
  align-self: start;
  white-space: nowrap;
}

.layout-left .day-row:has(.dish:first-child .dish-note:not(:empty)) .day-label {
  margin-top: 6.2mm;
}

.dish {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8mm;
  row-gap: 1mm;
  align-items: baseline;
  color: var(--block-color, var(--canvas-text, #f4efe4));
  font-family: var(--block-font-family, inherit);
  font-size: var(--block-font-size, calc(var(--text-size, 10) * 1pt));
  font-weight: var(--block-font-weight, inherit);
  font-style: var(--block-font-style, inherit);
  text-align: var(--block-text-align, inherit);
  text-decoration: var(--block-text-decoration, none);
  line-height: 1.35;
}

.price {
  display: block;
  min-width: 18mm;
  text-align: right;
  font-weight: 800;
  font-size: calc(var(--price-size, 10) * 1pt);
}

.editable-food {
  display: block;
  min-width: 28mm;
  min-height: 1.25em;
}

.editable-price {
  min-height: 1.25em;
}

.mode-designer .editable-food:empty,
.mode-designer .editable-price:empty {
  display: block;
  min-height: 1.25em;
  border-radius: 2px;
  outline: 1px dashed color-mix(in srgb, var(--accent, #cf236d) 45%, transparent);
}

.mode-designer .dish-empty {
  min-height: 1.5em;
}

.mode-production .dish-empty {
  display: none;
}

.mode-designer .editable-price:empty {
  min-width: 18mm;
}

.mode-designer .editable-food:empty::before,
.mode-designer .editable-price:empty::before {
  content: attr(data-placeholder);
  color: color-mix(in srgb, var(--block-color, var(--canvas-text, #f4efe4)) 45%, transparent);
  font-weight: 650;
}

.mode-designer .editable-food:empty:focus::before,
.mode-designer .editable-price:empty:focus::before,
.mode-production .editable-food:empty::before,
.mode-production .editable-price:empty::before {
  content: "";
}

.dish-note {
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.8mm;
  padding: 0.9mm 2mm 1mm;
  border: 1px solid var(--accent, #cf236d);
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent, #cf236d) 8%, transparent);
  color: var(--accent, #cf236d);
  font-size: 0.82em;
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}

.dish-note:empty {
  display: none;
}

.mode-designer .dish-note:empty {
  display: block;
  position: absolute;
  top: -5.8mm;
  left: 0;
  z-index: 20;
  min-width: 42mm;
  min-height: 1.1em;
  margin-top: 0;
  padding: 1.2mm 2mm;
  border: 1px dashed color-mix(in srgb, var(--accent, #cf236d) 70%, transparent);
  border-radius: 3px;
  background: color-mix(in srgb, var(--canvas-paper, #151512) 88%, var(--accent, #cf236d));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
}

.mode-designer .dish:hover .dish-note:empty,
.mode-designer .dish-note:empty:focus {
  opacity: 1;
  pointer-events: auto;
}

.dish-note:empty::before {
  content: attr(data-placeholder);
  color: color-mix(in srgb, var(--canvas-text, #f4efe4) 55%, transparent);
  font-weight: 600;
}

.dish-note:focus::before,
.mode-production .dish-note:empty::before {
  content: "";
}

.layout-left .dish + .dish,
.layout-top .dish + .dish {
  margin-top: calc(var(--dish-gap, 5) * 0.45mm);
}

.layout-compact .menu-frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--day-gap, 10) * 0.7mm);
}

.layout-compact .day-row {
  margin: 0;
  padding: 5mm;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.footer-block {
  text-align: center;
  font-size: var(--block-font-size, 16pt);
}

.inspector .tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.selection-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.72);
}

.selection-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.selection-summary strong {
  color: #fff;
  font-size: 15px;
}

.tabs button {
  min-height: 46px;
  border: 0;
  background: transparent;
  color: #b9c2cf;
  font-size: 13px;
  text-transform: uppercase;
}

.tabs button.active {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--pink);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.inspector-card {
  margin-top: 18px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.58);
}

.layer-card {
  border-color: rgba(207, 35, 109, 0.32);
  background:
    linear-gradient(180deg, rgba(207, 35, 109, 0.08), rgba(17, 24, 33, 0.62));
}

.inspector-card h2 {
  margin-top: 0;
}

.text-target-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 14px;
}

.text-target-grid[hidden] {
  display: none;
}

.text-target-grid button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(15, 22, 31, 0.92);
  color: var(--muted);
  padding: 6px 7px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
}

.text-target-grid button[data-text-target="menuBlock"].active {
  border-color: rgba(207, 35, 109, 0.88);
  background: rgba(207, 35, 109, 0.28);
  color: #ffffff;
}

.text-target-grid button[data-text-target="menuDays"].active {
  border-color: rgba(188, 116, 67, 0.94);
  background: rgba(188, 116, 67, 0.32);
  color: #ffffff;
}

.text-target-grid button[data-text-target="menuTexts"].active {
  border-color: rgba(220, 192, 126, 0.94);
  background: rgba(220, 192, 126, 0.22);
  color: #ffffff;
}

.text-target-grid button[data-text-target="menuPrices"].active {
  border-color: rgba(255, 233, 180, 0.96);
  background: rgba(255, 233, 180, 0.2);
  color: #ffffff;
}

.text-target-grid button[data-text-target="menuSizes"].active {
  border-color: rgba(134, 188, 255, 0.92);
  background: rgba(75, 134, 255, 0.22);
  color: #ffffff;
}

.media-library-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 18px;
}

.media-library-item {
  display: grid;
  grid-template-rows: 76px auto auto;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 33, 0.72);
  color: var(--text);
  text-align: left;
  cursor: grab;
}

.media-library-thumb {
  display: block;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.06);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.media-library-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.media-library-item small,
.media-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.media-delete-btn {
  width: 100%;
  margin-top: 10px;
  color: #fff;
  background: linear-gradient(90deg, #a4165a, var(--pink));
  border-color: rgba(255, 255, 255, 0.12);
}

.media-delete-btn:disabled {
  opacity: 0.48;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(207, 35, 109, 0.32);
}

.layer-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.layer-panel h3 {
  margin: 0 0 10px;
  color: #dfe6f0;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.layer-list {
  display: grid;
  gap: 6px;
}

.layer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 30px 30px 30px;
  gap: 5px;
  align-items: center;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.layer-row.active {
  border-color: rgba(207, 35, 109, 0.74);
  background: rgba(207, 35, 109, 0.12);
}

.layer-select {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: 12px;
  font-weight: 750;
}

.layer-select span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.07);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.layer-thumb-label {
  display: grid;
  place-items: center;
  color: #f5f7fb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.layer-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(15, 22, 31, 0.85);
  color: #dfe6f0;
  font-size: 12px;
  font-weight: 900;
}

.layer-icon:disabled {
  opacity: 0.36;
}

.layer-delete {
  border-color: rgba(255, 106, 130, 0.35);
  background: rgba(207, 35, 109, 0.14);
  color: #ffbac8;
}

.layer-delete:disabled {
  border-color: var(--line);
  background: rgba(15, 22, 31, 0.55);
  color: #6f7a88;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}

.field-grid label {
  display: grid;
  gap: 8px;
  color: #d4dbe5;
}

.field-grid input,
.field-grid textarea,
.stacked input,
.stacked select,
.stacked textarea {
  width: 100%;
  padding: 12px 14px;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover,
.password-toggle.is-active {
  border-color: rgba(198, 54, 121, .65);
  background: rgba(198, 54, 121, .16);
  color: #fff;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.printstudio-panel {
  display: grid;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 16px;
  border-color: rgba(207, 35, 109, 0.34);
  background:
    linear-gradient(180deg, rgba(207, 35, 109, 0.12), rgba(17, 24, 33, 0.72));
}

.printstudio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.printstudio-head span {
  display: block;
  color: var(--pink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.printstudio-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
}

.printstudio-head small {
  display: block;
  max-width: 104px;
  color: #bac4d2;
  font-size: 12px;
  text-align: right;
  line-height: 1.35;
}

.admin-printstudio {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-printstudio-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-printstudio-card.is-active {
  border-color: rgba(207, 35, 109, 0.5);
  background: rgba(207, 35, 109, 0.08);
}

.admin-printstudio-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.admin-printstudio-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd3df;
  font-size: 13px;
  font-weight: 750;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.print-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0e151e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.print-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.print-modal-head span {
  color: var(--pink);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.print-modal-head h1 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

.print-form .field-grid {
  margin-bottom: 16px;
}

.print-form .stacked {
  margin-bottom: 16px;
}

.print-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

#printStudioFormStatus {
  min-height: 20px;
  margin: 14px 0 0;
  color: #c6d1df;
  font-size: 13px;
}

.color-row {
  grid-template-columns: 1fr 88px;
  align-items: center;
}

.check-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: #cdd4df;
}

.check-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--pink);
}

.color-row input {
  width: 88px;
  height: 42px;
  padding: 4px;
}

.help-popover {
  position: fixed;
  left: 98px;
  bottom: 28px;
  z-index: 80;
  width: min(340px, calc(100vw - 132px));
  padding: 18px;
  border: 1px solid rgba(207, 35, 109, 0.44);
  border-radius: 8px;
  background: rgba(14, 21, 30, 0.98);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
  color: #dce4ef;
}

.help-popover strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 16px;
}

.help-popover p {
  margin: 0 0 14px;
  color: #b9c3d0;
  line-height: 1.45;
}

.help-popover a {
  color: #ff5aa0;
  font-weight: 900;
  text-decoration: none;
}

.help-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #c9d2de;
  font-size: 20px;
}

@media (max-width: 1280px) {
  .workspace {
    grid-template-columns: 56px 300px minmax(420px, 1fr);
  }

  body.ai-addons-open .workspace {
    grid-template-columns: 56px 300px minmax(420px, 1fr) minmax(360px, 430px);
  }

  .inspector {
    display: none;
  }

  .admin-platform {
    grid-template-columns: 1fr;
  }

  .admin-platform-nav {
    display: flex;
    flex-wrap: wrap;
    border-right: 0;
  }

  .admin-platform-nav button {
    width: auto;
    padding: 0 12px;
  }

  .admin-support-row,
  .admin-license-row {
    grid-template-columns: 14px minmax(160px, 1fr);
  }

  .admin-support-actions,
  .admin-license-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .n6-shell {
    height: auto;
  }

  .topbar,
  .workspace {
    display: block;
  }

  .rail {
    display: none;
  }

  .left-panel,
  .inspector,
  .ai-addons-panel {
    max-height: none;
  }

  body.ai-addons-open .ai-addons-panel {
    display: grid;
    min-height: 78vh;
  }
}
