@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --eu-blue: #004494;
    --erasmus-blue: #0055A4;
    --deep-navy: #061A40;
    --light-eu-blue: #EAF2FF;
    --white: #FFFFFF;
    --soft-grey: #F5F7FA;
    --border-grey: #DDE6F2;
    --text-dark: #1A1F36;
    --text-muted: #5B667A;
    --eu-yellow: #FFCC00;
    --shadow-sm: 0 1px 2px rgba(6, 26, 64, .08);
    --shadow-md: 0 10px 28px rgba(6, 26, 64, .10);
    --shadow-lg: 0 24px 60px rgba(6, 26, 64, .14);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--soft-grey);
    color: var(--text-dark);
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

button,
input,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a,
input,
textarea {
    transition: border-color 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

:focus-visible {
    outline: 2px solid var(--erasmus-blue);
    outline-offset: 2px;
}

img {
    max-width: 100%;
}

.flash-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 60;
    width: min(380px, calc(100% - 36px));
    display: grid;
    gap: 10px;
}

.flash-message {
    margin: 0;
    padding: 13px 15px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
}

.site-shell,
.public-profile-shell {
    min-height: 100vh;
    background:
        linear-gradient(180deg, var(--light-eu-blue), var(--white) 42%, var(--soft-grey));
}

.eu-shell,
.premium-shell,
.auth-premium,
.onboarding-premium {
    background:
        radial-gradient(circle at 12% 4%, rgba(255, 204, 0, .16), transparent 24%),
        linear-gradient(180deg, var(--light-eu-blue), var(--white) 46%, var(--soft-grey));
}

.eu-shell {
    background: var(--soft-grey);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #DDE6F2;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(6, 26, 64, .04);
}

.topbar {
    position: relative;
    width: 100%;
    min-height: 76px;
}

.topbar-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 24px;
}

.eu-nav,
.glass-nav {
    color: var(--text-dark);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.brand-full,
.brand-logo-full {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-full img,
.brand-logo-full img {
    display: block;
    width: min(190px, 26vw);
    max-width: 190px;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.brand-full {
    transform-origin: left center;
}

.brand-full:hover {
    transform: scale(1.018);
    filter: drop-shadow(0 12px 20px rgba(0, 68, 148, .12));
}

.brand-lockup {
    height: 52px;
    gap: 0;
}

.brand-text-only {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-globe {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    border: 2px solid var(--eu-blue);
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(0, 68, 148, .08);
}

.brand-globe::before,
.brand-globe::after,
.brand-globe span {
    content: "";
    position: absolute;
    border-color: var(--eu-blue);
    pointer-events: none;
}

.brand-globe::before {
    width: 18px;
    height: 42px;
    border-width: 0 2px;
    border-style: solid;
    border-radius: 999px;
}

.brand-globe::after {
    width: 42px;
    height: 18px;
    border-width: 2px 0;
    border-style: solid;
    border-radius: 999px;
}

.brand-globe span:first-child {
    width: 2px;
    height: 40px;
    background: var(--eu-blue);
}

.brand-globe span:last-child {
    right: 5px;
    top: 7px;
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: var(--eu-yellow);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, .18);
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-size: 31px;
    line-height: 1;
    letter-spacing: -.035em;
    white-space: nowrap;
}

.brand-wordmark strong {
    color: var(--eu-blue);
    font-weight: 800;
}

.brand-wordmark em {
    color: var(--erasmus-blue);
    font-style: normal;
    font-weight: 700;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--border-grey);
}

.brand-mark img {
    width: 108px;
    max-width: none;
    height: 32px;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
}

.nav-links a,
.signin-link {
    border-radius: 999px;
    padding: 10px 13px;
}

.nav-links a {
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--light-eu-blue);
    color: var(--eu-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signin-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 800;
}

.signin-link:hover {
    background: var(--light-eu-blue);
    color: var(--text-dark);
}

.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu summary {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    gap: 4px;
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--border-grey);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--eu-blue);
}

.mobile-menu div {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(280px, calc(100vw - 32px));
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border-grey);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.mobile-menu a {
    padding: 10px;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-weight: 700;
}

.mobile-menu a:hover {
    background: var(--light-eu-blue);
    color: var(--eu-blue);
}

.mobile-cta {
    margin-top: 6px;
    background: #1E40AF;
    color: var(--white) !important;
    text-align: center;
}

.primary-button,
.secondary-button,
.nav-cta,
.auth-form button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.primary-button,
.auth-form button {
    background: #1E40AF;
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.primary-button:hover,
.auth-form button:hover {
    background: #2563EB;
    box-shadow: 0 16px 34px rgba(30, 64, 175, .24);
    transform: translateY(-1px);
}

.secondary-button {
    border-color: var(--border-grey);
    background: var(--white);
    color: var(--eu-blue);
}

.secondary-button:hover {
    border-color: var(--erasmus-blue);
    box-shadow: var(--shadow-md);
}

.gold-button,
.gold-cta {
    background: var(--eu-yellow) !important;
    color: var(--deep-navy) !important;
    border-color: var(--eu-yellow) !important;
}

.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    background:
        radial-gradient(circle at 78% 16%, rgba(0, 68, 148, .06), transparent 34%),
        #F8FAFC;
}

