/* The portal follows the layout of wattnet.eu: same container, header, hero, band, footer, spacing and type scale */
/* wattnet.eu ships only the 500 and 800 faces, so 400 renders as 500 and 600/700 as 800; pinning the variable font to the same two weights gives the same strokes */
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/red-hat-display-300-800.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/red-hat-display-300-800.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/red-hat-text-500.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/red-hat-mono-500.woff2") format("woff2"); }

:root {
    --accent-400: #c1e859;
    --accent-500: #94ce24;
    --accent-600: #7bb320;
    --primary-200: #9fbef0;
    --primary-300: #7aa3eb;
    --primary-400: #5588e6;
    --primary-500: #3a78e0;
    --s-950: #020617;
    --s-900: #0f172a;
    --s-800: #1e293b;
    --s-700: #334155;
    --s-400: #94a3b8;
    --s-300: #cbd5e1;
    --s-200: #e2e8f0;
    --s-100: #f1f5f9;
    --bg-alt: #101828;
    --g-900: #101828;
    --g-800: #1e2939;
    --g-700: #364153;
    --g-400: #99a1af;
    --g-300: #d1d5dc;
    --link: #51a2ff;
    --danger: #f87171;
    --warn: #f59e0b;
    --visual-w: 25rem;
    --font-text: "Red Hat Text", system-ui, sans-serif;
    --font-display: "Red Hat Display", system-ui, sans-serif;
    --font-mono: "Red Hat Mono", ui-monospace, monospace;
    color-scheme: dark;
}

*, ::before, ::after { box-sizing: border-box; }

html { overflow-y: scroll; } /* always show the scrollbar so short pages do not shift sideways against long ones */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--s-950);
    color: var(--s-100);
    font-family: var(--font-text);
    font-weight: 500;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* The soft blurred shapes behind every page of wattnet.eu */
#background { position: fixed; inset: 0; z-index: -1; pointer-events: none; filter: blur(100px); background: url("/static/img/wattnet-background.svg") 0 0 / 100% 100% no-repeat; }

