:root {
  --blue: #0754af;
  --blue-dark: #043f8b;
  --sky: #55c7e8;
  --gold: #c99235;
  --green: #1f9d55;
  --ink: #0d2a3a;
  --muted: #59717c;
  --line: #d9e8f0;
  --paper: #ffffff;
  --soft: #f4fbfe;
  --danger: #d92d20;
  --shadow: 0 14px 34px rgba(16, 45, 61, .1);
  --shadow-strong: 0 24px 70px rgba(16, 45, 61, .16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f6fbfe;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(246, 252, 254, .98), #ffffff 46%, rgba(239, 249, 245, .96)),
    radial-gradient(circle at 6% 9%, rgba(85, 199, 232, .22), transparent 28%),
    radial-gradient(circle at 95% 0%, rgba(201, 146, 53, .16), transparent 30%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.bottom-actions {
  display: none !important;
}

.admin-app-shell {
  width: min(460px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px calc(112px + env(safe-area-inset-bottom, 0px));
}

.gate-loading .admin-app-shell,
.gate-desktop .admin-app-shell,
.gate-install .admin-app-shell {
  display: none;
}

.pwa-gate {
  display: none;
  min-height: 100svh;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 16px calc(22px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  justify-content: center;
}

.gate-desktop .pwa-gate--desktop,
.gate-install .pwa-gate--install {
  display: flex;
}

.pwa-gate__panel {
  display: grid;
  gap: 14px;
  width: min(460px, 100%);
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 175, .14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(237, 248, 255, .92)),
    url("assets/sankar-admin-share-natural-v3.jpg") center / cover no-repeat;
  background-blend-mode: screen;
  box-shadow: var(--shadow-strong);
}

.pwa-gate__panel img {
  width: min(210px, 58vw);
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, .96))
    drop-shadow(0 12px 22px rgba(5, 63, 136, .16));
}

.pwa-gate__panel > span,
.install-dialog__content > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pwa-gate__panel h1,
.install-dialog__content h2,
.login-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 10vw, 52px);
  line-height: .98;
}

.pwa-gate__panel p,
.install-dialog__content p,
.login-dialog p {
  margin: 0;
  color: #385d6f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.pwa-install-button,
.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.pwa-install-button,
.app-button--primary {
  width: 100%;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(7, 84, 175, .24);
}

.app-button--light {
  border-color: rgba(7, 84, 175, .14);
  background: rgba(255, 255, 255, .9);
  color: var(--blue);
}

.pwa-gate__steps {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(7, 84, 175, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.pwa-gate__steps strong {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.pwa-gate__steps p {
  font-size: 12px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  margin: 0 -12px 8px;
  padding: 10px 12px;
  background: rgba(246, 252, 254, .88);
  border-bottom: 1px solid rgba(7, 84, 175, .08);
  backdrop-filter: blur(16px);
}

.app-topbar img {
  width: clamp(136px, 42vw, 184px);
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, .96))
    drop-shadow(0 10px 18px rgba(5, 63, 136, .12));
}

.icon-soft {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7, 84, 175, .14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(16, 45, 61, .07);
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 204px;
  margin-bottom: 12px;
  border: 1px solid rgba(7, 84, 175, .12);
  border-radius: 8px;
  background: #dff6ff;
  box-shadow: var(--shadow);
}

.home-hero > img {
  width: 100%;
  height: 204px;
  object-fit: cover;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(6, 35, 52, .78));
  pointer-events: none;
}

.home-hero > div {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  color: #ffffff;
}

.home-hero h1,
.edit-heading h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 10vw, 48px);
  line-height: .98;
}

.home-hero p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 900;
}

.home-hero p::before,
.app-status > i {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(31, 157, 85, .16);
}

.app-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(7, 84, 175, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 26px rgba(16, 45, 61, .07);
}

.app-status[data-kind="warn"] > i {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 146, 53, .14);
}

.app-status[data-kind="error"] > i {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(217, 45, 32, .14);
}

.app-status[data-kind="wait"] > i {
  background: var(--sky);
  box-shadow: 0 0 0 5px rgba(85, 199, 232, .14);
}

.app-status strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-status span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

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

.home-package-card,
.edit-panel,
.edit-selector-card,
.style-drawer {
  border: 1px solid rgba(7, 84, 175, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(16, 45, 61, .08);
}

.home-package-card {
  overflow: hidden;
}

.home-package-card__main {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 98px;
  padding: 10px;
  background:
    linear-gradient(135deg, #ffffff, rgba(244, 251, 254, .76)),
    linear-gradient(90deg, rgba(var(--accent-rgb, 7, 84, 175), .12), transparent);
  color: inherit;
  text-align: left;
}

.home-package-card__main img,
.edit-selector-card img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  background: #e8f8fb;
}

.home-package-card__main span,
.edit-selector-card span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.home-package-card__main strong,
.edit-selector-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-package-card__main small,
.edit-selector-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.home-package-card__main em {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 24px;
  font-style: normal;
}

.home-package-card__main em span,
.preview-chip {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 23px;
  border-radius: 8px;
  padding: 0 8px;
  background: rgba(7, 84, 175, .09);
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
}

.home-package-card__main > svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.home-package-card__main > i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb, 7, 84, 175), .1);
  color: var(--accent, var(--blue));
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.home-package-card__details {
  display: grid;
  gap: 10px;
  padding: 0 10px 12px 98px;
}

