/* HTH Registration — Design System. Default rules are the "miro" style; the tc26 style is
   layered on at the end of this file under [data-style="tc26"] (set via SITE_STYLE). */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --sans: "Plus Jakarta Sans", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    /* Core palette */
    --ink: #1B1B2F;
    --muted: #6E6E84;
    --surface: #FFFFFF;
    --canvas: #F6F6F9;
    --border: #E7E7EE;
    --accent: #FFD02F;

    /* Primary (default: Canvas / electric blue) */
    --primary: #4262FF;
    --primary-press: #3551D6;
    --primary-soft: #ECEFFF;
    --primary-ink: #2740C9;

    /* Sticky note palette */
    --sticky-yellow-bg: #FFF3A8;
    --sticky-yellow-edge: #F4DE6A;
    --sticky-yellow-ink: #5C4B00;
    --sticky-pink-bg: #FFD6E7;
    --sticky-pink-edge: #F4A7C6;
    --sticky-pink-ink: #7A2348;
    --sticky-blue-bg: #CFE6FF;
    --sticky-blue-edge: #9CC8F4;
    --sticky-blue-ink: #0F3D6E;
    --sticky-green-bg: #D7F5C4;
    --sticky-green-edge: #A6E08A;
    --sticky-green-ink: #2C5A1B;
    --sticky-mint-bg: #C9F2EA;
    --sticky-mint-edge: #8FDDCD;
    --sticky-mint-ink: #0E5246;
    --sticky-lilac-bg: #E7DEFF;
    --sticky-lilac-edge: #C3AEF6;
    --sticky-lilac-ink: #4A2C99;

    /* Legacy mappings (templates still reference these) */
    --primary-color: #4262FF;
    --secondary-color: #4262FF;
    --color-base-2: var(--canvas);
    --color-base-3: var(--surface);
    --color-base-4: var(--border);
    --color-text-primary: var(--ink);
    --color-text-secondary: var(--muted);
}

/* ============================================================
   COLORWAY THEMES
   ============================================================ */
[data-colorway="canvas"] {
    --primary: #4262FF;
    --primary-press: #3551D6;
    --primary-soft: #ECEFFF;
    --primary-ink: #2740C9;
    --primary-color: #4262FF;
    --secondary-color: #4262FF;
}

[data-colorway="hive"] {
    --primary: #11806A;
    --primary-press: #0C6553;
    --primary-soft: #E2F2ED;
    --primary-ink: #0C6553;
    --primary-color: #11806A;
    --secondary-color: #11806A;
}

[data-colorway="studio"] {
    --primary: #7B5BFF;
    --primary-press: #6543EE;
    --primary-soft: #F0ECFF;
    --primary-ink: #5B3FD6;
    --primary-color: #7B5BFF;
    --secondary-color: #7B5BFF;
}

/* Legacy colorway names map to new themes */
[data-colorway="bastion"] {
    --primary: #11806A;
    --primary-press: #0C6553;
    --primary-soft: #E2F2ED;
    --primary-ink: #0C6553;
    --primary-color: #11806A;
    --secondary-color: #11806A;
}

[data-colorway="hearth"] {
    --primary: #D97856;
    --primary-press: #C26545;
    --primary-soft: #FDF0EC;
    --primary-ink: #A5523A;
    --primary-color: #D97856;
    --secondary-color: #D97856;
}

[data-colorway="harbour"] {
    --primary: #1169C8;
    --primary-press: #0E4B77;
    --primary-soft: #E8F1FC;
    --primary-ink: #0E4B77;
    --primary-color: #1169C8;
    --secondary-color: #1169C8;
}

[data-colorway="peak"] {
    --primary: #6490E8;
    --primary-press: #4A73D4;
    --primary-soft: #EDF2FC;
    --primary-ink: #3B5FBA;
    --primary-color: #6490E8;
    --secondary-color: #6490E8;
}

/* ============================================================
   BASE STYLES
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background-color: var(--canvas);
    background-image: radial-gradient(circle, rgba(27,27,47,0.045) 1.1px, transparent 1.1px);
    background-size: 26px 26px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}

::selection {
    background: var(--accent);
    color: #241C00;
}

button {
    font-family: var(--sans);
}

input, textarea, select {
    font-family: var(--sans);
}

textarea::placeholder, input::placeholder {
    color: #A6A6B8;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.content-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 160px);
    padding: 40px 28px 80px;
}

.container {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(5,0,56,.04), 0 10px 30px -22px rgba(5,0,56,.25);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.container-wide {
    background: var(--surface);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(5,0,56,.04), 0 10px 30px -22px rgba(5,0,56,.25);
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}

.container-participants {
    max-width: 1280px;
    width: auto;
    margin: 0 auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 32px 28px 80px;
}

.container-medium {
    background: var(--surface);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(5,0,56,.04), 0 10px 30px -22px rgba(5,0,56,.25);
    max-width: 880px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    text-align: left;
}

h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

p {
    color: var(--muted);
    margin: 0 0 1.5rem;
    line-height: 1.7;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================================
   LOGO
   ============================================================ */
.logo {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 16px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #241C00;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 4px 12px -4px rgba(244,196,0,.5);
}

.logo.success {
    background: var(--sticky-green-bg);
    color: var(--sticky-green-ink);
    box-shadow: 0 4px 12px -4px rgba(166,224,138,.5);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    margin: 0 8px 8px 0;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--sans);
    cursor: pointer;
    transition: transform .08s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 22px;
    box-shadow: 0 2px 6px -2px var(--primary);
}

.btn-primary:hover {
    background: var(--primary-press);
    box-shadow: 0 6px 18px -6px var(--primary);
}

.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: #F3F3F6;
    border-color: #D5D5DE;
}

.btn-success {
    background: var(--sticky-green-bg);
    color: var(--sticky-green-ink);
    border-color: var(--sticky-green-edge);
}

.btn-success:hover {
    background: #C8F0B0;
    border-color: var(--sticky-green-ink);
}

