:root {
    color-scheme: light;
    --background: var(--cream, #f6f4ed);
    --surface: var(--paper, #fff);
    --primary: var(--green-900, #143c33);
    --primary-dark: var(--green-950, #0c2822);
    --accent: var(--lime-300, #b8cf91);
    --shadow: var(--shadow-sm, 0 8px 26px rgba(12,40,34,.09));
    font-family: "Open Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0, rgba(184,207,145,.22), transparent 35%), var(--background); color: var(--ink); line-height: 1.6; }
body, button, input, select, textarea { font-family: "Open Sans", Arial, sans-serif; }
a { color: var(--green-700, #2d695a); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 12px; color: var(--ink); font-family: "Bakbak One", Impact, sans-serif; font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.45rem; }
p { margin-top: 0; }
:focus-visible { outline: 3px solid #f0c75e; outline-offset: 4px; }

.topbar { position: sticky; z-index: 10; top: 0; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px clamp(18px, 5vw, 72px); color: var(--paper, #fff); background: rgba(20,60,51,.97); border-bottom: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 24px rgba(12,40,34,.12); backdrop-filter: blur(12px); }
.topbar nav { display: flex; align-items: center; gap: 12px; }
.topbar a { color: var(--paper, #fff); }
.brand { min-height: 48px; display: inline-flex; align-items: center; gap: 12px; color: var(--paper, #fff); font-family: "Bakbak One", Impact, sans-serif; font-size: 1.12rem; line-height: 1; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 50px; flex: 0 0 46px; object-fit: contain; }
.brand-mark { width: 42px; height: 46px; display: inline-grid; place-items: center; color: var(--green-950, #0c2822); background: var(--lime-300, #b8cf91); border-radius: 14px 14px 20px 20px; font-family: Georgia, serif; font-size: 1.7rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.brand em { display: inline-block; margin-left: 6px; padding: 4px 7px; border-radius: 999px; color: var(--green-950, #0c2822); background: var(--lime-300, #b8cf91); font-family: "Open Sans", Arial, sans-serif; font-size: .65rem; font-style: normal; font-weight: 700; vertical-align: middle; }
.link-button { padding: 8px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: var(--paper, #fff); background: transparent; font-weight: 700; }
.link-button:hover { background: rgba(255,255,255,.1); }
.inline-form { display: inline; }

.container { width: min(1180px, calc(100% - 40px)); margin: 34px auto 78px; }
.hero { position: relative; overflow: hidden; margin-bottom: 24px; padding: clamp(28px, 5vw, 58px); color: rgba(255,255,255,.84); background: radial-gradient(circle at 12% 12%, rgba(128,168,84,.25), transparent 36%), linear-gradient(135deg, var(--green-950, #0c2822), var(--green-800, #215045)); border-radius: 28px; box-shadow: var(--shadow-lg, 0 24px 70px rgba(12,40,34,.18)); }
.hero::after { position: absolute; top: -180px; right: -80px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; pointer-events: none; }
.hero h1, .hero h2 { position: relative; z-index: 1; max-width: 800px; color: var(--paper, #fff); }
.hero p { position: relative; z-index: 1; max-width: 780px; margin-bottom: 0; font-size: 1.05rem; }
.card { margin-bottom: 20px; padding: clamp(20px, 3vw, 30px); background: var(--surface, #fff); border: 1px solid var(--line, #dce3df); border-radius: 20px; box-shadow: var(--shadow, 0 8px 26px rgba(12,40,34,.09)); }
.login-card { max-width: 540px; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid > * { min-width: 0; }
.stat { min-width: 0; min-height: 86px; padding: 16px; background: var(--soft, #edf2ef); border: 1px solid var(--line, #dce3df); border-radius: 14px; }
.stat strong { display: block; margin-top: 5px; font-size: 1.4rem; }
.stat-hash { overflow: hidden; }
.stat strong.hash-value { font-size: .88rem; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; }
.muted, .small { color: var(--muted, #5c6a66); }
.small { font-size: .88rem; }
.field { margin-bottom: 18px; }
label { display: block; margin-bottom: 7px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #b9c9c0; border-radius: 11px; font: inherit; }
textarea { min-height: 116px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(128,168,84,.25); border-color: var(--green-700, #2d695a); }
input[type="checkbox"] { width: auto; margin-right: 8px; accent-color: var(--green-700, #2d695a); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
button, .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; color: var(--green-950, #0c2822); background: var(--accent, #b8cf91); border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease; }
button:hover, .button:hover { color: var(--green-950, #0c2822); background: #cce0a8; text-decoration: none; transform: translateY(-1px); }
button:disabled, .button-disabled { color: #5c6662; background: #dfe5e1; cursor: not-allowed; transform: none; }
.button.secondary { color: var(--green-900, #143c33); background: transparent; border-color: var(--green-700, #2d695a); }
.button.secondary:hover { color: var(--paper, #fff); background: var(--green-700, #2d695a); }
button.success, .button.success { color: var(--paper, #fff); background: var(--success, #1f6a46); }
button.success:hover, .button.success:hover { color: var(--paper, #fff); background: #155335; }
.flash, .notice { margin-bottom: 16px; padding: 14px 16px; border-radius: 12px; }
.flash { border: 1px solid; }
.flash.success { color: #145c3b; background: #e9f5ed; border-color: #a8d5b7; }
.flash.error { color: #8b261f; background: #fff0ee; border-color: #e8b1aa; }
.flash.warning { color: #725000; background: #fff7df; border-color: #ebcf83; }
.notice { border-left: 4px solid var(--lime-500, #80a854); background: rgba(184,207,145,.2); }
.danger-text { color: var(--error, #a72f26); }
.success-text { color: var(--success, #1f6a46); }

.stepper { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.stepper li { padding: 8px 13px; color: var(--muted, #5c6a66); background: rgba(255,255,255,.7); border: 1px solid var(--line, #dce3df); border-radius: 999px; font-size: .82rem; font-weight: 600; }
.stepper li.current { color: var(--green-950, #0c2822); background: var(--lime-300, #b8cf91); border-color: var(--lime-300, #b8cf91); font-weight: 800; }
.badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: var(--green-900, #143c33); background: #e5ece8; font-size: .76rem; font-weight: 800; }
.badge.success { color: #145c3b; background: #d6eedf; }
.badge.warning { color: #725000; background: #fff0bf; }
.badge.danger { color: #8b261f; background: #ffe0dc; }
.badge.demo { color: #624c12; background: #f8e6a4; }
.badge.official { color: #145c3b; background: #d6eedf; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line, #dce3df); text-align: left; vertical-align: top; }
th { color: var(--muted, #5c6a66); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
code, .code { color: #d8f2df; background: var(--green-950, #0c2822); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
code { padding: 2px 5px; color: var(--green-900, #143c33); background: var(--soft, #edf2ef); overflow-wrap: anywhere; }
.code { display: block; padding: 15px; overflow: auto; white-space: pre-wrap; }
.progress-bar { display: block; width: 100%; height: 14px; border: 0; border-radius: 999px; background: #e2eae4; appearance: none; }
.progress-bar::-webkit-progress-bar { background: #e2eae4; border-radius: 999px; }
.progress-bar::-webkit-progress-value { background: linear-gradient(90deg, var(--green-700, #2d695a), var(--lime-500, #80a854)); border-radius: 999px; }
.progress-bar::-moz-progress-bar { background: linear-gradient(90deg, var(--green-700, #2d695a), var(--lime-500, #80a854)); border-radius: 999px; }
.upload-progress { margin: 18px 0; }

@media (max-width: 680px) {
    .topbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px 18px; }
    .topbar nav { width: 100%; justify-content: space-between; }
    .container { width: min(100% - 24px, 1180px); margin-top: 20px; }
    .hero, .card { padding: 20px; border-radius: 17px; }
    .stepper { gap: 6px; }
    .stepper li { flex: 1 1 44%; text-align: center; }
    table { min-width: 580px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Premium visual layer: keeps the existing markup and interaction contract intact. */
:root {
    --ui-ease: cubic-bezier(.2, .75, .25, 1);
    --ui-shadow-soft: 0 16px 42px rgba(12, 40, 34, .12);
    --ui-shadow-focus: 0 0 0 4px rgba(128, 168, 84, .16);
}

body {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 6%, rgba(184, 207, 145, .22), transparent 28rem),
        radial-gradient(circle at 92% 18%, rgba(128, 168, 84, .13), transparent 24rem),
        linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 42%),
        var(--background);
}

body::before {
    position: fixed;
    z-index: -1;
    top: -18rem;
    right: -10rem;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(33, 80, 69, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(33, 80, 69, .025), 0 0 0 7rem rgba(33, 80, 69, .018);
    content: "";
    pointer-events: none;
}

.topbar {
    overflow: hidden;
    background: linear-gradient(105deg, rgba(12, 40, 34, .98), rgba(20, 60, 51, .94) 58%, rgba(45, 105, 90, .88));
    border-bottom-color: rgba(255, 255, 255, .14);
    box-shadow: 0 14px 36px rgba(12, 40, 34, .17);
    backdrop-filter: blur(18px);
}

.topbar::after {
    position: absolute;
    right: 8%;
    bottom: -3rem;
    width: 18rem;
    height: 8rem;
    border: 1px solid rgba(184, 207, 145, .16);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: rotate(-10deg);
}

.topbar nav > a {
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    transition: background-color 180ms var(--ui-ease), border-color 180ms var(--ui-ease), transform 180ms var(--ui-ease);
}

.topbar nav > a:hover, .topbar nav > a:focus-visible {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .16);
    text-decoration: none;
    transform: translateY(-1px);
}

.brand img { filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .18)); }
.brand-mark { background: linear-gradient(145deg, #d3e7aa, var(--lime-300, #b8cf91)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 8px 20px rgba(0, 0, 0, .14); transition: transform 220ms var(--ui-ease), box-shadow 220ms var(--ui-ease); }
.brand:hover .brand-mark { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 10px 26px rgba(0, 0, 0, .2); transform: rotate(-4deg) translateY(-2px); }
.link-button { background: rgba(255, 255, 255, .035); transition: background-color 180ms var(--ui-ease), border-color 180ms var(--ui-ease), transform 180ms var(--ui-ease); }
.link-button:hover, .link-button:focus-visible { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .42); transform: translateY(-1px); }

.hero {
    display: flex;
    min-height: 218px;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 12% 12%, rgba(128, 168, 84, .34), transparent 34%),
        radial-gradient(circle at 88% 115%, rgba(184, 207, 145, .18), transparent 35%),
        linear-gradient(135deg, var(--green-950, #0c2822), var(--green-800, #215045) 62%, var(--green-700, #2d695a));
    background-size: 150% 150%;
    border: 1px solid rgba(255, 255, 255, .12);
    animation: ui-hero-breathe 18s ease-in-out infinite alternate;
}

.hero::before {
    position: absolute;
    right: 7%;
    bottom: -7rem;
    width: 24rem;
    height: 15rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 2rem rgba(255, 255, 255, .025), 0 0 0 4rem rgba(255, 255, 255, .018);
    content: "";
    pointer-events: none;
    transform: rotate(-18deg);
}

.hero h1, .hero h2 { text-wrap: balance; }
.hero p { color: rgba(255, 255, 255, .78); text-wrap: pretty; }

.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .84));
    border-color: rgba(220, 227, 223, .95);
    box-shadow: var(--shadow, 0 8px 26px rgba(12, 40, 34, .09));
    transition: border-color 220ms var(--ui-ease), box-shadow 220ms var(--ui-ease), transform 220ms var(--ui-ease);
}

.card::before {
    position: absolute;
    top: 0;
    right: 10%;
    left: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(128, 168, 84, .36), transparent);
    content: "";
}

.card:hover { border-color: rgba(128, 168, 84, .38); box-shadow: var(--ui-shadow-soft); }

.stat {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(237, 242, 239, .98), rgba(255, 255, 255, .82));
    transition: transform 180ms var(--ui-ease), border-color 180ms var(--ui-ease), box-shadow 180ms var(--ui-ease);
}

.stat::after { position: absolute; right: -2rem; bottom: -3rem; width: 7rem; height: 7rem; border: 1px solid rgba(128, 168, 84, .16); border-radius: 50%; content: ""; }
.stat:hover { border-color: rgba(128, 168, 84, .5); box-shadow: 0 9px 24px rgba(12, 40, 34, .08); transform: translateY(-2px); }

label { color: var(--green-950, #0c2822); font-size: .9rem; font-weight: 800; }
input, textarea, select { min-height: 46px; padding: 11px 14px; background: rgba(255, 255, 255, .92); border-radius: 13px; box-shadow: inset 0 1px 2px rgba(12, 40, 34, .035); transition: border-color 180ms var(--ui-ease), box-shadow 180ms var(--ui-ease), background-color 180ms var(--ui-ease); }
input:hover, textarea:hover, select:hover { border-color: #8eafa0; }
input:focus, textarea:focus, select:focus { outline: var(--ui-shadow-focus); background: #fff; box-shadow: 0 0 0 1px rgba(45, 105, 90, .12), 0 9px 22px rgba(12, 40, 34, .07); }
input[type="file"] { min-height: auto; padding: 10px; background: linear-gradient(135deg, rgba(237, 242, 239, .82), rgba(255, 255, 255, .94)); border-style: dashed; }
input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 12px; color: var(--green-950, #0c2822); background: var(--accent, #b8cf91); border: 0; border-radius: 9px; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }

button, .button {
    position: relative;
    isolation: isolate;
    min-height: 46px;
    overflow: hidden;
    background: linear-gradient(135deg, #cfe4a7, var(--accent, #b8cf91));
    border: 1px solid rgba(82, 116, 47, .22);
    box-shadow: 0 8px 18px rgba(82, 116, 47, .16), inset 0 1px 0 rgba(255, 255, 255, .42);
    transition: transform 180ms var(--ui-ease), background 180ms var(--ui-ease), box-shadow 180ms var(--ui-ease), border-color 180ms var(--ui-ease);
}

button::before, .button::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .4) 47%, transparent 72%); content: ""; opacity: 0; transform: translateX(-120%); transition: opacity 180ms ease, transform 500ms var(--ui-ease); }
button:hover, .button:hover, button:focus-visible, .button:focus-visible { background: linear-gradient(135deg, #dff0be, #c6dc9c); border-color: rgba(82, 116, 47, .36); box-shadow: 0 12px 26px rgba(82, 116, 47, .22), inset 0 1px 0 rgba(255, 255, 255, .55); transform: translateY(-2px); }
button:hover::before, .button:hover::before, button:focus-visible::before, .button:focus-visible::before { opacity: 1; transform: translateX(120%); }
button:active, .button:active { transform: translateY(0); }
button:disabled, .button-disabled { border-color: #d4ddd8; box-shadow: none; transform: none; }
.button.secondary, button.secondary { background: rgba(255, 255, 255, .48); box-shadow: none; }
.button.secondary:hover, .button.secondary:focus-visible, button.secondary:hover, button.secondary:focus-visible { background: var(--green-700, #2d695a); box-shadow: 0 10px 22px rgba(33, 80, 69, .2); }
button.success, .button.success { background: linear-gradient(135deg, #2b7b54, var(--success, #1f6a46)); border-color: rgba(20, 92, 59, .46); box-shadow: 0 8px 20px rgba(31, 106, 70, .2); }
button.success:hover, .button.success:hover, button.success:focus-visible, .button.success:focus-visible { background: linear-gradient(135deg, #348d61, #155335); }

.flash, .notice { position: relative; padding: 15px 17px 15px 19px; overflow: hidden; border-radius: 14px; }
.flash::before, .notice::before { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: currentColor; content: ""; opacity: .7; }
.notice { background: linear-gradient(135deg, rgba(184, 207, 145, .3), rgba(237, 242, 239, .68)); border: 1px solid rgba(128, 168, 84, .24); }

.stepper li { min-height: 36px; font-weight: 700; transition: color 180ms var(--ui-ease), background-color 180ms var(--ui-ease), border-color 180ms var(--ui-ease), transform 180ms var(--ui-ease); }
.stepper li.current { background: linear-gradient(135deg, #d5e8ad, var(--lime-300, #b8cf91)); border-color: rgba(128, 168, 84, .7); box-shadow: 0 6px 16px rgba(128, 168, 84, .16); transform: translateY(-1px); }
.stepper li.current::before { display: inline-block; width: 6px; height: 6px; margin-right: 7px; background: var(--green-700, #2d695a); border-radius: 50%; content: ""; box-shadow: 0 0 0 4px rgba(45, 105, 90, .1); }

.table-wrap { margin-inline: -6px; padding: 0 6px 8px; scrollbar-color: rgba(45, 105, 90, .45) rgba(220, 227, 223, .6); scrollbar-width: thin; }
table { border-collapse: separate; border-spacing: 0; }
th, td { padding: 14px 11px; }
th { background: rgba(237, 242, 239, .58); }
tbody tr { transition: background-color 160ms ease; }
tbody tr:hover { background: rgba(184, 207, 145, .13); }
tbody td:first-child, thead th:first-child { position: sticky; left: 0; z-index: 1; }
tbody td:first-child { background: rgba(255, 255, 255, .95); }
tbody tr:hover td:first-child { background: #f2f7ed; }
code { padding: 3px 6px; word-break: break-word; }
.upload-progress { padding: 16px; background: rgba(237, 242, 239, .7); border: 1px solid var(--line); border-radius: 14px; }
.progress-bar::-webkit-progress-value { background: linear-gradient(90deg, var(--green-700, #2d695a), var(--lime-500, #80a854), #d4df88); }
.progress-bar::-moz-progress-bar { background: linear-gradient(90deg, var(--green-700, #2d695a), var(--lime-500, #80a854), #d4df88); }

@keyframes ui-hero-breathe { 0% { background-position: 0% 20%; } 100% { background-position: 100% 80%; } }

@media (max-width: 900px) {
    .container { width: min(100% - 32px, 1180px); }
    .hero { min-height: 190px; }
    .topbar { padding-inline: clamp(16px, 4vw, 40px); }
}

@media (max-width: 680px) {
    .hero { min-height: 180px; padding: 25px 21px; border-radius: 21px; }
    .hero h1 { font-size: clamp(2rem, 12vw, 3rem); }
    .hero p { font-size: .92rem; }
    .card { padding: 20px; border-radius: 18px; }
    .grid { grid-template-columns: 1fr; }
    .actions { align-items: stretch; }
    .actions > button, .actions > .button, .actions > form { flex: 1 1 100%; }
    .actions > form button { width: 100%; }
    .stepper li { flex: 1 1 44%; justify-content: center; text-align: center; }
    .table-wrap { margin-inline: -12px; padding-inline: 12px; }
    table { min-width: 620px; }
}

@media (max-width: 420px) {
    .brand { max-width: 100%; font-size: 1rem; }
    .brand img { width: 40px; height: 44px; flex-basis: 40px; }
    .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hero { padding: 23px 18px; }
    .card { padding: 17px; }
    button, .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Dashboard navigation layer: make the primary action part of the page composition. */
body {
    display: flex;
    flex-direction: column;
}

.brand em {
    display: none;
}

.container {
    flex: 1 0 auto;
}

#main-content > .hero + .actions {
    position: relative;
    z-index: 2;
    justify-content: flex-end;
    margin: -68px clamp(18px, 4vw, 46px) 28px;
    pointer-events: none;
}

#main-content > .hero + .actions .button {
    min-width: 190px;
    padding-inline: 22px;
    border-color: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 28px rgba(12, 40, 34, .2), 0 0 0 5px rgba(255, 255, 255, .16);
    pointer-events: auto;
}

#main-content > .hero + .actions .button:hover,
#main-content > .hero + .actions .button:focus-visible {
    box-shadow: 0 18px 34px rgba(12, 40, 34, .24), 0 0 0 5px rgba(184, 207, 145, .22);
}

body::after {
    display: block;
    flex: 0 0 auto;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 15px 0 21px;
    color: rgba(92, 106, 102, .72);
    border-top: 1px solid rgba(45, 105, 90, .12);
    background: linear-gradient(90deg, transparent, rgba(184, 207, 145, .16), transparent);
    content: "SORTEO-CORE-V1  ·  Plataforma de sorteos verificables";
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 680px) {
    #main-content > .hero + .actions {
        justify-content: stretch;
        margin: -4px 0 18px;
    }

    #main-content > .hero + .actions .button {
        width: 100%;
    }

    body::after {
        width: min(100% - 24px, 1180px);
        padding-top: 13px;
        padding-bottom: 17px;
        font-size: .6rem;
        letter-spacing: .08em;
    }
}

/* Ejecución administrativa: estado legible y actividad visual sin exponer la lógica del sorteo. */
.execution-panel {
    --execution-accent: var(--green-700, #2d695a);
    --execution-highlight: var(--lime-500, #80a854);
}

.execution-state {
    display: grid;
    gap: 4px;
    margin: 4px 0 22px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(45, 105, 90, .14);
    border-radius: 16px;
}

.execution-kicker {
    color: var(--muted, #5c6a66);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.execution-state > strong {
    color: var(--green-900, #143c33);
    font-size: 1.35rem;
}

.execution-state p { max-width: 760px; margin: 0; color: var(--muted, #5c6a66); }

.execution-stages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.execution-stage {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    padding: 12px 10px;
    color: var(--muted, #5c6a66);
    background: rgba(237, 242, 239, .68);
    border: 1px solid var(--line, #dce3df);
    border-radius: 14px;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.execution-stage-marker {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    color: var(--muted, #5c6a66);
    background: var(--paper, #fff);
    border: 1px solid var(--line, #dce3df);
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 800;
}

.execution-stage strong, .execution-stage small { display: block; }
.execution-stage strong { color: inherit; font-size: .79rem; line-height: 1.2; }
.execution-stage small { margin-top: 4px; font-size: .68rem; line-height: 1.25; }
.execution-stage.is-active { color: var(--green-900, #143c33); background: rgba(184, 207, 145, .3); border-color: rgba(128, 168, 84, .65); box-shadow: 0 8px 20px rgba(45, 105, 90, .08); transform: translateY(-2px); }
.execution-stage.is-active .execution-stage-marker { color: var(--green-950, #0c2822); background: var(--lime-300, #b8cf91); border-color: var(--lime-500, #80a854); animation: execution-marker-pulse 1.8s ease-in-out infinite; }
.execution-stage.is-complete { color: var(--success, #1f6a46); background: rgba(233, 245, 237, .74); border-color: rgba(31, 106, 70, .3); }
.execution-stage.is-complete .execution-stage-marker { color: #fff; background: var(--success, #1f6a46); border-color: var(--success, #1f6a46); }
.execution-stage.is-error { color: var(--error, #a72f26); background: rgba(255, 240, 238, .8); border-color: rgba(167, 47, 38, .4); }
.execution-stage.is-error .execution-stage-marker { color: #fff; background: var(--error, #a72f26); border-color: var(--error, #a72f26); }

.execution-summary .stat small { display: block; margin-top: 3px; color: var(--muted, #5c6a66); font-size: .75rem; }

.verification-details {
    margin-top: 18px;
    padding: 0 16px;
    background: rgba(237, 242, 239, .55);
    border: 1px solid var(--line, #dce3df);
    border-radius: 14px;
}

.verification-details summary { padding: 14px 0; color: var(--green-800, #215045); cursor: pointer; font-weight: 800; }
.verification-details[open] summary { border-bottom: 1px solid var(--line, #dce3df); }
.verification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; }
.verification-details > p { margin-bottom: 16px; }

.execution-progress-meta { color: var(--green-900, #143c33) !important; font-weight: 700; }
.execution-progress-meta strong { display: inline !important; margin: 0 !important; font-size: inherit !important; }
.execution-activity { position: absolute; right: 24px; bottom: 18px; color: var(--green-700, #2d695a); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.execution-panel[data-execution-state="running"] .execution-activity { animation: execution-activity-blink 1.4s ease-in-out infinite; }
.execution-panel[data-execution-state="error"] .execution-activity { color: var(--error, #a72f26); }

@keyframes execution-marker-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(128, 168, 84, .2); }
    50% { box-shadow: 0 0 0 6px rgba(128, 168, 84, 0); }
}

@keyframes execution-activity-blink {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

@media (max-width: 760px) {
    .execution-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .execution-activity { position: static; display: block; margin-top: 10px; }
}

@media (max-width: 520px) {
    .execution-stages, .verification-grid { grid-template-columns: 1fr; }
    .execution-stage { padding: 11px 9px; }
}

/* Seed confirmation and execution experience. */
label:has(> input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

label input[type="checkbox"] {
    width: 1.2rem;
    min-width: 1.2rem;
    height: 1.2rem;
    min-height: 1.2rem;
    margin: .2rem 0 0;
    padding: 0;
    flex: 0 0 1.2rem;
    vertical-align: middle;
}

.card:has(.execution-summary) {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(184, 207, 145, .22), transparent 23%),
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(247, 250, 246, .94));
}

.card:has(.execution-summary) > h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card:has(.execution-summary) > h2::before {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    background: var(--lime-500, #80a854);
    border: 4px solid rgba(184, 207, 145, .35);
    border-radius: 50%;
    box-sizing: content-box;
    content: "";
    box-shadow: 0 0 0 1px rgba(45, 105, 90, .15);
}

.card:has(form[data-process-url]) > h2::before {
    animation: execution-status-pulse 1.8s ease-in-out infinite;
}

.execution-summary {
    position: relative;
    isolation: isolate;
    min-height: 128px;
    padding: 4px;
    overflow: hidden;
    border-radius: 20px;
}

.execution-summary::before {
    position: absolute;
    z-index: -1;
    top: -78px;
    right: 4%;
    width: 250px;
    height: 250px;
    background:
        radial-gradient(circle at 29% 27%, #f4d47b 0 9px, transparent 10px),
        radial-gradient(circle at 67% 33%, #d9e9ac 0 11px, transparent 12px),
        radial-gradient(circle at 54% 72%, #2d695a 0 12px, transparent 13px),
        radial-gradient(circle at 23% 68%, #f5f8ed 0 9px, transparent 10px),
        conic-gradient(from 20deg, rgba(45, 105, 90, .22), rgba(184, 207, 145, .55), rgba(240, 199, 94, .35), rgba(45, 105, 90, .22));
    border: 1px solid rgba(45, 105, 90, .18);
    border-radius: 50%;
    content: "";
    opacity: .68;
    box-shadow: inset 0 0 0 15px rgba(255, 255, 255, .28), 0 18px 42px rgba(45, 105, 90, .12);
    transform: rotate(-14deg);
    animation: execution-drum-roll 11s linear infinite;
    pointer-events: none;
}

.execution-summary .stat {
    position: relative;
    z-index: 1;
    background: rgba(249, 252, 249, .78);
    border-color: rgba(45, 105, 90, .14);
    box-shadow: 0 8px 22px rgba(45, 105, 90, .06);
    backdrop-filter: blur(5px);
}

.execution-summary .stat-hash strong {
    color: var(--muted, #5c6a66);
}

.card:has(.execution-summary) > [data-progress] {
    position: relative;
    isolation: isolate;
    min-height: 174px;
    margin-top: 24px;
    padding: 28px 30px 28px 190px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 50%, rgba(184, 207, 145, .28), transparent 26%),
        linear-gradient(135deg, rgba(237, 242, 239, .84), rgba(255, 255, 255, .9));
    border-color: rgba(45, 105, 90, .16);
}

.card:has(.execution-summary) > [data-progress]::before {
    position: absolute;
    z-index: 0;
    top: 50px;
    left: 32px;
    width: 112px;
    height: 112px;
    background:
        radial-gradient(circle at 28% 26%, #f4d47b 0 8px, transparent 9px),
        radial-gradient(circle at 68% 31%, #d9e9ac 0 9px, transparent 10px),
        radial-gradient(circle at 54% 72%, #2d695a 0 10px, transparent 11px),
        radial-gradient(circle at 23% 68%, #f5f8ed 0 7px, transparent 8px),
        conic-gradient(from 10deg, #2d695a, #80a854, #f0c75e, #2d695a);
    border: 5px solid rgba(255, 255, 255, .68);
    border-radius: 50%;
    content: "";
    opacity: .9;
    box-shadow: 0 10px 24px rgba(45, 105, 90, .18), inset 0 0 0 7px rgba(255, 255, 255, .28);
    transform: rotate(18deg);
    animation: execution-drum-roll 8s linear infinite reverse;
    pointer-events: none;
}

.card:has(.execution-summary) > [data-progress]::after {
    position: absolute;
    z-index: 1;
    top: 25px;
    left: 31px;
    color: var(--green-700, #2d695a);
    content: "TÓMBOLA DIGITAL";
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.card:has(.execution-summary) > [data-progress] > * {
    position: relative;
    z-index: 2;
}

.card:has(.execution-summary) > [data-progress] > .progress-bar {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.card:has(.execution-summary) > [data-progress] > p {
    margin-bottom: 0;
}

.card:has(.execution-summary) > [data-progress] > p:first-of-type {
    color: var(--green-900, #143c33);
    font-size: 1.02rem;
}

.card:has(.execution-summary) > [data-progress] > p:last-of-type {
    color: var(--muted, #5c6a66);
}

.card:has(.execution-summary) > form[data-process-url] {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.card:has(.execution-summary) > form[data-process-url] button {
    min-width: 224px;
}

.card:has(.execution-summary) > .notice {
    background: linear-gradient(135deg, rgba(184, 207, 145, .24), rgba(237, 242, 239, .76));
}

@keyframes execution-drum-roll {
    0% { transform: rotate(-14deg); }
    100% { transform: rotate(346deg); }
}

@keyframes execution-status-pulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(45, 105, 90, .15), 0 0 0 0 rgba(128, 168, 84, .24); }
    50% { box-shadow: 0 0 0 1px rgba(45, 105, 90, .15), 0 0 0 8px rgba(128, 168, 84, 0); }
}

@media (max-width: 680px) {
    .card:has(.execution-summary) > [data-progress] {
        min-height: 215px;
        padding: 94px 18px 22px;
    }

    .card:has(.execution-summary) > [data-progress]::before {
        top: 45px;
        left: 18px;
        width: 68px;
        height: 68px;
        border-width: 3px;
    }

    .card:has(.execution-summary) > [data-progress]::after {
        top: 19px;
        left: 18px;
        font-size: .58rem;
    }

    .card:has(.execution-summary) > form[data-process-url] {
        justify-content: stretch;
    }

    .card:has(.execution-summary) > form[data-process-url] button {
        width: 100%;
    }
}

/* Mantener el indicador de actividad dentro de su propia zona del progreso. */
.card:has(.execution-summary) > [data-progress] > .execution-activity {
    position: absolute;
    right: 24px;
    bottom: 18px;
    z-index: 2;
    display: inline-block;
    margin: 0;
    padding: 4px 8px;
    background: rgba(255, 255, 255, .66);
    border: 1px solid rgba(45, 105, 90, .12);
    border-radius: 999px;
    line-height: 1.2;
}

@media (max-width: 760px) {
    .card:has(.execution-summary) > [data-progress] > .execution-activity {
        position: static;
        display: block;
        margin-top: 12px;
        text-align: right;
    }
}
