:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --ink: #172033;
    --muted: #697386;
    --line: #e5e9f0;
    --primary: #0f766e;
    --primary-strong: #115e59;
    --blue: #2563eb;
    --amber: #b7791f;
    --red: #c2410c;
    --green: #15803d;
    --sidebar: #0b1220;
    --sidebar-soft: #111c2f;
    --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
    --shadow-soft: 0 10px 28px rgba(23, 32, 51, 0.06);
}

.table-subtext {
    display: block;
    max-width: 320px;
    margin-top: 4px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.json-preview {
    max-width: 420px;
    max-height: 220px;
    overflow: auto;
    margin: 0;
    padding: 10px;
    border-radius: 7px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 16px;
    white-space: pre-wrap;
}

body {
    --brand-primary: #0f766e;
    --brand-secondary: #0f172a;
    --brand-accent: #f59e0b;
}

.sidebar {
    background: var(--brand-secondary);
}

.sidebar .nav a.active,
.sidebar .nav a:hover {
    border-color: var(--brand-primary);
}

.button:not(.secondary),
button:not(.link-danger):not(.secondary) {
    background-color: var(--brand-primary);
}

.notification-count,
.package-pill strong {
    background: var(--brand-accent);
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 18px 4px 4px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 16px;
    text-align: center;
}

.app-footer small::before {
    content: "·";
    margin-right: 8px;
}

.white-label-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 24px;
    align-items: start;
}

.white-label-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.white-label-nav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.white-label-nav a:hover,
.white-label-nav a.active {
    border-color: color-mix(in srgb, var(--brand-primary) 30%, white);
    color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 8%, white);
}

.white-label-main-panel {
    max-width: 980px;
}

.white-label-main-panel .panel-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.white-label-form-grid,
.white-label-terms-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.white-label-form-grid > label,
.white-label-terms-grid > label,
.white-label-locale > label {
    min-width: 0;
}

.white-label-form-grid input,
.white-label-form-grid select,
.white-label-terms-grid input,
.white-label-locale select {
    width: 100%;
}

.white-label-locale {
    max-width: 460px;
    margin-bottom: 20px;
}

.white-label-settings {
    display: grid;
    gap: 18px;
}

.white-label-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.white-label-shortcut {
    display: grid;
    align-content: start;
    gap: 7px;
    min-height: 130px;
    color: var(--ink);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.white-label-shortcut:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
}

.white-label-shortcut span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.white-label-preview {
    position: sticky;
    top: 90px;
    min-width: 0;
}

.white-label-preview-sidebar {
    display: grid;
    gap: 8px;
    min-height: 380px;
    padding: 24px;
    border-radius: 12px;
    color: #fff;
    background: var(--preview-secondary, #0f172a);
}

.white-label-vendor-toggle {
    width: fit-content;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.white-label-preview-sidebar strong {
    color: var(--preview-primary, #0f766e);
    font-size: 24px;
}

.white-label-preview-sidebar nav {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.white-label-preview-sidebar nav span {
    padding: 10px;
    border-left: 3px solid var(--preview-accent, #f59e0b);
    background: rgba(255, 255, 255, .08);
}

.white-label-preview-sidebar footer {
    margin-top: auto;
    color: #cbd5e1;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .white-label-grid {
        grid-template-columns: 1fr;
    }
    .white-label-preview {
        position: static;
    }

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

@media (max-width: 640px) {
    .white-label-form-grid,
    .white-label-terms-grid,
    .white-label-shortcuts {
        grid-template-columns: 1fr;
    }

    .white-label-nav {
        margin-right: -4px;
        margin-left: -4px;
    }

    .white-label-shortcut {
        min-height: 0;
    }

    .app-footer {
        gap: 4px;
    }

    .app-footer small {
        flex-basis: 100%;
    }

    .app-footer small::before {
        content: "";
        margin: 0;
    }
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    background:
        linear-gradient(180deg, #eef6f5 0, rgba(238, 246, 245, 0) 360px),
        var(--bg);
    color: var(--ink);
    font-family: Cambria, "Times New Roman", Georgia, serif;
    font-size: 14px;
}

.sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px 14px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 20% 0, rgba(20, 184, 166, 0.18), rgba(20, 184, 166, 0) 220px),
        linear-gradient(180deg, #101a2d 0, var(--sidebar) 54%, #09111f 100%),
        var(--sidebar);
    color: #fff;
    box-shadow: 24px 0 60px rgba(10, 18, 32, 0.18);
    scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
    scrollbar-width: thin;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #2dd4bf, #0f766e);
    box-shadow: 0 14px 28px rgba(20, 184, 166, 0.26);
    font-weight: 800;
    font-size: 14px;
}

.brand-mark.has-logo {
    overflow: hidden;
    padding: 4px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}
.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 14px;
    letter-spacing: 0;
}

.brand small {
    color: #a7b0c0;
    font-size: 11px;
    font-weight: 700;
}

.package-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.package-pill span {
    color: #9fb0c8;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.package-pill strong {
    color: #ffffff;
    font-size: 12px;
}

.nav {
    display: grid;
    gap: 18px;
    padding: 4px 0 18px;
}

.nav-group {
    display: grid;
    gap: 6px;
}

.nav-heading {
    display: block;
    padding: 0 14px 8px;
    color: rgba(185, 197, 214, 0.58);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.8px;
    line-height: 1;
    text-transform: uppercase;
}

.nav a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 10px 34px 10px 14px;
    border-radius: 8px;
    color: #b9c5d6;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.nav a.active,
.nav a:hover {
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
    transform: translateX(2px);
}

.nav a.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(255, 255, 255, 0.075));
    box-shadow: inset 3px 0 0 #3b82f6, 0 12px 24px rgba(0, 0, 0, 0.15);
}

.nav a.active::after {
    position: absolute;
    right: 12px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    content: "";
}

.nav-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    color: #d5deea;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav a:hover .nav-icon,
.nav a.active .nav-icon {
    color: #ffffff;
}

.nav-badge {
    margin-left: auto;
    min-width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    padding: 2px 7px;
    background: #f97316;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.user-box {
    margin-top: auto;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    float: left;
    margin-right: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2dd4bf, #0f766e);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}

.user-meta {
    min-height: 38px;
}

.user-meta strong,
.user-meta span {
    display: block;
}

.user-meta span {
    margin-top: 3px;
    color: #9fb0c8;
    font-size: 10px;
    font-weight: 800;
}

.user-meta strong {
    font-size: 13px;
}

.user-box form {
    clear: both;
    margin-top: 12px;
}

.user-box button {
    width: 100%;
    min-height: 36px;
    background: var(--sidebar-soft);
    font-size: 13px;
}

.main {
    position: relative;
    min-width: 0;
    padding: 30px;
    overflow: hidden;
}

.main::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 178px;
    background:
        radial-gradient(circle at 18% 8%, rgba(20, 184, 166, 0.22), rgba(20, 184, 166, 0) 250px),
        radial-gradient(circle at 88% 0, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0) 280px),
        linear-gradient(180deg, rgba(226, 244, 241, 0.92), rgba(244, 247, 251, 0));
    content: "";
    pointer-events: none;
}

.main > * {
    position: relative;
    z-index: 1;
}

.topbar,
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    padding: 22px 24px;
    background:
        radial-gradient(circle at 10% 0%, rgba(20, 184, 166, .2), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(37, 99, 235, .18), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .38)),
        rgba(255, 255, 255, .24);
    box-shadow: 0 20px 54px rgba(15, 23, 42, .08);
    backdrop-filter: blur(20px) saturate(1.18);
    -webkit-backdrop-filter: blur(20px) saturate(1.18);
}

.topbar::before,
.topbar::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.topbar::before {
    right: 94px;
    bottom: -86px;
    width: 250px;
    height: 250px;
    border-radius: 999px;
    background: rgba(15, 118, 110, .1);
}

.topbar::after {
    right: 24px;
    top: 16px;
    width: 118px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 8px;
    background: rgba(255, 255, 255, .22);
}

.topbar > div:first-child {
    position: relative;
    z-index: 1;
}

.topbar .eyebrow {
    color: #0f766e;
    letter-spacing: .08em;
}

.topbar h1 {
    font-size: 28px;
    letter-spacing: 0;
}

.topbar-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.topbar-actions form {
    margin: 0;
}

.topbar-actions button,
.topbar-actions .button {
    border: 0;
    border-radius: 8px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 118, 110, .22);
}

.topbar-actions button:hover,
.topbar-actions .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15, 118, 110, .26);
}

.notification-button {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.notification-button:hover,
.notification-button.active {
    border-color: rgba(148, 163, 184, 0.9);
    background: rgba(255, 255, 255, 0.9);
}

.notification-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.notification-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 2px solid var(--bg);
    border-radius: 999px;
    padding: 0 6px;
    background: #f97316;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.15;
}

h2 {
    margin-bottom: 0;
    font-size: 16px;
}

