:root {
  color-scheme: light;
  --admin-canvas: #f4f8f7;
  --admin-panel: #fff;
  --admin-ink: #173d3e;
  --admin-muted: #6a8583;
  --admin-line: #e3ecea;
  --admin-teal: #007c80;
  --admin-teal-deep: #006b6f;
  --admin-teal-wash: #e8f6f4;
  --admin-danger: #ad5148;
  --admin-shadow: 0 16px 42px rgba(22, 66, 67, 0.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--admin-ink);
  background: var(--admin-canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--admin-canvas);
}

body.admin-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--admin-canvas);
  color: var(--admin-ink);
  font-family: inherit;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 124, 128, 0.42);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.admin-shell {
  min-height: 100vh;
}

.login-screen {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 5vw, 54px) 22px 28px;
  background:
    radial-gradient(ellipse at 52% 45%, rgba(212, 242, 237, 0.7), transparent 52%),
    linear-gradient(145deg, #f5f9f8, #edf5f3);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--admin-ink);
  text-decoration: none;
}

.admin-brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(0, 124, 128, 0.16);
  border-radius: 50%;
  background: #fff;
  color: var(--admin-teal-deep);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.04em;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.admin-brand small {
  margin-top: 2px;
  color: var(--admin-muted);
  font-size: 10px;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.login-screen > .admin-brand {
  align-self: flex-start;
}

.login-card {
  width: min(100%, 440px);
  margin: auto;
  padding: clamp(28px, 6vw, 44px);
  border: 1px solid rgba(46, 108, 106, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 70px rgba(32, 76, 76, 0.11);
}

.eyebrow {
  margin: 0 0 11px;
  color: var(--admin-teal-deep);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.login-card h1,
.workspace__intro h1 {
  margin: 0;
  color: var(--admin-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.login-card__intro {
  margin: 13px 0 29px;
  color: var(--admin-muted);
  font-size: 14px;
  line-height: 1.7;
}

.stack-form {
  display: grid;
  gap: 17px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: var(--admin-ink);
  font-size: 12px;
  font-weight: 680;
}

.field > span,
.field__title {
  display: block;
}

.field > span small {
  margin-left: 5px;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #dce7e5;
  border-radius: 9px;
  background: #fff;
  color: var(--admin-ink);
  font-size: 13px;
  font-weight: 480;
  line-height: 1.45;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aacab;
  opacity: 1;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b9d3d0;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--admin-teal);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 124, 128, 0.11);
}

.field__help {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 450;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button--primary {
  border-color: var(--admin-teal);
  background: var(--admin-teal);
  box-shadow: 0 5px 12px rgba(0, 124, 128, 0.13);
  color: #fff;
}

.button--primary:hover:not(:disabled) {
  border-color: var(--admin-teal-deep);
  background: var(--admin-teal-deep);
  box-shadow: 0 7px 17px rgba(0, 124, 128, 0.19);
}

.button--wide {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  margin-top: 3px;
  padding: 0 17px;
}

.button--outline {
  border-color: #cbdedb;
  background: #fff;
  color: var(--admin-ink);
}

.button--outline:hover,
.button--quiet:hover {
  border-color: #b5d2cf;
  background: #f1f9f8;
  color: var(--admin-teal-deep);
}

.button--quiet {
  border-color: transparent;
  background: transparent;
  color: #526d6c;
}

.button--small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 11px;
}

.button--delete {
  border-color: transparent;
  background: transparent;
  color: var(--admin-danger);
}

.button--delete:hover {
  border-color: #f0d6d1;
  background: #fff7f5;
}

.button__plus {
  font-size: 19px;
  font-weight: 400;
  line-height: 0;
}

.login-card__footnote {
  margin: 24px 0 0;
  color: #819796;
  font-size: 11px;
  text-align: center;
}

.login-backlink {
  color: var(--admin-muted);
  font-size: 12px;
  text-decoration: none;
}

.login-backlink:hover {
  color: var(--admin-teal-deep);
}

.form-message {
  margin: 0;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.form-message--error {
  border: 1px solid #f1d5d0;
  background: #fff7f5;
  color: #98483f;
}

.form-message--success {
  border: 1px solid #cce7de;
  background: #f1faf6;
  color: #286b55;
}

.dashboard {
  min-height: 100vh;
}

.topbar {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(22px, 5.1vw, 76px);
  border-bottom: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.92);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4d7771;
  font-size: 11px;
  font-weight: 620;
}

.connection-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a575;
  box-shadow: 0 0 0 4px rgba(40, 165, 117, 0.1);
}

.connection-state.is-offline {
  color: #9a7165;
}

.connection-state.is-offline i {
  background: #c68168;
  box-shadow: 0 0 0 4px rgba(198, 129, 104, 0.12);
}

.topbar__owner {
  max-width: 150px;
  overflow: hidden;
  color: var(--admin-ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  width: min(100%, 1390px);
  margin: 0 auto;
  padding: 48px clamp(22px, 5.1vw, 76px) 72px;
}

.workspace__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 29px;
}

.workspace__intro .eyebrow {
  margin-bottom: 13px;
}

.eyebrow__divider {
  margin: 0 6px;
  color: #a3b9b6;
}

.workspace__subhead {
  margin: 12px 0 0;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.65;
}

.first-login-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  padding: 15px 17px;
  border: 1px solid #edd8ad;
  border-radius: 11px;
  background: #fffaf0;
  color: #725528;
}

.first-login-notice__icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #f4e6c7;
  color: #8a682a;
  font-size: 12px;
  font-weight: 800;
}