.hero-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 54px;
    align-items: center;
}

.eyebrow,
.section-kicker {
    display: block;
    margin: 0 0 14px;
    color: var(--eu-blue);
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero h1,
.dashboard-header h1,
.onboarding-heading h1,
.profile-hero h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -.02em;
}

.lede {
    max-width: 700px;
    margin: 24px 0 0;
    color: var(--text-muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.65;
}

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

.hero-search {
    margin-top: 26px;
    max-width: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.hero-search input {
    min-width: 0;
    height: 44px;
    border: 0;
    padding: 0 12px;
    color: var(--text-dark);
    outline: 0;
}

.hero-search button {
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0 16px;
    background: var(--eu-blue);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.hero-visual {
    padding: 30px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.hero-logo {
    width: min(260px, 72vw);
    display: block;
    margin-bottom: 26px;
}

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

.hero-module-list div,
.feature-card,
.module-card,
.dashboard-card,
.analytics-card,
.organization-card,
.empty-state,
.auth-panel,
.onboarding-panel,
.search-panel,
.document-sheet {
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.hero-module-list div {
    padding: 16px;
}

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

.hero-module-list strong {
    color: var(--eu-blue);
}

.hero-module-list span {
    margin-top: 4px;
    color: var(--text-muted);
}

.trust-strip,
.institutional-band,
.os-preview-band,
.module-grid,
.document-preview,
.faq-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
    border-top: 1px solid var(--border-grey);
}

.trust-strip {
    padding: 30px 0 46px;
}

.trust-strip p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-weight: 700;
}

.trust-chips,
.badge-cloud,
.sector-row,
.shortcut-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trust-chips span,
.badge-cloud span,
.sector-row span,
.flag-chip,
.status-badge {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 800;
}

.trust-chips span,
.badge-cloud span,
.flag-chip {
    border: 1px solid var(--border-grey);
    background: var(--white);
    color: var(--eu-blue);
}

.sector-row span {
    background: var(--light-eu-blue);
    color: var(--eu-blue);
}

.status-badge {
    border: 1px solid var(--eu-yellow);
    background: rgba(255, 204, 0, .18);
    color: var(--deep-navy);
}

.metric-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border: 1px solid var(--border-grey);
    border-radius: 999px;
    padding: 0 11px;
    background: var(--light-eu-blue);
    color: var(--eu-blue);
    font-size: 12px;
    font-weight: 800;
}

.glow-badge {
    box-shadow: 0 0 0 4px rgba(255, 204, 0, .14);
}

.institutional-band,
.os-preview-band,
.document-preview {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: 36px;
    align-items: start;
}

h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -.015em;
}

h3 {
    margin: 0 0 8px;
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.3;
}

p {
    overflow-wrap: anywhere;
}

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

.feature-card,
.module-card,
.dashboard-card,
.analytics-card,
.organization-card,
.empty-state {
    padding: 22px;
}

.feature-card {
    border-top: 4px solid var(--eu-yellow);
}

.feature-card p,
.workflow-list p,
.module-card p,
.document-preview p,
.faq-section p,
.muted-copy,
.auth-panel p,
.dashboard-card p,
.analytics-card p,
.organization-card p,
.onboarding-heading p,
.profile-hero p {
    margin: 0;
    color: var(--text-muted);
}

.workflow-list {
    display: grid;
    gap: 14px;
}

.workflow-list p {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-grey);
}

.workflow-list strong {
    color: var(--eu-yellow);
    background: var(--deep-navy);
    border-radius: 6px;
    padding: 2px 7px;
    margin-right: 6px;
}

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

.document-sheet {
    overflow: hidden;
}

.doc-header,
.doc-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--eu-blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.doc-header {
    border-bottom: 3px solid var(--eu-yellow);
}

.doc-footer {
    background: var(--soft-grey);
    color: var(--text-muted);
    border-top: 1px solid var(--border-grey);
}

.doc-body {
    min-height: 160px;
    padding: 24px 18px;
}

.doc-body strong {
    display: block;
    color: var(--text-dark);
    font-size: 18px;
}

.doc-body p {
    margin-top: 8px;
}

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

.faq-grid article {
    padding: 20px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.auth-panel {
    width: min(520px, 100%);
    padding: 34px;
    box-shadow: var(--shadow-lg);
}

.auth-panel-wide {
    width: min(760px, 100%);
}

.auth-panel .section-kicker {
    margin-top: 24px;
}

.auth-panel h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.08;
    letter-spacing: -.015em;
}