.period,
.metric,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.period {
    min-width: 150px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.64);
    border-color: rgba(203, 213, 225, 0.72);
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.period span,
.metric-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.period strong {
    display: block;
    margin-top: 4px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.metric {
    min-height: 150px;
    padding: 20px;
    border-top: 4px solid var(--primary);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.metric.warning {
    border-top-color: var(--amber);
}

.metric.danger {
    border-top-color: var(--red);
}

.metric strong {
    display: block;
    margin: 10px 0 8px;
    font-size: 24px;
}

.metric p,
.cycle p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.5;
}

.users-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: stretch;
    gap: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 8px;
    padding: 28px;
    background:
        linear-gradient(118deg, rgba(7, 89, 83, .96), rgba(16, 96, 142, .9) 58%, rgba(37, 99, 235, .9)),
        radial-gradient(circle at 86% 12%, rgba(255, 255, 255, .2), transparent 30%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
    color: #fff;
}

.users-hero::before,
.users-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.users-hero::before {
    right: 30px;
    bottom: -86px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.users-hero::after {
    top: 28px;
    right: 320px;
    width: 240px;
    height: 140px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
}

.users-kicker {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.users-hero .users-kicker {
    color: #b7fff2;
}

.users-hero h2 {
    max-width: 680px;
    margin: 10px 0 12px;
    color: #fff;
    font-size: 28px;
    line-height: 1.22;
}

.users-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.72;
}

.users-hero-panel {
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
    backdrop-filter: blur(14px);
}

.users-hero-panel span {
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.users-hero-panel strong {
    color: #fff;
    font-size: 48px;
    line-height: 1;
}

.users-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.user-metric-card {
    position: relative;
    display: flex;
    gap: 16px;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 8px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94));
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.user-metric-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--user-accent, var(--primary));
}

.user-metric-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -58px;
    width: 126px;
    height: 126px;
    border-radius: 999px;
    background: var(--user-soft, rgba(13, 127, 116, .1));
}

.user-metric-icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 8px;
    background: var(--user-soft, #e7f7f4);
    color: var(--user-accent, var(--primary));
}

.user-metric-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.user-metric-card div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
}

.user-metric-card span {
    color: #64748b;
    font-weight: 800;
}

.user-metric-card strong {
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
}

.user-metric-card p {
    margin: 0;
    color: #64748b;
}

.user-metric-teal {
    --user-accent: #0f766e;
    --user-soft: #dff8f3;
}

.user-metric-green {
    --user-accent: #15803d;
    --user-soft: #e5f8eb;
}

.user-metric-amber {
    --user-accent: #b45309;
    --user-soft: #fff3d7;
}

.user-metric-blue {
    --user-accent: #2563eb;
    --user-soft: #e8f0ff;
}

.users-filter-panel {
    margin-top: 18px;
    border-color: rgba(203, 213, 225, .78);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.users-data-panel {
    margin-top: 18px;
    overflow: hidden;
    border-color: rgba(203, 213, 225, .78);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.users-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 2px 18px;
}

.users-table-head h3 {
    margin: 5px 0 0;
    font-size: 20px;
}

.users-table-head > span {
    border: 1px solid #dbe5f1;
    border-radius: 999px;
    padding: 8px 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.users-table td {
    vertical-align: middle;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.user-avatar {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(15, 118, 110, .22);
}

.user-cell div {
    display: grid;
    gap: 4px;
}

.user-cell strong {
    color: var(--ink);
}

.user-cell span:not(.user-avatar) {
    color: #64748b;
    font-size: 13px;
}

.actions-cell .table-icon-button::before {
    display: none;
    content: none;
}

.activity-log-panel {
    overflow-x: auto;
}

.activity-log-table {
    min-width: 1040px;
}

.activity-log-table th:nth-child(2),
.activity-log-table td:nth-child(2) {
    width: 230px;
}

.activity-log-table th:nth-child(4),
.activity-log-table td:nth-child(4) {
    width: 280px;
}

.log-user-line,
.log-entity-line {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 8px;
    white-space: nowrap;
}

.log-user-line strong,
.log-entity-line strong {
    overflow: hidden;
    max-width: 170px;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-entity-line strong {
    max-width: 220px;
}

.log-user-line small,
.log-entity-line small {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.kb-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .75fr);
    gap: 28px;
    align-items: stretch;
    min-height: 290px;
    padding: 34px 32px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background:
        radial-gradient(circle at 82% 18%, rgba(37, 99, 235, .34), transparent 28%),
        radial-gradient(circle at 18% 24%, rgba(20, 184, 166, .26), transparent 32%),
        linear-gradient(135deg, #071b2a 0%, #123a53 48%, #0f766e 100%);
    box-shadow: 0 24px 52px rgba(15, 23, 42, .16);
}

.kb-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .9));
}

.kb-hero::after {
    position: absolute;
    right: -90px;
    bottom: -150px;
    z-index: -1;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    content: "";
    background: rgba(255, 255, 255, .12);
}

.kb-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
}

.kb-status-pill {
    align-self: flex-start;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .1);
    color: #d1fae5;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.kb-hero h2 {
    max-width: 720px;
    margin: 6px 0 14px;
    color: #fff;
    font-size: 34px;
    line-height: 1.15;
}

.kb-hero p {
    max-width: 740px;
    margin: 0;
    color: rgba(239, 246, 255, .82);
    line-height: 1.75;
}

.kb-kicker {
    margin: 0;
    color: #99f6e4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.kb-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.kb-hero-tags span {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 800;
}

.kb-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: center;
}

.kb-hero-grid div {
    position: relative;
    min-height: 120px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 32px rgba(15, 23, 42, .12);
    backdrop-filter: blur(10px);
}

.kb-coverage-grid div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
}

.kb-hero-grid strong {
    display: block;
    margin-top: 16px;
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.kb-coverage-grid strong {
    display: block;
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
}

.kb-hero-grid > div > span:not(.kb-metric-icon) {
    display: block;
    margin-top: 9px;
    color: rgba(239, 246, 255, .82);
    font-weight: 800;
}

.kb-coverage-grid span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.kb-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(153, 246, 228, .16);
    color: #99f6e4;
}

.kb-metric-icon.warning {
    background: rgba(251, 191, 36, .16);
    color: #fde68a;
}

.kb-metric-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.kb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.kb-profile-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.kb-profile-card {
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.kb-profile-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.kb-profile-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kb-profile-card.teal { border-top: 4px solid var(--teal); }
.kb-profile-card.blue { border-top: 4px solid #2563eb; }
.kb-profile-card.slate { border-top: 4px solid #64748b; }
.kb-profile-card.amber { border-top: 4px solid #c47a12; }

.kb-long-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.kb-long-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 14px;
    align-items: center;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.kb-long-list span {
    display: block;
    margin-bottom: 4px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.kb-long-list p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    text-align: left;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kb-coverage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.kb-data-grid,
.kb-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.kb-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.kb-module-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 8px;
    padding: 22px;
    background: linear-gradient(180deg, #fff, #f8fbff);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .07);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.kb-module-card::after {
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    content: "";
    background: rgba(15, 118, 110, .08);
}

.kb-module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, .28);
    box-shadow: 0 24px 46px rgba(15, 23, 42, .12);
}

.kb-module-card strong,
.kb-module-card small,
.kb-module-card em,
.kb-module-kicker,
.kb-module-icon {
    position: relative;
    z-index: 1;
}

.kb-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #eef6ff;
    color: #2563eb;
}

.kb-module-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.kb-module-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.kb-module-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.25;
}

.kb-module-card small {
    display: block;
    min-height: 48px;
    color: var(--muted);
    line-height: 1.6;
}

.kb-module-card em {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary);
    font-style: normal;
    font-weight: 900;
}

.kb-module-card.indicators .kb-module-icon {
    background: #ecfdf5;
    color: #059669;
}

.kb-module-card.documents .kb-module-icon {
    background: #fff7ed;
    color: #c2410c;
}

.kb-module-card.ami .kb-module-icon {
    background: #f5f3ff;
    color: #6d28d9;
}

.kb-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    padding: 28px;
    background:
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, .22), transparent 26%),
        linear-gradient(135deg, #fff, #edf8ff);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

.kb-detail-hero h2 {
    margin: 6px 0 8px;
    font-size: 28px;
}

.kb-detail-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.kb-detail-hero > strong {
    display: grid;
    place-items: center;
    min-width: 128px;
    min-height: 92px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .8);
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
}

.kb-detail-hero > strong span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.kb-full-table th,
.kb-full-table td {
    vertical-align: top;
}

.kb-full-table td {
    line-height: 1.6;
}

.kb-detail-split {
    display: grid;
    gap: 18px;
}

.kb-table th,
.kb-table td {
    vertical-align: middle;
}

.kb-table .table-single-line {
    max-width: 240px;
}

.kb-detail-modal .modal-card {
    width: min(780px, calc(100vw - 32px));
}

