:root { color-scheme: light; font-family: "Plus Jakarta Sans", Arial, sans-serif; color: #1e293b; background: #f1f5f9; --green: #00685b; --dark: #003d35; --muted: #64748b; --border: #cbd5e1; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; -webkit-font-smoothing: antialiased; }
#application { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, select { min-height: 46px; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #18a78a; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.15rem); letter-spacing: -.03em; }
h2 { font-size: 1.2rem; }
.muted { color: var(--muted); line-height: 1.6; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .16em; color: var(--green); }
.hero { position: relative; flex: none; height: 240px; padding: 20px 32px 0; color: white; text-align: center; isolation: isolate; overflow: hidden; }
.hero-crescent { position: absolute; z-index: -1; top: 0; left: 50%; transform: translateX(-50%); width: 100%; min-width: 1200px; height: 240px; border-radius: 0 0 50% 50%; background: linear-gradient(180deg, #003d35, #00685b); box-shadow: 0 10px 15px -3px #0f172a1a, 0 4px 6px -4px #0f172a1a; }
.topbar { position: absolute; top: 16px; left: 32px; right: 32px; display: flex; align-items: flex-start; justify-content: flex-start; gap: 16px; font-size: .75rem; }
#application[data-view="home"] .topbar { top: 8px; left: 16px; right: 16px; }
.session-bar { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.session-toggle { display: grid; place-items: center; flex: none; width: 48px; min-height: 48px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: white; font-size: 23px; }
.session-toggle:hover { background: #ffffff12; }
.session-toggle:disabled { opacity: .5; }
.session-greeting { min-width: 0; max-width: calc((100% - 352px) / 2 - 56px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f4fffb; font-size: .88rem; font-weight: 600; }
.session-notifications { display: grid; place-items: center; flex: none; width: 48px; height: 48px; margin-left: auto; font-size: 23px; color: white; cursor: default; }
.shared-header-icon { display: block; width: 23px; height: 23px; background: currentColor; -webkit-mask: var(--header-icon) center / contain no-repeat; mask: var(--header-icon) center / contain no-repeat; }
.shared-header-icon-menu { --header-icon: url("./assets/icons/menu.svg"); }
.shared-header-icon-bell { --header-icon: url("./assets/icons/bell.svg"); }
body.session-drawer-open { overflow: hidden; }
.session-drawer { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; gap: 24px; width: min(88vw, 380px); max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: calc(36px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: white; color: #24584d; text-align: left; overflow-y: auto; overflow-wrap: anywhere; overscroll-behavior: contain; box-shadow: 10px 0 32px #002a243d; }
.session-drawer::backdrop { background: #001c188c; }
.session-drawer h2 { flex: none; margin: 0; color: #213b38; font-size: 1.2rem; letter-spacing: .06em; }
.drawer-user { padding-bottom: 22px; border-bottom: 1px solid #dce9e3; }
.drawer-label { display: block; margin-bottom: 10px; color: #52796d; font-size: .75rem; font-weight: 700; }
.drawer-name { display: block; color: #213b38; font-size: 1.05rem; line-height: 1.3; }
.drawer-role { display: block; margin-top: 5px; color: #52796d; font-size: .86rem; }
.drawer-connection-status { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--green); font-size: .8rem; font-weight: 700; }
.drawer-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid #dce9e3; }
.drawer-footer button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--green); text-align: left; font-size: .86rem; font-weight: 700; }
.drawer-footer button:hover { background: #edf5f1; }
.brand-lockup { display: inline-flex; flex-direction: column; }
.brand { display: flex; align-items: center; justify-content: center; gap: 16px; }
.brand img { width: 80px; height: 80px; flex: none; filter: drop-shadow(0 4px 3px #00000012); }
.brand span { font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: .05em; text-shadow: 0 1px 2px #0000000d; }
.brand-slogan { display: flex; justify-content: space-between; color: #ccfbf1; font-weight: 500; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 0; }
.brand-slogan span:nth-child(even) { color: #6ee7b7; }
.home-search { display: none; align-items: center; gap: 12px; width: min(100%, 440px); min-height: 42px; margin: 16px auto 0; padding: 10px 20px; border: 1px solid #ffffff26; border-radius: 999px; background: #0000001a; color: #cce6df; font-size: .8rem; text-align: left; cursor: default; }
#application[data-view="home"] .home-search { display: flex; }
.surface { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 1024px; padding: 8px 32px; margin: 32px auto; }
#login-panel { width: 100%; max-width: 820px; margin: 0 auto; }
.login-card { position: relative; min-height: 400px; border: 1px solid #ffffff99; border-radius: 30px; background: white; box-shadow: 0 25px 60px -15px #0d6e642e; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.login-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.login-mobile-stripe { display: none; }
.login-form-panel { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.login-heading { margin-bottom: 24px; }
.login-heading h1 { font-size: 24px; font-weight: 800; color: #1e293b; line-height: 1.3; margin-bottom: 4px; }
.login-heading p { font-size: 12px; font-weight: 500; color: #94a3b8; margin: 0; }
input, select { width: 100%; padding: 12px 14px; border: 1px solid #b9cbc4; border-radius: 12px; background: #fafcfb; color: #183c37; }
.login-field { display: flex; align-items: center; border: 2px solid #cbd5e1; border-radius: 999px; background: #f8fafce6; padding: 6px 12px; margin-bottom: 16px; box-shadow: 0 10px 25px -5px #0000000d, 0 8px 10px -6px #00000008; transition: box-shadow .2s; }
.login-field:focus-within { box-shadow: 0 12px 28px -5px #0d6e642e, 0 0 0 2px #0d6e6426; }
.login-field-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: white; background: linear-gradient(45deg, #0b5c53, #14b8a6); box-shadow: 0 1px 2px #0000000d; }
.login-field-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-field input { min-width: 0; min-height: 32px; flex: 1; padding: 6px 10px; border: 0; border-radius: 0; background: none; outline: 0; color: #334155; font-size: 14px; font-weight: 600; }
.login-field input::placeholder { color: #94a3b8; }
.password-visibility { width: 32px; min-height: 32px; flex: none; display: grid; place-items: center; padding: 0; border: 0; background: none; color: #94a3b8; }
.password-visibility:hover { color: #0d6e64; }
.password-visibility svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.login-submit-row { padding-top: 8px; text-align: center; }
.login-submit-row .button.primary { width: auto; border: 0; border-radius: 999px; padding: 12px 32px; background: linear-gradient(90deg, #0d6e64, #14b8a6, #2dd4bf); color: white; font-size: 11px; font-weight: 700; letter-spacing: .05em; box-shadow: 0 12px 25px -6px #0d6e6473; transition: transform .2s, box-shadow .2s; }
.login-submit-row .button.primary:hover { background: linear-gradient(90deg, #0b5c53, #14b8a6); box-shadow: 0 16px 30px -4px #0d6e648c; transform: scale(1.02); }
.login-form-panel .message { margin: 16px 0 0; font-size: 12px; }
.login-welcome { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 40px; text-align: center; }
.login-welcome-content { max-width: 320px; }
.login-welcome h2 { font-size: 30px; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; color: #1e293b; margin-bottom: 12px; }
.welcome-product { font-size: 16px; font-weight: 700; color: #0d6e64; margin-bottom: 12px; }
.welcome-description { font-size: 12px; font-weight: 500; color: #64748b; line-height: 1.65; margin-bottom: 24px; }
.welcome-slogan { display: inline-block; border: 1px solid #99f6e4cc; border-radius: 999px; padding: 8px 16px; background: #f0fdfae6; color: #0b5c53; font-size: 11px; font-weight: 700; letter-spacing: .025em; box-shadow: 0 8px 20px -4px #0d6e6440; }
#application[data-view="home"] .navigation { display: none; }
.button { border: 1px solid var(--border); background: white; color: var(--dark); border-radius: 12px; padding: 11px 20px; font-weight: 650; }
.button.primary { background: var(--green); color: white; border-color: var(--green); box-shadow: 0 4px 10px #00685b18; }
.button.primary:hover { background: #005449; }
.button.danger { color: #b42332; border-color: #e4b9c0; }
.button.light { color: white; background: #ffffff12; border-color: #ffffff60; }
.button:disabled { opacity: .5; box-shadow: none; }
.navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; background: white; border: 1px solid var(--border); border-radius: 14px; padding: 6px 12px; box-shadow: 0 4px 14px #003d3508; font-size: .9rem; }
.navigation button { background: none; border: 0; color: var(--green); padding: 8px; font-weight: 650; }
#nav-current { font-weight: 600; }
.panel { border: 1px solid var(--border); border-radius: 20px; padding: 26px; background: white; }
.module-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.module-heading h1 { margin-bottom: 8px; }
.module-heading p { margin-bottom: 0; }
.message { font-size: .9rem; border-radius: 12px; padding: 14px 16px; background: #e8f6f1; color: #075440; line-height: 1.5; overflow-wrap: anywhere; }
.message.error { color: #a52430; background: #fff0f1; border: 1px solid #efd0d4; }
.message.warning { color: #8b530b; background: #fff6e6; border: 1px solid #f1dbb2; }
.app-footer { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; border-top: 1px solid #0d685e80; background: #04221f; color: #cbd5e1; padding: 10px 24px; font-size: 11px; box-shadow: 0 -4px 14px #003d3510; }
.connection-status { display: inline-flex; flex: none; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.connection-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.branch-context { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-left: auto; color: #e5f5ef; }
.branch-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.branch-key { flex: none; }
.splash { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(145deg, #003d35, #00685b); color: white; padding: 24px; text-align: center; }
.splash .brand-lockup { margin-bottom: 38px; }
.spinner { width: 26px; height: 26px; border: 3px solid #ffffff30; border-top-color: #b5ecda; border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
dialog { border: 1px solid var(--border); border-radius: 22px; padding: 28px; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); color: #183c37; box-shadow: 0 20px 100px #002c2540; }
dialog::backdrop { background: #002c2570; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.noscript { position: fixed; z-index: 101; inset: auto 10px 20px; color: white; text-align: center; }
@media (max-width: 1023px) {
  .hero-crescent { width: 120%; }
  .login-form-panel, .login-welcome { padding: 32px; }
  .session-greeting { max-width: none; }
  #application[data-view="home"] .hero { height: 260px; padding-top: 72px; }
  #application[data-view="home"] .hero-crescent { height: 260px; }
}
@media (max-width: 767px) {
  body:has(#application[data-view="home"]) { min-width: 0; }
  .hero { height: 220px; padding: 54px 16px 0; }
  .hero-crescent { width: 150%; height: 220px; }
  .topbar { top: 12px; left: 16px; right: 16px; font-size: .65rem; }
  #application[data-view="home"] .topbar { top: 6px; left: 6px; right: 6px; }
  #application[data-view="home"] .hero { height: clamp(210px, 30dvh, 236px); padding: 64px 20px 0; }
  #application[data-view="home"] .hero-crescent { width: 100%; min-width: 0; height: 100%; border-radius: 0 0 50% 50% / 0 0 17% 17%; }
  #application[data-view="home"] .brand { min-height: 54px; gap: 12px; }
  #application[data-view="home"] .brand img { width: 44px; height: 44px; }
  #application[data-view="home"] .brand span { font-size: clamp(2.6rem, 12vw, 3.5rem); letter-spacing: .06em; }
  #application[data-view="home"] .brand-slogan { margin-top: 8px; font-size: clamp(.68rem, 3vw, .84rem); font-weight: 600; letter-spacing: .09em; }
  #application[data-view="home"] .home-search,
  #application[data-view="home"] > .app-footer { display: none; }
  #application[data-view="home"] > .surface { flex: none; justify-content: flex-start; max-width: 680px; margin: clamp(-42px, -5.25dvh, -30px) auto 0; padding: 0 16px 32px; }
  .brand { gap: 12px; }
  .brand img { width: 56px; height: 56px; }
  .brand span { font-size: 48px; }
  .brand-slogan { font-size: 12px; }
  .surface { padding: 8px 16px; margin-top: 24px; }
  .login-card { grid-template-columns: 1fr; min-height: 400px; border-radius: 26px; }
  .login-waves { display: none; }
  .login-mobile-stripe { position: absolute; display: block; top: 0; left: 0; right: 0; height: 12px; background: linear-gradient(90deg, #084842, #0d6e64, #2dd4bf); }
  .login-form-panel { padding: 32px; }
  .login-heading { text-align: center; }
  .login-field input { font-size: 16px; }
  .login-field-icon { width: 36px; height: 36px; }
  .login-field-icon svg { width: 16px; height: 16px; }
  .password-visibility { min-height: 44px; width: 36px; }
  .login-submit-row .button.primary { width: 100%; min-height: 48px; font-size: 12px; }
  .login-welcome { padding: 0 32px 32px; }
  .login-welcome h2 { font-size: 24px; }
  .panel { padding: 20px; }
  .module-heading { flex-direction: column; }
  .navigation { font-size: .8rem; }
  .app-footer { flex-wrap: wrap; padding: 10px 16px; }
  .branch-context { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .login-field, .login-submit-row .button { transition: none; } }

/* Authenticated work modules use the Administrador surface. Login/Home retain their layout. */
#application[data-layout="workspace"] { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
#application[data-layout="workspace"] > .hero,
#application[data-layout="workspace"] > .app-footer,
#application[data-layout="workspace"] .navigation { display: none; }
#application[data-layout="workspace"] > .surface { width: 100%; max-width: none; min-height: 0; padding: 0; margin: 0; justify-content: flex-start; overflow: hidden; }
#application[data-layout="workspace"] #workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#application[data-layout="workspace"] #module-surface { flex: 1; min-height: 0; position: relative; overflow: hidden; }
#application[data-layout="workspace"] #navigation-error { margin: 8px 12px; }
