@font-face {
    font-family: "Sicoob Sans Cnd";
    src: url("../fonts/SicoobSansCnd-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Sicoob Script";
    src: url("../fonts/SicoobScript-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --bg: #123d3d;
    --bg-strong: #0b2d2e;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-strong: #ffffff;
    --line: rgba(8, 63, 66, 0.18);
    --ink: #103738;
    --muted: #3d6160;
    --brand: #0c8a84;
    --brand-deep: #0a5f60;
    --brand-logo-surface: #123d3d;
    --brand-logo-surface-strong: #0b6664;
    --brand-soft: #d0efec;
    --accent: #36b8ad;
    --accent-deep: #1f8b84;
    --gold: #e5b94d;
    --danger: #b9504b;
    --shadow-lg: 0 28px 60px rgba(8, 63, 66, 0.14);
    --shadow-md: 0 16px 36px rgba(8, 63, 66, 0.1);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --max-width: 1380px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Sicoob Sans Cnd", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(140, 198, 63, 0.16), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(0, 168, 107, 0.14), transparent 24%),
        linear-gradient(180deg, #184b49 0%, var(--bg) 42%, var(--bg-strong) 100%);
}

button,
input,
textarea {
    font: inherit;
}

.is-hidden {
    display: none !important;
}

select {
    font: inherit;
}

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

code {
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    background: rgba(0, 125, 67, 0.09);
    color: var(--brand-deep);
}

.app-shell {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 26px 20px 36px;
}

.app-shell-home {
    max-width: 1180px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.75;
    pointer-events: none;
}

.ambient-top {
    top: -90px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: rgba(140, 198, 63, 0.15);
}

.ambient-bottom {
    left: -100px;
    bottom: 90px;
    width: 280px;
    height: 280px;
    background: rgba(0, 125, 67, 0.12);
}


.topbar,
.hero-card,
.workspace-card,
.pane-card,
.summary-card,
.candidate-item {
    position: relative;
    z-index: 1;
    width: 100%;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 24px;
}

.body-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.body-actions > * {
    flex: 0 0 auto;
}

.body-actions .ghost-link {
    border-color: rgba(8, 63, 66, 0.12);
    background: rgba(0, 125, 67, 0.08);
    color: var(--brand-deep);
    box-shadow:
        0 10px 20px rgba(8, 63, 66, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.body-actions .ghost-link:hover {
    border-color: rgba(8, 63, 66, 0.22);
    background: rgba(0, 125, 67, 0.14);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    padding: 8px;
    border-radius: 18px;
    background: linear-gradient(180deg, var(--brand-logo-surface) 0%, var(--brand-logo-surface-strong) 100%);
    box-shadow:
        0 18px 34px rgba(6, 54, 39, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-copy strong,
.hero-copy h1,
.section-header h2,
.pane-card h3,
.summary-card strong,
.winner-chip strong {
    font-family: "Sicoob Sans Cnd", cursive;
}

.brand-copy strong {
    display: block;
    font-size: 1rem;
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.92rem;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow:
        0 20px 40px rgba(7, 31, 32, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.user-chip,
.ghost-link,
.tab-button,
.summary-card,
.pane-card,
.workspace-card,
.hero-card,
.candidate-item,
.overview-card,
.mini-chip {
    backdrop-filter: blur(16px);
}

.user-chip {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-md);
}

.user-chip small,
.feedback,
.support-text,
.summary-card small,
.candidate-meta,
.year-card small,
.distribution-track span,
.empty-state,
.empty-cell {
    color: var(--muted);
}

.ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    font-weight: 800;
}

.nav-link-icon {
    display: inline-grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
    line-height: 1;
}

.nav-link-icon svg,
.btn-icon svg,
.roulette-gear-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ghost-link:hover,
.tab-button:hover,
.btn:hover,
.candidate-item:hover,
.mini-chip:hover {
    transform: translateY(-1px);
}

.ghost-link:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
}

.dashboard {
    display: grid;
    gap: 18px;
}

.home-flow-shell {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 42px;
    background: radial-gradient(circle at top, rgba(124, 194, 66, 0.1), transparent 30%), 
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 247, 241, 0.96) 100%);
    box-shadow:
        0 34px 70px rgba(7, 31, 32, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-stage {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 72px);
}

.login-modal-card {
    width: min(100%, 620px);
    padding: 38px 34px;
    border-radius: 34px;
    text-align: center;
}

.login-brand-mark {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
    border-radius: 34px;
    background: linear-gradient(180deg, var(--brand-logo-surface) 0%, var(--brand-logo-surface-strong) 100%);
    box-shadow:
        0 20px 40px rgba(6, 54, 39, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-brand-mark img {
    width: 64%;
    height: 64%;
    object-fit: contain;
}

.login-title {
    margin: 0;
    font-family: "Sicoob Script", cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.05em;
}

.login-copy {
    max-width: 46ch;
    margin: 14px auto 0;
    color: var(--muted);
    line-height: 1.65;
}

.login-form {
    max-width: 520px;
    margin: 22px auto 0;
    text-align: left;
}

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

.login-alert {
    margin: 18px auto 0;
    max-width: 46ch;
    padding: 14px 16px;
    border: 1px solid rgba(8, 63, 66, 0.08);
    border-radius: 18px;
    background: rgba(12, 138, 132, 0.08);
    color: var(--brand-deep);
    font-weight: 700;
}

.login-user-banner {
    padding: 22px 24px;
}

.login-user-banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-user-banner-row .ghost-link {
    margin-left: auto;
    border-color: rgba(185, 80, 75, 0.24);
    background: rgba(185, 80, 75, 0.1);
    color: var(--danger);
    box-shadow:
        0 10px 20px rgba(185, 80, 75, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.login-user-banner-row .ghost-link:hover {
    border-color: rgba(185, 80, 75, 0.4);
    background: rgba(185, 80, 75, 0.16);
}

.login-user-banner-row h2 {
    margin: 0;
    font-family: "Sicoob Sans Cnd", cursive;
    letter-spacing: -0.03em;
}

.login-user-banner-row .search-panel-lead {
    margin-bottom: 0;
}

.login-sad-shell {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 45;
    padding: 24px;
}

.login-sad-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 31, 32, 0.58);
    backdrop-filter: blur(10px);
}

.login-sad-modal {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: 32px 28px;
    border-radius: 32px;
    text-align: center;
}

.login-sad-face {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(185, 80, 75, 0.14) 0%, rgba(185, 80, 75, 0.08) 100%);
    color: var(--danger);
    font-family: "Sicoob Script", cursive;
    font-size: 2.6rem;
    font-weight: 800;
}

.roulette-gate-modal {
    max-width: 560px;
}

.roulette-gate-face {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(12, 138, 132, 0.14) 0%, rgba(54, 184, 173, 0.08) 100%);
    color: var(--brand);
    font-family: "Sicoob Script", cursive;
    font-size: 2.6rem;
    font-weight: 800;
}

.app-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.app-footer-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-card,
.workspace-card,
.pane-card,
.overview-card,
.summary-card,
.candidate-item {
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 248, 244, 0.94) 100%);
    box-shadow: var(--shadow-lg);
}

.hero-card {
    display: grid;
    gap: 22px;
    padding: 28px;
    border-radius: var(--radius-xl);
}

.hero-card-home {
    align-items: center;
    min-height: 280px;
}

.eyebrow,
.pane-kicker,
.counter-badge,
.winner-chip span,
.distribution-track span {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.73rem;
}

.eyebrow,
.pane-kicker {
    margin: 0 0 10px;
    color: var(--brand);
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0;
    max-width: 15ch;
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 60ch;
    margin: 18px 0 0;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted);
}

.hero-stats {
    display: grid;
    gap: 14px;
}

.hero-stats article,
.year-card,
.distribution-track {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(249, 252, 249, 0.96);
}

.hero-stats span,
.summary-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-stats strong {
    font-size: 1rem;
    line-height: 1.45;
}

.workspace-card {
    padding: 24px;
    border-radius: var(--radius-xl);
}

.section-header,
.card-head-inline,
.wheel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2,
.pane-card h3 {
    margin: 0;
    letter-spacing: -0.03em;
}

.detail-title-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.detail-brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    flex: 0 0 auto;
}

.tab-strip {
    display: inline-flex;
    padding: 6px;
    border-radius: 999px;
    background: rgba(0, 125, 67, 0.08);
}

.detail-tab-strip {
    margin-left: auto;
    flex: 0 0 auto;
}

.tab-button {
    min-height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.tab-button.is-active {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    box-shadow: 0 16px 28px rgba(0, 125, 67, 0.22);
}

.tab-panel,
.detail-tab-panel {
    display: none;
}

.tab-panel.is-active,
.detail-tab-panel.is-active {
    display: block;
}

.year-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.mini-chip.is-active {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(0, 125, 67, 0.18);
}

.summary-grid-evolution {
    margin-bottom: 18px;
}

.evolution-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.evolution-chart-card {
    padding: 20px;
}

.chart-shell {
    min-height: 420px;
}

.chart-shell svg,
.chart-shell canvas {
    display: block;
    width: 100%;
}

.chart-shell canvas {
    height: 100% !important;
}

.chart-empty {
    display: grid;
    place-items: center;
    min-height: 420px;
}

.chart-axis-label,
.chart-point-label,
.chart-bar-label {
    fill: var(--muted);
    font-family: "Sicoob Sans Cnd", sans-serif;
    font-size: 12px;
}

.chart-value-label {
    fill: var(--brand-deep);
    font-family: "Sicoob Script", cursive;
    font-size: 12px;
    font-weight: 700;
}

.chart-grid-line {
    stroke: rgba(8, 63, 66, 0.12);
    stroke-width: 1;
}

.chart-axis-line {
    stroke: rgba(8, 63, 66, 0.22);
    stroke-width: 1.2;
}

.chart-line-primary {
    fill: none;
    stroke: var(--brand);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-secondary {
    fill: none;
    stroke: var(--gold);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-tertiary {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-point-primary {
    fill: var(--brand);
}

.chart-point-secondary {
    fill: var(--gold);
}

.chart-point-tertiary {
    fill: var(--accent);
}

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

.search-grid,
.roulette-layout,
.detail-grid {
    display: grid;
    gap: 18px;
}

.search-grid {
    grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.5fr);
    align-items: start;
}

.totem-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    min-height: 620px;
}

.totem-home-stage {
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 38px 32px;
    text-align: center;
    background:
        radial-gradient(circle at top center, rgba(140, 198, 63, 0.2), transparent 30%),
        radial-gradient(circle at 82% 20%, rgba(228, 193, 74, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 247, 241, 0.95) 100%);
}

.totem-home-brand {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.totem-home-highlights,
.totem-shortcuts,
.totem-cta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.totem-home-brand .search-brand-lockup {
    margin-bottom: 6px;
}

.totem-home-brand h1 {
    margin: 0;
    font-family: "Sicoob Script", cursive;
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    max-width: 9ch;
}

.totem-home-subtitle {
    margin: 0;
    font-size: 1.14rem;
    color: var(--muted);
}

.home-header-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 248, 244, 0.94) 100%);
    box-shadow: var(--shadow-lg);
}

.home-content-band {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 8px 0;
    border-radius: 30px;
}

.home-header-image {
    display: block;
    width: 100%;
    height: clamp(260px, 34vw, 420px);
    object-fit: cover;
    object-position: center;
}

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

.totem-function-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1080px;
    margin: 0 auto;
}

