:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-tint: #eff6ff;
  --line: #e5eaf2;
  --line-strong: #ccd6e3;
  --text: #172033;
  --soft: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #dbeafe;
  --teal: #0f9f8f;
  --teal-soft: #d9f8f2;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 8px 22px rgba(16, 24, 40, 0.06);
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 34%, #eef3f9 100%);
  text-rendering: optimizeLegibility;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 44px 264px;
}

.login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbff 0%, #f5f7fb 48%, #eef6ff 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.login-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(37, 99, 235, 0.08) 22% 23%, transparent 23% 100%),
    linear-gradient(115deg, transparent 0 58%, rgba(15, 159, 143, 0.08) 58% 59%, transparent 59% 100%);
  animation: loginGridDrift 16s linear infinite;
}

.login-beam {
  position: absolute;
  display: block;
  width: 52vw;
  height: 170px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(37, 99, 235, 0.1), rgba(15, 159, 143, 0.08), rgba(255, 255, 255, 0));
  filter: blur(0.2px);
  transform: rotate(-16deg);
  animation: loginBeamFloat 10s ease-in-out infinite;
}

.beam-one {
  top: 10%;
  right: -16%;
}

.beam-two {
  bottom: 18%;
  left: -18%;
  animation-delay: -3s;
}

.beam-three {
  top: 52%;
  right: 8%;
  width: 34vw;
  height: 96px;
  opacity: 0.55;
  animation-delay: -6s;
}

@keyframes loginGridDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(44px);
  }
}

@keyframes loginBeamFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-16deg);
  }
  50% {
    transform: translate3d(18px, -12px, 0) rotate(-16deg);
  }
}

.messages {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  background: var(--surface);
  color: var(--soft);
  box-shadow: var(--shadow-soft);
}

