/* QUIPU Central – Dark-only design system, mobile-first and tablet-landscape ready. */
:root {
  color-scheme: dark;
  --font-sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
  /* TIPOGRAFÍA GLOBAL */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --bg: #090a0c;
  --surface: #101113;
  --surface-2: #151618;
  --surface-3: #1a1b1f;
  --surface-card: #18181a;
  --surface-card-end: #101012;
  --surface-control: #0b0c0e;
  --surface-button: #242326;
  --line: #26272b;
  --line-soft: #1c1d20;
  --line-panel: #303034;
  --line-control: #3b393d;
  --line-button: #454044;
  --text: #f2f1ef;
  --text-soft: #eae7e7;
  --muted: #929397;
  --subtle: #67696d;
  --orange: #ff7616;
  --orange-light: #ff934f;
  --orange-soft: #ff9a5c;
  --orange-dim: rgba(255, 118, 22, 0.12);
  --orange-ring: rgba(255, 118, 22, 0.15);
  --success: #57d17c;
  --success-text: #83d7a8;
  --success-border: #31694c;
  --success-bg: #193c2a;
  --warning: #f3bc5b;
  --danger: #ff6a63;
  --danger-text: #ffaba0;
  --danger-border: #9f4737;
  --danger-bg: #381c1a;
  --radius-control: 9px;
  --radius-card: 17px;
  --sidebar: 264px;
  --bottom-h: 76px;
  --radius: 16px;
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.ico {
  display: inline-block;
  flex: none;
  width: 21px;
  height: 21px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.accent {
  color: var(--orange);
}
.eyebrow {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 2.2px;
  color: var(--orange);
  margin: 0;
}
.status-led {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #70cb9e;
  box-shadow:
    0 0 0 3px rgba(112, 203, 158, 0.09),
    0 0 13px rgba(112, 203, 158, 0.34);
  flex: none;
}
.primary-button {
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #100b08;
  min-height: 47px;
  display: inline-flex;
  gap: 19px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}
.primary-button .ico {
  width: 17px;
  height: 17px;
}
.primary-button:hover {
  background: var(--orange-light);
  box-shadow: 0 8px 27px rgba(255, 118, 22, 0.2);
  transform: translateY(-1px);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px;
}
.icon-button:hover {
  background: var(--surface-3);
}
/* Application frame */
.app-shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  background: #101113;
  border-right: 1px solid var(--line);
  transition: transform 0.25s ease;
}
.sidebar-head {
  height: 88px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}
.sidebar-brand {
  display: flex;
  align-items: baseline;
  letter-spacing: -1.9px;
  font-size: 27px;
  font-weight: var(--font-weight-bold);
}
.sidebar-brand small {
  font-size: 9px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1.7px;
  color: var(--subtle);
  margin-left: 11px;
}
.sidebar-close {
  display: none;
}
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 20px 21px;
  border-bottom: 1px solid var(--line-soft);
}
.avatar {
  height: 40px;
  width: 40px;
  border: 1px solid #86512f;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: var(--font-weight-medium);
  background: linear-gradient(145deg, #332118, #17130f);
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.avatar span {
  color: var(--orange);
}
.sidebar-profile strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.sidebar-profile > div:nth-child(2) > span {
  display: block;
  margin-top: 6px;
  color: var(--subtle);
  font-size: 9px;
  letter-spacing: 1px;
}
.sidebar-profile .online-dot {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ecf9a;
}
.sidebar-scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #292a2c transparent;
  padding: 17px 12px 20px;
}
.sidebar-home {
  margin-bottom: 20px;
}
.sidebar-section {
  border-top: 1px solid #222326;
  padding-top: 18px;
  margin-bottom: 19px;
}
.sidebar-section-title {
  color: #6e7075;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 1.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin-bottom: 10px;
}
.sidebar-section-title .ico {
  width: 13px;
  height: 13px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 39px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 550;
  color: #9fa0a4;
  transition:
    background 0.15s,
    color 0.15s;
  position: relative;
}
.sidebar-link > .ico {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  color: #85888e;
}
.sidebar-link > .link-chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  opacity: 0.28;
}
.sidebar-link:hover {
  background: #1c1d20;
  color: #f4f4f4;
}
.sidebar-link.active {
  background: rgba(255, 118, 22, 0.11);
  color: var(--orange);
  font-weight: var(--font-weight-semibold);
}
.sidebar-link.active:before {
  content: "";
  position: absolute;
  width: 2px;
  left: 0;
  top: 7px;
  bottom: 7px;
  background: var(--orange);
  border-radius: 2px;
}
.sidebar-link.active .ico {
  color: var(--orange);
}
.sidebar-extra {
  border-top: 1px solid #222326;
  padding-top: 12px;
  margin-top: -1px;
}
.sidebar-bottom {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line-soft);
  background: #101113;
}
.sidebar-bottom-line {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  color: #7f8185;
  letter-spacing: 1.6px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 16px;
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  color: #999b9e;
  border: 1px solid var(--line);
  background: #18191c;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
}
.sidebar-logout:hover {
  color: var(--orange);
  border-color: #5d3927;
}
.sidebar-logout .ico {
  width: 16px;
  height: 16px;
}
.sidebar-backdrop {
  display: none;
}
.workspace {
  margin-left: var(--sidebar);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--bottom-h) + 16px);
}
.topbar {
  height: 74px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 3vw, 48px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(12, 13, 15, 0.86);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.topbar-start,
.topbar-end,
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 15px;
}
.breadcrumbs {
  gap: 10px;
}
.breadcrumbs span {
  color: var(--subtle);
  font-weight: 750;
  font-size: 10px;
  letter-spacing: 1.6px;
}
.breadcrumbs .ico {
  width: 12px;
  height: 12px;
  color: #4c4d50;
}
.breadcrumbs strong {
  font-weight: 650;
  font-size: 12px;
}
.topbar-date {
  font-size: 11px;
  color: #a7a7aa;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.topbar-avatar {
  display: grid;
  place-items: center;
  background: #211a17;
  color: var(--orange);
  border: 1px solid #64402d;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  font-weight: var(--font-weight-medium);
  font-size: 13px;
}

