/**
 * Konsul Platform — Portal Styles
 * Client portal template styles
 */

/* --- portal/calendar --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Reserve scrollbar width even when content fits — prevents horizontal
   shift on pages that do/don't need a scrollbar. Fixes "page size moving
   on refresh" where the scrollbar appears after fonts/images load. */
html {
  scrollbar-gutter: stable;
}

:root {
--black: #0a0a0f;
--bg-card: rgba(22, 27, 34, 0.6);
--white: #ffffff;
--text: #c9d1d9;
--text-muted: #8b949e;
--accent: #6366f1;
--accent-bright: #00BEFF;
--border: rgba(99, 102, 241, 0.2);
--grid: rgba(99, 102, 241, 0.1);
--success: #3fb950;
}

body {
font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--black);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
}

/* Grid overlay */
.grid-overlay {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
background-image:
linear-gradient(var(--grid) 1px, transparent 1px),
linear-gradient(90deg, var(--grid) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.4;
}

.scanlines {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 1000;
background: repeating-linear-gradient(0deg, rgba(0,0,0,0.03), rgba(0,0,0,0.03) 1px, transparent 1px, transparent 2px);
opacity: 0.4;
}

/* Header */
.header {
background: rgba(10, 10, 15, 0.8);
backdrop-filter: blur(20px);
padding: 12px 20px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
position: relative;
z-index: 10;
}

.logo {
display: flex;
align-items: center;
text-decoration: none;
}


.logo-o {
height: 0.75em;
width: auto;
margin: 0 0.02em;
}

.header-right {
display: flex;
align-items: center;
gap: 16px;
}

.user-info {
font-family: 'Space Mono', monospace;
color: var(--text-muted);
font-size: 12px;
letter-spacing: 0.05em;
text-transform: uppercase;
}

.btn-logout {
padding: 8px 16px;
border-radius: 6px;
font-family: 'Space Mono', monospace;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
cursor: pointer;
text-decoration: none;
background: transparent;
border: 1px solid var(--border);
color: var(--text);
transition: all 0.2s ease;
}

.btn-logout:hover {
border-color: var(--accent-bright);
color: var(--accent-bright);
}

.subheader {
background: rgba(10, 10, 15, 0.6);
border-bottom: 1px solid var(--border);
padding: 12px 20px;
position: relative;
z-index: 10;
}

.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
font-family: 'Space Mono', monospace;
font-size: 12px;
}

.breadcrumb a {
color: var(--text-muted);
text-decoration: none;
}

.breadcrumb a:hover {
color: var(--accent-bright);
}

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


.page-header {
margin-bottom: 24px;
}

.page-header h1 {
font-size: clamp(1.5rem, 4vw, 2rem);
font-weight: 800;
margin-bottom: 8px;
background: linear-gradient(90deg, #ffffff 0%, var(--accent-bright) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.page-header p {
font-family: 'Space Mono', monospace;
color: var(--text-muted);
font-size: 13px;
}

/* Event list */


/* --- portal/confirm_login --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
--black: #0a0a0f;
--white: #ffffff;
--accent: #6366f1;
--accent-bright: #00BEFF;
--grid: rgba(99, 102, 241, 0.15);
--success: #3fb950;
}

body {
font-family: 'Sora', sans-serif;
background: var(--black);
color: var(--white);
min-height: 100vh;
overflow-x: hidden;
display: flex;
flex-direction: column;
}

/* Grid overlay */
.grid-overlay {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
background-image:
linear-gradient(var(--grid) 1px, transparent 1px),
linear-gradient(90deg, var(--grid) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.4;
}

/* Animated light beams */
.light-beams {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 0%, black 100%);
mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 0%, black 100%);
}

.beam {
position: absolute;
width: 2px;
height: 100vh;
background: linear-gradient(180deg, transparent 0%, var(--accent-bright) 50%, transparent 100%);
opacity: 0;
animation: beamFall 18s linear infinite, beamSway 24s ease-in-out infinite;
}

.beam:nth-child(1) { left: 10%; animation-delay: 0s, 0s; }
.beam:nth-child(2) { left: 25%; animation-delay: 4s, 2s; }
.beam:nth-child(3) { left: 40%; animation-delay: 8s, 4s; }
.beam:nth-child(4) { left: 60%; animation-delay: 2s, 6s; }
.beam:nth-child(5) { left: 75%; animation-delay: 6s, 8s; }
.beam:nth-child(6) { left: 90%; animation-delay: 10s, 10s; }

@keyframes beamFall {
0% { transform: translateY(-100%); opacity: 0; }
10% { opacity: 0.3; }
90% { opacity: 0.3; }
100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes beamSway {
0%, 100% { margin-left: 0; }
25% { margin-left: 15px; }
75% { margin-left: -15px; }
}

/* Accent ring canvas */
.accent-ring-canvas {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 0;
pointer-events: none;
}

/* Corner brackets */
.corner {
position: fixed;
width: 60px;
height: 60px;
z-index: 5;
opacity: 0.3;
}

.corner::before,
.corner::after {
content: '';
position: absolute;
background: var(--accent-bright);
}

.corner-tl { top: 2rem; left: 2rem; }
.corner-tl::before { width: 2px; height: 30px; top: 0; left: 0; }
.corner-tl::after { width: 30px; height: 2px; top: 0; left: 0; }

.corner-tr { top: 2rem; right: 2rem; }
.corner-tr::before { width: 2px; height: 30px; top: 0; right: 0; }
.corner-tr::after { width: 30px; height: 2px; top: 0; right: 0; }

.corner-bl { bottom: 2rem; left: 2rem; }
.corner-bl::before { width: 2px; height: 30px; bottom: 0; left: 0; }
.corner-bl::after { width: 30px; height: 2px; bottom: 0; left: 0; }

.corner-br { bottom: 2rem; right: 2rem; }
.corner-br::before { width: 2px; height: 30px; bottom: 0; right: 0; }
.corner-br::after { width: 30px; height: 2px; bottom: 0; right: 0; }

/* Scanlines */
.scanlines {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 1000;
background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 2px);
opacity: 0.3;
}

/* Main content */