.totem-function-card {
    position: relative;
    display: grid;
    align-content: start;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
        "icon kicker"
        "icon title"
        "icon text";
    column-gap: 16px;
    gap: 5px;
    min-height: 0;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 34px;
    text-align: left;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 248, 244, 0.95) 100%);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.totem-function-card::before {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    opacity: 0.5;
    pointer-events: none;
}

.totem-function-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 34px 70px rgba(8, 63, 66, 0.16);
}

.totem-function-card-search::before {
    background: radial-gradient(circle, rgba(54, 184, 173, 0.32) 0%, transparent 68%);
}

.totem-function-card-roulette::before {
    background: radial-gradient(circle, rgba(229, 185, 77, 0.34) 0%, transparent 68%);
}

.totem-function-card-map::before {
    background: radial-gradient(circle, rgba(18, 61, 61, 0.26) 0%, transparent 68%);
}

.totem-function-card-profile::before {
    background: radial-gradient(circle, rgba(18, 104, 109, 0.28) 0%, transparent 68%);
}

.totem-function-card-principles::before {
    background: radial-gradient(circle, rgba(229, 185, 77, 0.34) 0%, transparent 68%);
}

.totem-function-card-instagram::before {
    background: radial-gradient(circle, rgba(185, 95, 160, 0.28) 0%, transparent 68%);
}