.auth-form,
.profile-form {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.auth-form label,
.profile-form label {
    display: grid;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 800;
}

.auth-form input,
.profile-form input,
.profile-form textarea,
.profile-form select,
.search-panel input {
    width: 100%;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-dark);
}

.auth-form input,
.profile-form input,
.profile-form select,
.search-panel input {
    height: 44px;
    padding: 0 13px;
}

.profile-form textarea {
    min-height: 112px;
    padding: 13px;
    resize: vertical;
}

.auth-form input:focus,
.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus,
.search-panel input:focus {
    border-color: var(--erasmus-blue);
    box-shadow: 0 0 0 4px rgba(0, 85, 164, .12);
    outline: 0;
}

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

.field-help {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.checkbox-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 13px;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--eu-blue);
}

.auth-switch {
    margin-top: 18px !important;
    font-size: 14px;
}

.auth-switch a,
.card-link,
.profile-list a,
.analytics-card a {
    color: var(--eu-blue);
    font-weight: 800;
}

.form-submit {
    justify-self: start;
}

.workspace-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    background: var(--soft-grey);
}

.workspace-shell.single-panel {
    grid-template-columns: 1fr;
    padding: 36px 16px;
    background: var(--light-eu-blue);
}

.sidebar {
    min-height: 100vh;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--white);
    border-right: 1px solid var(--border-grey);
}

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

.sidebar-nav a,
.logout-button,
.text-button {
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-weight: 800;
    cursor: pointer;
}

.sidebar-nav a {
    padding: 11px 12px;
}

.sidebar-nav a.active,
.sidebar-nav a:hover,
.logout-button:hover {
    background: var(--light-eu-blue);
    color: var(--eu-blue);
}

.logout-button {
    width: 100%;
    margin-top: auto;
    padding: 12px;
    text-align: left;
}

.text-button {
    padding: 10px 12px;
}

.dashboard-main {
    width: min(1180px, 100%);
    padding: 32px;
}

.dashboard-header,
.panel-title-row,
.card-title-row,
.org-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-header {
    margin-bottom: 22px;
}

.dashboard-header h1 {
    font-size: clamp(32px, 5vw, 52px);
}

.dashboard-header p {
    margin: 6px 0 0;
}

.analytics-grid,
.dashboard-grid,
.directory-grid,
.profile-grid {
    display: grid;
    gap: 16px;
}

.analytics-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-bottom: 16px;
}

.analytics-card strong {
    display: block;
    margin: 6px 0 8px;
    color: var(--text-dark);
    font-size: 26px;
    line-height: 1.2;
}

.analytics-card span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

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

.project-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.project-card h2,
.project-card h3 {
    margin-top: 14px;
}

.project-sidebar .sidebar-nav {
    gap: 4px;
}

.project-hero-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.project-hero-header.compact {
    padding: 20px;
}

.project-hero-header h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 52px);
}

.project-hero-header p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--text-muted);
}

.compact-meta {
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.compact-meta div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-grey);
}

.compact-meta dt {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.compact-meta dd {
    margin: 0;
    color: var(--text-dark);
    overflow-wrap: anywhere;
}

.shortcut-list.vertical {
    display: grid;
}

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

.upload-placeholder-grid div {
    min-height: 120px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 16px;
    border: 1px dashed var(--border-grey);
    border-radius: var(--radius-md);
    background: var(--soft-grey);
}

.upload-placeholder-grid strong {
    color: var(--eu-blue);
}

.upload-placeholder-grid span {
    color: var(--text-muted);
    font-size: 13px;
}

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

.responsive-table table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
}

.responsive-table th,
.responsive-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-grey);
    text-align: left;
    vertical-align: top;
}

.responsive-table th {
    color: var(--eu-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.minutes-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
    gap: 18px;
    align-items: start;
}

.document-live-preview {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
}

.document-preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.minutes-document {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.minutes-document.full {
    max-width: 920px;
    margin: 0 auto;
}

.minutes-document .doc-body {
    position: relative;
    min-height: 520px;
    display: block;
    padding: 34px;
    z-index: 1;
}

.minutes-document .doc-body h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 42px);
}

.minutes-document .doc-body h3 {
    margin-top: 24px;
}

.minutes-watermark {
    position: absolute;
    right: 28px;
    bottom: 70px;
    z-index: 0;
    color: var(--eu-blue);
    font-size: clamp(52px, 9vw, 110px);
    font-weight: 800;
    letter-spacing: -.05em;
    opacity: .045;
    pointer-events: none;
}

.action-point-editor {
    display: grid;
    gap: 14px;
    margin: 4px 0 0;
    padding: 16px;
    border: 1px dashed var(--border-grey);
    border-radius: var(--radius-md);
    background: var(--soft-grey);
}

