:root {
  --graphite-900: #0f1720;
  --graphite-800: #1b2533;
  --graphite-700: #233041;
  --graphite-200: #d7dee8;
  --graphite-100: #e1e7ef;
  --orange: #ff6b2c;
  --white: #ffffff;
  --text-primary: #0e1621;
  --text-secondary: #3f4b5f;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background:
              radial-gradient(circle at 10% 20%, rgba(255,107,44,0.07), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(35,48,65,0.18), transparent 30%),
              repeating-linear-gradient(135deg, rgba(15,23,32,0.05) 0 1px, transparent 1px 10px),
              var(--graphite-100);
  line-height: 1.6;
  min-height: 100vh;
  transition: opacity 0.2s ease;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.page-shell {
  min-height: 100vh;
  padding: 24px 0 64px;
}
html.page-fade-out body {
  opacity: 0;
}
html.page-fade-in body {
  opacity: 0;
}
html::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
}
html.page-fade-out::before,
html.page-fade-in::before {
  opacity: 1;
}
html.auth-loading .nav-cta {
  visibility: hidden;
}
html.auth-loading body:not(.login-page) {
  opacity: 0;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(227, 233, 241, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: url("logo_v3.png") center center / cover no-repeat, linear-gradient(140deg, var(--orange), #ff884d);
  color: transparent;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(255, 107, 44, 0.35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; letter-spacing: 0.01em; }
.brand-tag { color: var(--text-secondary); font-size: 0.9rem; }

.nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(255,107,44,0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,107,44,0.1), rgba(255,107,44,0.04));
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}
.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav a:hover { color: var(--text-primary); background: rgba(255,107,44,0.12); }
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: rgba(255,107,44,0.8);
  border-radius: 999px;
}
.nav { flex-wrap: wrap; }