/* Logo */
.title-line {
font-size: clamp(2.5rem, 8vw, 4rem);
font-weight: 800;
line-height: 0.85;
letter-spacing: -0.04em;
text-transform: uppercase;
background: linear-gradient(90deg, #ffffff 0%, #1298D5 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 3rem;
position: relative;
}

.title-glow {
position: absolute;
width: 400px;
height: 200px;
background: radial-gradient(ellipse at center, rgba(18, 152, 213, 0.15) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
filter: blur(60px);
z-index: -1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}

.logo-o {
height: 0.85em;
width: auto;
margin: 0 0.02em;
position: relative;
top: -0.05rem;
mix-blend-mode: lighten;
}

/* Card */
.card {
width: 100%;
max-width: 400px;
text-align: center;
}


.card h1 {
font-family: 'Sora', sans-serif;
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 0.75rem;
color: var(--white);
}


/* Mobile responsive */
@media (max-width: 768px) {
.title-line {
font-size: clamp(2rem, 10vw, 3rem);
margin-bottom: 2rem;
}

.corner { display: none; }

.accent-ring-canvas { display: none; }


.title-glow {
width: 200px;
height: 100px;
}
}

/* --- portal/dashboard --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--black: #0a0a0f;
--bg-card: rgba(22, 27, 34, 0.6);
--white: #ffffff;
--text: #c9d1d9;
--text-muted: #8b949e;
--accent: #6366f1;
--accent-mid: #8b5cf6;
--accent-bright: #00BEFF;
--border: rgba(99, 102, 241, 0.2);
--grid: rgba(99, 102, 241, 0.1);
--success: #3fb950;
--warning: #d29922;
--purple: #a371f7;
--pink: #db61a2;
--cyan: #00BEFF;
--indigo: #6366f1;
}

body {
font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--black);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
}

/* Grid overlay */
.grid-overlay {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
background-image:
linear-gradient(var(--grid) 1px, transparent 1px),
linear-gradient(90deg, var(--grid) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.4;
}

/* Scanlines */
.scanlines {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 1000;
background: repeating-linear-gradient(
0deg,
rgba(0, 0, 0, 0.03),
rgba(0, 0, 0, 0.03) 1px,
transparent 1px,
transparent 2px
);
opacity: 0.4;
}

/* Corner brackets */
.corner {
position: fixed;
width: 40px;
height: 40px;
z-index: 5;
opacity: 0.25;
}

.corner::before,
.corner::after {
content: '';
position: absolute;
background: var(--accent-bright);
}

.corner-tl { top: 1rem; left: 1rem; }
.corner-tl::before { width: 2px; height: 20px; top: 0; left: 0; }
.corner-tl::after { width: 20px; height: 2px; top: 0; left: 0; }

.corner-tr { top: 1rem; right: 1rem; }
.corner-tr::before { width: 2px; height: 20px; top: 0; right: 0; }
.corner-tr::after { width: 20px; height: 2px; top: 0; right: 0; }

.corner-bl { bottom: 1rem; left: 1rem; }
.corner-bl::before { width: 2px; height: 20px; bottom: 0; left: 0; }
.corner-bl::after { width: 20px; height: 2px; bottom: 0; left: 0; }

.corner-br { bottom: 1rem; right: 1rem; }
.corner-br::before { width: 2px; height: 20px; bottom: 0; right: 0; }
.corner-br::after { width: 20px; height: 2px; bottom: 0; right: 0; }

/* Header */
.header {
background: rgba(10, 10, 15, 0.8);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
padding: 12px 20px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
position: relative;
z-index: 10;
}

.logo {
display: flex;
align-items: center;
text-decoration: none;
}


.logo-o {
height: 0.75em;
width: auto;
margin: 0 0.02em;
position: relative;
top: -0.02em;
}

.header-right {
display: flex;
align-items: center;
gap: 16px;
}

.user-info {
font-family: 'Space Mono', monospace;
color: var(--text-muted);
font-size: 12px;
letter-spacing: 0.05em;
text-transform: uppercase;
}

.btn-logout {
padding: 8px 16px;
border-radius: 6px;
font-family: 'Space Mono', monospace;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
cursor: pointer;
text-decoration: none;
background: transparent;
border: 1px solid var(--border);
color: var(--text);
transition: all 0.2s ease;
}

.btn-logout:hover {
border-color: var(--accent-bright);
color: var(--accent-bright);
box-shadow: 0 0 15px rgba(0, 190, 255, 0.2);
}

/* Main content - 40/60 split */


/* Left column - Navigation tiles */


/* Card grid */


.card {
background: var(--bg-card);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
text-decoration: none;
color: inherit;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
display: flex;
align-items: center;
gap: 16px;
}

.card::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg,
rgba(0, 190, 255, 0.1) 0%,
transparent 50%);
opacity: 0;
transition: opacity 0.3s ease;
}

.card:hover {
border-color: var(--accent-bright);
transform: translateX(4px);
box-shadow:
0 0 30px rgba(0, 190, 255, 0.15),
0 10px 30px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
opacity: 1;
}


.card h3 {
font-size: 14px;
font-weight: 600;
margin-bottom: 4px;
color: var(--white);
}

.card p {
font-family: 'Space Mono', monospace;
color: var(--text-muted);
font-size: 11px;
line-height: 1.4;
letter-spacing: 0.02em;
}


/* Right column - Timeline */


/* Fade overlay on right column */


/* Timeline - CI/CD Pipeline Style */


/* Main vertical connector line - RIGHT SIDE */


/* Date header node - RIGHT SIDE */


/* Item connector dot - RIGHT SIDE */


/* Color dots by type */


/* Commit group - collapsible */


/* Connector line for grouped items - RIGHT SIDE */


/* Projects Accordion Section - Inside left column */


/* Mini-kanban board for expanded projects */


/* Master Projects (Parent containers) */


/* Responsive */


@media (max-width: 640px) {


.corner {
width: 24px;
height: 24px;
}

.corner::before { height: 12px !important; }
.corner::after { width: 12px !important; }


}

/* Loading spinner for lazy loaded content */


/* --- portal/home --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--bg: #0d1117;
--bg-card: #161b22;
--bg-elevated: #161b22;
--bg-input: #0d1117;
--text: #c9d1d9;
--text-muted: #8b949e;
--text-faint: #6e7681;
--border: #30363d;
--border-light: #21262d;
--accent: #58a6ff;
--success: #3fb950;
--warning: #d29922;
--danger: #f85149;
--purple: #a371f7;
--pink: #db61a2;
}

body {
font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
}

/* Header */
.header {
background: var(--bg-card);
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
}

.logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}


.btn {
padding: 6px 14px;
border-radius: 6px;
font-family: inherit;
font-size: 13px;
font-weight: 500;
cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.15s;
}


/* Hero Section */


/* Features */


/* Footer */


/* --- portal/invalid --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--bg: #0d1117;
--bg-card: #161b22;
--bg-elevated: #161b22;
--bg-input: #0d1117;
--text: #c9d1d9;
--text-muted: #8b949e;
--text-faint: #6e7681;
--border: #30363d;
--border-light: #21262d;
--accent: #58a6ff;
--success: #3fb950;
--warning: #d29922;
--danger: #f85149;
--purple: #a371f7;
--pink: #db61a2;
}

body {
font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
display: flex;
flex-direction: column;
}

.header {
background: var(--bg-card);
padding: 12px 16px;
border-bottom: 1px solid var(--border);
}

.logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}


.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
padding: 32px;
width: 100%;
max-width: 380px;
text-align: center;
}


h1 {
font-size: 20px;
font-weight: 600;
margin-bottom: 8px;
}

p {
color: var(--text-muted);
font-size: 13px;
line-height: 1.6;
}

/* --- portal/link_expired --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
--black: #0a0a0f;
--white: #ffffff;
--accent: #6366f1;
--accent-bright: #00BEFF;
--grid: rgba(99, 102, 241, 0.15);
--warning: #d29922;
}

body {
font-family: 'Sora', sans-serif;
background: var(--black);
color: var(--white);
min-height: 100vh;
overflow-x: hidden;
display: flex;
flex-direction: column;
}

/* Grid overlay */
.grid-overlay {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
background-image:
linear-gradient(var(--grid) 1px, transparent 1px),
linear-gradient(90deg, var(--grid) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.4;
}

/* Animated light beams */
.light-beams {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 0%, black 100%);
mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 0%, black 100%);
}

.beam {
position: absolute;
width: 2px;
height: 100vh;
background: linear-gradient(180deg, transparent 0%, var(--accent-bright) 50%, transparent 100%);
opacity: 0;
animation: beamFall 18s linear infinite, beamSway 24s ease-in-out infinite;
}

.beam:nth-child(1) { left: 10%; animation-delay: 0s, 0s; }
.beam:nth-child(2) { left: 25%; animation-delay: 4s, 2s; }
.beam:nth-child(3) { left: 40%; animation-delay: 8s, 4s; }
.beam:nth-child(4) { left: 60%; animation-delay: 2s, 6s; }
.beam:nth-child(5) { left: 75%; animation-delay: 6s, 8s; }
.beam:nth-child(6) { left: 90%; animation-delay: 10s, 10s; }