.btn-outline {
    background: transparent;
    color: var(--primary-ink);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.btn-disabled {
    background: var(--canvas);
    color: #A6A6B8;
    cursor: not-allowed;
    border-color: var(--border);
}

.btn-danger {
    background: #FFEDED;
    color: #C8312B;
    border-color: #F9D2D2;
}

.btn-danger:hover {
    background: #FFE0E0;
    border-color: #F4B5B5;
}

.btn-warning {
    background: var(--sticky-yellow-bg);
    color: var(--sticky-yellow-ink);
    border-color: var(--sticky-yellow-edge);
}

.btn-warning:hover {
    background: #FFED85;
    border-color: var(--sticky-yellow-ink);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-ink);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--primary-soft);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: background .15s ease, box-shadow .15s ease;
    box-shadow: 0 2px 6px -2px var(--primary);
}

.login-btn:hover {
    background: var(--primary-press);
    box-shadow: 0 6px 18px -6px var(--primary);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: -0.01em;
}

.required {
    color: #E0556E;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--surface);
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
    outline: none;
    letter-spacing: -0.01em;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E6E84' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* ============================================================
   USER INFO COMPONENTS
   ============================================================ */
.user-info {
    background: var(--canvas);
    padding: 1.5rem;
    border-radius: 14px;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.user-info h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.user-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.user-detail:last-child {
    border-bottom: none;
}

.user-detail strong {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
}

.user-detail span {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 13.5px;
    font-weight: 600;
    background: var(--canvas);
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    letter-spacing: -0.02em;
}

/* Presentation Order */
.presentation-order {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0 0 0;
    border-left: 4px solid var(--secondary-color);
}

.presentation-order h3 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary-color);
}

.presentation-order-list {
    margin: 0;
    padding-left: 1.5rem;
}

.presentation-order-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #333;
}

.presentation-order-list li:last-child {
    border-bottom: none;
}

.presentation-order-list li.presentation-order-mine {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-bottom: none;
    margin: 0.25rem 0;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    color: #856404;
}

.presentation-order-badge {
    background: #ffc107;
    color: #856404;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Team Components */
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0;
    margin-bottom: 1.25rem;
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
    position: relative;
}

.team-card::before {
    content: '';
    display: block;
    height: 6px;
    background: var(--sticky-blue-edge);
}

.team-card:nth-child(6n+1)::before { background: var(--sticky-yellow-edge); }
.team-card:nth-child(6n+2)::before { background: var(--sticky-pink-edge); }
.team-card:nth-child(6n+3)::before { background: var(--sticky-blue-edge); }
.team-card:nth-child(6n+4)::before { background: var(--sticky-green-edge); }
.team-card:nth-child(6n+5)::before { background: var(--sticky-mint-edge); }
.team-card:nth-child(6n+6)::before { background: var(--sticky-lilac-edge); }

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -24px rgba(5,0,56,.45);
}

.team-card > *:not(.team-card::before) {
    padding: 1.25rem 1.5rem;
}

.my-team {
    border-color: var(--primary);
    border-width: 1.5px;
    box-shadow: 0 12px 30px -22px var(--primary);
}

.my-team::before {
    background: var(--primary);
}

.team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
    margin-bottom: 0.75rem;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.02em;
}

.team-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.status-recruiting {
    background: var(--sticky-green-bg);
    color: var(--sticky-green-ink);
    border: 1px solid var(--sticky-green-edge);
}

.status-full {
    background: #ECECF0;
    color: #5C5C6E;
    border: 1px solid #D5D5DE;
}

.team-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.info-item {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
}

.info-label {
    font-weight: 700;
    color: var(--ink);
    font-size: 13px;
}

.team-description {
    background: var(--canvas);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin: 0 1.5rem 1rem;
    color: var(--ink);
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid var(--border);
}

.no-description {
    color: #A6A6B8;
    font-style: italic;
}

.team-members {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.member-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.member-tag {
    background: var(--canvas);
    color: var(--ink);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.leader-tag {
    background: var(--sticky-yellow-bg);
    color: var(--sticky-yellow-ink);
    border-color: var(--sticky-yellow-edge);
}

.team-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    margin: 0;
}

.actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================================
   BADGES
   ============================================================ */
.my-team-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-soft);
    color: var(--primary-ink);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--primary);
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.empty-state h3 {
    color: var(--ink);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.empty-state p {
    color: var(--muted);
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ============================================================
   FOOTER CONTROLS & COLORWAY SELECTOR
   ============================================================ */
.footer-controls {
    position: fixed;
    bottom: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.88);
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px -4px rgba(5,0,56,.15);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    z-index: 100;
}

.version {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

/* Legacy colorway-selector (replaced by header theme dots) */

/* ============================================================
   SITE HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Brand (left) */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 0 0 auto;
}
.hive-mark {
    flex: 0 0 auto;
}
.header-brand-name {
    font-weight: 800;
    font-size: 18px;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.header-season-badge {
    padding: 3px 9px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Center nav */
.header-nav {
    display: flex;
    gap: 4px;
    margin: 0 auto;
    background: #F1F1F4;
    padding: 4px;
    border-radius: 12px;
}
.header-nav-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 9px;
    border: none;
    text-decoration: none;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    background: transparent;
    color: var(--muted);
    transition: background .15s, color .15s;
}
.header-nav-item:hover {
    color: var(--ink);
    background: rgba(255,255,255,0.6);
}
.header-nav-item.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(5,0,56,.10);
}

/* Right section */
.header-right {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

/* Theme switcher */
.header-theme-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 5px 8px 5px 11px;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.theme-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.theme-dot {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    cursor: pointer;
    border: 2px solid transparent;
    outline: 1px solid var(--border);
    transition: transform .1s;
    padding: 0;
}
.theme-dot:hover {
    transform: scale(1.08);
}
.theme-dot.active {
    border-color: var(--ink);
    outline: none;
    transform: scale(1.08);
}

/* User avatar */
.header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 38px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.01em;
    background: var(--sticky-green-bg);
    color: var(--sticky-green-ink);
    border: 1px solid var(--sticky-green-edge);
    flex: 0 0 auto;
}

/* Responsive header */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
        height: 56px;
        gap: 10px;
    }
    .header-brand-name {
        display: none;
    }
    .header-nav {
        gap: 2px;
        padding: 3px;
    }
    .header-nav-item {
        padding: 7px 10px;
        font-size: 12.5px;
        gap: 5px;
    }
    .header-nav-item svg {
        display: none;
    }
    .header-theme-switcher {
        display: none;
    }
}

