/* ============================================================
   CEIBA VIVA APP WEB PLUS — Sinapse OS THC 15.0.1
   Capa compartida de aplicación, PWA, seguimiento y operación.
   ============================================================ */

:root {
  --plus-bg: #f4f7f3;
  --plus-surface: #ffffff;
  --plus-surface-soft: #f6faf7;
  --plus-ink: #173329;
  --plus-muted: #667a72;
  --plus-line: rgba(23, 73, 57, 0.14);
  --plus-primary: #174f3c;
  --plus-primary-soft: #dff2e9;
  --plus-gold: #c79b34;
  --plus-success: #278361;
  --plus-warning: #b7791f;
  --plus-danger: #a44234;
  --plus-shadow: 0 22px 65px rgba(18, 53, 40, 0.13);
  --plus-shadow-modal: 0 36px 110px rgba(3, 22, 15, 0.38);
}

html { color-scheme: light; }
html.is-offline [data-network-state] { color: var(--plus-warning); }
body.plus-modal-open { overflow: hidden; }

.plus-apps-button,
.plus-wtm-menu summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--plus-line);
  border-radius: 12px;
  color: var(--plus-primary);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.plus-apps-button::before {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, currentColor 42%, transparent 42% 58%, currentColor 58%),
    linear-gradient(currentColor 42%, transparent 42% 58%, currentColor 58%);
  content: "";
  opacity: 0.78;
}

.plus-wtm-menu { position: relative; }
.plus-wtm-menu summary { list-style: none; }
.plus-wtm-menu summary::-webkit-details-marker { display: none; }
.plus-wtm-menu[open] summary { background: var(--plus-primary-soft); }
.plus-wtm-menu > div {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 260;
  width: min(310px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--plus-line);
  border-radius: 18px;
  background: var(--plus-surface);
  box-shadow: var(--plus-shadow);
}
.plus-wtm-menu a,
.plus-wtm-menu > div button {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  color: var(--plus-ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.plus-wtm-menu a:hover,
.plus-wtm-menu > div button:hover { background: var(--plus-primary-soft); }
.plus-wtm-menu strong,
.plus-wtm-menu small { display: block; }
.plus-wtm-menu strong { font-size: 0.72rem; }
.plus-wtm-menu small { margin-top: 3px; color: var(--plus-muted); font-size: 0.64rem; }

.plus-launcher,
.plus-wos {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(3, 24, 17, 0.66);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.plus-launcher.is-open,
.plus-wos.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.plus-launcher-dialog,
.plus-wos-dialog {
  width: min(980px, 100%);
  max-height: min(880px, calc(100dvh - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  color: var(--plus-ink);
  background: rgba(248, 251, 248, 0.97);
  box-shadow: var(--plus-shadow-modal);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s ease;
}
.plus-launcher.is-open .plus-launcher-dialog,
.plus-wos.is-open .plus-wos-dialog { transform: translateY(0) scale(1); }

.plus-launcher-dialog > header,
.plus-wos-dialog > header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--plus-line);
  background: rgba(255, 255, 255, 0.88);
}
.plus-launcher-dialog header > div:nth-child(2),
.plus-wos-dialog header > div:first-child { min-width: 0; flex: 1; }
.plus-launcher-dialog header p,
.plus-wos-dialog header span { margin: 0; color: var(--plus-gold); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.plus-launcher-dialog h2,
.plus-wos-dialog h2 { margin: 2px 0 0; color: var(--plus-ink); font-family: var(--font-sans, Inter, sans-serif); font-size: 1.18rem; line-height: 1.15; }
.plus-launcher-dialog header > button,
.plus-wos-dialog header > button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--plus-line);
  border-radius: 13px;
  color: var(--plus-muted);
  background: var(--plus-surface);
  font-size: 1.4rem;
}
.plus-product-mark {
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 45, 32, 0.22);
}

.plus-wos-product > div img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.plus-launcher-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px 7px;
}
.plus-launcher-intro strong { font-size: 1.17rem; }
.plus-launcher-intro span { max-width: 430px; color: var(--plus-muted); font-size: 0.74rem; text-align: right; }
.plus-app-grid {
  display: grid;
  max-height: min(560px, calc(100dvh - 310px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding: 16px 24px 24px;
}
.plus-app-tile {
  display: flex;
  min-width: 0;
  min-height: 126px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--plus-line);
  border-radius: 19px;
  color: var(--plus-ink);
  background: var(--plus-surface);
  box-shadow: 0 9px 25px rgba(18, 53, 40, 0.055);
  font: inherit;
  text-align: left;
  transition: 0.2s ease;
}
.plus-app-tile:hover { transform: translateY(-3px); border-color: rgba(39, 131, 97, 0.42); box-shadow: 0 16px 36px rgba(18, 53, 40, 0.12); }
.plus-app-tile > .wos-icon { width: 38px; height: 38px; margin-bottom: auto; border-radius: 12px; color: var(--plus-primary); background: var(--plus-primary-soft); padding: 9px; }
.plus-app-tile strong { font-size: 0.82rem; }
.plus-app-tile small { color: var(--plus-muted); font-size: 0.66rem; line-height: 1.35; }
.plus-launcher-dialog > footer { padding: 0 24px 22px; }

.plus-theme-panel { margin: 12px 14px 0; padding-top: 13px; border-top: 1px solid var(--plus-line); }
.plus-launcher-dialog .plus-theme-panel { margin-inline: 0; }
.plus-theme-panel > span { display: block; margin-bottom: 8px; color: var(--plus-muted); font-size: 0.61rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.plus-theme-panel > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.plus-theme-panel button {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--plus-line);
  border-radius: 12px;
  color: var(--plus-muted);
  background: var(--plus-surface);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
}
.plus-theme-panel button i { width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; }
.plus-theme-panel button.is-active { border-color: var(--plus-primary); color: var(--plus-primary); background: var(--plus-primary-soft); }
.plus-install-action,
.plus-system-action {
  display: flex;
  width: calc(100% - 28px);
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 10px 14px 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--plus-primary);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}
.plus-launcher-dialog .plus-install-action { width: 100%; margin-inline: 0; }
.plus-system-action { margin-bottom: 4px; color: var(--plus-primary); background: var(--plus-primary-soft); }