.kb-detail-content {
    max-height: 68vh;
    overflow: auto;
    padding-right: 6px;
}

.kb-detail-content p {
    margin: 0;
    color: var(--ink);
    line-height: 1.85;
    text-align: justify;
    white-space: pre-wrap;
}

.kb-detail-content img {
    display: block;
    max-width: 100%;
    max-height: 62vh;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: contain;
}

.panel {
    padding: 22px;
}

.panel-wide {
    grid-column: 1 / -1;
}

button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: var(--primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

button:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.16);
}

.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.button.secondary {
    background: #e8edf5;
    color: var(--ink);
}

.cycle {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.cycle div {
    min-height: 150px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.cycle span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #d9f3ef;
    color: var(--primary-strong);
    font-weight: 800;
}

.cycle strong {
    display: block;
    margin-bottom: 8px;
}

.progress-list,
.task-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.progress-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
}

.progress-list i {
    grid-column: 1 / -1;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue) var(--value), #e8edf5 var(--value));
}

.task-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.task-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.task-list span {
    color: var(--muted);
    font-size: 13px;
}

.badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.badge.danger {
    background: #fff1ec;
    color: var(--red);
}

.badge.warning {
    background: #fff7df;
    color: var(--amber);
}

.badge.info {
    background: #e8f0ff;
    color: var(--blue);
}

.badge.ok {
    background: #eaf8ef;
    color: var(--green);
}

.badge.draft {
    background: #eef2f7;
    color: var(--muted);
}

.badge.aktif {
    background: #eaf8ef;
    color: var(--green);
}

.badge.revisi {
    background: #fff7df;
    color: var(--amber);
}

.badge.arsip {
    background: #fff1ec;
    color: var(--red);
}

.badge.draft_ai {
    background: #eef2f7;
    color: var(--muted);
}

.badge.review {
    background: #e8f0ff;
    color: var(--blue);
}

.badge.disetujui {
    background: #eaf8ef;
    color: var(--green);
}

.badge.dikirim {
    background: #e8f0ff;
    color: var(--blue);
}

.badge.diverifikasi {
    background: #eaf8ef;
    color: var(--green);
}

.badge.scheduled,
.badge.belum_dinilai {
    background: #eef2f7;
    color: var(--muted);
}

.badge.in_progress,
.badge.observasi {
    background: #e8f0ff;
    color: var(--blue);
}

.badge.completed,
.badge.sesuai {
    background: #eaf8ef;
    color: var(--green);
}

.badge.cancelled,
.badge.mayor {
    background: #fff1ec;
    color: var(--red);
}

.badge.minor {
    background: #fff7df;
    color: var(--amber);
}

.badge.open {
    background: #eef2f7;
    color: var(--muted);
}

.badge.proses {
    background: #e8f0ff;
    color: var(--blue);
}

.badge.selesai {
    background: #fff7df;
    color: var(--amber);
}

.badge.lengkap,
.badge.rendah {
    background: #eaf8ef;
    color: var(--green);
}

.badge.sebagian,
.badge.sedang {
    background: #fff7df;
    color: var(--amber);
}

.badge.perlu_review {
    background: #fff7df;
    color: var(--amber);
}

.badge.belum_lengkap,
.badge.tidak_ada,
.badge.tinggi {
    background: #fff1ec;
    color: var(--red);
}

.data-panel,
.form-panel {
    margin-top: 28px;
}

.data-panel {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.data-table tbody tr {
    transition: background 0.14s ease;
}

.data-table tbody tr:hover {
    background: #fbfcfe;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table td span {
    color: var(--muted);
    font-size: 13px;
}

.table-single-line {
    display: block;
    max-width: 320px;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-doc-table {
    table-layout: fixed;
}

.ai-doc-table th:nth-child(1),
.ai-doc-table td:nth-child(1) {
    width: 34%;
}

.ai-doc-table th:nth-child(2),
.ai-doc-table td:nth-child(2) {
    width: 10%;
}

.ai-doc-table th:nth-child(3),
.ai-doc-table td:nth-child(3) {
    width: 34%;
}

.ai-doc-table th:nth-child(4),
.ai-doc-table td:nth-child(4) {
    width: 14%;
}

.ai-doc-table th:nth-child(5),
.ai-doc-table td:nth-child(5) {
    width: 8%;
}

.ai-doc-draft-line,
.ai-doc-context-line {
    display: flex;
    align-items: baseline;
    min-width: 0;
    gap: 8px;
    white-space: nowrap;
}

.ai-doc-draft-line strong,
.ai-doc-draft-line span,
.ai-doc-context-line strong,
.ai-doc-context-line span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-doc-draft-line strong {
    flex: 0 1 auto;
}

.ai-doc-draft-line span,
.ai-doc-context-line span {
    flex: 1 1 auto;
}

.ai-doc-context-line strong {
    flex: 0 0 auto;
    max-width: 110px;
}

.template-title-line {
    max-width: 480px;
}

.actions-cell {
    width: 120px;
    white-space: nowrap;
}

.actions-cell,
.actions-cell form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.actions-cell a,
.link-danger {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--blue);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
}

.link-danger {
    color: var(--red);
}

.actions-cell a:hover,
.link-danger:hover {
    transform: none;
    box-shadow: none;
    text-decoration: underline;
}

.tenant-table-panel {
    margin-top: 18px;
}

.tenant-table {
    min-width: 760px;
}

.tenant-table th:nth-child(1) {
    width: 30%;
}

.tenant-table th:nth-child(2) {
    width: 22%;
}

.tenant-table th:nth-child(3) {
    width: 18%;
}

.tenant-table th:nth-child(4),
.tenant-table th:nth-child(5) {
    width: 90px;
}

.tenant-table td strong {
    display: block;
    margin-bottom: 4px;
}

.tenant-table td small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.tenant-slug {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    color: var(--ink);
    font: 700 13px Cambria, Georgia, serif;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.table-icon-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    min-height: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0;
    color: var(--blue);
    background: #fff;
    box-shadow: none;
    text-decoration: none;
}

.table-icon-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.table-icon-button:hover {
    color: var(--primary);
    border-color: rgba(15, 118, 110, .28);
    background: #f0fdfa;
    transform: none;
    box-shadow: none;
}

.structure-actions-cell {
    width: 142px;
    min-width: 142px;
    white-space: nowrap;
}

.structure-actions-cell,
.structure-actions-cell form {
    align-items: center;
    gap: 8px;
}

.structure-actions-cell {
    display: flex;
}

.structure-actions-cell form {
    display: inline-flex;
    margin: 0;
}

.structure-actions-cell .table-icon-button::before {
    display: none !important;
    content: none !important;
    mask: none !important;
    -webkit-mask: none !important;
}

.structure-actions-cell .table-icon-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    flex: 0 0 34px;
}

.structure-table th:nth-child(3),
.structure-table td:nth-child(3) {
    width: 124px;
    min-width: 124px;
}

.structure-table th:nth-child(4),
.structure-table td:nth-child(4) {
    width: 86px;
    min-width: 86px;
}

.structure-table th:nth-child(5),
.structure-table td:nth-child(5) {
    width: 150px;
    min-width: 150px;
}

.structure-table td:nth-child(3) .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    white-space: nowrap;
}

.table-icon-button.sync-button {
    color: var(--primary);
}

.table-icon-button.sync-button:hover {
    border-color: rgba(15, 118, 110, .32);
    background: #ecfdf5;
}

.table-icon-button.delete-button {
    color: var(--red);
}

.table-icon-button.delete-button:hover {
    border-color: rgba(194, 65, 12, .28);
    background: #fff1ec;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-card {
    width: min(640px, 100%);
    max-height: min(76vh, 620px);
    overflow: auto;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 8px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.modal-close {
    width: 38px;
    height: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    background: #fff;
    color: var(--muted);
    box-shadow: none;
}

.modal-close svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.modal-close:hover {
    color: var(--red);
    background: #fff1ec;
    transform: none;
    box-shadow: none;
}

.audit-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.audit-summary-meta span {
    border-radius: 999px;
    padding: 7px 10px;
    background: #eef2f7;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.audit-summary-note {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fbfcfe;
    color: var(--ink);
    line-height: 1.7;
    white-space: pre-wrap;
}

.finding-action-stack {
    display: grid;
    gap: 12px;
}

.finding-action-stack div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfe;
}

.finding-action-stack strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
}

.finding-action-stack p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    white-space: pre-wrap;
}

.permission-panel {
    margin-top: 18px;
}

.permission-table {
    min-width: 920px;
}

.permission-table th:not(:first-child),
.permission-table td:not(:first-child) {
    width: 92px;
    text-align: center;
}

