:root {
  color-scheme: light;
  --bg0: #f4f7fb;
  --bg1: #eef3fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.68);
  --border: rgba(15, 23, 42, 0.10);
  --border2: rgba(15, 23, 42, 0.14);
  --shadow-sm: 0 1px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 32px 80px rgba(15, 23, 42, 0.16);
  --primary: #3b82f6;
  --primary-700: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.10);
  --accent-soft: rgba(34, 211, 238, 0.10);
  --accent: #84cc16;
  --warning: #f59e0b;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --iq-topbar-h: 72px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(59, 130, 246, 0.20), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(132, 204, 22, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}
a { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 20px; }
.wrap { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.muted { color: var(--muted); }

.portal-backbar {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 12px;
}
.portal-back-btn {
  border-color: rgba(37, 99, 235, 0.30);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(37, 99, 235, 0.10));
  color: #1d4ed8;
  font-weight: 900;
  padding: 11px 14px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}
.portal-back-btn:hover {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.20), rgba(37, 99, 235, 0.13));
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  flex-wrap: nowrap;
}
.topbar-left { display: flex; align-items: center; min-width: 0; flex: 1 1 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}
.logo img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 6px; }
.brand-text { min-width: 0; }
.brand-name { font-weight: 950; letter-spacing: -0.02em; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12px; line-height: 1.1; color: var(--muted); margin-top: 2px; }

.top-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; flex-wrap: nowrap; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.icon-btn:hover { background: #fff; border-color: rgba(15, 23, 42, 0.20); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 18px; height: 18px; }

.hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  margin: 14px auto 0;
  max-width: 1180px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.06));
  box-shadow: var(--shadow-md);
}
.hero-av {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.hero-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-av span { font-weight: 950; color: #1e3a8a; }
.hero-title { font-weight: 950; font-size: 28px; letter-spacing: -0.03em; line-height: 1.05; }
.hero-title .hola { color: var(--accent); }
.hero-title .name { color: var(--primary-700); }
.hero-sub { margin-top: 2px; font-size: 12px; color: var(--muted); }

/* Cards, pills, buttons */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.card h1, .card h2, .card h3 {
  margin: 0 0 10px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.card h1 { font-size: 28px; }
.card h2 { font-size: 20px; }
.card h3 { font-size: 16px; }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 15px;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn.block { width: 100%; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.btn.block > * { width: 100%; }
.btn:hover { background: #fff; border-color: rgba(15, 23, 42, 0.20); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  border-color: rgba(37, 99, 235, 0.65);
  background: linear-gradient(180deg, var(--primary), var(--primary-700));
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}
.btn.primary:hover { filter: brightness(0.98); }
.btn.icon { width: 42px; height: 42px; padding: 10px; }
.btn.icon svg { width: 18px; height: 18px; }
.btn.soft {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}
.btn.soft:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(59, 130, 246, 0.12);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.04);
}
.btn.danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
  color: #b91c1c;
}
.btn.danger:hover { border-color: rgba(239, 68, 68, 0.52); background: rgba(239, 68, 68, 0.08); }
.btn.danger:active { transform: translateY(1px); }

.brand-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-block;
}
.btn.brand-ig { color: #E1306C; }
.btn.brand-fb { color: #1877F2; }
.btn.brand-ig:hover, .btn.brand-fb:hover { filter: none; }
.btn-rate-workshop {
  border-color: rgba(245, 158, 11, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 247, 237, 0.95));
  color: #9a3412;
  box-shadow: 0 14px 26px rgba(245, 158, 11, 0.14);
  font-weight: 850;
}
.btn-rate-workshop:hover {
  border-color: rgba(245, 158, 11, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 1), rgba(255, 244, 230, 1));
}
.btn-rate-workshop__icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.18);
}
.btn-rate-workshop__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: rgba(15, 23, 42, 0.04);
  font-weight: 700;
}

.taller-av {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(15,23,42,0.02);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.taller-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

.iq-section-sub { margin-top: -6px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.iq-map { height: 260px; border-radius: 16px; border: 1px solid rgba(15,23,42,0.10); overflow: hidden; margin-top: 12px; background: rgba(15,23,42,0.02); }
.iq-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }

.flash { margin: 12px 0; padding: 12px 12px; border-radius: 14px; border: 1px solid var(--border2); background: rgba(255, 255, 255, 0.90); box-shadow: var(--shadow-sm); }
.flash.error { border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.08); }
.flash.success { border-color: rgba(34, 197, 94, 0.45); background: rgba(34, 197, 94, 0.08); }
.flash.warn { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.10); }