/* TOPBAR - Menú de cuenta: integrado en app.css */
.topbar-account {
  position: relative;
  flex-shrink: 0;
}

.topbar-account > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.topbar-account > summary::-webkit-details-marker {
  display: none;
}

.topbar-account > summary::marker {
  content: "";
}

.topbar-account > summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.topbar-account[open] > .topbar-avatar {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-ring);
}

.topbar-account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 10;
  width: 218px;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-panel);
  border-radius: var(--radius-control);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
}

.topbar-account-action {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-soft);
  font: var(--font-weight-medium) 12px/1.4 var(--font-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.topbar-account-action .ico {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.topbar-account-action:hover,
.topbar-account-action:focus-visible {
  background: var(--orange-dim);
  color: var(--text);
}

.topbar-account-action:hover .ico {
  color: var(--orange);
}

.topbar-account-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--line-panel);
}

.topbar-account-menu form {
  margin: 0;
}

.topbar-account-action.is-logout {
  color: var(--danger-text);
}

.topbar-account-action.is-logout:hover,
.topbar-account-action.is-logout:focus-visible {
  background: var(--danger-bg);
}

.topbar-account-action.is-logout .ico {
  color: var(--danger-text);
}

.menu-toggle {
  display: none;
}
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1570px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 45px) clamp(20px, 3vw, 45px) 24px;
}
.main-footer {
  color: #5f6165;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px clamp(22px, 3vw, 48px);
  font-weight: var(--font-weight-medium);
  font-size: 9px;
  letter-spacing: 1.4px;
}
.footer-rule {
  height: 1px;
  width: 30px;
  background: #38393a;
}
/* Hero */
.home-hero {
  border: 1px solid #2c2927;
  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(160, 73, 32, 0.09),
      transparent 42%
    ),
    linear-gradient(112deg, #131314, #0b0b0d 74%);
  min-height: 345px;
  border-radius: 17px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.8fr);
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4vw, 52px) clamp(24px, 4vw, 54px) 58px;
}
.home-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(100deg, transparent 30%, black);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 2px;
  color: var(--orange);
}
.kicker-line {
  width: 21px;
  height: 1px;
  background: var(--orange);
}
.kicker-version {
  color: #69686a;
}
.hero-copy h1 {
  font-size: clamp(33px, 3.9vw, 58px);
  font-weight: 760;
  letter-spacing: -2.4px;
  line-height: 1.08;
  max-width: 670px;
  margin: 27px 0 17px;
}
.hero-copy h1 span {
  color: #898989;
  font-weight: 490;
}
.hero-copy > p {
  font-size: 13px;
  color: #a3a3a5;
  line-height: 1.8;
  max-width: 470px;
  margin: 0 0 26px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-status {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #aaa;
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 750;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
}
.hero-halo {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #ff7616;
  opacity: 0.08;
  filter: blur(65px);
}
.wireframe {
  height: min(100%, 300px);
  width: 100%;
  color: #6e6968;
  filter: drop-shadow(0 0 15px rgba(245, 113, 41, 0.13));
  transform: rotate(-5deg);
}
.art-label {
  position: absolute;
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: var(--font-weight-medium);
  color: #615752;
}
.art-label-top {
  right: 0;
  top: 7px;
}
.art-label-bottom {
  bottom: 7px;
  left: 0;
}
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px clamp(24px, 4vw, 54px);
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: var(--font-weight-medium);
  color: #5f5e60;
  border-top: 1px solid #262527;
}
.hero-bottom .accent {
  font-size: 13px;
}
/* Overview */
.overview-section {
  margin-top: 39px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 21px;
  gap: 15px;
}
.section-heading h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin: 8px 0 0;
}
.section-aside {
  color: #5f6063;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: var(--font-weight-medium);
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.overview-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: linear-gradient(155deg, #17181a, #111214);
  min-height: 238px;
  position: relative;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.overview-card:hover {
  transform: translateY(-3px);
  border-color: #835032;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.25);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #241c18;
  border: 1px solid #473124;
  color: var(--orange);
  display: grid;
  place-items: center;
}
.card-icon .ico {
  width: 23px;
  height: 23px;
}
.card-arrow {
  color: #706b68;
  width: 18px;
  height: 18px;
}
.card-number {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--orange);
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.card-number span {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #66686a;
  margin-left: 8px;
}
.overview-card h3 {
  font-size: 21px;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.overview-card p {
  color: #929396;
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 19px;
  max-width: 270px;
}
.card-bottom {
  border-top: 1px solid #292a2d;
  padding-top: 14px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #777a7f;
  font-size: 9px;
  letter-spacing: 0.7px;
  font-weight: 750;
}
.mini-pulse {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}
.next-steps {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #302b27;
  background: #151413;
  border-radius: 14px;
  padding: 24px 26px;
  margin-top: 20px;
}
.next-icon {
  height: 54px;
  width: 54px;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--orange);
  border: 1px solid #5b3824;
  border-radius: 12px;
  background: #231913;
}
.next-icon .ico {
  width: 25px;
  height: 25px;
}
.next-steps h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 6px 0;
}
.next-steps p:last-child {
  font-size: 12px;
  color: #939395;
  margin: 0;
  line-height: 1.5;
}
.text-action {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--orange);
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.7px;
  white-space: nowrap;
}
.text-action .ico {
  width: 15px;
  height: 15px;
}
/* Construction / empty state */
.construction {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  max-width: 550px;
  min-height: min(720px, calc(100dvh - 220px));
  padding: 28px 5px;
}
.construction-art {
  width: 172px;
  height: 172px;
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 40px;
}
.construction-ring {
  position: absolute;
  border: 1px solid #6f3b21;
  transform: rotate(45deg);
}
.ring-one {
  width: 150px;
  height: 150px;
  border-radius: 25px;
  opacity: 0.65;
}
.ring-two {
  width: 112px;
  height: 112px;
  border-radius: 20px;
  opacity: 0.4;
  transform: rotate(65deg);
}
.construction-icon {
  width: 58px;
  height: 58px;
  color: var(--orange);
  filter: drop-shadow(0 0 23px rgba(255, 118, 22, 0.22));
  stroke-width: 1.2;
}
.construction h1 {
  font-size: clamp(35px, 5vw, 58px);
  letter-spacing: -2px;
  margin: 12px 0 21px;
}
.construction-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #6e4229;
  color: var(--orange);
  padding: 10px 14px;
  border-radius: 50px;
  background: var(--orange-dim);
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: var(--font-weight-medium);
}
.construction-tag .status-led {
  background: var(--orange);
  box-shadow: 0 0 0 3px #ff761620;
}
.construction-copy {
  color: #a2a2a3;
  font-size: 14px;
  line-height: 1.7;
  max-width: 430px;
  margin: 23px 0 31px;
}
/* Bottom navigation – persistent on both tablet and phone */
.bottom-nav {
  position: fixed;
  z-index: 30;
  bottom: 0;
  right: 0;
  left: var(--sidebar);
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(16, 17, 19, 0.97);
  border-top: 1px solid #2c2b29;
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  max-width: 100%;
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.16);
}
.bottom-link {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #838486;
  font-size: 10px;
  font-weight: 650;
  position: relative;
}
.bottom-link .ico {
  height: 22px;
  width: 22px;
}
.bottom-link.active {
  color: var(--orange);
}
.bottom-link.active:after {
  content: "";
  height: 2px;
  background: var(--orange);
  width: 23px;
  position: absolute;
  bottom: 0;
  border-radius: 2px;
}
.bottom-link:hover {
  color: var(--orange-light);
}
.quick-add-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.quick-add-button {
  height: 52px;
  width: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--orange-light);
  background: var(--orange);
  color: #0c0806;
  box-shadow:
    0 0 0 6px rgba(255, 118, 22, 0.09),
    0 5px 23px rgba(255, 118, 22, 0.15);
  transition: transform 0.2s;
}
.quick-add-button .ico {
  height: 28px;
  width: 28px;
  stroke-width: 2.3;
}
.quick-add-button:hover {
  transform: translateY(-2px);
  background: var(--orange-light);
}
.quick-add-button.is-open {
  transform: rotate(45deg);
}
.quick-add-menu[hidden] {
  display: none !important;
}
.quick-add-menu {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 234px;
  padding: 13px;
  background: #1b1b1d;
  border: 1px solid #534034;
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.65);
}
.quick-add-menu:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: calc(50% - 5px);
  height: 10px;
  width: 10px;
  background: #1b1b1d;
  transform: rotate(45deg);
  border-right: 1px solid #534034;
  border-bottom: 1px solid #534034;
}
.quick-add-caption {
  padding: 3px 8px 12px;
  color: #8f9092;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 1.4px;
  border-bottom: 1px solid #303032;
  margin-bottom: 7px;
}
.quick-add-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  padding: 12px 9px;
  font-size: 12px;
}
.quick-add-menu a:hover {
  background: #33261f;
  color: var(--orange);
}
.quick-add-menu a > .ico {
  width: 18px;
  height: 18px;
  color: var(--orange);
}
.quick-add-menu .menu-arrow {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: #767679;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 1000;
  background: var(--orange);
  color: #000;
  padding: 8px;
}
.skip-link:focus {
  top: 10px;
}
/* Login */
.login-body {
  background: radial-gradient(ellipse at 50% 30%, #1c1714 0, #090a0c 52%);
  min-height: 100dvh;
}
.login-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  padding: 31px 22px 20px;
  position: relative;
  overflow: hidden;
}
.login-shell:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 110px,
      #242427 111px,
      #242427 112px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 110px,
      #242427 111px,
      #242427 112px
    );
  mask-image: radial-gradient(circle, #000, transparent 75%);
  pointer-events: none;
}
.login-brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}
.brand-mark {
  font-size: 36px;
  letter-spacing: -2px;
  font-weight: var(--font-weight-bold);
}
.brand-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #747578;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 750;
}
.meta-line {
  width: 22px;
  height: 1px;
  background: #666;
}
.login-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 425px);
  padding: 27px 32px 25px;
  background: linear-gradient(
    155deg,
    rgba(27, 27, 28, 0.97),
    rgba(15, 15, 16, 0.98)
  );
  border: 1px solid #34302d;
  border-radius: 19px;
  box-shadow: 0 28px 100px #0009;
  text-align: center;
}
.login-orbit {
  height: 144px;
  width: 144px;
  margin: 0 auto 16px;
  position: relative;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 118, 22, 0.28);
}
.orbit-one {
  width: 142px;
  height: 142px;
}
.orbit-two {
  width: 112px;
  height: 112px;
  border-style: dashed;
  opacity: 0.8;
}
.orbit-three {
  width: 81px;
  height: 81px;
  background: rgba(255, 118, 22, 0.08);
  box-shadow: 0 0 55px #ff76162a;
}
.login-cube {
  height: 66px;
  width: 66px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 8px #ff761666);
}
.login-panel h1 {
  font-size: clamp(30px, 5vw, 37px);
  letter-spacing: -1.5px;
  line-height: 1.18;
  margin: 14px 0;
}
.login-description {
  font-size: 13px;
  color: #959597;
  line-height: 1.6;
  margin: 0 auto 27px;
  max-width: 270px;
}
.login-form {
  text-align: left;
}
.field-label {
  display: flex;
  justify-content: space-between;
  color: #d6d5d3;
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 750;
  margin-bottom: 12px;
}
.field-label span {
  color: #7b7b7d;
}
.pin-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.pin-digit {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 1px solid #414044;
  border-radius: 8px;
  background: #151517;
  outline: none;
  text-align: center;
  font-size: 21px;
  color: var(--orange);
  caret-color: var(--orange);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.pin-digit:focus {
  border-color: var(--orange);
  background: #201912;
  box-shadow: 0 0 0 2px rgba(255, 118, 22, 0.12);
  outline: none;
}
.form-error {
  font-size: 12px;
  color: #ff9a8a;
  line-height: 1.4;
  margin: 14px 0 18px;
}
.form-hint {
  font-size: 10.5px;
  color: #77787a;
  line-height: 1.4;
  margin: 14px 0 18px;
}
.login-submit {
  width: 100%;
  height: 53px;
  justify-content: space-between;
  letter-spacing: 1px;
}
.login-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #29292c;
  margin-top: 26px;
  padding-top: 17px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #777779;
}
.login-footer-sep {
  color: #343436;
}
.login-bottom {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 750;
  color: #6f6f72;
  z-index: 1;
  margin: 20px 0 0;
}
.login-bottom span {
  color: var(--orange);
}
/* Tablet / smartphone responsive */
@media (max-width: 1250px) {
  :root {
    --sidebar: 224px;
  }
  .sidebar-head {
    padding: 0 17px;
  }
  .sidebar-profile {
    padding-inline: 13px;
  }
  .sidebar-scroll {
    padding-inline: 8px;
  }
  .sidebar-link {
    gap: 11px;
  }
  .hero-copy h1 {
    font-size: clamp(31px, 3.55vw, 48px);
  }
}
@media (max-width: 1050px) {
  :root {
    --sidebar: 0px;
    --bottom-h: 74px;
  }
  .sidebar-link {
    font-size: 18.75px;
  }
  .sidebar-section-title {
    font-size: 15px;
  }
  .sidebar {
    width: 265px;
    transform: translateX(-100%);
    box-shadow: 18px 0 45px #0008;
  }
  .sidebar-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #000a;
    z-index: 55;
  }
  .sidebar-close,
  .menu-toggle {
    display: inline-flex;
  }
  .workspace {
    margin-left: 0;
  }
  .bottom-nav {
    left: 0;
  }
  .home-hero {
    grid-template-columns: 1.3fr 0.7fr;
  }
  .hero-art {
    min-height: 230px;
  }
  .overview-grid {
    gap: 11px;
  }
  .overview-card {
    padding: 18px;
  }
}
@media (max-width: 700px) {
  :root {
    --bottom-h: 69px;
  }
  .topbar {
    height: 61px;
    padding: 0 17px;
  }
  .topbar-date {
    display: none;
  }
  .breadcrumbs span {
    font-size: 9px;
  }
  .topbar-start {
    gap: 9px;
  }
  .main-content {
    padding: 17px 13px 16px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 22px 55px;
  }
  .hero-copy h1 {
    font-size: clamp(29px, 8vw, 42px);
    letter-spacing: -1.3px;
    margin: 21px 0 12px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .hero-art {
    height: 180px;
    min-height: 180px;
    position: absolute;
    right: -25px;
    top: 6px;
    opacity: 0.22;
    width: 190px;
    pointer-events: none;
  }
  .art-label {
    display: none;
  }
  .hero-copy {
    z-index: 2;
  }
  .hero-copy h1 {
    max-width: 460px;
  }
  .hero-bottom {
    padding-inline: 22px;
    font-size: 7px;
  }
  .hero-bottom span:last-child {
    display: none;
  }
  .overview-section {
    margin-top: 28px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .section-aside {
    font-size: 8px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .overview-card {
    min-height: 0;
    padding: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
  }
  .card-top {
    grid-row: 1 / span 3;
    display: block;
    margin: 0;
  }
  .card-top .card-icon {
    height: 45px;
    width: 45px;
  }
  .card-arrow {
    display: none;
  }
  .card-number {
    margin: 1px 0 5px;
  }
  .overview-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .overview-card p {
    font-size: 11px;
    margin-bottom: 9px;
  }
  .card-bottom {
    grid-column: 1/-1;
    margin-top: 10px;
    padding-top: 10px;
  }
  .next-steps {
    align-items: flex-start;
    padding: 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .next-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
  .next-icon .ico {
    width: 19px;
    height: 19px;
  }
  .next-steps > div:nth-child(2) {
    flex: 1;
    min-width: 190px;
  }
  .next-steps h2 {
    font-size: 15px;
  }
  .next-steps p:last-child {
    font-size: 11px;
  }
  .text-action {
    margin: 7px 0 0 50px;
  }
  .bottom-link {
    font-size: 9px;
    gap: 4px;
  }
  .bottom-link .ico {
    height: 21px;
    width: 21px;
  }
  .quick-add-button {
    height: 47px;
    width: 47px;
    border-radius: 14px;
  }
  .quick-add-menu {
    width: 214px;
  }
  .main-footer {
    font-size: 8px;
    padding: 6px 17px;
  }
  .construction {
    min-height: calc(100dvh - 190px);
  }
  .construction-art {
    transform: scale(0.8);
    margin-bottom: 13px;
  }
  .construction-copy {
    font-size: 13px;
  }
}
@media (max-width: 350px) {
  .pin-group {
    gap: 5px;
  }
  .login-panel {
    padding: 24px 18px;
  }
  .bottom-link {
    font-size: 8px;
  }
  .hero-copy h1 {
    font-size: 27px;
  }
  .breadcrumbs span {
    display: none;
  }
  .breadcrumbs .ico {
    display: none;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-status {
    font-size: 8px;
  }
}
@media (max-height: 640px) and (min-width: 701px) {
  .login-shell {
    padding-block: 14px;
  }
  .login-panel {
    padding-block: 13px;
  }
  .login-orbit {
    height: 75px;
    margin-bottom: 7px;
  }
  .orbit-one {
    width: 75px;
    height: 75px;
  }
  .orbit-two {
    width: 63px;
    height: 63px;
  }
  .orbit-three {
    width: 45px;
    height: 45px;
  }
  .login-cube {
    height: 45px;
    width: 45px;
  }
  .login-description {
    margin-bottom: 12px;
  }
  .login-footer {
    margin-top: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Security APPS · Extensión v0.2, compatible con el tema oscuro existente */
.tool-page {
  max-width: 1210px;
  margin: 0 auto;
  padding: 22px 0 55px;
}
.tool-intro {
  margin-bottom: 29px;
}
.tool-intro h1 {
  font-size: clamp(36px, 4.7vw, 59px);
  letter-spacing: -2px;
  line-height: 1.06;
  margin: 17px 0 15px;
  font-weight: var(--font-weight-medium);
}
.tool-intro h1 span {
  color: var(--orange);
}
.tool-intro > p:last-child {
  max-width: 630px;
  color: #98999d;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.37fr) minmax(275px, 0.83fr);
  gap: 19px;
  align-items: stretch;
}
.tool-panel,
.tool-info {
  border: 1px solid #2d2b2a;
  border-radius: 17px;
  min-width: 0;
}
.tool-panel {
  padding: clamp(21px, 3vw, 33px);
  background: linear-gradient(145deg, #18181a, #101012 75%);
}
.tool-panel-head {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 27px;
  border-bottom: 1px solid #303032;
  margin-bottom: 29px;
}
.tool-icon {
  width: 54px;
  height: 54px;
  border: 1px solid #834f30;
  border-radius: 14px;
  background: var(--orange-dim);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
}
.tool-icon .ico {
  width: 26px;
  height: 26px;
}
.tool-panel-head .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
}
.tool-panel-head h2 {
  font-size: 21px;
  letter-spacing: -0.45px;
  margin: 7px 0 0;
}
.tool-label {
  display: block;
  color: #c6c6c7;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 1.5px;
  margin-bottom: 13px;
}
.tool-password-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #4c4540;
  border-radius: 10px;
  background: #0b0c0e;
  min-height: 65px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.tool-password-wrap:focus-within {
  border-color: var(--orange);
}
.tool-password-wrap input {
  min-width: 0;
  flex: 1;
  height: 62px;
  border: 0;
  background: transparent;
  color: #f4f4f4;
  padding: 0 18px;
  outline: 0;
  font:
    700 25px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 10px;
}
.tool-password-wrap input::placeholder {
  letter-spacing: 8px;
  color: #57585a;
}
.tool-minor-btn {
  background: transparent;
  border: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 750;
  padding: 14px;
  margin-right: 8px;
  border-radius: 7px;
}
.tool-minor-btn:hover {
  background: #28201a;
}
.tool-field-hint {
  color: #86878a;
  font-size: 12px;
  line-height: 1.55;
  margin: 12px 0 23px;
}
.tool-field-intro {
  margin: 0 0 24px;
}
.tool-field-hint code {
  color: #dbb497;
  overflow-wrap: anywhere;
}
.tool-primary-btn {
  border: 1px solid #ffa16b;
  background: var(--orange);
  color: #150c07;
  border-radius: 9px;
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 18px;
  font-weight: var(--font-weight-medium);
  font-size: 12px;
  letter-spacing: 0.8px;
  width: 100%;
  transition: background 0.2s;
}
.tool-primary-btn:hover {
  background: #ffa467;
}
.tool-primary-btn:disabled,
.tool-copy-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.tool-primary-btn .ico {
  width: 17px;
  height: 17px;
}
.tool-primary-btn .tool-arrow {
  margin-left: auto;
}
.tool-result[hidden] {
  display: none;
}
.tool-result {
  margin-top: 27px;
  padding-top: 23px;
  border-top: 1px solid #313134;
}
.tool-result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  color: #b3b3b7;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 1.1px;
}
.tool-result-tag {
  border: 1px solid #62432f;
  border-radius: 4px;
  padding: 6px 9px;
  background: #302116;
  color: var(--orange);
  font-size: 9px;
  white-space: nowrap;
}
.tool-result textarea {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #39393b;
  border-radius: 9px;
  padding: 17px;
  min-height: 98px;
  resize: vertical;
  color: #e8b895;
  background: #0a0b0d;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  overflow-wrap: anywhere;
  word-break: break-all;
  outline: none;
}
.tool-result textarea:focus {
  border-color: var(--orange);
}
.tool-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tool-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #5b4638;
  background: #2b211b;
  color: #ef9b64;
  border-radius: 8px;
  padding: 11px 14px;
  margin-top: 13px;
  font-weight: 750;
  font-size: 12px;
  min-height: 41px;
}
.tool-copy-btn:hover {
  border-color: #c17745;
  background: #3a2921;
}
.tool-copy-btn .ico {
  width: 17px;
  height: 17px;
}
.tool-copy-btn.tool-secondary-action {
  background: #191a1c;
  border-color: #37373a;
  color: #bdbdc0;
}
.tool-status {
  font-size: 12px;
  color: #9fd3b1;
  min-height: 17px;
  margin: 15px 0 0;
  line-height: 1.4;
}
.tool-status.is-error {
  color: #ff9789;
}
.tool-info {
  background:
    radial-gradient(circle at 80% 0%, #39221555, transparent 50%), #131315;
  padding: clamp(21px, 3vw, 30px);
  display: flex;
  flex-direction: column;
}
.tool-decoration {
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: var(--font-weight-medium);
  margin-bottom: 28px;
}
.tool-decoration .ico {
  width: 32px;
  height: 32px;
}
.tool-info h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.15;
  letter-spacing: -1.1px;
  margin: 0 0 13px;
}
.tool-info > p:not(.tool-warning) {
  color: #97979b;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 23px;
}
.tool-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid #313032;
}
.tool-spec span {
  color: #818287;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 1.15px;
}
.tool-spec strong {
  font-size: 12px;
  text-align: right;
  font-weight: 750;
  color: #d7d6d5;
}
.tool-spec strong:first-letter {
  color: var(--orange);
}
.tool-warning {
  background: #34231955;
  color: #cdb2a2;
  font-size: 12px;
  line-height: 1.62;
  padding: 15px;
  border-left: 2px solid var(--orange);
  border-radius: 0 7px 7px 0;
  margin: 22px 0;
}
.tool-side-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  color: var(--orange);
  font-size: 12px;
  font-weight: 750;
  padding-top: 8px;
}
.tool-side-link .ico {
  width: 15px;
  height: 15px;
}
@media (max-width: 950px) {
  .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-info {
    min-height: 0;
  }
}
@media (max-width: 700px) {
  .tool-page {
    padding-top: 10px;
  }
  .tool-intro {
    margin-bottom: 22px;
  }
  .tool-intro h1 {
    font-size: 36px;
    letter-spacing: -1.6px;
  }
  .tool-panel {
    padding: 20px 17px;
  }
  .tool-panel-head {
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 22px;
  }
  .tool-icon {
    width: 46px;
    height: 46px;
  }
  .tool-panel-head h2 {
    font-size: 19px;
  }
  .tool-info {
    padding: 21px;
  }
  .tool-password-wrap input {
    font-size: 23px;
    letter-spacing: 7px;
    padding-inline: 13px;
  }
  .tool-result-heading {
    flex-wrap: wrap;
  }
  .tool-result textarea {
    font-size: 11px;
  }
}

/* Estabilidad global del viewport: impide que cualquier vista amplíe o desplace el lienzo móvil. */
html,
body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

.app-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.app-shell,
.workspace,
.main-content {
  min-width: 0;
}

button,
input,
select,
textarea,
img,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video,
canvas,
iframe {
  display: block;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Componentes compartidos por módulos autenticados; cada módulo conserva su layout. */
.quote-panel,
.server-panel {
  border-color: var(--line-panel);
  border-radius: var(--radius-card);
  background: linear-gradient(
    145deg,
    var(--surface-card),
    var(--surface-card-end) 76%
  );
}

.quote-btn,
.server-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 41px;
  padding: 11px 15px;
  border: 1px solid var(--line-button);
  border-radius: var(--radius-control);
  background: var(--surface-button);
  color: var(--text-soft);
  font: 750 12px/1.4 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.quote-btn:hover,
.server-btn:hover {
  border-color: var(--orange);
  color: var(--text);
}

.quote-btn-primary,
.server-btn-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #17100b;
}

.quote-btn-primary:hover,
.server-btn-primary:hover {
  border-color: var(--orange-light);
  background: var(--orange-light);
  color: #17100b;
}

.quote-btn .ico,
.server-btn .ico {
  width: 16px;
  height: 16px;
}

.quote-form input:not([type="checkbox"]),
.quote-form select,
.quote-form textarea,
.quote-search input,
.quote-share-url input,
.server-form-wrap input:not([type="checkbox"]),
.server-form-wrap select,
.server-search input {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 8px 0 0;
  padding: 12px 13px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-control);
  outline: none;
  background: var(--surface-control);
  color: var(--text);
  font: 500 13px/1.5 var(--font-sans);
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus,
.quote-search input:focus,
.server-form-wrap input:focus,
.server-form-wrap select:focus,
.server-search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange-ring);
}

.quote-search input,
.server-search input {
  margin: 0;
}

.quote-search-label,
.server-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quote-search-status,
.server-search-status {
  min-height: 15px;
  color: #85858a;
  font-size: 10px;
  line-height: 1.4;
}

.quote-notice,
.server-notice,
.quote-error,
.server-error {
  padding: 14px 17px;
  margin-bottom: 16px;
  border: 1px solid var(--success-border);
  border-radius: var(--radius-control);
  background: #14311b44;
  color: #98d5a7;
  font-size: 13px;
}

.quote-error,
.server-error {
  border-color: var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.quote-check,
.server-check {
  display: flex !important;
  align-items: flex-start;
  gap: 13px;
  padding: 13px;
  margin: 0 !important;
  border: 1px solid #363538;
  border-radius: var(--radius-control);
  background: #161617;
  cursor: pointer;
}

.quote-check input,
.server-check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 4px 0 0;
  accent-color: var(--orange);
}

.quote-check strong,
.server-check strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.quote-check small,
.server-check small {
  display: block;
  margin-top: 4px;
  color: #98979b;
  font-size: 11px;
  font-weight: var(--font-weight-normal);
}

.quote-form-actions,
.server-form-actions {
  position: sticky;
  bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 13px;
  border: 1px solid #39373a;
  border-radius: 12px;
  background: #101113f5;
  backdrop-filter: blur(12px);
}

.quote-table-wrap,
.server-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.quote-table,
.server-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.quote-table th,
.server-table th {
  padding: 13px 10px;
  border-bottom: 1px solid #363537;
  color: #85858a;
  font-size: 10px;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.quote-table td,
.server-table td {
  padding: 16px 10px;
  border-bottom: 1px solid #272729;
  vertical-align: middle;
}

.quote-table td strong,
.server-table td strong {
  display: block;
  color: var(--text);
  font-weight: var(--font-weight-semibold);
}

.quote-table td small,
.server-table td small {
  display: block;
  margin-top: 4px;
  color: #89898d;
  font-size: 11px;
}

.quote-pagination,
.server-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
  color: #999;
  font-size: 12px;
}

.quote-pagination div,
.server-pagination div {
  display: flex;
  gap: 8px;
}

/* =========================================
   QUIPU MASTER - TIPOGRAFÍA GLOBAL
   ========================================= */

body {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-normal);
}