.plus-wos-dialog { width: min(790px, 100%); }
.plus-wos-content { max-height: calc(min(880px, 100dvh - 32px) - 82px); overflow-y: auto; padding: 22px; }
.plus-wos-product { display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid rgba(39, 131, 97, 0.22); border-radius: 20px; background: linear-gradient(135deg, #f8fcf9, #e6f4ed); }
.plus-wos-product > div { display: grid; flex: 0 0 auto; width: 64px; height: 64px; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #174f3c, #071d16); font-weight: 900; }
.plus-wos-product span > * { display: block; font-style: normal; }
.plus-wos-product small { color: var(--plus-success); font-size: 0.58rem; font-weight: 900; letter-spacing: 0.12em; }
.plus-wos-product strong { margin: 3px 0; color: var(--plus-ink); font-size: 1.25rem; }
.plus-wos-product em { color: var(--plus-muted); font-size: 0.7rem; }
.plus-wos-content > p,
.plus-wos-content section p { color: var(--plus-muted); font-size: 0.78rem; line-height: 1.65; }
.plus-wos-content dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 18px 0; padding: 1px; border-radius: 16px; background: var(--plus-line); }
.plus-wos-content dl > div { min-width: 0; padding: 12px 14px; background: var(--plus-surface); }
.plus-wos-content dl .wide { grid-column: 1 / -1; }
.plus-wos-content dt { color: var(--plus-muted); font-size: 0.58rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.plus-wos-content dd { display: flex; align-items: center; gap: 7px; margin: 4px 0 0; font-size: 0.72rem; font-weight: 800; }
.plus-wos-content dd i { width: 8px; height: 8px; border-radius: 50%; background: var(--plus-success); box-shadow: 0 0 0 3px rgba(39, 131, 97, 0.13); }
.plus-wos-content h3 { margin: 0 0 5px; font-size: 0.88rem; }
.plus-wos-content > footer { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--plus-line); color: var(--plus-success); font-size: 0.68rem; font-weight: 900; text-align: center; }

.plus-license {
  display: grid;
  gap: 4px;
  margin: 38px calc(-1 * clamp(18px, 2.6vw, 38px)) -126px;
  padding: 23px max(24px, calc((100% - 1400px) / 2 + 24px)) 126px;
  border-top: 1px solid var(--plus-line);
  color: var(--plus-muted);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.61rem;
  line-height: 1.55;
  text-align: center;
}
.plus-license strong { color: var(--plus-ink); font-size: 0.62rem; letter-spacing: 0.09em; }

/* Seguimiento público */
.tracking-body {
  min-height: 100dvh;
  padding-bottom: 110px;
  background:
    radial-gradient(circle at 86% 0, rgba(151, 205, 181, 0.52), transparent 29rem),
    radial-gradient(circle at 10% 80%, rgba(224, 200, 131, 0.25), transparent 30rem),
    linear-gradient(145deg, #f8f8f3, #eaf3ed);
}
.tracking-topbar { display: flex; width: min(1180px, calc(100% - 32px)); min-height: 72px; align-items: center; justify-content: space-between; gap: 16px; margin: 14px auto 0; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 22px; background: rgba(255, 255, 255, 0.76); box-shadow: var(--plus-shadow); backdrop-filter: blur(20px); }
.tracking-brand { display: flex; align-items: center; gap: 11px; }
.tracking-brand img { width: 42px; height: 42px; border-radius: 13px; }
.tracking-brand strong,
.tracking-brand small { display: block; }
.tracking-brand strong { font-family: var(--font-serif, Georgia, serif); font-size: 1.25rem; }
.tracking-brand small { color: var(--plus-muted); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.tracking-topbar-actions { display: flex; gap: 8px; }
.tracking-topbar-actions a,
.tracking-topbar-actions button { min-height: 42px; padding: 9px 13px; border: 1px solid var(--plus-line); border-radius: 12px; color: var(--plus-primary); background: var(--plus-surface); font: inherit; font-size: 0.7rem; font-weight: 850; }
.tracking-shell { width: min(1120px, calc(100% - 32px)); margin: 52px auto; }
.tracking-hero { max-width: 720px; margin-bottom: 26px; }
.tracking-hero h1 { margin: 0; color: var(--plus-ink); font-family: var(--font-serif, Georgia, serif); font-size: clamp(3.1rem, 7vw, 6.6rem); line-height: 0.9; }
.tracking-hero p { max-width: 610px; color: var(--plus-muted); }
.tracking-grid { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); gap: 18px; align-items: start; }
.tracking-search-card,
.tracking-result-card { border: 1px solid rgba(255, 255, 255, 0.74); border-radius: 25px; background: rgba(255, 255, 255, 0.82); box-shadow: var(--plus-shadow); backdrop-filter: blur(22px); }
.tracking-search-card { position: sticky; top: 18px; padding: 22px; }
.tracking-search-card h2 { margin: 0 0 6px; color: var(--plus-ink); font-size: 1.18rem; }
.tracking-search-card > p { margin: 0 0 18px; color: var(--plus-muted); font-size: 0.75rem; }
.tracking-form { display: grid; gap: 13px; }
.tracking-form label { display: grid; gap: 6px; color: var(--plus-ink); font-size: 0.69rem; font-weight: 850; }
.tracking-form input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--plus-line); border-radius: 12px; color: var(--plus-ink); background: var(--plus-surface); }
.tracking-form button { min-height: 48px; border: 0; border-radius: 12px; color: #fff; background: var(--plus-primary); font-weight: 850; }
.tracking-form-status { min-height: 20px; margin: 0; color: var(--plus-muted); font-size: 0.72rem; }
.tracking-result-card { min-height: 310px; overflow: hidden; }
.tracking-empty { display: grid; min-height: 310px; padding: 36px; place-items: center; color: var(--plus-muted); text-align: center; }
.tracking-empty span { display: grid; width: 70px; height: 70px; margin: 0 auto 14px; place-items: center; border-radius: 22px; color: var(--plus-primary); background: var(--plus-primary-soft); font-size: 1.6rem; }
.tracking-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 23px; border-bottom: 1px solid var(--plus-line); }
.tracking-result-head p { margin: 0; color: var(--plus-muted); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.tracking-result-head h2 { margin: 3px 0 0; color: var(--plus-ink); font-size: 1.38rem; }
.order-status-badge { display: inline-flex; min-height: 31px; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--status-color, var(--plus-primary)) 30%, transparent); border-radius: 999px; color: var(--status-color, var(--plus-primary)); background: color-mix(in srgb, var(--status-color, var(--plus-primary)) 11%, transparent); font-size: 0.66rem; font-weight: 900; white-space: nowrap; }
.order-status-badge::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.tracking-progress { display: grid; grid-template-columns: repeat(var(--step-count, 6), minmax(0, 1fr)); padding: 25px 23px 18px; }
.tracking-step { position: relative; display: grid; gap: 8px; justify-items: center; color: var(--plus-muted); font-size: 0.58rem; font-weight: 800; text-align: center; }
.tracking-step::before { position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: var(--plus-line); content: ""; }
.tracking-step:first-child::before { display: none; }
.tracking-step i { position: relative; z-index: 1; display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid var(--plus-line); border-radius: 50%; background: var(--plus-surface); font-style: normal; }
.tracking-step.is-done { color: var(--plus-primary); }
.tracking-step.is-done::before { background: var(--plus-success); }
.tracking-step.is-done i { border-color: var(--plus-success); color: #fff; background: var(--plus-success); }
.tracking-step.is-current i { box-shadow: 0 0 0 6px rgba(39, 131, 97, 0.14); }
.tracking-note { margin: 0 23px 20px; padding: 13px 15px; border-left: 3px solid var(--plus-gold); border-radius: 0 12px 12px 0; color: var(--plus-ink); background: rgba(199, 155, 52, 0.09); font-size: 0.74rem; }
.tracking-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 23px 22px; overflow: hidden; border: 1px solid var(--plus-line); border-radius: 16px; background: var(--plus-line); }
.tracking-summary > div { padding: 13px 14px; background: var(--plus-surface); }
.tracking-summary span,
.tracking-summary strong { display: block; }
.tracking-summary span { color: var(--plus-muted); font-size: 0.59rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.tracking-summary strong { margin-top: 3px; color: var(--plus-ink); font-size: 0.76rem; }
.tracking-items,
.tracking-timeline { padding: 0 23px 23px; }
.tracking-items h3,
.tracking-timeline h3 { margin: 0 0 12px; font-size: 0.9rem; }
.tracking-item { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--plus-line); font-size: 0.73rem; }
.tracking-event { position: relative; padding: 0 0 19px 27px; }
.tracking-event::before { position: absolute; top: 6px; left: 6px; bottom: -6px; width: 2px; background: var(--plus-line); content: ""; }
.tracking-event:last-child::before { display: none; }
.tracking-event::after { position: absolute; top: 4px; left: 0; width: 14px; height: 14px; border: 3px solid var(--plus-surface); border-radius: 50%; background: var(--plus-success); box-shadow: 0 0 0 1px var(--plus-line); content: ""; }
.tracking-event strong,
.tracking-event time { display: block; }
.tracking-event strong { color: var(--plus-ink); font-size: 0.75rem; }
.tracking-event p { margin: 4px 0; color: var(--plus-muted); font-size: 0.7rem; line-height: 1.5; }
.tracking-event time { color: var(--plus-muted); font-size: 0.6rem; }