.action-point-editor legend {
    padding: 0 6px;
    color: var(--eu-blue);
    font-size: 13px;
    font-weight: 800;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.template-card {
    overflow: hidden;
    padding: 0;
}

.template-card .doc-body {
    min-height: 150px;
}

.studio-shell,
.studio-editor-grid {
    display: grid;
    gap: 18px;
    align-items: start;
}

.studio-shell {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}

.studio-editor-grid {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(340px, .72fr);
}

.studio-template-rail {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 14px;
}

.studio-template-rail h2 {
    margin: 0;
}

.studio-template-list {
    display: grid;
    gap: 8px;
}

.studio-template-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-dark);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.studio-template-list a:hover,
.studio-template-list a:focus-visible {
    border-color: var(--eu-blue);
    box-shadow: 0 12px 28px rgba(0, 68, 148, .08);
    transform: translateY(-1px);
}

.studio-template-list span {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.studio-main-column,
.studio-editor-card {
    min-width: 0;
}

.studio-document-card h2 {
    margin: 8px 0 0;
}

.section-builder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 0;
    padding: 16px;
    border: 1px dashed var(--border-grey);
    border-radius: var(--radius-md);
    background: var(--soft-grey);
}

.section-builder legend {
    padding: 0 6px;
    color: var(--eu-blue);
    font-size: 13px;
    font-weight: 800;
}

.section-builder label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-dark);
    font-weight: 800;
}

.section-builder input {
    width: 16px;
    height: 16px;
    accent-color: var(--eu-blue);
}

.studio-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.studio-preview-panel {
    min-width: 0;
}

.studio-a4-preview {
    aspect-ratio: 210 / 297;
    min-height: 620px;
}

.studio-a4-preview .doc-header {
    border-bottom: 3px solid var(--eu-blue);
    box-shadow: inset 0 -1px 0 var(--eu-yellow);
}

.studio-a4-preview .doc-footer {
    border-top: 2px solid var(--eu-yellow);
}

.deadline-summary-grid .analytics-card strong {
    color: var(--eu-blue);
}

.reminder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
}

.reminder-timeline {
    position: relative;
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.reminder-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 9px;
    width: 2px;
    background: var(--border-grey);
}

.reminder-item {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-md);
    background: var(--white);
}

.reminder-item.is-critical {
    border-color: var(--eu-yellow);
    box-shadow: 0 14px 32px rgba(255, 204, 0, .12);
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border: 4px solid var(--white);
    border-radius: 999px;
    background: var(--eu-blue);
    box-shadow: 0 0 0 1px var(--border-grey);
}

.reminder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.reminder-actions .secondary-button {
    padding: 8px 12px;
    font-size: 13px;
}

.deadline-side-column {
    display: grid;
    gap: 16px;
}

.compact-reminder-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.compact-reminder-list a {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-sm);
    background: var(--soft-grey);
    color: var(--text-dark);
}

.compact-reminder-list a:hover,
.compact-reminder-list a:focus-visible {
    border-color: var(--eu-blue);
    background: var(--light-eu-blue);
}

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

.priority-low {
    background: var(--soft-grey);
    color: var(--text-muted);
}

.priority-normal {
    background: var(--light-eu-blue);
    color: var(--eu-blue);
}

.priority-high,
.priority-critical {
    background: var(--eu-yellow);
    color: var(--deep-navy);
}

.calendar-placeholder {
    overflow: hidden;
}

.calendar-shell {
    display: grid;
    gap: 8px;
    min-height: 150px;
    margin-top: 12px;
    padding: 18px;
    border: 1px dashed var(--border-grey);
    border-radius: var(--radius-md);
    background:
        linear-gradient(var(--border-grey) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-grey) 1px, transparent 1px),
        var(--soft-grey);
    background-size: 32px 32px;
    color: var(--text-muted);
    place-content: center;
    text-align: center;
}

.calendar-shell strong {
    color: var(--eu-blue);
}

.shortcut-list {
    margin-top: 12px;
}

.shortcut-list a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--light-eu-blue);
    color: var(--eu-blue);
    font-weight: 800;
}

.progress-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border-grey);
}

.progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--eu-blue), var(--eu-yellow));
}

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

.profile-list div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-grey);
}

.profile-list dt {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.ai-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
    width: min(360px, calc(100% - 48px));
    padding: 18px;
    border: 1px solid var(--border-grey);
    border-top: 4px solid var(--eu-yellow);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.ai-panel strong {
    color: var(--eu-blue);
}

.onboarding-panel {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.onboarding-heading {
    margin: 34px 0 20px;
}

.stepper {
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
}

.stepper li {
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--light-eu-blue);
    color: var(--eu-blue);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.search-panel {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr auto;
    gap: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

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

.organization-card h2 {
    margin: 16px 0 8px;
}

.organization-card .badge-cloud,
.organization-card .sector-row {
    margin-top: 14px;
}

.card-link {
    display: inline-flex;
    margin-top: 18px;
}

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

.idea-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border-grey);
}

.idea-row .pulse-dot {
    display: none;
}

.idea-row strong {
    display: block;
}

.idea-row p {
    margin: 4px 0 0;
    color: var(--text-muted);
}

.idea-row em {
    color: var(--eu-blue);
    font-style: normal;
    font-weight: 900;
}

.compact-form {
    margin-top: 0;
}

.profile-hero,
.profile-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.profile-hero {
    padding: 54px 0 36px;
}

.profile-hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(34px, 6vw, 58px);
}

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