.section-title { display: flex; align-items: center; gap: 10px; }
.section-title svg { width: 18px; height: 18px; opacity: 0.85; flex: 0 0 auto; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.48); z-index: 1300; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.modal-overlay[hidden] { display: none !important; }
.modal { width: min(520px, 100%); background: rgba(255,255,255,0.98); border: 1px solid rgba(15,23,42,0.12); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 14px 16px; border-bottom: 1px solid rgba(15,23,42,0.08); }
.modal-title { font-weight: 950; letter-spacing: -0.02em; }
.modal-body { padding: 14px 16px; }
.modal-field { margin-top: 12px; }
.modal-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stars { display:flex; gap: 8px; }
.star-btn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(15,23,42,0.14); background: rgba(15,23,42,0.02); color: rgba(15,23,42,0.35); font-size: 18px; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow: var(--shadow-sm); }
.star-btn:hover { border-color: rgba(245,158,11,0.55); background: rgba(245,158,11,0.08); }
.star-btn.is-on { border-color: rgba(245,158,11,0.55); background: rgba(245,158,11,0.12); color: #f59e0b; }
.modal-textarea { width: 100%; min-height: 110px; resize: vertical; padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(15,23,42,0.14); font: inherit; outline: none; background: #fff; }
.modal-textarea:focus { border-color: rgba(37,99,235,0.55); box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }
.modal-hint { margin-top: 6px; font-size: 12px; color: rgba(15,23,42,0.62); }
.modal-actions { display:flex; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(15,23,42,0.08); background: rgba(15,23,42,0.02); justify-content: flex-end; flex-wrap: wrap; }
.modal-msg { margin-top: 10px; }

@media (max-width: 460px) {
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal { border-radius: 22px; }
}

/* Notifications panel */
.notif-panel { position: fixed; right: 12px; top: calc(var(--iq-topbar-h, 72px) + env(safe-area-inset-top, 0px)); width: min(420px, calc(100vw - 24px)); background: #fff; border: 1px solid rgba(15, 23, 42, 0.12); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 1100; max-height: calc(100vh - 90px); display: flex; flex-direction: column; }
.notif-panel[hidden] { display: none !important; }
.notif-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 12px 14px; border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
.notif-title { font-weight: 950; letter-spacing: -0.02em; }
.notif-body { overflow: auto; padding: 10px 10px; flex: 1 1 auto; }
.notif-item { display:block; padding: 10px 10px; border-radius: 14px; text-decoration:none; border: 1px solid rgba(15, 23, 42, 0.10); background: rgba(15, 23, 42, 0.02); }
.notif-item + .notif-item { margin-top: 10px; }
.notif-item.unread { background: rgba(37, 99, 235, 0.06); border-color: rgba(37, 99, 235, 0.18); }
.notif-item .t { font-weight: 900; }
.notif-item .m { margin-top: 4px; font-size: 13px; line-height: 1.4; color: rgba(15, 23, 42, 0.78); }
.notif-item .meta { margin-top: 6px; font-size: 12px; color: rgba(15, 23, 42, 0.55); }
.notif-actions { display:flex; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(15, 23, 42, 0.08); background: rgba(15, 23, 42, 0.02); flex: 0 0 auto; flex-wrap: wrap; }
.notif-actions .btn { padding: 9px 10px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.notif-badge { display:none; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 6px; border-radius:999px; background:#ef4444; color:#fff; font-size:11px; font-weight:900; line-height:1; }

/* Sidebar */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.42); z-index: 1200; display:flex; align-items:stretch; justify-content:flex-start; }
.sidebar-overlay[hidden] { display:none !important; }
.sidebar { width: min(360px, 88vw); height: 100%; background: rgba(255,255,255,0.98); border-right: 1px solid rgba(15, 23, 42, 0.10); box-shadow: var(--shadow-lg); transform: translateX(-102%); transition: transform 220ms cubic-bezier(.2,.8,.2,1); padding: 14px; display:flex; flex-direction:column; gap: 12px; }
.sidebar-overlay.is-open .sidebar { transform: translateX(0); }
.sidebar-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sidebar-title { font-weight: 950; letter-spacing:-0.02em; }
.sidebar-user { display:flex; align-items:center; gap:10px; padding: 10px 12px; border-radius: 18px; border: 1px solid rgba(15, 23, 42, 0.10); background: rgba(15, 23, 42, 0.02); }
.sidebar-av { width: 44px; height: 44px; border-radius: 999px; overflow:hidden; border: 1px solid rgba(15, 23, 42, 0.10); background: rgba(59, 130, 246, 0.10); display:flex; align-items:center; justify-content:center; flex: 0 0 auto; }
.sidebar-av img { width:100%; height:100%; object-fit:cover; display:block; }
.sidebar-av span { font-size: 14px; font-weight: 950; color: #1e3a8a; }
.sidebar-usertext { min-width:0; }
.sidebar-hello { font-weight: 950; letter-spacing: -0.02em; line-height: 1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-email { margin-top: 4px; font-size: 12px; color: var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-nav { display:flex; flex-direction:column; gap:10px; }
.sidebar-item { display:flex; align-items:center; gap:10px; padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(15, 23, 42, 0.10); background: rgba(255, 255, 255, 0.92); text-decoration:none; font-weight: 850; color: var(--text); cursor: pointer; }
.sidebar-item:hover { border-color: rgba(15, 23, 42, 0.18); background:#fff; }
.sidebar-item.is-active {
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.10), rgba(59, 130, 246, 0.06));
  color: #1d4ed8;
}
.sidebar-item svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sidebar-item .spacer { flex: 1 1 auto; min-width:0; }
.sidebar-footer { margin-top:auto; padding-top: 10px; border-top: 1px solid rgba(15, 23, 42, 0.08); }

/* Leaflet markers */
.iq-leaflet-marker { background: transparent; border: 0; }
.iq-marker { width:36px; height:36px; border-radius:999px; overflow:hidden; border:2px solid rgba(255,255,255,0.95); box-shadow: 0 10px 25px rgba(15,23,42,0.20); background: rgba(37,99,235,0.10); display:flex; align-items:center; justify-content:center; }
.iq-marker-img { width:100%; height:100%; object-fit:cover; display:block; }
.iq-marker-text { font-weight: 900; font-size: 12px; color: #1e40af; letter-spacing: -0.02em; }

@media (max-width: 460px) {
  .container { padding: 14px; }
  .portal-backbar { margin-bottom: 10px; }
  .portal-back-btn { width: 100%; justify-content: center; }
  .topbar { padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px; }
  .brand-sub { display:none; }
  .hero { padding: 14px 14px; margin: 12px 14px 0; max-width: none; }
  .hero-title { font-size: 24px; }
  .top-actions { gap: 8px; }
  .sidebar { width: min(360px, 92vw); padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active, .icon-btn:active { transform: none; }
  .sidebar { transition: none; }
}

/* Portal refresh */
.portal-shell {
  padding-top: 18px;
  padding-bottom: 36px;
}

.portal-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.portal-page__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.portal-page__eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(37, 99, 235, 0.82);
}

.portal-page__title {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.portal-page__subtitle {
  margin: 8px 0 0;
  max-width: 700px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.portal-page__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-grid {
  display: grid;
  gap: 18px;
}

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

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

.portal-module {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.93));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.portal-module__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.portal-module__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.portal-module__title svg {
  width: 18px;
  height: 18px;
  color: #2563eb;
}

.portal-module__sub {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.portal-module__body {
  padding: 18px 20px 20px;
}

.portal-module__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-empty {
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.66), rgba(248,250,252,0.9));
  text-align: center;
  color: var(--muted);
}

.portal-empty svg {
  width: 26px;
  height: 26px;
  color: rgba(37, 99, 235, 0.65);
}

.portal-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-quick-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  min-height: 122px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.portal-quick-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.18);
}

.portal-quick-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(59,130,246,0.14), rgba(34,211,238,0.10));
  color: #2563eb;
}

.portal-quick-card__icon svg {
  width: 20px;
  height: 20px;
}

.portal-quick-card__title {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.portal-quick-card__text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.portal-map-shell {
  margin-top: 14px;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248,250,252,0.92), rgba(255,255,255,0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.portal-list-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.taller-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.taller-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.taller-card__identity {
  min-width: 0;
  flex: 1 1 auto;
}

.taller-card__title-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.taller-card__title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.taller-card__distance {
  flex: 0 0 auto;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  color: #0f766e;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.10);
  border: 1px solid rgba(20, 184, 166, 0.14);
}

.taller-card__address {
  margin-top: 6px;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--muted);
}

.taller-card__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.taller-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-hero {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.profile-hero__avatar {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(59,130,246,0.16), rgba(34,211,238,0.12));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
  flex: 0 0 auto;
}

.profile-hero__avatar img,
.profile-hero__avatar span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-hero__avatar img { object-fit: cover; }
.profile-hero__avatar span { font-weight: 950; font-size: 1.15rem; color: #1d4ed8; }

.profile-hero__title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  font-weight: 950;
}

.profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-stat {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248,250,252,0.84);
}

.profile-stat__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(15, 23, 42, 0.56);
  font-weight: 800;
}

.profile-stat__value {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.portal-form-grid {
  display: grid;
  gap: 12px;
}

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

.portal-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.portal-field__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.56);
}

