:root {
    --paul-blue: #155ecf;
    --paul-blue-2: #0f4fb8;
    --paul-blue-dark: #0b367c;
    --navy: #0b367c;
    --navy-2: #155ecf;
    --ink: #172033;
    --ink-strong: #07172f;
    --muted: #64748b;
    --line: #d7e0ea;
    --bg: #f3f6fa;
    --card: #ffffff;
    --green: #0d8f6f;
    --red: #c53030;
    --radius: 8px;
    --shadow: 0 18px 45px rgba(15, 39, 66, .09);
}

* { box-sizing: border-box; }
html {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(21, 94, 207, .14), transparent 34rem),
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .9), transparent 20rem),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 46%, #edf3f9 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--paul-blue-dark), var(--paul-blue));
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 30px rgba(11,54,124,.18);
}
.topbar-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0; }
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 154px;
    height: 42px;
    overflow: hidden;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
}
.brand-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}
.brand-product {
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.26);
    color: rgba(255,255,255,.9);
}
.nav-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; }
.nav-links a { padding: 8px 11px; border-radius: 6px; color: rgba(255,255,255,.86); }
.nav-links a:hover { background: rgba(255,255,255,.16); color: #fff; }

.page { width: 100%; max-width: 1160px; margin: 0 auto; padding: 34px 20px 52px; flex: 1 0 auto; }
.page:has(.login-centered) {
    max-width: none;
    padding: 14px 20px 10px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.page:has(.login-centered) > .alert {
    width: min(900px, 100%);
    margin: 0;
    padding: 13px 16px;
    box-shadow: 0 14px 38px rgba(15, 39, 66, .08);
}
.page:has(.login-centered) > .alert-success {
    border-color: #91dfc1;
    background: #eefcf6;
    color: #07563d;
}
.page:has(.register-shell) {
    padding: 22px 20px 18px;
}
.page:has(.register-shell) .page-heading {
    margin-bottom: 16px;
}
.page:has(.register-shell) .page-heading h1 {
    font-size: clamp(32px, 3.2vw, 42px);
}
.page-heading { margin-bottom: 22px; }
.breadcrumb { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
h1 { margin: 0; color: var(--ink-strong); font-size: clamp(28px, 3vw, 36px); line-height: 1.12; letter-spacing: 0; font-weight: 700; }
h2 { margin-top: 0; color: var(--ink-strong); letter-spacing: 0; }

.alert { margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.alert ul { margin: 8px 0 0 18px; padding: 0; }
.alert-success { border-color: #b7ead7; background: #effcf7; color: #096244; }
.alert-danger { border-color: #fecaca; background: #fff1f2; color: #991b1b; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.metric-card {
    min-height: 108px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.92);
    box-shadow: 0 12px 30px rgba(15, 39, 66, .07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.metric-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.metric-value {
    display: block;
    margin-top: 18px;
    color: var(--ink-strong);
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}
.quick-panel {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow);
}
.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.section-title h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
}
.section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.action-card {
    min-height: 92px;
    padding: 16px;
    border: 1px solid #dbe4ef;
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.action-card:hover {
    border-color: rgba(21,94,207,.45);
    box-shadow: 0 14px 30px rgba(15, 39, 66, .1);
    transform: translateY(-1px);
}
.action-card span {
    color: var(--ink-strong);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.action-card small {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.table-toolbar h2 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}
.table-toolbar p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.table-panel {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.95);
    box-shadow: var(--shadow);
}
.data-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}
.data-table thead {
    background: #f8fbff;
}
.data-table th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    color: #475569;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
}
.data-table td {
    padding: 16px;
    border-bottom: 1px solid #e3ebf3;
    color: #142033;
    font-size: 14px;
    line-height: 1.45;
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: #f9fbfe;
}
.data-table tbody tr:last-child td {
    border-bottom: 0;
}
.data-table strong {
    font-weight: 650;
}
.mono {
    font-variant-numeric: tabular-nums;
}
.text-right {
    text-align: right !important;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.status-active {
    background: #e9f9f1;
    color: #087047;
    border: 1px solid #bcebd3;
}
.status-inactive {
    background: #f5f7fa;
    color: #64748b;
    border: 1px solid #d7e0ea;
}
.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.row-actions form {
    margin: 0;
}
.ranking-list {
    display: grid;
    gap: 14px;
}
.ranking-card {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.95);
    box-shadow: 0 12px 30px rgba(15, 39, 66, .07);
}
.ranking-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ranking-main h2 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}
.ranking-main p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.ranking-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 420px;
}
.ranking-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    background: #f8fbff;
    color: #43546b;
    font-size: 12px;
    font-weight: 650;
}
.ranking-actions {
    min-width: 190px;
}
.empty-state {
    padding: 18px 20px;
    border: 1px solid #f6d58e;
    border-radius: var(--radius);
    background: #fff8e8;
    color: #875a03;
    font-weight: 650;
}
.admin-hero,
.ranking-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid rgba(21,94,207,.22);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(21,94,207,.11), rgba(255,255,255,.96) 52%),
        #fff;
    box-shadow: var(--shadow);
}
.hero-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--paul-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.admin-hero h2,
.ranking-hero h2 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 25px;
    line-height: 1.18;
    font-weight: 700;
}
.admin-hero p,
.ranking-hero p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}
.hero-score,
.ranking-hero > strong {
    min-width: 190px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--paul-blue);
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
}
.hero-score span {
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.hero-score strong,
.ranking-hero > strong {
    font-size: 34px;
    line-height: 1;
    font-weight: 750;
}
.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.admin-metric-card {
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 30px rgba(15,39,66,.07);
    display: grid;
    align-content: space-between;
}
.admin-metric-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}
.admin-metric-card strong {
    margin-top: 12px;
    color: var(--ink-strong);
    font-size: 30px;
    line-height: 1;
    font-weight: 750;
}
.admin-metric-card small {
    margin-top: 12px;
    color: #6b7b91;
    font-size: 12px;
    line-height: 1.35;
}
.admin-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 16px;
    margin-top: 22px;
}
.workspace-panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow);
}
.workspace-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.workspace-actions a {
    min-height: 48px;
    padding: 12px;
    border: 1px solid #dbe4ef;
    border-radius: var(--radius);
    background: #f8fbff;
    color: var(--ink-strong);
    font-weight: 700;
    display: flex;
    align-items: center;
}
.workspace-actions a:hover {
    border-color: rgba(21,94,207,.45);
    background: #fff;
}
.workspace-panel-accent {
    background: linear-gradient(160deg, var(--paul-blue), var(--paul-blue-dark));
    color: #fff;
}
.workspace-panel-accent h2 {
    color: #fff;
    margin: 0 0 10px;
}
.workspace-panel-accent p {
    color: rgba(255,255,255,.78);
    line-height: 1.55;
}
.workspace-panel-accent .hero-kicker {
    color: rgba(255,255,255,.78);
}
.workspace-panel-accent .btn {
    margin-top: 8px;
    background: #fff;
    color: var(--paul-blue-dark);
}