.permission-check {
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.permission-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.permission-check span {
    display: block;
    width: 22px;
    height: 22px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.permission-check input:checked + span {
    border-color: rgba(15, 118, 110, .35);
    background: var(--primary);
    box-shadow: inset 0 0 0 5px #fff;
}

.evidence-bank-grid {
    margin-top: 18px;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
}

.evidence-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
    align-items: center;
    min-height: 240px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 8px;
    padding: 30px;
    background:
        radial-gradient(circle at 82% 18%, rgba(45, 212, 191, .26), transparent 30%),
        radial-gradient(circle at 16% 12%, rgba(59, 130, 246, .28), transparent 34%),
        linear-gradient(135deg, #081827 0%, #12324a 48%, #0f766e 100%);
    box-shadow: 0 24px 52px rgba(15, 23, 42, .14);
}

.evidence-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 66px 66px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .86));
}

.evidence-hero::after {
    position: absolute;
    right: -110px;
    bottom: -150px;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    content: "";
    background: rgba(255, 255, 255, .12);
}

.evidence-hero-copy {
    max-width: 760px;
}

.evidence-pill {
    display: inline-flex;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .1);
    color: #a7f3d0;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.evidence-hero .eyebrow {
    color: #99f6e4;
}

.evidence-hero h2 {
    max-width: 760px;
    margin: 8px 0 12px;
    color: #fff;
    font-size: 34px;
    line-height: 1.15;
}

.evidence-hero p {
    margin: 0;
    color: rgba(239, 246, 255, .82);
    line-height: 1.75;
}

.evidence-hero-score {
    min-height: 168px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 32px rgba(15, 23, 42, .12);
    backdrop-filter: blur(10px);
}

.evidence-hero-score span {
    display: block;
    color: #99f6e4;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.evidence-hero-score strong {
    display: block;
    margin: 16px 0 10px;
    color: #fff;
    font-size: 44px;
    line-height: 1;
}

.evidence-summary-grid {
    margin-top: 0;
}

.evidence-metric {
    position: relative;
    overflow: hidden;
    border-top: 0;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.evidence-metric::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, var(--teal), #2563eb);
}

.evidence-metric::after {
    position: absolute;
    right: -54px;
    bottom: -62px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    content: "";
    background: rgba(15, 118, 110, .07);
}