/* ============================================================
   ADMIN TEAM CREATION FORM
   ============================================================ */
.team-form {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    margin: 20px 0;
}

.team-form .form-group {
    margin-bottom: 20px;
}

.team-form .form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: var(--ink);
    font-size: 13.5px;
}

.team-form .form-group input,
.team-form .form-group textarea,
.team-form .form-group select {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
}

.team-form .form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: var(--mono);
    font-size: 13.5px;
    line-height: 1.6;
}

.team-form .form-group input:focus,
.team-form .form-group textarea:focus,
.team-form .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.help-text {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}

/* ============================================================
   MARKDOWN HELP
   ============================================================ */
.markdown-help {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--muted);
}

.markdown-help-toggle {
    color: var(--primary-ink);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    user-select: none;
}

.markdown-help-toggle:hover {
    text-decoration: underline;
}

.markdown-help-toggle .arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.markdown-help-toggle.expanded .arrow {
    transform: rotate(90deg);
}

.markdown-syntax-guide {
    display: none;
    margin-top: 10px;
    padding: 14px;
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
}

.markdown-syntax-guide.expanded {
    display: block;
}

.markdown-syntax-guide table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.markdown-syntax-guide table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.markdown-syntax-guide table td:first-child {
    font-family: var(--mono);
    color: var(--ink);
    white-space: nowrap;
    width: 40%;
    font-size: 12.5px;
}

.markdown-syntax-guide table td:last-child {
    color: var(--muted);
}

.markdown-syntax-guide table tr:last-child td {
    border-bottom: none;
}

.info-box {
    background: var(--primary-soft);
    border-left: 4px solid var(--primary);
    padding: 18px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
}

.info-box h4 {
    margin: 0 0 10px 0;
    color: var(--primary-ink);
    font-size: 14px;
    font-weight: 700;
}

.info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-box li {
    margin: 5px 0;
    color: var(--ink);
    font-size: 14px;
}

/* ============================================================
   ADMIN TEAM MANAGEMENT
   ============================================================ */
.admin-team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(5,0,56,.04);
}

.admin-team-card-empty {
    border-color: var(--sticky-yellow-edge);
    background: var(--sticky-yellow-bg);
}

.empty-team-flag {
    background: var(--sticky-yellow-bg);
    color: var(--sticky-yellow-ink);
    border: 1px solid var(--sticky-yellow-edge);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 13px;
    font-weight: 700;
}

.admin-team-description {
    margin: 0.5rem 0 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.team-header-admin {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.team-info-section {
    flex: 1;
}

.team-name-large {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.team-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    font-family: var(--mono);
    letter-spacing: -0.02em;
}

.edit-team-form {
    background: var(--canvas);
    padding: 1.25rem;
    border-radius: 14px;
    margin-top: 1rem;
    border: 1.5px solid var(--primary);
}

.form-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.members-section {
    margin-top: 1rem;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 15px;
    background: var(--canvas);
    border-radius: 14px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

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

.btn-small {
    padding: 6px 12px;
    font-size: 12.5px;
    border-radius: 9px;
    font-weight: 600;
}

.add-member-section {
    background: var(--primary-soft);
    padding: 1.25rem;
    border-radius: 14px;
    margin-top: 1rem;
    border: 1.5px solid var(--primary);
}

.add-member-form {
    display: flex;
    gap: 10px;
    align-items: end;
    margin-top: 0.5rem;
}

.add-member-form select {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
}

.toggle-edit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .15s ease;
}

.toggle-edit-btn:hover {
    background: var(--primary-press);
}

.collapsible-section {
    display: none;
}

.collapsible-section.active {
    display: block;
}

/* ============================================================
   ADMIN AWARDS
   ============================================================ */
.award-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(5,0,56,.04);
}

.award-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.award-name {
    flex: 1;
    min-width: 0;
}

.award-assignment {
    flex-shrink: 0;
    min-width: 250px;
}

.award-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--surface);
    cursor: pointer;
}

.award-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.award-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.award-info {
    flex: 1;
}

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

.assign-award-form {
    background: var(--canvas);
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid var(--border);
}

/* ============================================================
   FLASH NOTIFICATIONS
   ============================================================ */
#flash-messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 420px;
    pointer-events: none;
}

.flash-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 14px;
    box-shadow: 0 10px 30px -10px rgba(5,0,56,.3);
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s cubic-bezier(.2,.7,.3,1);
    pointer-events: auto;
    position: relative;
    border: 1px solid transparent;
}

.flash-notification.removing {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.flash-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.flash-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.flash-close:hover {
    opacity: 1;
}

.flash-success {
    background: rgba(215, 245, 196, 0.97);
    color: var(--sticky-green-ink);
    border-color: var(--sticky-green-edge);
}

.flash-error {
    background: rgba(255, 237, 237, 0.97);
    color: #C8312B;
    border-color: #F9D2D2;
}

.flash-warning {
    background: rgba(255, 243, 168, 0.97);
    color: var(--sticky-yellow-ink);
    border-color: var(--sticky-yellow-edge);
}

.flash-info {
    background: rgba(207, 230, 255, 0.97);
    color: var(--sticky-blue-ink);
    border-color: var(--sticky-blue-edge);
}

/* ============================================================
   MARKDOWN CONTENT STYLING
   ============================================================ */
.team-description h1,
.team-description h2,
.team-description h3,
.team-description h4,
.team-description h5,
.team-description h6,
.admin-team-description h1,
.admin-team-description h2,
.admin-team-description h3,
.admin-team-description h4,
.admin-team-description h5,
.admin-team-description h6 {
    margin: 0.75rem 0 0.5rem;
    color: var(--ink);
    font-weight: 700;
}

.team-description h1, .admin-team-description h1 { font-size: 1.4rem; }
.team-description h2, .admin-team-description h2 { font-size: 1.2rem; }
.team-description h3, .admin-team-description h3 { font-size: 1.05rem; }
.team-description h4, .admin-team-description h4 { font-size: 0.95rem; }

.team-description p,
.admin-team-description p {
    margin: 0.5rem 0;
    line-height: 1.7;
    font-size: 14px;
}

.team-description ul,
.team-description ol,
.admin-team-description ul,
.admin-team-description ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.team-description li,
.admin-team-description li {
    margin: 0.25rem 0;
    line-height: 1.6;
    font-size: 14px;
}

.team-description code,
.admin-team-description code {
    background: var(--canvas);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 0.88em;
    color: var(--primary-ink);
    border: 1px solid var(--border);
}

.team-description pre,
.admin-team-description pre {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.team-description pre code,
.admin-team-description pre code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
}

.team-description blockquote,
.admin-team-description blockquote {
    border-left: 4px solid var(--primary);
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background: var(--primary-soft);
    border-radius: 0 10px 10px 0;
    color: var(--ink);
}

.team-description table,
.admin-team-description table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.75rem 0;
    border-radius: 10px;
    overflow: hidden;
}

