:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #142e2a;
  background: #f1f5f3;
  font-size: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.option-type { display: block; width: 100%; margin-top: 5px; padding: 9px; border: 1px solid #bbcec3; border-radius: 8px; font: inherit; color: inherit; background: #fbfdfc; }
.submenu { border-left: 3px solid #83b8a5; padding-left: 14px; margin-top: 16px; }
.submenu .card { padding: 12px; background: #f7faf8; }
.brand img { object-fit: contain; flex-shrink: 0; }
.body-brand { display: flex; justify-content: center; margin-bottom: 24px; }
.body-brand img { display: block; width: min(280px, 100%); height: auto; border-radius: 12px; }
.body-brand ~ .login { margin-top: 0; }
@media (max-width: 740px) {
  .body-brand img { width: 200px; }
  .brand strong { font-size: .85rem; }
  #account span { display: none; }
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #123b33; color: #fff; }
.bar, main { max-width: 1160px; margin: auto; padding-inline: 30px; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 14px; }
.bar span { background: #25574b; padding: 6px 12px; border-radius: 20px; font-size: .83rem; }
main { padding-block: 40px; }
.intro, .heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 0; }
p { margin-block: 8px; }
.intro p, .hint, small { color: #466158; }
.layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
fieldset { padding: 0; border: 0; min-width: 0; margin: 0; }
.hint { font-size: .9rem; line-height: 1.5; }
.card { background: #fff; border: 1px solid #d8e4dd; border-radius: 14px; padding: 18px; margin-block: 14px; }
.simulator { margin: 0; }
.welcome { margin-top: 0; }
label { display: block; font-size: .88rem; font-weight: 650; }
.rule .heading + label { margin-top: 14px; }
.title { flex: 1; }
.number { width: 5rem; }
input:not([type="checkbox"]), textarea { display: block; width: 100%; margin-top: 5px; }
input, textarea, button { font: inherit; }
input:not([type="checkbox"]), textarea { border: 1px solid #bbcec3; border-radius: 8px; padding: 9px 11px; color: inherit; background: #fbfdfc; }
textarea { resize: vertical; }
button { cursor: pointer; padding: 8px 13px; font-size: .88rem; font-weight: 650; color: #135440; background: #e6f3ed; border: 1px solid #c8e3d5; border-radius: 8px; }
button:hover { background: #cae8d9; }
button:disabled { opacity: .55; cursor: default; }
.primary { color: #fff; background: #10604b; border-color: #10604b; }
.primary:hover { background: #0a4838; }
.remove { color: #873d38; border-color: #eddbd7; background: #fff6f4; }
.remove:hover { background: #fce7e3; }
.toggle { display: flex; align-items: center; gap: 6px; margin-block: 14px 6px; }
.notice { min-height: 1.5em; color: #155441; font-size: .9rem; margin-block: 16px; }
.error { color: #9b302b; }
#simulator { display: grid; gap: 7px; margin-top: 18px; }
#simulator button { justify-self: start; }
#result { margin-top: 14px; max-height: 420px; overflow-y: auto; padding-inline: 3px; }
#result:empty { display: none; }
#result p { background: #dff2e7; padding: 11px 14px; border-radius: 12px 12px 12px 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
#result .sent { width: fit-content; max-width: 92%; margin-left: auto; background: #edf1ee; border-radius: 12px 12px 3px 12px; }
#result .simulation-status { background: transparent; color: #466158; font-size: .85rem; border: 1px dashed #bbcec3; }
:focus-visible { outline: 2px solid #137355; outline-offset: 2px; }
@media (max-width: 740px) {
  .layout { grid-template-columns: 1fr; }
  .intro { align-items: start; flex-direction: column; }
  .rule .heading { flex-wrap: wrap; }
  .rule .title { min-width: 9rem; }
  .bar, main { padding-inline: 16px; }
  main { padding-block: 26px; }
}
[hidden] { display: none !important; }
.login { max-width: 460px; margin: 8vh auto; padding: 30px; }
.login h1 { font-size: 2.6rem; }
form label { margin-block: 14px; }
form > button { margin-top: 12px; }
.connection { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
#qr-panel { flex-basis: 100%; text-align: center; padding: 22px; background: #f1f5f3; border-radius: 12px; }
#qr { width: 260px; max-width: 100%; background: white; padding: 12px; border-radius: 12px; }
.client-row { padding-block: 18px; border-bottom: 1px solid #d8e4dd; }
.client-row small { display: block; margin-top: 8px; }
#clients { margin-top: 14px; }
#password-view { max-width: 500px; margin-top: 30px; }
summary { cursor: pointer; font-weight: 650; }
#notice { min-height: 1.5em; color: #155441; }
#notice.error { color: #9b302b; }