.evidence-metric.success::before {
    background: linear-gradient(90deg, #059669, #14b8a6);
}

.evidence-metric.warning::before {
    background: linear-gradient(90deg, #c47a12, #f59e0b);
}

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

.evidence-bank-item {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.evidence-bank-item span {
    color: var(--muted);
    font-size: 13px;
}

.evidence-bank-item div {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.evidence-bank-item a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.evidence-bank-item a:hover {
    text-decoration: underline;
}

.backup-summary-grid .metric {
    min-height: 132px;
}

.backup-admin-grid {
    margin-top: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.backup-warning {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 13px;
    background: #fff7ed;
    color: var(--amber);
}

.backup-warning strong {
    color: var(--red);
}

.backup-warning span {
    color: #7c2d12;
    line-height: 1.55;
}

.import-template-grid {
    margin-top: 18px;
}

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

.analysis-list article {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.analysis-list article p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
}

.analysis-list article span {
    color: var(--muted);
    font-size: 13px;
}

.evidence-analysis-list article {
    gap: 14px;
}

.analysis-hero {
    margin-bottom: 18px;
}

.analysis-summary-grid {
    margin-bottom: 18px;
}

.analysis-input-panel {
    margin-bottom: 18px;
    border-top: 4px solid var(--teal);
}

.analysis-input-panel select,
.analysis-input-panel input {
    background: #fbfdff;
}

.analysis-empty-note {
    margin-top: 16px;
}

.premium-analysis-list article {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.premium-analysis-list article::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    content: "";
    background: linear-gradient(180deg, var(--teal), #2563eb);
}

.premium-analysis-list .analysis-head,
.premium-analysis-list p,
.premium-analysis-list .analysis-detail-grid {
    position: relative;
    z-index: 1;
}

.analysis-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.analysis-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.analysis-head span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

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

.analysis-detail-grid div {
    display: grid;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfe;
}

.analysis-detail-grid b {
    color: var(--ink);
    font-size: 13px;
}

.analysis-detail-grid span {
    color: var(--muted);
    line-height: 1.6;
}

.actions-cell a.action-followup,
.actions-cell a.action-checklist,
.actions-cell a.action-report,
.actions-cell a[href$="/edit"],
.actions-cell button[onclick*="Hapus"] {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    background: #fff;
    color: var(--blue);
    font-size: 0;
    line-height: 0;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.actions-cell a.action-followup {
    color: var(--green);
}

.actions-cell a.action-checklist {
    color: var(--primary);
}

.actions-cell a.action-report {
    color: var(--amber);
}

.actions-cell button[onclick*="Hapus"] {
    color: var(--red);
}

.actions-cell a.action-followup::before,
.actions-cell a.action-checklist::before,
.actions-cell a.action-report::before,
.actions-cell a[href$="/edit"]::before,
.actions-cell button[onclick*="Hapus"]::before {
    width: 17px;
    height: 17px;
    background: currentColor;
    content: "";
}

.actions-cell a.action-followup::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 11l3 3L22 4M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 11l3 3L22 4M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E") center / contain no-repeat;
}

.actions-cell a.action-checklist::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 3h6l1 2h3v16H5V5h3l1-2ZM9 11l2 2 4-4M9 17h6'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 3h6l1 2h3v16H5V5h3l1-2ZM9 11l2 2 4-4M9 17h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.actions-cell a.action-report::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6Zm0 0v6h6M8 13h8M8 17h6'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6Zm0 0v6h6M8 13h8M8 17h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.actions-cell a[href$="/edit"]::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 20h9M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 20h9M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.actions-cell button[onclick*="Hapus"]::before {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 6h18M8 6V4h8v2m-1 5v6M9 11v6m-3-11 1 14h10l1-14'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 6h18M8 6V4h8v2m-1 5v6M9 11v6m-3-11 1 14h10l1-14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.actions-cell a.action-followup:hover,
.actions-cell a.action-checklist:hover,
.actions-cell a.action-report:hover,
.actions-cell a[href$="/edit"]:hover,
.actions-cell button[onclick*="Hapus"]:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.actions-cell a.action-followup:hover {
    border-color: #bbf7d0;
    background: #eaf8ef;
}

.actions-cell a.action-checklist:hover {
    border-color: #99f6e4;
    background: #eefdfb;
}

.actions-cell a.action-report:hover {
    border-color: #fde68a;
    background: #fff7df;
}

.actions-cell a[href$="/edit"]:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.actions-cell button[onclick*="Hapus"]:hover {
    border-color: #fed7cc;
    background: #fff1ec;
}

.empty {
    color: var(--muted);
    text-align: center;
}

.form-panel {
    max-width: 860px;
}

.filter-panel {
    margin-top: 28px;
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr) auto;
    gap: 14px;
    align-items: end;
}

.filter-form.compact-filter {
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.form-panel form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid > .form-card {
    min-width: 0;
}

.form-grid > .side-card {
    align-self: start;
}

.ai-settings-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: start;
}

.ai-settings-grid .form-card,
.ai-settings-grid .side-card,
.ai-settings-grid label,
.ai-settings-grid input,
.ai-settings-grid select,
.ai-settings-grid textarea,
.ai-settings-grid .status-stack,
.ai-settings-grid .status-stack div {
    min-width: 0;
}

.ai-settings-grid .side-card {
    width: 100%;
    max-width: 420px;
    justify-self: end;
}

.secret-preview,
.status-stack strong.secret-preview {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-card,
.side-card {
    display: grid;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.form-section h2,
.side-card h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 20px;
}

.form-section p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.field-grid {
    display: grid;
    gap: 14px;
}

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

.status-stack {
    display: grid;
    gap: 10px;
}

.status-stack div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
    background: #fff;
}

.status-stack span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.status-stack strong {
    color: var(--ink);
}

.status-stack small {
    color: var(--muted);
}

.structure-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

label small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

code {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 6px;
    background: #f8fafc;
    color: var(--ink);
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
    outline: 0;
}

input:invalid,
select:invalid,
textarea:invalid {
    box-shadow: none;
}

textarea {
    resize: vertical;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-line input {
    width: 18px;
    min-height: 18px;
}

.alert {
    margin-top: 18px;
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 700;
}

.alert.success {
    background: #eaf8ef;
    color: var(--green);
}

.alert.danger {
    background: #fff1ec;
    color: var(--red);
}

.file-note {
    border-radius: 8px;
    padding: 12px;
    background: #f6f8fb;
    color: var(--muted);
}

.table-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.audit-head {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.audit-status-row {
    margin-bottom: 18px;
}

.form-actions {
    margin-top: 18px;
}

.report-title {
    margin-top: 28px;
}

.reports-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: stretch;
    gap: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    padding: 28px;
    background:
        linear-gradient(115deg, rgba(5, 37, 55, .96), rgba(12, 123, 111, .88) 58%, rgba(37, 99, 235, .92)),
        radial-gradient(circle at 84% 18%, rgba(255, 255, 255, .18), transparent 28%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
    color: #fff;
}

.reports-hero::before,
.reports-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.reports-hero::before {
    inset: 18px 30px auto auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.reports-hero::after {
    right: 44px;
    bottom: -90px;
    width: 420px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px 999px 0 0;
}

.reports-hero-copy {
    display: grid;
    align-content: center;
    max-width: 780px;
}

.reports-kicker {
    color: #b7fff2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.reports-hero h2 {
    max-width: 720px;
    margin: 10px 0 12px;
    color: #fff;
    font-size: 30px;
    line-height: 1.18;
}

.reports-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
}

.reports-hero-panel {
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(14px);
}

.reports-hero-panel span {
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.reports-hero-panel strong {
    color: #fff;
    font-size: 52px;
    line-height: 1;
}

.reports-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
}

.reports-toolbar h3 {
    margin: 6px 0 0;
    font-size: 22px;
}

.reports-toolbar .reports-kicker {
    color: var(--primary);
}

.reports-format-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reports-format-row span {
    border: 1px solid #dbe5f1;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .74);
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.report-grid-premium {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    align-items: stretch;
    gap: 18px;
    margin-top: 18px;
}

.report-card {
    display: grid;
    gap: 12px;
}

.report-card p {
    color: var(--muted);
    line-height: 1.6;
}

.report-table-panel {
    overflow-x: auto;
}

.report-summary-grid {
    margin-top: 18px;
}

.report-card-premium {
    position: relative;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 8px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .94));
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.report-card-premium::after {
    content: "";
    position: absolute;
    right: -58px;
    bottom: -70px;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: var(--report-soft, rgba(13, 127, 116, .1));
}

.report-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-icon {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 8px;
    background: var(--report-soft, #e7f7f4);
    color: var(--report-accent, var(--primary));
}

.report-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.report-tag {
    border-radius: 999px;
    padding: 7px 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.report-card-premium h2 {
    position: relative;
    z-index: 1;
    margin: 20px 0 0;
    font-size: 19px;
    line-height: 1.32;
}

.report-card-premium p {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: #64748b;
    line-height: 1.62;
}

.report-chip-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.report-chip-row span {
    border: 1px solid rgba(203, 213, 225, .78);
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(255, 255, 255, .76);
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.report-card-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    border-radius: 8px;
    padding: 13px 14px;
    background: var(--report-accent, var(--primary));
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px var(--report-shadow, rgba(13, 127, 116, .2));
}

.report-card-action svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.report-card-action:hover {
    transform: translateY(-1px);
}

.report-tone-teal {
    --report-accent: #0f766e;
    --report-soft: #dff8f3;
    --report-shadow: rgba(15, 118, 110, .2);
}

.report-tone-blue {
    --report-accent: #2563eb;
    --report-soft: #e8f0ff;
    --report-shadow: rgba(37, 99, 235, .2);
}

.report-tone-amber {
    --report-accent: #b45309;
    --report-soft: #fff3d7;
    --report-shadow: rgba(180, 83, 9, .18);
}

.report-tone-violet {
    --report-accent: #6d28d9;
    --report-soft: #f1e8ff;
    --report-shadow: rgba(109, 40, 217, .18);
}

.report-tone-slate {
    --report-accent: #334155;
    --report-soft: #edf2f7;
    --report-shadow: rgba(51, 65, 85, .18);
}

.report-tone-green {
    --report-accent: #15803d;
    --report-soft: #e5f8eb;
    --report-shadow: rgba(21, 128, 61, .18);
}

.report-tone-cyan {
    --report-accent: #0891b2;
    --report-soft: #dff7ff;
    --report-shadow: rgba(8, 145, 178, .18);
}

.report-tone-rose {
    --report-accent: #be123c;
    --report-soft: #ffe6ee;
    --report-shadow: rgba(190, 18, 60, .16);
}

.empty-state {
    display: grid;
    gap: 7px;
    justify-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 28px;
    background: #fbfcfe;
    color: var(--muted);
    text-align: center;
}

.empty-state.compact {
    padding: 20px;
}

.empty-state strong {
    color: var(--ink);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.pagination a,
.pagination span {
    min-width: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.pagination .active a,
.pagination .active span {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.pagination .disabled a,
.pagination .disabled span {
    color: #a7b0c0;
    pointer-events: none;
}

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

.notification-item {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fbfcfe;
    color: var(--ink);
    text-decoration: none;
}

.notification-item:hover {
    border-color: #b7c3d4;
}

.notification-item.is-read {
    opacity: 0.68;
}

.notification-item strong,
.notification-item small,
.notification-item em {
    display: block;
}

.notification-item small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.5;
}

.notification-item em {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.notification-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--blue);
}

.notification-dot.warning {
    background: var(--amber);
}

.notification-dot.danger {
    background: var(--red);
}

.finding-description {
    margin-top: 18px;
    text-align: left;
    line-height: 1.6;
}

.trend-bars {
    min-height: 220px;
    display: flex;
    align-items: end;
    gap: 14px;
    margin-top: 20px;
    padding-top: 12px;
}

.trend-row {
    min-width: 72px;
    flex: 1;
    display: grid;
    grid-template-rows: 32px 150px 24px;
    gap: 8px;
    text-align: center;
}

.trend-row span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.trend-row b {
    align-self: end;
    width: 100%;
    height: var(--height);
    min-height: 8px;
    border-radius: 8px 8px 0 0;
    background: var(--primary);
}

.trend-row strong {
    font-size: 13px;
}

.document-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.document-summary div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fbfcfe;
}

.document-summary strong,
.document-summary span {
    display: block;
}

.document-summary strong {
    margin-bottom: 4px;
    font-size: 24px;
}

.document-summary span {
    color: var(--muted);
    font-weight: 800;
}

.dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 26px;
    min-height: 190px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 8px;
    padding: 30px;
    background:
        radial-gradient(circle at 82% 35%, rgba(255, 255, 255, .18) 0 120px, rgba(255, 255, 255, 0) 122px),
        linear-gradient(135deg, #111c3f 0%, #164a9f 58%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 24px 54px rgba(37, 99, 235, .18);
}

.dashboard-hero::before,
.dashboard-hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.dashboard-hero::before {
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, transparent, #000 35%, #000 80%, transparent);
}

.dashboard-hero::after {
    right: 30px;
    bottom: -140px;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(20, 184, 166, .18);
}

.dashboard-hero-content,
.dashboard-hero-visual {
    position: relative;
    z-index: 1;
}

.dashboard-kicker {
    margin-bottom: 10px;
    color: #a7f3d0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dashboard-hero h2 {
    max-width: 760px;
    margin-bottom: 12px;
    color: #fff;
    font-size: 26px;
    line-height: 1.22;
}

.dashboard-hero p:last-of-type {
    max-width: 680px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .78);
    font-weight: 700;
    line-height: 1.6;
}

.dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.dashboard-ghost-button {
    border: 1px solid rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.dashboard-hero-visual {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.dashboard-score-ring {
    width: 154px;
    height: 154px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #102349 0 58%, transparent 59%),
        conic-gradient(#2dd4bf var(--score), rgba(255, 255, 255, .2) 0);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 42px rgba(15, 23, 42, .22);
}

.dashboard-score-ring strong,
.dashboard-score-ring span {
    display: block;
    text-align: center;
}

.dashboard-score-ring strong {
    font-size: 30px;
    line-height: 1;
}

.dashboard-score-ring span {
    max-width: 92px;
    margin-top: 7px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-hero-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
}

.dashboard-hero-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.dashboard-metric-card {
    display: flex;
    gap: 14px;
    min-height: 138px;
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 8px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .84)),
        #fff;
    box-shadow: 0 18px 38px rgba(23, 32, 51, .07);
}

.dashboard-card-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef2ff;
    color: var(--blue);
}

.dashboard-card-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.dashboard-metric-card.success .dashboard-card-icon {
    background: #d9f3ef;
    color: var(--primary);
}

.dashboard-metric-card.warning .dashboard-card-icon {
    background: #fff7df;
    color: var(--amber);
}

.dashboard-metric-card.danger .dashboard-card-icon {
    background: #fff1ec;
    color: var(--red);
}

.dashboard-metric-card span:not(.dashboard-card-icon) {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.dashboard-metric-card strong {
    display: block;
    margin: 7px 0 6px;
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
}

.dashboard-metric-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.45;
}

.dashboard-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 16px;
    margin-top: 18px;
}

.dashboard-cycle-panel,
.dashboard-document-panel {
    grid-column: 1 / -1;
}

.dashboard-cycle div {
    background:
        linear-gradient(180deg, #fbfcfe, #f6faf9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.dashboard-cycle span {
    background: linear-gradient(135deg, #2dd4bf, #0f766e);
    color: #fff;
}

.dashboard-priority-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .92)),
        #fff;
}

.dashboard-task-list div {
    border-bottom-color: rgba(226, 232, 240, .82);
}

.dashboard-progress-list i {
    height: 11px;
    background: linear-gradient(90deg, #0f766e var(--value), #e8edf5 var(--value));
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .06);
}

.dashboard-trend-bars b {
    background: linear-gradient(180deg, #2563eb, #0f766e);
    box-shadow: 0 10px 20px rgba(37, 99, 235, .14);
}

.dashboard-document-summary div {
    background:
        linear-gradient(180deg, #fbfcfe, #f8fafc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.draft-preview {
    max-width: 940px;
    display: grid;
    gap: 8px;
    color: var(--ink);
    line-height: 1.7;
}

.draft-preview h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.draft-preview h3 {
    margin: 18px 0 4px;
    font-size: 16px;
    line-height: 1.35;
}

.draft-preview p {
    margin: 0;
}

.draft-bullet {
    padding-left: 18px;
}

.workflow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.workflow-steps span {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    background: #fbfcfe;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.workflow-steps span.active {
    border-color: var(--primary);
    background: #d9f3ef;
    color: var(--primary-strong);
}

.activation-form {
    display: grid;
    gap: 18px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.audit-meta-grid,
.audit-detail-grid,
.source-grid {
    display: grid;
    gap: 14px;
}

.audit-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audit-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

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

.audit-meta-grid div,
.audit-detail-grid div,
.source-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfe;
}

.audit-meta-grid span,
.source-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.audit-meta-grid strong,
.audit-meta-grid small,
.source-grid strong {
    display: block;
    margin-top: 5px;
}

.audit-meta-grid small,
.audit-detail-grid p {
    color: var(--muted);
}

.audit-detail-grid h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.audit-detail-grid p {
    margin: 0;
    line-height: 1.6;
}

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

.gap-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfe;
}

.gap-list strong,
.gap-list span {
    display: block;
}

.gap-list span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.gap-list p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.package-check {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 800;
}

.package-check.on {
    background: #eaf8ef;
    color: var(--green);
}

.package-check.off {
    background: #eef2f7;
    color: var(--muted);
}

.license-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 118px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 8px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.9)),
        #1d4ed8;
    color: #fff;
    box-shadow: 0 22px 50px rgba(37, 99, 235, 0.18);
}

.license-hero::before {
    position: absolute;
    inset: auto 110px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    content: "";
}

.license-kicker {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 900;
}

.license-hero h2 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.18;
}

.license-hero p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    line-height: 1.55;
}

.license-hero-icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
}

.license-hero-icon svg,
.license-tab-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.license-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.license-tabs a {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 16px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.license-tabs a:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow);
}

.license-tabs a.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.license-tab-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
}

