:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #192b24;
  background: #f1f5f1;
  --ink: #192b24;
  --green: #19513b;
  --muted: #52645c;
  --border: #d1dcd4;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.skip { position: absolute; left: 1rem; transform: translateY(-150%); padding: .75rem; background: white; }
.skip:focus { transform: none; top: .75rem; z-index: 2; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; min-height: 4.5rem; padding: .65rem clamp(1rem, 5vw, 4rem); background: #102b20; color: white; }
.brand { font-size: 1.25rem; font-weight: 750; }
.brand span { color: #b8e7c9; }
.mark { margin-right: .35rem; }
#email { overflow-wrap: anywhere; }
main { max-width: 1250px; margin: auto; padding: clamp(1rem, 5vw, 3.5rem); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: .99; letter-spacing: -.06em; }
h2 { font-size: 1.4rem; letter-spacing: -.03em; }
h3 { font-size: 1.13rem; overflow-wrap: anywhere; }
p { line-height: 1.55; }
.intro p, .hero p { margin-top: 1rem; max-width: 37rem; }
.intro { margin-bottom: 2rem; }
.welcome, .layout { display: grid; grid-template-columns: minmax(18rem, 1fr) minmax(0, 1.65fr); gap: 1.25rem; align-items: start; }
.welcome { grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 1fr); }
.hero { padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: 1.25rem; background: #164b36; color: #f5fff7; }
.hero p { color: #d4eadd; }
.panel { background: white; border: 1px solid var(--border); border-radius: 1.25rem; padding: clamp(1rem, 3vw, 1.65rem); }
form.panel { display: grid; gap: .9rem; }
label { display: grid; gap: .35rem; font-weight: 650; font-size: .93rem; }
input, textarea, select, button, a.quiet { font: inherit; }
input, textarea, select { width: 100%; min-height: 2.7rem; border: 1px solid #9cad9f; border-radius: .55rem; color: var(--ink); background: white; padding: .5rem .65rem; font-weight: 400; }
input[type="color"] { width: 5rem; padding: .25rem; }
textarea { resize: vertical; }
button, a.quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; padding: .45rem .75rem; border: 1px solid transparent; border-radius: .6rem; font-size: .9rem; font-weight: 650; background: var(--green); color: white; text-decoration: none; cursor: pointer; }
button.quiet, a.quiet { background: #f2f7f3; color: #183f2e; border-color: var(--border); }
button.danger { background: #8e292d; }
button:hover, a.quiet:hover { filter: brightness(.93); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #2d8664; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.hint, .metadata, .short-url { color: var(--muted); font-size: .9rem; }
.short-url { overflow-wrap: anywhere; }
.library-head { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.library-head label { max-width: 100%; }
#codes { margin: 0; padding: 0; list-style: none; }
.code { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.code img { border: 1px solid var(--border); border-radius: .6rem; }
.details { display: grid; gap: .35rem; }
.history { padding: .6rem; background: #f2f7f3; border-radius: .5rem; }
#notice:not(:empty) { position: fixed; z-index: 1; bottom: 1rem; right: 1rem; max-width: min(32rem, calc(100% - 2rem)); padding: .8rem 1rem; border-radius: .7rem; background: #174b36; color: white; }
#notice.error { background: #8e292d; }
dialog { max-width: min(26rem, calc(100% - 2rem)); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; color: var(--ink); }
dialog p { margin: .8rem 0; }
dialog label { margin-bottom: 1rem; }
#import-error { color: #8e292d; }
dialog::backdrop { background: #09281acc; }
@media (max-width: 780px) { .welcome, .layout { grid-template-columns: 1fr; } }
@media (max-width: 410px) { .code img { width: 62px; height: 62px; } }