.saas-dashboard {
    display: grid;
    gap: 22px;
}
.saas-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(340px, .78fr);
    gap: 18px;
    align-items: stretch;
}
.saas-kpi,
.chart-card,
.target-card,
.dashboard-list-card {
    border: 1px solid #dfe7f0;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 44px rgba(15, 39, 66, .07);
}
.saas-kpi {
    min-height: 154px;
    padding: 22px;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: end;
    gap: 16px;
}
.kpi-icon {
    align-self: start;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #344256;
    font-size: 13px;
    font-weight: 750;
}
.saas-kpi span,
.target-stats span,
.priority-row span {
    color: var(--muted);
    font-size: 14px;
}
.saas-kpi strong {
    display: block;
    margin-top: 14px;
    color: var(--ink-strong);
    font-size: 34px;
    line-height: 1;
    font-weight: 650;
}
.saas-kpi em {
    align-self: end;
    justify-self: end;
    border-radius: 999px;
    padding: 5px 10px;
    font-style: normal;
    font-size: 12px;
    font-weight: 650;
}
.trend-up { background: #e8fbf1; color: #12a66a; }
.trend-down { background: #fff1f1; color: #dc4a43; }
.target-card {
    grid-row: span 2;
    padding: 24px;
    display: grid;
    align-content: space-between;
    min-height: 360px;
}
.panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.panel-title h2 {
    margin: 0;
    color: var(--ink-strong);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 650;
}
.panel-title p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}
.panel-title > span {
    color: #98a5b8;
    font-size: 22px;
    letter-spacing: 2px;
}
.gauge {
    width: min(280px, 100%);
    aspect-ratio: 2 / 1;
    margin: 24px auto 8px;
    position: relative;
    overflow: hidden;
}
.gauge::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px 999px 0 0;
    background: conic-gradient(from 270deg at 50% 100%, #5b6ef8 0 var(--value), #e8edf4 var(--value) 180deg, transparent 180deg);
}
.gauge::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -2px;
    height: 76%;
    border-radius: 999px 999px 0 0;
    background: #fff;
}
.gauge > div {
    position: absolute;
    inset: auto 0 6px;
    z-index: 1;
    text-align: center;
}
.gauge strong {
    display: block;
    color: var(--ink-strong);
    font-size: 34px;
    line-height: 1;
}
.gauge span {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8fbf1;
    color: #11a66a;
    font-size: 12px;
    font-weight: 650;
}
.target-copy {
    max-width: 360px;
    margin: 4px auto 20px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}