.portal-input,
.portal-field input,
.portal-field select,
.portal-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.portal-input:focus,
.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vehicle-card {
  display: block;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.vehicle-card:hover {
  border-color: rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

.vehicle-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.vehicle-card__logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248,250,252,0.86);
  flex: 0 0 auto;
}

.vehicle-card__logo img,
.vehicle-card__logo span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-card__logo img { object-fit: contain; }
.vehicle-card__logo span { font-weight: 950; color: #1d4ed8; }

.vehicle-card__title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.vehicle-card__meta {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.vehicle-card__arrow {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #2563eb;
}

.summary-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.summary-card__logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(59,130,246,0.14), rgba(34,211,238,0.10));
  flex: 0 0 auto;
}

.summary-card__logo img,
.summary-card__logo span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-card__logo img { object-fit: contain; }
.summary-card__logo span { font-weight: 950; color: #1d4ed8; }

.summary-card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 800;
}

.summary-card__title {
  margin: 4px 0 0;
  font-size: 1.35rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.summary-card__meta {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-list__item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(248,250,252,0.74);
}

.detail-list__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(15, 23, 42, 0.56);
  font-weight: 800;
}

.detail-list__value {
  margin-top: 8px;
  font-weight: 800;
  line-height: 1.5;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248,250,252,0.76);
}