.totem-function-icon {
    grid-area: icon;
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    color: #fff;
}

.totem-function-icon svg {
    width: 26px;
    height: 26px;
}

.totem-function-kicker {
    grid-area: kicker;
    align-self: end;
    color: var(--brand-deep);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.totem-function-card strong {
    grid-area: title;
    font-family: "Sicoob Script", cursive;
    font-size: clamp(1.2rem, 1.6vw, 1.55rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 16ch;
}

.totem-function-card p {
    grid-area: text;
    max-width: 40ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.42;
}

.search-panel-lead {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.totem-shortcuts {
    margin-bottom: 16px;
}

.totem-inline-callout {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(8, 63, 66, 0.08);
    border-radius: 22px;
    background:
        radial-gradient(circle at right top, rgba(228, 193, 74, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 249, 246, 0.88) 100%);
}

.totem-inline-callout strong {
    font-family: "Sicoob Script", cursive;
    font-size: 1.04rem;
}

.totem-inline-callout span {
    color: var(--muted);
}

.totem-copy {
    display: grid;
    gap: 18px;
}

.totem-copy h1 {
    margin: 0;
    max-width: 13ch;
    font-family: "Sicoob Script", cursive;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.totem-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.totem-stage {
    display: grid;
    place-items: center;
    min-height: 100%;
}

.totem-device {
    position: relative;
    width: min(100%, 420px);
    padding: 18px;
    border-radius: 42px;
    background:
        radial-gradient(circle at top, rgba(140, 198, 63, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(13, 45, 46, 0.98) 0%, rgba(7, 31, 32, 0.98) 100%);
    box-shadow:
        0 34px 80px rgba(7, 31, 32, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.totem-device::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.totem-device-topbar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.totem-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.totem-device-body {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 24px 20px 26px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 247, 241, 0.96) 100%);
}

.totem-device-title {
    font-family: "Sicoob Script", cursive;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.totem-device-text {
    margin: 0;
    max-width: 28ch;
    text-align: center;
    color: var(--muted);
    line-height: 1.65;
}

.totem-device-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.totem-device-metrics article,
.totem-info-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(249, 252, 249, 0.96);
}

.totem-device-metrics span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.totem-device-metrics strong {
    font-family: "Sicoob Script", cursive;
}

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

.totem-info-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.home-search-panel {
    display: grid;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
}

.search-panel-shell {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.search-panel-shell.is-open {
    opacity: 1;
    pointer-events: auto;
}

.search-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 31, 32, 0.54);
    backdrop-filter: blur(12px);
}

.search-panel-modal {
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    max-height: min(86vh, 920px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 34px;
}

.search-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.candidates-card.is-hidden {
    display: none;
}

.workspace-card-home {
    max-width: 1500px;
    margin: 0 auto;
    padding: 26px;
}

.search-brand-lockup {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.search-brand-mark,
.detail-brand-mark {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--brand-logo-surface) 0%, var(--brand-logo-surface-strong) 100%);
    box-shadow:
        0 20px 40px rgba(6, 54, 39, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.search-brand-mark {
    width: 112px;
    height: 112px;
    border-radius: 34px;
}

.search-brand-mark img,
.detail-brand-mark img {
    width: 64%;
    height: 64%;
    object-fit: contain;
}

.search-pane-card {
    position: relative;
    padding: 46px 48px;
    border-radius: 34px;
    overflow: hidden;
}

.search-pane-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(140, 198, 63, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
    pointer-events: none;
}

.search-row-home input[type="search"] {
    min-height: 74px;
    padding: 22px 24px;
    font-size: 1.14rem;
    border-radius: 24px;
}

.search-title {
    margin: 0;
    font-family: "Sicoob Script", cursive;
    text-align: center;
    font-size: clamp(2.4rem, 4.8vw, 4rem);
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.search-pane,
.details-pane {
    display: grid;
    gap: 18px;
}

.pane-card,
.overview-card {
    border-radius: var(--radius-lg);
    padding: 10px;
    width: 100%;
}

.search-form,
.roulette-config {
    display: grid;
    gap: 18px;
}

.field-label {
    font-size: 0.92rem;
    font-weight: 700;
}

.search-row {
    display: flex;
    gap: 14px;
}

input[type="search"],
input[type="text"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(0, 125, 67, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(0, 125, 67, 0.48);
    box-shadow: 0 0 0 4px rgba(0, 125, 67, 0.12);
}

textarea {
    resize: vertical;
}

select {
    min-height: 62px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--brand-deep) 50%),
        linear-gradient(135deg, var(--brand-deep) 50%, transparent 50%);
    background-position:
        calc(100% - 24px) calc(50% - 3px),
        calc(100% - 18px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.totem-function-icon-img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.btn,
.mini-chip {
    border: 0;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    padding: 0 26px;
    border-radius: 18px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-icon {
    display: inline-grid;
    place-items: center;
    width: 1rem;
    height: 1rem;
    line-height: 1;
}

.search-row-home .btn {
    min-width: 164px;
    min-height: 74px;
    border-radius: 24px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    box-shadow: 0 18px 30px rgba(0, 125, 67, 0.24);
}

.btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(0, 125, 67, 0.08);
    color: var(--brand-deep);
}

.suggestion-row,
.roulette-actions {
    flex-wrap: wrap;
    padding: 20px;
}

.mini-chip {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(140, 198, 63, 0.18);
    color: var(--brand-deep);
    font-weight: 700;
}

.feedback {
    min-height: 1.4em;
    font-size: 1rem;
    text-align: center;
}

.search-loading-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 31, 32, 0.56);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 40;
}

.search-loading-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.search-loading-card {
    display: grid;
    place-items: center;
}

.search-loading-logo {
    display: grid;
    place-items: center;
    width: 124px;
    height: 124px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow:
        0 18px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    animation: search-loading-pulse 1.4s ease-in-out infinite;
}

.search-loading-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

@keyframes search-loading-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 18px 32px rgba(0, 0, 0, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }
    50% {
        transform: scale(1.04);
        box-shadow:
            0 24px 40px rgba(0, 0, 0, 0.22),
            0 0 0 10px rgba(255, 255, 255, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }
}

.candidate-list,
.year-summary,
.distribution-bars,
.history-list {
    display: grid;
    gap: 12px;
}

.candidate-list-scroll {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding-right: 6px;
}

.candidate-list-scroll::-webkit-scrollbar {
    width: 10px;
}

.candidate-list-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(7, 53, 38, 0.16);
}

.candidate-item {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 22px;
    border-radius: 22px;
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease;
}

.candidate-item.is-selected {
    border-color: rgba(0, 125, 67, 0.42);
    box-shadow: 0 0 0 4px rgba(0, 125, 67, 0.08);
}

.candidate-title-row,
.overview-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.candidate-item strong,
.overview-name {
    font-family: "Sicoob Sans Cnd", cursive;
    font-size: 1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 125, 67, 0.1);
    color: var(--brand-deep);
    font-size: 0.78rem;
    font-weight: 800;
}

.counter-badge {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0, 125, 67, 0.1);
    color: var(--brand-deep);
    font-weight: 800;
}

.overview-card {
    display: grid;
    gap: 14px;
    min-height: 136px;
    border-radius: 28px;
}

.overview-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.overview-meta article {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.overview-meta span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.summary-grid {
    display: flex;
    gap: 16px;
    padding: 10px;
}

.summary-grid-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card {
    padding: 22px;
    border-radius: 24px;
}

.summary-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.distribution-track {
    overflow: hidden;
}

.distribution-track header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.distribution-bar-shell {
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 125, 67, 0.08);
    overflow: hidden;
}

.distribution-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
}

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

.year-card strong {
    display: block;
    margin: 10px 0 6px;
    font-family: "Sicoob Script", cursive;
    font-size: 1.1rem;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

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

.data-table thead th {
    color: var(--brand-deep);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.empty-state,
.empty-cell {
    padding: 16px;
    border: 1px dashed rgba(0, 125, 67, 0.18);
    border-radius: 16px;
    background: rgba(0, 125, 67, 0.04);
}

.empty-cell {
    text-align: center;
}

.roulette-showcase {
    position: relative;
}

.roulette-wheel-composition {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 10px;
}

.roulette-brand-overlay {
    position: absolute;
    left: 43px;
    top: 48px;
    z-index: 3;
    width: min(220px, 18vw);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 18px 28px rgba(8, 63, 66, 0.18)) drop-shadow(0 4px 10px rgba(255, 255, 255, 0.24));
}

.roulette-scenery-figure {
    display: block;
    width: min(470px, 30vw);
    height: auto;
    object-fit: contain;
    filter:
        drop-shadow(0 28px 34px rgba(17, 74, 44, 0.22))
        drop-shadow(0 6px 14px rgba(255, 255, 255, 0.18));
}

.roulette-scenery-overlay {
    position: absolute;
    right: 0;
    z-index: 3;
    pointer-events: none;
}

.distribution-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 18px;
    margin-bottom: 18px;
}

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

.profile-chart-card-wide {
    grid-column: 1 / -1;
}

.profile-chart-shell {
    min-height: 320px;
}

.principles-shell {
    overflow: hidden;
}

.principles-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
    align-items: center;
    gap: 28px;
    margin-bottom: 20px;
    padding: 34px 38px;
    background:
        radial-gradient(circle at top right, rgba(229, 185, 77, 0.18), transparent 28%),
        radial-gradient(circle at left center, rgba(54, 184, 173, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 244, 0.95) 100%);
}

.principles-hero-copy h1 {
    margin: 0 0 14px;
    max-width: 14ch;
    font-family: "Sicoob Script", cursive;
    font-size: clamp(2.4rem, 4.6vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.principles-hero-copy p:last-child {
    max-width: 58ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.principles-hero-copy {
    position: relative;
    z-index: 1;
}

.principles-hero-badges,
.principles-intro {
    display: grid;
    gap: 16px;
}

.principles-hero-badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principles-hero-badges .mini-chip {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    text-align: center;
}

.principles-intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
}

.principles-summary-card {
    min-height: 180px;
}

.principles-summary-card small {
    display: block;
    line-height: 1.7;
}

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

.app-shell-instagram-space {
    max-width: 1120px;
}

.instagram-space-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.instagram-network-layout {
    display: grid;
    gap: 24px;
}

.instagram-space-stage {
    position: relative;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.instagram-network-panel {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 34px rgba(8, 63, 66, 0.06);
}

.instagram-network-panel-top {
    margin-bottom: 10px;
}

.instagram-network-select-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 26px;
    align-items: center;
}

.instagram-network-select-intro {
    display: flex;
    align-items: center;
    gap: 22px;
}

.instagram-network-select-badge {
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    border-radius: 999px;
    background: #d9f0fb;
    color: #174454;
    flex: 0 0 auto;
}

.instagram-network-select-badge img,
.instagram-network-select-badge svg {
    display: block;
    width: 52px;
    height: 52px;
}

.instagram-network-select-copy {
    display: grid;
    gap: 10px;
    justify-items: start;
    text-align: left;
}

.instagram-network-select-copy h3 {
    margin: 0;
    font-family: "Sicoob Script", cursive;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    color: #103948;
}

.instagram-network-select-copy p {
    margin: 0;
    max-width: 28ch;
    color: #103948;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
}

.instagram-network-select-box {
    display: grid;
    gap: 10px;
    justify-self: end;
    width: min(100%, 356px);
}

.instagram-network-select-box .field-label {
    font-size: 1rem;
    color: #103948;
}

.social-network-select-shell {
    position: relative;
    width: 100%;
}

.social-network-select-render {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 80px;
    padding: 0 26px 0 20px;
    border: 1px solid rgba(16, 57, 72, 0.18);
    border-radius: 28px;
    background: #ffffff;
    color: #103948;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.social-network-select-icon,
.instagram-qr-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-network-select-icon svg,
.instagram-qr-pill-icon svg {
    display: block;
    width: 28px;
    height: 28px;
}

.social-network-select-value {
    font-size: 1rem;
    font-weight: 800;
}

.social-network-select-arrow {
    margin-left: auto;
    color: #103948;
}

.social-network-select-arrow svg {
    display: block;
    width: 24px;
    height: 24px;
}

.social-network-select {
    position: absolute;
    inset: 0;
    min-height: 80px;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.instagram-qr-stage {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 10px 0 0;
}

.instagram-qr-card {
    position: relative;
    display: grid;
    gap: 22px;
    width: min(100%, 900px);
}

.instagram-qr-head {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
}

.instagram-qr-head strong {
    font-family: "Sicoob Script", cursive;
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    line-height: 1.02;
    color: #103948;
}

.instagram-qr-pill {
    gap: 10px;
    min-height: 52px;
    padding: 0 18px;
    background: #d8effb;
    color: #103948;
    font-size: 0.95rem;
}

.instagram-qr-shell {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 26px;
    min-height: 680px;
    padding: 38px 36px 44px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #c9e875;
}

.instagram-qr-code {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 560px);
    min-width: 0;
    min-height: 0;
    margin-top: 6px;
}

.instagram-qr-code img,
.instagram-qr-code canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.instagram-qr-code img {
    width: min(100%, 484px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 34px;
    border: 1px solid rgba(16, 57, 72, 0.14);
    border-radius: 30px;
    background: #ffffff;
}

.instagram-qr-region-overlay {
    position: absolute;
    top: -11px;
    right: -66px;
    z-index: 5;
    width: min(34vw, 320px);
    transform: none;
    pointer-events: none;
}

.instagram-qr-region-overlay img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 1;
    filter: drop-shadow(0 16px 24px rgba(8, 63, 66, 0.14));
}

.instagram-qr-logo {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -80%);
    border-radius: 999px;
    background: #087479;
    border: 6px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(8, 63, 66, 0.12);
}

.instagram-qr-logo img {
    width: 68%;
    height: 68%;
    object-fit: contain;
}

.instagram-qr-caption {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #103948;
}

.instagram-qr-caption p {
    margin: 0;
    max-width: 390px;
    color: #103948;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.15;
}

.instagram-qr-caption-icon {
    flex: 0 0 auto;
    width: 42px;
    color: #103948;
}

.instagram-qr-caption-icon img,
.instagram-qr-caption-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

.principle-card {
    position: relative;
    min-height: 270px;
    padding: 28px 168px 28px 28px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(243, 248, 244, 0.95) 100%);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.principle-card::before {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    opacity: 0.48;
    pointer-events: none;
}

.principle-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 34%);
    pointer-events: none;
}

.principle-number {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    padding: 10px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(242, 248, 244, 0.88) 100%);
    color: var(--brand-deep);
    box-shadow:
        0 12px 24px rgba(8, 63, 66, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.principle-number img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.principle-head {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.principle-head-image {
    position: relative;
    display: grid;
    place-items: center;
    justify-self: end;
    width: min(100%, 420px);
    margin-right: 4px;
    transform: translateY(8px);
    isolation: isolate;
}

.principle-head-image-img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 26px rgba(8, 63, 66, 0.12));
    top: 103px;
    right: -24px;
}

.principle-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--brand-deep);
    box-shadow: 0 12px 24px rgba(8, 63, 66, 0.08);
    isolation: isolate;
}