main { flex: 1; }
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }
a { color: var(--link); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.6rem; font-family: var(--font-display); line-height: 1.2; color: #fff; }
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.875rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { line-height: 1.625; }
.muted { color: var(--s-400); font-size: 0.95rem; }
code { font-family: var(--font-mono); font-size: 0.85em; }
pre { margin: 0; overflow-x: auto; font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7; }
.icon { width: 1rem; height: 1rem; flex: none; }

/* Announcement bar */
.dev-banner { color: #1f2937; text-align: center; background: #94ce24; padding: 0.3rem 1rem; font-size: 0.85rem; font-weight: 500; }
.dev-banner a { color: inherit; text-decoration: none; }
.dev-banner a:hover { text-decoration: underline; }
.dev-banner strong { font-weight: 800; }
.dev-banner .ml-4 { margin-left: 1rem; }
.dev-banner .mobile-text { display: none; }
@media (max-width: 640px) {
    .dev-banner .desktop-text { display: none; }
    .dev-banner .mobile-text { font-size: 0.75rem; display: inline; }
}

/* Header: sticky, translucent, 72px tall */
.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.header-main { background: rgba(2, 6, 23, 0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.site-header .container { padding-inline: 1rem; }
@media (min-width: 640px) { .site-header .container { padding-inline: 1.5rem; } }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; padding-block: 0.75rem; }
.brand { display: flex; align-items: center; text-decoration: none; color: #fff; }
.brand img { height: 2.5rem; width: auto; display: block; }
.brand .wordmark { margin-left: 0.5rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 800; color: #fff; }
.brand .tag { margin-left: 0.8125rem; padding-left: 0.625rem; border-left: 1px solid var(--s-700); color: var(--s-400); font-family: var(--font-display); font-size: 1.125rem; font-weight: 400; line-height: 1.75rem; }
@media (max-width: 639px) { .brand .tag { margin-left: 0.625rem; padding-left: 0.5rem; font-size: 1rem; } }
@media (max-width: 399px) { .brand .tag { margin-left: 0.375rem; padding-left: 0.375rem; font-size: 0.9rem; } }
nav.primary { display: none; align-items: center; column-gap: 2rem; font-size: 1.125rem; line-height: 1.75rem; }
nav.primary a { position: relative; font-weight: 500; color: var(--s-300); text-decoration: none; transition: color 0.15s; }
nav.primary a::after { content: ""; position: absolute; left: 0; bottom: -0.1875rem; width: 0; height: 2px; background: var(--primary-400); transition: width 0.2s; }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--primary-400); }
nav.primary a:hover::after, nav.primary a[aria-current="page"]::after { width: 100%; }
.header-actions { display: flex; align-items: center; }
.header-actions > :not(:last-child) { margin-right: 1rem; }
.icon-link { display: inline-flex; padding: 0.5rem; color: var(--s-400); border-radius: 999px; transition: color 0.15s; }
.icon-link:hover { color: var(--primary-400); }
.icon-link .icon { width: 1.25rem; height: 1.25rem; }
.icon-link.docker { display: none; }
@media (max-width: 359px) { .icon-link.github { display: none; } }
@media (min-width: 640px) { .icon-link.docker { display: inline-flex; } }
.btn.cta-desktop { display: none; }
.menu-toggle { display: inline-flex; padding: 0.5rem; color: var(--s-300); background: none; border: 0; border-radius: 0.375rem; cursor: pointer; }
.menu-toggle:hover { color: #fff; }
.menu-toggle .icon { width: 1.5rem; height: 1.5rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { width: 100%; border-top: 1px solid rgba(30, 41, 59, 0.6); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 0.625rem 1.5rem; color: var(--s-200); font-size: 1rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(30, 41, 59, 0.5); }
.mobile-menu nav a:hover { color: var(--primary-400); }
.mobile-menu .cta-row { padding: 1rem 1.5rem; }
.mobile-menu .cta-row .btn { width: 100%; }
@media (min-width: 1024px) {
    nav.primary { display: flex; }
    .btn.cta-desktop { display: inline-flex; }
    .menu-toggle, .mobile-menu { display: none; }
}

.user-chip { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.user-chip p { margin: 0; min-width: 0; font-size: 0.95rem; color: var(--g-400); white-space: nowrap; }
.user-chip .lbl { margin-right: 0.35rem; }
.user-chip .name { display: inline-block; max-width: 14rem; overflow: hidden; vertical-align: bottom; text-overflow: ellipsis; font-weight: 500; color: #fff; }
.user-chip .btn { flex: none; }
.user-chip .sm { display: none; }
@media (min-width: 1024px) { .user-chip { margin-right: 1rem; } } /* the header leaves the same gap after its last button */
/* second bar, only when signed in: the pages of the portal itself */
.subnav { background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.subnav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; }
.subnav nav { display: flex; align-items: stretch; align-self: stretch; gap: 1.75rem; }
.subnav nav a { display: inline-flex; align-items: center; padding-top: 2px; font-weight: 500; color: var(--s-300); text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.subnav nav a:hover { color: #fff; }
.subnav nav a[aria-current="page"] { color: var(--primary-400); border-bottom-color: var(--primary-400); }

/* Buttons, as btn-primary and btn-outline of wattnet.eu */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; cursor: pointer; font: inherit; font-weight: 500; text-decoration: none; color: var(--s-100); background: transparent; border: 2px solid var(--s-700); border-radius: 0.5rem; transition: all 0.3s; }
.btn:hover { background: var(--s-800); }
.btn.primary { color: #000; background: var(--accent-400); border: 0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.btn.primary:hover { background: var(--accent-500); box-shadow: 0 0 10px rgba(148, 206, 36, 0.3); }
.btn.primary:active { transform: scale(0.98); box-shadow: 0 0 6px rgba(148, 206, 36, 0.5); }
.btn.large { font-size: 1.125rem; line-height: 1.75rem; }
.btn.with-icon { gap: 0.5rem; padding-inline: 1.25rem 1.5rem; }
.btn.with-icon .icon { width: 1.125rem; height: 1.125rem; }
.dash-head .btn { align-self: center; flex: none; }
.btn.small { padding: 0.3rem 0.8rem; font-size: 0.875rem; border-width: 1px; }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); background: transparent; }
.icon-btn { align-self: center; padding: 0.1rem 0.5rem; font: inherit; font-size: 0.75rem; cursor: pointer; color: var(--s-400); background: transparent; border: 1px solid var(--s-700); border-radius: 0.4rem; }
.icon-btn:hover { color: var(--accent-500); border-color: var(--accent-500); }

/* Hero: full viewport and under the translucent header, as on wattnet.eu */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; margin-top: -4.5rem; padding: 8rem 0 3rem; overflow: hidden; }
.hero .container { position: relative; z-index: 10; }
.hero-grid { display: block; }
.hero h1 { margin: 0 0 calc(1.5rem - 0.15em); padding-bottom: 0.15em; font-size: 1.5rem; line-height: 1.15; background: linear-gradient(to bottom right, var(--primary-200), var(--primary-400), var(--primary-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 br { display: none; }
.hero-text { display: flex; flex-direction: column; gap: 0.75rem; margin: 0.5rem 0 1.5rem; }
.hero-text p { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1rem; line-height: 1.5; color: var(--g-300); }
.hero-text p:first-child { font-weight: 600; }
.cta { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.cta .btn { width: 100%; text-align: center; }
.hero-visual { position: absolute; top: 50%; right: 2rem; z-index: 5; display: none; width: var(--visual-w); justify-content: center; transform: translateY(-50%); }
@media (min-width: 640px) { .hero h1 { font-size: 1.875rem; } }
@media (min-width: 768px) {
    .hero { padding: 0; }
    .hero h1 { font-size: 3.75rem; line-height: 1; }
    .hero h1 br { display: inline; }
    .hero-text { width: 50%; margin-top: 1rem; }
    .hero-text p { font-size: 1.5rem; line-height: 2rem; }
    .cta { flex-direction: row; gap: 1rem; margin-top: 4rem; }
    .cta .btn { width: auto; }
}
@media (min-width: 1280px) { .hero-visual { display: flex; } }

.hero-stack { position: relative; width: 100%; }
.ghost { position: absolute; inset: 0; border-radius: 1rem; background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03) 55%), rgba(30, 41, 59, 0.62); border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 -10px 18px -10px rgba(0, 0, 0, 0.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* Depth: the gap between cards shrinks with distance, each card casts a shadow on the one behind and the far ones are darker and slightly out of focus */
.ghost.g1 { z-index: 0; left: 3%; right: 3%; transform: translateY(-1.25rem); opacity: 0.95; filter: brightness(0.92); }
.ghost.g2 { z-index: -1; left: 8%; right: 8%; transform: translateY(-2.375rem); opacity: 0.9; filter: brightness(0.8); }
.ghost.g3 { z-index: -2; left: 16%; right: 16%; transform: translateY(-3.375rem); opacity: 0.85; filter: brightness(0.68) blur(0.4px); }
.ghost.g4 { z-index: -3; left: 26%; right: 26%; transform: translateY(-4.25rem); opacity: 0.85; filter: brightness(0.62) blur(0.9px); }
.card.hero-card { position: relative; z-index: 1; width: 100%; margin: 0; padding: 2rem; overflow: visible; background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 55%), rgba(15, 23, 42, 0.56); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 -12px 20px -12px rgba(0, 0, 0, 0.8), 0 30px 60px -24px rgba(0, 0, 0, 0.8); }
.hc-title { display: flex; align-items: center; gap: 0.9rem; }
.hc-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; color: var(--accent-400); background: rgba(148, 206, 36, 0.14); border: 1px solid rgba(148, 206, 36, 0.35); border-radius: 0.75rem; }
.hc-icon svg { width: 1.3rem; height: 1.3rem; }
.hero-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.hero-card h3 { margin: 0; font-size: 1.35rem; line-height: 1; }
.hero-card header p { margin: -0.1rem 0 0; font-size: 0.9rem; line-height: 1; color: var(--s-400); }
.hero-card .badge { box-sizing: border-box; display: inline-flex; align-items: center; gap: 0.8rem; height: 1.75rem; padding: 0 0.9rem 0 0.5625rem; white-space: nowrap; }
.hero-card .badge::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--accent-500); border-radius: 50%; animation: hc-pulse 2.4s ease-out infinite; }
.hc-field { display: grid; grid-template-columns: 4.4rem 1fr auto; align-items: center; gap: 0.5rem; padding: 1.15rem 0; border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 0.95rem; }
.hc-field > span:first-child { color: var(--s-400); font-size: 0.85rem; }
.hc-field code { overflow-wrap: anywhere; color: #fff; font-size: 0.74rem; white-space: nowrap; }
.hc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.3rem 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.hc-meta div { font-size: 0.95rem; color: #fff; }
.hc-meta span { display: block; margin-bottom: 0.25rem; font-size: 0.7rem; color: var(--s-400); text-transform: uppercase; letter-spacing: 0.06em; }
.hc-meta .swap { position: relative; display: block; margin: 0; height: 1.5rem; font-size: inherit; color: inherit; text-transform: none; letter-spacing: 0; }
.hc-meta .swap i { position: absolute; left: 0; top: 0; font-style: normal; white-space: nowrap; }
.hc-meta .swap .a { animation: hc-old 9s ease-in-out infinite; }
.hc-meta .swap .b { color: var(--accent-400); opacity: 0; animation: hc-new 9s ease-in-out infinite; }
.hc-actions { display: flex; gap: 0.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.fake-btn { flex: 1; text-align: center; white-space: nowrap; padding: 0.4rem 0; font-size: 0.9rem; color: var(--s-200); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0.5rem; }
.fake-btn.primary { color: #000; background: var(--accent-400); border-color: var(--accent-400); }
.fake-btn.press { animation: hc-press 9s ease-in-out infinite; }
.cta { position: relative; }
.hero-toast { position: absolute; top: 0; bottom: 0; left: calc(100% - var(--visual-w) - 1.5rem); z-index: 12; box-sizing: border-box; height: 3.5rem; margin-block: auto; display: none; align-items: center; gap: 0.75rem; padding: 0 1.5rem; font-size: 1.125rem; line-height: 1.75rem; color: #fff; background: rgba(11, 19, 36, 0.94); border: 1px solid rgba(148, 206, 36, 0.5); border-radius: 0.5rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9); opacity: 0; animation: hc-toast 9s ease-in-out infinite; }
.hero-toast .tick { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; font-size: 0.85rem; font-weight: 800; color: #000; background: var(--accent-400); border-radius: 50%; }
.hero-toast small { color: var(--s-300); font-size: 0.9em; }
@media (min-width: 1280px) { .hero-toast { display: flex; } }

/* The card shows the flow in a loop: press "Get token", a token is issued and "Last token" updates */
@keyframes hc-pulse { 0% { box-shadow: 0 0 0 0 rgba(148, 206, 36, 0.55); } 70%, 100% { box-shadow: 0 0 0 0.55rem rgba(148, 206, 36, 0); } }
@keyframes hc-press { 0%, 24%, 34%, 100% { transform: none; box-shadow: none; } 28% { transform: scale(0.94); box-shadow: 0 0 0 0.45rem rgba(148, 206, 36, 0.25); } }
@keyframes hc-toast { 0%, 29% { opacity: 0; } 35%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes hc-old { 0%, 32% { opacity: 1; } 38%, 84% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes hc-new { 0%, 32% { opacity: 0; } 38%, 84% { opacity: 1; } 92%, 100% { opacity: 0; } }
/* wattnet.eu loader on the landing: CSS only (the CSP allows no inline script), it fades out by itself so it can never get stuck */
.boot { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: var(--s-950); animation: boot-out 0.4s ease 0.7s forwards; }
/* The arrow turns with a CSS animation (not SMIL in an <img>) so it starts with the first paint, together with the fade, and always from the same angle */
.boot .arrow { transform-box: view-box; transform-origin: 500px 500px; animation: boot-spin 2s linear infinite; }
@keyframes boot-spin { from { transform: rotate(-180deg); } to { transform: rotate(180deg); } }
@keyframes boot-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .boot { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .hero-card .badge::before, .hc-meta .swap i, .fake-btn.press { animation: none; }
    .hc-meta .swap .b { display: none; }
    .hero-toast { animation: none; opacity: 1; }
}

/* Band under the hero */
.band { background: #94ce24; padding: 3rem 0; }
.band-grid { display: grid; gap: 2rem; align-items: center; }
.band h2 { margin: 0; font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; color: #0b1c38; }
.band h2 span { display: block; }
.band-side { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.band-label { margin: 0 0 1.5rem; font-size: 0.875rem; line-height: 1.625; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: #0b1c38; }
.band-tags { display: flex; flex-wrap: wrap; gap: 0.75rem 0; margin: 0; padding: 0; list-style: none; color: #0b1c38; }
.band-tags li { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0 1.25rem; font-size: 1rem; font-weight: 600; color: #0b1c38; }
.band-tags li:first-child { padding-left: 0; }
.band-tags li:last-child { padding-right: 0; }
.band-tags li + li { border-left: 1px solid rgba(11, 28, 56, 0.35); }
.band-tags svg { width: 1.75rem; height: 1.75rem; flex: none; }
@media (max-width: 899px) { .band-tags { flex-direction: column; } .band-tags li { padding: 0; border: 0; } }
@media (min-width: 768px) {
    .band { padding: 4rem 0; }
    .band-grid { grid-template-columns: 1fr auto; }
    .band h2 { font-size: 2.25rem; line-height: 2.5rem; }
    .band-side { align-items: flex-end; }
    .band-tags { justify-content: flex-end; }
}

/* Sections */
.section { padding: 5rem 0; }
.section.alt { background: var(--bg-alt); }
@media (min-width: 768px) { .section { padding: 8rem 0; } }
.section-title { margin-bottom: 1.5rem; font-size: 1.875rem; }
/* "How it works" follows the pipeline section of wattnet.eu: bordered grid, numbered cells, and one step lit at a time */
.pipe-section { background: rgba(30, 41, 59, 0.5); }
.pipe-head { max-width: 48rem; margin: 0 0 3rem; }
.pipe-head .pill { margin-bottom: 1rem; padding: 0.25rem 1rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; color: var(--primary-300); background: #0f2868; border: 0; }
.pipe-head h2 { margin: 0 0 calc(1.5rem - 0.15em); padding-bottom: 0.15em; font-size: 1.875rem; line-height: 2.25rem; background: linear-gradient(to right, #fff, var(--primary-200), var(--primary-400)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pipe-head p { margin: 0; font-size: 1.125rem; color: var(--g-300); line-height: 1.625; }
.pipe { display: grid; border-block: 1px solid rgba(30, 41, 59, 0.6); background: rgba(16, 24, 40, 0.4); }
.pipe-step { position: relative; padding: 1.5rem; animation: pipe-cell 4.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.pipe-step:nth-child(2) { --d: 1.6s; }
.pipe-step:nth-child(3) { --d: 3.2s; }
.pipe-step + .pipe-step { border-top: 1px solid rgba(30, 41, 59, 0.6); }
.pipe-n { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1rem; color: #4a5565; user-select: none; }
.pipe-icon { position: relative; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-bottom: 1.25rem; color: var(--primary-400); background: linear-gradient(to bottom right, rgba(23, 45, 112, 0.5), rgba(34, 60, 134, 0.3)); border-radius: 0.75rem; animation: pipe-ink 4.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.pipe-icon::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(to bottom right, var(--accent-500), #7bb320); opacity: 0; animation: pipe-lit 4.8s ease-in-out infinite; animation-delay: var(--d, 0s); }
.pipe-icon svg { position: relative; width: 1.5rem; height: 1.5rem; }
.pipe-step h3 { margin: 0 0 0.5rem; font-size: 1.25rem; line-height: 1.4; }
.pipe-step p { margin: 0; color: var(--g-300); line-height: 1.625; text-align: justify; }
@keyframes pipe-cell { 0%, 36%, 100% { background-color: rgba(16, 32, 88, 0); } 6%, 30% { background-color: rgba(16, 32, 88, 0.3); } }
@keyframes pipe-lit { 0%, 36%, 100% { opacity: 0; } 6%, 30% { opacity: 1; } }
@keyframes pipe-ink { 0%, 36%, 100% { color: var(--primary-400); } 6%, 30% { color: #fff; } }
@media (min-width: 640px) { .pipe-step { padding: 2rem; } .pipe-n { top: 2rem; right: 2rem; } }
@media (min-width: 768px) {
    .pipe { grid-template-columns: repeat(3, 1fr); }
    .pipe-step + .pipe-step { border-top: 0; border-left: 1px solid rgba(30, 41, 59, 0.6); }
    .pipe-head h2 { font-size: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) { .pipe-step, .pipe-icon, .pipe-icon::before { animation: none; } }
.two-col { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1.1fr; } }
.muted-lg { font-size: 1.125rem; color: var(--s-300); }
.checks { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.6rem; color: var(--s-400); }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45rem; width: 0.45rem; height: 0.8rem; border: solid var(--primary-400); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.pill { display: inline-block; padding: 0.2rem 0.8rem; font-size: 0.85rem; color: var(--accent-400); background: rgba(148, 206, 36, 0.1); border: 1px solid rgba(148, 206, 36, 0.4); border-radius: 999px; }
.pill.blue { color: var(--primary-300); background: rgba(58, 120, 224, 0.15); border-color: rgba(58, 120, 224, 0.4); }
.two-col .pill { margin-bottom: 0.75rem; }
@media (min-width: 1024px) { .two-col.flip { grid-template-columns: 1.1fr 1fr; } .two-col.flip > .window { order: -1; } }
/* MCP diagram: agents ask the server, the server calls its tools; blue dots go out, green ones come back */
.section.tint { background: rgba(30, 41, 59, 0.5); }
.diagram { padding: 1.5rem; }
.diagram svg { display: block; width: 100%; height: auto; }
.d-path path { fill: none; stroke: rgba(58, 120, 224, 0.4); stroke-width: 2; stroke-linecap: round; }
.d-node, .d-chip { fill: var(--s-900); stroke: var(--primary-500); stroke-width: 2; }
.d-chip { stroke: rgba(58, 120, 224, 0.6); }
.d-bubble { fill: var(--s-900); stroke: rgba(255, 255, 255, 0.2); }
.d-answer { fill: rgba(148, 206, 36, 0.15); stroke: var(--accent-500); }
.d-hub { fill: rgba(58, 120, 224, 0.15); stroke: var(--primary-500); stroke-width: 2.5; }
.d-pulse { fill: none; stroke: var(--primary-500); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: d-pulse 2.4s ease-out infinite; }
.d-bars rect { fill: rgba(58, 120, 224, 0.3); }
.d-ok, .d-res { fill: var(--accent-500); }
.d-req { fill: var(--primary-500); }
.d-spark { fill: rgba(58, 120, 224, 0.2); stroke: var(--primary-500); stroke-width: 1.6; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; animation: d-twinkle 2.4s ease-in-out infinite; }
.d-spark.t1 { animation-delay: 0.8s; }
.d-spark.t2 { animation-delay: 1.6s; }
.d-icon { fill: none; stroke: var(--primary-300); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-band { fill: rgba(58, 120, 224, 0.08); stroke: rgba(58, 120, 224, 0.35); stroke-width: 1.5; }
.d-pill { fill: var(--s-900); stroke: rgba(148, 206, 36, 0.5); }
.d-cap { font-size: 10px; letter-spacing: 0.12em; fill: var(--s-400); }
.d-text { font-size: 12px; fill: var(--s-300); }
.d-label { font-size: 11px; fill: var(--s-400); }
.d-mcp { font-size: 20px; font-weight: 700; fill: #f1f5f9; }
.d-mono { font-family: ui-monospace, monospace; }
.d-url { fill: var(--s-900); stroke: rgba(58, 120, 224, 0.6); }
.d-urltext { font-size: 11px; fill: var(--primary-300); }
/* The dots follow the lines with CSS (offset-path), which needs no load event and no inline style: the policy of the portal allows neither */
.d-dot { offset-rotate: 0deg; animation: d-move 1.2s linear infinite; }
.d-dot.d-res { animation-direction: reverse; }
@keyframes d-move { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.p0 { offset-path: path("M130 124 V160"); }
.p1 { offset-path: path("M280 124 V160"); }
.p2 { offset-path: path("M430 124 V160"); }
.p3 { offset-path: path("M280 236 V272"); }
.p4 { offset-path: path("M280 336 C280 358 70 350 70 372"); }
.p5 { offset-path: path("M280 336 C280 358 210 350 210 372"); }
.p6 { offset-path: path("M280 336 C280 358 350 350 350 372"); }
.p7 { offset-path: path("M280 336 C280 358 490 350 490 372"); }
.p8 { offset-path: path("M70 432 V468"); }
.p9 { offset-path: path("M210 432 V468"); }
.p10 { offset-path: path("M350 432 V468"); }
.p11 { offset-path: path("M490 432 V468"); }
.w0 { animation-delay: -0.0s; }
.w1 { animation-delay: -0.2s; }
.w2 { animation-delay: -0.4s; }
.w3 { animation-delay: -0.6s; }
.w4 { animation-delay: -0.8s; }
.w5 { animation-delay: -1.0s; }
@keyframes d-pulse { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }
@keyframes d-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }
@media (prefers-reduced-motion: reduce) { .d-pulse, .d-flow { display: none; } .d-spark { animation: none; } }
.window { overflow: hidden; background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.75rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45); backdrop-filter: blur(12px); }
.window-bar { position: relative; display: flex; align-items: center; min-height: 3.25rem; padding: 0.7rem 1.25rem; background: rgba(16, 24, 40, 0.6); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.window-bar .dots { display: flex; gap: 0.5rem; }
.window-bar i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #f87171; }
.window-bar i:nth-child(2) { background: #facc15; }
.window-bar i:nth-child(3) { background: #4ade80; }
.window-bar .title { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--g-400); pointer-events: none; }
.window-body { padding: 1.25rem 1.25rem 1.4rem; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.55rem; overflow-x: auto; }
.window-body pre { margin: 0; font: inherit; color: #e5e7eb; white-space: pre-wrap; overflow-wrap: anywhere; }
.window-body .line { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.2rem; }
.window-body .ps { flex: none; white-space: nowrap; color: #e5e7eb; }
.window-body .ps b { font-weight: 500; color: var(--accent-400); }
.window-body .ps em { font-style: normal; color: #60a5fa; }
.window-body .k { color: #fff; font-weight: 500; }
.window-body .fl { color: #7dd3fc; }
.window-body .v { color: var(--accent-400); }
.window-body .s { color: #fcd34d; }
.window-body .bs { color: #6a7282; }
.window-body .out { margin: 0 0 1rem; color: #9ca3af; }
.window-body .c { margin: 0 0 0.2rem; color: #6a7282; }
.window-body .cursor { align-self: center; width: 0.55rem; height: 1.05rem; background: var(--accent-400); animation: term-blink 1.1s steps(1) infinite; }
@keyframes term-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .window-body .cursor { animation: none; } }

/* Cards, as the card utility of wattnet.eu */
.card { margin-bottom: 1.5rem; padding: 1.5rem; background: rgba(16, 24, 40, 0.4); backdrop-filter: blur(12px); border: 1px solid rgba(30, 41, 59, 0.6); border-radius: 0.75rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); overflow: hidden; }
.card h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.section.alt .card { background: rgba(2, 6, 23, 0.45); }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }

/* Signed in: the head sits on the page background, the next block carries the translucent panel */
.dash-head { padding: 5.5rem 0 5.5rem; }
.dash-head h1 { margin: 0 0 0.5rem; font-size: 2.25rem; line-height: 2.5rem; color: #fff; }
.dash-head h1 span { background: linear-gradient(to right in oklab, var(--primary-400), var(--accent-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-head p { margin: 0; max-width: 30rem; font-size: 1.125rem; line-height: 1.625; color: var(--g-300); }
.band-panel { padding: 7rem 0; background: rgba(30, 41, 59, 0.5); }
.cred-empty { display: flex; flex-direction: column; align-items: center; padding: 3rem 1.5rem; text-align: center; border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 1rem; }
.cred-empty .hc-icon { margin-bottom: 1rem; }
.cred-empty h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.cred-empty p { max-width: 44rem; margin: 0 0 1.5rem; color: var(--g-300); }
.cred-empty > :last-child { margin-bottom: 0; } /* no button below: the box keeps the same space above and below */
.section.dash-quick { padding-block: 8rem; }
.dash-links { padding: 7rem 0 8rem; background: rgba(30, 41, 59, 0.5); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.dash-links .pipe { background: transparent; border-block-color: rgba(255, 255, 255, 0.08); }
.pipe.links .pipe-n { font-size: 1rem; }
.pipe.links { grid-template-columns: 1fr; }
.pipe.links .pipe-step p { text-align: left; }
.pipe.links .pipe-step { display: block; color: inherit; text-decoration: none; animation: none; transition: background-color 0.3s; }
.pipe.links .pipe-step:hover { background-color: rgba(16, 32, 88, 0.3); }
.pipe.links .pipe-step:hover .pipe-icon { color: #fff; }
.pipe.links .pipe-step:hover .pipe-icon::before { opacity: 1; }
.pipe.links .pipe-icon, .pipe.links .pipe-icon::before { animation: none; transition: opacity 0.3s, color 0.3s; }
@media (min-width: 640px) { .pipe.links { grid-template-columns: repeat(2, 1fr); } .pipe.links .pipe-step { border-left: 0; } .pipe.links .pipe-step:nth-child(even) { border-left: 1px solid rgba(30, 41, 59, 0.6); } .pipe.links .pipe-step:nth-child(n+3) { border-top: 1px solid rgba(30, 41, 59, 0.6); } }
@media (min-width: 1024px) { .pipe.links { grid-template-columns: repeat(4, 1fr); } .pipe.links .pipe-step, .pipe.links .pipe-step:nth-child(even) { border-left: 1px solid rgba(30, 41, 59, 0.6); } .pipe.links .pipe-step:first-child { border-left: 0; } .pipe.links .pipe-step:nth-child(n+3) { border-top: 0; } }
@media (max-width: 700px) { .dash-head .btn { align-self: flex-start; } .dash-head { padding: 3.5rem 0 3.5rem; } .band-panel { padding: 4.5rem 0; } .section.dash-quick { padding-block: 5rem; } .dash-links { padding: 4.5rem 0 5.5rem; } .dash-head h1 { font-size: 1.875rem; } }
.dot { flex: none; width: 0.5rem; height: 0.5rem; background: var(--s-400); border-radius: 50%; }
.dot.ok { background: var(--accent-500); box-shadow: 0 0 0 3px rgba(148, 206, 36, 0.18); }
.dot.locked { background: #f87171; }
.more { position: relative; }
.more summary { display: inline-flex; list-style: none; cursor: pointer; }
.more summary::-webkit-details-marker { display: none; }
.more .icon { width: 1.1rem; height: 1.1rem; }
.more[open] summary { background: var(--s-800); }
.more-menu { position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 20; white-space: nowrap; display: flex; flex-direction: column; min-width: 10rem; padding: 0.3rem; background: var(--s-900); border: 1px solid var(--s-700); border-radius: 0.6rem; box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.7); }
.more-menu button { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.75rem; font: inherit; font-size: 0.875rem; text-align: left; color: var(--s-200); background: none; border: 0; border-radius: 0.4rem; cursor: pointer; }
.more-menu button:hover { background: var(--s-800); }
.more-menu .icon { width: 1rem; height: 1rem; flex: none; color: var(--s-400); }
.more-menu .danger .icon { color: inherit; }
.more-menu .danger { color: var(--danger); }

/* Usage page */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { padding: 1.25rem 1.4rem; background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 55%), rgba(15, 23, 42, 0.5); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0.875rem; }
.stat span { font-size: 0.75rem; color: var(--s-400); text-transform: uppercase; letter-spacing: 0.06em; }
.stat b { display: block; margin: 0.35rem 0 0.15rem; font-family: var(--font-display); font-size: 2rem; line-height: 2.25rem; font-weight: 800; color: #fff; }
.stat b small { font-size: 1rem; font-weight: 500; color: var(--s-400); }
.stat p { margin: 0; font-size: 0.85rem; color: var(--s-400); }
th.cnt-h, td.cnt { text-align: right; font-variant-numeric: tabular-nums; }
td.cnt { color: #fff; }

.spark { display: block; width: 7rem; height: 1.5rem; fill: var(--accent-500); }
.spark .zero { fill: rgba(255, 255, 255, 0.14); }
.usage-note { margin: 1.5rem 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--s-400); }

/* Credentials table */
.table-wrap { padding: 0; background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 55%), rgba(15, 23, 42, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 1rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px -24px rgba(0, 0, 0, 0.6); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
/* A client ID is at most 44 characters (13 prefix + 24 slug + dash + 6 hex), so its column is sized for the whole thing */
th.c-name { width: 21%; } th.c-proj { width: 13%; } th.c-id { width: 29%; } th.c-status { width: 10%; } th.c-seen { width: 12%; } th.c-act { width: 15%; }
table.admin th.c-name { width: 16%; } table.admin th.c-proj { width: 12%; } table.admin th.c-id { width: 21%; } table.admin th.c-contact { width: 15%; } table.admin th.c-status { width: 10%; } table.admin th.c-seen { width: 11%; } table.admin th.c-act { width: 15%; }
table.admin td.seen { padding-right: 0.9rem; }
th, td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
thead th { padding-block: 0.65rem; background: rgba(255, 255, 255, 0.03); }
tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }
th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--s-400); }
tbody tr:last-child td { border-bottom: 0; }
tbody td { height: 3.9rem; }
td strong { color: #fff; }
td.actions { white-space: nowrap; text-align: right; }
th.actions-h { text-align: right; }
td.actions .btn, .more summary.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; height: 2rem; padding: 0 0.8rem; font-size: 0.8125rem; line-height: 1; border-radius: 0.5rem; }
td.actions .btn .icon { width: 0.9rem; height: 0.9rem; }
td.actions .btn.primary { font-weight: 600; }
td.actions > .btn + .more { margin-left: 0.4rem; }
.more summary.btn { width: 2rem; padding: 0; }
td.actions .btn:focus-visible, .more summary:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }
.nowrap { white-space: nowrap; }
td.name strong { display: block; overflow: hidden; font-size: 1rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
td.proj span:not(.muted) { display: block; overflow: hidden; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
td.name small { display: block; margin-top: 0.2rem; overflow: hidden; font-size: 0.8rem; line-height: 1.35; color: var(--s-400); text-overflow: ellipsis; white-space: nowrap; }
td.contact span:not(.muted) { display: block; overflow: hidden; font-size: 0.9rem; color: var(--g-300); text-overflow: ellipsis; white-space: nowrap; }
td.contact strong { display: block; overflow: hidden; font-size: 0.92rem; font-weight: 600; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
td.contact strong + span:not(.muted) { font-size: 0.8rem; color: var(--s-400); }
td.id { overflow: hidden; white-space: nowrap; }
td.id code { display: inline-block; max-width: calc(100% - 3.2rem); overflow: hidden; vertical-align: middle; font-size: 0.7rem; color: var(--s-300); text-overflow: ellipsis; direction: rtl; text-align: left; }
td.proj { font-size: 0.9rem; color: var(--primary-300); }
td.actions > .btn, td.actions > .more { vertical-align: middle; }
.more { display: inline-block; }
.table-wrap thead tr:first-child th:first-child { border-top-left-radius: 1rem; }
.table-wrap thead tr:first-child th:last-child { border-top-right-radius: 1rem; }
.table-wrap th:first-child, .table-wrap td:first-child { padding-left: 1.25rem; }
.table-wrap th:last-child, .table-wrap td:last-child { padding-right: 1.25rem; }
.badge { display: inline-block; padding: 0.1rem 0.6rem; font-size: 0.8rem; border-radius: 999px; border: 1px solid var(--s-700); }
.badge.ok { color: var(--accent-400); border-color: rgba(148, 206, 36, 0.5); }
.badge.off { color: var(--s-400); }
.badge.locked { color: var(--warn); border-color: rgba(245, 158, 11, 0.5); }
.status { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.7rem 0.2rem 0.6rem; font-size: 0.8rem; font-weight: 500; white-space: nowrap; border: 1px solid; border-radius: 999px; }
.status i { width: 0.4rem; height: 0.4rem; background: currentColor; border-radius: 50%; }
.status .icon { width: 0.8rem; height: 0.8rem; }
.status.ok { color: var(--accent-400); background: rgba(148, 206, 36, 0.1); border-color: rgba(148, 206, 36, 0.4); }
.status.off { color: var(--s-300); background: rgba(148, 163, 184, 0.08); border-color: rgba(148, 163, 184, 0.3); }
.status.locked { color: #f87171; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.45); }
td.seen { padding-right: 1.5rem; }
td.seen span { display: block; font-size: 0.9rem; color: #fff; white-space: nowrap; }
td.seen small { display: block; margin-top: 0.1rem; font-size: 0.75rem; color: var(--s-400); white-space: nowrap; }
tr.is-off td:not(.status-cell):not(.actions) { opacity: 0.55; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Dialogs */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(2, 6, 23, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card { width: 100%; max-width: 34rem; max-height: 92vh; overflow-y: auto; background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 55%), rgba(15, 23, 42, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 1rem; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.modal-card.narrow { max-width: 26rem; }
.modal-card.wide { max-width: 42rem; }
.modal-head { display: flex; align-items: center; gap: 1rem; padding: 2.25rem 2.25rem 1.5rem; }
.modal-head h2 { margin: 0; font-size: 1.25rem; line-height: 1.15; }
.modal-head p { margin: 0.15rem 0 0; font-size: 0.85rem; line-height: 1.2; color: var(--s-400); }
.modal-head p:empty { display: none; }
.hc-icon.ok { color: #000; background: var(--accent-400); border-color: var(--accent-400); }
.modal-x { flex: none; margin: 0 -0.4rem 0 auto; padding: 0.4rem; color: var(--s-400); background: none; border: 0; border-radius: 0.5rem; cursor: pointer; }
.modal-x:hover { color: #fff; background: var(--s-800); }
.modal-x svg { display: block; width: 1.1rem; height: 1.1rem; }
.modal-body { padding: 0 2.25rem 2rem; }
.modal-body label { display: block; margin-bottom: 1.25rem; font-size: 0.875rem; font-weight: 500; color: var(--s-300); }
.modal-body .opt { margin-left: 0.4rem; font-size: 0.75rem; font-weight: 400; color: var(--s-400); }
.modal-body input, textarea { display: block; width: 100%; margin-top: 0.4rem; padding: 0.65rem 0.8rem; font: inherit; font-size: 0.95rem; font-weight: 400; color: #fff; background: rgba(2, 6, 23, 0.55); border: 1px solid var(--s-700); border-radius: 0.6rem; transition: border-color 0.15s, box-shadow 0.15s; }
.modal-body input::placeholder { color: var(--s-400); }
.modal-body input:focus, textarea:focus { outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px rgba(148, 206, 36, 0.18); }
.modal-body .hint { margin: 0 0 0.6rem; font-size: 0.85rem; line-height: 1.5; color: var(--s-400); }
.modal-body .plain { margin: 0; line-height: 1.6; color: var(--g-300); }
.modal-foot { display: flex; justify-content: flex-end; gap: 0.75rem; padding: 1.4rem 2.25rem; background: rgba(255, 255, 255, 0.025); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.callout { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 1.1rem; padding: 0.8rem 0.95rem; font-size: 0.875rem; line-height: 1.5; color: #fcd34d; background: rgba(245, 158, 11, 0.09); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 0.7rem; }
.callout svg { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; }
.secret-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; padding: 0.6rem 0.6rem 0.6rem 0.9rem; background: rgba(2, 6, 23, 0.55); border: 1px solid var(--s-700); border-radius: 0.6rem; }
.secret-row > span, .secret-row > label { font-size: 0.8rem; color: var(--s-400); }
.secret-row code { user-select: all; overflow-wrap: anywhere; font-size: 0.8rem; color: #fff; }
.secret-row.one-line code { overflow-x: auto; overflow-wrap: normal; white-space: nowrap; }
.secret-row.stacked { display: block; padding: 0.7rem 0.9rem; }
.secret-row.stacked textarea { margin: 0.4rem 0 0; padding: 0; background: none; border: 0; box-shadow: none; }
.snippet { margin-bottom: 0.2rem; padding: 0.9rem 1rem; background: rgba(2, 6, 23, 0.7); border: 1px solid var(--s-800); border-radius: 0.6rem; }
.snippet pre { margin: 0; font-size: 0.78rem; line-height: 1.55; color: #e5e7eb; white-space: pre-wrap; overflow-wrap: anywhere; }
.snippet .k { color: #fff; font-weight: 500; }
.snippet .fl { color: #7dd3fc; }
.snippet .v { color: var(--accent-400); }
.snippet .s { color: #fcd34d; }
.snippet .bs { color: #6a7282; }
textarea { font-family: var(--font-mono); font-size: 0.8rem; resize: vertical; }
.modal-body textarea[name="reason"] { font-family: inherit; font-size: 0.95rem; line-height: 1.5; }
.row.start { display: flex; margin: 0 0 1rem; }
.modal-body .row.start + .hint { margin-top: 1.75rem; }
.confirm-text { margin: 0; line-height: 1.6; color: var(--g-300); }
.btn.danger-solid { color: #fff; background: #dc2626; border-color: #dc2626; }
.btn.danger-solid:hover { background: #ef4444; }
@media (max-width: 560px) { .modal-head { padding: 1.5rem 1.4rem 1.1rem; } .modal-body { padding: 0 1.4rem 1.5rem; } .modal-foot { padding: 1rem 1.4rem; } .secret-row { grid-template-columns: 1fr auto; } .secret-row > span { grid-column: 1 / -1; } .modal-foot .btn { flex: 1; } }

:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }
::selection { color: #000; background: var(--accent-400); }

/* Footer: same grid as the footer of wattnet.eu */
.site-footer { margin-top: 0; padding: 2.5rem 0 2rem; color: #fff; background: var(--g-900); }
.footer-grid { display: grid; gap: 1.5rem; margin-bottom: 1rem; }
.footer-about .brand { margin-bottom: 1rem; }
.footer-about .brand img { height: 3rem; }
.footer-about .brand .wordmark { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; }
.footer-about > p { margin: 0 0 0.75rem; color: var(--g-400); font-family: var(--font-display); font-weight: 400; font-size: 0.875rem; line-height: 1.5; }
.footer-about ul { margin: 0; padding-left: 0; list-style-position: inside; color: var(--g-400); font-size: 0.875rem; line-height: 1.25rem; }
.footer-about li + li { margin-top: 0.375rem; }
.site-footer a { color: var(--link); text-decoration: none; }
.site-footer a:not(.brand):hover { text-decoration: underline; }
.footer-funding h2 { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1rem; line-height: 1.5rem; font-weight: 600; }
.footer-funding p { margin: 0 0 1rem; color: var(--g-400); font-size: 0.875rem; line-height: 1.5; text-align: justify; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.logos-left { display: flex; align-items: center; gap: 0.75rem; }
.logos img { display: block; height: auto; }
.logos .eu { width: 12.1875rem; max-width: 100%; }
.logos .ch { width: auto; height: 2.125rem; }
.logos .gd { width: 10.3125rem; max-width: 100%; }
.footer-bar { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--g-800); font-size: 0.875rem; line-height: 1.25rem; color: var(--g-400); }
.footer-bar a { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--g-400); text-decoration: none; transition: color 0.15s; }
.footer-bar a:hover { color: var(--accent-500); text-decoration: none; }
.footer-bar .icon { width: 1rem; height: 1rem; }
.footer-links, .footer-licenses { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.25rem; }
.footer-licenses a:first-child .icon { width: auto; transform: translateY(2px); }
.footer-licenses .after-icons { margin-left: 0.125rem; }
.copyright { margin: 0; font-size: 0.875rem; line-height: 1.625; text-align: center; }
.copyright a { display: inline; }
.br-sm { display: inline; }
@media (min-width: 768px) {
    .footer-about .brand img { height: 3.5rem; }
    .footer-about .brand .wordmark { font-size: 2.25rem; line-height: 2.5rem; }
    .footer-about > p { font-size: 1rem; line-height: 1.5; }
    .footer-funding h2 { font-size: 1.125rem; line-height: 1.75rem; }
    .br-sm { display: none; }
    .site-footer { padding-top: 4rem; }
}
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2rem; }
    .footer-about { grid-column: span 4 / span 4; }
    .footer-funding { grid-column: span 3 / span 3; }
    .footer-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; }
    .footer-licenses { justify-content: flex-end; }
}
@media (min-width: 1200px) { .copyright { white-space: nowrap; } }

@media (max-width: 700px) {
    .head { flex-direction: column; }
        .section { padding-top: 3rem; padding-bottom: 3rem; }
    .user-chip p { display: none; }
    .user-chip .lg { display: none; }
    .user-chip .sm { display: inline; }

}

@media (max-width: 1279px) {
    /* Below 1280px the credentials table does not fit: one card per credential */
    .table-wrap { padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
    table, tbody, tr, td { display: block; }
    thead { display: none; }
    tr { margin-bottom: 1rem; padding: 0.5rem 0; background: rgba(15, 23, 42, 0.55); border: 1px solid var(--s-800); border-radius: 0.75rem; }
    td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 1rem; border: 0; }
    td::before { content: attr(data-label); flex: 0 0 5.5rem; color: var(--s-400); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
    td.id { white-space: normal; }
    td.status-cell { align-items: flex-start; }
    .status-box { display: flex; flex-direction: column; align-items: flex-end; }
    tr.is-off td:not(.status-cell):not(.actions) { opacity: 0.7; }
    td.seen { align-items: flex-start; }
    td.seen span, td.seen small { text-align: right; }
    td.name strong, td.name small, td.proj span:not(.muted), td.contact span:not(.muted) { max-width: none; white-space: normal; text-align: right; }
    td.name { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1rem; text-align: right; }
    td.name::before { grid-row: 1 / span 2; }
    td.name strong, td.name small { grid-column: 2; }
    .table-wrap td:first-child, .table-wrap td:last-child { padding-inline: 1rem; }
    td.seen { flex-wrap: wrap; }
    td.seen small { flex-basis: 100%; margin-top: 0.15rem; }
    td.id code { display: block; max-width: none; overflow: visible; direction: ltr; text-align: right; overflow-wrap: anywhere; }
    td.id .copy-btn { align-self: flex-start; }
    td.actions { flex-wrap: wrap; justify-content: flex-start; padding-top: 0.75rem; }
    td.actions::before { display: none; }
    td.actions .btn { margin: 0; }
}

/* Moving between pages of the portal: a short cross-fade, nothing moves.
   The whole page is one snapshot, so any translate would shake the header too; and no element gets its
   own view-transition-name, because that isolates it and its backdrop blur stops seeing the background. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.12s ease-in both fade-out; }
::view-transition-new(root) { animation: 0.22s ease-out both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Details dialog: the same glass card as the hero graphic */
.modal-card.det { max-width: 40rem; padding: 2rem; }
.det-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; }
.det-title { flex: 1; min-width: 0; }
.det-title h2 { margin: 0; overflow: hidden; font-size: 1.25rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.det-title p { margin: 0.15rem 0 0; overflow: hidden; font-size: 0.85rem; line-height: 1.2; color: var(--s-400); text-overflow: ellipsis; white-space: nowrap; }
.det-head .status { flex: none; }
.det-head .modal-x { margin: 0 -0.5rem 0 0; }
.det .callout { margin: 0 0 1.25rem; }
.callout.danger { color: #fca5a5; background: rgba(239, 68, 68, 0.09); border-color: rgba(239, 68, 68, 0.4); }
.det-field { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.det-field > span:first-child { font-size: 0.85rem; color: var(--s-400); }
.det-field code { overflow-wrap: anywhere; font-size: 0.78rem; color: #fff; }
.det-field .val { grid-column: 2 / -1; overflow-wrap: anywhere; color: #fff; }
.det-meta { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; padding: 1.2rem 0 0; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.det-meta div { min-width: 0; overflow-wrap: anywhere; font-size: 0.95rem; color: #fff; }
.det-meta div + div { white-space: nowrap; }
.det-meta span { display: block; margin-bottom: 0.25rem; font-size: 0.7rem; color: var(--s-400); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 560px) { .modal-card.det { padding: 1.4rem; } .det-meta { grid-template-columns: 1fr 1fr; } .det-field { grid-template-columns: 1fr auto; } .det-field > span:first-child { grid-column: 1 / -1; } .det-field .val { grid-column: 1 / -1; } }

/* Copy buttons: one style everywhere, with a check and "Copied" for a moment after copying */
.copy-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 0.4rem; height: 1.75rem; padding: 0 0.7rem; font: inherit; font-size: 0.8rem; font-weight: 500; line-height: 1; color: var(--primary-300); white-space: nowrap; background: rgba(58, 120, 224, 0.14); border: 1px solid rgba(85, 136, 230, 0.28); border-radius: 0.5rem; cursor: pointer; transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.copy-btn svg { width: 0.9rem; height: 0.9rem; }
.copy-btn .i-done { display: none; }
.copy-btn:hover { color: #fff; background: rgba(58, 120, 224, 0.3); border-color: rgba(85, 136, 230, 0.55); }
.copy-btn:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }
.copy-btn.is-done { color: var(--accent-400); background: rgba(148, 206, 36, 0.14); border-color: rgba(148, 206, 36, 0.45); }
.copy-btn.is-done .i-copy { display: none; }
.copy-btn.is-done .i-done { display: block; }
.copy-btn.compact { width: 1.75rem; padding: 0; }
td.id .copy-btn { margin-left: 0.6rem; vertical-align: middle; }
.det-field .copy-btn, .secret-row .copy-btn { height: 2rem; }
.det-field code, .secret-row code { min-width: 0; }
table.admin td.actions > .btn:not(.more summary) { min-width: 6.25rem; }
table.usage th.u-name { width: 20%; } table.usage th.u-status { width: 11%; } table.usage th.cnt-h { width: 8%; } table.usage th.u-spark { width: 16%; } table.usage th.u-seen { width: 13%; }
table.usage th.cnt-h, table.usage td.cnt { padding-right: 1.5rem; }
td.cnt.zero { color: var(--s-400); }
td.spark-cell { padding-left: 1.5rem; }
table.usage td.seen { padding-right: 0.9rem; }
.spark { width: 8.75rem; height: 1.75rem; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat b.warn-n { color: #fcd34d; }
td.cnt.bad { color: #fca5a5; }
table.usage thead th { white-space: nowrap; }
table.usage thead th.group { position: relative; padding-bottom: 0.35rem; text-align: center; border-bottom: 0; }
table.usage thead th.group::after { content: ""; position: absolute; right: 0.6rem; bottom: 0; left: 0.6rem; height: 1px; background: rgba(255, 255, 255, 0.14); }
table.usage thead tr.sub th { padding-top: 0.4rem; padding-bottom: 0.65rem; }
table.usage thead tr:first-child th { padding-bottom: 0.4rem; }
table.usage thead tr:first-child th[rowspan] { vertical-align: bottom; padding-bottom: 0.65rem; }
table.usage th.cnt-h { padding-right: 1.5rem; }
.stats-title { margin: 0 0 0.9rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--s-400); }
.stats + .stats-title { margin-top: 0.4rem; }
/* The usage page: panels like the ones of the access page */
.usage-panels { margin-top: 0; gap: 1.5rem; }
.usage-panels .tier-id p b { color: #fff; }
.use-limits > div { display: flex; flex-direction: column; gap: 0.35rem; }
.tier-limits.use-limits dd small { display: block; margin: 0.15rem 0 0; font-size: 0.82rem; }
.tier-limits.use-limits dd { white-space: normal; }
.use-limits > div { flex: 1 1 14rem; }
.use-limits > div { padding: 1rem 1.25rem 1rem 1.25rem; }
.tier-limits.use-limits dd { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.9rem; font-weight: 800; }
.tier-limits.use-limits dd .of { font-family: var(--font-text); font-size: 0.95rem; font-weight: 500; color: var(--s-400); }
.tier-limits.use-limits dd.chips { font-family: inherit; font-size: 1rem; line-height: 1.25; font-weight: 400; }
.use-fact { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--s-300); }
.use-note { margin: auto 0 0; padding-top: 0.55rem; font-size: 0.78rem; line-height: 1.45; color: var(--s-400); }
.use-foot { margin: 0; padding: 0.75rem 1.5rem; font-size: 0.8rem; color: var(--s-400); border-top: 1px solid rgba(255, 255, 255, 0.07); }
.use-foot a { color: var(--accent-400); }
.warn-t { color: #fcd34d !important; } .bad-t { color: #f87171 !important; }
.meter { display: block; margin: 0.1rem 0 0.15rem; }
.meter .track, .share-bar .track { fill: rgba(255, 255, 255, 0.08); }
.share-bar .fill { fill: var(--accent-500); } .meter .fill, .gb-bar .fill { fill: url(#wn-gradient); }
.svg-defs { position: absolute; }
.meter.st-warn .fill { fill: #fcd34d; } .meter.st-bad .fill { fill: #f87171; }
.calls-chart { margin: 0; padding: 1rem 1.5rem 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.calls-chart svg { display: block; fill: var(--accent-500); }
.calls-chart svg .zero { fill: rgba(255, 255, 255, 0.12); }
.group-bars { padding: 0.9rem 1.5rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.group-bars h3 { margin: 0 0 0.6rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s-400); }
.group-bars ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.group-bars li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 7.5rem; align-items: center; gap: 1rem; font-size: 0.88rem; }
.gb-name { color: #fff; font-weight: 600; }
.gb-n { text-align: right; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; } .gb-n small { display: inline-block; min-width: 2.4rem; margin-left: 0.4rem; font-weight: 400; color: var(--s-400); }
.gb-bar { display: block; }
.gb-bar .track { fill: rgba(255, 255, 255, 0.06); }
.gb-from { stop-color: var(--primary-400); } .gb-to { stop-color: var(--accent-500); }
.group-bars li.off .gb-name, .group-bars li.off .gb-n { color: var(--s-400); font-weight: 400; }
.calls-chart figcaption { display: flex; justify-content: space-between; margin-top: 0.4rem; font-size: 0.75rem; color: var(--s-400); }
.table-wrap.in-panel { margin: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); border-radius: 0; background: transparent; }
.table-wrap.in-panel thead tr:first-child th { border-radius: 0; }
table.usage.calls-table th.u-name { width: 22%; } table.usage.calls-table th.u-share { width: 17%; } table.usage.calls-table th.u-groups { width: 18%; } table.usage.calls-table th.cnt-h { width: 13%; white-space: nowrap; }
td.share-cell b { display: block; color: #fff; font-weight: 600; }
.share-bar { display: block; max-width: 7rem; margin: 0.3rem 0 0.2rem; }
td.share-cell small, table.usage td.cnt small.share { display: block; font-size: 0.72rem; color: var(--s-400); }
td.groups-cell { font-size: 0.88rem; color: var(--s-300); } td.groups-cell .zero { color: var(--s-400); }
table.usage.tokens th.u-name { width: 30%; }
.use-checks { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.use-check { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.use-check:last-child { border-bottom: 0; }
.use-check.st-warn .notif-icon { background: rgba(250, 204, 21, 0.16); color: #facc15; }
.use-check.st-bad .notif-icon { background: rgba(248, 113, 113, 0.16); color: #f87171; }
.use-check b { color: #fff; font-size: 0.92rem; } .use-check p { margin: 0.15rem 0 0; font-size: 0.84rem; line-height: 1.45; color: var(--s-400); }
.use-check .btn { margin-left: auto; flex: none; }
.notice-top { margin: 0 0 1.25rem; }
.use-empty { margin: 0; padding: 1.4rem 1.5rem; font-size: 0.9rem; color: var(--s-400); border-top: 1px solid rgba(255, 255, 255, 0.07); }
.tier-limits.use-limits + .tier-limits.use-limits { border-top: 0; }
.use-limits > div { flex: 1 1 0; min-width: 0; }
.use-limits .lim-wide { flex: 2 1 0; }
.tier-limits.use-limits.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.use-limits.cols-4 .lim-wide { grid-column: span 2; }
@media (max-width: 900px) { .tier-limits.use-limits.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tokens-chart { display: block; margin-top: 0.5rem; fill: var(--accent-500); }
.tokens-chart .zero { fill: rgba(255, 255, 255, 0.12); }
.usage-panels .tier-limits dd { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.9rem; font-weight: 800; }
table.usage.calls-table th:last-child, table.usage.calls-table td:last-child { padding-right: 1.5rem; }
.admin-usage { margin-bottom: 2.5rem; }
.tier-limits dd.bad-t, .tier-limits dd.warn-t { font-weight: 800; }
@media (max-width: 900px) { .use-check { flex-wrap: wrap; } }
table.usage td.cnt small.share { display: block; font-size: 0.72rem; color: var(--s-400); }
table.usage.groups th.u-name, table.usage.tokens th.u-name { width: 28%; }
.stat b.bad-n { color: #f87171; }
.stat p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat.chart .spark.wide { width: 100%; height: 3.1rem; margin-top: 0.6rem; }
@media (max-width: 700px) { .subnav nav { gap: 1.1rem; overflow-x: auto; } }
/* Usage table: numbers sit centered under the group titles */
table.usage th.cnt-h, table.usage td.cnt { padding-right: 0.9rem; text-align: center; }
table.usage thead tr.sub th { font-size: 0.75rem; }
table.usage thead th.group { font-size: 0.75rem; color: var(--s-300); }
table.usage th.u-spark, table.usage td.spark-cell { padding-left: 1.25rem; }

/* Screen reader only text and the busy state of HTMX requests */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.htmx-request.btn, form.htmx-request .btn.primary { opacity: 0.6; cursor: progress; }
.modal-body > .callout[role="alert"] { margin-bottom: 1.25rem; }
.secret-row.stacked > label { display: block; }

/* Access policy page */
table.tiers th.t-name { width: 20%; } table.tiers th.t-limit { width: 13%; } table.tiers th.t-requests { width: 23%; } table.tiers th.t-range { width: 13%; }
table.tiers td.desc { white-space: normal; color: var(--g-300); }
table.tiers td.cnt { text-align: left; }
table.tiers tr.is-current td { background: rgba(148, 206, 36, 0.09); }
table.tiers tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--accent-500); }
table.tiers td.name small { color: var(--accent-400); }
@media (max-width: 1279px) { table.tiers tr.is-current { border-color: var(--accent-500); } table.tiers tr.is-current td { background: none; box-shadow: none; } table.tiers td.name::before { text-align: left; align-self: center; } }
.stats.wrap .stat p { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.4; } /* the access page has longer texts: let them wrap */
@media (max-width: 480px) { .stats.wrap .stat b { font-size: 1.6rem; line-height: 2rem; } }
/* The icon of each access level */
.tier-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; color: var(--g-300); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.55rem; }
.tier-icon svg { width: 1.1rem; height: 1.1rem; }
.tier-icon.big { width: 2.6rem; height: 2.6rem; color: var(--accent-400); background: rgba(148, 206, 36, 0.14); border-color: rgba(148, 206, 36, 0.35); border-radius: 0.7rem; }
.tier-icon.big svg { width: 1.3rem; height: 1.3rem; }
table.tiers tr.is-current .tier-icon { color: var(--accent-400); background: rgba(148, 206, 36, 0.14); border-color: rgba(148, 206, 36, 0.35); }
table.tiers td.name strong { display: flex; align-items: center; gap: 1rem; overflow: visible; white-space: normal; }
.stats .stat b.with-icon { display: flex; align-items: center; gap: 1.1rem; margin: 0.75rem 0 0.8rem; }
@media (max-width: 1279px) { table.tiers td.name strong { justify-content: flex-end; } }
.table-wrap.tiers-wrap { overflow: hidden; } /* the highlighted row reaches the rounded corners: clip it */
@media (max-width: 1279px) { .table-wrap.tiers-wrap { overflow: visible; } }
/* "Custom" is not a level to pick, only where to ask: muted */
table.tiers tr.is-custom td, table.tiers tr.is-custom td strong, table.tiers tr.is-custom td.desc { color: var(--s-400); }
table.tiers tr.is-custom .tier-icon { color: var(--s-400); opacity: 0.7; }
@media (max-width: 1279px) { table.tiers tbody td { height: auto; } } /* the fixed row height of the desktop table cuts a description of three lines */

/* 404 and other error pages, same look as wattnet.eu/404 */
.not-found { align-items: center; text-align: center; }
.not-found .container { margin-block: auto; }
.not-found h1.code { margin: 0 0 0.5rem; font-size: 8rem; line-height: 1; color: var(--primary-400); background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.not-found h2 { margin: 0 0 1rem; padding-bottom: 0.15em; font-size: 1.875rem; line-height: 1.2; background: linear-gradient(to right, #fff, var(--primary-200), var(--primary-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found .lead { max-width: 42rem; margin: 0 auto 2rem; font-size: 1.25rem; color: var(--g-300); }
.not-found .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
@media (min-width: 768px) { .not-found h2 { font-size: 2.25rem; } }
/* The error content rises in, as on wattnet.eu; only this block moves, so the header stays still */
.not-found .container { animation: 0.5s ease-out both rise-in; }
@keyframes rise-in { from { opacity: 0; transform: translateY(1.25rem); } }
@media (prefers-reduced-motion: reduce) { .not-found .container { animation: none; } }

.tier-rows { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.tier-row { display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0.875rem; background: rgba(15, 23, 42, 0.5); overflow: hidden; }
.tier-row.is-current { border-color: var(--accent-500); box-shadow: 0 0 0 1px var(--accent-500); }
.tier-row.is-custom { color: var(--s-400); }
.tier-id { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding: 1.1rem 1.5rem; }
.tier-row.is-current .tier-id { background: rgba(148, 206, 36, 0.09); }
.tier-id h2 { display: flex; align-items: center; gap: 0.75rem; margin: 0; font-size: 1.2rem; }
.tier-id p { margin: 0; max-width: 38rem; font-size: 1rem; line-height: 1.5; color: var(--s-400); }
.tier-row .tier-icon { color: var(--accent-400); }
.tier-badge { padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-400); background: rgba(148, 206, 36, 0.14); }
.tier-limits { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.tier-limits > div { flex: 1 1 12rem; padding: 0.9rem 0.5rem 0.9rem 1.1rem; border-right: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.tier-limits dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--s-400); }
.tier-limits dd { margin: 0.25rem 0 0; font-size: 1rem; font-weight: 600; color: #fff; }
.tier-agreement { margin: 0; padding: 0.9rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.07); color: var(--s-400); }
.tier-note { padding: 1rem 1.5rem 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.85rem; line-height: 1.55; color: var(--s-400); }
.tier-note h3 { margin: 0 0 0.5rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--s-400); }
.tier-note p { margin: 0.5rem 0 0; }
.tier-note blockquote { margin: 0.5rem 0 0; padding: 0.6rem 0.9rem; border-radius: 0.5rem; background: rgba(255, 255, 255, 0.04); color: var(--g-300); }
.tier-note a { color: var(--accent-400); }
.tier-note .terms { margin-top: 0.9rem; font-size: 0.8rem; }
@media (min-width: 1100px) {
    .tier-limits { flex-wrap: nowrap; } .tier-limits > div { flex: 1 1 0; min-width: 0; } .tier-limits dd { white-space: nowrap; }
    .tier-limits .lim-credentials { flex-grow: 1.1; } .tier-limits .lim-zones { flex-grow: 1.3; } .tier-limits .lim-forecast { flex-grow: 1; }
    .tier-limits .lim-requests { flex-grow: 3.1; } .tier-limits .lim-range { flex-grow: 2.2; } .tier-limits .lim-endpoints { flex-grow: 1.4; }
    .tier-limits .lim-requests dd, .tier-limits .lim-range dd { white-space: normal; }
} /* the same widths in every card; Requests is the widest so its text fits on one line */
.tier-agreement a { color: var(--accent-400); }
.tier-row.is-current .tier-id p { color: var(--g-300); } /* more contrast on the tinted header */
.tier-limits dd small { margin-left: 0.4rem; font-size: 0.85rem; font-weight: 400; color: var(--s-400); }
.usage-note.justify { text-align: justify; hyphens: auto; }
.tier-action { margin: 0; padding: 0.7rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.9rem; color: var(--s-400); }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent-400); font: inherit; text-decoration: underline; cursor: pointer; }
.tier-action.waiting { display: flex; align-items: center; gap: 0.7rem; color: var(--g-300); }
.tier-action.waiting strong { color: #fff; }
.tier-action .pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0.6rem; border: 1px solid rgba(250, 204, 21, 0.45); border-radius: 999px; background: rgba(250, 204, 21, 0.1); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #facc15; }
.tier-action .pill::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #facc15; animation: pill-pulse 1.8s ease-in-out infinite; }
@keyframes pill-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .tier-action .pill::before { animation: none; } }
.modal-card.pick { max-width: min(80rem, 96vw); overflow-x: hidden; container-type: inline-size; }
.progress { margin: 0 2.25rem 1.5rem; }
.progress p { display: flex; justify-content: space-between; margin: 0 0 0.5rem; font-size: 0.8rem; color: var(--s-400); }
.progress strong { font-weight: 600; color: #fff; }
.progress .bar { height: 4px; overflow: hidden; border-radius: 2px; background: var(--s-700); }
.progress .bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent-500); }
.progress .fill-1 { width: 50%; } /* not p1 and p2: those are the dots of the diagram of the landing, which move any element along a path */
.progress .fill-2 { width: 100%; animation: bar-grow 0.4s ease-out; }
@keyframes bar-grow { from { width: 50%; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .progress .fill-2 { animation: none; } }
@media (max-width: 560px) { .progress { margin: 0 1.4rem 1.1rem; } }
/* The move between the steps of the request: the content comes in from the side it is going to */
.modal-card.go-forward .modal-body, .modal-card.go-forward .modal-foot { animation: step-in-right 0.35s ease-out both; }
.modal-card.go-back .modal-body, .modal-card.go-back .modal-foot { animation: step-in-left 0.35s ease-out both; }
@keyframes step-in-right { from { opacity: 0; transform: translateX(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes step-in-left { from { opacity: 0; transform: translateX(-1.25rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-card.go-forward .modal-body, .modal-card.go-forward .modal-foot, .modal-card.go-back .modal-body, .modal-card.go-back .modal-foot { animation: none; } }
@container (min-width: 60rem) {
    .tier-limits { flex-wrap: nowrap; } .tier-limits > div { flex: 1 1 0; min-width: 0; } .tier-limits dd { white-space: nowrap; }
    .tier-limits .lim-credentials { flex-grow: 1.1; } .tier-limits .lim-zones { flex-grow: 1.3; } .tier-limits .lim-forecast { flex-grow: 1; }
    .tier-limits .lim-requests { flex-grow: 3.1; } .tier-limits .lim-range { flex-grow: 2.2; } .tier-limits .lim-endpoints { flex-grow: 1.4; }
    .tier-limits .lim-requests dd, .tier-limits .lim-range dd { white-space: normal; }
}
/* The dialog of a request of access: the cards of the access page, to pick one */
.level-pick { margin: 0 0 0.5rem; padding: 0; min-width: 0; border: 0; display: grid; gap: 1rem; }
.lv-facts { font-size: 0.85rem; font-weight: 500; line-height: 1.4; color: var(--g-300); }
/* What they have and what they ask for: the same neutral box, one line each (accent is only for what is selected) */
.lv-chosen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding: 0.6rem 1rem; border: 1px solid var(--s-700); border-radius: 0.65rem; background: rgba(2, 6, 23, 0.35); }
.lv-chosen > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.7rem; }
.lv-name { display: inline-flex; align-items: center; gap: 0.5rem; }
.lv-name strong { font-size: 1rem; color: #fff; }
.lv-chosen .tier-icon { width: 1.5rem; height: 1.5rem; border-radius: 0.4rem; color: var(--g-300); }
.lv-chosen .tier-icon svg { width: 0.9rem; height: 0.9rem; }
.lv-chosen .lv-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--s-400); }
.tier-row.pickable { position: relative; margin: 0; cursor: pointer; transition: border-color 0.15s; }
.tier-row.pickable:hover { border-color: var(--s-500, #64748b); }
.tier-row.pickable label { display: inline; margin: 0; font: inherit; font-weight: 700; color: #fff; cursor: pointer; }
.tier-row.pickable label::after { content: ""; position: absolute; inset: 0; }
.modal-body .tier-row.pickable input[type="radio"] { display: inline-block; width: 1.2rem; height: 1.2rem; margin: 0; flex: none; accent-color: var(--accent-500); }
.tier-row.pickable:has(input:checked) { border-color: var(--accent-500); box-shadow: 0 0 0 1px var(--accent-500); }
.tier-row.pickable:has(input:checked) .tier-id { background: rgba(148, 206, 36, 0.09); }
.tier-row.pickable:has(input:checked) .tier-id p { color: var(--g-300); }
.tier-row.pickable:has(input:focus-visible) { outline: 3px solid rgba(148, 206, 36, 0.35); outline-offset: 2px; }
.modal-body textarea[name="reason"] { min-height: 8rem; resize: vertical; }
.modal-body .reason-hint { display: flex; justify-content: space-between; gap: 1rem; margin: 0.75rem 0 0; }
.reason-hint .counter { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-chosen .lv-facts { padding-left: 0.9rem; border-left: 1px solid var(--s-600, #475569); }
@media (max-width: 720px) {
    .lv-chosen .lv-facts { flex-basis: 100%; padding-left: 0; border-left: 0; }
    .lv-chosen { padding: 0.7rem 0.9rem; }
    .modal-card.pick .tier-id { padding: 0.9rem 1rem; }
    .modal-card.pick .tier-id p { max-width: none; font-size: 0.9rem; }
}
.tier-row.pickable .tier-id h2 { gap: 1.1rem; }
.tier-row.pickable .tier-id h2 .tier-icon { margin-left: 0.15rem; }
/* Both steps of the request have the same height: the footer stays at the bottom and the body takes what is left */
.modal-card.pick { display: flex; flex-direction: column; min-height: min(42rem, 92vh); }
.modal-card.pick .modal-body { flex: 1; }
.modal-card.pick .modal-body { display: flex; flex-direction: column; }
.modal-card.pick textarea[name="reason"] { flex: 1; resize: none; } /* in step 2 the box takes the room that is left */
/* A message that stays in the corner of the screen, at the right edge of the window, until they close it */
.toast { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.9rem; width: min(calc(100% - 2rem), 26rem); padding: 1.1rem 1rem 1.1rem 1.15rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.9rem; background: linear-gradient(120deg, rgba(148, 206, 36, 0.12), rgba(148, 206, 36, 0) 55%), rgba(15, 23, 42, 0.98); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); animation: toast-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.toast.rejected { background: linear-gradient(120deg, rgba(250, 204, 21, 0.12), rgba(250, 204, 21, 0) 55%), rgba(15, 23, 42, 0.98); }
.toast.relogin { animation: toast-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), toast-glow 2s ease-in-out 0.5s 3; }
.toast > div { display: grid; gap: 0.25rem; flex: 1; min-width: 0; font-size: 0.86rem; line-height: 1.45; color: var(--g-300); }
.toast strong { font-size: 0.97rem; line-height: 1.3; color: #fff; }
.toast-icon { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: rgba(148, 206, 36, 0.16); color: var(--accent-400); box-shadow: 0 0 0 4px rgba(148, 206, 36, 0.08); }
.toast.rejected .toast-icon { background: rgba(250, 204, 21, 0.16); color: #facc15; box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.08); }
.toast-icon svg { width: 1.1rem; height: 1.1rem; }
.toast-x { padding: 0 0.25rem; border: 0; background: none; color: var(--s-400); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.toast-x:hover { color: #fff; }
.toast-link { justify-self: start; margin-top: 0.15rem; padding: 0; border: 0; background: none; color: var(--accent-400); font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.toast .btn { flex-basis: 100%; max-width: calc(100% - 3.2rem); margin-left: 3.2rem; justify-content: center; }
@keyframes toast-in { from { opacity: 0; transform: translateX(2rem); } to { opacity: 1; transform: none; } }
@keyframes toast-glow { 0%, 100% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); } 50% { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 5px rgba(148, 206, 36, 0.22); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.relogin { animation: none; } }
@media (max-width: 560px) { .toast { right: 1rem; bottom: 1rem; } }
/* The bell of the header and its panel: what happened to them, kept */
.notif { position: relative; display: inline-flex; align-items: center; }
.bell { border: 0; background: none; cursor: pointer; }
.bell[aria-expanded="true"] { color: #fff; }
.bell-badge { position: absolute; top: -0.1rem; right: -0.1rem; display: grid; place-items: center; min-width: 1.05rem; height: 1.05rem; padding: 0 0.25rem; border-radius: 999px; background: #facc15; font-size: 0.65rem; font-weight: 800; color: #1f2937; pointer-events: none; }
.bell-badge:empty { display: none; }
.user-chip { position: relative; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 80; width: 24rem; max-height: min(70vh, 32rem); overflow: hidden auto; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0.9rem; background: rgba(15, 23, 42, 0.99); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); animation: panel-in 0.2s ease-out; }
.notif-panel[hidden] { display: none; }
.notif-head { position: sticky; top: 0; padding: 0.85rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(15, 23, 42, 0.99); font-size: 0.9rem; color: #fff; }
.notif-empty { margin: 0; padding: 1.4rem 1.1rem; font-size: 0.85rem; line-height: 1.5; color: var(--s-400); }
.notif-list { margin: 0; padding: 0; list-style: none; }
.notif-item { display: flex; gap: 0.8rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: rgba(250, 204, 21, 0.07); }
.notif-icon { display: grid; place-items: center; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: var(--g-300); }
.notif-item.approved .notif-icon, .notif-item.access .notif-icon { background: rgba(148, 206, 36, 0.16); color: var(--accent-400); }
.notif-item.rejected .notif-icon, .notif-item.blocked .notif-icon { background: rgba(250, 204, 21, 0.16); color: #facc15; }
.notif-icon svg { width: 0.95rem; height: 0.95rem; }
.notif-item > div { display: grid; gap: 0.15rem; min-width: 0; font-size: 0.82rem; line-height: 1.45; color: var(--s-400); }
.notif-item b { font-size: 0.88rem; color: #fff; }
.notif-item time { font-size: 0.72rem; color: var(--s-500, #64748b); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-0.4rem); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notif-panel { animation: none; } }
@media (max-width: 720px) { .notif-panel { position: fixed; left: 1rem; right: 1rem; top: 7.5rem; width: auto; } .bell-badge { top: 0.2rem; right: 0.2rem; } }
.modal-body label[for="req-reason"] { margin: 0.5rem 0 0.65rem; font-size: 0.95rem; font-weight: 600; color: #fff; }
.modal-card.pick textarea[name="reason"] { margin-top: 0; }
/* The confirmation of a request */
.modal-card.sent { max-width: 34rem; }
.sent-hero { display: grid; justify-items: center; gap: 0.35rem; padding: 2.25rem 2.25rem 1.25rem; text-align: center; }
.sent-hero h2 { margin: 0.5rem 0 0; font-size: 1.4rem; }
.sent-hero p { margin: 0; color: var(--s-400); }
.sent-hero strong { color: #fff; }
.sent-check { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: rgba(148, 206, 36, 0.16); color: var(--accent-400); box-shadow: 0 0 0 6px rgba(148, 206, 36, 0.08); animation: sent-pop 0.4s ease-out; }
.sent-check svg { width: 1.6rem; height: 1.6rem; }
.sent-check svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: sent-draw 0.4s ease-out 0.2s forwards; }
.sent-title { margin: 0 0 0.8rem; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--s-400); }
.sent-next { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.sent-next li { display: flex; align-items: flex-start; gap: 0.85rem; }
.sent-next .n { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(255, 255, 255, 0.07); font-size: 0.8rem; font-weight: 700; color: var(--g-300); }
.sent-next b { display: block; font-size: 0.92rem; color: #fff; }
.sent-next small { display: block; margin-top: 0.1rem; font-size: 0.82rem; line-height: 1.45; color: var(--s-400); }
@keyframes sent-pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
@keyframes sent-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .sent-check { animation: none; } .sent-check svg path { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 560px) { .sent-hero { padding: 1.75rem 1.4rem 1rem; } }
/* A warning: something did not go as they wanted (the yellow of Wattnet, the one of the banner of the console) */
.warn { display: flex; align-items: flex-start; gap: 0.8rem; margin: 0 0 1rem; padding: 0.8rem 1rem; border: 1px solid rgba(250, 204, 21, 0.6); border-radius: 0.65rem; background: rgba(250, 204, 21, 0.12); }
.warn svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: 0.1rem; color: #facc15; }
.warn div { display: grid; gap: 0.1rem; font-size: 0.85rem; color: #fef3c7; }
.warn strong { font-size: 0.92rem; font-weight: 700; color: #fefce8; }
.toast.rejected { border-color: rgba(250, 204, 21, 0.65); }
.toast.rejected .toast-icon { background: rgba(250, 204, 21, 0.16); color: #facc15; }
.toast.rejected .notif-panel { overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.22) transparent; }
.notif-panel::-webkit-scrollbar { width: 8px; }
.notif-panel::-webkit-scrollbar-track { background: transparent; }
.notif-panel::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(255, 255, 255, 0.22); background-clip: padding-box; }
.notif-item > div, .notif-link > div { overflow-wrap: anywhere; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.notif-new { padding: 0.1rem 0.55rem; border-radius: 999px; background: rgba(250, 204, 21, 0.14); font-size: 0.7rem; font-weight: 700; color: #facc15; }
.notif-item { transition: background 0.15s; }
.notif-item:hover { background: rgba(255, 255, 255, 0.04); }
.notif-item.unread:hover { background: rgba(250, 204, 21, 0.1); }
/* The page of the notifications: the history, by day */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 1.25rem; }
.chip { padding: 0.4rem 0.9rem; border: 1px solid var(--s-700); border-radius: 999px; font-size: 0.85rem; font-weight: 500; color: var(--s-300); text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.chip:hover { border-color: var(--s-500, #64748b); color: #fff; }
.chip.on { border-color: var(--accent-500); background: rgba(148, 206, 36, 0.09); color: #fff; }
.notif-page { border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0.875rem; background: rgba(15, 23, 42, 0.5); overflow: hidden; }
.day-head { margin: 0; padding: 0.7rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s-400); }
.notif-page .notif-item { align-items: center; padding: 1rem 1.25rem; }
.notif-page .notif-item > div { flex: 1; font-size: 0.9rem; }
.notif-page .notif-item b { font-size: 0.95rem; }
.notif-page .notif-item time { flex: none; font-size: 0.78rem; white-space: nowrap; color: var(--s-400); }
.notif-page .notif-icon { width: 2.1rem; height: 2.1rem; }
.older { margin: 1.25rem 0 0; text-align: center; }
@media (max-width: 640px) { .notif-page .notif-item { flex-wrap: wrap; } .notif-page .notif-item time { flex-basis: 100%; margin-left: 2.9rem; } }
