:root {
  --gi: #145090; --gi-dark: #0f3d6e; --tint: #EAF0F7;
  --black: #1A1A1A; --grey: #464646; --mid: #9E9E9E; --light: #F5F5F5; --border: #E0E0E0;
  --green: #2E7D32; --red: #F41C22;
  --h: 'Montserrat', Arial, Helvetica, sans-serif;
  --b: 'Open Sans', Calibri, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--b); color: var(--black); background: var(--light); display: flex; flex-direction: column; min-height: 100vh; }
h1, h2 { font-family: var(--h); font-weight: 700; margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bar { background: var(--gi); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.logo { height: 38px; width: auto; display: block; }
.name { font-family: var(--h); font-weight: 700; font-size: 1.25rem; letter-spacing: .14em; text-transform: uppercase; }
.tag { font-size: .9rem; opacity: .85; }

.wrap { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.hero { text-align: center; margin-bottom: 32px; }
.kicker { font-family: var(--h); font-weight: 600; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gi); margin: 0 0 10px; }
.hero h1 { font-size: 2rem; line-height: 1.2; }
.lead { color: var(--grey); font-size: 1.02rem; line-height: 1.6; margin: 12px auto 0; max-width: 560px; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 2px dashed #b8c8da; border-radius: 14px;
  padding: 56px 24px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s, transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.drop:hover, .drop:focus-visible { border-color: var(--gi); outline: none; }
.drop.over { border-color: var(--gi); background: var(--tint); transform: scale(1.01); }
.drop-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--tint); color: var(--gi); display: grid; place-items: center; margin-bottom: 10px; }
.drop-icon svg { width: 40px; height: 40px; stroke-width: 2.6; }
.drop-title { font-family: var(--h); font-weight: 700; font-size: 1.3rem; }
.drop-sub { color: var(--grey); }
.drop-sub u { color: var(--gi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.drop-limit { color: var(--mid); font-size: .85rem; margin-top: 12px; min-height: 1.2em; }
.drop-limit.bad { color: var(--red); font-weight: 600; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--grey); font-size: .9rem; }
.steps b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gi); color: #fff; display: grid; place-items: center; font-family: var(--h); font-size: .8rem; }

.foot { background: var(--gi); color: #fff; font-size: .8rem; padding: 12px 28px; }

.btn { display: inline-block; font-family: var(--h); font-weight: 700; font-size: .95rem; background: var(--gi); color: #fff; border: 0; border-radius: 8px;
  padding: 12px 26px; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--gi-dark); }
.btn:disabled { background: #6f8fb4; cursor: default; }
.btn.big { padding: 15px 34px; font-size: 1rem; }
.btn.full { width: 100%; }

.overlay { position: fixed; inset: 0; background: rgba(15, 30, 50, .55); display: grid; place-items: center; padding: 20px; z-index: 10; animation: fade .15s ease-out; }
.overlay[hidden] { display: none; }
.modal { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 460px; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: rise .2s ease-out; }
.modal h2 { font-size: 1.35rem; margin-bottom: 18px; }
.x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; background: none; color: var(--mid); cursor: pointer; border-radius: 6px; }
.x:hover { background: var(--light); color: var(--black); }
.x svg { width: 20px; height: 20px; }

.chip { display: flex; align-items: center; gap: 12px; background: var(--light); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }
.chip-ico { flex: none; width: 38px; height: 38px; border-radius: 8px; background: var(--gi); color: #fff; display: grid; place-items: center; }
.chip-ico svg { width: 20px; height: 20px; }
.chip-txt { min-width: 0; display: flex; flex-direction: column; }
.chip-txt span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-txt small { color: var(--grey); font-size: .82rem; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-family: var(--h); font-weight: 600; font-size: .82rem; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c9c9c9; border-radius: 8px; color: var(--black); }
.field input:focus { outline: none; border-color: var(--gi); box-shadow: 0 0 0 3px rgba(20, 80, 144, .18); }
.err { color: var(--red); font-size: .88rem; font-weight: 600; min-height: 1.2em; margin: 0 0 10px; }

.progress { position: relative; height: 26px; background: var(--light); border-radius: 6px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--border); }
.progress div { height: 100%; width: 0; background: var(--gi); transition: width .2s; }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; font-weight: 600; color: var(--black); mix-blend-mode: difference; filter: invert(1); }

.done { text-align: center; }
.done .lead { margin-bottom: 24px; }
.icon { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--tint); color: var(--gi); }
.icon svg { width: 34px; height: 34px; stroke-width: 2.6; }
.icon.ok { background: #e6f2e7; color: var(--green); }
.icon.gone { background: #f3f3f3; color: var(--mid); }

.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 40px 36px; box-shadow: 0 1px 2px rgba(0,0,0,.04); max-width: 520px; margin: 0 auto; }
.center { text-align: center; }
.card h1 { font-size: 1.6rem; }
.card .lead + .lead { margin-top: 8px; }
.card .btn { margin-top: 24px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0; text-align: left; margin: 26px 0 4px; border-top: 1px solid var(--border); }
.facts dt, .facts dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--grey); font-size: .88rem; padding-right: 18px; }
.facts dd { font-weight: 600; word-break: break-all; }
.hint { color: var(--grey); font-size: .85rem; margin: 14px 0 0; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
@media (max-width: 600px) {
  .tag { display: none; }
  .wrap { padding-top: 32px; }
  .hero h1 { font-size: 1.55rem; }
  .steps { grid-template-columns: 1fr; }
  .modal, .card { padding: 26px 20px; }
}

/* administration */
.card h1 + .lead { margin-bottom: 22px; }
.card code { background: var(--light); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.presets button { font-family: var(--h); font-weight: 600; font-size: .88rem; border: 1px solid #c9c9c9; background: #fff; color: var(--black); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.presets button:hover { border-color: var(--gi); color: var(--gi); }
.presets button.on { background: var(--gi); border-color: var(--gi); color: #fff; }
.row { display: flex; gap: 12px; }
.row .grow { flex: 1; }
.field select { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; height: 48px; }
.hint + .err { margin-top: 10px; }
.saved { color: var(--green); font-weight: 600; font-size: .9rem; text-align: center; min-height: 1.2em; margin: 12px 0 0; }
#panel .facts { margin-top: 22px; }