.team-description table th,
.team-description table td,
.admin-team-description table th,
.admin-team-description table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
}

.team-description table th,
.admin-team-description table th {
    background: var(--canvas);
    font-weight: 700;
}

.team-description a,
.admin-team-description a {
    color: var(--primary-ink);
    text-decoration: none;
    font-weight: 600;
}

.team-description a:hover,
.admin-team-description a:hover {
    text-decoration: underline;
}

.team-description hr,
.admin-team-description hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

.team-description strong,
.admin-team-description strong {
    font-weight: 700;
    color: var(--ink);
}

.team-description em,
.admin-team-description em {
    font-style: italic;
}

/* ============================================================
   ADMIN PARTICIPANTS — PAGE HEADER
   ============================================================ */
.participants-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.participants-page-header .icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--ink);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 26px;
}

.participants-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.participants-page-header p {
    margin: 5px 0 0;
    font-size: 15px;
    color: var(--muted);
    font-weight: 500;
}

/* ============================================================
   ADMIN PARTICIPANTS — STAT TILES
   ============================================================ */
.participant-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.participant-stat-tile {
    border-radius: 16px;
    padding: 18px 22px;
}

.participant-stat-tile .stat-label {
    font-size: 12.5px;
    font-weight: 700;
    opacity: 0.9;
}

.participant-stat-tile .stat-value {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-tile-blue {
    background: var(--sticky-blue-bg);
    border: 1px solid var(--sticky-blue-edge);
}
.stat-tile-blue .stat-label,
.stat-tile-blue .stat-value { color: var(--sticky-blue-ink); }

.stat-tile-green {
    background: var(--sticky-green-bg);
    border: 1px solid var(--sticky-green-edge);
}
.stat-tile-green .stat-label,
.stat-tile-green .stat-value { color: var(--sticky-green-ink); }

.stat-tile-yellow {
    background: var(--sticky-yellow-bg);
    border: 1px solid var(--sticky-yellow-edge);
}
.stat-tile-yellow .stat-label,
.stat-tile-yellow .stat-value { color: var(--sticky-yellow-ink); }

.stat-tile-pink {
    background: var(--sticky-pink-bg);
    border: 1px solid var(--sticky-pink-edge);
}
.stat-tile-pink .stat-label,
.stat-tile-pink .stat-value { color: var(--sticky-pink-ink); }

/* ============================================================
   ADMIN PARTICIPANTS — FILTER BAR
   ============================================================ */
.participants-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-search-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.filter-search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 18px;
    pointer-events: none;
}

.filter-search-wrap input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    font-size: 14.5px;
    font-family: var(--sans);
    outline: none;
    box-sizing: border-box;
    background: var(--surface);
    color: var(--ink);
    transition: border-color .15s ease;
}

.filter-search-wrap input:focus {
    border-color: var(--primary);
}

.filter-search-wrap input::placeholder {
    color: var(--muted);
}

.filter-segment {
    display: flex;
    gap: 4px;
    background: #F1F1F4;
    padding: 4px;
    border-radius: 12px;
}

.filter-segment button {
    padding: 9px 15px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.filter-segment button.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(5,0,56,.1);
}

.filter-missing-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 700;
    background: var(--surface);
    color: var(--muted);
    border: 1.5px solid var(--border);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.filter-missing-btn.active {
    background: #FFF4D6;
    color: #8A5A00;
    border-color: #F0D584;
}

/* ============================================================
   ADMIN PARTICIPANTS TABLE
   ============================================================ */
.participants-table-card {
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(5,0,56,.04), 0 10px 30px -22px rgba(5,0,56,.25);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow-x: auto;
}

.participants-sticky-header {
    position: fixed;
    top: 64px;
    z-index: 40;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 2px 8px rgba(5,0,56,.08);
    overflow: hidden;
    display: none;
}

.participants-sticky-header.visible {
    display: block;
}

.participants-sticky-header table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1180px;
}

.participants-sticky-header th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    background: var(--canvas);
}

.admin-participants-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1180px;
}

.admin-participants-table thead {
    background: var(--canvas);
}

.admin-participants-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
    background: var(--canvas);
}

.admin-participants-table th:first-child,
.admin-participants-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
}

.admin-participants-table th:first-child {
    z-index: 3;
    background: var(--canvas);
}

.admin-participants-table tbody tr:nth-child(odd) td:first-child {
    background: color-mix(in srgb, var(--canvas) 55%, var(--surface));
}

.admin-participants-table tbody tr:nth-child(even) td:first-child {
    background: var(--surface);
}

.admin-participants-table tbody tr:hover td:first-child {
    background: var(--primary-soft);
}

.admin-participants-table td {
    padding: 11px 14px;
    font-size: 13px;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
}

.admin-participants-table tbody tr:nth-child(odd) {
    background: color-mix(in srgb, var(--canvas) 55%, var(--surface));
}

.admin-participants-table tbody tr:nth-child(even) {
    background: var(--surface);
}

.admin-participants-table tbody tr:hover {
    background: var(--primary-soft);
}