.message.error {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.message.success {
  border-color: #b8efe2;
  background: #f1fffb;
  color: #047061;
}

.message pre,
.check-card pre {
  margin: 10px 0 0;
  overflow-x: auto;
  white-space: pre-wrap;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 176px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.09);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

strong {
  font-weight: 500;
}

p {
  margin-top: 4px;
  color: var(--muted);
}

.section-menu {
  position: fixed;
  top: 24px;
  left: max(18px, calc((100vw - 1440px) / 2 + 18px));
  z-index: 30;
  display: grid;
  width: 224px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-menu::before {
  content: "Estro";
  padding: 8px 10px 10px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 170ms ease, color 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.section-menu button:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--text);
  transform: translateX(2px);
}

.section-menu button.active {
  border-color: #bfdbfe;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: sectionIn 180ms ease-out;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat,
.card,
.auth,
.log,
.panel-section,
.domain-card,
.tool-card,
.tool-form,
.check-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.stat strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.panel-section,
.log {
  margin-top: 18px;
  overflow: hidden;
}

.log {
  overflow-x: auto;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff, var(--surface-soft));
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.grid,
.tool-form-grid,
.domain-grid,
.check-grid,
.tool-grid,
.metric-grid,
.service-grid,
.version-grid {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.grid,
.tool-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid,
.version-grid,
.capacity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.auth {
  padding: 20px;
}

.auth {
  width: min(430px, 100%);
  margin: 12vh auto 0;
  box-shadow: var(--shadow);
}

.auth h1 {
  margin-bottom: 6px;
}

.login-logo {
  display: block;
  width: 188px;
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.login-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 99, 235, 0.14);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  animation: loginCardIn 360ms ease-out;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.login-card p {
  margin-bottom: 18px;
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form,
.card,
.tool-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
}

input,
select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #a3adbc;
}

input:focus,
select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

button,
.ghost-link {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 14px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

button:hover,
.ghost-link:hover {
  background: var(--accent-strong);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

button.secondary,
.ghost-link {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--soft);
}

button.secondary:hover,
.ghost-link:hover {
  border-color: #bfdbfe;
  background: var(--surface-tint);
  color: var(--accent-strong);
  box-shadow: none;
}

button.danger {
  background: var(--danger-soft);
  color: #991b1b;
}

button.danger:hover {
  border-color: #fecaca;
  background: #fecaca;
  color: #7f1d1d;
  box-shadow: none;
}

.compact-action {
  justify-self: start;
  min-height: 32px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 12px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

code {
  overflow-wrap: anywhere;
  border-radius: 8px;
  padding: 2px 6px;
  background: #f1f5f9;
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.tool-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.quick-domain-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.quick-domain-toolbar label {
  width: min(100%, 420px);
}

.quick-domain-stack {
  padding: 14px;
}

.quick-domain-panel {
  display: none;
  gap: 14px;
  animation: sectionIn 180ms ease-out;
}

.quick-domain-panel.active {
  display: grid;
}

.quick-webmail {
  display: grid;
  gap: 8px;
  border: 1px solid #b7e4ff;
  border-radius: 16px;
  padding: 20px;
  color: #0f3f78;
  text-decoration: none;
  background:
    radial-gradient(circle at 90% 15%, rgba(20, 184, 166, 0.18), transparent 32%),
    linear-gradient(135deg, #eff6ff, #ecfeff 58%, #ffffff);
  box-shadow: var(--shadow-soft);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.quick-webmail:hover {
  border-color: #60a5fa;
  color: #0f3f78;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-webmail span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 500;
}

.quick-webmail strong {
  color: #102a56;
  font-size: 24px;
  font-weight: 500;
}

.quick-webmail small {
  color: #41637e;
}

.quick-tool-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quick-tool-grid .tool-card {
  min-height: 104px;
  padding: 15px;
}

.create-shortcuts {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.create-shortcut {
  display: grid;
  gap: 4px;
  min-height: 74px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.create-shortcut:hover {
  border-color: #bfdbfe;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.create-shortcut.active {
  border-color: #93c5fd;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.create-shortcut span {
  color: var(--muted);
  font-size: 12px;
}

.create-shortcut strong {
  font-size: 14px;
}

.create-panel-stack {
  padding: 14px;
}

.create-panel {
  display: none;
  animation: sectionIn 180ms ease-out;
}

.create-panel.active {
  display: grid;
}

.tool-card:hover {
  border-color: #bfdbfe;
  color: var(--text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.tool-card span,
.tool-form-head span,
.pill,
.file-icon {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.tool-card strong {
  color: var(--text);
  font-size: 18px;
}

.tool-card small,
.file-meta,
dt {
  color: var(--muted);
}

.tool-form {
  padding: 16px;
  background: #ffffff;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.tool-form:hover {
  border-color: #bfdbfe;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.tool-form.wide {
  grid-column: span 3;
}

.metric-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
  font-size: 13px;
}

.metric-card strong {
  color: var(--text);
  font-size: 20px;
}

.capacity-grid {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.capacity-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.capacity-card-head,
.capacity-meta,
.file-usage,
.file-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.capacity-card-head div,
.capacity-meta {
  min-width: 0;
}

.capacity-card-head strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capacity-card-head small,
.capacity-meta span,
.limit-strip,
.file-usage small,
.file-editor-head a {
  color: var(--muted);
  font-size: 12px;
}

.capacity-card-head > span {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 500;
}

.limit-strip {
  display: grid;
  gap: 7px;
}

.limit-strip span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.limit-strip svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.capacity-meta {
  border-top: 1px solid var(--line);
  padding-top: 11px;
}

.meter {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.service-card,
.package-row,
.version-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: #ffffff;
}

.service-card div {
  display: grid;
  gap: 3px;
}

.service-card small,
.version-grid span {
  color: var(--muted);
  font-size: 12px;
}

.service-card > span,
.ok-text {
  color: #047569;
}

.service-card.bad > span,
.bad-text {
  color: #991b1b;
}

.service-card.ok {
  border-color: #b8efe2;
}

.service-card.bad {
  border-color: #fecaca;
}

.package-table {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.package-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.4fr) auto;
}

.version-grid article {
  align-items: flex-start;
  display: grid;
}

.tool-form-head,
.domain-card-head,
.domain-actions,
.check-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-domain-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr 1fr;
  gap: 12px;
}

fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
}

legend {
  float: none;
  width: auto;
  margin: 0;
  padding: 0 6px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 500;
}

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

.domain-card {
  padding: 16px;
  background: #ffffff;
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.domain-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.subdomain-card {
  border-color: #d7ddff;
}

.domain-card-head {
  margin-bottom: 14px;
}

.domain-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.compact-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
}

.primary-link {
  border-color: transparent;
  background: var(--accent);
  color: #ffffff;
}

.primary-link:hover {
  border-color: transparent;
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.pill {
  background: var(--teal-soft);
  color: #047569;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

dt {
  font-size: 12px;
  font-weight: 500;
}

dd {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 14px;
}

.dnssec-note {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 14px;
  background: #f0f9ff;
}

.dnssec-note-head {
  display: grid;
  gap: 4px;
}

.dnssec-note-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #075985;
  font-size: 13px;
  font-weight: 500;
}

.dnssec-note-head svg {
  width: 16px;
  height: 16px;
}

.dnssec-note-head small,
.dnssec-note p {
  margin: 0;
  color: #456073;
  font-size: 13px;
  line-height: 1.5;
}

.dnssec-record {
  display: grid;
  gap: 10px;
}

.dnssec-record > code {
  display: block;
  border: 1px solid #cfefff;
  padding: 10px;
  background: #ffffff;
  color: #0f3f78;
  white-space: normal;
}

.dnssec-record dl {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dnssec-record dd {
  font-size: 13px;
}

.domain-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
}

.domain-actions form,
.actions form,
.inline-form {
  margin: 0;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
}

.check-card {
  padding: 14px;
  background: #ffffff;
}

.check-card.bad {
  border-color: #fecaca;
  background: #fffafa;
}

.check-card.ok {
  border-color: #b8efe2;
}

.check-head span {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--danger-soft);
  color: #991b1b;
  font-size: 12px;
  font-weight: 500;
}

.check-card.ok .check-head span {
  background: var(--teal-soft);
  color: #047569;
}

.check-card p {
  margin-top: 10px;
  color: var(--warning);
  font-size: 13px;
}

.file-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.file-domain-form,
.file-inline-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.file-inline-form input[type="file"] {
  min-width: 160px;
}

.db-import-form {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.db-import-form input[type="file"] {
  max-width: 190px;
}

.file-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb-up {
  margin-left: auto;
}

.file-table {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(260px, auto);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.file-row:hover {
  border-color: #bfdbfe;
  background: var(--surface-tint);
  transform: translateY(-1px);
}

.file-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.file-main span,
.file-main a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-usage {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.file-usage > div:first-child {
  display: grid;
  gap: 3px;
}

.file-usage .meter {
  width: min(320px, 45%);
}

.file-meta {
  display: grid;
  gap: 3px;
}

.file-meta small {
  color: var(--faint);
  font-size: 12px;
}

.file-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.rename-form {
  display: flex;
  gap: 7px;
  min-width: 190px;
}

.rename-form input {
  height: 34px;
  min-width: 98px;
}

.file-editor {
  display: grid;
  gap: 12px;
  margin: 0 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
}

.file-editor textarea {
  min-height: 320px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-icon svg {
  width: 15px;
  height: 15px;
}

.compact-meter {
  height: 6px;
  margin-top: 7px;
}

.limit-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  min-width: 760px;
}

th,
td {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  text-align: left;
  color: var(--soft);
  font-size: 14px;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody tr:hover td {
  background: #fbfdff;
}

.table-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
}

.modal-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

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

@media (max-width: 1100px) {
  .shell {
    width: min(100% - 28px, 980px);
    padding-left: 0;
  }

  .section-menu {
    position: sticky;
    top: 0;
    left: auto;
    width: auto;
    grid-template-columns: repeat(9, max-content);
    overflow-x: auto;
    margin-bottom: 16px;
  }

  .section-menu::before {
    display: none;
  }

  .grid,
  .tool-form-grid,
  .domain-grid,
  .check-grid,
  .tool-grid,
  .quick-tool-grid,
  .metric-grid,
  .capacity-grid,
  .service-grid,
  .version-grid,
  .create-shortcuts,
  .admin-domain-layout,
  .form-compact-grid,
  .file-toolbar,
  .file-row,
  .limit-form,
  .package-row {
    grid-template-columns: 1fr;
  }

  .tool-form.wide {
    grid-column: auto;
  }

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

  .file-actions,
  .rename-form,
  .file-usage {
    display: grid;
    justify-content: stretch;
  }

  .actions {
    display: grid;
    justify-content: stretch;
  }

  .db-import-form {
    display: grid;
  }

  .file-usage .meter {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 520px);
    padding-top: 14px;
  }

  .app-header,
  .brand,
  .header-actions,
  .domain-card-head,
  .domain-actions,
  .file-domain-form,
  .file-inline-form {
    display: grid;
  }

  .brand-logo {
    width: 154px;
  }

  .stats,
  dl {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 11px 12px;
  }

  .db-import-form input[type="file"] {
    max-width: 100%;
  }
}

/* cPanel-style dashboard refresh */
.section-menu button {
  gap: 10px;
}

.section-menu button svg {
  width: 18px;
  height: 18px;
  color: currentColor;
  flex: 0 0 auto;
}

.header-actions button,
.tool-card span,
.quick-webmail span,
.create-shortcut,
.compact-action,
.domain-actions button,
.actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-actions button svg,
.tool-card svg,
.quick-webmail svg,
.create-shortcut svg,
.compact-action svg,
.domain-actions button svg,
.actions button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.app-header {
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 159, 143, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.section-menu {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
}

.section-menu::before {
  content: none;
  display: none;
}

.section-menu .side-brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  margin: 0 0 8px;
  padding: 10px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.14), transparent 32%),
    linear-gradient(135deg, #ffffff, #eef7ff);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.section-menu .side-brand:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.26);
  background:
    radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff, #eaf6ff);
}

.section-menu .side-brand img {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.section-menu .side-brand span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.section-menu .side-brand strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-menu .side-brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.stat {
  min-height: 124px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 18%, rgba(37, 99, 235, 0.12), transparent 28%),
    #ffffff;
}

.stat > svg {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.9;
}

.stat strong {
  font-size: 34px;
}

.quick-tool-grid,
.tool-grid {
  align-items: stretch;
}

.tool-card,
.create-shortcut {
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.tool-card span,
.create-shortcut > svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-card span {
  min-height: 34px;
  border-radius: 12px;
}

.tool-card span svg,
.quick-webmail span svg {
  width: 16px;
  height: 16px;
}

.tool-card strong {
  font-size: 16px;
}

.create-shortcuts {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.create-shortcut {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 108px;
  padding: 14px;
}

.create-shortcut > svg {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  padding: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.create-shortcut.active > svg {
  background: #ffffff;
}

.quick-webmail {
  position: relative;
  overflow: hidden;
}

.quick-webmail::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -38px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
}

.domain-card,
.metric-card,
.service-card,
.package-row,
.file-row,
.check-card {
  border-radius: 18px;
}

@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* Top header navigation layout */
body:not(.login-page) .shell {
  width: min(1560px, calc(100% - 24px));
  padding: 18px 0 36px;
}

body:not(.login-page) .app-header {
  display: grid;
  gap: 14px;
  min-height: 0;
  margin-bottom: 16px;
  padding: 14px 16px;
}

body:not(.login-page) .app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body:not(.login-page) .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body:not(.login-page) .header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

body:not(.login-page) .section-menu {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.login-page) .section-menu .side-brand {
  display: none;
}

body:not(.login-page) .section-menu button {
  flex: 1 1 132px;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px;
  background: #ffffff;
}

body:not(.login-page) .section-menu button:hover {
  transform: translateY(-1px);
}

body:not(.login-page) .panel-section,
body:not(.login-page) .log {
  width: 100%;
}

@media (max-width: 900px) {
  body:not(.login-page) .app-header-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  body:not(.login-page) .header-actions {
    justify-content: flex-start;
  }

  body:not(.login-page) .section-menu button {
    flex: 1 1 calc(50% - 8px);
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body:not(.login-page) .shell {
    width: calc(100% - 16px);
    padding-top: 10px;
    padding-bottom: 24px;
  }

  body:not(.login-page) .section-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body:not(.login-page) .section-menu button {
    min-height: 40px;
    justify-content: center;
  }

  body:not(.login-page) .app-header {
    border-radius: 14px;
    padding: 12px;
  }
}

@media (max-width: 420px) {
  body:not(.login-page) .section-menu {
    grid-template-columns: 1fr;
  }
}

/* Estro login experience */
.login-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, #f7fbff 0%, #f4f8fd 42%, #eef7f6 100%);
}

.login-page .shell {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 32px;
}

.login-page .messages {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.login-page .message {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.login-page .login-backdrop {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 159, 143, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #fbfdff 0%, #f5f9ff 48%, #eff9f7 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.login-page .login-backdrop::before {
  background:
    linear-gradient(118deg, transparent 0 24%, rgba(37, 99, 235, 0.09) 24% 24.4%, transparent 24.4% 100%),
    linear-gradient(118deg, transparent 0 58%, rgba(15, 159, 143, 0.08) 58% 58.4%, transparent 58.4% 100%);
  animation-duration: 20s;
}

.login-page .login-backdrop::after {
  content: "";
  position: absolute;
  inset: 7% 5%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 34%, rgba(255, 255, 255, 0.36)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  mask-image: linear-gradient(135deg, transparent 0 8%, #000 18% 82%, transparent 94% 100%);
}

.login-page .login-beam {
  border-color: rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.09), rgba(15, 159, 143, 0.08), transparent);
  opacity: 0.9;
}

.login-line {
  position: absolute;
  display: block;
  height: 1px;
  width: 42vw;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.24), rgba(15, 159, 143, 0.22), transparent);
  transform: rotate(-22deg);
  animation: loginLineSweep 12s ease-in-out infinite;
}

.line-one {
  top: 18%;
  left: 8%;
}

.line-two {
  right: 2%;
  bottom: 24%;
  width: 34vw;
  animation-delay: -4s;
}

.line-three {
  left: 44%;
  bottom: 12%;
  width: 26vw;
  opacity: 0.65;
  animation-delay: -8s;
}

@keyframes loginLineSweep {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-22deg);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(26px, -14px, 0) rotate(-22deg);
    opacity: 0.95;
  }
}

.login-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 458px);
  gap: 24px;
  align-items: stretch;
  width: min(1180px, 100%);
}

.login-hero,
.login-page .login-card {
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(22px);
}

.login-hero {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 630px;
  overflow: hidden;
  padding: 34px;
}

.login-hero::before {
  content: "ESTRO";
  position: absolute;
  right: -12px;
  bottom: 10px;
  color: transparent;
  font-size: 126px;
  font-weight: 500;
  line-height: 0.8;
  opacity: 0.28;
  -webkit-text-stroke: 1px rgba(37, 99, 235, 0.18);
  pointer-events: none;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: auto 34px 34px auto;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(15, 159, 143, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(15, 159, 143, 0.09), rgba(37, 99, 235, 0.06));
  transform: rotate(12deg);
}

.login-hero > * {
  position: relative;
  z-index: 1;
}

.login-hero-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  border: 1px solid rgba(203, 213, 225, 0.76);
  border-radius: 18px;
  padding: 8px 13px 8px 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  font-size: 17px;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

.login-hero-brand img {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
}

.login-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
}

.login-logo-fallback {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.6), transparent 36%),
    linear-gradient(135deg, #2563eb, #0f9f8f);
  color: #ffffff;
  font-size: 20px;
  font-weight: 650;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.login-logo-wrap .login-logo-fallback {
  position: absolute;
  inset: 0;
  width: 82px;
  height: 82px;
  border-radius: 22px;
  font-size: 36px;
}

.login-hero-copy {
  max-width: 620px;
  padding: 58px 0 46px;
}

.login-eyebrow,
.login-secure-badge,
.login-status-strip span,
.login-form-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.login-eyebrow {
  margin-bottom: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(239, 246, 255, 0.76);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 500;
}

.login-eyebrow svg,
.login-secure-badge svg,
.login-status-strip svg,
.login-form-meta svg,
.login-input-shell svg,
.login-submit svg,
.login-feature-grid svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.login-hero h1 {
  max-width: 660px;
  margin: 0;
  color: #0b1220;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.06;
}

.login-hero p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #526071;
  font-size: 16px;
  line-height: 1.7;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.login-feature-grid div {
  display: grid;
  gap: 8px;
  min-height: 116px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.055);
}

.login-feature-grid svg {
  width: 25px;
  height: 25px;
  color: var(--accent);
}

.login-feature-grid span {
  color: #172033;
  font-size: 15px;
  font-weight: 500;
}

.login-feature-grid small {
  color: var(--muted);
  font-size: 12px;
}

.login-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.login-status-strip span {
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.76);
  color: #455468;
  font-size: 12px;
  font-weight: 500;
}

.login-page .login-card {
  position: relative;
  display: grid;
  align-content: center;
  width: auto;
  min-height: 630px;
  margin: 0;
  overflow: hidden;
  padding: 30px;
  animation: loginCardIn 420ms ease-out;
}

.login-page .login-card::before {
  height: 100%;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.18), transparent 42%),
    linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0.08;
  width: 5px;
}

.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.login-page .login-logo {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  margin: 0;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.16);
}

.login-secure-badge {
  border: 1px solid rgba(15, 159, 143, 0.18);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(217, 248, 242, 0.58);
  color: #087568;
  font-size: 12px;
  font-weight: 500;
}

.login-card-title h2 {
  margin: 0;
  color: #0b1220;
  font-size: 30px;
  font-weight: 500;
}

.login-page .login-card p {
  margin: 8px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.login-form {
  gap: 15px;
}

.login-field {
  gap: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
}

.login-input-shell {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  padding: 0 14px;
  background: #ffffff;
  color: #64748b;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-input-shell:focus-within {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.login-input-shell input {
  height: 52px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #111827;
  box-shadow: none;
  outline: 0;
}

.login-input-shell input:focus {
  border: 0;
  box-shadow: none;
}

.password-toggle {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: 12px;
  padding: 0;
  background: #f8fafc;
  color: var(--muted);
}

.password-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: none;
}

.login-form-meta {
  display: flex;
  justify-content: space-between;
  min-height: 22px;
  color: var(--muted);
  font-size: 12px;
}

.login-submit {
  justify-content: space-between;
  min-height: 54px;
  margin-top: 2px;
  border-radius: 16px;
  padding: 0 18px;
  background:
    linear-gradient(135deg, #2563eb, #0f9f8f);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.18);
}

.login-submit:hover {
  background:
    linear-gradient(135deg, #1d4ed8, #0a8d7f);
}

.login-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.login-card-foot strong {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--teal-soft);
  color: #087568;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 1020px) {
  .login-stage {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
  }

  .login-hero,
  .login-page .login-card {
    min-height: auto;
  }

  .login-hero {
    padding: 28px;
  }

  .login-hero-copy {
    padding: 42px 0 30px;
  }

  .login-hero h1 {
    font-size: 38px;
  }

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

@media (max-width: 640px) {
  .login-page .shell {
    padding: 16px;
  }

  .login-hero {
    display: none;
  }

  .login-page .login-card {
    min-height: calc(100vh - 32px);
    padding: 24px;
    border-radius: 24px;
  }

  .login-card-top {
    display: grid;
    justify-items: start;
    margin-bottom: 22px;
  }

  .login-card-title h2 {
    font-size: 26px;
  }
}
