/* Shared platform chrome (top bar + sidebar). Served from the hub at
   /static/platform.css and linked absolutely by every mounted app so the
   chrome is identical everywhere. Self-contained: defines the variables it uses. */
:root {
    --pf-black: #131615;
    --pf-green: #9DC4B5;
    --pf-green-dark: #0F6E56;
    --pf-green-light: #E8F3EE;
    --pf-white: #ffffff;
    --pf-off-white: #F4F2ED;
    --pf-gray-50: #fafaf9;
    --pf-gray-100: #f5f5f4;
    --pf-gray-200: #e5e3df;
    --pf-gray-400: #a8a29e;
    --pf-gray-600: #57534e;
    --pf-radius-sm: 6px;
    --pf-transition: 120ms ease;
    --pf-font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    background: var(--pf-gray-50);
    color: var(--pf-black);
    font-family: var(--pf-font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Top bar ── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 22px;
    background: var(--pf-black);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-brand { display: flex; align-items: center; }
.topbar-brand img { height: 22px; width: auto; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-user { color: rgba(255,255,255,0.55); font-size: 13px; }
.topbar-link { color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; }
.topbar-link:hover { color: #fff; }
.topbar-logout {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--pf-radius-sm);
    padding: 5px 12px;
    font-size: 12.5px;
    font-weight: 500;
    font-family: var(--pf-font);
    cursor: pointer;
    transition: background var(--pf-transition);
}
.topbar-logout:hover { background: rgba(255,255,255,0.16); color: #fff; }
.inline-form { display: inline; }

/* language segmented toggle */
.lang-toggle { display: inline-flex; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 2px; }
.lang-toggle a {
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    padding: 4px 11px;
    border-radius: 999px;
    transition: all var(--pf-transition);
}
.lang-toggle a.active { background: var(--pf-green); color: var(--pf-black); }
.lang-toggle a:not(.active):hover { color: #fff; }

/* ── Shell + sidebar ── */
.shell { display: flex; align-items: flex-start; min-height: calc(100vh - 56px); }
.sidebar {
    width: 214px;
    flex-shrink: 0;
    background: var(--pf-white);
    border-right: 1px solid var(--pf-gray-200);
    padding: 18px 14px;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
}
.side-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: var(--pf-black);
    color: var(--pf-white);
    text-decoration: none;
    padding: 9px 12px;
    border-radius: var(--pf-radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin: 4px 0 16px;
    transition: background var(--pf-transition);
}
.side-cta:hover { background: var(--pf-green-dark); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--pf-gray-600);
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 11px;
    border-radius: var(--pf-radius-sm);
    transition: all var(--pf-transition);
}
.side-nav a svg { color: var(--pf-gray-400); flex-shrink: 0; }
.side-nav a:hover { background: var(--pf-gray-100); color: var(--pf-black); }
.side-nav a.active { background: var(--pf-green-light); color: var(--pf-black); font-weight: 600; }
.side-nav a.active svg { color: var(--pf-green-dark); }
.side-section-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--pf-gray-400);
    padding: 0 11px;
    margin-bottom: 8px;
}
.side-divider { height: 1px; background: var(--pf-gray-200); margin: 18px 4px; }

/* ── Content ── */
.content { flex: 1; min-width: 0; }
.content-inner { max-width: 1080px; margin: 0 auto; padding: 28px 32px; }

@media (max-width: 760px) {
    .shell { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--pf-gray-200);
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
        padding: 12px 14px;
    }
    .side-cta { margin: 0; white-space: nowrap; }
    .side-divider { display: none; }
    .side-section-label { display: none; }
    .side-nav { flex-direction: row; flex-wrap: wrap; }
    .content-inner { padding: 20px 18px; }
}