.license-tab-icon svg {
    width: 22px;
    height: 22px;
}

.license-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.license-card,
.license-panel,
.license-info-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.license-card {
    min-height: 140px;
    padding: 20px;
}

.license-card span,
.license-info-panel span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.license-card strong {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.25;
}

.license-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.license-card em {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.license-card em.ok {
    background: #eaf8ef;
    color: var(--green);
}

.license-card em.danger {
    background: #fff1ec;
    color: var(--red);
}

.license-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 16px;
    margin-top: 18px;
}

.license-panel {
    padding: 24px;
}

.license-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.license-panel textarea {
    min-height: 128px;
}

.license-info-panel {
    display: grid;
    gap: 0;
    overflow: hidden;
}

.license-info-panel.flat {
    border: 0;
    box-shadow: none;
}

.license-info-panel.flat div {
    background: #fbfcfe;
}

.license-info-panel div {
    min-width: 0;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.license-info-panel div:last-child {
    border-bottom: 0;
}

.license-info-panel strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.5;
}

.license-matrix-panel {
    margin-top: 18px;
}

.license-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.license-info div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfe;
}

.license-info span,
.license-info strong {
    display: block;
}

.license-info span {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.license-info strong {
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.5;
}

.license-generated-output {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.license-generated-output textarea {
    min-height: 150px;
    background: #0f172a;
    color: #d1fae5;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.6;
}

.auth-body {
    display: block;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(3, 31, 42, 0.82), rgba(15, 118, 110, 0.58)),
        url('../img/login-meeting-bg.png') center / cover no-repeat fixed,
        #111827;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(440px, 100%);
    border-radius: 8px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.login-brand {
    color: var(--ink);
    margin-bottom: 28px;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.login-form button {
    width: 100%;
}

.login-note {
    margin-top: 18px;
    border-radius: 8px;
    padding: 12px;
    background: #f6f8fb;
    color: var(--muted);
    font-size: 13px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 16px;
    margin-top: 28px;
}

.panel-header.compact {
    margin-bottom: 20px;
}

.stack-form {
    display: grid;
    gap: 18px;
}

.profile-card {
    text-align: center;
}

.avatar {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #d9f3ef;
    color: var(--primary-strong);
    font-size: 22px;
    font-weight: 800;
}

.profile-card h2 {
    margin-bottom: 6px;
}

.profile-card p {
    color: var(--muted);
}

.profile-meta {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    text-align: left;
}

.profile-meta div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.profile-meta div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-meta dt {
    color: var(--muted);
    font-weight: 800;
}

.profile-meta dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

@media (max-width: 980px) {
    body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        min-height: auto;
        max-height: none;
        padding: 20px;
    }

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

    .user-box {
        margin-top: 18px;
    }

    .summary-grid,
    .users-hero,
    .dashboard-hero,
    .dashboard-metrics,
    .dashboard-workspace,
    .content-grid,
    .cycle,
    .backup-admin-grid,
    .license-tabs,
    .license-card-grid,
    .license-workspace,
    .kb-hero,
    .evidence-hero,
    .kb-layout,
    .kb-data-grid,
    .kb-bottom-grid,
    .kb-module-grid {
        grid-template-columns: 1fr;
    }

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

    .users-table-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .kb-hero-grid,
    .kb-profile-cards,
    .kb-coverage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
        min-height: auto;
    }

    .topbar-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

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

    .ai-settings-grid .side-card {
        max-width: none;
        justify-self: stretch;
    }

    .structure-section-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-form.compact-filter {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 24px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .audit-head {
        grid-template-columns: 1fr;
    }

    .document-summary {
        grid-template-columns: 1fr;
    }

    .trend-bars {
        overflow-x: auto;
    }

    .reports-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .reports-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

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

    .audit-meta-grid,
    .audit-detail-grid,
    .source-grid,
    .analysis-detail-grid,
    .license-info {
        grid-template-columns: 1fr;
    }

    .license-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero-visual {
        justify-content: flex-start;
    }

    .kb-detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

.template-builder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
    gap: 20px;
    align-items: start;
}

.template-builder-controls,
.builder-repeat-list {
    display: grid;
    gap: 16px;
}

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

.span-2 {
    grid-column: span 2;
}

.check-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}

.check-row input {
    width: auto;
}

.template-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #f8fafc;
}

.template-editor-toolbar button {
    min-width: 38px;
    padding: 7px 10px;
}

.template-visual-editor {
    min-height: 320px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    background: #fff;
    line-height: 1.65;
    outline: none;
}

.builder-repeat-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr .7fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.builder-repeat-row.table-row {
    grid-template-columns: 1fr 2fr auto;
}

.builder-repeat-row.signature-row {
    grid-template-columns: .8fr 1.2fr 1.2fr auto;
}

.template-builder-preview {
    min-width: 0;
}

.preview-sticky {
    position: sticky;
    top: 90px;
    overflow: auto;
    max-height: calc(100vh - 110px);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #e2e8f0;
}

.template-preview-shell {
    overflow: auto;
    padding: 24px;
    background: #e2e8f0;
}

.template-document {
    box-sizing: border-box;
    width: var(--page-width);
    min-height: var(--page-min-height);
    margin: 0 auto;
    color: #111827;
    background: #fff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .15);
    line-height: 1.5;
}

.template-document-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #0f172a;
}

.template-document-header strong,
.template-document-header small,
.template-signatures small {
    display: block;
}

.template-document-meta {
    text-align: right;
    font-size: .85em;
}

.template-document main {
    min-height: 190mm;
    padding: 18px 0;
}

.template-document table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
}

.template-document th,
.template-document td {
    padding: 8px;
    border: 1px solid #475569;
}

.template-document th {
    background: #e2e8f0;
}

.template-signatures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 36px;
    text-align: center;
}

.signature-space {
    display: block;
    height: 58px;
}

.template-document footer {
    padding-top: 8px;
    border-top: 1px solid #94a3b8;
    font-size: .8em;
    text-align: center;
}

@media (max-width: 1200px) {
    .template-builder-grid {
        grid-template-columns: 1fr;
    }

    .preview-sticky {
        position: static;
        max-height: none;
    }
}