/* Operación de pedidos en administración */
.order-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(160px, 0.34fr)); gap: 10px; margin-bottom: 13px; padding: 13px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; background: rgba(255,255,255,.66); box-shadow: var(--app-shadow, var(--plus-shadow)); }
.order-toolbar input,
.order-toolbar select { min-height: 44px; border: 1px solid var(--plus-line); border-radius: 11px; background: var(--plus-surface); }
.order-readiness { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; padding: 13px 15px; border: 1px solid var(--plus-line); border-radius: 16px; color: var(--plus-muted); background: var(--plus-primary-soft); font-size: 0.72rem; }
.order-readiness strong { color: var(--plus-primary); }
.order-admin-link { display: inline-flex; align-items: center; gap: 6px; border: 0; color: var(--plus-primary); background: transparent; font: inherit; font-size: 0.73rem; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.orders-empty-row td { padding: 34px !important; color: var(--plus-muted); text-align: center; }
.order-modal-card { width: min(1120px, 100%); }
.order-modal-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr); gap: 16px; padding: 18px; overflow-y: auto; }
.order-detail-main,
.order-detail-side { display: grid; gap: 13px; align-content: start; }
.order-panel { padding: 16px; border: 1px solid var(--plus-line); border-radius: 17px; background: rgba(255,255,255,.72); }
.order-panel h3 { margin: 0 0 12px; color: var(--plus-ink); font-size: 0.86rem; }
.order-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.order-detail-facts div { padding: 10px 11px; border-radius: 11px; background: var(--plus-surface-soft); }
.order-detail-facts span,
.order-detail-facts strong { display: block; }
.order-detail-facts span { color: var(--plus-muted); font-size: .58rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.order-detail-facts strong { margin-top: 2px; color: var(--plus-ink); font-size: .72rem; overflow-wrap: anywhere; }
.order-items-admin { display: grid; gap: 7px; }
.order-item-admin { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--plus-line); font-size: .72rem; }
.order-operation-form { display: grid; gap: 11px; }
.order-operation-form label { display: grid; gap: 5px; color: var(--plus-ink); font-size: .65rem; font-weight: 850; }
.order-operation-form input,
.order-operation-form select,
.order-operation-form textarea { width: 100%; min-height: 43px; border: 1px solid var(--plus-line); border-radius: 11px; background: var(--plus-surface); }
.order-operation-form textarea { min-height: 82px; resize: vertical; }
.order-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.order-track-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.order-track-actions input { min-width: 0; }
.order-track-actions button { border: 0; border-radius: 11px; color: #fff; background: var(--plus-primary); font-size: .67rem; font-weight: 850; }
.order-admin-timeline { max-height: 390px; overflow-y: auto; }
.order-admin-timeline .tracking-event { padding-bottom: 15px; }

html[data-theme="dark"] {
  --plus-bg: #071610;
  --plus-surface: #10241b;
  --plus-surface-soft: #142c22;
  --plus-ink: #eff8f2;
  --plus-muted: #adc2b6;
  --plus-line: rgba(205, 235, 218, 0.16);
  --plus-primary: #9bd5b8;
  --plus-primary-soft: #193d2e;
  --plus-gold: #e0bd60;
  --app-ink: #eff8f2;
  --app-muted: #adc2b6;
  --app-line: rgba(205, 235, 218, 0.16);
  --app-glass: rgba(13, 34, 25, 0.78);
  --app-glass-strong: rgba(11, 30, 22, 0.94);
  --color-ink: #eff8f2;
  --color-muted: #adc2b6;
  --color-cream: #071610;
  --color-white: #10241b;
  --color-surface: rgba(16, 36, 27, 0.84);
  --color-surface-strong: rgba(16, 36, 27, 0.97);
  --color-line: rgba(205, 235, 218, 0.16);
  color-scheme: dark;
}
html[data-theme="dark"] body:not(.admin-body),
html[data-theme="dark"] .tracking-body { color: var(--plus-ink); background: radial-gradient(circle at 85% 0, #163d2c, transparent 32rem), #071610; }
html[data-theme="dark"] .admin-body { color: var(--plus-ink); background: radial-gradient(circle at 88% 0, #18402f, transparent 30rem), #071610; }
html[data-theme="dark"] .admin-topbar,
html[data-theme="dark"] .admin-section-head,
html[data-theme="dark"] .admin-guidance,
html[data-theme="dark"] .kpi-grid article,
html[data-theme="dark"] .admin-quick-actions button,
html[data-theme="dark"] .editor-card,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .admin-form,
html[data-theme="dark"] .builder-workspaces,
html[data-theme="dark"] .builder-panel,
html[data-theme="dark"] .builder-stage,
html[data-theme="dark"] .admin-lux-card,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .app-bottom-sheet,
html[data-theme="dark"] .tracking-topbar { color: var(--plus-ink); border-color: var(--plus-line); background: rgba(16,36,27,.9); }
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select { color: var(--plus-ink); border-color: var(--plus-line); background: #0b1e16; }
html[data-theme="dark"] .site-header a,
html[data-theme="dark"] .site-header button,
html[data-theme="dark"] .admin-topbar h1,
html[data-theme="dark"] .admin-section-head h2,
html[data-theme="dark"] .editor-card strong { color: var(--plus-ink); }

html[data-theme="contrast"] {
  --plus-bg: #000;
  --plus-surface: #080808;
  --plus-surface-soft: #101010;
  --plus-ink: #fff;
  --plus-muted: #fff;
  --plus-line: #fff;
  --plus-primary: #ffe600;
  --plus-primary-soft: #242000;
  --plus-gold: #ffe600;
  --app-ink: #fff;
  --app-muted: #fff;
  --app-line: #fff;
  --color-ink: #fff;
  --color-muted: #fff;
  --color-cream: #000;
  --color-white: #080808;
  --color-surface: #080808;
  --color-surface-strong: #080808;
  --color-line: #fff;
  color-scheme: dark;
}
html[data-theme="contrast"] body,
html[data-theme="contrast"] .admin-body,
html[data-theme="contrast"] .tracking-body { color: #fff; background: #000; }
html[data-theme="contrast"] .admin-topbar,
html[data-theme="contrast"] .admin-section-head,
html[data-theme="contrast"] .admin-guidance,
html[data-theme="contrast"] .kpi-grid article,
html[data-theme="contrast"] .admin-quick-actions button,
html[data-theme="contrast"] .editor-card,
html[data-theme="contrast"] .table-wrap,
html[data-theme="contrast"] .admin-form,
html[data-theme="contrast"] .builder-workspaces,
html[data-theme="contrast"] .builder-panel,
html[data-theme="contrast"] .builder-stage,
html[data-theme="contrast"] .admin-lux-card,
html[data-theme="contrast"] .site-header,
html[data-theme="contrast"] .app-bottom-sheet,
html[data-theme="contrast"] .tracking-topbar,
html[data-theme="contrast"] .tracking-search-card,
html[data-theme="contrast"] .tracking-result-card { color: #fff; border: 2px solid #fff; background: #080808; box-shadow: none; }
html[data-theme="contrast"] input,
html[data-theme="contrast"] textarea,
html[data-theme="contrast"] select { color: #fff; border: 2px solid #fff; background: #000; }
html[data-theme="contrast"] button:focus-visible,
html[data-theme="contrast"] a:focus-visible,
html[data-theme="contrast"] input:focus-visible { outline: 4px solid #ffe600; outline-offset: 3px; }

@media (max-width: 900px) {
  .plus-app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tracking-grid { grid-template-columns: 1fr; }
  .tracking-search-card { position: static; }
  .order-modal-body { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .plus-launcher,
  .plus-wos { align-items: end; padding: 0; }
  .plus-launcher-dialog,
  .plus-wos-dialog { max-height: 96dvh; border-width: 1px 0 0; border-radius: 26px 26px 0 0; }
  .plus-launcher-intro { align-items: flex-start; flex-direction: column; gap: 4px; padding-inline: 16px; }
  .plus-launcher-intro span { text-align: left; }
  .plus-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 14px 20px; }
  .plus-app-tile { min-height: 112px; padding: 12px; }
  .plus-launcher-dialog > footer { padding-inline: 14px; }
  .plus-wos-content { padding: 15px; }
  .plus-wos-content dl { grid-template-columns: 1fr; }
  .plus-wos-content dl .wide { grid-column: auto; }
  .plus-wos-product { align-items: flex-start; }
  .plus-wos-product > div { width: 54px; height: 54px; }
  .plus-license { margin-inline: -9px; }
  .tracking-topbar { width: calc(100% - 18px); }
  .tracking-topbar-actions a { display: none; }
  .tracking-shell { width: calc(100% - 18px); margin-top: 34px; }
  .tracking-hero h1 { font-size: clamp(3.3rem, 17vw, 5.3rem); }
  .tracking-result-head { align-items: flex-start; flex-direction: column; }
  .tracking-progress { overflow-x: auto; grid-template-columns: repeat(var(--step-count, 6), minmax(82px, 1fr)); }
  .tracking-summary { grid-template-columns: 1fr; }
  .order-toolbar { grid-template-columns: 1fr; }
  .order-form-grid,
  .order-detail-facts { grid-template-columns: 1fr; }
  .order-track-actions { grid-template-columns: 1fr; }
  .order-track-actions button { min-height: 43px; }
  .plus-wtm-menu summary { width: 40px; padding-inline: 8px; font-size: 0; }
  .plus-wtm-menu summary::after { content: "WTM"; font-size: .62rem; }
  .plus-apps-button span { display: none; }
  .plus-header-apps { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .plus-launcher *,
  .plus-wos *,
  .plus-app-tile { transition-duration: 0.01ms !important; }
}

@media print {
  .plus-launcher,
  .plus-wos,
  .plus-license,
  .plus-theme-panel,
  .plus-install-action,
  .plus-system-action { display: none !important; }
}

/* ============================================================
   VISUAL REFINEMENT 2.0 — tipografía, controles y acceso
   ============================================================ */

:root {
  --plus-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --plus-ui: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --plus-control-radius: 14px;
  --plus-control-shadow: 0 12px 30px rgba(13, 54, 40, 0.16);
  --plus-control-shadow-hover: 0 18px 42px rgba(13, 54, 40, 0.23);
}

.admin-body,
.tracking-body,
.login-body,
.plus-launcher,
.plus-wos {
  font-family: var(--plus-ui);
  font-variation-settings: "wght" 560;
}

.admin-brand,
.admin-topbar h1,
.admin-section-head h2,
.admin-subtitle,
.modal-hero h2,
.tracking-brand strong,
.tracking-hero h1,
.login-brand strong,
.login-brand-copy h2,
.login-card h1,
.plus-launcher-dialog h2,
.plus-wos-dialog h2 {
  font-family: var(--plus-display);
  font-variation-settings: "opsz" 72, "wght" 600;
  letter-spacing: -0.035em;
}

.btn-primary,
.nav-cta,
.product-footer button,
.form-submit,
.tracking-form button,
.plus-install-action,
.order-track-actions button,
.admin-body .btn-primary {
  position: relative;
  isolation: isolate;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--plus-control-radius);
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(145deg, #23624c 0%, #123e2f 58%, #0b2e23 100%);
  box-shadow: var(--plus-control-shadow), inset 0 1px rgba(255, 255, 255, 0.2), inset 0 -1px rgba(0, 0, 0, 0.13);
  font-family: var(--plus-ui);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 1px rgba(0, 0, 0, 0.14);
}

.btn-primary::before,
.nav-cta::before,
.product-footer button::before,
.form-submit::before,
.tracking-form button::before,
.plus-install-action::before,
.order-track-actions button::before,
.admin-body .btn-primary::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 16% 0, rgba(255, 255, 255, 0.24), transparent 43%);
  content: "";
  opacity: 0.75;
  transition: opacity 180ms ease, transform 240ms ease;
}

.btn-primary:hover,
.nav-cta:hover,
.product-footer button:hover,
.form-submit:hover,
.tracking-form button:hover,
.plus-install-action:hover,
.order-track-actions button:hover,
.admin-body .btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: var(--plus-control-shadow-hover), inset 0 1px rgba(255, 255, 255, 0.22);
}

.btn-primary:hover::before,
.form-submit:hover::before,
.tracking-form button:hover::before,
.admin-body .btn-primary:hover::before { opacity: 1; transform: translateX(3%); }

.btn-primary:active,
.nav-cta:active,
.product-footer button:active,
.form-submit:active,
.tracking-form button:active,
.admin-body .btn-primary:active { transform: translateY(0) scale(0.985); }

.btn-primary:disabled,
.form-submit:disabled,
.tracking-form button:disabled,
.admin-body .btn-primary:disabled {
  opacity: 0.58;
  filter: saturate(0.6);
  box-shadow: none;
}

.btn-ghost,
.admin-body .btn-ghost,
.tracking-topbar-actions a,
.tracking-topbar-actions button,
.plus-apps-button,
.plus-wtm-menu summary {
  min-height: 44px;
  border: 1px solid rgba(21, 79, 59, 0.16);
  border-radius: var(--plus-control-radius);
  padding: 10px 15px;
  color: #174f3c;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 22px rgba(18, 53, 40, 0.07), inset 0 1px rgba(255, 255, 255, 0.9);
  font-family: var(--plus-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  backdrop-filter: blur(16px);
}

.btn-ghost:hover,
.admin-body .btn-ghost:hover,
.tracking-topbar-actions a:hover,
.tracking-topbar-actions button:hover,
.plus-apps-button:hover,
.plus-wtm-menu summary:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 112, 82, 0.34);
  color: #0d3d2d;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(18, 53, 40, 0.11);
}

.icon-button,
.header-icon-button {
  border-color: rgba(24, 76, 57, 0.13);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 22px rgba(17, 54, 39, 0.08), inset 0 1px #fff;
  backdrop-filter: blur(16px);
}

.icon-button:hover,
.header-icon-button:hover {
  border-color: rgba(28, 105, 76, 0.3);
  color: #0f4936;
  background: #fff;
  box-shadow: 0 13px 30px rgba(17, 54, 39, 0.13);
}

input,
textarea,
select,
.admin-body input,
.admin-body textarea,
.admin-body select,
.tracking-form input,
.order-operation-form input,
.order-operation-form textarea,
.order-operation-form select {
  border-color: rgba(21, 76, 57, 0.15);
  border-radius: var(--plus-control-radius);
  color: #173329;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.96), 0 1px 2px rgba(12, 47, 34, 0.025);
  font-family: var(--plus-ui);
  font-size: 0.84rem;
  font-weight: 600;
}

input::placeholder,
textarea::placeholder { color: #86968f; opacity: 1; font-weight: 560; }

input:hover,
textarea:hover,
select:hover { border-color: rgba(25, 94, 68, 0.28); }

input:focus,
textarea:focus,
select:focus,
.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  border-color: #3c8d6d;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(60, 141, 109, 0.13), 0 10px 26px rgba(18, 65, 48, 0.07);
}

label,
.admin-body label,
.tracking-form label,
.order-operation-form label {
  color: #526a61;
  font-family: var(--plus-ui);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.admin-tabs button,
.admin-quick-actions button,
.sheet-grid a,
.sheet-grid button,
.plus-app-tile,
table,
.admin-live-state { font-family: var(--plus-ui); }

.admin-topbar h1 { font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1; }
.admin-section-head h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.1; }
.kpi-grid span { font-family: var(--plus-display); font-variation-settings: "opsz" 72, "wght" 600; letter-spacing: -0.055em; }
.kpi-grid p,
.admin-guidance p,
.editor-card p { color: #6c7e77; }
th { color: #597068; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.075em; text-transform: uppercase; }
td { color: #324b42; font-size: 0.78rem; }

/* Acceso como producto, no como formulario genérico */
.login-body {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  color: #173329;
  background:
    radial-gradient(circle at 9% 8%, rgba(169, 218, 195, 0.2), transparent 27rem),
    radial-gradient(circle at 92% 92%, rgba(218, 185, 100, 0.16), transparent 28rem),
    linear-gradient(145deg, #071a13 0%, #0d2a20 46%, #081811 100%);
}

.login-body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 72%);
  mask-image: linear-gradient(to bottom right, #000, transparent 72%);
  content: "";
  pointer-events: none;
}

.login-body .organic-shape { opacity: 0.58; filter: blur(34px); animation-duration: 22s; }
.login-body .shape-one { width: 560px; height: 560px; background: rgba(88, 155, 119, 0.24); }
.login-body .shape-two { width: 500px; height: 500px; background: rgba(188, 146, 45, 0.14); }

.login-shell {
  width: 100%;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 52px);
}

.login-experience {
  display: grid;
  width: min(1120px, 100%);
  min-height: min(730px, calc(100dvh - 64px));
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  background: #f8faf7;
  box-shadow: 0 46px 130px rgba(0, 10, 7, 0.42), 0 2px 0 rgba(255, 255, 255, 0.13) inset;
}

.login-brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 4vw, 52px);
  color: #f4faf7;
  background:
    radial-gradient(circle at 82% 17%, rgba(179, 213, 195, 0.23), transparent 17rem),
    radial-gradient(circle at 12% 86%, rgba(211, 178, 86, 0.18), transparent 19rem),
    linear-gradient(145deg, #174a38, #0a2d21 58%, #071f17);
}

.login-brand-panel::after {
  position: absolute;
  z-index: -1;
  right: -92px;
  bottom: -115px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 49% 51% 44% 56% / 63% 38% 62% 37%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.025), 0 0 0 88px rgba(255, 255, 255, 0.016);
  content: "";
  transform: rotate(-12deg);
}

.login-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.login-brand img { width: 48px; height: 48px; border-radius: 15px; box-shadow: 0 13px 30px rgba(0, 0, 0, 0.18); }
.login-brand span > * { display: block; }
.login-brand strong { font-size: 1.35rem; line-height: 1; }
.login-brand small { margin-top: 4px; color: rgba(225, 243, 234, 0.6); font-size: 0.59rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.login-brand-copy { max-width: 590px; margin: auto 0; padding: 70px 0 36px; }
.login-brand-copy .eyebrow { color: #e4c46d; }
.login-brand-copy h2 { margin: 0; color: #fff; font-size: clamp(3rem, 5vw, 5.25rem); line-height: 0.96; }
.login-brand-copy > p:last-child { max-width: 51ch; margin: 25px 0 0; color: rgba(224, 240, 232, 0.7); font-size: 0.88rem; line-height: 1.75; }

.login-capabilities { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.login-capabilities span { padding: 8px 11px; border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 999px; color: rgba(239, 249, 244, 0.78); background: rgba(255, 255, 255, 0.055); font-size: 0.63rem; font-weight: 750; }

.login-system-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: rgba(226, 242, 234, 0.58);
  background: transparent;
  font-family: var(--plus-ui);
  font-size: 0.62rem;
  font-weight: 750;
}
.login-system-link::before { width: 7px; height: 7px; border-radius: 50%; background: #7cc8a5; box-shadow: 0 0 0 4px rgba(124, 200, 165, 0.11); content: ""; }
.login-system-link span { color: #e0bd60; }
.login-system-link:hover { color: #fff; }

.login-card {
  display: flex;
  width: auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 66px);
  border: 0;
  border-radius: 0;
  color: #173329;
  background:
    radial-gradient(circle at 100% 0, rgba(201, 231, 219, 0.48), transparent 19rem),
    linear-gradient(145deg, #fbfcfa, #f4f8f5);
  box-shadow: none;
  backdrop-filter: none;
}

.login-card-toolbar { position: static; display: flex; order: -1; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: auto; }
.login-card-toolbar > span { color: #799087; font-size: 0.61rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.login-card-toolbar > div { display: flex; gap: 6px; }
.login-card-toolbar a,
.login-card-toolbar button { min-height: 36px; padding: 8px 10px; border: 1px solid rgba(21, 79, 59, 0.12); border-radius: 10px; color: #315b4b; background: rgba(255, 255, 255, 0.65); font: 750 0.62rem var(--plus-ui); }
.login-card-toolbar a:hover,
.login-card-toolbar button:hover { border-color: rgba(21, 79, 59, 0.26); background: #fff; }

.login-card-heading { margin-bottom: 29px; }
.login-card-heading .eyebrow { margin-bottom: 10px; color: #9d771c; }
.login-card h1 { color: #123c2d; font-size: clamp(2.7rem, 4.8vw, 4.55rem); line-height: 0.94; }
.login-card-heading > p:last-child { margin: 15px 0 0; color: #71857d; font-size: 0.79rem; line-height: 1.55; }

.login-fields { display: grid; gap: 17px; }
.login-card label { gap: 7px; color: #405c51; }
.login-card label > span:first-child { font-size: 0.7rem; font-weight: 800; }
.login-card input { min-height: 54px; border-color: rgba(17, 72, 52, 0.14); border-radius: 14px; padding: 14px 15px; color: #173329; background: rgba(255, 255, 255, 0.86); }
.login-card input:focus { border-color: #3c8d6d; background: #fff; }

.login-password-field { position: relative; display: block; }
.login-password-field input { padding-right: 79px; }
.login-password-field button { position: absolute; top: 50%; right: 8px; min-height: 36px; transform: translateY(-50%); border: 0; border-radius: 9px; padding: 7px 9px; color: #426757; background: #edf5f0; font: 800 0.61rem var(--plus-ui); }
.login-password-field button:hover { color: #123e2f; background: #dfeee7; }

.login-submit { display: flex; width: 100%; justify-content: space-between; margin-top: 22px; padding-inline: 18px 14px; }
.login-submit i { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, 0.13); font-size: 1rem; font-style: normal; }
.login-submit.is-loading i { animation: plusSpin 0.8s linear infinite; }
.login-submit.is-loading i { font-size: 0; }
.login-submit.is-loading i::after { width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; content: ""; }
.login-access-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.login-access-links .text-button,
.login-access-links a { border: 0; padding: 5px 0; color: #426757; background: transparent; font: 750 0.68rem var(--plus-ui); text-decoration: none; cursor: pointer; }
.login-access-links .text-button:hover,
.login-access-links a:hover { color: #123e2f; text-decoration: underline; text-underline-offset: 3px; }

.login-status { min-height: 22px; margin: 12px 0 0; color: #637a71; font-size: 0.69rem; font-weight: 700; }
.login-status[data-state="error"] { color: #a44234; }
.login-status[data-state="success"] { color: #237355; }
.login-security-note { display: flex; align-items: center; gap: 7px; margin: auto 0 0; padding-top: 32px; color: #8a9b94; font-size: 0.61rem; font-weight: 650; }
.login-security-note i { width: 7px; height: 7px; border-radius: 50%; background: #5aa987; box-shadow: 0 0 0 4px rgba(90, 169, 135, 0.1); }

@keyframes plusSpin { to { transform: rotate(360deg); } }

html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .admin-body .btn-ghost,
html[data-theme="dark"] .tracking-topbar-actions a,
html[data-theme="dark"] .tracking-topbar-actions button,
html[data-theme="dark"] .plus-apps-button,
html[data-theme="dark"] .plus-wtm-menu summary { color: #b9e3ce; border-color: rgba(190, 231, 211, 0.16); background: rgba(14, 39, 29, 0.82); box-shadow: none; }

html[data-theme="contrast"] .btn-primary,
html[data-theme="contrast"] .form-submit,
html[data-theme="contrast"] .tracking-form button,
html[data-theme="contrast"] .admin-body .btn-primary { border: 2px solid #ffe600; color: #000; background: #ffe600; box-shadow: none; text-shadow: none; }

@media (max-width: 900px) {
  .login-experience { min-height: auto; grid-template-columns: 1fr; }
  .login-brand-panel { min-height: 300px; padding: 28px; }
  .login-brand-copy { margin: 56px 0 0; padding: 0; }
  .login-brand-copy h2 { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .login-capabilities { margin-top: 32px; margin-bottom: 20px; }
  .login-card { min-height: 570px; }
  .login-card-toolbar { margin-bottom: 72px; }
}

@media (max-width: 600px) {
  .login-shell { align-items: start; padding: 9px; }
  .login-experience { border-radius: 24px; }
  .login-brand-panel { min-height: 146px; padding: 20px; }
  .login-brand img { width: 42px; height: 42px; border-radius: 13px; }
  .login-brand-copy { margin: 26px 0 0; }
  .login-brand-copy .eyebrow,
  .login-brand-copy > p:last-child,
  .login-capabilities { display: none; }
  .login-brand-copy h2 { font-size: 2.15rem; line-height: 1; }
  .login-system-link { position: absolute; top: 31px; right: 20px; max-width: 145px; justify-content: flex-end; color: #e0bd60; font-size: 0.56rem; line-height: 1.25; text-align: right; }
  .login-card { min-height: calc(100dvh - 164px); padding: 26px 21px max(26px, env(safe-area-inset-bottom)); }
  .login-card-toolbar { margin-bottom: 48px; }
  .login-card-toolbar > span { display: none; }
  .login-card-toolbar > div { width: 100%; justify-content: flex-end; }
  .login-card h1 { font-size: 3.15rem; }
  .login-security-note { padding-top: 24px; }
}

.plus-public-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: #dce9e3;
  background: #10271f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.plus-public-identity p { width: 100%; margin: 0; color: #fff; font: 750 .78rem/1.5 var(--plus-ui); text-align: center; letter-spacing: .05em; }
.plus-public-identity p small { color: #a9c7ba; font: inherit; font-weight: 600; }
.plus-public-identity div { display: grid; gap: 3px; }
.plus-public-identity span { color: #9fc0b1; font: 700 0.68rem/1.2 Manrope, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }
.plus-public-identity strong { color: #fff; font: 600 1.28rem/1.2 Fraunces, serif; }
.plus-public-identity small { color: #b9cdc4; font: 500 0.78rem/1.4 Manrope, sans-serif; }
.plus-public-identity button { flex: 0 0 auto; min-height: 42px; padding: 0 17px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; color: #fff; background: transparent; cursor: pointer; }
.plus-public-identity button:hover { background: rgba(255, 255, 255, 0.09); }
.plus-public-identity button:focus-visible { outline: 3px solid #f1cf7a; outline-offset: 3px; }

@media (max-width: 640px) {
  .plus-public-identity { align-items: flex-start; flex-direction: column; }
  .plus-public-identity button { width: 100%; }
}
/* Shared language control powered by the non-destructive runtime translator. */
.plus-language-panel { display:grid; gap:8px; padding:13px; border:1px solid rgba(31,91,69,.12); border-radius:16px; background:rgba(255,255,255,.58); }
.plus-language-panel > span { color:var(--app-green,#245943); font-size:.68rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.plus-language-panel > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.plus-language-panel button { min-height:36px; border:1px solid rgba(31,91,69,.14); border-radius:11px; color:#245943; background:#fff; font:inherit; font-size:.72rem; font-weight:850; cursor:pointer; }
.plus-language-panel button.is-active { color:#fff; border-color:#245943; background:#245943; }
.plus-language-panel small { color:var(--app-muted,#657a70); font-size:.62rem; line-height:1.4; }
html[data-theme="dark"] .plus-language-panel { border-color:rgba(205,237,222,.15); background:#0e271c; }
html[data-theme="dark"] .plus-language-panel button { color:#d8f2e4; border-color:rgba(205,237,222,.2); background:#071a12; }
html[data-theme="dark"] .plus-language-panel button.is-active { color:#092016; background:#a9dfc3; }
html[data-theme="contrast"] .plus-language-panel,html[data-theme="contrast"] .plus-language-panel button { color:#fff; border:2px solid #fff; background:#000; }
html[data-theme="contrast"] .plus-language-panel button.is-active { color:#000; border-color:#ffe600; background:#ffe600; }