/* Textos destacados en toda la aplicación */
strong,
b {
  font-weight: var(--font-weight-medium) !important;
}

/* Títulos generales */
h1,
h2,
h3,
h4 {
  font-weight: var(--font-weight-semibold) !important;
}

/* LEONARDO_CU_V060 - CENTRAL RECORDS v0.6.0 - Componentes reutilizables para fichas de administración */
.records-page {
  max-width: 1390px;
  margin: 0 auto;
  padding: 8px 0 48px;
  color: var(--text);
  font-family: var(--font-sans);
}
.records-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.records-head h1 {
  font-size: clamp(28px, 4vw, 43px);
  letter-spacing: -1.2px;
  font-weight: 600;
  margin: 7px 0 10px;
}
.records-head p:not(.records-kicker) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}
.records-kicker {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--orange);
  font-weight: 600;
  margin: 0;
}
.records-head-actions,
.records-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.records-button {
  border: 1px solid var(--line-button);
  border-radius: var(--radius-control);
  color: var(--text);
  background: var(--surface-button);
  padding: 11px 15px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 500 12px/1.4 var(--font-sans);
  white-space: nowrap;
}
.records-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.records-primary {
  background: var(--orange);
  color: #130d08;
  border-color: var(--orange);
  font-weight: 600;
}
.records-primary:hover {
  background: var(--orange-light);
  color: #130d08;
}
.records-panel {
  padding: clamp(16px, 2.8vw, 29px);
  background: var(--surface-card);
  border: 1px solid var(--line-panel);
  border-radius: var(--radius-card);
  min-width: 0;
}
.records-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.records-toolbar > strong {
  font-size: 20px;
  font-weight: 600;
}
.records-toolbar form {
  width: min(100%, 390px);
}
.records-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px;
}
.records-toolbar input,
.records-form input:not([type="checkbox"]),
.records-form textarea,
.records-form select {
  display: block;
  min-height: 44px;
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  margin-top: 7px;
  border: 1px solid var(--line-control);
  border-radius: var(--radius-control);
  background: var(--surface-control);
  color: var(--text);
  font: 400 13px/1.5 var(--font-sans);
}
.records-toolbar input:focus,
.records-form input:focus-visible,
.records-form textarea:focus,
.records-form select:focus {
  outline: 2px solid var(--orange-ring);
  border-color: var(--orange);
}
.records-hint {
  display: block;
  font-size: 10px;
  color: var(--subtle);
  margin-top: 5px;
}
.records-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.records-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  min-width: 620px;
}
.records-table th {
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 10px;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-panel);
}
.records-table td {
  padding: 15px 10px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.records-table td strong,
.records-table td small {
  display: block;
}
.records-table td strong {
  font-weight: 500;
}
.records-table td small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.records-actions a,
.records-inline-link {
  color: var(--orange);
  font-weight: 500;
  text-decoration: none;
}
.records-actions a:hover,
.records-inline-link:hover {
  text-decoration: underline;
}
.records-badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
}
.records-badge.is-active {
  color: var(--success-text);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
}
.records-badge.is-inactive {
  color: var(--warning);
  background: var(--surface-3);
  border: 1px solid var(--line-panel);
}
.records-empty {
  padding: 26px 0;
  color: var(--muted);
  margin: 0;
}
.records-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.records-pagination > div {
  display: flex;
  gap: 8px;
}
.records-form fieldset {
  margin: 0 0 25px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.records-form legend {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  padding: 0;
  color: var(--text);
}
.records-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
.records-fields > label {
  min-width: 0;
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
}
.records-fields > label small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  margin-top: 6px;
  font-weight: 400;
}
.records-full {
  grid-column: 1/-1;
}
.records-fields > label.records-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line-panel);
  border-radius: var(--radius-control);
  background: var(--surface-control);
}
.records-checkbox input {
  appearance: auto;
  accent-color: var(--orange);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 3px 0 0;
}
.records-checkbox span {
  display: block;
}
.records-checkbox strong {
  display: block;
  font-weight: 600;
}
.records-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-panel);
  padding-top: 21px;
}
.records-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 25px;
  margin: 0;
}
.records-detail dl > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-panel);
  min-width: 0;
}
.records-detail dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.records-detail dd {
  font-size: 13px;
  color: var(--text);
  font-weight: 400;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.records-notice,
.records-error {
  padding: 12px 15px;
  margin-bottom: 18px;
  border-radius: var(--radius-control);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  background: var(--success-bg);
  font-size: 12px;
}
.records-error {
  border-color: var(--danger-border);
  color: var(--danger-text);
  background: var(--danger-bg);
}
.records-safe-hint,
.records-footer-link {
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 700px) {
  .records-head {
    gap: 14px;
  }
  .records-head h1 {
    font-size: 30px;
  }
  .records-fields,
  .records-detail dl {
    grid-template-columns: 1fr;
  }
  .records-toolbar form {
    width: 100%;
  }
  .records-table {
    min-width: 600px;
  }
  .records-form-actions {
    position: sticky;
    bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom, 0px));
    z-index: 3;
    padding: 12px;
    background: var(--surface-2);
    border-radius: 10px;
  }
}

/* LEONARDO MASTER PERSONAL: menú + seguro en móvil (también fuera del dashboard). */
.quick-add-menu{max-height:min(72dvh,550px);overflow:auto}