.admin-participants-table .cell-mono {
    font-family: var(--mono);
    letter-spacing: -0.02em;
    font-size: 12.5px;
}

.admin-participants-table .cell-muted {
    color: var(--muted);
}

.admin-participants-table .cell-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.admin-participants-table a {
    color: var(--primary-ink);
    text-decoration: none;
    font-weight: 600;
}

.admin-participants-table a:hover {
    text-decoration: underline;
}

.leader-badge {
    margin-left: 4px;
    cursor: help;
}

.leader-pip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--sticky-yellow-bg);
    color: var(--sticky-yellow-ink);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid var(--sticky-yellow-edge);
}

/* Teams list: expandable full team details */
.tcard-tag.leader {
    background: var(--sticky-yellow-bg);
    color: var(--sticky-yellow-ink);
    border-color: var(--sticky-yellow-edge);
}
.tcard-details {
    margin: 0 0 14px;
}
.tcard-details summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-ink);
    width: fit-content;
}
.tcard-details summary:hover {
    text-decoration: underline;
}
.tcard-details-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.tcard-details-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.tcard-details-leader {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.tcard-member-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tcard-member-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
    font-size: 14px;
}
.tcard-member-name {
    font-weight: 600;
    color: var(--ink);
}
.tcard-member-meta {
    font-size: 12.5px;
    color: var(--muted);
}
.tcard-details .team-description {
    margin: 0;
}
.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.location-tag .loc-dot {
    width: 6px;
    height: 6px;
    border-radius: 6px;
    opacity: 0.6;
}

.location-office {
    background: var(--primary-soft);
    color: var(--primary-ink);
    border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.location-office .loc-dot { background: var(--primary-ink); }

.location-remote {
    background: var(--sticky-yellow-bg);
    color: var(--sticky-yellow-ink);
    border: 1px solid var(--sticky-yellow-edge);
}
.location-remote .loc-dot { background: var(--sticky-yellow-ink); }

.missing-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 7px;
    background: #FFF4D6;
    color: #8A5A00;
    border: 1px solid #F0D584;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--sans);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Table footer */
.participants-table-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    background: var(--canvas);
}

.participants-table-footer strong {
    color: var(--ink);
}

.participants-empty-state {
    padding: 48px 0;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
}

/* Footer actions */
.participants-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.participants-actions .spacer {
    flex: 1;
}

/* Toast notification */
.participants-toast {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sticky-green-ink);
    font-weight: 700;
    font-size: 13.5px;
    opacity: 0;
    transition: opacity .2s ease;
}

.participants-toast.visible {
    opacity: 1;
}

/* Responsive stat tiles */
@media (max-width: 900px) {
    .participant-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .participant-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SCREEN ENTRANCE ANIMATION
   ============================================================ */
.screen-enter {
    animation: screenIn .34s cubic-bezier(.2,.7,.3,1);
}

@keyframes screenIn {
    from { transform: translateY(12px); }
    to   { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .screen-enter { animation: none; }
    .team-card { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 24px 16px 60px;
    }

    .container-wide,
    .container-medium {
        margin: 0;
        width: 100%;
        padding: 1.25rem;
        border-radius: 14px;
    }

    .team-info {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .team-actions {
        justify-content: flex-start;
    }

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


    #flash-messages-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .flash-notification {
        padding: 12px 16px;
    }

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

    .team-header-admin {
        flex-direction: column;
    }

    .member-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .member-actions {
        width: 100%;
    }

    .award-header {
        flex-direction: column;
    }

    .award-actions {
        width: 100%;
        flex-direction: column;
    }

    .award-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .award-assignment {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0 10px;
        width: calc(100% - 20px);
        padding: 1.5rem;
        border-radius: 14px;
    }

    .btn {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* ============================================================
   NICER SCROLLBARS
   ============================================================ */
textarea::-webkit-scrollbar {
    width: 10px;
}

textarea::-webkit-scrollbar-thumb {
    background: #DADAE3;
    border-radius: 10px;
    border: 3px solid var(--surface);
}

/* ============================================================
   WINNERS CELEBRATION PAGE
   ============================================================ */
.winners-wrap {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 28px 84px;
}

/* Confetti rain */
.winners-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 560px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.confetti-piece {
    position: absolute;
    top: -20px;
    animation: confetti-fall linear infinite;
}
@keyframes confetti-fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(560px) rotate(720deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .confetti-piece { animation: none; opacity: 0.5; top: 40px; }
}

/* Header section */
.winners-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 34px;
}
.winners-trophy-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    font-size: 38px;
    background: color-mix(in srgb, var(--accent) 26%, var(--surface));
    border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
    box-shadow: 0 16px 40px -20px color-mix(in srgb, var(--accent) 85%, transparent);
}
.winners-announced-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-ink);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 14px;
}
.winners-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 46px);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ink);
    line-height: 1.04;
}
.winners-header .winners-subtitle {
    margin: 12px 0 0;
    font-size: 18px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Hero award card (Best Project) */
.winners-hero {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    animation: win-pop .5s cubic-bezier(.22,1,.36,1) both;
    animation-delay: .08s;
}
.winners-hero-inner {
    position: relative;
    border-radius: 26px;
    padding: 40px 44px;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--accent) 78%, #C99B00);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, var(--surface)) 0%, var(--surface) 58%);
    box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 28px 70px -34px color-mix(in srgb, var(--accent) 85%, transparent);
    display: flex;
    gap: 36px;
    align-items: center;
    flex-wrap: wrap;
}
.winners-hero-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
    background-size: 220% 100%;
    animation: sheen 5.5s ease-in-out 1.2s infinite;
}
@keyframes sheen {
    0%, 100% { background-position: 220% center; }
    50% { background-position: -20% center; }
}
@media (prefers-reduced-motion: reduce) {
    .winners-hero-sheen { animation: none; }
}
.winners-hero-content {
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 1;
}
.winners-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    background: var(--accent);
    color: #241C00;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 90%, transparent);
}
.winners-hero-badge .season-note {
    opacity: .55;
    font-weight: 700;
}
.winners-hero-content h2 {
    margin: 16px 0 0;
    font-size: clamp(2rem, 4.5vw, 50px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ink);
}
.winners-hero-content .hero-desc {
    margin: 14px 0 0;
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 500;
    max-width: 560px;
}
.winners-hero-divider {
    height: 1px;
    background: color-mix(in srgb, var(--accent) 40%, var(--border));
    margin: 26px 0 20px;
}
.winners-hero-team-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px;
}
.winners-hero-members {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.winners-hero-members .member-avatars {
    display: flex;
    flex-shrink: 0;
}
.winners-hero-members .member-names {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.35;
    font-family: var(--mono);
    letter-spacing: -0.02em;
}

/* Member avatar circles */
.win-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--surface);
    flex-shrink: 0;
}
.win-avatar + .win-avatar {
    margin-left: -10px;
}