@keyframes beamFall {
0% { transform: translateY(-100%); opacity: 0; }
10% { opacity: 0.3; }
90% { opacity: 0.3; }
100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes beamSway {
0%, 100% { margin-left: 0; }
25% { margin-left: 15px; }
75% { margin-left: -15px; }
}

/* Corner brackets */
.corner {
position: fixed;
width: 60px;
height: 60px;
z-index: 5;
opacity: 0.3;
}

.corner::before,
.corner::after {
content: '';
position: absolute;
background: var(--accent-bright);
}

.corner-tl { top: 2rem; left: 2rem; }
.corner-tl::before { width: 2px; height: 30px; top: 0; left: 0; }
.corner-tl::after { width: 30px; height: 2px; top: 0; left: 0; }

.corner-tr { top: 2rem; right: 2rem; }
.corner-tr::before { width: 2px; height: 30px; top: 0; right: 0; }
.corner-tr::after { width: 30px; height: 2px; top: 0; right: 0; }

.corner-bl { bottom: 2rem; left: 2rem; }
.corner-bl::before { width: 2px; height: 30px; bottom: 0; left: 0; }
.corner-bl::after { width: 30px; height: 2px; bottom: 0; left: 0; }

.corner-br { bottom: 2rem; right: 2rem; }
.corner-br::before { width: 2px; height: 30px; bottom: 0; right: 0; }
.corner-br::after { width: 30px; height: 2px; bottom: 0; right: 0; }

/* Scanlines */
.scanlines {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 1000;
background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 2px);
opacity: 0.3;
}

/* Main content */