.principle-icon svg {
    width: 38px;
    height: 38px;
}

.principle-icon-image {
    display: block;
    width: 186px;
    height: 134px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 14px 20px rgba(8, 63, 66, 0.1));
    top: 274px;
    right: 25px;
}

.principle-card h2 {
    margin: 0 0 12px;
    max-width: 14ch;
    font-family: "Sicoob Script", cursive;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.principle-card p {
    max-width: 31ch;
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.72;
}

.principle-card-community::before {
    background: radial-gradient(circle, rgba(54, 184, 173, 0.26) 0%, transparent 70%);
}

.principle-card-community .principle-head,
.principle-card-community h2,
.principle-card-community p {
    position: relative;
    z-index: 1;
}

.principle-card-community .principle-head {
    align-items: flex-start;
    margin-bottom: 12px;
}

.principle-card .principle-icon {
    position: absolute;
    top: 22px;
    right: 10px;
    width: 164px;
    height: 164px;
    background: none;
    box-shadow: none;
    border-radius: 0;
    pointer-events: none;
    align-self: start;
}

.principles-grid .principle-card:nth-child(odd) .principle-icon {
    top: 18px;
    right: 4px;
    transform: rotate(-4deg);
}

.principles-grid .principle-card:nth-child(even) .principle-icon {
    top: 30px;
    right: 14px;
    transform: rotate(4deg);
}

.principles-grid .principle-card:nth-child(1) .principle-icon-image,
.principles-grid .principle-card:nth-child(4) .principle-icon-image,
.principles-grid .principle-card:nth-child(7) .principle-icon-image {
    width: 172px;
    height: 172px;
}

.principles-grid .principle-card:nth-child(2) .principle-icon-image,
.principles-grid .principle-card:nth-child(5) .principle-icon-image {
    width: 162px;
    height: 162px;
}

.principles-grid .principle-card:nth-child(3) .principle-icon-image,
.principles-grid .principle-card:nth-child(6) .principle-icon-image {
    width: 178px;
    height: 178px;
}

.principle-card-community .principle-icon-image {
    width: 164px;
    height: 164px;
}

.principle-card-community h2,
.principle-card-community p {
    max-width: 100%;
}

.principle-card-open::before {
    background: radial-gradient(circle, rgba(124, 194, 66, 0.24) 0%, transparent 70%);
}

.principle-card-democracy::before {
    background: radial-gradient(circle, rgba(24, 90, 122, 0.24) 0%, transparent 70%);
}

.principle-card-economy::before {
    background: radial-gradient(circle, rgba(229, 185, 77, 0.3) 0%, transparent 70%);
}

.principle-card-autonomy::before {
    background: radial-gradient(circle, rgba(12, 138, 132, 0.24) 0%, transparent 70%);
}

.principle-card-education::before {
    background: radial-gradient(circle, rgba(31, 161, 135, 0.24) 0%, transparent 70%);
}

.principle-card-intercoop::before {
    background: radial-gradient(circle, rgba(16, 55, 56, 0.26) 0%, transparent 70%);
}

.map-filter-panel,
.map-visual-card,
.map-ranking-card {
    padding: 20px;
}

.map-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.map-filter-grid label {
    display: grid;
    gap: 8px;
}

.map-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.map-filter-actions .btn {
    flex: 1 1 220px;
}

.map-visual-shell {
    min-height: 520px;
}

.leaflet-map-instance {
    width: 100%;
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(8, 63, 66, 0.08);
}

.map-loading-state {
    display: grid;
    place-items: center;
    min-height: 90px;
    color: var(--muted);
    font-weight: 700;
}

.leaflet-container {
    font-family: "Sicoob Sans Cnd", sans-serif;
    background: #dcebe8;
}

.leaflet-popup-content-wrapper {
    border-radius: 18px;
}

.leaflet-popup-content {
    margin: 14px 16px;
}

.map-popup-card {
    display: grid;
    gap: 4px;
    min-width: 180px;
}

.map-popup-card strong {
    font-family: "Sicoob Script", cursive;
    margin-bottom: 2px;
}

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

.map-ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(249, 252, 249, 0.96);
}