@media (max-width: 1080px) {
    .hero-inner,
    .institutional-band,
    .os-preview-band,
    .document-preview {
        grid-template-columns: 1fr;
    }

    .analytics-grid,
    .directory-grid,
    .studio-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .studio-preview-panel {
        grid-column: 1 / -1;
        position: static;
    }
}

@media (max-width: 820px) {
    .topbar,
    .topbar-inner {
        min-height: 68px;
    }

    .brand-full img {
        width: min(145px, 44vw);
        max-width: 145px;
        height: auto;
    }

    .brand-lockup {
        height: 44px;
        gap: 10px;
    }

    .brand-globe {
        width: 38px;
        height: 38px;
    }

    .brand-globe::before {
        width: 15px;
        height: 34px;
    }

    .brand-globe::after {
        width: 34px;
        height: 15px;
    }

    .brand-globe span:first-child {
        height: 32px;
    }

    .brand-wordmark {
        font-size: 23px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-inner {
        padding: 48px 0;
        gap: 28px;
    }

    .feature-grid,
    .module-grid,
    .faq-grid,
    .analytics-grid,
    .dashboard-grid,
    .directory-grid,
    .profile-grid,
    .form-grid,
    .search-panel,
    .studio-shell,
    .studio-editor-grid,
    .reminder-layout,
    .workspace-shell {
        grid-template-columns: 1fr;
    }

    .studio-template-rail {
        position: static;
    }

    .workspace-shell.single-panel {
        padding: 16px;
    }

    .sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border-grey);
    }

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

    .dashboard-main {
        padding: 22px 16px 110px;
    }

    .dashboard-header,
    .panel-title-row,
    .card-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .ai-panel {
        position: static;
        width: auto;
        margin-top: 18px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 14px;
    }

    .hero-inner,
    .trust-strip,
    .institutional-band,
    .os-preview-band,
    .module-grid,
    .document-preview,
    .faq-section,
    .profile-hero,
    .profile-grid {
        width: calc(100% - 32px);
    }

    .nav-cta {
        display: none;
    }

    .brand-full img {
        width: min(145px, 48vw);
        height: auto;
    }

    .brand-wordmark {
        font-size: 21px;
    }

    .hero-actions,
    .hero-search {
        grid-template-columns: 1fr;
    }

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

    .primary-button,
    .secondary-button,
    .auth-form button,
    .hero-search button {
        width: 100%;
    }

    .auth-panel,
    .onboarding-panel,
    .hero-visual {
        padding: 22px;
    }

    .brand-logo-full img {
        width: min(210px, 72vw);
    }

    .profile-list div,
    .idea-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .project-hero-header,
    .upload-placeholder-grid,
    .minutes-editor-grid,
    .section-builder {
        grid-template-columns: 1fr;
    }

    .project-hero-header {
        flex-direction: column;
    }

    .document-live-preview {
        position: static;
    }

    .studio-a4-preview {
        min-height: 560px;
        aspect-ratio: auto;
    }

    .reminder-item {
        grid-template-columns: 1fr;
    }

    .reminder-timeline::before,
    .timeline-dot {
        display: none;
    }

    .document-preview-toolbar {
        justify-content: stretch;
    }

    .document-preview-toolbar .secondary-button {
        flex: 1 1 150px;
    }

    .compact-meta div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

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

    .doc-header,
    .doc-footer,
    .studio-action-bar {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-property: opacity !important;
        transition-duration: 120ms !important;
        animation: none !important;
    }
}

.legal-page {
    min-height: 100vh;
    padding: 32px clamp(18px, 5vw, 64px) 72px;
    background: linear-gradient(180deg, var(--white), var(--soft-grey));
}

.legal-brand {
    display: inline-flex;
    margin-bottom: 42px;
}

.legal-brand img {
    width: 190px;
}

.legal-page section {
    width: min(1060px, 100%);
    margin: 0 auto;
}

.legal-page h1 {
    max-width: 760px;
    margin: 8px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
}

.legal-page > section > p {
    max-width: 780px;
    margin: 0 0 32px;
    color: var(--text-muted);
    font-size: 18px;
}

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

.legal-grid article {
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-sm);
    padding: 22px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.legal-grid h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.legal-grid p {
    margin: 0;
    color: var(--text-muted);
}

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