/* Logo */
.title-line {
font-size: clamp(2.5rem, 8vw, 4rem);
font-weight: 800;
line-height: 0.85;
letter-spacing: -0.04em;
text-transform: uppercase;
background: linear-gradient(90deg, #ffffff 0%, #1298D5 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 3rem;
position: relative;
}

.title-glow {
position: absolute;
width: 400px;
height: 200px;
background: radial-gradient(ellipse at center, rgba(18, 152, 213, 0.15) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
filter: blur(60px);
z-index: -1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}

.logo-o {
height: 0.85em;
width: auto;
margin: 0 0.02em;
position: relative;
top: -0.05rem;
mix-blend-mode: lighten;
}

/* Card */
.card {
width: 100%;
max-width: 400px;
text-align: center;
}


.card h1 {
font-family: 'Sora', sans-serif;
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 0.75rem;
color: var(--white);
}


/* Mobile responsive */
@media (max-width: 768px) {
.title-line {
font-size: clamp(2rem, 10vw, 3rem);
margin-bottom: 2rem;
}

.corner { display: none; }


.title-glow {
width: 200px;
height: 100px;
}
}

/* --- portal/link_sent --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
--black: #0a0a0f;
--white: #ffffff;
--accent: #6366f1;
--accent-bright: #00BEFF;
--grid: rgba(99, 102, 241, 0.15);
--success: #3fb950;
}

body {
font-family: 'Sora', sans-serif;
background: var(--black);
color: var(--white);
min-height: 100vh;
overflow-x: hidden;
display: flex;
flex-direction: column;
}

/* Grid overlay */
.grid-overlay {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
background-image:
linear-gradient(var(--grid) 1px, transparent 1px),
linear-gradient(90deg, var(--grid) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.4;
}

/* Animated light beams */
.light-beams {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 0%, black 100%);
mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 0%, black 100%);
}

.beam {
position: absolute;
width: 2px;
height: 100vh;
background: linear-gradient(180deg, transparent 0%, var(--accent-bright) 50%, transparent 100%);
opacity: 0;
animation: beamFall 18s linear infinite, beamSway 24s ease-in-out infinite;
}

.beam:nth-child(1) { left: 10%; animation-delay: 0s, 0s; }
.beam:nth-child(2) { left: 25%; animation-delay: 4s, 2s; }
.beam:nth-child(3) { left: 40%; animation-delay: 8s, 4s; }
.beam:nth-child(4) { left: 60%; animation-delay: 2s, 6s; }
.beam:nth-child(5) { left: 75%; animation-delay: 6s, 8s; }
.beam:nth-child(6) { left: 90%; animation-delay: 10s, 10s; }

@keyframes beamFall {
0% { transform: translateY(-100%); opacity: 0; }
10% { opacity: 0.3; }
90% { opacity: 0.3; }
100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes beamSway {
0%, 100% { margin-left: 0; }
25% { margin-left: 15px; }
75% { margin-left: -15px; }
}

/* Corner brackets */
.corner {
position: fixed;
width: 60px;
height: 60px;
z-index: 5;
opacity: 0.3;
}

.corner::before,
.corner::after {
content: '';
position: absolute;
background: var(--accent-bright);
}

.corner-tl { top: 2rem; left: 2rem; }
.corner-tl::before { width: 2px; height: 30px; top: 0; left: 0; }
.corner-tl::after { width: 30px; height: 2px; top: 0; left: 0; }

.corner-tr { top: 2rem; right: 2rem; }
.corner-tr::before { width: 2px; height: 30px; top: 0; right: 0; }
.corner-tr::after { width: 30px; height: 2px; top: 0; right: 0; }

.corner-bl { bottom: 2rem; left: 2rem; }
.corner-bl::before { width: 2px; height: 30px; bottom: 0; left: 0; }
.corner-bl::after { width: 30px; height: 2px; bottom: 0; left: 0; }

.corner-br { bottom: 2rem; right: 2rem; }
.corner-br::before { width: 2px; height: 30px; bottom: 0; right: 0; }
.corner-br::after { width: 30px; height: 2px; bottom: 0; right: 0; }

/* Scanlines */
.scanlines {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 1000;
background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 2px);
opacity: 0.3;
}

/* Main content */


/* Logo */
.title-line {
font-size: clamp(2.5rem, 8vw, 4rem);
font-weight: 800;
line-height: 0.85;
letter-spacing: -0.04em;
text-transform: uppercase;
background: linear-gradient(90deg, #ffffff 0%, #1298D5 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 3rem;
position: relative;
}

.title-glow {
position: absolute;
width: 400px;
height: 200px;
background: radial-gradient(ellipse at center, rgba(18, 152, 213, 0.15) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
filter: blur(60px);
z-index: -1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}

.logo-o {
height: 0.85em;
width: auto;
margin: 0 0.02em;
position: relative;
top: -0.05rem;
mix-blend-mode: lighten;
}

/* Card */
.card {
width: 100%;
max-width: 400px;
text-align: center;
}


.card h1 {
font-family: 'Sora', sans-serif;
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 0.75rem;
color: var(--white);
}


.expire-text {
font-family: 'Space Mono', monospace;
font-size: 0.7rem;
color: rgba(255, 255, 255, 0.35);
line-height: 1.6;
margin-bottom: 1.5rem;
}


.help-text {
font-family: 'Space Mono', monospace;
font-size: 0.65rem;
color: rgba(255, 255, 255, 0.35);
letter-spacing: 0.02em;
}

.help-text a {
color: var(--accent-bright);
text-decoration: none;
transition: color 0.2s;
}

.help-text a:hover {
color: var(--white);
}


/* Mobile responsive */
@media (max-width: 768px) {
.title-line {
font-size: clamp(2rem, 10vw, 3rem);
margin-bottom: 2rem;
}

.corner { display: none; }


.title-glow {
width: 200px;
height: 100px;
}
}

/* --- portal/login --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
--black: #0a0a0f;
--white: #ffffff;
--accent: #6366f1;
--accent-mid: #8b5cf6;
--accent-bright: #00BEFF;
--grid: rgba(99, 102, 241, 0.15);
--success: #3fb950;
--danger: #f85149;
}

body {
font-family: 'Sora', sans-serif;
background: var(--black);
color: var(--white);
min-height: 100vh;
overflow-x: hidden;
display: flex;
flex-direction: column;
}

/* Grid overlay */
.grid-overlay {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
background-image:
linear-gradient(var(--grid) 1px, transparent 1px),
linear-gradient(90deg, var(--grid) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.4;
}

/* Animated light beams */
.light-beams {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 0%, black 100%);
mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 0%, black 100%);
}

.beam {
position: absolute;
width: 2px;
height: 100vh;
background: linear-gradient(180deg, transparent 0%, var(--accent-bright) 50%, transparent 100%);
opacity: 0;
animation: beamFall 18s linear infinite, beamSway 24s ease-in-out infinite;
}

.beam:nth-child(1) { left: 10%; animation-delay: 0s, 0s; }
.beam:nth-child(2) { left: 25%; animation-delay: 4s, 2s; }
.beam:nth-child(3) { left: 40%; animation-delay: 8s, 4s; }
.beam:nth-child(4) { left: 60%; animation-delay: 2s, 6s; }
.beam:nth-child(5) { left: 75%; animation-delay: 6s, 8s; }
.beam:nth-child(6) { left: 90%; animation-delay: 10s, 10s; }

@keyframes beamFall {
0% { transform: translateY(-100%); opacity: 0; }
10% { opacity: 0.3; }
90% { opacity: 0.3; }
100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes beamSway {
0%, 100% { margin-left: 0; }
25% { margin-left: 15px; }
75% { margin-left: -15px; }
}

/* Accent ring canvas */
.accent-ring-canvas {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
z-index: 0;
pointer-events: none;
}

/* Corner brackets */
.corner {
position: fixed;
width: 120px;
height: 120px;
z-index: 1002;
cursor: pointer;
}

.corner::before,
.corner::after {
content: '';
position: absolute;
background: var(--accent-bright);
opacity: 0.3;
transition: opacity 0.3s ease;
}

.corner:hover::before,
.corner:hover::after {
opacity: 0.8;
}

.corner-tl { top: 0; left: 0; padding: 2rem; }
.corner-tl::before { width: 2px; height: 30px; top: 2rem; left: 2rem; }
.corner-tl::after { width: 30px; height: 2px; top: 2rem; left: 2rem; }

.corner-tr { top: 0; right: 0; padding: 2rem; }
.corner-tr::before { width: 2px; height: 30px; top: 2rem; right: 2rem; }
.corner-tr::after { width: 30px; height: 2px; top: 2rem; right: 2rem; }

.corner-bl { bottom: 0; left: 0; padding: 2rem; }
.corner-bl::before { width: 2px; height: 30px; bottom: 2rem; left: 2rem; }
.corner-bl::after { width: 30px; height: 2px; bottom: 2rem; left: 2rem; }

.corner-br { bottom: 0; right: 0; padding: 2rem; }
.corner-br::before { width: 2px; height: 30px; bottom: 2rem; right: 2rem; }
.corner-br::after { width: 30px; height: 2px; bottom: 2rem; right: 2rem; }

/* Scanlines */
.scanlines {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 1000;
background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 2px);
opacity: 0.3;
}

/* Main content */
.login-container {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
z-index: 1001;
padding: 2rem;
}

.login-inner {
border-radius: 16px;
padding: 3rem 2.5rem 2.5rem;
display: flex;
flex-direction: column;
align-items: center;
}

/* Logo */
.title-line {
font-size: clamp(3rem, 10vw, 6rem);
font-weight: 800;
line-height: 0.85;
letter-spacing: -0.04em;
text-transform: uppercase;
background: linear-gradient(90deg, #ffffff 0%, #1298D5 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 3rem;
position: relative;
}

.title-glow {
position: absolute;
width: 400px;
height: 200px;
background: radial-gradient(ellipse at center, rgba(18, 152, 213, 0.15) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
filter: blur(60px);
z-index: -1;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.logo-o {
height: 0.85em;
width: auto;
margin: 0 0.02em;
position: relative;
top: -0.05rem;
mix-blend-mode: lighten;
}

/* Login form */
.login-form {
width: 100%;
max-width: 400px;
}

.login-form h2 {
font-family: 'Sora', sans-serif;
font-size: 1.1rem;
font-weight: 600;
text-align: center;
margin-bottom: 0.25rem;
color: var(--white);
}


.login-form label {
display: block;
font-family: 'Space Mono', monospace;
font-size: 0.7rem;
letter-spacing: 0.05em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.6);
margin-bottom: 0.5rem;
}

.login-form input[type="email"] {
width: 100%;
padding: 0.75rem 1rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
font-family: 'Space Mono', monospace;
font-size: 0.8rem;
color: var(--white);
margin-bottom: 1rem;
transition: border-color 0.2s ease, background 0.2s ease;
}

.login-form input[type="email"]::placeholder {
color: rgba(255, 255, 255, 0.3);
}

.login-form input[type="email"]:focus {
outline: none;
border-color: var(--accent-bright);
background: rgba(0, 190, 255, 0.08);
}

.login-form input[type="email"].no-match {
border-color: #e5534b;
background: rgba(229, 83, 75, 0.08);
animation: borderFlash 0.4s ease;
}

@keyframes borderFlash {
0% { border-color: rgba(255, 255, 255, 0.15); }
30% { border-color: #e5534b; }
60% { border-color: rgba(229, 83, 75, 0.4); }
100% { border-color: #e5534b; }
}

.no-match-msg {
font-family: 'Space Mono', monospace;
font-size: 0.7rem;
color: #e5534b;
margin-top: -0.5rem;
margin-bottom: 0.75rem;
opacity: 0;
max-height: 0;
overflow: hidden;
transition: opacity 0.3s ease, max-height 0.3s ease;
}

.no-match-msg.visible {
opacity: 1;
max-height: 30px;
}

.login-form button {
width: 100%;
padding: 0.875rem 1.5rem;
background: linear-gradient(135deg, var(--accent), var(--accent-bright));
border: none;
border-radius: 8px;
font-family: 'Space Mono', monospace;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--white);
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, max-height 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
max-height: 0;
opacity: 0;
overflow: hidden;
padding: 0 1.5rem;
margin-top: 0;
}

.login-form button.visible {
max-height: 60px;
opacity: 1;
padding: 0.875rem 1.5rem;
margin-top: 0;
}

.login-form button:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(0, 190, 255, 0.3);
}

.login-form button:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
box-shadow: none;
}

/* #803 Passkey sign-in (login page) */
.passkey-block[hidden] { display: none; }
.login-divider {
display: flex;
align-items: center;
gap: 0.75rem;
margin: 1.1rem 0 0.9rem;
color: rgba(255, 255, 255, 0.35);
font-family: 'Space Mono', monospace;
font-size: 0.65rem;
letter-spacing: 0.2em;
text-transform: uppercase;
}
.login-divider::before,
.login-divider::after {
content: '';
flex: 1;
height: 1px;
background: rgba(255, 255, 255, 0.12);
}
/* Outline sibling of the gradient magic-link button; overrides the
   .login-form button collapse (max-height 0 until .visible). */
.login-form .passkey-btn {
max-height: none;
opacity: 1;
margin-top: 0;
padding: 0.875rem 1.5rem;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.2);
color: var(--white);
}
.login-form .passkey-btn svg {
width: 16px;
height: 16px;
}
.login-form .passkey-btn:hover {
border-color: var(--accent);
box-shadow: 0 8px 24px rgba(0, 190, 255, 0.15);
}
.passkey-status {
margin-top: 0.75rem;
font-family: 'Space Mono', monospace;
font-size: 0.7rem;
min-height: 1em;
color: rgba(255, 255, 255, 0.55);
}
.passkey-status.error { color: #e5534b; }
.passkey-help {
margin-top: 0.9rem;
padding: 0.9rem 1rem;
text-align: left;
font-family: 'Space Mono', monospace;
font-size: 0.7rem;
line-height: 1.5;
color: rgba(255, 255, 255, 0.7);
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
}
.passkey-help[hidden] { display: none; }
.passkey-help strong {
display: block;
margin-bottom: 0.5rem;
color: var(--white);
}
.passkey-help ol {
margin: 0 0 0.75rem;
padding-left: 1.2rem;
}
.passkey-help li { margin-bottom: 0.25rem; }
.login-form .passkey-help-btn {
max-height: none;
opacity: 1;
margin-top: 0;
padding: 0.6rem 1rem;
font-size: 0.65rem;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.2);
color: var(--white);
}
.login-form .passkey-help-btn:hover {
border-color: var(--accent);
box-shadow: none;
transform: none;
}

/* Spinner */
.spinner {
width: 14px;
height: 14px;
border: 2px solid rgba(255,255,255,0.3);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
display: none;
}

.login-form button.loading .spinner { display: block; }
.login-form button.loading .btn-text { display: none; }


/* Messages */
.message {
padding: 0.75rem 1rem;
border-radius: 8px;
font-family: 'Space Mono', monospace;
font-size: 0.7rem;
margin-bottom: 1rem;
display: none;
}


.message.error {
background: rgba(248, 81, 73, 0.1);
border: 1px solid var(--danger);
color: var(--danger);
display: block;
}

/* Back link */


/* Link sent confirmation */
.link-sent {
text-align: center;
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.5s ease, opacity 0.4s ease 0.15s;
}

.link-sent.visible {
max-height: 400px;
opacity: 1;
}

.link-sent-icon {
width: 56px;
height: 56px;
margin: 0 auto 1.5rem;
background: rgba(99, 102, 241, 0.15);
border: 1px solid rgba(99, 102, 241, 0.3);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.link-sent-icon svg {
width: 26px;
height: 26px;
color: var(--accent-bright);
}

.link-sent h2 {
font-family: 'Sora', sans-serif;
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 0.75rem;
color: var(--white);
}

.link-sent .sent-subtitle {
font-family: 'Space Mono', monospace;
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.5);
line-height: 1.7;
margin-bottom: 0.5rem;
}

.link-sent .sent-email {
font-weight: 700;
color: var(--white);
}

.link-sent .expire-text {
font-family: 'Space Mono', monospace;
font-size: 0.7rem;
color: rgba(255, 255, 255, 0.35);
line-height: 1.6;
margin-bottom: 1.5rem;
}

.link-sent hr {
border: none;
border-top: 1px solid rgba(255, 255, 255, 0.1);
margin: 0 0 1.25rem 0;
}

.link-sent .help-text {
font-family: 'Space Mono', monospace;
font-size: 0.65rem;
color: rgba(255, 255, 255, 0.35);
letter-spacing: 0.02em;
}

.link-sent .help-text a {
color: var(--accent-bright);
text-decoration: none;
}

.link-sent .help-text a:hover {
color: var(--white);
}

.login-form.hiding {
max-height: 0 !important;
opacity: 0 !important;
overflow: hidden;
margin: 0;
padding: 0;
}

.login-form {
transition: max-height 0.4s ease, opacity 0.3s ease;
max-height: 300px;
overflow: hidden;
}

/* Matrix pill choice */
.pill-choice {
width: 100%;
max-width: 400px;
text-align: center;
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
opacity: 0;
pointer-events: none;
transition: opacity 0.5s ease;
padding: 1.5rem 1.5rem 1rem;
background: radial-gradient(ellipse at center, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.8) 60%, transparent 100%);
border-radius: 16px;
}

.pill-choice.visible {
opacity: 1;
pointer-events: auto;
}

.pill-choice-wrapper {
position: relative;
width: 100%;
max-width: 400px;
}

.pill-dialogue {
font-family: 'Space Mono', monospace;
font-size: 0.85rem;
letter-spacing: 0.02em;
color: rgba(255, 255, 255, 0.9);
line-height: 1.8;
margin-bottom: 2rem;
min-height: 3.5em;
text-shadow: 0 0 20px rgba(0, 0, 0, 1), 0 0 40px rgba(0, 0, 0, 0.8);
}

.pill-dialogue .dialogue-cursor {
display: inline-block;
width: 6px;
height: 12px;
background: rgba(255, 255, 255, 0.5);
animation: pillCursorBlink 0.7s step-end infinite;
margin-left: 2px;
vertical-align: middle;
}

@keyframes pillCursorBlink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}