.map-ranking-item strong {
    font-family: "Sicoob Script", cursive;
}

.app-shell-roulette .roulette-panel-kicker,
.app-shell-roulette .winner-chip,
.app-shell-roulette .roulette-stat-card strong,
.app-shell-roulette .wheel-head h3,
.app-shell-roulette .roulette-history-panel h3,
.app-shell-roulette .roulette-stage-header h2,
.app-shell-roulette .roulette-config-menu h3,
.app-shell-roulette #roulette-items,
.app-shell-roulette .btn {
    font-family: "Sicoob Sans Cnd", sans-serif;
}

.roulette-config-menu,
.roulette-stage,
.roulette-stage-shell {
    border-radius: 30px;
}

.roulette-config-modal-shell {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.roulette-config-modal-shell.is-open {
    opacity: 1;
    pointer-events: auto;
}

.roulette-config-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 31, 32, 0.58);
    backdrop-filter: blur(10px);
}

.roulette-config-menu {
    position: relative;
    z-index: 1;
    width: min(100%, 580px);
    max-height: min(84vh, 860px);
    overflow-y: auto;
    padding: 22px;
    background:
        radial-gradient(circle at top left, rgba(228, 193, 74, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 242, 0.94) 100%);
    box-shadow: 0 30px 80px rgba(7, 31, 32, 0.34);
}