@media (max-width: 720px) {
    .compact-grid,
    .builder-repeat-row,
    .builder-repeat-row.table-row,
    .builder-repeat-row.signature-row {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .users-summary-grid {
        grid-template-columns: 1fr;
    }

    .users-hero h2 {
        font-size: 24px;
    }

    .report-grid-premium {
        grid-template-columns: 1fr;
    }

    .reports-hero h2 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 22px;
    }

    .main {
        padding: 18px;
    }

    .nav {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 18px;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .button,
    .filter-actions button {
        width: 100%;
    }

    .notification-item {
        grid-template-columns: 12px 1fr;
    }

    .kb-hero {
        padding: 20px;
    }

    .kb-hero-grid,
    .kb-profile-cards,
    .kb-coverage-grid {
        grid-template-columns: 1fr;
    }

    .kb-long-list article {
        grid-template-columns: minmax(0, 1fr) 38px;
        padding: 14px;
    }

    .notification-item .badge {
        grid-column: 2;
        justify-self: start;
    }

    .dashboard-hero {
        padding: 22px;
    }

    .dashboard-hero h2 {
        font-size: 22px;
    }

    .dashboard-hero-visual {
        flex-direction: column;
        align-items: flex-start;
    }

}

.upload-preview {
    display: grid;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.upload-preview span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.upload-preview img {
    width: min(100%, 560px);
    max-height: 320px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
}


.badge.tercapai {
    background: #eaf8ef;
    color: #18844f;
}

.badge.belum_tercapai {
    background: #fff1ec;
    color: #c2410c;
}


.auto-status-preview {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    width: 100%;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    padding: 0 14px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
}

.auto-status-preview.tercapai {
    border-color: #bfe8cf;
    background: #eaf8ef;
    color: #18844f;
}

.auto-status-preview.belum_tercapai {
    border-color: #ffd5c6;
    background: #fff1ec;
    color: #c2410c;
}

.form-help {
    display: block;
    margin-top: 7px;
    color: #64748b;
    line-height: 1.5;
}

.monitoring-table {
    table-layout: fixed;
}

.monitoring-table th,
.monitoring-table td {
    vertical-align: middle;
}

.monitoring-table th:nth-child(2),
.monitoring-table td:nth-child(2) {
    width: 34%;
}

.monitoring-table th:nth-child(4),
.monitoring-table td:nth-child(4),
.monitoring-table th:nth-child(5),
.monitoring-table td:nth-child(5) {
    width: 100px;
    white-space: nowrap;
}

.monitoring-table th:nth-child(6),
.monitoring-table td:nth-child(6) {
    width: 138px;
    white-space: nowrap;
}

.monitoring-table th:nth-child(7),
.monitoring-table td:nth-child(7) {
    width: 168px;
}

.monitoring-table td:nth-child(7) a {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.monitoring-table .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    white-space: nowrap;
    line-height: 1;
}

.monitoring-table .badge.info {
    min-width: 48px;
}

.monitoring-table .table-button {
    min-width: 62px;
}

.indicator-import-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 24px;
    border: 1px solid rgba(203, 213, 225, .78);
    border-top: 4px solid var(--primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(240, 253, 250, .72));
}

.indicator-import-copy {
    min-width: 0;
}

.indicator-import-panel h2 {
    margin: 4px 0 8px;
    font-size: 22px;
}

.indicator-import-panel p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.indicator-import-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.indicator-import-columns span {
    border: 1px solid #dce4ef;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.indicator-import-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-content: end;
    min-width: 0;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, .82);
}

.indicator-import-form label,
.indicator-import-form input {
    min-width: 0;
}

.indicator-import-form input[type="file"] {
    width: 100%;
    border: 1px dashed #bfd0e5;
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
}

.indicator-import-form button {
    width: 100%;
}

@media (max-width: 900px) {
    .indicator-import-panel {
        grid-template-columns: 1fr;
    }
}


.survey-hero-card,
.survey-result-admin-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: linear-gradient(135deg, #102a5c, #2563eb);
    color: #fff;
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.18);
    overflow: hidden;
    position: relative;
}

.survey-hero-card::after,
.survey-result-admin-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.survey-hero-card span,
.survey-result-admin-hero span {
    display: block;
    margin-bottom: 8px;
    color: #b7f7ee;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.survey-hero-card h2,
.survey-result-admin-hero h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.survey-hero-card p,
.survey-result-admin-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.survey-hero-score,
.survey-result-number {
    position: relative;
    z-index: 1;
    min-width: 138px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.14);
    text-align: center;
}

.survey-hero-score strong,
.survey-result-number strong {
    display: block;
    font-size: 32px;
    line-height: 1;
}

.survey-hero-score span,
.survey-result-number span {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0;
    text-transform: none;
}

.survey-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.survey-admin-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.survey-admin-card-head,
.survey-admin-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.survey-admin-card-head span,
.survey-filter-tabs a,
.pill.soft {
    border-radius: 999px;
    padding: 8px 12px;
    background: #eaf2ff;
    color: #2563eb;
    font-weight: 900;
}

.survey-admin-card-head strong {
    font-size: 24px;
}

.survey-admin-card h3 {
    margin: 18px 0 10px;
    font-size: 18px;
}

.survey-admin-card p {
    min-height: 70px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.survey-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.survey-mini-stats span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--muted);
    background: #fff;
}

.survey-progress,
.survey-admin-bar {
    height: 10px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.survey-progress span,
.survey-admin-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #2563eb);
}

.survey-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.survey-filter-tabs a {
    text-decoration: none;
    background: #f4f7fb;
    color: var(--muted);
}

.survey-filter-tabs a.active {
    background: #0f766e;
    color: #fff;
}

.survey-admin-chart {
    display: grid;
    gap: 16px;
}

.survey-admin-bar-label {
    margin-bottom: 8px;
}

.survey-admin-bar-label span {
    color: var(--muted);
    font-weight: 900;
}

.one-line-cell {
    max-width: 540px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions.compact {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 1100px) {
    .survey-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .survey-hero-card,
    .survey-result-admin-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

.survey-admin-card.is-non-scale {
    border-color: rgba(15, 118, 110, 0.28);
    background: linear-gradient(145deg, #ffffff 0%, #f8fffd 56%, #eefcf8 100%);
}

.survey-type-label {
    max-width: 108px;
    font-size: 13px !important;
    color: #0f766e;
    text-align: right;
}

.survey-progress.non-scale span,
.survey-admin-bar.non-scale span {
    background: linear-gradient(90deg, #0f766e, #2dd4bf);
}

.btn.disabled,
.btn.disabled:hover {
    cursor: not-allowed;
    opacity: 0.68;
    color: #64748b;
    background: #edf2f7;
    border-color: #dbe4ef;
    box-shadow: none;
}

.survey-question-table th:nth-child(2),
.survey-question-table td:nth-child(2) {
    width: 190px;
}

.survey-question-table th:nth-child(3),
.survey-question-table td:nth-child(3) {
    width: 150px;
}

.one-line-pill,
.type-pill {
    display: inline-flex;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-pill.type-pilihan_ganda {
    background: #fff7ed;
    color: #c2410c;
}

.type-pill.type-esai {
    background: #f0f9ff;
    color: #0369a1;
}

.non-scale-result {
    background: linear-gradient(135deg, #0b2f3d, #0f766e 58%, #14b8a6);
}

/* Survey question table polish */
.survey-question-card {
    overflow: hidden;
}

.survey-question-responsive {
    padding-bottom: 8px;
}

.survey-question-table {
    min-width: 1020px;
    table-layout: fixed;
}

.survey-question-table th,
.survey-question-table td {
    padding: 18px 16px;
}

.survey-question-table th:nth-child(1),
.survey-question-table td:nth-child(1) {
    width: 48px;
    text-align: center;
}

.survey-question-table th:nth-child(2),
.survey-question-table td:nth-child(2) {
    width: 190px;
}

.survey-question-table th:nth-child(3),
.survey-question-table td:nth-child(3) {
    width: 160px;
}

.survey-question-table th:nth-child(5),
.survey-question-table td:nth-child(5) {
    width: 110px;
    text-align: center;
}

.survey-question-table th:nth-child(6),
.survey-question-table td:nth-child(6) {
    width: 132px;
    text-align: center;
}

.survey-question-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
}

.survey-actions-cell {
    padding-right: 18px !important;
}

.table-actions.compact-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 88px;
}

.table-actions.compact-actions form {
    display: inline-flex;
    margin: 0;
}

.table-actions.compact-actions .table-icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 8px;
}

.table-actions.compact-actions .table-icon-button::before,
.survey-actions-cell .table-icon-button::before {
    display: none !important;
    content: none !important;
}

.table-actions.compact-actions .table-icon-button svg {
    width: 17px;
    height: 17px;
}

.one-line-pill,
.type-pill {
    align-items: center;
    justify-content: center;
    min-height: 34px;
    max-width: 170px;
    padding: 8px 14px;
    line-height: 1.1;
}

.type-pill.type-esai {
    min-width: 74px;
}

@media (max-width: 1180px) {
    .survey-question-responsive {
        overflow-x: auto;
    }
}

/* Survey question header and action column fix */
.topbar-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.topbar-actions .btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    border-color: transparent;
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.2);
}

.topbar-actions .btn.secondary {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.82);
}