.erasmus-shell {
    min-height: 100vh;
    padding: 20px clamp(14px, 3vw, 42px) 56px;
    background: linear-gradient(180deg, #eaf2ff 0, #ffffff 220px, #f5f7fa 100%);
}

.erasmus-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1240px;
    margin: 0 auto 28px;
    padding: 12px 0;
    background: rgba(234, 242, 255, .86);
    backdrop-filter: blur(14px);
}

.erasmus-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.erasmus-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--eu-blue);
    color: var(--eu-yellow);
    font-weight: 800;
    letter-spacing: 0;
}

.erasmus-brand strong,
.erasmus-brand small {
    display: block;
    line-height: 1.1;
}

.erasmus-brand small {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.erasmus-topnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.erasmus-topnav a {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.erasmus-topnav a:hover {
    border-color: var(--border-grey);
    background: var(--white);
    color: var(--eu-blue);
}

.erasmus-hero,
.project-dashboard-head,
.section-head,
.erasmus-project-grid,
.summary-grid,
.dashboard-grid,
.data-panel {
    width: min(1240px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.erasmus-hero,
.project-dashboard-head,
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.erasmus-hero h1,
.project-dashboard-head h1,
.section-head h1 {
    margin: 6px 0 8px;
    color: var(--deep-navy);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
}

.erasmus-hero p,
.project-dashboard-head p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-size: 17px;
}

.erasmus-kicker {
    color: var(--eu-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.erasmus-project-card,
.data-panel,
.summary-grid article,
.project-budget-card {
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.erasmus-project-card {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.erasmus-project-card:hover {
    border-color: rgba(0, 68, 148, .36);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.project-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-acronym {
    color: var(--eu-blue);
    font-size: 22px;
    font-weight: 900;
}

.status-pill {
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 204, 0, .24);
    color: #5e4a00;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.erasmus-project-card h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
}

.project-facts,
.detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.project-facts div,
.detail-list div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
}

.project-facts dt,
.detail-list dt {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.project-facts dd,
.detail-list dd {
    margin: 0;
    font-weight: 750;
}

.project-budget-card {
    min-width: min(320px, 100%);
    padding: 20px;
}

.project-budget-card span,
.project-budget-card small,
.summary-grid span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.project-budget-card strong {
    display: block;
    margin: 6px 0;
    color: var(--eu-blue);
    font-size: 28px;
    line-height: 1.1;
}

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

.summary-grid article {
    min-height: 94px;
    padding: 16px;
}

.summary-grid strong {
    display: block;
    margin-top: 7px;
    color: var(--deep-navy);
    font-size: 22px;
    line-height: 1.15;
}

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

.data-panel {
    margin-bottom: 16px;
    padding: 18px;
}

.data-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.data-panel h2 {
    margin: 0;
    color: var(--deep-navy);
    font-size: 18px;
}

.table-wrap {
    overflow-x: auto;
}

.erasmus-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.erasmus-table th,
.erasmus-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border-grey);
    text-align: left;
    vertical-align: top;
}

.erasmus-table th {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.erasmus-table td {
    font-size: 14px;
}

.metric-list,
.compact-list {
    display: grid;
    gap: 10px;
}

.metric-list div,
.compact-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-grey);
}

.metric-list span,
.compact-list span,
.muted {
    color: var(--text-muted);
}

.metric-list strong,
.compact-list strong {
    color: var(--deep-navy);
}

@media (max-width: 960px) {
    .erasmus-project-grid,
    .summary-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .erasmus-topbar,
    .erasmus-hero,
    .project-dashboard-head,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .erasmus-topnav {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .project-facts div,
    .detail-list div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

.e-app-shell {
    --e-blue: #0A4DA3;
    --e-yellow: #FFCC00;
    --e-ink: #111827;
    --e-muted: #667085;
    --e-line: #E5E7EB;
    --e-soft: #F8FAFC;
    --e-panel: #FFFFFF;
    --e-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--e-soft);
    color: var(--e-ink);
}

.e-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    border-right: 1px solid var(--e-line);
    background: rgba(255, 255, 255, .92);
}

.e-brand,
.e-sidebar-nav a,
.e-topbar,
.e-tabs,
.e-meta-row,
.e-card-top,
.e-page-head {
    display: flex;
    align-items: center;
}

.e-brand {
    gap: 12px;
    margin-bottom: 26px;
}

.e-brand-mark,
.e-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    font-weight: 900;
}

.e-brand-mark {
    width: 42px;
    height: 42px;
    background: var(--e-blue);
    color: var(--e-yellow);
    font-size: 20px;
}

.e-brand strong,
.e-brand small {
    display: block;
    line-height: 1.1;
}

.e-brand small {
    color: var(--e-muted);
    font-size: 12px;
    font-weight: 800;
}

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

.e-sidebar-nav a {
    gap: 10px;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--e-muted);
    font-size: 14px;
    font-weight: 800;
}

.e-sidebar-nav a:hover,
.e-tabs a:hover {
    background: #EEF4FF;
    color: var(--e-blue);
}

.e-icon {
    width: 26px;
    height: 26px;
    background: #EEF4FF;
    color: var(--e-blue);
    font-size: 12px;
}

.e-main {
    min-width: 0;
    padding: 20px clamp(16px, 3vw, 36px) 56px;
}

.e-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0 18px;
    background: rgba(248, 250, 252, .9);
    backdrop-filter: blur(16px);
}

.e-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--e-muted);
    font-size: 13px;
    font-weight: 800;
}