.home-package-card__details p {
  margin: 0;
  border-radius: 8px;
  padding: 10px;
  background: rgba(237, 248, 255, .9);
  color: #315668;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.home-package-card__details > div,
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(7, 84, 175, .2);
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.mini-button--primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 84, 175, .22);
}

.mini-button--whatsapp {
  border-color: rgba(31, 157, 85, .24);
  color: #087a3c;
}

.app-fab {
  position: fixed;
  right: max(18px, calc((100vw - 440px) / 2 + 18px));
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(7, 84, 175, .3);
}

.app-fab svg {
  width: 28px;
  height: 28px;
}

.app-tabbar {
  position: fixed;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(440px, calc(100% - 20px));
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(7, 84, 175, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 44px rgba(7, 84, 175, .18);
  backdrop-filter: blur(16px);
}

.app-tabbar button {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 52px;
  border-radius: 8px;
  background: transparent;
  color: #526872;
  font-size: 11px;
  font-weight: 950;
}

.app-tabbar button svg {
  width: 20px;
  height: 20px;
}

.app-tabbar button.is-active {
  background: var(--blue);
  color: #ffffff;
}

.edit-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.edit-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.edit-heading .mini-button {
  flex: 0 0 auto;
  min-width: 88px;
}

.gallery-heading h1 {
  font-size: clamp(38px, 11vw, 54px);
}

.gallery-upload-panel {
  margin-bottom: 12px;
}

.gallery-upload-drop {
  display: grid;
  justify-items: start;
  gap: 7px;
  width: 100%;
  min-height: 126px;
  padding: 18px;
  border: 1px dashed rgba(7, 84, 175, .34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(85, 199, 232, .18), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(237, 248, 255, .9));
  color: var(--blue);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 14px 34px rgba(16, 45, 61, .08);
}

.gallery-upload-drop svg {
  width: 30px;
  height: 30px;
}

.gallery-upload-drop strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.gallery-upload-drop span {
  max-width: 310px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.gallery-admin-grid {
  column-count: 2;
  column-gap: 9px;
  padding-bottom: 10px;
}

.gallery-admin-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 9px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 175, .12);
  border-radius: 8px;
  background: #eaf8fd;
  box-shadow: 0 12px 30px rgba(16, 45, 61, .08);
  break-inside: avoid;
}

.gallery-admin-card:nth-child(3n + 1) {
  min-height: 0;
}

.gallery-admin-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-admin-card button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--danger);
  box-shadow: 0 10px 24px rgba(16, 45, 61, .18);
}

.gallery-admin-card button svg {
  width: 18px;
  height: 18px;
}

.gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px;
  border: 1px solid rgba(7, 84, 175, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--muted);
  text-align: center;
  box-shadow: 0 12px 30px rgba(16, 45, 61, .08);
}

.gallery-empty svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.gallery-empty strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.gallery-empty span {
  font-size: 12px;
  font-weight: 850;
}

.upload-progress {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(7, 84, 175, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.gallery-upload-drop .upload-progress {
  width: 100%;
  margin-top: 2px;
}

.upload-progress span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
}

.upload-progress em {
  color: var(--blue);
  font-style: normal;
}

.upload-progress > i {
  display: block;
  height: 8px;
  min-width: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0754af, #19afd4);
  box-shadow: 0 5px 14px rgba(7, 84, 175, .22);
  transition: width .18s ease;
}

.editor-page-top {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin: 0 -12px 10px;
  padding: 10px 12px;
  background: rgba(246, 252, 254, .92);
  border-bottom: 1px solid rgba(7, 84, 175, .08);
  backdrop-filter: blur(16px);
}

.editor-page-top .icon-soft svg {
  transform: rotate(180deg);
}

.editor-page-top img {
  width: clamp(128px, 40vw, 172px);
  height: auto;
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, .96))
    drop-shadow(0 10px 18px rgba(5, 63, 136, .12));
}

.editor-page-hero {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 142px;
  margin-bottom: 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 175, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 14%, rgba(85, 199, 232, .2), transparent 30%),
    linear-gradient(135deg, #ffffff, rgba(237, 248, 255, .92));
  box-shadow: var(--shadow);
}

.editor-page-hero > img,
.editor-page-empty-thumb {
  width: 112px;
  height: 112px;
  border-radius: 8px;
}

.editor-page-hero > img {
  object-fit: cover;
  background: #e8f8fb;
}

.editor-page-empty-thumb {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(7, 84, 175, .3);
  background: rgba(255, 255, 255, .8);
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  text-align: center;
}

