:root { color-scheme: light; font-family: system-ui, sans-serif; color: #102b24; background: #eff5f1; }
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #143a30; color: white; }
header .wrap, .top, .shop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
header .wrap { padding-block: 1rem; }
header a { color: white; }
.wrap { width: min(100% - 2rem, 40rem); margin-inline: auto; }
main { padding: 2rem 0; }
.card { background: white; padding: clamp(1rem, 5vw, 2rem); border: 1px solid #d5e2db; border-radius: 1.25rem; }
h1 { font-size: clamp(1.65rem, 5vw, 2.35rem); line-height: 1.1; margin: 0 0 1.25rem; }
.shopname { color: #416459; margin: 0 0 .45rem; }
.top { margin-bottom: 1rem; }
.top h1 { margin: 0; }
.shop { padding-block: .8rem; border-bottom: 1px solid #d5e2db; }
.shop:last-child { border-bottom: 0; }
form { display: grid; gap: 1rem; }
.card + form { margin-top: 1rem; justify-items: start; }
label { display: grid; gap: .35rem; font-weight: 650; }
small { display: block; font-weight: 400; color: #416459; }
input, select, textarea, button, .button { font: inherit; border-radius: .65rem; padding: .7rem .8rem; }
input, select, textarea { width: 100%; border: 1px solid #8aa398; background: #fcfefd; color: inherit; }
textarea { resize: vertical; }
button, .button { background: #146049; color: white; border: 1px solid transparent; font-weight: 650; cursor: pointer; text-align: center; text-decoration: none; }
a { color: #146049; overflow-wrap: anywhere; }
.secondary { background: white; color: #146049; border-color: #8aa398; }
.check { display: flex; align-items: center; }
.check input { width: 1.1rem; height: 1.1rem; }
.error { color: #9c2727; }
.error:empty { display: none; }
.result { background: #e7f3ec; border-radius: .9rem; padding: 1rem; margin-top: 1.25rem; }
.result strong { display: block; font-size: 2rem; }
dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-bottom: 0; }
dd { margin: 0; text-align: right; font-weight: 650; }
[hidden] { display: none; }
:root { color: #18233a; background: #f2f5fb; }
header { background: #162443; }
.wrap { width: min(100% - 2rem, 54rem); }
.intro { margin-bottom: 1.25rem; }
.intro h1 { margin: .35rem 0 0; letter-spacing: -.035em; }
.shopname { color: #465675; font-weight: 650; }
.calculator-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; align-items: start; }
.card { border-color: #dbe3f2; box-shadow: 0 12px 35px #223f7410; }
.narrow { max-width: 30rem; margin-inline: auto; }
input, select, textarea { border-color: #aab8d0; background: #fff; }
:focus-visible { outline: 3px solid #496fe7; outline-offset: 2px; }
button, .button { background: #284dca; }
a, .secondary { color: #2346b5; }
.secondary { border-color: #b8c5df; }
.amount { display: flex; align-items: center; gap: .6rem; color: #51617c; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 650; margin-bottom: .45rem; padding: 0; }
.terms, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.terms button { min-height: 44px; color: #263c73; background: #eef2fc; border-color: #d6dff3; }
.terms button[aria-pressed="true"] { color: #fff; background: #284dca; }
.result { background: #192a52; color: #fff; margin: 0; padding: clamp(1rem, 5vw, 1.8rem); border-radius: 1.25rem; }
.result h2 { margin: 0 0 .5rem; }
.result p { margin: 0; }
.result strong { font-size: clamp(1.8rem, 6vw, 2.65rem); }
.result small, .result p { color: #c8d5f3; }
.result dl { border-top: 1px solid #64759a; padding-top: .85rem; }
.share { background: #eef2fc; padding: .85rem; border-radius: .8rem; margin-bottom: 1rem; }
.share .actions { margin-top: .6rem; }
.feedback { margin: .5rem 0 0; color: #245343; }
.feedback:empty { display: none; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.65rem; gap: .5rem; margin-bottom: .5rem; align-items: center; }
.plan-head, .hint { color: #465675; font-size: .9rem; }
.hint { margin: 0 0 .65rem; }
.remove-plan { padding-inline: .4rem; font-size: 1.2rem; }
@media (max-width: 620px) {
  main { padding-block: 1.25rem; }
  .calculator-layout { grid-template-columns: 1fr; }
}
.brand { font-size: 1.15rem; letter-spacing: -.025em; font-weight: 750; }
.admin-header { background: #fff; color: #17233a; border-bottom: 1px solid #e0e6ef; }
.admin-header .wrap, .admin-main { max-width: 44rem; }
.admin-header .brand { color: inherit; text-decoration: none; }
.signout { display: block; }
.signout button { color: #465675; background: transparent; padding: .35rem .5rem; }
.admin-main .card { box-shadow: none; }
.admin-main .top { margin-bottom: 1.25rem; }
.shop-list { padding: .1rem clamp(1rem, 4vw, 1.45rem); }
.shop { padding-block: 1rem; border-color: #e3e9f2; }
.shop-details { min-width: 0; }
.shop-title { display: block; font-weight: 700; color: #18233a; text-decoration: none; }
.shop-title:hover, .shop-title:focus-visible { text-decoration: underline; }
.shop-status { margin-top: .2rem; color: #20634d; }
.shop-status.inactive { color: #526079; }
.back { display: inline-block; margin-bottom: .8rem; text-decoration: none; }
.editor-title { overflow-wrap: anywhere; }
.editor-fields { display: grid; grid-template-columns: 1fr 1.35fr; gap: .85rem; align-items: end; }
.editor-form .plans { border-block: 1px solid #e3e9f2; padding: .6rem 0 1rem; }
.editor-footer { display: flex; gap: 1rem; align-items: center; }
.editor-footer button { min-width: 8rem; }
@media (max-width: 480px) {
  .editor-fields { grid-template-columns: 1fr; }
  .editor-footer button { flex: 1; }
  .admin-main .top .button, .shop .actions button { font-size: .9rem; }
}
.remove-plan:disabled { opacity: .35; cursor: default; }
.plan-grid input { min-width: 0; }
.price-tier { border: 1px solid #dbe3f2; border-radius: .8rem; padding: .85rem; margin-bottom: .65rem; }
.tier-top { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; margin-bottom: .85rem; }
.tier-top label { flex: 1 1 9rem; }