.first-login-notice strong,
.first-login-notice small {
  display: block;
}

.first-login-notice strong {
  font-size: 12px;
}

.first-login-notice small {
  margin-top: 3px;
  color: #8a724a;
  font-size: 11px;
  line-height: 1.55;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4.7vw, 66px);
}

.side-nav {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 7px;
  padding: 7px 0;
}

.side-nav__label {
  margin: 0 0 7px 10px;
  color: #91a5a3;
  font-size: 9px;
  font-weight: 790;
  letter-spacing: 0.12em;
}

.side-nav__link {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #58716f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.side-nav__link:hover:not(:disabled) {
  background: #edf6f4;
  color: var(--admin-teal-deep);
}

.side-nav__link.is-active {
  border-color: #d9ebe7;
  background: #eaf5f3;
  color: #006f73;
}

.side-nav__icon {
  display: grid;
  width: 20px;
  place-items: center;
  color: var(--admin-teal);
  font-size: 16px;
  font-weight: 500;
}

.side-nav__count {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  margin-left: auto;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #5b7d79;
  font-size: 10px;
  font-weight: 730;
}

.side-nav__note {
  margin-top: 28px;
  padding: 14px 12px 12px;
  border: 1px solid #e2ece9;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.side-nav__note-mark {
  display: block;
  width: 23px;
  height: 2px;
  border-radius: 99px;
  background: var(--admin-teal);
}

.side-nav__note p {
  margin: 10px 0 0;
  color: var(--admin-muted);
  font-size: 10px;
  line-height: 1.55;
}

.content-area {
  min-width: 0;
}

.content-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.content-heading .eyebrow {
  margin-bottom: 7px;
}