.nav-cta { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn.solid {
  background: linear-gradient(135deg, var(--orange), #ff894d);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(255, 107, 44, 0.3);
}
.btn.solid:hover { transform: translateY(-2px); }
.btn.ghost {
  background: rgba(35, 48, 65, 0.04);
  color: var(--text-primary);
  border-color: rgba(35, 48, 65, 0.1);
}
.btn.ghost:hover { background: rgba(35, 48, 65, 0.07); }
.btn.full { width: 100%; }

.hero {
  padding: 48px 0 64px;
}
.hero.hero-bg {
  position: relative;
  padding: 70px 0 80px;
  min-height: 80vh;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.18)), url("logo.png") center center / cover no-repeat;
  color: #fff;
}
.hero.hero-bg .pill { background: rgba(255,255,255,0.12); color: #fff; }
.hero.hero-bg .hero-copy h1 { color: #fff; }
.hero.hero-bg .hero-copy p { color: #fff; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.hero-bg .hero-grid.single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  margin: 12px 0 12px;
  letter-spacing: -0.02em;
}
.hero-bg .hero-copy p { color: #fff; }
.hero-bg .hero-copy {
  max-width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  margin: -80px auto 0;
}
.hero-line {
  color: #fff;
  font-weight: 700;
  font-size: 2.4rem;
  padding: 8px 12px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  white-space: nowrap;
  text-align: center;
}




.hero-logo { margin: 10px 0 12px; }

.hero.single .hero-copy h1 { display: none; }

.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.metric { display: block; font-size: 1.4rem; font-weight: 700; }
.metric-label { color: var(--text-secondary); }

.hero-panel {
  background: linear-gradient(160deg, var(--graphite-800), var(--graphite-700));
  color: var(--white);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.08);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 12px;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--text-secondary); }
.panel-header .eyebrow { color: rgba(255,255,255,0.7); }
.panel-header h3 { margin: 6px 0 0; }
.status-dot {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
}
.panel-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; }
.list-item { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.12); padding: 12px 14px; border-radius: 14px; }
.label { color: var(--text-secondary); font-weight: 600; margin: 0; font-size: 0.85rem; }
.panel-body .label { color: rgba(255,255,255,0.8); }
.value { margin: 0; font-weight: 700; font-size: 1.2rem; }
.summary-strip { padding: 8px 0; background: linear-gradient(135deg, rgba(255,107,44,0.06), rgba(255,255,255,0.96)); box-shadow: 0 -3px 12px rgba(0,0,0,0.04); border-bottom: 1px solid rgba(255,107,44,0.14); }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.summary-card {
  position: relative;
  border: 1px solid rgba(35,48,65,0.12);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
  overflow: hidden;
}
.summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,107,44,0.08), transparent 40%);
  pointer-events: none;
  opacity: 0.7;
}
.summary-card .label { color: var(--text-secondary); margin: 0 0 6px; }
.summary-card .value { font-size: 1.4rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.pill.subtle { background: rgba(35,48,65,0.08); color: var(--text-primary); border: 1px solid rgba(35,48,65,0.12); }
.hero-panel .pill.subtle { background: rgba(255,255,255,0.12); color: var(--white); border-color: rgba(255,255,255,0.2); }
.panel-footer { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 12px; color: rgba(255,255,255,0.85); }

.section {
  padding: 70px 0;
}
.section.muted { background: var(--graphite-100); }
.section h2 { margin: 10px 0 12px; font-size: clamp(1.8rem, 2.5vw, 2.4rem); }
.section p { margin: 0; color: var(--text-secondary); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.section-copy { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.section-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(35,48,65,0.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-top: 0; margin-bottom: 6px; }

.timeline { display: flex; flex-direction: column; gap: 14px; }
.timeline-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: var(--white); border-radius: 14px; padding: 14px 16px; border: 1px solid rgba(35,48,65,0.08); box-shadow: var(--shadow-soft); }
.note-box { display: grid; gap: 8px; width: 100%; }
.note-box textarea { width: 100%; resize: vertical; min-height: 72px; }
.state-badge.DEPO_FALTA_PIEZA { background: rgba(255, 107, 44, 0.12); color: #c74b1c; }
.state-badge.DEPO_PAUSADO { background: rgba(35, 48, 65, 0.12); color: #233041; }
.state-badge.DEPO_FALTA_PAGO { background: rgba(255, 193, 7, 0.16); color: #a67900; }
.state-badge.DEPO_EN_FILA { background: rgba(76, 175, 80, 0.12); color: #2f8f35; }
.state-badge.DEPO_IMPRESO { background: rgba(0, 123, 255, 0.12); color: #0b63c5; }
.state-badge.ARMA_PRIORIDAD { background: rgba(255, 87, 34, 0.16); color: #c4421a; }
.state-badge.ARMA_PAUSADO { background: rgba(35, 48, 65, 0.12); color: #233041; }
.state-badge.ARMA_ESPERANDO_PIEZA { background: rgba(255, 193, 7, 0.16); color: #a67900; }
.state-badge.ARMA_ESPERANDO_PAGO { background: rgba(255, 193, 7, 0.16); color: #a67900; }
.state-badge.ARMA_EN_PROCESO { background: rgba(76, 175, 80, 0.12); color: #2f8f35; }
.state-badge.ARMA_EN_FILA { background: rgba(0, 123, 255, 0.12); color: #0b63c5; }
.state-badge.ARMA_LISTO { background: rgba(76, 175, 80, 0.16); color: #1e7a22; }
.state-badge.ARMA_LIBRE_VENTA { background: rgba(0, 150, 136, 0.16); color: #0f6f64; }
.state-badge.ARMA_ENTREGADO { background: rgba(158, 158, 158, 0.16); color: #5f5f5f; }
.state-badge.ST_PRIORIDAD { background: rgba(255, 87, 34, 0.16); color: #c4421a; }
.state-badge.ST_PAUSADO { background: rgba(35,48,65,0.12); color: #233041; }
.state-badge.ST_ESPERANDO_PIEZA { background: rgba(255, 193, 7, 0.16); color: #a67900; }
.state-badge.ST_COTIZADO { background: rgba(0, 123, 255, 0.12); color: #0b63c5; }
.state-badge.ST_EN_PROCESO { background: rgba(76, 175, 80, 0.12); color: #2f8f35; }
.state-badge.ST_EN_FILA { background: rgba(0, 123, 255, 0.12); color: #0b63c5; }
.state-badge.ST_LISTO { background: rgba(76, 175, 80, 0.16); color: #1e7a22; }
.state-badge.ST_CONFIRMADO { background: rgba(0, 150, 136, 0.14); color: #0f6f64; }
.state-badge.ST_LLAMAR_CLIENTE { background: rgba(255, 193, 7, 0.2); color: #a67900; }
.state-badge.ST_ENTREGADO { background: rgba(158,158,158,0.16); color: #5f5f5f; }
.state-badge.RMA_INGRESADO { background: rgba(0, 123, 255, 0.12); color: #0b63c5; }
.state-badge.RMA_EN_PROVEEDOR { background: rgba(255, 193, 7, 0.16); color: #a67900; }
.state-badge.RMA_AVISADO { background: rgba(76, 175, 80, 0.12); color: #2f8f35; }
.state-badge.RMA_DOA { background: rgba(244, 67, 54, 0.16); color: #c62828; }
.state-badge.RMA_AVISAR { background: rgba(255, 193, 7, 0.16); color: #a67900; }
.state-badge.RMA_SEPARADO { background: rgba(0, 150, 136, 0.16); color: #0f6f64; }
.state-badge.RMA_GESTION_URGENTE { background: rgba(255, 87, 34, 0.16); color: #c4421a; }
.state-badge.RMA_ENTREGADO { background: rgba(158,158,158,0.16); color: #5f5f5f; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(255,107,44,0.15); }

.card-stack { display: grid; gap: 12px; }
.stack-card { background: linear-gradient(135deg, #ffffff, #f6f7fb); border: 1px solid rgba(35,48,65,0.08); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-soft); }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(255,107,44,0.12); color: #b54313; font-weight: 700; font-size: 0.85rem; }

.workflow { display: grid; gap: 12px; }
.workflow-step { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: var(--white); border-radius: 14px; padding: 14px 16px; border: 1px solid rgba(35,48,65,0.08); box-shadow: var(--shadow-soft); }
.icon-circle { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--graphite-900); color: var(--white); font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.cta {
  background: linear-gradient(135deg, var(--graphite-900), var(--graphite-700));
  color: var(--white);
  padding: 28px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-soft);
}
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .eyebrow { color: rgba(255,255,255,0.7); }
.cta p { color: rgba(255,255,255,0.9); }

.footer {
  background: var(--graphite-900);
  color: var(--white);
  padding: 40px 0;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.footer-links, .footer-contact { display: grid; gap: 8px; }
.footer a { color: rgba(255,255,255,0.85); }
.footer-copy { color: rgba(255,255,255,0.75); max-width: 360px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--text-primary);
  border-radius: 6px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.section-copy .eyebrow { color: #ff6b2c; }
.pill.subtle:nth-child(odd) { background: rgba(255,107,44,0.12); border-color: rgba(255,107,44,0.2); color: #b54313; }

/* Pages */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; gap: 12px; flex-wrap: wrap; }
.page-title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
.breadcrumb { color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }
.surface { background: #fff; border: 1px solid rgba(35,48,65,0.08); border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.06); }
.section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.placeholder { border: 1px dashed rgba(35,48,65,0.2); border-radius: 12px; padding: 16px; color: var(--text-secondary); text-align: center; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid-form input, .grid-form select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(35,48,65,0.12); }
.grid-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(35,48,65,0.12); min-height: 80px; resize: vertical; }
.grid-form .wide-text { min-height: 120px; }
.grid-form .full-width { grid-column: 1 / -1; }
.log-area { min-height: 140px; }
.componentes { margin-top: 16px; border: 1px dashed rgba(35,48,65,0.16); border-radius: 12px; padding: 12px; }
.comp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.comp-list { display: grid; gap: 8px; }
.comp-row { display: grid; grid-template-columns: 1.2fr 1fr 0.4fr auto; gap: 8px; align-items: center; }
.comp-row input { padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(35,48,65,0.12); width: 100%; }
.build-card { display: flex; padding: 6px 8px !important; cursor: pointer; }
.build-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.build-main { display: grid; gap: 2px; min-width: 200px; }
.build-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.build-head { display: flex; flex-direction: column; gap: 2px; }
.build-head strong, .build-name { font-size: 0.98rem; line-height: 1.2; }
.build-meta { color: var(--text-secondary); font-size: 0.84rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.build-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.build-actions select { padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(35,48,65,0.12); font-size: 0.9rem; }
.build-actions .btn { padding: 6px 8px; font-size: 0.88rem; }
.build-card.drag-over { outline: 1px dashed rgba(35,48,65,0.4); outline-offset: 2px; }
.badge-light { padding: 4px 8px; border-radius: 12px; background: rgba(35,48,65,0.06); color: var(--text-secondary); font-weight: 700; font-size: 0.9rem; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.input-inline { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(35,48,65,0.12); }
.notice { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; display: none; }
.notice.info { background: #e5f0ff; color: #0b62c0; }
.notice.success { background: #e7f6ed; color: #0b7a4c; }
.notice.warn { background: #fff4e5; color: #b36a00; }
.notice.error { background: #fdecea; color: #b3261e; }

.state-badge { padding: 6px 10px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; }
.state-badge.EN_FILA { background: rgba(66,133,244,0.12); color: #0b62c0; }
.state-badge.PRIORIDAD { background: rgba(255,107,44,0.16); color: #b54313; }
.state-badge.ESPERANDO_PAGO { background: rgba(255,170,0,0.16); color: #b36a00; }
.state-badge.ESPERANDO_PIEZA { background: rgba(123,97,255,0.14); color: #4a3fb3; }
.state-badge.EN_PROCESO { background: rgba(15,184,94,0.14); color: #0b7a4c; }
.state-badge.LISTO { background: rgba(0,128,255,0.14); color: #0b62c0; }
.state-badge.PAUSADO { background: rgba(128,128,128,0.16); color: #4a4a4a; }
.state-badge.LIBRE_PARA_VENTA { background: rgba(0,150,136,0.16); color: #0b7a6a; }
.state-badge.ENTREGADO { background: rgba(0,0,0,0.1); color: #1f2933; }

/* Modal */
.modal-backdrop.simple { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal.simple { background: #fff; border-radius: 16px; border: 1px solid rgba(35,48,65,0.08); box-shadow: 0 20px 50px rgba(0,0,0,0.18); width: min(900px, 96vw); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.modal.simple header { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(35,48,65,0.08); background: linear-gradient(135deg, var(--graphite-800), var(--graphite-700)); color: #fff; }
.modal.simple header .btn { border: 1px solid rgba(255,255,255,0.4); color: #fff !important; }
.modal.simple .body { padding: 14px 16px; overflow: auto; display: grid; gap: 10px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }

@media (max-width: 960px) {
  .nav-bar { grid-template-columns: auto auto auto; gap: 12px; }
  .nav { position: absolute; inset: 70px 16px auto 16px; background: var(--white); border: 1px solid rgba(35,48,65,0.1); border-radius: 14px; padding: 12px; flex-direction: column; gap: 8px; box-shadow: var(--shadow-soft); display: none; }
  .nav.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: 90vw; }
  .hero { padding-top: 32px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-meta { grid-template-columns: 1fr; }
}
/* Form helpers and filters */
.grid-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(35,48,65,0.12); min-height: 80px; resize: vertical; }
.grid-form .wide-text { min-height: 120px; }
.grid-form .full-width { grid-column: 1 / -1; }
.log-area { min-height: 140px; }

.card.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: end; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label { font-weight: 600; font-size: 13px; color: var(--text-secondary); }
.filter-group input,
.filter-group select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(35,48,65,0.12); background: #fff; font-size: 14px; }
.filter-group.checkbox-inline { align-self: center; display: flex; align-items: center; }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.toggle-track {
  width: 46px;
  height: 26px;
  background: rgba(35,48,65,0.18);
  border-radius: 999px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(35,48,65,0.2);
  transition: background 0.2s ease;
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}
.toggle input:checked + .toggle-track {
  background: rgba(255,107,44,0.6);
}
.toggle input:checked + .toggle-track::after {
  transform: translateX(20px);
}
.filter-group .inline { display: inline-flex; align-items: center; gap: 8px; }

.kanban { display: grid; gap: 18px; }
.kanban > div { display: flex; flex-direction: column; gap: 10px; }