.e-breadcrumb a {
    color: var(--e-blue);
}

.e-topbar-subtitle {
    margin: 5px 0 0;
    color: var(--e-muted);
    font-size: 13px;
}

.e-topbar-actions {
    display: flex;
    gap: 8px;
}

.e-mode-pill,
.e-count-pill,
.e-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.e-mode-pill {
    border: 1px solid var(--e-line);
    background: var(--e-panel);
    color: var(--e-muted);
}

.e-mode-pill.dark {
    background: #111827;
    color: #F9FAFB;
}

.e-tabs {
    gap: 7px;
    overflow-x: auto;
    margin: 0 0 18px;
    padding: 7px;
    border: 1px solid var(--e-line);
    border-radius: 10px;
    background: var(--e-panel);
}

.e-tabs a {
    white-space: nowrap;
    padding: 8px 11px;
    border-radius: 8px;
    color: var(--e-muted);
    font-size: 13px;
    font-weight: 900;
}

.e-hero,
.e-project-hero,
.e-page-head {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
}

.e-hero,
.e-project-hero {
    align-items: flex-end;
    padding: 26px;
    border: 1px solid var(--e-line);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(10, 77, 163, .08), rgba(255, 204, 0, .16)),
        var(--e-panel);
    box-shadow: var(--e-shadow);
}

.e-kicker {
    color: var(--e-blue);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.e-hero h1,
.e-project-hero h1,
.e-page-head h1 {
    margin: 6px 0 8px;
    color: var(--e-ink);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
}

.e-hero p,
.e-project-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--e-muted);
    font-size: 17px;
}

.e-hero-panel {
    min-width: min(330px, 100%);
    padding: 18px;
    border: 1px solid rgba(10, 77, 163, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .84);
}