.editor-page-empty-thumb svg {
  width: 30px;
  height: 30px;
}

.editor-page-hero > div:last-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.editor-page-hero span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.editor-page-hero h1 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 8.6vw, 44px);
  line-height: .96;
}

.editor-page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.edit-selector {
  display: grid;
  gap: 9px;
  margin-bottom: 92px;
}

.edit-selector-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 84px;
  padding: 9px;
  color: inherit;
  text-align: left;
}

.edit-selector-card.is-active {
  border-color: rgba(7, 84, 175, .34);
  box-shadow: 0 16px 36px rgba(7, 84, 175, .14);
}

.edit-selector-card img {
  width: 64px;
  height: 64px;
}

.edit-selector-card em {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid rgba(7, 84, 175, .16);
  border-radius: 8px;
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.edit-panel {
  padding: 14px;
  margin-bottom: 148px;
}

.edit-panel--page {
  margin-bottom: 96px;
}

.editor-form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

label > span,
.field-head strong,
.style-drawer summary {
  color: #23485a;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
}

input,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  outline: none;
}

textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus {
  border-color: rgba(7, 84, 175, .44);
  box-shadow: 0 0 0 4px rgba(7, 84, 175, .08);
}

input[type="color"] {
  height: 52px;
  padding: 5px;
}

.style-drawer {
  padding: 12px;
  box-shadow: none;
}

.style-drawer summary {
  cursor: pointer;
  list-style: none;
}

.style-drawer summary::-webkit-details-marker {
  display: none;
}

.style-drawer > div,
.switch-field {
  margin-top: 12px;
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-field input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--blue);
}

.image-manager {
  display: grid;
  gap: 10px;
}

.image-empty-note {
  margin: 0;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 245, 223, .82);
  color: #795011;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.image-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.image-strip::-webkit-scrollbar {
  display: none;
}

.upload-tile,
.image-chip {
  flex: 0 0 92px;
  width: 92px;
  height: 112px;
  border: 1px dashed rgba(7, 84, 175, .28);
  border-radius: 8px;
  background: #f7fcff;
}

.upload-tile {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  cursor: pointer;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.upload-tile svg {
  width: 24px;
  height: 24px;
}

.image-chip {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-style: solid;
  background: #edf8ff;
}

.image-chip.is-primary {
  border-color: rgba(7, 84, 175, .48);
  box-shadow: 0 0 0 3px rgba(7, 84, 175, .08);
}

.image-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-chip > button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--danger);
  color: #ffffff;
}

.image-chip figcaption {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
}

.image-chip figcaption button {
  width: 100%;
  min-height: 25px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.editor-actionbar {
  position: fixed;
  right: 10px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  left: 10px;
  z-index: 32;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  gap: 10px;
  width: min(440px, calc(100% - 20px));
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(7, 84, 175, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 44px rgba(7, 84, 175, .16);
  backdrop-filter: blur(16px);
}

.editor-actionbar--solo {
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.editor-actionbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
}

.danger-action {
  border: 1px solid rgba(217, 45, 32, .24);
  background: #fff5f5;
  color: var(--danger);
}

.save-action {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(7, 84, 175, .22);
}

.login-dialog,
.install-dialog {
  width: min(390px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(16, 45, 61, .24);
}

.login-dialog::backdrop,
.install-dialog::backdrop {
  background: rgba(5, 22, 31, .44);
  backdrop-filter: blur(8px);
}

.login-dialog form,
.install-dialog__content {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.login-dialog__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.login-dialog__brand img,
.install-dialog__content img {
  width: 164px;
  height: auto;
}

.login-dialog__brand button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f5fbfd;
  color: var(--ink);
}

.install-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e5f3f8;
}

.install-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--sky), var(--gold));
  transition: width .28s ease;
}

.install-dialog__content > strong {
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
}

[data-scroll-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(.985);
  filter: blur(8px);
  transition:
    opacity .58s ease,
    transform .66s cubic-bezier(.16, 1, .3, 1),
    filter .58s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

[data-scroll-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (max-width: 380px) {
  .admin-app-shell {
    padding-right: 9px;
    padding-left: 9px;
  }

  .app-topbar {
    margin-right: -9px;
    margin-left: -9px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .home-package-card__main {
    grid-template-columns: 66px minmax(0, 1fr) 24px;
  }

  .home-package-card__main img {
    width: 66px;
    height: 66px;
  }

  .home-package-card__details {
    padding-left: 86px;
  }

  .home-package-card__details > div,
  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .gate-app {
    background:
      linear-gradient(180deg, rgba(246, 252, 254, .98), #ffffff),
      radial-gradient(circle at 50% 0%, rgba(85, 199, 232, .18), transparent 28%);
  }

  .admin-app-shell {
    border-right: 1px solid rgba(7, 84, 175, .08);
    border-left: 1px solid rgba(7, 84, 175, .08);
    background: rgba(255, 255, 255, .38);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-scroll-reveal],
  [data-scroll-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