.target-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.target-stats strong {
    display: block;
    margin-top: 6px;
    color: var(--ink-strong);
    font-size: 20px;
}
.monthly-card {
    grid-column: span 2;
    min-height: 260px;
    padding: 24px;
}
.bar-chart {
    height: 170px;
    margin-top: 22px;
    padding: 0 6px;
    border-bottom: 1px solid #e7edf5;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: end;
    gap: 18px;
}
.bar-item {
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    justify-items: center;
    gap: 10px;
}
.bar-item i {
    align-self: end;
    display: block;
    width: 30px;
    border-radius: 7px 7px 0 0;
    background: #4f63f6;
}
.bar-item span,
.months span {
    color: #68778d;
    font-size: 12px;
}
.statistics-card {
    padding: 24px;
    min-height: 330px;
}
.segment-control {
    display: inline-flex;
    padding: 4px;
    border-radius: 10px;
    background: #f1f4f8;
    gap: 2px;
}
.segment-control span {
    padding: 8px 12px;
    border-radius: 8px;
    color: #7a8798;
    font-size: 13px;
}
.segment-control span:first-child {
    background: #fff;
    color: #3b4758;
    box-shadow: 0 1px 4px rgba(15,39,66,.07);
}
.area-chart {
    margin-top: 18px;
}
.area-chart svg {
    width: 100%;
    height: 250px;
    display: block;
}
.grid-lines line {
    stroke: #edf1f6;
    stroke-width: 1;
}
.line-primary,
.line-secondary {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.line-primary {
    stroke: #536bff;
    stroke-width: 4;
}
.line-secondary {
    stroke: #9cbcff;
    stroke-width: 3;
}
.months {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    padding: 0 8px;
}
.saas-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .68fr);
    gap: 18px;
}
.dashboard-list-card {
    padding: 22px;
}
.dashboard-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.dashboard-links a,
.priority-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #dfe7f0;
    border-radius: 10px;
    background: #fbfdff;
}
.dashboard-links a span {
    color: #42536a;
    font-size: 14px;
}
.dashboard-links a strong,
.priority-row strong {
    color: var(--ink-strong);
    font-size: 20px;
}
.priority-row {
    margin-top: 12px;
}