.e-hero-panel span,
.e-hero-panel small,
.e-summary-card span,
.e-summary-card small {
    display: block;
    color: var(--e-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.e-hero-panel strong {
    display: block;
    margin: 5px 0;
    color: var(--e-blue);
    font-size: 30px;
    line-height: 1.1;
}

.e-meta-row {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.e-meta-row > span:not(.e-badge) {
    padding: 7px 10px;
    border: 1px solid var(--e-line);
    border-radius: 999px;
    background: var(--e-panel);
    color: var(--e-muted);
    font-size: 12px;
    font-weight: 900;
}

.e-badge,
.e-count-pill {
    background: rgba(255, 204, 0, .24);
    color: #6B5200;
}

.status-open,
.status-pending,
.status-draft {
    background: #FFF7CC;
    color: #6B5200;
}

.status-active,
.status-approved,
.status-completed,
.status-complete {
    background: #DCFCE7;
    color: #166534;
}

.status-critical,
.status-overdue {
    background: #FEE2E2;
    color: #991B1B;
}

.e-summary-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(138px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.e-summary-card,
.e-panel,
.e-project-card {
    border: 1px solid var(--e-line);
    border-radius: 12px;
    background: var(--e-panel);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.e-summary-card {
    min-height: 118px;
    padding: 16px;
}

.e-summary-card strong {
    display: block;
    margin: 8px 0 5px;
    color: var(--e-ink);
    font-size: 23px;
    line-height: 1.12;
}

.e-project-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.e-project-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.e-project-card:hover {
    border-color: rgba(10, 77, 163, .34);
    box-shadow: var(--e-shadow);
    transform: translateY(-1px);
}

.e-card-top {
    justify-content: space-between;
    gap: 12px;
}

.e-project-code {
    color: var(--e-blue);
    font-size: 22px;
    font-weight: 950;
}

.e-project-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

.e-project-card p {
    margin: 0;
    color: var(--e-muted);
}

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

.e-mini-grid div {
    padding: 10px;
    border-radius: 8px;
    background: var(--e-soft);
}

.e-mini-grid span,
.e-progress-stack span {
    display: block;
    color: var(--e-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.e-mini-grid strong {
    display: block;
    margin-top: 3px;
    font-size: 13px;
}

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

.e-progress-stack div,
.e-kpi-row {
    display: grid;
    gap: 6px;
}

.e-progress-stack strong {
    justify-self: end;
    margin-top: -22px;
    font-size: 12px;
}

.e-progress-stack i,
.e-kpi-row i,
.e-bars i {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #E5E7EB;
}

.e-progress-stack i::before,
.e-kpi-row i::before,
.e-bars i::before {
    content: "";
    display: block;
    width: var(--value, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--e-blue), var(--e-yellow));
}

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

.e-panel {
    padding: 18px;
    margin-bottom: 16px;
}

.e-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.e-panel h2 {
    margin: 0;
    color: var(--e-ink);
    font-size: 18px;
}

.e-panel header span,
.e-panel header a {
    color: var(--e-muted);
    font-size: 12px;
    font-weight: 900;
}

.e-donut {
    display: grid;
    place-items: center;
    width: 156px;
    height: 156px;
    margin: 4px auto 18px;
    border-radius: 50%;
    background: conic-gradient(var(--e-blue) calc(var(--value) * 1%), #E5E7EB 0);
}

.e-donut::before {
    content: "";
    position: absolute;
}

.e-donut strong {
    display: grid;
    place-items: center;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: var(--e-panel);
    color: var(--e-blue);
    font-size: 22px;
}

.e-detail-list {
    display: grid;
    gap: 9px;
    margin: 0;
}

.e-detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.e-detail-list dt,
.e-detail-list dd {
    margin: 0;
}

.e-detail-list dt,
.e-muted {
    color: var(--e-muted);
}

.e-kpi-list,
.e-bars,
.e-compact-list,
.e-feed {
    display: grid;
    gap: 11px;
}

.e-kpi-row {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--e-line);
}

.e-kpi-row strong,
.e-kpi-row span,
.e-compact-list strong,
.e-compact-list span {
    display: block;
}

.e-kpi-row span,
.e-compact-list span,
.e-feed small {
    color: var(--e-muted);
    font-size: 13px;
}

.e-bars div {
    display: grid;
    grid-template-columns: 120px minmax(120px, 1fr) 70px;
    align-items: center;
    gap: 10px;
}

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

.e-timeline {
    display: grid;
    gap: 0;
}

.e-timeline div {
    position: relative;
    display: grid;
    grid-template-columns: 112px 1fr auto;
    gap: 12px;
    padding: 10px 0 10px 18px;
    border-left: 2px solid #D7E3F8;
}

.e-timeline div::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--e-blue);
}

.e-timeline time,
.e-timeline span {
    color: var(--e-muted);
    font-size: 12px;
    font-weight: 800;
}

.e-compact-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--e-line);
}

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

.e-link-item {
    display: grid;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--e-line);
}

.e-link-item strong,
.e-link-item span {
    display: block;
}

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

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

.e-inline-form input,
.e-inline-form select {
    min-height: 38px;
    border: 1px solid var(--e-line);
    border-radius: 8px;
    background: var(--e-panel);
    color: var(--e-ink);
    font: inherit;
    font-size: 13px;
}

.e-inline-form input {
    width: min(340px, 100%);
    padding: 8px 10px;
}

.e-inline-form select {
    padding: 8px 9px;
}

.e-inline-form button,
.e-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--e-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.e-button-link:hover {
    color: #fff;
    filter: brightness(.95);
}

.e-feed div {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--e-line);
}

.e-feed p {
    margin: 0;
}

.e-table-wrap {
    overflow-x: auto;
}

.e-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

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

.e-table th {
    color: var(--e-muted);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.e-page-head {
    justify-content: space-between;
    margin-bottom: 18px;
}

.e-empty {
    padding: 24px;
    border: 1px dashed var(--e-line);
    border-radius: 12px;
    color: var(--e-muted);
}

.e-disabled-button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--e-line);
    border-radius: 8px;
    background: var(--e-soft);
    color: var(--e-muted);
    font-size: 12px;
    font-weight: 900;
}

.e-external-link {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-left: 8px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #EEF4FF;
    color: var(--e-blue);
    font-size: 12px;
    font-weight: 900;
}

@media (prefers-color-scheme: dark) {
    .e-app-shell {
        --e-ink: #F9FAFB;
        --e-muted: #AAB3C5;
        --e-line: #263244;
        --e-soft: #0F172A;
        --e-panel: #111827;
        --e-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    }

    .e-sidebar,
    .e-topbar {
        background: rgba(17, 24, 39, .92);
    }

    .e-hero,
    .e-project-hero,
    .e-mini-grid div,
    .e-meta-row > span:not(.e-badge) {
        background-color: var(--e-panel);
    }
}

@media (max-width: 1180px) {
    .e-summary-grid,
    .e-project-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .e-app-shell {
        grid-template-columns: 1fr;
    }

    .e-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--e-line);
    }

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

    .e-topbar,
    .e-hero,
    .e-project-hero,
    .e-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .e-dashboard-grid,
    .e-summary-grid,
    .e-project-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .e-main {
        padding: 14px 12px 42px;
    }

    .e-sidebar-nav,
    .e-mini-grid,
    .e-bars div,
    .e-timeline div {
        grid-template-columns: 1fr;
    }

    .e-topbar-actions {
        flex-wrap: wrap;
    }
}