.topbar-actions .notification-button {
    flex: 0 0 auto;
}

.survey-question-card {
    padding-right: 24px;
}

.survey-question-responsive {
    overflow-x: auto;
    padding-right: 24px;
}

.survey-question-table {
    min-width: 1120px;
}

.survey-question-table th:nth-child(4),
.survey-question-table td:nth-child(4) {
    width: auto;
}

.survey-question-table th:nth-child(5),
.survey-question-table td:nth-child(5) {
    width: 120px;
}

.survey-question-table th:nth-child(6),
.survey-question-table td:nth-child(6) {
    width: 150px;
    min-width: 150px;
}

.survey-actions-cell {
    padding-right: 28px !important;
}

@media (max-width: 1280px) {
    .topbar {
        align-items: flex-start;
        gap: 18px;
    }

    .topbar-actions {
        max-width: 430px;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }

    .topbar-actions .btn {
        min-height: 40px;
        padding: 10px 13px;
        font-size: 12px;
    }
}

/* Survey question section spacing */
.survey-question-card {
    margin-top: 18px;
}

.survey-question-card .section-head {
    padding-top: 4px;
    margin-bottom: 20px;
}

.survey-question-card .section-head .eyebrow {
    display: inline-block;
    margin-bottom: 8px;
}

.survey-question-card .section-head h2 {
    margin: 0 0 8px;
    line-height: 1.15;
}

.survey-question-card .section-head p {
    max-width: 980px;
    margin: 0;
    line-height: 1.65;
}

.survey-filter-tabs {
    margin-bottom: 22px;
}

/* Survey question intro separated from tabs/table */
.topbar {
    margin-bottom: 22px !important;
}

.survey-question-tabs {
    margin-top: 2px !important;
    margin-bottom: 28px !important;
}

.survey-question-intro {
    display: block;
    margin: 0 0 24px !important;
    padding: 24px 26px 22px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.05);
}

.survey-question-intro .eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.survey-question-intro h2 {
    margin: 0 0 9px;
    font-size: 23px;
    line-height: 1.18;
}

.survey-question-intro p {
    max-width: 1050px;
    margin: 0;
    color: #334155;
    line-height: 1.72;
}

.survey-question-card {
    margin-top: 0 !important;
}

/* Survey result page premium layout */
.survey-result-tabs {
    margin-bottom: 22px !important;
}

.survey-result-admin-hero {
    margin-bottom: 22px;
    border-radius: 8px;
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.16);
}

.survey-result-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 22px;
}

.survey-metric-card {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.survey-metric-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #0f766e, #2563eb);
}

.survey-metric-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -46px;
    width: 112px;
    height: 112px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.07);
}

.survey-metric-card span,
.survey-metric-card strong,
.survey-metric-card small {
    position: relative;
    z-index: 1;
    display: block;
}

.survey-metric-card span {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
}

.survey-metric-card strong {
    margin: 10px 0 8px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1;
}

.survey-metric-card small {
    color: #64748b;
    font-weight: 700;
    line-height: 1.45;
}

.survey-result-card {
    margin-bottom: 22px;
    padding: 26px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.survey-result-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.survey-result-section-head .eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.survey-result-section-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.survey-result-section-head p {
    max-width: 520px;
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.survey-admin-chart {
    display: grid;
    gap: 20px;
}

.survey-admin-bar-row {
    display: grid;
    gap: 10px;
}

.survey-admin-bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
}

.survey-admin-bar-label strong {
    color: #0f172a;
    font-size: 15px;
}

.survey-admin-bar-label span {
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.survey-admin-bar {
    height: 12px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
}

.survey-admin-bar span {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #2563eb);
}

.survey-response-table th,
.survey-response-table td {
    padding: 16px 14px;
}

@media (max-width: 1180px) {
    .survey-result-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .survey-result-section-head {
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .survey-result-metrics {
        grid-template-columns: 1fr;
    }
}

/* Document approval workflow */
.document-approval-panel .table-responsive {
    overflow-x: auto;
}

.document-table {
    min-width: 1280px;
}

.document-title-cell {
    min-width: 240px;
}

.approval-legend,
.approval-info-box {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(239, 246, 255, 0.82));
}

.approval-legend strong,
.approval-info-box strong {
    color: #0f766e;
    font-size: 14px;
}

.approval-legend span,
.approval-info-box span {
    color: #475569;
    line-height: 1.55;
}

.approval-cell {
    min-width: 220px;
}

.approval-cell small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.approval-note {
    color: #334155 !important;
}

.approval-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.approval-draft {
    color: #475569;
    background: #f1f5f9;
}

.approval-pending {
    color: #92400e;
    background: #fef3c7;
}

.approval-approved {
    color: #047857;
    background: #dcfce7;
}

.approval-rejected {
    color: #c2410c;
    background: #ffedd5;
}

.document-actions-cell {
    min-width: 210px;
}

.document-actions-cell,
.document-actions-cell form {
    gap: 8px;
}

.document-actions-cell form {
    margin: 0;
}

.table-action-link,
.table-action-button,
.approve-button,
.reject-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 8px;
    padding: 8px 11px;
    border: 1px solid #dbe4ef;
    background: #fff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.table-action-button {
    color: #0f766e;
    background: #ecfdf5;
    border-color: rgba(15, 118, 110, 0.24);
}

.approval-action-form {
    display: grid !important;
    gap: 7px !important;
    width: 100%;
    margin-top: 8px !important;
}

.approval-action-form input {
    width: 100%;
    min-height: 34px;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
}

.approve-button {
    color: #fff;
    border-color: #0f766e;
    background: #0f766e;
}

.reject-button {
    color: #fff;
    border-color: #c2410c;
    background: #c2410c;
}

.badge.menunggu_approval {
    color: #92400e;
    background: #fef3c7;
}

/* Document status badge polish */
.document-table th:nth-child(4),
.document-table td:nth-child(4) {
    width: 172px;
    min-width: 172px;
}

.document-table th:nth-child(5),
.document-table td:nth-child(5) {
    width: 248px;
    min-width: 248px;
}

.document-table td:nth-child(4) .badge,
.badge.menunggu_approval {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 142px;
    max-width: none;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
}

/* Document approval action column polish */
.document-table {
    min-width: 1480px;
}

.document-table th:nth-child(9),
.document-table td:nth-child(9) {
    width: 360px;
    min-width: 360px;
}

.document-actions-cell {
    min-width: 360px;
    vertical-align: top;
}

.document-actions-cell > .table-action-link,
.document-actions-cell > form:not(.approval-action-form) {
    margin-bottom: 8px;
}

.approval-action-form {
    grid-template-columns: minmax(170px, 1fr) auto;
    align-items: center;
    width: 100%;
    max-width: 330px;
}

.approval-action-form input {
    min-width: 0;
    width: 100%;
}

.approval-action-form .approve-button,
.approval-action-form .reject-button {
    min-width: 78px;
    white-space: nowrap;
}

/* Compact approval buttons without note inputs */
.document-actions-cell {
    min-width: 240px;
}

.document-table th:nth-child(9),
.document-table td:nth-child(9) {
    width: 260px;
    min-width: 260px;
}

.approval-action-form.approval-action-compact {
    display: inline-flex !important;
    width: auto;
    max-width: none;
    margin-top: 8px !important;
    margin-right: 8px !important;
    vertical-align: middle;
}

.approval-action-form.approval-action-compact .approve-button,
.approval-action-form.approval-action-compact .reject-button {
    min-width: 82px;
}


/* Login meeting background polish */
.login-panel {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 28px 80px rgba(2, 8, 23, 0.34);
    backdrop-filter: blur(10px);
}

/* Institution identity page */
.identity-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 26px;
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.94), rgba(239, 246, 255, 0.92));
    overflow: hidden;
    position: relative;
}

.identity-hero::after {
    content: '';
    position: absolute;
    right: 60px;
    top: -70px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
}

.identity-hero h2 {
    margin: 4px 0 8px;
    font-size: 28px;
}

.identity-hero p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.identity-logo-card {
    position: relative;
    z-index: 1;
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.identity-logo-card img,
.identity-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.identity-logo-card span,
.identity-preview-logo span {
    color: var(--primary);
    font-weight: 900;
}

.identity-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}

.identity-form-panel,
.identity-side-panel {
    align-self: start;
}

.identity-side-panel {
    position: sticky;
    top: 18px;
}

.identity-preview-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.identity-preview-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}

.identity-preview-brand strong,
.identity-preview-brand span,
.identity-sync-list strong,
.identity-sync-list span {
    display: block;
}

.identity-preview-brand span,
.identity-sync-list span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.identity-sync-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.identity-sync-list div {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

@media (max-width: 980px) {
    .identity-layout,
    .identity-hero {
        grid-template-columns: 1fr;
    }

    .identity-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .identity-side-panel {
        position: static;
    }
}