.pill-buttons {
display: flex;
gap: 3rem;
justify-content: center;
align-items: flex-start;
}

.pill-option {
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
opacity: 0;
transform: translateY(12px);
transition: opacity 0.6s ease, transform 0.6s ease;
}

.pill-option.pill-visible {
opacity: 1;
transform: translateY(0);
}

.pill-btn {
width: 140px;
height: 56px;
border: none;
border-radius: 28px;
cursor: pointer;
position: relative;
transition: transform 0.3s ease, box-shadow 0.3s ease;
overflow: hidden;
}

.pill-btn::before {
content: '';
position: absolute;
inset: 0;
border-radius: 28px;
opacity: 0.6;
transition: opacity 0.3s ease;
}

.pill-btn::after {
content: '';
position: absolute;
top: 6px;
left: 18px;
right: 60px;
height: 12px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.25);
filter: blur(2px);
}

.pill-btn:hover {
transform: scale(1.12);
}

.pill-red {
background: linear-gradient(180deg, #e53935 0%, #b71c1c 50%, #7f0000 100%);
box-shadow: 0 6px 30px rgba(229, 57, 53, 0.4), inset 0 -3px 8px rgba(0, 0, 0, 0.3), inset 0 3px 6px rgba(255, 150, 150, 0.2);
}

.pill-red:hover {
box-shadow: 0 8px 40px rgba(229, 57, 53, 0.6), 0 0 50px rgba(229, 57, 53, 0.3), inset 0 -3px 8px rgba(0, 0, 0, 0.3), inset 0 3px 6px rgba(255, 150, 150, 0.3);
}

.pill-blue {
background: linear-gradient(180deg, #42a5f5 0%, #1565c0 50%, #0d47a1 100%);
box-shadow: 0 6px 30px rgba(66, 165, 245, 0.4), inset 0 -3px 8px rgba(0, 0, 0, 0.3), inset 0 3px 6px rgba(150, 200, 255, 0.2);
}

.pill-blue:hover {
box-shadow: 0 8px 40px rgba(66, 165, 245, 0.6), 0 0 50px rgba(66, 165, 245, 0.3), inset 0 -3px 8px rgba(0, 0, 0, 0.3), inset 0 3px 6px rgba(150, 200, 255, 0.3);
}

.pill-label {
font-family: 'Space Mono', monospace;
font-size: 0.7rem;
letter-spacing: 0.03em;
margin-top: 0.85rem;
transition: color 0.3s ease;
max-width: 150px;
line-height: 1.5;
text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.pill-label-red { color: rgba(229, 57, 53, 0.75); }
.pill-label-blue { color: rgba(66, 165, 245, 0.75); }

.pill-option:hover .pill-label-red { color: #ef5350; }
.pill-option:hover .pill-label-blue { color: #64b5f6; }

/* Mainframe terminal overlay */
.mainframe-overlay {
position: fixed;
inset: 0;
z-index: 2000;
background: #000800;
pointer-events: none;
opacity: 0;
transition: opacity 0.6s ease;
display: flex;
flex-direction: column;
overflow: hidden;
}

.mainframe-overlay.visible {
opacity: 1;
pointer-events: auto;
}

.mainframe-overlay::before {
content: '';
position: absolute;
inset: 0;
background: repeating-linear-gradient(
0deg,
rgba(0, 255, 0, 0.03) 0px,
rgba(0, 255, 0, 0.03) 1px,
transparent 1px,
transparent 3px
);
pointer-events: none;
z-index: 1;
}

.mainframe-overlay::after {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
pointer-events: none;
z-index: 2;
}

.mainframe-content {
flex: 1;
padding: 2rem 3rem;
font-family: 'Courier New', Courier, monospace;
font-size: 14px;
color: #33ff33;
line-height: 1.6;
position: relative;
z-index: 3;
overflow-y: auto;
text-shadow: 0 0 8px rgba(51, 255, 51, 0.5);
}

.mainframe-content .mf-dim {
color: #1a8a1a;
}

.mainframe-content .mf-bright {
color: #66ff66;
text-shadow: 0 0 12px rgba(51, 255, 51, 0.7);
}

.mainframe-content .mf-warn {
color: #ffaa00;
text-shadow: 0 0 8px rgba(255, 170, 0, 0.5);
}

.mainframe-content .mf-header {
border: 1px solid #33ff33;
padding: 8px 16px;
margin-bottom: 16px;
text-align: center;
box-shadow: 0 0 10px rgba(51, 255, 51, 0.15);
}

.mainframe-content .mf-line {
opacity: 0;
animation: mfTypein 0.15s ease forwards;
white-space: pre;
}

.mainframe-content .mf-input-line {
display: flex;
align-items: center;
}

.mainframe-content .mf-cursor {
display: inline-block;
width: 10px;
height: 16px;
background: #33ff33;
animation: mfBlink 0.8s step-end infinite;
margin-left: 2px;
vertical-align: middle;
box-shadow: 0 0 6px rgba(51, 255, 51, 0.6);
}

@keyframes mfTypein {
from { opacity: 0; transform: translateX(-4px); }
to { opacity: 1; transform: translateX(0); }
}

@keyframes mfBlink {
0%, 49% { opacity: 1; }
50%, 100% { opacity: 0; }
}

.mainframe-status-bar {
border-top: 1px solid #1a8a1a;
padding: 6px 3rem;
font-family: 'Courier New', Courier, monospace;
font-size: 11px;
color: #1a8a1a;
display: flex;
justify-content: space-between;
position: relative;
z-index: 3;
text-shadow: 0 0 5px rgba(51, 255, 51, 0.3);
}

/* Clippy assistant */
.clippy-container {
position: absolute;
bottom: 60px;
right: 3rem;
z-index: 10;
display: flex;
align-items: flex-end;
gap: 16px;
opacity: 0;
transform: translateY(40px) scale(0.8);
transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
pointer-events: none;
}

.clippy-container.visible {
opacity: 1;
transform: translateY(0) scale(1);
}

/* Speech balloon - Windows tooltip style */
.clippy-bubble {
background: #ffc;
border: 1px solid #000;
border-radius: 5px;
padding: 12px 16px;
max-width: 300px;
min-width: 180px;
font-family: 'Segoe UI', Tahoma, 'MS Sans Serif', Arial, sans-serif;
font-size: 13px;
color: #000;
line-height: 1.5;
position: relative;
box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.05);
text-shadow: none;
transition: opacity 0.25s ease, transform 0.3s ease;
transform-origin: right bottom;
}

.clippy-bubble.pop {
animation: bubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bubblePop {
0% { transform: scale(0.7); opacity: 0; }
50% { transform: scale(1.05); }
100% { transform: scale(1); opacity: 1; }
}

.clippy-bubble-text {
margin-bottom: 8px;
}

.clippy-bubble-options {
display: flex;
flex-direction: column;
gap: 2px;
}

.clippy-option {
font-size: 11px;
color: #00008b;
text-decoration: underline;
cursor: default;
padding: 1px 0 1px 18px;
position: relative;
}

.clippy-option::before {
content: '';
position: absolute;
left: 2px;
top: 50%;
transform: translateY(-50%);
width: 10px;
height: 10px;
background: radial-gradient(circle, #ffcc00 30%, #ff9900 100%);
border-radius: 50%;
border: 1px solid #cc8800;
}

/* Pointer tail */
.clippy-bubble::after {
content: '';
position: absolute;
right: -12px;
bottom: 18px;
width: 0;
height: 0;
border-left: 12px solid #000;
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
}

.clippy-bubble::before {
content: '';
position: absolute;
right: -10px;
bottom: 19px;
width: 0;
height: 0;
border-left: 10px solid #ffc;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
z-index: 1;
}

/* Clippy figure */
.clippy-figure {
width: 100px;
height: 140px;
flex-shrink: 0;
position: relative;
}

.clippy-figure svg {
width: 100%;
height: 100%;
}

/* Idle sway animation */
.clippy-body-group {
animation: clippySway 3s ease-in-out infinite;
transform-origin: 40px 70px;
}

@keyframes clippySway {
0%, 100% { transform: rotate(0deg); }
30% { transform: rotate(1.5deg); }
70% { transform: rotate(-1deg); }
}

/* Eye pupil animations - looking around */
.clippy-pupil-l, .clippy-pupil-r {
animation: clippyLookAround 6s ease-in-out infinite;
}

.clippy-pupil-r {
animation-delay: 0.1s;
}

@keyframes clippyLookAround {
0%, 20% { transform: translate(0, 0); }
25%, 35% { transform: translate(2px, -1px); }
40%, 55% { transform: translate(-2px, 1px); }
60%, 70% { transform: translate(1px, 2px); }
75%, 85% { transform: translate(-1px, -1px); }
90%, 100% { transform: translate(0, 0); }
}

/* Eyebrow raise animation */
.clippy-brow-l, .clippy-brow-r {
animation: clippyBrowRaise 5s ease-in-out infinite;
transform-origin: center;
}

.clippy-brow-r {
animation-delay: 0.3s;
}

@keyframes clippyBrowRaise {
0%, 70% { transform: translateY(0); }
75%, 85% { transform: translateY(-3px); }
90%, 100% { transform: translateY(0); }
}

/* Screen tap / attention animation */
.clippy-container.tapping .clippy-figure {
animation: clippyTap 0.6s ease-in-out;
}

@keyframes clippyTap {
0%, 100% { transform: translateX(0); }
20% { transform: translateX(-6px); }
40% { transform: translateX(0); }
60% { transform: translateX(-4px); }
80% { transform: translateX(0); }
}

/* Mobile responsive — Phase 67 login reflow */
@media (max-width: 768px) {
.title-line {
font-size: clamp(2.5rem, 12vw, 4rem);
margin-bottom: 2rem;
}

.corner { display: none; }

.accent-ring-canvas { display: none; }

.login-container {
padding: 1.5rem;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}

.login-inner {
width: 100%;
max-width: 100%;
padding: 2rem 1.25rem 1.75rem;
box-sizing: border-box;
}

.login-form,
.login-form form,
.login-form input[type="email"],
.login-form button {
width: 100%;
max-width: 100%;
box-sizing: border-box;
}

.title-glow {
width: 200px;
height: 100px;
}
}

@media (max-width: 480px) {
.login-container { padding: 1rem; }
.login-inner { padding: 1.5rem 1rem 1.25rem; }
.light-beams { display: none; }
.title-line { font-size: clamp(2rem, 14vw, 3rem); margin-bottom: 1.5rem; }
}

/* Theme toggle (login page) */
.theme-toggle {
position: fixed;
top: 1.5rem;
left: 50%;
transform: translateX(-50%);
z-index: 1003;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 50%;
color: rgba(255, 255, 255, 0.55);
cursor: pointer;
transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
color: var(--accent-bright);
border-color: var(--accent-bright);
box-shadow: 0 0 15px rgba(0, 190, 255, 0.2);
}

.theme-toggle svg {
width: 16px;
height: 16px;
}

.theme-toggle .icon-moon { display: none; }

/* Light theme — scoped to html[data-login-theme="light"], set only by
   login.html's bootstrap script, so no other portal page is affected.
   The mainframe CRT easter egg deliberately stays dark in both themes. */
html[data-login-theme="light"] { color-scheme: light; }

html[data-login-theme="light"] body {
background: #f4f6fb;
color: #1a1d29;
}

html[data-login-theme="light"] .grid-overlay {
background-image:
linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
}

html[data-login-theme="light"] .scanlines {
opacity: 0.12;
}

html[data-login-theme="light"] .beam {
background: linear-gradient(180deg, transparent 0%, #1298D5 50%, transparent 100%);
}

html[data-login-theme="light"] .corner::before,
html[data-login-theme="light"] .corner::after {
background: #1298D5;
}

/* Canvas glows are designed for dark — multiply turns them into ink on light */
html[data-login-theme="light"] .accent-ring-canvas {
mix-blend-mode: multiply;
opacity: 0.9;
}

html[data-login-theme="light"] .title-line {
background-image: linear-gradient(90deg, #0f1222 0%, #1298D5 100%);
}

/* Logo "O" is a white-on-transparent PNG — invert it and mirror lighten→darken */
html[data-login-theme="light"] .logo-o {
mix-blend-mode: darken;
filter: invert(1) hue-rotate(180deg);
}

html[data-login-theme="light"] .login-form input[type="email"] {
background: rgba(15, 18, 34, 0.04);
border-color: rgba(15, 18, 34, 0.18);
color: #1a1d29;
}

html[data-login-theme="light"] .login-form input[type="email"]::placeholder {
color: rgba(26, 29, 41, 0.38);
}

html[data-login-theme="light"] .login-form input[type="email"]:focus {
border-color: #0090cc;
background: rgba(18, 152, 213, 0.07);
}

html[data-login-theme="light"] .no-match-msg {
color: #c0362c;
}

html[data-login-theme="light"] .login-divider {
color: rgba(15, 18, 34, 0.4);
}
html[data-login-theme="light"] .login-divider::before,
html[data-login-theme="light"] .login-divider::after {
background: rgba(15, 18, 34, 0.15);
}
html[data-login-theme="light"] .login-form .passkey-btn {
border-color: rgba(15, 18, 34, 0.25);
color: rgba(15, 18, 34, 0.9);
}
html[data-login-theme="light"] .passkey-status {
color: rgba(15, 18, 34, 0.55);
}
html[data-login-theme="light"] .passkey-status.error {
color: #c0362c;
}
html[data-login-theme="light"] .passkey-help {
color: rgba(15, 18, 34, 0.7);
background: rgba(15, 18, 34, 0.04);
border-color: rgba(15, 18, 34, 0.15);
}
html[data-login-theme="light"] .passkey-help strong {
color: rgba(15, 18, 34, 0.95);
}
html[data-login-theme="light"] .login-form .passkey-help-btn {
border-color: rgba(15, 18, 34, 0.25);
color: rgba(15, 18, 34, 0.9);
}

html[data-login-theme="light"] .message.error {
background: rgba(248, 81, 73, 0.08);
color: #c0362c;
}

html[data-login-theme="light"] .link-sent h2 {
color: #1a1d29;
}

html[data-login-theme="light"] .link-sent .sent-subtitle {
color: rgba(26, 29, 41, 0.6);
}

html[data-login-theme="light"] .link-sent .sent-email {
color: #1a1d29;
}

html[data-login-theme="light"] .link-sent .expire-text,
html[data-login-theme="light"] .link-sent .help-text {
color: rgba(26, 29, 41, 0.45);
}

html[data-login-theme="light"] .link-sent hr {
border-top-color: rgba(15, 18, 34, 0.1);
}

html[data-login-theme="light"] .link-sent-icon {
background: rgba(99, 102, 241, 0.1);
border-color: rgba(99, 102, 241, 0.25);
}

html[data-login-theme="light"] .link-sent-icon svg {
color: #1298D5;
}

html[data-login-theme="light"] .link-sent .help-text a {
color: #0090cc;
}

html[data-login-theme="light"] .link-sent .help-text a:hover {
color: #1a1d29;
}

html[data-login-theme="light"] .pill-choice {
background: radial-gradient(ellipse at center, rgba(244, 246, 251, 0.96) 0%, rgba(244, 246, 251, 0.85) 60%, transparent 100%);
}

html[data-login-theme="light"] .pill-dialogue {
color: rgba(15, 18, 34, 0.9);
text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px rgba(255, 255, 255, 0.8);
}

html[data-login-theme="light"] .pill-dialogue .dialogue-cursor {
background: rgba(15, 18, 34, 0.5);
}

html[data-login-theme="light"] .pill-label {
text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
}

html[data-login-theme="light"] .pill-label-red { color: rgba(183, 28, 28, 0.85); }
html[data-login-theme="light"] .pill-label-blue { color: rgba(13, 71, 161, 0.85); }

html[data-login-theme="light"] .pill-option:hover .pill-label-red { color: #b71c1c; }
html[data-login-theme="light"] .pill-option:hover .pill-label-blue { color: #0d47a1; }

html[data-login-theme="light"] .theme-toggle {
border-color: rgba(15, 18, 34, 0.2);
color: rgba(15, 18, 34, 0.55);
}

html[data-login-theme="light"] .theme-toggle:hover {
color: #0090cc;
border-color: #0090cc;
box-shadow: 0 0 15px rgba(18, 152, 213, 0.2);
}

html[data-login-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-login-theme="light"] .theme-toggle .icon-moon { display: block; }

/* --- portal/meetings --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--black: #0a0a0f;
--bg-card: rgba(22, 27, 34, 0.6);
--white: #ffffff;
--text: #c9d1d9;
--text-muted: #8b949e;
--accent: #6366f1;
--accent-bright: #00BEFF;
--border: rgba(99, 102, 241, 0.2);
--grid: rgba(99, 102, 241, 0.1);
--success: #3fb950;
--cyan: #00BEFF;
--purple: #a371f7;
}

body {
font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--black);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
}

/* Grid overlay */
.grid-overlay {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
background-image:
linear-gradient(var(--grid) 1px, transparent 1px),
linear-gradient(90deg, var(--grid) 1px, transparent 1px);
background-size: 60px 60px;
opacity: 0.4;
}

.scanlines {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 1000;
background: repeating-linear-gradient(0deg, rgba(0,0,0,0.03), rgba(0,0,0,0.03) 1px, transparent 1px, transparent 2px);
opacity: 0.4;
}

/* Header */
.header {
background: rgba(10, 10, 15, 0.8);
backdrop-filter: blur(20px);
padding: 12px 20px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
position: relative;
z-index: 10;
}

.logo {
display: flex;
align-items: center;
text-decoration: none;
}


.logo-o {
height: 0.75em;
width: auto;
margin: 0 0.02em;
}

.header-right {
display: flex;
align-items: center;
gap: 16px;
}

.user-info {
font-family: 'Space Mono', monospace;
color: var(--text-muted);
font-size: 12px;
letter-spacing: 0.05em;
text-transform: uppercase;
}

.btn-logout {
padding: 8px 16px;
border-radius: 6px;
font-family: 'Space Mono', monospace;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
cursor: pointer;
text-decoration: none;
background: transparent;
border: 1px solid var(--border);
color: var(--text);
transition: all 0.2s ease;
}

.btn-logout:hover {
border-color: var(--accent-bright);
color: var(--accent-bright);
}

.subheader {
background: rgba(10, 10, 15, 0.6);
border-bottom: 1px solid var(--border);
padding: 12px 20px;
position: relative;
z-index: 10;
}

.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
font-family: 'Space Mono', monospace;
font-size: 12px;
}

.breadcrumb a {
color: var(--text-muted);
text-decoration: none;
}

.breadcrumb a:hover {
color: var(--accent-bright);
}

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


/* Two-column layout */


/* Left column - meeting list */


.page-header {
margin-bottom: 16px;
}

.page-header h1 {
font-size: clamp(1.25rem, 3vw, 1.5rem);
font-weight: 800;
margin-bottom: 4px;
background: linear-gradient(90deg, #ffffff 0%, var(--accent-bright) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.page-header p {
font-family: 'Space Mono', monospace;
color: var(--text-muted);
font-size: 11px;
}


/* Meeting list */


/* Right column - meeting detail */


/* Meeting detail view */


/* Tabs */


/* Stat Pills */


/* Charts Grid */


/* Sentiment Gauge */


/* Topics */


/* Key Moments & Risks */


/* Transcript */


/* Markdown content styling */


/* Empty state */


/* Mobile responsive */


/* --- portal/project_detail --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--bg: #0d1117;
--bg-card: #161b22;
--bg-elevated: #161b22;
--bg-input: #0d1117;
--text: #c9d1d9;
--text-muted: #8b949e;
--text-faint: #6e7681;
--border: #30363d;
--border-light: #21262d;
--accent: #58a6ff;
--success: #3fb950;
--warning: #d29922;
--danger: #f85149;
--purple: #a371f7;
--pink: #db61a2;
}

body {
font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
}

.header {
background: var(--bg-card);
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
}

.logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}


.header-right {
display: flex;
align-items: center;
gap: 16px;
}

.user-info {
color: var(--text-muted);
font-size: 14px;
}

.btn-logout {
padding: 5px 12px;
border-radius: 6px;
font-family: inherit;
font-size: 13px;
cursor: pointer;
text-decoration: none;
background: #21262d;
border: 1px solid var(--border);
color: var(--text);
transition: all 0.15s;
}

.btn-logout:hover {
background: #30363d;
}

.subheader {
background: var(--bg-card);
border-bottom: 1px solid var(--border);
padding: 12px 16px;
}


.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
}

.breadcrumb a {
color: var(--text-muted);
text-decoration: none;
}

.breadcrumb a:hover {
color: var(--accent);
}

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


/* View toggle */


/* List view */


/* Roadmap view */


/* Modal for item details */


/* --- portal/projects --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--bg: #0d1117;
--bg-card: #161b22;
--bg-elevated: #161b22;
--bg-input: #0d1117;
--text: #c9d1d9;
--text-muted: #8b949e;
--text-faint: #6e7681;
--border: #30363d;
--border-light: #21262d;
--accent: #58a6ff;
--success: #3fb950;
--warning: #d29922;
--danger: #f85149;
--purple: #a371f7;
--pink: #db61a2;
}

body {
font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
}

.header {
background: var(--bg-card);
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
}

.logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}


.header-right {
display: flex;
align-items: center;
gap: 16px;
}

.user-info {
color: var(--text-muted);
font-size: 14px;
}

.btn-logout {
padding: 5px 12px;
border-radius: 6px;
font-family: inherit;
font-size: 13px;
cursor: pointer;
text-decoration: none;
background: #21262d;
border: 1px solid var(--border);
color: var(--text);
transition: all 0.15s;
}

.btn-logout:hover {
background: #30363d;
}

.subheader {
background: var(--bg-card);
border-bottom: 1px solid var(--border);
padding: 12px 16px;
}

.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
}

.breadcrumb a {
color: var(--text-muted);
text-decoration: none;
}

.breadcrumb a:hover {
color: var(--accent);
}

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


.page-header {
margin-bottom: 16px;
}

.page-header h1 {
font-size: 20px;
font-weight: 600;
margin-bottom: 4px;
}

.page-header p {
color: var(--text-muted);
font-size: 13px;
}


/* --- portal/repo_detail --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--bg: #0d1117;
--bg-card: #161b22;
--bg-elevated: #161b22;
--bg-input: #0d1117;
--text: #c9d1d9;
--text-muted: #8b949e;
--text-faint: #6e7681;
--border: #30363d;
--border-light: #21262d;
--accent: #58a6ff;
--success: #3fb950;
--warning: #d29922;
--danger: #f85149;
--purple: #a371f7;
--pink: #db61a2;
}

body {
font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
}

.header {
background: var(--bg-card);
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
}

.logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}


.header-right {
display: flex;
align-items: center;
gap: 16px;
}

.user-info {
color: var(--text-muted);
font-size: 14px;
}

.btn-logout {
padding: 5px 12px;
border-radius: 6px;
font-family: inherit;
font-size: 13px;
cursor: pointer;
text-decoration: none;
background: #21262d;
border: 1px solid var(--border);
color: var(--text);
transition: all 0.15s;
}

.btn-logout:hover {
background: #30363d;
}

.subheader {
background: var(--bg-card);
border-bottom: 1px solid var(--border);
padding: 12px 16px;
}

.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
}

.breadcrumb a {
color: var(--text-muted);
text-decoration: none;
}

.breadcrumb a:hover {
color: var(--accent);
}

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


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


.page-header p {
color: var(--text-muted);
font-size: 13px;
margin-top: 4px;
}


.btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: 6px;
font-family: inherit;
font-size: 12px;
font-weight: 500;
cursor: pointer;
text-decoration: none;
transition: all 0.15s;
border: none;
}


.btn svg {
width: 14px;
height: 14px;
}


.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
}


/* Visual Timeline Graph */


.loading {
opacity: 0.6;
pointer-events: none;
}

/* --- portal/repos --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--bg: #0d1117;
--bg-card: #161b22;
--bg-elevated: #161b22;
--bg-input: #0d1117;
--text: #c9d1d9;
--text-muted: #8b949e;
--text-faint: #6e7681;
--border: #30363d;
--border-light: #21262d;
--accent: #58a6ff;
--success: #3fb950;
--warning: #d29922;
--danger: #f85149;
--purple: #a371f7;
--pink: #db61a2;
}

body {
font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
}

.header {
background: var(--bg-card);
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
}

.logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}


.header-right {
display: flex;
align-items: center;
gap: 16px;
}

.user-info {
color: var(--text-muted);
font-size: 14px;
}

.btn-logout {
padding: 5px 12px;
border-radius: 6px;
font-family: inherit;
font-size: 13px;
cursor: pointer;
text-decoration: none;
background: #21262d;
border: 1px solid var(--border);
color: var(--text);
transition: all 0.15s;
}

.btn-logout:hover {
background: #30363d;
}

.subheader {
background: var(--bg-card);
border-bottom: 1px solid var(--border);
padding: 12px 16px;
}

.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
}

.breadcrumb a {
color: var(--text-muted);
text-decoration: none;
}

.breadcrumb a:hover {
color: var(--accent);
}

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


.page-header {
margin-bottom: 16px;
}

.page-header h1 {
font-size: 20px;
font-weight: 600;
margin-bottom: 4px;
}

.page-header p {
color: var(--text-muted);
font-size: 13px;
}


/* --- portal/tasks --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--bg: #0d1117;
--bg-card: #161b22;
--bg-elevated: #161b22;
--bg-input: #0d1117;
--text: #c9d1d9;
--text-muted: #8b949e;
--text-faint: #6e7681;
--border: #30363d;
--border-light: #21262d;
--accent: #58a6ff;
--success: #3fb950;
--warning: #d29922;
--danger: #f85149;
--purple: #a371f7;
--pink: #db61a2;
}

body {
font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
}

.header {
background: var(--bg-card);
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border);
}

.logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}


.header-right {
display: flex;
align-items: center;
gap: 16px;
}

.user-info {
color: var(--text-muted);
font-size: 14px;
}

.btn-logout {
padding: 5px 12px;
border-radius: 6px;
font-family: inherit;
font-size: 13px;
cursor: pointer;
text-decoration: none;
background: #21262d;
border: 1px solid var(--border);
color: var(--text);
transition: all 0.15s;
}

.btn-logout:hover {
background: #30363d;
}

.subheader {
background: var(--bg-card);
border-bottom: 1px solid var(--border);
padding: 12px 16px;
}

.breadcrumb {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
}

.breadcrumb a {
color: var(--text-muted);
text-decoration: none;
}

.breadcrumb a:hover {
color: var(--accent);
}

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


.page-header {
margin-bottom: 16px;
}

.page-header h1 {
font-size: 20px;
font-weight: 600;
margin-bottom: 4px;
}

.page-header p {
color: var(--text-muted);
font-size: 13px;
}

.card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 6px;
padding: 32px;
text-align: center;
}

.card h2 {
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
}

.card p {
color: var(--text-muted);
font-size: 13px;
}


/* --- portal/support --- */

/* Page-level layout */


/* Split layout (tickets+form) and thread page both fill the full viewport */


/* Submit card */


/* Dropzone */


/* Form actions */


/* Recent tickets card */


/* Ticket list rows (shared: recent + full list) */


/* List-page tabs */


/* Thread page */


/* Legacy meta row (kept for any other pages still using it) */


/* Sidebar cards */


/* Message card */


/* Day divider */


/* Composer */


/* Typeahead */


/* Close-ticket modal */


/* Toast */


/* Dashboard tile icon variant */


/* Empty states */


/* Responsive */


/* Reduced motion */


/* Support layout override — cancels the dashboard 40/60 grid that .main
   inherits on portal pages. Support pages are full-width lists + forms;
   without this override they render in the 40% first column of the grid. */


/* Split layout: tickets (60%) on the left, submit form (40%) on the right. */


/* Right-side heading is smaller/left-aligned vs the standalone centered one */


/* Field-row proportions — Priority is short, Related-to needs room */


/* Never wrap single-phrase labels in the 2-col row */


/* Tab bar — allow horizontal scroll / wrap tightly in narrow columns */


/* Responsive: stack the split on narrower viewports */