.content-heading h2 {
  margin: 0;
  color: var(--admin-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 520;
  letter-spacing: -0.045em;
}

.content-heading__copy {
  margin: 5px 0 0;
  color: var(--admin-muted);
  font-size: 11px;
}

.package-list {
  display: grid;
  gap: 11px;
}

.package-row {
  display: grid;
  grid-template-columns: 76px minmax(150px, 1fr) minmax(120px, auto) auto auto;
  min-height: 100px;
  align-items: center;
  gap: 17px;
  padding: 12px 14px 12px 12px;
  border: 1px solid #e3ecea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(28, 75, 73, 0.025);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.package-row:hover {
  transform: translateY(-1px);
  border-color: #cde1dd;
  box-shadow: 0 8px 20px rgba(28, 75, 73, 0.065);
}

.package-row__image {
  width: 76px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  background: #e7f4f2;
}

.package-row__details {
  min-width: 0;
}

.package-row__category {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  color: var(--admin-teal-deep);
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.package-row__title {
  overflow: hidden;
  margin: 0;
  color: var(--admin-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-row__location {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--admin-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-row__pricing {
  display: grid;
  min-width: 112px;
  justify-items: start;
  gap: 4px;
}

.package-row__amount-line {
  display: flex;
  min-height: 24px;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.package-row__original {
  color: #849896;
  font-size: 10px;
  text-decoration: line-through;
  text-decoration-color: #bd7265;
  white-space: nowrap;
}

.package-row__discounted,
.package-row__regular {
  color: var(--admin-teal-deep);
  font-size: 15px;
  font-weight: 810;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.discount-chip {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(0, 124, 128, 0.13);
  border-radius: 99px;
  background: #e9f7f5;
  color: #006f73;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.package-visibility {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #427d66;
  font-size: 10px;
  font-weight: 680;
  white-space: nowrap;
}

.package-visibility::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #59ad83;
  content: '';
}

.package-visibility.is-hidden {
  color: #8c7b68;
}

.package-visibility.is-hidden::before {
  background: #baa07a;
}

.package-availability-toggle {
  min-width: 78px;
  border-radius: 999px;
  border-color: #cde3da;
  background: #eff8f4;
  color: #39785f;
  font-size: 9px;
  font-weight: 760;
}

.package-availability-toggle:hover {
  border-color: #b3d9c9;
  background: #e5f3ed;
  color: #28694e;
}

.package-availability-toggle[aria-pressed="false"] {
  border-color: #ead8bd;
  background: #fff7eb;
  color: #946539;
}

.package-availability-toggle[aria-pressed="false"]:hover {
  border-color: #dfc39c;
  background: #fdf0dc;
  color: #7d512a;
}

.package-availability-toggle[aria-busy="true"] {
  cursor: wait;
  opacity: 0.68;
}

.package-row__actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.empty-state {
  display: grid;
  min-height: 280px;
  justify-items: center;
  align-content: center;
  padding: 36px;
  border: 1px dashed #bdd6d2;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--admin-teal-wash);
  color: var(--admin-teal-deep);
  font-size: 23px;
  font-weight: 350;
}

.empty-state h3 {
  margin: 14px 0 6px;
  color: var(--admin-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 540;
  letter-spacing: -0.03em;
}

.empty-state p {
  max-width: 330px;
  margin: 0 0 17px;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.6;
}

.editor-panel {
  margin-top: 7px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid #dce9e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--admin-shadow);
  scroll-margin-top: 20px;
}

.editor-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.editor-panel__heading .eyebrow {
  margin-bottom: 6px;
}

.editor-panel__heading h3 {
  margin: 0;
  color: var(--admin-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 540;
  letter-spacing: -0.045em;
}

.icon-button {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--admin-line);
  border-radius: 50%;
  background: #fff;
  color: #65807d;
  cursor: pointer;
  font-size: 22px;
  font-weight: 360;
  line-height: 1;
}

.icon-button:hover {
  border-color: #b7d1cd;
  background: #f0f8f6;
  color: var(--admin-teal-deep);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 16px;
}

.field--wide {
  grid-column: 1 / -1;
}

.input-prefix,
.input-suffix {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #dce7e5;
  border-radius: 9px;
  background: #fff;
}

.input-prefix:focus-within,
.input-suffix:focus-within {
  border-color: var(--admin-teal);
  box-shadow: 0 0 0 3px rgba(0, 124, 128, 0.11);
}

.input-prefix > span,
.input-suffix > span {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 10px;
  background: #f4f8f7;
  color: #77908d;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}

.input-prefix input,
.input-suffix input {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}

.input-prefix input:focus,
.input-suffix input:focus {
  outline: none;
}

.input-prefix--currency > span {
  padding: 0 12px;
  border-right: 1px solid #e6eeec;
  color: #456a67;
  font-weight: 680;
}

.field--sale-price .input-prefix {
  border-color: #b9d8d3;
  background: #fbfffe;
}

.field--sale-price .input-prefix--currency > span {
  background: #eaf5f2;
  color: var(--admin-teal-deep);
}

.field--sale-price .input-prefix input {
  color: var(--admin-teal-deep);
  font-weight: 720;
}

.pricing-fields {
  padding: 17px 18px 14px;
  border: 1px solid #e2eeeb;
  border-radius: 11px;
  background: #f7fbfa;
}

.pricing-fields__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.field__title {
  color: var(--admin-ink);
  font-size: 12px;
  font-weight: 740;
}

.pricing-fields__heading small {
  display: block;
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 450;
}

.pricing-fields__preview-label {
  color: #8ba29f;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.pricing-fields__row {
  display: grid;
  grid-template-columns: minmax(130px, 0.95fr) minmax(100px, 0.65fr) minmax(145px, 0.95fr) minmax(150px, 1fr);
  align-items: end;
  gap: 13px;
}

.price-preview {
  display: grid;
  min-height: 58px;
  align-content: center;
  justify-items: start;
  gap: 4px;
  padding: 7px 10px;
  border: 1px solid #e1ecea;
  border-radius: 9px;
  background: #fff;
}

.price-preview__label {
  color: #708a87;
  font-size: 9px;
  font-weight: 680;
  line-height: 1.25;
}

.price-preview__amount {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.price-preview del {
  color: #819693;
  font-size: 10px;
  text-decoration: line-through;
  text-decoration-color: #bd7265;
  white-space: nowrap;
}

.price-preview strong {
  color: var(--admin-teal-deep);
  font-size: 18px;
  font-weight: 820;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.field-hint {
  margin: 9px 0 0;
  color: #78918e;
  font-size: 10px;
  line-height: 1.5;
}

.image-upload {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 16px;
  border: 1px dashed #c4d9d5;
  border-radius: 11px;
  background: #f8fcfb;
}

.image-upload__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.image-upload__heading > div {
  min-width: 0;
}

.image-upload__heading .field__title {
  color: var(--admin-ink);
  font-size: 12px;
  font-weight: 740;
}

.image-upload__heading small {
  display: block;
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 10px;
  font-weight: 500;
}

.image-upload .field {
  gap: 7px;
}

.image-upload input[type="file"] {
  min-height: 44px;
  padding: 5px 8px;
  font-size: 11px;
}

.image-upload input[type="file"]::file-selector-button {
  margin-right: 11px;
  padding: 8px 11px;
  border: 0;
  border-radius: 6px;
  background: var(--admin-teal-wash);
  color: var(--admin-teal-deep);
  font: inherit;
  font-weight: 720;
  cursor: pointer;
}

.image-upload input[type="file"]::file-selector-button:hover {
  background: #dff2ef;
}

.image-upload__status {
  margin: 0;
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.5;
}

.image-upload__status[data-state="error"] {
  color: var(--admin-danger);
}

.image-upload__status[data-state="success"] {
  color: #427d66;
}

.selected-image-preview {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid #e1ebe9;
  border-radius: 10px;
  background: #fff;
}

.selected-image-preview img {
  width: 112px;
  height: 82px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #e8f3f1;
  object-fit: cover;
}

.selected-image-preview__details {
  min-width: 0;
}

.selected-image-preview__details span {
  display: block;
  color: var(--admin-teal-deep);
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.1em;
}

.selected-image-preview__details strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 6px;
  color: var(--admin-ink);
  font-size: 12px;
  font-weight: 680;
}

.visibility-toggle {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  cursor: pointer;
}

.visibility-toggle__copy strong,
.visibility-toggle__copy small {
  display: block;
}

.visibility-toggle__copy strong {
  color: var(--admin-ink);
  font-size: 11px;
  font-weight: 700;
}

.visibility-toggle__copy small {
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 9px;
  line-height: 1.4;
}

.visibility-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.toggle-track {
  position: relative;
  width: 39px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #c5d2d0;
  transition: background-color 150ms ease;
}

.toggle-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(22, 55, 55, 0.18);
  content: '';
  transition: transform 150ms ease;
}

.visibility-toggle input:checked + .toggle-track {
  background: var(--admin-teal);
}

.visibility-toggle input:checked + .toggle-track::after {
  transform: translateX(16px);
}

.visibility-toggle input:focus-visible + .toggle-track {
  outline: 3px solid rgba(0, 124, 128, 0.35);
  outline-offset: 3px;
}

.editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid #edf2f1;
}

.account-area {
  max-width: 730px;
}

.settings-card {
  max-width: 620px;
  padding: clamp(21px, 3.5vw, 34px);
  border: 1px solid #e1ebe9;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(29, 73, 72, 0.045);
}

.settings-card__intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 19px;
  border-bottom: 1px solid #edf2f1;
}

.settings-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--admin-teal-wash);
  color: var(--admin-teal-deep);
  font-size: 17px;
}

.settings-card__intro h3 {
  margin: 1px 0 0;
  color: var(--admin-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.settings-card__intro p {
  margin: 5px 0 0;
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 1.55;
}

.settings-card__separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0 0;
  color: #91a6a3;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.11em;
}

.settings-card__separator::after {
  height: 1px;
  flex: 1;
  background: #e9efee;
  content: '';
}

.settings-card__security-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: #819693;
  font-size: 10px;
}

.settings-card__security-note span {
  color: #52a27b;
  font-size: 9px;
}

.admin-toast {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100vw - 44px));
  padding: 13px 17px;
  transform: translateY(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #153f40;
  box-shadow: 0 12px 35px rgba(17, 52, 53, 0.23);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1050px) {
  .workspace-grid {
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 28px;
  }

  .package-row {
    grid-template-columns: 66px minmax(130px, 1fr) minmax(108px, auto) auto;
    gap: 12px;
  }

  .package-row__image {
    width: 66px;
    height: 66px;
  }

  .package-visibility {
    display: none;
  }
}

@media (max-width: 780px) {
  .topbar {
    min-height: 70px;
    padding: 11px 20px;
  }

  .topbar__right {
    gap: 8px;
  }

  .connection-state {
    display: none;
  }

  .topbar__owner {
    max-width: 100px;
    margin-right: 3px;
  }

  .workspace {
    padding: 34px 20px 56px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .side-nav {
    position: static;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0;
  }

  .side-nav__label,
  .side-nav__note {
    display: none;
  }

  .side-nav__link {
    justify-content: flex-start;
    padding: 0 10px;
  }

  .content-heading h2 {
    font-size: 25px;
  }

  .pricing-fields__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-preview {
    grid-column: 1 / -1;
    min-height: 42px;
  }
}

@media (max-width: 560px) {
  .login-screen {
    padding: 22px 18px;
  }

  .login-card {
    padding: 26px 22px;
  }

  .login-card h1 {
    font-size: 36px;
  }

  .topbar {
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
  }

  .admin-brand {
    gap: 8px;
  }

  .admin-brand__mark {
    width: 36px;
    height: 36px;
    font-size: 8px;
  }

  .admin-brand strong {
    font-size: 15px;
  }

  .admin-brand small {
    font-size: 8px;
  }

  .topbar__right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topbar__owner {
    display: none;
  }

  .topbar__right .button {
    min-height: 35px;
    padding: 0 10px;
    font-size: 10px;
  }

  .workspace {
    padding: 27px 15px 44px;
  }

  .workspace__intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 21px;
  }

  .workspace__intro h1 {
    font-size: 34px;
  }

  .workspace__subhead {
    max-width: 380px;
    font-size: 12px;
  }

  .workspace__intro > .button {
    min-height: 37px;
  }

  .side-nav__link {
    min-height: 40px;
    gap: 7px;
    font-size: 10px;
  }

  .side-nav__icon {
    width: 16px;
    font-size: 14px;
  }

  .content-heading {
    align-items: flex-start;
    gap: 11px;
  }

  .content-heading h2 {
    font-size: 23px;
  }

  .content-heading > .button {
    min-height: 38px;
    gap: 6px;
    padding: 0 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .package-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
    padding: 10px;
  }

  .package-row__image {
    width: 58px;
    height: 58px;
    grid-row: span 2;
  }

  .package-row__details {
    padding-top: 2px;
  }

  .package-row__title {
    font-size: 15px;
  }

  .package-row__location {
    white-space: normal;
    line-height: 1.35;
  }

  .package-row__pricing {
    min-width: 0;
    grid-column: 2 / 3;
    grid-row: 2;
    align-self: end;
  }

  .package-row__amount-line {
    gap: 5px;
  }

  .package-row__regular,
  .package-row__discounted {
    font-size: 14px;
  }

  .package-row__actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    flex-direction: column;
    gap: 2px;
  }

  .package-row__actions .button {
    min-height: 31px;
  }

  .package-row__actions .button--delete {
    font-size: 10px;
  }

  .editor-panel {
    padding: 18px 14px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .field--wide {
    grid-column: auto;
  }

  .image-upload {
    grid-column: auto;
    padding: 14px 12px;
  }

  .image-upload__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .selected-image-preview {
    align-items: flex-start;
    grid-column: auto;
  }

  .selected-image-preview img {
    width: 94px;
    height: 72px;
  }

  .pricing-fields {
    padding: 14px 12px 12px;
  }

  .pricing-fields__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .pricing-fields__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .price-preview {
    grid-column: 1 / -1;
  }

  .visibility-toggle {
    grid-column: auto;
  }

  .editor-actions {
    flex-wrap: wrap;
  }

  .settings-card {
    padding: 20px 15px;
  }

  .editor-actions .settings-card__security-note {
    flex-basis: 100%;
    margin: 0 0 4px;
  }

  .empty-state {
    padding: 28px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