.card, .rounded-lg.bg-white, form.bg-white, article.bg-white, section.bg-white {
    background: var(--card) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.form-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--paul-blue), var(--paul-blue-dark));
    color: #fff;
}
.form-panel-header h2 { color: #fff; margin-bottom: 4px; }
.form-panel-header p { margin: 7px 0 0; color: rgba(255,255,255,.78); max-width: 720px; }
.form-badge { white-space: nowrap; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 800; }
.form-grid { padding: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: block; }
.field-wide { grid-column: 1 / -1; }
.field span, label span { display: block; margin-bottom: 7px; font-weight: 650; color: #263548; }
.field small { display: block; margin-top: 6px; color: var(--muted); }
input, select, textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    min-height: 40px;
    padding: 9px 12px;
    outline: none;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}

.register-shell {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(520px, 1.45fr);
    gap: 20px;
    align-items: stretch;
}
.register-aside {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(21, 94, 207, .56), rgba(7, 36, 84, .82)),
        url("../img/portada_formulario.png") center / cover no-repeat;
    color: #fff;
    box-shadow: var(--shadow);
    padding: 22px 26px;
    min-height: 480px;
}
.register-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 36, 84, .08), rgba(7, 36, 84, .62)),
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 12rem);
}
.register-aside::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -95px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 42px solid rgba(255,255,255,.08);
}
.register-aside > * { position: relative; z-index: 2; }
.aside-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 230px;
    height: 74px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 14px 34px rgba(0,0,0,.14);
    margin-bottom: 18px;
}
.aside-logo-card img {
    width: 86%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}