.roulette-config-menu-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.roulette-config {
    display: grid;
    gap: 18px;
}

.roulette-stage-shell {
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(124, 194, 66, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 247, 241, 0.96) 100%);
}

.roulette-stage {
    position: relative;
    overflow: visible;
    background:
        radial-gradient(circle at top, rgba(124, 194, 66, 0.14), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(228, 193, 74, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(240, 247, 241, 0.96) 100%);
}

.roulette-stage-featured {
    padding: 28px;
}

.roulette-stage-header {
    margin-bottom: 18px;
}

.roulette-menu-toggle {
    min-width: 58px;
    width: 58px;
    padding: 0;
    border-radius: 999px;
}

.roulette-menu-close {
    min-width: 104px;
}

.roulette-gear-icon {
    display: inline-grid;
    place-items: center;
    width: 1.28rem;
    height: 1.28rem;
    line-height: 1;
}

.roulette-panel-kicker {
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.roulette-panel-copy {
    margin: 10px 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.roulette-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.roulette-stat-card {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(8, 63, 66, 0.08);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.roulette-stat-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

.roulette-stat-card strong {
    font-family: "Sicoob Script", cursive;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.roulette-helper-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.roulette-actions {
    margin-top: 4px;
}

.roulette-actions .btn {
    flex: 1 1 220px;
}

.wheel-head {
    margin-bottom: 18px;
}

.roulette-stage-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.roulette-spin-cta {
    min-width: 240px;
    box-shadow: 0 20px 34px rgba(0, 125, 67, 0.24);
}

.totem-cta-strip {
    justify-content: center;
    margin-top: 18px;
}

.totem-cta-strip span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(0, 125, 67, 0.08);
    color: var(--brand-deep);
    font-size: 0.88rem;
    font-weight: 800;
}

.winner-chip {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(0, 168, 107, 0.14) 0%, rgba(228, 193, 74, 0.18) 100%);
    border: 1px solid rgba(8, 63, 66, 0.08);
}

.winner-chip.is-winning {
    background: linear-gradient(135deg, rgba(0, 168, 107, 0.2) 0%, rgba(228, 193, 74, 0.34) 100%);
    box-shadow:
        0 18px 32px rgba(0, 125, 67, 0.16),
        0 0 0 6px rgba(228, 193, 74, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    animation: winner-chip-pulse 900ms ease-out;
}

.winner-chip.is-loser {
    background: linear-gradient(135deg, rgba(185, 80, 75, 0.12) 0%, rgba(109, 127, 121, 0.18) 100%);
    box-shadow:
        0 16px 28px rgba(90, 42, 39, 0.16),
        0 0 0 6px rgba(185, 80, 75, 0.08);
}

.winner-chip strong {
    font-size: 1.12rem;
}

.winner-chip strong.is-loser {
    color: var(--danger);
}

.wheel-shell {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 620px;
    padding: 28px 40px 32px;
    border-radius: 36px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0%, rgba(233, 246, 233, 0.95) 48%, rgba(206, 232, 209, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 24px 46px rgba(8, 63, 66, 0.12);
}

.wheel-shell::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 30px;
    border: 1px dashed rgba(10, 95, 96, 0.14);
    pointer-events: none;
}

.wheel-shell.is-spinning {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 28px 54px rgba(8, 63, 66, 0.18),
        0 0 0 10px rgba(255, 255, 255, 0.28);
}

.wheel-shell.is-winning {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 30px 58px rgba(8, 63, 66, 0.22),
        0 0 0 12px rgba(228, 193, 74, 0.18),
        0 0 70px rgba(228, 193, 74, 0.28);
    animation: wheel-win-burst 980ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wheel-shell.is-loser {
    animation: loser-shake 560ms ease-in-out;
    filter: grayscale(0.24) saturate(0.74) contrast(0.94);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 24px 46px rgba(91, 44, 41, 0.18),
        0 0 0 10px rgba(185, 80, 75, 0.12);
}

.wheel-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.55;
    pointer-events: none;
}

.wheel-glow-left {
    top: 70px;
    left: 44px;
    background: rgba(124, 194, 66, 0.18);
}

.wheel-glow-right {
    right: 44px;
    bottom: 84px;
    background: rgba(228, 193, 74, 0.18);
}

.wheel-crown {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(8, 63, 66, 0.08);
    color: var(--brand-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
}

.wheel-pointer {
    position: absolute;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 42px solid var(--gold);
    filter: drop-shadow(0 10px 12px rgba(97, 79, 18, 0.26));
    z-index: 2;
}

#gift-wheel {
    display: block;
    width: min(100%, 480px) !important;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 28px rgba(8, 63, 66, 0.12));
}

.wheel-center-badge {
    position: absolute;
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, rgba(18, 61, 61, 0.98), rgba(11, 45, 46, 0.96) 60%, rgba(7, 31, 32, 0.98) 100%);
    border: 10px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 18px 36px rgba(8, 63, 66, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    z-index: 2;
    pointer-events: none;
}

.wheel-center-spin {
    width: 124px;
    height: 124px;
    padding: 0;
    gap: 2px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 4;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.wheel-center-spin:hover {
    transform: scale(1.04);
    box-shadow:
        0 22px 40px rgba(8, 63, 66, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.wheel-center-spin:active {
    transform: scale(0.98);
}

.wheel-center-spin-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.wheel-center-spin strong {
    font-family: "Sicoob Script", cursive;
    font-size: 1.2rem;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.wheel-result-banner {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) scale(0.72);
    display: grid;
    gap: 4px;
    min-width: min(82%, 420px);
    padding: 18px 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(11, 45, 46, 0.96) 0%, rgba(18, 61, 61, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 44px rgba(7, 31, 32, 0.28);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    text-align: center;
}

.wheel-result-banner.is-visible {
    animation: wheel-result-pop 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.wheel-result-banner.is-loser {
    background: linear-gradient(135deg, rgba(91, 44, 41, 0.96) 0%, rgba(124, 55, 50, 0.98) 100%);
}

.wheel-result-kicker {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wheel-result-banner strong {
    color: #fff;
    font-family: "Sicoob Script", cursive;
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.history-list {
    margin-top: 18px;
}

.roulette-stage-copy {
    margin-top: 6px;
}

.feedback.status-success {
    color: var(--brand-deep);
}

.feedback.status-dramatic {
    font-weight: 800;
    letter-spacing: 0.01em;
}

.roulette-history-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(8, 63, 66, 0.08);
}

.history-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(246, 249, 246, 0.82) 100%);
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(8, 63, 66, 0.06);
}

.history-entry strong {
    font-family: "Sicoob Script", cursive;
}

.history-entry.is-loser {
    border-color: rgba(185, 80, 75, 0.18);
}

.kiosk-shell,
.registration-shell,
.queue-panel {
    display: grid;
    gap: 20px;
}

.kiosk-hero,
.queue-grid {
    display: grid;
    gap: 20px;
}

.kiosk-hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: center;
}

.kiosk-copy {
    display: grid;
    gap: 16px;
}

.kiosk-cta-row {
    flex-wrap: wrap;
}

.kiosk-qr-card,
.queue-current-card,
.queue-ticket-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 122, 87, 0.12);
    border-radius: 24px;
    padding: 20px;
}

.kiosk-qr-card {
    justify-items: center;
    text-align: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 122, 87, 0.14);
}

.kiosk-qr-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(124, 194, 66, 0.22), transparent 34%),
        radial-gradient(circle at bottom left, rgba(228, 193, 74, 0.18), transparent 32%);
    pointer-events: none;
}

.kiosk-qr-image {
    width: min(100%, 260px);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 20px;
    background: #ffffff;
    padding: 14px;
}

.kiosk-link {
    display: block;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

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

.kiosk-feature-grid .totem-function-card {
    min-height: 210px;
    box-shadow: 0 22px 40px rgba(8, 63, 66, 0.08);
}

.instagram-cta-row {
    justify-content: center;
    margin-top: 18px;
}

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

.queue-grid-roulette {
    margin-bottom: 16px;
}

.queue-current-card {
    min-height: 110px;
}

.queue-current-card strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
}

.app-shell-registration .registration-shell {
    max-width: 860px;
    margin: 0 auto;
}

@keyframes winner-chip-pulse {
    0% {
        transform: scale(0.96);
    }
    60% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes wheel-win-burst {
    0% {
        transform: scale(0.97);
        filter: saturate(1);
    }
    45% {
        transform: scale(1.025);
        filter: saturate(1.16);
    }
    100% {
        transform: scale(1);
        filter: saturate(1);
    }
}

@keyframes wheel-result-pop {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.72);
    }
    58% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.status-error {
    color: var(--danger);
}

.cooperado-entry {
    isolation: isolate;
}

.cooperado-animate {
    opacity: 0;
    margin: 10px;
    transform: translateY(22px) scale(0.985);
    animation: cooperado-enter 640ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--enter-delay, 0ms);
    will-change: transform, opacity;
}

