:root {
    color-scheme: light;
    --primary: #0f766e;
    --primary-dark: #075955;
    --accent: #ff7a3d;
    --support: #ffe3d1;
    --background: #f6f8fa;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #667085;
    --border: #dce3e8;
    --error: #b42318;
    --success: #087f5b;
    --shadow: 0 24px 65px rgba(15, 45, 48, .13);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 8% 8%, rgba(255,122,61,.11), transparent 26rem), var(--background); }
button, input, select, textarea { font: inherit; }
a { color: var(--primary); }

.auth-page { display: grid; place-items: center; padding: clamp(20px, 4vw, 56px); }
.auth-layout { width: min(1080px, 100%); display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, .72fr); background: var(--surface); border: 1px solid rgba(15,118,110,.12); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.auth-layout-compact { width: min(720px, 100%); display: block; padding-top: 22px; }
.auth-brand { position: relative; min-height: 680px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 6vw, 72px); color: white; background: linear-gradient(145deg, #064e4b, var(--primary) 58%, #138c82); overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; width: 330px; height: 330px; right: -110px; bottom: -100px; border-radius: 50%; background: var(--accent); opacity: .9; }
.auth-brand img { position: relative; z-index: 1; width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,.15)); }
.auth-brand div { position: relative; z-index: 1; max-width: 490px; }
.brand-name { display: block; margin-bottom: 18px; font-size: 1.2rem; font-weight: 800; letter-spacing: .05em; }
.auth-brand h1 { max-width: 540px; margin: 0 0 18px; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
.auth-brand p { max-width: 520px; margin: 0; color: rgba(255,255,255,.84); font-size: 1.08rem; line-height: 1.7; }
.auth-card { align-self: center; padding: clamp(34px, 6vw, 68px); }
.auth-card-wide { padding-top: 35px; padding-bottom: 45px; }
.auth-card h1, .auth-card h2 { margin: 4px 0 8px; color: var(--text); font-size: clamp(1.8rem, 4vw, 2.45rem); letter-spacing: -.035em; }
.eyebrow { margin: 0; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.subtitle { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.brand-compact { display: inline-flex; align-items: center; gap: 10px; margin-left: clamp(32px, 7vw, 68px); color: var(--primary-dark); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand-compact img { width: 44px; height: 44px; object-fit: contain; }
.account-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 24px 0; padding: 5px; border-radius: 14px; background: #edf2f3; }
.account-switch button { min-height: 44px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.account-switch button.active { color: var(--primary-dark); background: var(--surface); box-shadow: 0 3px 12px rgba(31,41,55,.09); }
.field { margin: 0 0 17px; }
.field label { display: block; margin-bottom: 7px; color: #344054; font-size: .9rem; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 11px; color: var(--text); background: white; outline: none; transition: border-color .16s, box-shadow .16s; }
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
.password-field button { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); border: 0; border-radius: 7px; padding: 7px 8px; color: var(--primary); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 700; }
.field-help { margin: -6px 0 18px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.check-field input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: 0 0 auto; }
.btn-primary, .btn-secondary { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; cursor: pointer; font-weight: 800; text-decoration: none; transition: transform .15s, opacity .15s, box-shadow .15s; }
.btn-primary { border: 0; color: white; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 10px 22px rgba(15,118,110,.22); }
.btn-secondary { border: 1px solid rgba(15,118,110,.3); color: var(--primary-dark); background: white; }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); }
.btn-primary:disabled { cursor: wait; opacity: .58; transform: none; }
.auth-help { display: flex; justify-content: space-between; gap: 14px; margin-top: 16px; font-size: .86rem; }
.auth-help a, .back-link { color: var(--primary); text-decoration: none; }
.register-callout { margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--border); text-align: center; }
.register-callout p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.back-link { display: block; margin-top: 20px; text-align: center; font-size: .9rem; }
.message { display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; line-height: 1.45; }
.message.visible { display: block; }
.message.error { color: var(--error); background: #fef3f2; border: 1px solid #fecdca; }
.message.ok { color: var(--success); background: #ecfdf3; border: 1px solid #abefc6; }

.panel-page { min-height: 100vh; background: var(--background); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 5vw, 70px); color: white; background: var(--primary-dark); }
.panel-brand { display: flex; align-items: center; gap: 10px; color: white; font-weight: 800; text-decoration: none; }
.panel-brand img { width: 38px; height: 38px; }
.panel-user { display: flex; align-items: center; gap: 14px; }
.panel-user button { border: 1px solid rgba(255,255,255,.35); border-radius: 9px; padding: 8px 12px; color: white; background: transparent; cursor: pointer; }
.panel-main { width: min(1080px, calc(100% - 40px)); margin: 55px auto; }
.welcome-card { padding: clamp(28px, 5vw, 52px); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.welcome-card h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 3rem); }
.welcome-card p { color: var(--muted); line-height: 1.6; }

.extra-page { min-height: 100vh; padding-left: 245px; background: var(--background); }
.extra-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 245px; display: flex; flex-direction: column; padding: 26px 18px 20px; color: white; background: linear-gradient(180deg, #064e4b 0%, var(--primary-dark) 64%, #043e3b 100%); }
.extra-brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 38px; color: white; font-size: 1.28rem; font-weight: 850; text-decoration: none; }
.extra-brand img { width: 45px; height: 45px; object-fit: contain; }
.extra-brand small { display: block; margin-top: 2px; color: rgba(255,255,255,.62); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.extra-sidebar nav { display: grid; gap: 7px; }
.extra-sidebar nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 14px; border-radius: 12px; color: rgba(255,255,255,.76); font-weight: 750; text-decoration: none; }
.extra-sidebar nav a span { width: 20px; color: var(--support); font-size: 1.15rem; text-align: center; }
.extra-sidebar nav a:hover, .extra-sidebar nav a[aria-current="page"] { color: white; background: rgba(255,255,255,.13); }
.extra-sidebar-account { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.14); }
.extra-sidebar-account div { min-width: 0; }
.extra-sidebar-account strong, .extra-sidebar-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.extra-sidebar-account small { margin-top: 3px; color: rgba(255,255,255,.61); font-size: .72rem; }
.extra-avatar { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; color: var(--primary-dark); background: var(--support); font-weight: 850; }
.extra-avatar img { width: 100%; height: 100%; object-fit: cover; }
.extra-shell { min-height: 100vh; }
.extra-topbar { position: sticky; top: 0; z-index: 15; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 12px clamp(20px, 4vw, 56px); border-bottom: 1px solid rgba(15,118,110,.1); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.extra-topbar-home { justify-content: flex-end; }
.city-trigger { display: flex; align-items: center; gap: 11px; max-width: min(480px, calc(100vw - 400px)); padding: 8px 13px; border: 1px solid var(--border); border-radius: 13px; color: var(--primary-dark); background: white; cursor: pointer; text-align: left; }
.city-trigger > span:nth-child(2) { min-width: 0; flex: 1; }
.city-trigger small, .city-trigger strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-trigger small { color: var(--muted); font-size: .68rem; font-weight: 650; }
.city-trigger strong { margin-top: 2px; font-size: .9rem; }
.extra-logout { padding: 9px 15px; border: 1px solid rgba(15,118,110,.25); border-radius: 10px; color: var(--primary-dark); background: white; cursor: pointer; font-weight: 750; }
.extra-main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 72px; }
.extra-section { scroll-margin-top: 98px; }
.extra-welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); align-items: end; gap: 45px; padding: clamp(28px, 5vw, 52px); border-radius: 25px; color: white; background: linear-gradient(135deg, #075955 0%, var(--primary) 70%, #168e84 100%); box-shadow: 0 22px 55px rgba(7,89,85,.18); }
.extra-welcome .eyebrow { color: var(--support); }
.extra-welcome h1 { margin: 6px 0 8px; font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -.045em; }
.extra-welcome p:last-child { max-width: 620px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.6; }
.profile-progress { padding: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.1); }
.profile-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; }
.profile-progress strong { color: var(--support); }
.progress-track { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.18); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
.profile-progress-light { margin-bottom: 14px; border-color: var(--border); color: var(--text); background: white; box-shadow: 0 8px 24px rgba(15,45,48,.05); }
.profile-progress-light strong { color: var(--primary-dark); }
.profile-progress-light .progress-track { background: #e9eef0; }
.extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.extra-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 25px; border: 1px solid var(--border); border-radius: 19px; background: white; box-shadow: 0 10px 30px rgba(15,45,48,.055); }
.extra-card h2 { margin: 5px 0 8px; color: var(--primary-dark); font-size: 1.2rem; }
.extra-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--primary-dark); background: #e5f4f2; font-size: 1.25rem; font-weight: 850; }
.card-icon.accent { color: #a23b0b; background: var(--support); }
.text-action { display: inline-block; margin-top: 15px; padding: 0; border: 0; color: var(--primary); background: transparent; cursor: pointer; font-weight: 800; text-decoration: none; }
.profile-section { margin-top: 62px; }
.profile-tabs { display: flex; gap: 6px; margin-bottom: 14px; padding: 5px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: #edf2f3; }
.profile-tabs button { min-height: 42px; padding: 8px 17px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; white-space: nowrap; }
.profile-tabs button[aria-selected="true"] { color: var(--primary-dark); background: white; box-shadow: 0 3px 12px rgba(31,41,55,.09); }
.profile-tab-panel[hidden] { display: none; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }
.section-heading h1, .section-heading h2 { margin: 5px 0 0; color: var(--primary-dark); font-size: clamp(1.65rem, 3.5vw, 2.4rem); letter-spacing: -.035em; }
.section-heading > p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.6; }
.profile-form { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--border); border-radius: 22px; background: white; box-shadow: 0 12px 35px rgba(15,45,48,.06); }
.required-note { margin: 0 0 20px; color: var(--muted); font-size: .8rem; }
.required-note span, .required-mark { color: var(--error); font-weight: 850; }
.profile-photo-editor { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 22px; margin-bottom: 26px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: #f9fbfb; }
.profile-photo-preview { width: 112px; height: 112px; display: grid; place-items: center; overflow: hidden; border: 3px solid white; border-radius: 50%; color: var(--primary-dark); background: var(--support); box-shadow: 0 7px 20px rgba(15,45,48,.13); font-size: 2rem; font-weight: 850; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-editor h3 { margin: 0 0 5px; color: var(--primary-dark); font-size: 1rem; }
.profile-photo-editor p, .profile-photo-editor small { display: block; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.profile-photo-actions { display: flex; gap: 9px; margin: 12px 0 7px; }
.profile-photo-actions .btn-secondary { width: auto; min-height: 38px; padding: 0 14px; }
.profile-photo-actions .danger { color: var(--error); border-color: rgba(180,35,24,.3); }
.profile-photo-editor[aria-busy="true"] { opacity: .65; }
.profile-photo-editor[aria-busy="true"] button { cursor: wait; }
.profile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-form .field { position: relative; margin-bottom: 22px; }
.profile-form textarea, .city-dialog input, .city-dialog select { width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 11px; color: var(--text); background: white; outline: none; resize: vertical; transition: border-color .16s, box-shadow .16s; }
.profile-form textarea:focus, .city-dialog input:focus, .city-dialog select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
.profile-form input:disabled { color: var(--muted); background: #f3f5f6; }
.field-note { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.field-counter { position: absolute; right: 5px; bottom: -17px; color: var(--muted); font-size: .72rem; }
.functions-fieldset { margin: 2px 0 24px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; }
.functions-fieldset legend { padding: 0 8px; color: #344054; font-weight: 800; }
.functions-fieldset > p { margin: -4px 0 18px; color: var(--muted); font-size: .84rem; }
.functions-list { display: grid; gap: 20px; }
.functions-list h3 { margin: 0 0 10px; color: var(--primary-dark); font-size: .9rem; }
.function-options { display: flex; flex-wrap: wrap; gap: 9px; }
.function-option { position: relative; display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: 999px; background: white; transition: border-color .15s, box-shadow .15s; }
.function-options input { position: absolute; opacity: 0; pointer-events: none; }
.function-toggle, .function-experience-edit { border: 0; cursor: pointer; font-family: inherit; font-weight: 800; }
.function-toggle { padding: 9px 12px; border-radius: 999px; color: #475467; background: transparent; font-size: .82rem; }
.function-toggle[aria-pressed="true"] { color: var(--primary-dark); background: #e8f5f3; }
.function-toggle:focus-visible, .function-experience-edit:focus-visible { outline: 3px solid rgba(15,118,110,.22); outline-offset: 2px; }
.function-experience-edit { display: none; margin: 3px 3px 3px 0; padding: 5px 9px; border-left: 1px solid rgba(164,66,21,.28); border-radius: 999px; color: var(--text); background: var(--accent); box-shadow: 0 2px 7px rgba(255,122,61,.25); font-size: .7rem; }
.function-experience-edit:hover { background: #f36d30; }
.function-experience-edit:focus-visible { outline-color: rgba(255,122,61,.38); }
.function-option.is-configured { border-color: var(--primary); box-shadow: 0 3px 10px rgba(15,118,110,.1); }
.function-option.is-configured .function-experience-edit { display: inline-block; }
.function-option[aria-busy="true"] { opacity: .62; }
.function-option[data-experiencia]::after { content: attr(data-experiencia); position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 9px); width: max-content; max-width: 220px; padding: 7px 9px; border-radius: 8px; color: white; background: #173f3c; box-shadow: 0 8px 20px rgba(15,45,48,.2); opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .15s, transform .15s; font-size: .74rem; font-weight: 750; }
.function-option[data-experiencia]:hover::after, .function-option[data-experiencia]:focus-within::after { opacity: 1; transform: translate(-50%, 0); }
.form-actions { display: flex; justify-content: flex-end; }
.form-actions .btn-primary { width: auto; min-width: 180px; padding: 0 22px; }
.list-section-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.list-section-heading h3, .record-form h3 { margin: 0; color: var(--primary-dark); font-size: 1.15rem; }
.list-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: .86rem; }
.profile-record-list { display: grid; gap: 11px; margin-bottom: 28px; }
.profile-record-list article { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 17px; border: 1px solid var(--border); border-radius: 13px; background: #f9fbfb; }
.profile-record-list h4 { margin: 0 0 5px; color: var(--text); font-size: .96rem; }
.profile-record-list p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.record-item-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.btn-small.danger { border-color: #fda29b; color: var(--error); }
.empty-records { margin: 0; padding: 20px; border: 1px dashed var(--border); border-radius: 13px; color: var(--muted); background: #fafcfc; text-align: center; }
.record-form { padding-top: 25px; border-top: 1px solid var(--border); }
.record-form > h3 { margin-bottom: 6px; }
.record-current { margin-top: -4px; }
.record-actions { gap: 10px; }
.record-actions .btn-secondary { width: auto; min-width: 150px; padding: 0 18px; }
.city-autocomplete { position: relative; }
.city-results { position: absolute; inset: calc(100% + 5px) 0 auto; z-index: 30; display: grid; max-height: 290px; overflow-y: auto; border-radius: 12px; background: white; box-shadow: 0 16px 40px rgba(15,45,48,.18); }
.city-results:empty { display: none; }
.city-results button { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; border: 0; border-bottom: 1px solid #edf0f2; color: var(--text); background: white; cursor: pointer; text-align: left; }
.city-results button:hover, .city-results button:focus { background: #f0f8f7; outline: none; }
.city-results button span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.city-result-status { padding: 13px 14px; color: var(--muted); font-size: .84rem; }
.error-text { color: var(--error); }
.loading-text { color: var(--muted); font-size: .85rem; }
.city-dialog { width: min(560px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 22px; color: var(--text); box-shadow: var(--shadow); }
.city-dialog::backdrop { background: rgba(4,47,45,.58); backdrop-filter: blur(3px); }
.city-dialog > p { margin: 12px 0 23px; color: var(--muted); line-height: 1.55; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-header h2 { margin: 4px 0 0; color: var(--primary-dark); font-size: 1.65rem; }
.dialog-header > button { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; padding: 0 0 3px; border: 0; border-radius: 50%; color: var(--muted); background: #edf2f3; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.city-dialog label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 750; }
.dialog-results { position: static; margin-top: 7px; box-shadow: none; border: 1px solid var(--border); }
.function-dialog .field { margin: 0 0 24px; }
.function-dialog .form-actions { gap: 10px; }

.admin-page { min-height: 100vh; padding-left: 250px; background: var(--background); }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 250px; display: flex; flex-direction: column; padding: 24px 18px; color: white; background: linear-gradient(180deg, #064e4b, var(--primary-dark)); }
.admin-logo { display: flex; align-items: center; gap: 11px; margin: 0 8px 28px; color: white; font-size: 1.16rem; font-weight: 850; text-decoration: none; }
.admin-logo img { width: 42px; height: 42px; object-fit: contain; }
.admin-logo small { display: block; color: rgba(255,255,255,.62); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar nav a { padding: 12px 14px; border-radius: 10px; color: rgba(255,255,255,.76); font-weight: 700; text-decoration: none; }
.admin-sidebar nav a:hover, .admin-sidebar nav a[aria-current="page"] { color: white; background: rgba(255,255,255,.13); }
.admin-account { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.admin-account strong, .admin-account span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account span { margin-top: 3px; color: rgba(255,255,255,.66); font-size: .78rem; }
.admin-account button { margin-top: 12px; padding: 7px 0; border: 0; color: white; background: transparent; cursor: pointer; font-weight: 750; }
.admin-content { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 70px; }
.admin-header { margin-bottom: 26px; }
.admin-header h1 { margin: 4px 0 5px; color: var(--primary-dark); font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.04em; }
.admin-header > div > p:last-child { margin: 0; color: var(--muted); }
.admin-card { margin-bottom: 22px; padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: white; box-shadow: 0 12px 35px rgba(15,45,48,.07); }
.admin-card h2 { margin: 0 0 18px; color: var(--primary-dark); font-size: 1.16rem; }
.admin-card-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.admin-card-title h2, .admin-card-title p { margin: 0; }
.admin-card-title p { margin-top: 5px; color: var(--muted); font-size: .88rem; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 16px; margin-bottom: 22px; }
.admin-metrics.compact { grid-template-columns: repeat(5, minmax(120px, 1fr)); margin: 0; }
.admin-metrics article { padding: 21px; border: 1px solid rgba(15,118,110,.14); border-radius: 16px; background: white; box-shadow: 0 10px 30px rgba(15,45,48,.06); }
.admin-metrics span { display: block; color: var(--muted); font-size: .83rem; font-weight: 700; }
.admin-metrics strong { display: block; margin-top: 7px; color: var(--primary-dark); font-size: 2rem; }
.admin-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 14px; }
.admin-shortcuts a { padding: 18px; border: 1px solid var(--border); border-radius: 13px; color: var(--text); text-decoration: none; }
.admin-shortcuts a:hover { border-color: var(--primary); }
.admin-shortcuts strong, .admin-shortcuts span { display: block; }
.admin-shortcuts span { margin-top: 4px; color: var(--muted); font-size: .85rem; }
.admin-split { display: grid; grid-template-columns: minmax(320px, .82fr) minmax(440px, 1.18fr); gap: 22px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin-table th, .admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { color: var(--muted); font-size: .73rem; letter-spacing: .05em; text-transform: uppercase; }
.admin-table tbody tr[tabindex] { cursor: pointer; }
.admin-table tbody tr[tabindex]:hover { background: #f5faf9; }
.catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.catalog-actions a { text-decoration: none; }
.catalog-actions a[aria-current="page"] { color: white; background: var(--primary); }
.catalog-actions .btn-primary { width: auto; min-width: 130px; }
.catalog-help { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.catalog-error { display: block; margin-top: 5px; color: #b91c1c; }
.catalog-error:empty { display: none; }
.catalog-actions .catalog-delete { color: #b91c1c; }
.catalog-actions [hidden], #formCatalogo[hidden] { display: none; }
#formCatalogo textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 11px; color: var(--text); background: white; resize: vertical; }
#formCatalogo textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#formCatalogo :disabled, #filtrosCatalogo :disabled, .catalog-actions :disabled { cursor: default; opacity: .65; }
.admin-table tr[aria-selected="true"] { background: #e7f4f1; }
.admin-table tr[tabindex]:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.btn-small { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--primary); border-radius: 9px; color: var(--primary-dark); background: white; cursor: pointer; font-weight: 750; text-decoration: none; }
.admin-permissions { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 13px; margin: 5px 0 18px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.admin-permissions legend { padding: 0 7px; color: var(--primary-dark); font-weight: 800; }
.admin-permissions > div { padding: 12px; border-radius: 10px; background: #f7faf9; }
.admin-permissions strong, .admin-permissions label { display: block; }
.admin-permissions label { margin-top: 8px; color: var(--muted); font-size: .84rem; }
.admin-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 20px; }
.admin-details div { padding: 13px; border-radius: 10px; background: #f7faf9; }
.admin-details dt { color: var(--muted); font-size: .75rem; font-weight: 750; }
.admin-details dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: .86rem; }
.state { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #344054; background: #eef2f3; font-size: .72rem; font-weight: 800; }
.state-enviado { color: var(--success); background: #ecfdf3; }
.state-pendente, .state-processando { color: #9a3412; background: #fff7ed; }
.state-descartado, .state-cancelado { color: var(--error); background: #fef3f2; }

.not-found-page { display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 16% 14%, rgba(15,118,110,.17), transparent 34%), radial-gradient(circle at 84% 86%, rgba(255,122,61,.13), transparent 30%), var(--background); }
.not-found-card { width: min(100%, 720px); padding: clamp(32px, 7vw, 64px); border: 1px solid rgba(15,118,110,.14); border-radius: 32px; background: rgba(255,255,255,.95); box-shadow: var(--shadow); text-align: center; }
.not-found-logo { width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 14px 28px rgba(15,45,48,.15)); }
.not-found-code { margin: 28px 0 0; color: var(--accent); font-size: .8rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; }
.not-found-card h1 { margin: 14px 0 0; color: var(--primary-dark); font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; }
.not-found-description { max-width: 520px; margin: 20px auto 0; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.not-found-actions { display: flex; justify-content: center; margin-top: 32px; }
.not-found-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid var(--primary); border-radius: 14px; color: #fff; background: var(--primary); font-size: .95rem; font-weight: 800; text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s; }
.not-found-button:hover { border-color: var(--primary-dark); background: var(--primary-dark); transform: translateY(-1px); }
.not-found-button:focus-visible { outline: 3px solid rgba(15,118,110,.32); outline-offset: 3px; }

@media (max-width: 800px) {
    .auth-page { padding: 0; display: block; }
    .auth-layout { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
    .auth-brand { min-height: 260px; padding: 28px; justify-content: flex-start; gap: 35px; }
    .auth-brand img { width: 68px; height: 68px; }
    .auth-brand h1 { font-size: 2.35rem; }
    .auth-brand p { font-size: .95rem; }
    .auth-card { padding: 34px 24px 48px; }
    .brand-compact { margin: 22px 24px 0; }
    .admin-page { padding-left: 0; }
    .admin-sidebar { position: static; width: 100%; min-height: auto; padding: 14px 18px; }
    .admin-logo { margin: 0 0 12px; }
    .admin-sidebar nav { display: flex; overflow-x: auto; }
    .admin-sidebar nav a { white-space: nowrap; }
    .admin-account { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; }
    .admin-account span { display: none; }
    .admin-account button { margin: 0 0 0 auto; }
    .admin-content { width: min(100% - 28px, 720px); padding-top: 24px; }
    .admin-metrics, .admin-metrics.compact { grid-template-columns: repeat(2, 1fr); }
    .admin-split { grid-template-columns: 1fr; }
    .admin-shortcuts { grid-template-columns: 1fr; }
    .extra-page { padding-left: 0; padding-bottom: 74px; }
    .extra-sidebar { position: fixed; inset: auto 0 0; width: auto; height: 66px; display: block; padding: 8px 14px; background: var(--primary-dark); }
    .extra-brand, .extra-sidebar-account { display: none; }
    .extra-sidebar nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .extra-sidebar nav.partner-navigation { grid-template-columns: repeat(3, 1fr); }
    .extra-sidebar nav a { min-height: 50px; justify-content: center; padding: 8px; font-size: .82rem; }
    .extra-sidebar nav a span { width: auto; }
    .extra-topbar { min-height: 70px; padding: 10px 16px; }
    .city-trigger { max-width: calc(100vw - 100px); }
    .extra-main { width: min(100% - 28px, 720px); padding-top: 24px; }
    .extra-welcome { grid-template-columns: 1fr; gap: 25px; }
    .extra-grid { grid-template-columns: 1fr; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: 10px; }
}

@media (max-width: 520px) {
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .auth-help { flex-direction: column; align-items: center; }
    .panel-user span { display: none; }
    .admin-metrics, .admin-metrics.compact, .admin-permissions, .admin-details { grid-template-columns: 1fr; }
    .extra-logout { padding: 8px 10px; }
    .city-trigger { border: 0; padding-left: 0; }
    .city-trigger > span:first-child, .city-trigger > span:last-child { display: none; }
    .extra-welcome { padding: 25px 22px; }
    .extra-card { grid-template-columns: 1fr; }
    .profile-form-grid { grid-template-columns: 1fr; gap: 0; }
    .profile-photo-editor { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .profile-photo-actions { justify-content: center; flex-wrap: wrap; }
    .profile-form { padding: 22px 18px; }
    .form-actions .btn-primary { width: 100%; }
    .profile-record-list article { display: grid; }
    .record-item-actions { width: 100%; }
    .record-item-actions .btn-small { flex: 1; }
    .record-actions { display: grid; grid-template-columns: 1fr; }
    .record-actions .btn-secondary { width: 100%; }
    .city-dialog { padding: 22px 18px; }
}
