:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --text: #17202a;
    --muted: #617080;
    --line: #d9e0e7;
    --form-bg: #f8fbfd;
    --card-border: #cfdae3;
    --card-soft: #f9fbfc;
    --brand-start: #6d5dff;
    --brand-end: #5ce4ff;
    --primary: #1f6f8b;
    --primary-dark: #17566d;
    --danger-bg: #fff1f1;
    --danger: #9f1d1d;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 88px;
}

/* ── Topbar público e menu responsivo ── */
.topbar{position:absolute;top:18px;left:24px;right:24px;display:flex;align-items:center;gap:16px;z-index:60}
.topbar .logo{display:flex;align-items:center;gap:10px;font-weight:900;color:#ffffff}
.topbar .logo .symbol{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;background:linear-gradient(135deg,#6d5dff,#5ce4ff);color:#fff}
.topbar nav{margin-left:auto;display:flex;gap:18px;align-items:center}
.topbar a{color:rgba(255,255,255,0.95);font-weight:800;text-decoration:none}
.topbar a.cta{background:linear-gradient(135deg,#6d5dff,#5ce4ff);color:#fff;padding:8px 14px;border-radius:10px}

/* Hamburger */
.hamburger{display:none;margin-left:auto;background:transparent;border:0;color:#fff;font-size:20px;padding:8px;border-radius:8px}
.hamburger:focus{outline:2px solid rgba(109,93,255,0.24)}
.mobile-nav{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.6);z-index:70;align-items:center;justify-content:center}
.mobile-nav .panel{background:#fff;padding:20px;border-radius:12px;min-width:260px;max-width:320px;display:flex;flex-direction:column;gap:12px}
.mobile-nav a{color:#17202a}

@media (max-width:900px){
    .topbar{position:fixed;left:0;right:0;top:0;padding:10px 14px;background:#ffffff;box-shadow:0 6px 18px rgba(23,32,42,0.06);}
    .topbar .logo{color:#17202a}
    .topbar a{color:#425a66}
    .topbar a.cta{background:linear-gradient(135deg,#6d5dff,#5ce4ff);color:#fff}
    .topbar nav{display:none}
    .hamburger{display:block;color:#17202a}
}

/* Ajustes de espaçamento e estilo para combinar com screenshot */
.lg-wrap{min-height:calc(100vh - 0px)}
.lg-brand{padding:80px 72px;color:#fff;background:radial-gradient(1200px 600px at 10% 20%, rgba(92,228,255,0.06), transparent 12%),linear-gradient(135deg,#071026 10%,#0c1426 100%)}
.lg-headline{font-size:clamp(40px,5vw,64px);font-weight:900;line-height:1.02;margin-bottom:18px}
.lg-headline span{background:linear-gradient(135deg,#a78bfa,#5ce4ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.lg-features{gap:16px}
.lg-feat{font-size:15px;color:rgba(248,251,255,.8)}
.lg-feat-dot{width:10px;height:10px}
.lg-form-side{padding:56px 48px;border-radius:16px;box-shadow:0 30px 60px rgba(6,12,28,0.32);background:#fff;margin:48px}
.lg-card{max-width:420px;padding:18px 12px}

/* Topbar behavior: transparent on wide screens (over dark brand), white on small screens */
@media (min-width: 901px) {
    .topbar{position:absolute;left:32px;right:32px;top:28px;background:transparent;box-shadow:none}
    .topbar .logo{color:#ffffff}
    .topbar a{color:rgba(255,255,255,0.95)}
    .topbar a.cta{background:linear-gradient(135deg,#6d5dff,#5ce4ff);color:#fff}
}

/* Mobile nav panel tweaks */
.mobile-nav .panel{padding:18px}

/* ── Rodapé profissional ── */
.site-footer{background:linear-gradient(180deg,#050815 0%,#071026 60%);color:rgba(255,255,255,0.92);padding:48px 32px;margin-top:36px}
.site-footer .footer-inner{display:flex;gap:32px;align-items:flex-start;justify-content:space-between;max-width:1200px;margin:0 auto}
.site-footer .footer-col{flex:1;min-width:200px}
.site-footer .footer-brand .footer-logo{display:flex;align-items:center;gap:12px;font-weight:900;font-size:18px;color:#ffffff}
.site-footer .footer-brand .symbol{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#6d5dff,#5ce4ff);color:#fff}
.site-footer h4{margin:0 0 10px;font-size:15px;color:#f3f7ff}
.site-footer p,.site-footer a{color:rgba(255,255,255,0.85)}
.site-footer .footer-links{list-style:none;padding:0;margin:0}
.site-footer .footer-links li{margin:6px 0}
.site-footer .footer-links a{color:rgba(255,255,255,0.85);text-decoration:none}
.site-footer .social{display:flex;gap:8px;margin-top:10px}
.site-footer .social a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:rgba(255,255,255,0.06);color:#fff;text-decoration:none}
.site-footer .footer-bottom{max-width:1200px;margin:20px auto 0;padding-top:18px;border-top:1px solid rgba(255,255,255,0.04);font-size:13px;color:rgba(255,255,255,0.6);text-align:center}

@media (max-width:900px){
    .site-footer .footer-inner{flex-direction:column;gap:18px;padding:0 18px}
    .site-footer{padding:28px 16px}
}



* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.login-page,
.page-center {
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

body.login-page {
    background: #ffeb3b;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(360px, 520px);
    gap: 48px;
    width: 100%;
    min-height: calc(100vh - 64px);
    align-items: center;
    padding: 0 48px;
}

.login-brand h1,
.panel h1,
.content h1 {
    margin: 0 0 10px;
}

.login-brand p,
.muted {
    color: var(--muted);
    margin: 0;
}

.login-logo {
    display: block;
    width: min(360px, 100%);
    height: auto;
    margin-bottom: 24px;
}

.login-card,
.panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(23, 32, 42, 0.045);
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, var(--primary), #78b5c7);
}

.login-card h2 {
    margin: 0 0 24px;
}

label {
    display: block;
    margin: 10px 0 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
}

input,
select {
    height: 36px;
}

textarea {
    min-height: 76px;
    padding-top: 8px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(31, 111, 139, 0.16);
}

button,
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 96px;
    min-height: 32px;
    margin-top: 12px;
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    padding: 0 14px;
    cursor: pointer;
}

.login-card button {
    width: 100%;
    min-height: 44px;
}

.login-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
}

.login-actions.visible {
    justify-content: flex-start;
}

.dev-reset-link {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 10px;
    border: 1px dashed var(--primary);
    border-radius: 6px;
    background: #f5fbfd;
    font-size: 12px;
    overflow-wrap: anywhere;
}

button:hover,
.button:hover {
    background: var(--primary-dark);
}

.button.secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.button.secondary:hover {
    background: #f8fafc;
}

.alert {
    margin: 16px 0;
    padding: 12px;
    border-radius: 6px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 14px;
}

.notice {
    margin: 16px 0;
    padding: 12px;
    border-radius: 6px;
    background: #edf8f2;
    color: #17633a;
    font-size: 14px;
    overflow: hidden;
    animation: flashOut 0.45s ease 4s forwards;
}

@keyframes flashOut {
    to {
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
        opacity: 0;
    }
}

.credentials {
    margin: 18px 0 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    line-height: 1.6;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    padding: 18px 14px 16px;
    background: #0b1120;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 20;
    transition: width 180ms ease, padding 180ms ease;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
}

.sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #f8fbff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 180ms ease, transform 180ms ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
}

.sidebar.collapsed .brand-name,
.sidebar.collapsed .menu-label {
    display: none;
}

.sidebar.collapsed .brand-link {
    justify-content: center;
}

.sidebar.collapsed .menu-link {
    justify-content: center;
    padding: 8px 0;
}

.sidebar.collapsed .menu-link.active::before {
    display: none;
}

.sidebar.collapsed .nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
}

.sidebar.collapsed .menu-link.active .nav-icon {
    background: rgba(109, 93, 255, 0.3);
}

.sidebar.collapsed .sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 10px;
}

.sidebar.collapsed .menu-badge,
.sidebar.collapsed .menu-group-label,
.sidebar.collapsed .sidebar-profile-info,
.sidebar.collapsed .profile-chevron {
    display: none;
}

.sidebar.collapsed .sidebar-profile {
    justify-content: center;
    padding: 12px 0;
}

.sidebar-brand .brand-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.brand-symbol {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #6d5dff, #5ce4ff);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.brand-name {
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f8fbff;
}

.main-menu {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 8px;
}

.main-menu .menu-group-label:first-child {
    padding-top: 4px;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.menu-group-label {
    padding: 10px 10px 3px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(167, 139, 250, 0.9);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 7px;
}

.menu-group-label::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 1.5px;
    background: rgba(167, 139, 250, 0.45);
    border-radius: 99px;
    flex-shrink: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    color: rgba(248, 251, 255, 0.65);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: background 130ms ease, color 130ms ease;
    position: relative;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(248, 251, 255, 0.95);
}

.menu-link:hover .nav-icon {
    color: rgba(248, 251, 255, 0.95);
}

.menu-link.active {
    background: rgba(109, 93, 255, 0.22);
    color: #ffffff;
    font-weight: 700;
}

.menu-link.active .nav-icon {
    color: #a78bfa;
}

.menu-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #6d5dff, #5ce4ff);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    color: rgba(248, 251, 255, 0.45);
    transition: color 130ms ease;
}

.menu-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5dff, #5ce4ff);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    color: #f8fbff;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.sidebar-profile:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d5dff, #5ce4ff);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    display: block;
    color: rgba(248, 251, 255, 0.72);
    font-size: 13px;
}

.profile-chevron {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: rgba(248, 251, 255, 0.72);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.profile-dropdown {
    display: none;
    margin-top: 4px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-dropdown.open {
    display: block;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: rgba(248, 251, 255, 0.75);
    text-decoration: none;
    transition: background 0.15s;
}

.profile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.profile-dropdown-item.logout:hover {
    background: rgba(220, 60, 60, 0.28);
    color: #ffc7c7;
}

.plan-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eef3ff;
    color: #4338ca;
    font-size: 18px;
}

.plan-card strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
}

.plan-card-header span,
.plan-card .plan-link {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.plan-days {
    font-size: 26px;
    color: #0f172a;
    margin-top: 4px;
}

.plan-progress {
    height: 8px;
    border-radius: 999px;
    background: #e5e7ff;
    overflow: hidden;
}

.plan-progress-fill {
    display: block;
    width: 64%;
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
}

.plan-link {
    padding: 12px 0;
    text-decoration: none;
    color: #4338ca;
    font-weight: 700;
}

@media (max-width: 980px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
        border-right: none;
    }

    .content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

.dropdown-divider {
    border: 0;
    border-top: 1px solid #dbe5eb;
    margin: 5px 0;
}

.sidebar-search {
    margin: 0 0 18px;
}

.sidebar-search .top-search {
    display: flex;
    gap: 4px;
    align-items: center;
    width: 100%;
}

.sidebar-search .top-search input {
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid #dbe5eb;
    padding: 0 14px;
    background: #f8fbfc;
}

.sidebar-search .top-search button {
    min-width: 90px;
    min-height: 44px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
}

.sidebar-footer .user-menu,
.user-menu .user-button {
    width: 100%;
}

.user-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #dbe5eb;
    background: #fff;
    color: var(--text);
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.user-menu .dropdown-menu {
    position: relative;
    left: auto;
    width: 100%;
    box-shadow: none;
}

.content {
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: 24px 24px 32px;
    overflow-x: hidden;
    transition: width 180ms ease, max-width 180ms ease, margin-left 180ms ease;
}

body.sidebar-collapsed .content {
    width: calc(100% - var(--sidebar-collapsed-width));
    max-width: calc(100% - var(--sidebar-collapsed-width));
    margin-left: var(--sidebar-collapsed-width);
}

@media (max-width: 980px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        box-shadow: none;
        border-right: none;
    }

    .sidebar.collapsed {
        width: 100%;
    }

    .content,
    body.sidebar-collapsed .content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}

.menu-item,
.user-menu {
    position: relative;
}

.has-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.menu-item > a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 9px;
    border-radius: 6px;
    color: #405462;
    font-weight: 700;
}

.menu-item.has-dropdown > a::after {
    content: "▾";
    margin-left: 6px;
    font-size: 10px;
}

.menu-item > a.active,
.menu-item > a:hover {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 1px 4px rgba(23, 32, 42, 0.06);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    min-width: 230px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(23, 32, 42, 0.12);
}

.dropdown-menu a,
.dropdown-menu > span {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    border-radius: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dropdown-menu > span {
    color: var(--muted);
    font-weight: 400;
}

.dropdown-divider {
    width: 100%;
    border: 0;
    height: 1px;
    margin: 4px 2px;
    padding: 0;
    background: #edf2f5;
}

.menu-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.dropdown-menu a:hover {
    background: #eef5f7;
    color: var(--primary-dark);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-right {
    right: 0;
    left: auto;
}

.top-search {
    display: flex;
    align-items: center;
    height: 38px;
}

.top-search input {
    width: 220px;
    height: 38px;
    border-radius: 6px 0 0 6px;
    font-size: 13px;
}

.top-search button {
    min-width: 76px;
    min-height: 38px;
    margin: 0;
    border-radius: 0 6px 6px 0;
}

.user-button {
    min-width: 0;
    min-height: 38px;
    margin: 0;
    border: 1px solid #c7dce4;
    background: #fff;
    color: var(--text);
    font-weight: 700;
}

.user-button:hover {
    background: #eef5f7;
    color: var(--primary-dark);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-link img {
    display: block;
    width: 130px;
    height: auto;
}

.topbar span {
    color: var(--muted);
}

.content {
    padding: 14px 18px;
}

.content.dashboard-home {
    padding: 24px 24px 32px;
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.page-title h1 {
    font-size: 24px;
    line-height: 1.15;
}

.page-title .muted {
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 14px;
}

.dashboard-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 8px;
}

.dashboard-main {
    display: grid;
    gap: 16px;
}

.dashboard-hero {
    display: grid;
    gap: 24px;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f6f8ff 0%, #ffffff 100%);
    border: 1px solid rgba(31, 111, 139, 0.12);
    box-shadow: 0 18px 54px rgba(31, 59, 98, 0.08);
}

.hero-heading {
    display: grid;
    gap: 10px;
}

.hero-heading .eyebrow {
    color: #1d3e7c;
    font-weight: 700;
    text-transform: none;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.hero-heading h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    color: #08131f;
    max-width: 760px;
}

.hero-heading p {
    margin: 0;
    color: #5b6c88;
    font-size: 15px;
    max-width: 720px;
}

.hero-ai-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: #f7f8ff;
    box-shadow: 0 18px 42px rgba(73, 93, 216, 0.08);
}

.hero-ai-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.hero-ai-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: linear-gradient(180deg, #eef4ff 0%, #dde5ff 100%);
    color: #4338ca;
    flex-shrink: 0;
}

.hero-ai-label {
    color: #08131f;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-ai-pill {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.18);
    color: #3f51b5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.hero-ai-submit {
    min-width: 58px;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-top: 0;
}

.hero-card {
    display: grid;
    gap: 16px;
    padding: 26px;
    border-radius: 22px;
    border: 1px solid #e7ebff;
    background: #fff;
    box-shadow: 0 16px 36px rgba(23, 32, 42, 0.06);
}

.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: #fff;
}

.hero-card-icon.blue {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.hero-card-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.hero-card-icon.purple {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.hero-card-icon.blue-light {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}

.hero-card-label {
    font-size: 14px;
    color: #5b6c88;
}

.hero-card strong {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    color: #08131f;
}

.hero-card-meta {
    margin: 0;
    color: #5b6c88;
    font-size: 14px;
}

.hero-card-change {
    font-weight: 700;
    margin-right: 8px;
}

.hero-card-change.positive {
    color: #0f7b44;
}

.hero-card-change.negative {
    color: #b91c1c;
}

@media (max-width: 1040px) {
    .hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    .hero-ai-box {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-ai-submit {
        width: 100%;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }
}

.sidebar-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--card-border);
    background: #fff;
    box-shadow: 0 12px 32px rgba(23, 32, 42, 0.06);
}

.card {
    border-radius: 22px;
    border: 1px solid var(--card-border);
    background: #fff;
    box-shadow: 0 10px 30px rgba(23, 32, 42, 0.05);
    overflow: hidden;
}

.card.activity-panel {
    padding: 24px;
}

.card .section-card-title {
    margin-bottom: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.card.activity-panel .section-card-title {
    margin-bottom: 18px;
}

.sidebar-card .section-card-title h2 {
    font-size: 18px;
    margin: 0;
}

.insights-list,
.commitments-list,
.activity-list {
    display: grid;
    gap: 12px;
}

.insights-list a,
.commitments-list a,
.activity-item {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e7eef4;
    background: #f8fbfc;
    color: var(--text);
    text-decoration: none;
}

.insights-list a:hover,
.commitments-list a:hover,
.activity-item:hover {
    background: #eef6fb;
}

.activity-item {
    background: #fff;
    box-shadow: 0 8px 20px rgba(23, 32, 42, 0.04);
}

.activity-item strong,
.insights-list a strong,
.commitments-list a strong {
    font-size: 15px;
    color: var(--text);
}

.activity-item p,
.activity-item small,
.commitments-list span {
    color: var(--muted);
    font-size: 13px;
}

.commitments-list time {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.commitments-list a span {
    display: block;
}

.commitments-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.commitments-calendar {
    padding: 12px;
    border: 1px solid #e7eef4;
    border-radius: 14px;
    background: #f8fbfc;
}

.commitments-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.commitments-calendar-head h3 {
    margin: 2px 0 0;
    font-size: 15px;
}

.calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calendar-nav a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.calendar-nav strong {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e6f1f5;
    color: var(--primary);
    font-size: 12px;
}

.commitments-layout .commitments-list a {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
}

.commitments-layout .commitments-list a div {
    min-width: 0;
}

/* Dashboard restored layout */
.content.dashboard-home {
    padding: 6px 8px 14px;
}

.dashboard-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 0;
}

.dashboard-home .dashboard-main {
    display: grid;
    gap: 8px;
}

.dashboard-home .dashboard-hero {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f6f8ff 0%, #ffffff 100%);
    border: 1px solid rgba(31, 111, 139, 0.12);
    box-shadow: 0 8px 22px rgba(31, 59, 98, 0.06);
}

.dashboard-home .hero-heading {
    display: grid;
    gap: 1px;
}

.dashboard-home .hero-heading h1 {
    margin: 0;
    font-size: 15px;
    line-height: 1.15;
    color: #08131f;
    max-width: 760px;
}

.dashboard-home .hero-heading p {
    margin: 0;
    color: #5b6c88;
    font-size: 11px;
    max-width: 720px;
}

.dashboard-home .hero-ai-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: #f7f8ff;
    box-shadow: none;
}

.dashboard-home .hero-ai-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dashboard-home .hero-ai-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    background: linear-gradient(180deg, #eef4ff 0%, #dde5ff 100%);
    color: #4338ca;
    flex-shrink: 0;
}

.dashboard-home .hero-ai-label {
    color: #08131f;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dashboard-home .hero-ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dashboard-home .hero-ai-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.18);
    color: #3f51b5;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-home .hero-ai-submit {
    min-width: 34px;
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.dashboard-home .hero-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.dashboard-home .hero-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 3px 8px;
    align-items: center;
    padding: 8px 9px;
    border-radius: 9px;
    border: 1px solid #e7ebff;
    background: #fff;
    box-shadow: 0 5px 14px rgba(23, 32, 42, 0.035);
}

.dashboard-home .hero-card::before {
    display: none;
}

.dashboard-home .hero-card-top {
    display: contents;
}

.dashboard-home .hero-card-icon {
    grid-row: 1 / span 3;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #fff;
}

.dashboard-home .hero-card-label {
    font-size: 11px;
    line-height: 1.15;
    color: #5b6c88;
}

.dashboard-home .hero-card strong {
    margin: 0;
    font-size: 21px;
    line-height: 1;
    color: #08131f;
}

.dashboard-home .hero-card-meta {
    margin: 0;
    color: #5b6c88;
    font-size: 10px;
    line-height: 1.15;
}

.dashboard-home .hero-card-change {
    font-weight: 700;
    margin-right: 5px;
}

.dashboard-home .hero-card-change.positive {
    color: #0f7b44;
}

.dashboard-home .hero-card-change.negative {
    color: #b91c1c;
}

.dashboard-home .card {
    border-radius: 10px;
}

.dashboard-home .card.activity-panel,
.dashboard-home .commitments-panel {
    padding: 10px 12px;
}

.dashboard-home .activity-item,
.dashboard-home .commitments-list a {
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
}

.dashboard-home .activity-item strong,
.dashboard-home .commitments-list a strong {
    font-size: 15px;
}

.dashboard-home .activity-item p,
.dashboard-home .activity-item small,
.dashboard-home .commitments-list span {
    font-size: 13px;
}

.dashboard-home .recent-cases-panel {
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 8px 22px rgba(23, 32, 42, 0.045);
}

.dashboard-home .recent-cases-header {
    margin-bottom: 8px;
}

.dashboard-home .recent-cases-header h2 {
    font-size: 15px;
}

.dashboard-home .recent-cases-table th {
    padding: 8px 10px 7px;
    font-size: 11px;
}

.dashboard-home .recent-cases-table td {
    padding: 8px 10px;
    font-size: 12px;
}

.dashboard-home .recent-cases-table a,
.dashboard-home .recent-cases-table td strong {
    font-size: 12px;
}

.dashboard-home .cell-meta {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.25;
}

.dashboard-home .status-pill {
    min-height: 22px;
    padding: 0 9px;
    font-size: 11px;
}

.dashboard-home .recent-cases-footer {
    margin-top: 8px;
}

@media (max-width: 1180px) {
    .dashboard-home .hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    .dashboard-home .hero-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-home .hero-ai-box {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-home .hero-ai-submit {
        width: 100%;
    }
}

.recent-list .table-wrap {
    box-shadow: none;
}

.recent-list table {
    min-width: 0;
}

.recent-list th,
.recent-list td {
    padding: 12px 14px;
}

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

@media (max-width: 760px) {
    .hero-header,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-header h1 {
        font-size: 26px;
    }
}

.stat {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 11px 13px;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, var(--card-soft) 100%);
    color: var(--text);
    box-shadow: 0 5px 14px rgba(23, 32, 42, 0.04);
}

.stat:hover {
    border-color: var(--primary);
    background: #fff;
    color: var(--text);
}

.stat::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}

.stat span {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
    font-size: 13px;
}

.stat strong {
    font-size: 24px;
    line-height: 1;
}

.compact {
    width: auto;
    min-width: 96px;
    margin-top: 0;
    padding: 0 12px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    border-bottom: 1px solid var(--line);
}

.tabs a {
    padding: 12px 14px;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    font-weight: 700;
}

.tabs a.active {
    border-color: var(--primary);
    color: var(--primary);
}

.module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.module-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
}

.module-actions a.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.cadastro-selector {
    margin: 20px 0;
    padding: 18px;
}

.cadastro-selector label {
    margin-top: 0;
}

.inline-select {
    display: grid;
    grid-template-columns: minmax(260px, 420px) auto;
    gap: 10px;
    align-items: center;
}

.inline-select button {
    width: auto;
    min-width: 110px;
    margin-top: 0;
    padding: 0 18px;
}

.work-grid {
    display: grid;
    grid-template-columns: minmax(520px, 1.1fr) minmax(420px, 0.9fr);
    gap: 10px;
    align-items: start;
}

.single-panel {
    width: 100%;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.list-header h2 {
    margin: 0;
}

.section-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 32, 42, 0.05);
}

.section-card-title h1 {
    margin: 2px 0 4px;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.recent-cases-panel {
    border-radius: 24px;
    padding: 26px;
    background: #fff;
    border: 1px solid #e7edf5;
    box-shadow: 0 18px 50px rgba(23, 32, 42, 0.06);
}

.recent-cases-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.recent-cases-header h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.02em;
}

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

.recent-cases-table th {
    padding: 18px 14px 12px;
    text-align: left;
    color: #5b6c88;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid #e9eff6;
}

.recent-cases-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #f2f6fb;
    vertical-align: top;
}

.recent-cases-table tbody tr:last-child td {
    border-bottom: none;
}

.recent-cases-table a {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.cell-meta {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef6ff;
    color: #1f5f8e;
}

.status-pill.warning {
    background: #fff4e6;
    color: #b26100;
}

.recent-cases-footer {
    margin-top: 20px;
}

.view-all-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 220px 220px minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
    align-items: start;
}

.panel h2 {
    margin: 0 0 8px;
    font-size: 15px;
}

.form-panel button {
    width: auto;
    padding: 0 16px;
}

.form-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.form-actions-row button,
.form-actions-row .button {
    margin-top: 0;
}

.form-panel {
    background: var(--form-bg);
}

.process-form {
    width: 100%;
    padding: 4px 14px 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.process-form h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.process-form .form-grid {
    gap: 8px 14px;
}

.process-form label {
    margin-top: 0;
}

.form-grid {
    display: grid;
    gap: 0 10px;
}

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

.filters-panel {
    margin-bottom: 8px;
    padding: 10px;
    background: var(--form-bg);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 8px;
    align-items: end;
}

.filters-grid label {
    margin-top: 0;
}

.filters-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filters-actions button,
.filters-actions .button {
    margin-top: 0;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 6px;
    margin: 6px 0 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-weight: 400;
}

.check-item input {
    width: 18px;
    height: 18px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    font-size: 13px;
}

th,
td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.35;
}

th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge.attention {
    background: #fff3d6;
    color: #8a4b00;
}

.badge.inactive {
    margin-left: 4px;
    background: #eef1f3;
    color: #647382;
}

tr.row-attention td {
    background: #fffaf0;
}

tr.row-attention td:first-child {
    box-shadow: inset 3px 0 0 #d98a00;
}

tr.row-inactive td {
    background: #f7f8f9;
    color: #647382;
}

tr.row-inactive td:first-child {
    box-shadow: inset 3px 0 0 #9aa7b2;
}

.status-list {
    display: grid;
    gap: 6px;
}

.status-list a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(23, 32, 42, 0.03);
}

.status-list a:hover {
    border-color: var(--primary);
    background: #f7fbfc;
    color: var(--text);
}

.status-list span {
    font-size: 13px;
}

.status-list strong {
    font-size: 15px;
}

.row-note {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.process-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
}

.detail-grid dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.detail-grid dd {
    margin: 2px 0 0;
    font-size: 14px;
}

.participant-list,
.timeline,
.notification-list {
    display: grid;
    gap: 7px;
}

.participant-list div,
.timeline article,
.notification-list a {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
}

.participant-list span,
.timeline span,
.notification-list span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.participant-list strong {
    font-size: 14px;
}

.participant-list .badge {
    display: inline-flex;
    min-height: 18px;
    margin-top: 4px;
    padding: 0 7px;
    font-size: 11px;
}

.participant-action {
    display: inline-block;
    margin: 4px 0 0 8px;
}

.participant-action .danger-link {
    font-size: 11px;
}

.compact-heading {
    align-items: center;
}

.compact-heading h2 {
    margin: 0;
}

.participant-compact-list {
    display: grid;
    gap: 4px;
}

.participant-compact-list div {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 120px auto;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
}

.participant-compact-list div.inactive {
    opacity: 0.65;
}

.participant-compact-list span {
    font-weight: 500;
    font-size: 12px;
}

.participant-compact-list small {
    color: var(--muted);
    font-size: 11px;
}

.participant-compact-list em {
    justify-self: end;
    min-width: 44px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.distribution-filters {
    grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.distribution-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.distribution-summary span {
    color: var(--muted);
}

.distribution-panel {
    background: var(--form-bg);
}

.distribution-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.distribution-toolbar h2 {
    margin: 0 0 2px;
}

.distribution-toolbar button {
    margin-top: 0;
}

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

.distribution-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.distribution-table .selected-row {
    background: #edf8fb;
}

.process-page .content {
    padding: 8px 16px;
}

.process-page .page-title h1 {
    font-size: 18px;
}

.process-page .page-title {
    align-items: center;
}

.process-page textarea {
    min-height: 64px;
}

.process-page .panel p {
    margin-top: 5px;
    line-height: 1.28;
}

.process-page .panel {
    padding: 8px 10px;
}

.process-page .panel h2 {
    margin-bottom: 6px;
    font-size: 13px;
}

.process-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    padding: 8px 10px;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(23, 32, 42, 0.045);
}

.process-hero h1 {
    margin: 1px 0 4px;
    font-size: 19px;
}

.process-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    color: var(--muted);
    font-size: 12px;
}

.process-hero-meta strong {
    color: var(--text);
}

.process-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    min-width: 260px;
}

.process-view-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 6px;
    margin-bottom: 6px;
}

.process-side-stack {
    display: grid;
    gap: 6px;
}

.process-summary-panel {
    min-height: 100%;
}

.process-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
}

.process-facts div {
    min-height: 42px;
    padding: 6px 7px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: var(--form-bg);
}

.process-facts dt,
.mini-metrics dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.process-facts dd,
.mini-metrics dd {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.process-description {
    margin-top: 6px;
    padding: 7px 8px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
}

.process-description strong {
    font-size: 11px;
}

.process-description p {
    margin: 3px 0 0;
    color: var(--muted);
}

.process-modal {
    width: min(560px, calc(100vw - 28px));
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.process-modal::backdrop {
    background: rgba(8, 17, 42, 0.48);
}

.process-modal-form {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.process-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.process-modal-head h2 {
    margin: 2px 0 0;
    font-size: 16px;
}

.process-modal-close {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-size: 18px;
}

.process-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.process-modal-actions button {
    margin-top: 0;
}

.danger-button {
    background: #9f1d1d;
}

.danger-button:hover {
    background: #6f1212;
}

.participant-compact-list .wide-note {
    grid-column: 1 / -1;
}

.process-activity-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
}

.activity-list {
    display: grid;
    gap: 5px;
    max-height: 200px;
    overflow: auto;
}

.activity-list article {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 6px;
    align-items: start;
    padding: 6px 7px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
}

.activity-list article.late {
    border-color: #f0c6c6;
    background: #fff8f8;
}

.activity-list time {
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 900;
}

.activity-list strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 500;
}

.activity-list p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.28;
}

.activity-list span {
    padding: 2px 6px;
    border-radius: 999px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.activity-list .late span {
    background: #fff1f1;
    color: var(--danger);
}

.compact-form textarea {
    min-height: 64px;
}

.inline-form-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 6px;
    align-items: end;
}

.inline-form-row button {
    margin: 0;
}

.mini-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
    margin: 0;
}

.mini-metrics div {
    padding: 6px 7px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: var(--form-bg);
}

.mini-metrics dd {
    font-size: 15px;
    font-weight: 500;
}

.process-timeline article {
    background: #fff;
}

.process-timeline article header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}

.process-timeline article header span {
    margin: 0;
    white-space: nowrap;
}

.process-timeline p {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 12px;
}

.notification-alert {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #cfe6ee;
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    background: #f5fbfd;
}

.notification-alert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-alert-head h2 {
    margin: 0;
    font-size: 14px;
}

.notification-alert-head strong {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
}

.eyebrow {
    display: block;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.notification-alert-list {
    display: grid;
    gap: 6px;
    max-height: 132px;
    overflow: auto;
}

.notification-alert-list a {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 1px solid #d7e7ed;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
}

.notification-alert-list a:hover {
    border-color: var(--primary);
}

.notification-alert-list strong,
.notification-alert-list span,
.notification-alert-list p,
.notification-alert-list small,
.notification-more {
    overflow-wrap: anywhere;
}

.notification-alert-list strong {
    font-size: 12px;
}

.notification-alert-list span {
    display: block;
    margin-top: 0;
    color: var(--muted);
    font-size: 11px;
}

.notification-alert-list p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-alert-list small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.notification-more {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.agenda-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.agenda-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.agenda-head h2 {
    margin: 0;
    font-size: 16px;
}

.agenda-head strong {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e6f1f5;
    color: var(--primary);
    font-size: 12px;
}

.calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calendar-nav a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.calendar-nav a:hover {
    border-color: var(--primary);
    background: #f5fbfd;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-weekdays {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    position: relative;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e9ee;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 800;
}

.calendar-day.empty {
    border-color: transparent;
    background: transparent;
}

.calendar-day.today {
    border-color: var(--primary);
}

.calendar-day.has-event {
    background: #e6f1f5;
    color: var(--primary);
}

.calendar-day small {
    position: absolute;
    top: -5px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
}

.agenda-list {
    display: grid;
    gap: 7px;
    align-content: flex-start;
    max-height: 260px;
    overflow: auto;
}

.agenda-list a {
    display: grid;
    grid-template-columns: 86px minmax(180px, 280px) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--text);
}

.agenda-list a:hover {
    border-color: var(--primary);
}

.agenda-list time {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.agenda-list strong {
    font-size: 12px;
}

.agenda-list span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.agenda-list p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audiencia-panel {
    margin-bottom: 8px;
}

.audiencia-form {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #dbe7ec;
    border-radius: 7px;
    background: var(--form-bg);
}

.audiencia-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 10px;
}

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

.audiencia-list {
    display: grid;
    gap: 7px;
}

.audiencia-list article {
    display: grid;
    gap: 7px;
    padding: 8px 9px;
    border: 1px solid #dbe5eb;
    border-radius: 6px;
    background: #fff;
}

.audiencia-main {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.audiencia-main time {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.audiencia-main strong {
    font-size: 13px;
}

.audiencia-main span {
    justify-self: end;
    padding: 2px 7px;
    border-radius: 999px;
    background: #e9f4f8;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.audiencia-list dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
}

.audiencia-list dl div {
    padding: 5px 6px;
    border: 1px solid #edf2f5;
    border-radius: 6px;
    background: var(--form-bg);
}

.audiencia-list dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.audiencia-list dd {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.audiencia-list p {
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.35;
}

.audiencia-list footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

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

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.upload-form {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #dbe7ec;
    border-radius: 7px;
    background: var(--form-bg);
}

.files-table {
    margin-top: 8px;
}

.actions-cell {
    white-space: nowrap;
    vertical-align: middle;
}

.actions-cell > .action-chip,
.actions-cell > .inline-action-form {
    margin: 0 4px 4px 0;
}

.action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-content: flex-start;
}

.action-stack > .action-chip,
.action-stack > .inline-action-form {
    margin: 0;
}

.actions-menu {
    position: relative;
    display: inline-block;
}

.actions-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid #b9d9ee;
    border-radius: 8px;
    background: #fff;
    color: #2d77a8;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
}

.actions-menu:hover .actions-menu-trigger,
.actions-menu:focus-within .actions-menu-trigger {
    border-color: #8ec5e8;
    background: #f2f9ff;
}

.actions-menu-icon {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.actions-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.actions-menu-panel {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    z-index: 40;
    display: none;
    gap: 4px;
    width: 146px;
    padding: 5px;
    border: 1px solid #d8e2ea;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.actions-menu:hover .actions-menu-panel,
.actions-menu:focus-within .actions-menu-panel {
    display: grid;
}

.actions-menu-panel .action-chip,
.actions-menu-panel .inline-action-form {
    width: 100%;
}

.actions-menu-panel .action-chip {
    justify-content: flex-start;
    height: 25px;
    padding: 0 8px;
}

.process-table .action-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(58px, 1fr));
    align-content: start;
    gap: 4px;
}

.process-table .action-stack .action-chip,
.process-table .action-stack .inline-action-form {
    width: 100%;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-height: 24px;
    margin: 0 3px 0 0;
    padding: 0 8px;
    border: 1px solid #cfe0e7;
    border-radius: 6px;
    background: #f7fbfc;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
    text-decoration: none;
}

.action-chip:hover {
    border-color: var(--primary);
    background: #eef7fa;
    color: var(--primary-dark);
}

.action-chip.edit {
    background: #f4f7f9;
    color: #526170;
}

.action-chip.attention {
    border-color: #efcf8c;
    background: #fff3d6;
    color: #8a4b00;
}

.action-chip.attention:hover {
    background: #ffe8ad;
    color: #633600;
}

.action-chip.danger {
    border-color: #f1c6c6;
    background: #fff1f1;
    color: var(--danger);
}

.action-chip.danger:hover {
    background: #ffe3e3;
    color: var(--danger);
}

.inline-action-form {
    display: inline-flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    line-height: 1;
    background: transparent;
}

.actions-cell form {
    display: inline-flex;
    vertical-align: middle;
    margin: 0;
}

.danger-link {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--danger);
    font-size: 13px;
}

.danger-link:hover {
    background: transparent;
    color: #6f1212;
}

@media (max-width: 760px) {
    .login-shell,
    .stats-grid,
    .work-grid,
    .dashboard-grid,
    .commitments-layout,
    .agenda-panel,
    .notification-alert-list,
    .process-layout,
    .process-view-grid,
    .process-activity-grid,
    .process-facts,
    .mini-metrics,
    .audiencia-grid,
    .audiencia-list dl,
    .detail-grid,
    .filters-grid,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .login-shell {
        gap: 24px;
    }

    .topbar,
    .main-menu,
    .topbar-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar {
        padding: 16px;
    }

    .top-search,
    .top-search input,
    .top-search button {
        width: 100%;
    }

    .process-hero,
    .process-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .process-hero-actions {
        min-width: 0;
        justify-content: flex-start;
    }

    .activity-list article,
    .commitments-layout .commitments-list a,
    .audiencia-main,
    .inline-form-row {
        grid-template-columns: 1fr;
    }

    .audiencia-grid .wide {
        grid-column: auto;
    }

    .audiencia-main span {
        justify-self: start;
    }

    .audiencia-list footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .notification-alert-list a {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .participant-compact-list div,
    .distribution-toolbar,
    .distribution-summary {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .notification-alert-list p,
    .notification-alert-list small {
        white-space: normal;
    }

    .agenda-list a {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .agenda-list p {
        white-space: normal;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }

    .page-title,
    .section-heading,
    .section-card-title,
    .section-card-actions,
    .tabs,
    .list-header,
    .module-actions,
    .inline-select {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-select {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filters-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

}