/* Medallion (right side of hero) */
.winners-medallion {
    flex: 0 0 auto;
    width: 172px;
    height: 172px;
    border-radius: 999px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    text-align: center;
    background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--accent) 55%, #fff) 0%, var(--accent) 46%, #E3A900 100%);
    border: 5px solid color-mix(in srgb, var(--accent) 40%, #fff);
    box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--accent) 85%, transparent), inset 0 2px 10px rgba(255,255,255,.5);
}
.winners-medallion .trophy-emoji {
    font-size: 56px;
    line-height: 1;
}
.winners-medallion .winner-label {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #5C4400;
}
.winners-medallion .season-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #7A5C00;
    opacity: .85;
}

/* Runner-up card grid */
.winners-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.winner-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 14px 34px -26px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    animation: win-pop .5s cubic-bezier(.22,1,.36,1) both;
}
.winner-card-band {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.winner-card-band .award-medal {
    font-size: 20px;
    flex-shrink: 0;
    filter: saturate(1.1);
}
.winner-card-band .award-category {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.winner-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.winner-card-body h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.15;
}
.winner-card-body .card-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.winner-card-members {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.winner-card-members .member-avatars {
    display: flex;
    flex-shrink: 0;
}
.winner-card-members .member-names {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.35;
    font-family: var(--mono);
    letter-spacing: -0.02em;
}
.winner-card-members .win-avatar {
    width: 28px;
    height: 28px;
    font-size: 10.5px;
}

/* Band color variants */
.winner-card-band.band-mint {
    background: var(--sticky-mint-bg);
    color: var(--sticky-mint-ink);
    border-bottom: 1px solid var(--sticky-mint-edge);
}
.winner-card-band.band-blue {
    background: var(--sticky-blue-bg);
    color: var(--sticky-blue-ink);
    border-bottom: 1px solid var(--sticky-blue-edge);
}
.winner-card-band.band-pink {
    background: var(--sticky-pink-bg);
    color: var(--sticky-pink-ink);
    border-bottom: 1px solid var(--sticky-pink-edge);
}
.winner-card-band.band-green {
    background: var(--sticky-green-bg);
    color: var(--sticky-green-ink);
    border-bottom: 1px solid var(--sticky-green-edge);
}
.winner-card-band.band-yellow {
    background: var(--sticky-yellow-bg);
    color: var(--sticky-yellow-ink);
    border-bottom: 1px solid var(--sticky-yellow-edge);
}
.winner-card-band.band-lilac {
    background: var(--sticky-lilac-bg);
    color: var(--sticky-lilac-ink);
    border-bottom: 1px solid var(--sticky-lilac-edge);
}

/* Special Mentions — quieter than award cards */
.mentions-section {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    animation: win-pop .5s cubic-bezier(.22,1,.36,1) both;
    animation-delay: .38s;
}
.mentions-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.mentions-header .mentions-label {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.mentions-header .mentions-divider {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.mentions-header .mentions-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}
.mentions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.mention-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    cursor: pointer;
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    border: 1px solid var(--border);
    border-radius: 13px;
    padding: 14px 16px;
    animation: win-pop .5s cubic-bezier(.22,1,.36,1) both;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.mention-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.mention-card .mention-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-top: 6px;
}
.mention-dot-lilac {
    background: var(--sticky-lilac-edge);
    box-shadow: 0 0 0 3px var(--sticky-lilac-bg);
}
.mention-dot-blue {
    background: var(--sticky-blue-edge);
    box-shadow: 0 0 0 3px var(--sticky-blue-bg);
}
.mention-dot-green {
    background: var(--sticky-green-edge);
    box-shadow: 0 0 0 3px var(--sticky-green-bg);
}
.mention-dot-mint {
    background: var(--sticky-mint-edge);
    box-shadow: 0 0 0 3px var(--sticky-mint-bg);
}
.mention-dot-pink {
    background: var(--sticky-pink-edge);
    box-shadow: 0 0 0 3px var(--sticky-pink-bg);
}
.mention-dot-yellow {
    background: var(--sticky-yellow-edge);
    box-shadow: 0 0 0 3px var(--sticky-yellow-bg);
}
.mention-card .mention-content {
    min-width: 0;
}
.mention-card .mention-category {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.mention-card .mention-team-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    line-height: 1.2;
}
.mention-card .mention-desc {
    margin: 5px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer actions */
.winners-actions {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    animation: win-pop .5s cubic-bezier(.22,1,.36,1) both;
    animation-delay: .44s;
}

/* Pop-in animation */
@keyframes win-pop {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .winners-hero, .winner-card, .winners-actions, .winners-header, .mentions-section, .mention-card {
        animation: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .winners-wrap { padding: 24px 16px 60px; }
    .winners-hero-inner { padding: 24px 20px; flex-direction: column; text-align: center; }
    .winners-hero-content .hero-desc { max-width: 100%; }
    .winners-medallion { width: 120px; height: 120px; }
    .winners-medallion .trophy-emoji { font-size: 40px; }
    .winners-grid { grid-template-columns: 1fr; }
    .mentions-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   STYLE: tc26 — Tech Connect 2026 "Harness the Future"
   Mirrors eng.internal.buzz/tc26. Scoped under [data-style="tc26"] on <html>;
   the default (unscoped) rules above are the "miro" style.
   ============================================================ */
@font-face {
    font-family: "Avenir Next LT Pro";
    src: url("fonts/AvenirNextLTPro-Medium.ttf") format("truetype");
    /* Static faces declared over weight ranges so the many 600/800 weights in the base
       styles map to Medium/Bold exactly — no synthesized bold */
    font-weight: 400 600; font-display: swap;
}
@font-face {
    font-family: "Avenir Next LT Pro";
    src: url("fonts/AvenirNextLTPro-Bold.ttf") format("truetype");
    font-weight: 700 900; font-display: swap;
}
@font-face {
    font-family: "Tiempos Headline";
    src: url("fonts/TiemposHeadline-Medium.otf") format("opentype");
    font-weight: 500; font-display: swap;
}
@font-face {
    font-family: "Tiempos Headline";
    src: url("fonts/TiemposHeadline-MediumItalic.otf") format("opentype");
    font-weight: 500; font-style: italic; font-display: swap;
}

/* Tokens. [data-colorway] is doubled in so a stale localStorage colorway can't win. */
[data-style="tc26"],
[data-style="tc26"][data-colorway] {
    --sans: "Avenir Next LT Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Tiempos Headline", Georgia, serif;

    /* Brand palette — Bastion/Harbour carry text, Hearth/Peak are tints only */
    --bastion: #144745;
    --carbon: #5E5958;
    --harbour: #0D416F;
    --hearth: #FDCDBF;
    --peak: #C3DAF4;
    /* Ember is ~3.7:1 on cream: large text, rules and fills only */
    --tc-ember: #E13C1B;
    --tc-ember-press: #C2310F;
    --tc-cream: #F4F0D1;

    --ink: var(--bastion);
    --muted: var(--carbon);
    --surface: #FFFFFF;
    --canvas: var(--tc-cream);
    --border: #E4DCD4;
    --accent: var(--tc-ember);

    --primary: var(--tc-ember);
    --primary-press: var(--tc-ember-press);
    --primary-soft: #FBE3DA;
    --primary-ink: var(--bastion);
    --primary-color: var(--tc-ember);
    --secondary-color: var(--harbour);

    /* Sticky palette → the TC26 theme fills (Imagine / Take the Reins / Pulling Together /
       Raising the Bar) plus Hearth and a Bastion tint; edges are the same hue darkened. */
    --sticky-yellow-bg: #FFF2CC;  --sticky-yellow-edge: #C9A94A;  --sticky-yellow-ink: #5E4A0E;
    --sticky-pink-bg:   #FDE9D9;  --sticky-pink-edge:   #D08B66;  --sticky-pink-ink:   #7A3415;
    --sticky-blue-bg:   #DCE6F1;  --sticky-blue-edge:   #6F8FB3;  --sticky-blue-ink:   var(--harbour);
    --sticky-green-bg:  #DDEBE4;  --sticky-green-edge:  #4F8A78;  --sticky-green-ink:  var(--bastion);
    --sticky-mint-bg:   #FDCDBF;  --sticky-mint-edge:   #C76E55;  --sticky-mint-ink:   #6E2A16;
    --sticky-lilac-bg:  #E4DFEC;  --sticky-lilac-edge:  #8A7BA3;  --sticky-lilac-ink:  #3F3359;
}

/* ---------- Base ---------- */
[data-style="tc26"] body {
    background: var(--tc-cream);
    font-weight: 500;
}
[data-style="tc26"] ::selection { background: var(--tc-ember); color: #fff; }
[data-style="tc26"] h2,
[data-style="tc26"] h3 {
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: 0;
}

/* Page titles: the badge's all-caps ember headline */
[data-style="tc26"] h1,
[data-style="tc26"] .home-hero-text h1,
[data-style="tc26"] .teams-title-row h1,
[data-style="tc26"] .admin-header h1,
[data-style="tc26"] .team-banner h1 {
    font-family: var(--sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: .98;
    color: var(--tc-ember);
}

/* Section labels: Tiempos italic with the ember day-rule from the agenda */
[data-style="tc26"] .section-label {
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-size: 20px;
    color: var(--tc-ember);
    border-bottom: 2px solid var(--tc-ember);
    padding-bottom: 6px;
}
[data-style="tc26"] .section-label .icon,
[data-style="tc26"] .section-label.accent { color: var(--tc-ember); }

/* Decorative mono (card values, tags, counts) goes sans to match tc26; --mono itself is kept
   for code, markdown editing and structured admin data (.cell-mono). */
[data-style="tc26"] .field-row .value,
[data-style="tc26"] .home-sticky .sticky-row .val,
[data-style="tc26"] .pres-row .pres-num,
[data-style="tc26"] .member-row .member-meta,
[data-style="tc26"] .user-detail span,
[data-style="tc26"] .meta-item,
[data-style="tc26"] .winners-hero-members .member-names,
[data-style="tc26"] .winner-card-members .member-names {
    font-family: var(--sans);
    letter-spacing: 0;
}

/* ---------- Header ---------- */
[data-style="tc26"] .site-header {
    --accent: var(--tc-cream);  /* hive mark fill — keeps the logo visible on ember */
    background: var(--tc-ember);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}
[data-style="tc26"] .header-brand-name {
    color: var(--tc-cream);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
[data-style="tc26"] .header-season-badge {
    background: var(--tc-cream);
    color: var(--tc-ember);
    border-radius: 999px;
}
[data-style="tc26"] .header-nav {
    background: rgba(0,0,0,.12);
    border-radius: 999px;
}
[data-style="tc26"] .header-nav-item {
    color: var(--tc-cream);
    border-radius: 999px;
}
[data-style="tc26"] .header-nav-item:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}
[data-style="tc26"] .header-nav-item.active {
    background: var(--tc-cream);
    color: var(--tc-ember);
    box-shadow: none;
}
[data-style="tc26"] .header-avatar {
    background: var(--tc-cream);
    color: var(--tc-ember);
    border: none;
}
/* tc26 has a fixed palette — no colorway picker */
[data-style="tc26"] .header-theme-switcher { display: none; }

/* ---------- Badge hero (login + home) ---------- */
[data-style="tc26"] .container,
[data-style="tc26"] .home-hero {
    background: var(--tc-cream);
    border: 2px solid var(--tc-ember);
    border-radius: 28px;
    box-shadow: none;
    overflow: hidden;
    position: relative;
}
[data-style="tc26"] .home-hero { padding: 0 32px 32px; align-items: stretch; }
[data-style="tc26"] .container::before,
[data-style="tc26"] .home-hero::before {
    content: "";
    display: block;
    flex: none;
    align-self: stretch;
    width: calc(100% + 64px);
    height: 72px;
    margin: 0 -32px 28px;
    background: var(--tc-ember);
}
[data-style="tc26"] .container::before { width: calc(100% + 80px); margin: -40px -40px 28px; }
[data-style="tc26"] .home-hero-text .season-pill {
    background: var(--tc-ember);
    color: #fff;
}
[data-style="tc26"] .home-hero-text .subtitle strong { color: var(--tc-ember); }
[data-style="tc26"] .logo {
    background: var(--tc-ember);
    color: var(--tc-cream);
    box-shadow: none;
}

/* Sticky notes become flat theme cards with a heavy left edge */
[data-style="tc26"] .home-sticky {
    transform: none;
    box-shadow: none;
    border-radius: 10px;
    border-left: 6px solid var(--sticky-green-edge);
}

/* ---------- Cards ---------- */
[data-style="tc26"] .home-card,
[data-style="tc26"] .pres-card,
[data-style="tc26"] .manage-card,
[data-style="tc26"] .team-card,
[data-style="tc26"] .admin-team-card,
[data-style="tc26"] .user-info,
[data-style="tc26"] .info-box {
    border-radius: 10px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--harbour);
    box-shadow: none;
}
[data-style="tc26"] .pres-card { border-left-color: var(--tc-ember); }
[data-style="tc26"] .pres-header h2 { color: var(--tc-ember); font-size: 26px; }
[data-style="tc26"] .pres-badge,
[data-style="tc26"] .pres-badge .pres-badge-label,
[data-style="tc26"] .pres-badge .pres-badge-value {
    background: var(--tc-ember);
    color: #fff;
    border-color: transparent;
}
[data-style="tc26"] .pres-row.mine {
    background: #FBE3DA;
    border: 1px solid var(--tc-ember);
    border-left: 5px solid var(--tc-ember);
}
[data-style="tc26"] .home-card-footer { background: #FAF7E6; }

/* Team grid: spine moves from a top bar to the agenda's left edge; no tilt */
[data-style="tc26"] .tcard {
    flex-direction: row;
    border-radius: 10px;
    transform: none;
    box-shadow: none;
}
[data-style="tc26"] .tcard:hover {
    transform: none;
    box-shadow: inset 0 0 0 2px var(--tc-ember);
    border-color: var(--tc-ember);
}
[data-style="tc26"] .tcard .tcard-spine {
    height: auto;
    width: 5px;
    flex: 0 0 5px;
}
/* Teams list: one team per row, like the agenda's session cards — name | description | members */
[data-style="tc26"] .teams-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 769px) {
    [data-style="tc26"] .tcard-body {
        display: grid;
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto;
        grid-template-areas: "head desc tags" "head desc footer" "more more more";
        align-items: center;
        column-gap: 28px;
        row-gap: 10px;
        padding: 16px 20px;
    }
    [data-style="tc26"] .tcard-head { grid-area: head; margin: 0; }
    [data-style="tc26"] .tcard-desc { grid-area: desc; margin: 0; }
    [data-style="tc26"] .tcard-tags { grid-area: tags; margin: 0; justify-content: flex-end; align-self: end; }
    [data-style="tc26"] .tcard-details { grid-area: more; margin: 0; }
    [data-style="tc26"] .tcard-details-body { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 20px; }
    [data-style="tc26"] .tcard-footer {
        grid-area: footer;
        align-self: start;
        justify-content: flex-end;
        padding-top: 0;
        border-top: none;
        gap: 14px;
    }
}
[data-style="tc26"] .tcard-head h3,
[data-style="tc26"] .team-preview-name,
[data-style="tc26"] .my-team-highlight .team-name-row .name {
    font-family: var(--display);
    font-style: italic;
    font-weight: 500;
    font-size: 19px;
    letter-spacing: 0;
}
[data-style="tc26"] .tcard-icon,
[data-style="tc26"] .team-preview-icon,
[data-style="tc26"] .my-team-highlight .team-icon {
    border-radius: 999px;
}
[data-style="tc26"] .my-team-highlight {
    background: #FBE3DA;
    border: 1px solid var(--tc-ember);
    border-left: 8px solid var(--tc-ember);
    border-radius: 10px;
    box-shadow: none;
}
[data-style="tc26"] .tcard-tag,
[data-style="tc26"] .team-tag,
[data-style="tc26"] .member-tag {
    font-family: var(--sans);
    border-radius: 999px;
    letter-spacing: 0;
}

/* ---------- Controls ---------- */
[data-style="tc26"] .btn,
[data-style="tc26"] .login-btn,
[data-style="tc26"] .teams-search input,
[data-style="tc26"] .teams-filter-pills,
[data-style="tc26"] .teams-filter-pills button {
    border-radius: 999px;
}
[data-style="tc26"] .btn-primary,
[data-style="tc26"] .login-btn {
    background: var(--tc-ember);
    color: #fff;
    box-shadow: none;
}
[data-style="tc26"] .btn-primary:hover,
[data-style="tc26"] .login-btn:hover { background: var(--tc-ember-press); }
[data-style="tc26"] .teams-filter-pills button.active {
    background: var(--tc-ember);
    color: #fff;
    font-weight: 700;
}
[data-style="tc26"] input:focus,
[data-style="tc26"] textarea:focus,
[data-style="tc26"] select:focus {
    border-color: var(--tc-ember);
    box-shadow: 0 0 0 3px rgba(225,60,27,.18);
}

/* ---------- Tables (admin) ---------- */
[data-style="tc26"] table th {
    font-family: var(--sans);
    color: var(--ink);
    border-bottom: 2px solid var(--tc-ember);
}

[data-style="tc26"] .version { background: var(--surface); color: var(--muted); }