.order-card__head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.order-card__title {
  font-weight: 900;
  font-size: 1rem;
}

.order-card__meta {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.order-card__problem {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #fff;
}

@media (max-width: 860px) {
  .portal-grid--3 { grid-template-columns: 1fr; }
  .portal-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .portal-shell {
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .portal-page { gap: 16px; }
  .portal-page__head { gap: 12px; }
  .portal-page__actions,
  .portal-module__actions {
    width: 100%;
  }

  .portal-page__actions .btn,
  .portal-module__actions .btn {
    flex: 1 1 100%;
  }

  .portal-quick-grid { grid-template-columns: 1fr; }
  .profile-hero,
  .summary-card,
  .taller-card__head,
  .vehicle-card__head {
    gap: 12px;
  }

  .portal-form-grid--2 { grid-template-columns: 1fr; }
}

.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.portal-stat-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,255,0.96));
  border-radius: 20px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow-sm);
}

.portal-stat-card__label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portal-stat-card__value {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.3rem;
}

.portal-stat-card__hint {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.3rem;
  line-height: 1.45;
}

.portal-stat-card.is-success {
  border-color: rgba(34, 197, 94, 0.20);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.98), rgba(255,255,255,0.96));
}

.portal-stat-card.is-warning {
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255,255,255,0.96));
}

.portal-stat-card.is-danger {
  border-color: rgba(239, 68, 68, 0.22);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255,255,255,0.96));
}

.portal-section-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.portal-module--soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(243,247,253,0.94));
}

.portal-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.portal-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.portal-kv-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(248, 250, 252, 0.72);
}

.portal-kv-card__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-kv-card__value {
  margin-top: 0.42rem;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.portal-danger-card {
  border: 1px solid rgba(239, 68, 68, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,245,245,0.96));
}

.portal-summary-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.portal-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 32px;
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.portal-order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.42rem 0.86rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.portal-order-status.is-success {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.portal-order-status.is-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.portal-order-status.is-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.portal-order-status.is-neutral {
  background: rgba(51, 65, 85, 0.12);
  color: #475569;
}

.portal-maint-list,
.portal-attachments-grid {
  display: grid;
  gap: 0.9rem;
}

.portal-attachment-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.78);
  overflow: hidden;
}

.portal-attachment-card__head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
}

.portal-attachment-card__media {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(226, 232, 240, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.portal-attachment-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-back-row {
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .portal-stats-grid,
  .portal-stats-grid--2,
  .portal-kv-grid,
  .portal-summary-grid {
    grid-template-columns: 1fr;
  }
}