.aside-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.register-aside h2 { color: #fff; margin: 18px 0 10px; font-size: 28px; line-height: 1.1; }
.register-aside p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.52; }
.evidence-list { display: grid; gap: 9px; margin: 20px 0; padding: 0; list-style: none; }
.evidence-list li { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 9px; color: rgba(255,255,255,.9); }
.evidence-list b {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.13);
    color: #fff;
}
.credential-box {
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius);
    padding: 13px 14px;
    background: rgba(7,36,84,.44);
    backdrop-filter: blur(4px);
}
.credential-box strong { display: block; color: #fff; margin-bottom: 6px; }
.credential-box span { color: rgba(255,255,255,.78); font-size: 14px; }
.register-form .form-panel-header {
    background: #fff;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px 16px;
}
.register-form .form-grid {
    padding: 20px 24px 22px;
    gap: 14px 18px;
}
.register-form .field span {
    margin-bottom: 6px;
}
.register-form .field small {
    margin-top: 5px;
    font-size: 13px;
}
.register-form .form-actions {
    padding-top: 12px;
}
.register-form .form-panel-header h2 { color: #111827; }
.register-form .form-panel-header p { color: var(--muted); }
.register-form .form-badge { background: #edf5ff; color: var(--paul-blue); }

.login-centered {
    width: 100%;
    min-height: auto;
    display: grid;
    place-items: center;
    padding: 0;
}
.login-card-modern {
    width: min(900px, 100%);
    height: clamp(390px, calc(100dvh - 168px), 460px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(15, 39, 66, .16);
}
.login-photo {
    background: var(--paul-blue);
}
.login-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.login-panel {
    padding: 24px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-panel-logo {
    width: 198px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--paul-blue), var(--paul-blue-dark));
    box-shadow: 0 14px 34px rgba(21,94,207,.2);
    margin: 0 auto 14px;
}
.login-panel-logo img {
    width: 84%;
    height: auto;
    display: block;
}
.login-panel h1 {
    margin: 0;
    font-size: 28px;
    text-align: center;
}
.login-subtitle {
    margin: 7px 0 14px;
    color: var(--muted);
    text-align: center;
    line-height: 1.45;
}
.login-form {
    display: grid;
    gap: 11px;
}
.login-submit {
    width: 100%;
    margin-top: 4px;
}
.login-demo {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 8px;
    background: #f6f9fd;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
.login-demo strong {
    color: #263548;
}
.login-register-link {
    margin-top: 12px;
    text-align: center;
    color: var(--paul-blue);
    font-weight: 800;
}
.login-register-link:hover {
    color: var(--paul-blue-dark);
    text-decoration: underline;
}

.site-footer {
    border-top: 1px solid rgba(11,54,124,.12);
    background: rgba(255,255,255,.68);
    flex-shrink: 0;
}
.site-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 20px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}
.site-footer a {
    color: var(--paul-blue);
    font-weight: 800;
}
.site-footer a:hover {
    color: var(--paul-blue-dark);
    text-decoration: underline;
}

.btn, button, .rounded.bg-slate-900, .rounded.border {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 9px 15px;
    font-weight: 700;
    cursor: pointer;
}
.btn-primary, .rounded.bg-slate-900, button.bg-slate-900 { background: var(--paul-blue); color: #fff; }
.btn-primary:hover, .rounded.bg-slate-900:hover { background: var(--paul-blue-dark); }
.btn-secondary, .rounded.border { background: #fff; border-color: #cbd5e1; color: #1f2937; }
.btn-danger, .rounded.bg-red-600 { background: var(--red); color: #fff; }
.btn-sm { min-height: 32px; padding: 6px 10px; font-size: 13px; }
button:disabled { opacity: .55; cursor: not-allowed; }

.grid { display: grid; gap: 16px; }
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.md\:col-span-2 { grid-column: span 2 / span 2; }
.md\:col-span-5 { grid-column: span 5 / span 5; }
.p-4 { padding: 16px; } .p-5 { padding: 20px; } .p-6 { padding: 24px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.text-sm { font-size: 14px; } .text-xl { font-size: 20px; } .text-2xl { font-size: 26px; } .text-3xl { font-size: 34px; }
.font-bold, .font-semibold { font-weight: 700; }
.text-slate-500 { color: var(--muted); }
.overflow-x-auto { overflow-x: auto; }
table { border-collapse: collapse; min-width: 760px; }
th { color: #475569; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

@media (max-width: 900px) {
    .saas-top-grid, .saas-bottom-grid { grid-template-columns: 1fr; }
    .target-card, .monthly-card { grid-column: auto; grid-row: auto; }
    .admin-hero, .ranking-hero { flex-direction: column; }
    .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bar-chart { gap: 10px; overflow-x: auto; }
    .bar-item { min-width: 34px; }
    .segment-control { display: none; }
    .admin-hero, .ranking-hero { flex-direction: column; }
    .hero-score, .ranking-hero > strong { min-width: 0; }
    .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-workspace { grid-template-columns: 1fr; }
    .workspace-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ranking-card { grid-template-columns: 1fr; align-items: stretch; }
    .ranking-meta { justify-content: flex-start; max-width: none; }
    .ranking-actions { justify-content: flex-start; min-width: 0; }
    .dashboard-grid, .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-title { align-items: flex-start; flex-direction: column; }
    .register-shell { grid-template-columns: 1fr; }
    .login-card-modern { grid-template-columns: 1fr; height: auto; }
    .login-photo { min-height: 280px; }
    .register-aside { min-height: auto; }
}
@media (max-width: 780px) {
    .topbar-inner { align-items: flex-start; flex-direction: column; }
    .nav-links { justify-content: flex-start; }
    .form-panel-header { flex-direction: column; }
    .form-grid, .md\:grid-cols-2, .md\:grid-cols-3, .md\:grid-cols-4, .md\:grid-cols-5 { grid-template-columns: 1fr; }
    .md\:col-span-2, .md\:col-span-5, .field-wide, .form-actions { grid-column: auto; }
    .form-actions { justify-content: stretch; flex-direction: column; }
    .btn, button { width: 100%; }
    .row-actions .btn, .row-actions button { width: auto; }
    .table-toolbar { align-items: stretch; flex-direction: column; }
    .table-panel {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    .data-table {
        min-width: 0;
        display: block;
    }
    .data-table thead {
        display: none;
    }
    .data-table tbody {
        display: grid;
        gap: 12px;
    }
    .data-table tr {
        display: grid;
        gap: 10px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: 0 10px 26px rgba(15, 39, 66, .07);
    }
    .data-table td {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 10px;
        padding: 0;
        border: 0;
        font-size: 14px;
    }
    .data-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
    }
    .row-actions {
        justify-content: flex-start;
    }
    .login-panel { padding: 30px 22px; }
    .dashboard-grid, .quick-actions { grid-template-columns: 1fr; }
    .dashboard-links, .target-stats { grid-template-columns: 1fr; }
    .admin-metrics, .workspace-actions { grid-template-columns: 1fr; }
    .saas-kpi { min-height: 128px; grid-template-columns: 52px 1fr; }
    .saas-kpi em { grid-column: 2; justify-self: start; }
    .target-card, .statistics-card, .monthly-card { padding: 20px; }
    .gauge { width: min(240px, 100%); }
    .metric-card, .action-card { min-height: auto; }
}