.cooperado-entry .distribution-bar-fill {
    transform-origin: left center;
    animation: cooperado-bar-grow 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 620ms;
}

@keyframes cooperado-enter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes cooperado-bar-grow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes loser-shake {
    0% { transform: translateX(0) rotate(0deg); }
    15% { transform: translateX(-10px) rotate(-1deg); }
    30% { transform: translateX(9px) rotate(1deg); }
    45% { transform: translateX(-8px) rotate(-1deg); }
    60% { transform: translateX(7px) rotate(1deg); }
    75% { transform: translateX(-4px) rotate(-0.5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .cooperado-animate,
    .cooperado-entry .distribution-bar-fill,
    .winner-chip.is-winning,
    .wheel-shell.is-winning,
    .wheel-shell.is-loser {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

@media (max-width: 1120px) {
    .hero-card,
    .principles-hero,
    .search-grid,
    .totem-hero,
    .totem-overview,
    .distribution-map-grid {
        grid-template-columns: 1fr;
    }

    .totem-function-grid {
        grid-template-columns: 1fr;
    }

    .profile-chart-grid {
        grid-template-columns: 1fr;
    }

    .kiosk-hero,
    .queue-grid {
        grid-template-columns: 1fr;
    }

    .kiosk-feature-grid {
        grid-template-columns: 1fr;
    }

    .principles-grid,
    .principles-intro,
    .principles-hero-badges {
        grid-template-columns: 1fr;
    }

    .overview-meta,
    .summary-grid,
    .year-summary,
    .map-filter-grid,
    .summary-grid-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .principle-card {
        padding: 20px 20px 24px;
    }

    .principle-head {
        min-height: 140px;
        margin-bottom: 18px;
    }

    .principle-head-image {
        width: min(100%, 320px);
        margin: 0 auto;
    }

    .principle-head-image::before {
        width: 270px;
        height: 270px;
    }

    .principle-card .principle-icon {
        top: 8px;
        right: 50%;
        width: 148px;
        height: 148px;
        transform: translateX(50%);
    }

    .principles-grid .principle-card:nth-child(odd) .principle-icon,
    .principles-grid .principle-card:nth-child(even) .principle-icon {
        top: 8px;
        right: 50%;
        transform: translateX(50%);
    }

    .principle-card-community .principle-icon-image {
        width: 148px;
        height: 148px;
    }

    .principles-grid .principle-card:nth-child(n) .principle-icon-image {
        width: 148px;
        height: 148px;
    }

    .app-shell {
        padding: 16px 14px 30px;
    }

    .topbar,
    .section-header,
    .card-head-inline,
    .wheel-head,
    .search-row,
    .roulette-config-menu-head,
    .search-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .top-actions,
    .tab-strip,
    .roulette-helper-row {
        width: 100%;
    }

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

    .roulette-stat-grid {
        grid-template-columns: 1fr;
    }

    .roulette-stage-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .roulette-brand-overlay {
        left: 50%;
        top: -8px;
        width: min(150px, 34vw);
        transform: translateX(-50%);
    }

    .roulette-config-modal-shell {
        padding: 14px;
    }

    .roulette-stage-shell,
    .roulette-stage-featured {
        padding: 18px;
    }

    .roulette-wheel-composition {
        padding-right: 0;
        padding-bottom: 72px;
    }

    .roulette-scenery-overlay {
        right: 50%;
        bottom: -8px;
        width: min(180px, 38vw);
        transform: translateX(64%);
    }

    .detail-title-block {
        align-items: flex-start;
    }

    .tab-strip {
        display: grid;
        gap: 8px;
        padding: 0;
        background: transparent;
    }

    .tab-button {
        background: rgba(0, 125, 67, 0.08);
    }

    .hero-card,
    .workspace-card,
    .pane-card,
    .overview-card,
    .summary-card {
        padding: 18px;
    }

    .workspace-card-home {
        padding: 16px;
    }

    .totem-copy h1 {
        max-width: 100%;
        font-size: clamp(2.4rem, 9vw, 3.6rem);
    }

    .totem-home-stage {
        min-height: 240px;
        padding: 28px 22px;
    }

    .app-shell-home,
    .home-flow-shell,
    .home-header-card,
    .home-content-band,
    .totem-function-grid-three,
    .app-footer {
        max-width: 100%;
    }

    .totem-home-brand h1 {
        max-width: 100%;
        font-size: clamp(2.3rem, 10vw, 3.8rem);
    }

    .totem-function-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "kicker"
            "title"
            "text";
        min-height: 280px;
        padding: 24px;
        row-gap: 12px;
    }

    .home-content-band {
        padding: 6px 6px 0;
        border-radius: 24px;
    }

    .home-flow-shell {
        padding: 12px;
        border-radius: 30px;
    }

    .home-header-image {
        height: clamp(160px, 34vw, 240px);
    }

    .instagram-network-layout {
        grid-template-columns: 1fr;
    }

    .instagram-network-select-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .instagram-network-select-intro {
        align-items: flex-start;
    }

    .instagram-network-select-copy p {
        max-width: 100%;
    }

    .instagram-network-select-box {
        width: 100%;
        justify-self: stretch;
    }

    .instagram-network-panel,
    .instagram-qr-stage {
        padding: 18px;
    }

    .instagram-qr-head strong {
        font-size: clamp(1.6rem, 7vw, 2.1rem);
    }

    .instagram-qr-shell {
        min-height: 0;
        padding: 120px 18px 28px;
    }

    .instagram-qr-code {
        width: 100%;
        min-width: 220px;
    }

    .instagram-qr-code img {
        width: min(100%, 420px);
        padding: 22px;
    }

    .instagram-qr-region-overlay {
        top: 68px;
        right: 50%;
        width: min(78vw, 260px);
        transform: translateX(50%);
    }

    .instagram-qr-logo {
        width: 92px;
        height: 92px;
        transform: translate(-50%, -58%);
    }

    .instagram-qr-caption {
        flex-direction: column;
        text-align: center;
    }

    .instagram-qr-caption p {
        max-width: 100%;
    }

    .body-actions,
    .totem-shortcuts,
    .totem-home-highlights,
    .totem-cta-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .body-actions > *,
    .totem-shortcuts > *,
    .totem-home-highlights > *,
    .totem-cta-strip > * {
        width: 100%;
        justify-content: center;
    }

    .search-panel-shell {
        padding: 14px;
    }

    .search-panel-modal {
        padding: 18px;
        border-radius: 28px;
    }

    .search-pane-card {
        padding: 28px 22px;
        border-radius: 28px;
    }

    .search-brand-mark {
        width: 88px;
        height: 88px;
        border-radius: 26px;
    }

    .search-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .login-grid {
        grid-template-columns: 1fr;
    }

    .login-user-banner-row {
        flex-direction: row;
        align-items: center;
    }

    .search-row-home input[type="search"],
    .search-row-home .btn {
        min-height: 62px;
        border-radius: 20px;
    }

    .overview-meta,
    .summary-grid,
    .year-summary,
    .map-filter-grid,
    .summary-grid-map {
        grid-template-columns: 1fr;
    }

    .wheel-shell {
        min-height: 430px;
        padding: 18px 22px 22px;
    }

    .wheel-result-banner {
        bottom: 18px;
        min-width: calc(100% - 28px);
        padding: 16px 18px;
    }

    .wheel-pointer {
        top: 68px;
    }

    .wheel-center-badge {
        width: 84px;
        height: 84px;
        border-width: 8px;
    }

    #gift-wheel {
        width: 100%;
        max-width: 360px;
    }

    .map-visual-shell {
        min-height: 360px;
    }

    .leaflet-map-instance {
        min-height: 360px;
    }
}
