.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2a5b78;
  font: inherit;
}
:root {
  --ink: #19344a;
  --navy: #163b53;
  --blue: #2a5b78;
  --gold: #aa8a54;
  --paper: #f6f8f9;
  --soft: #e6f0f2;
  --soft-border: #cddfe4;
  --white: #fff;
  --line: #e6eaed;
  --muted: #7b8790;
  --green: #2f7865;
  --red: #b74646;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a7c9db;
  outline-offset: 3px;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #dce3e7;
  background: white;
  border-radius: 7px;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 100px;
}
label {
  display: block;
  font-size: 13px;
}
label > input,
label > select,
label > textarea {
  margin-top: 7px;
}
.button {
  border: 1px solid var(--soft-border);
  background: var(--soft);
  color: #355b68;
  padding: 10px 20px;
  border-radius: 7px;
  font-weight: 500;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.button:hover {
  background: #d9e9ed;
}
.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.button.secondary:hover {
  background: #f0f4f6;
}
.button.danger {
  background: white;
  border-color: #ecd7d7;
  color: var(--red);
}
.button.small {
  padding: 6px 12px;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 9px;
  background: #edf4f5;
  color: #3a687a;
  font-size: 11px;
  white-space: nowrap;
}
.badge.green {
  background: #eaf5ef;
  color: var(--green);
}
.badge.amber {
  background: #faf1df;
  color: #92703a;
}
.badge.gray {
  background: #f0f1f2;
  color: #7b838a;
}
.badge.red {
  background: #faeeee;
  color: var(--red);
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #edf4f5;
  border: 1px solid #cddfe4;
  color: #355b68;
  padding: 13px 23px;
  box-shadow: 0 4px 24px #18334c22;
  border-radius: 8px;
  z-index: 100;
  max-width: min(90vw, 600px);
}
.toast.error {
  background: #f9eeee;
  color: #9e4949;
  border-color: #ebd3d3;
}
.error-text {
  color: var(--red);
  font-size: 13px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stack {
  display: grid;
  gap: 18px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}
.empty strong {
  display: block;
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.empty p {
  margin: 0 0 20px;
}
.empty-mark {
  width: 58px;
  height: 68px;
  border: 1px solid #cbd7dd;
  border-radius: 8px;
  margin: auto;
  background: linear-gradient(#f6f8f9, #fff);
  position: relative;
}
.empty-mark:before,
.empty-mark:after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #c8d4da;
  top: 23px;
}
.empty-mark:after {
  top: 34px;
  right: 23px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
dialog {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 20px 100px #18314433;
  padding: 0;
  width: min(540px, 94vw);
  color: var(--ink);
}
dialog::backdrop {
  background: #10283d66;
}
dialog .dialog-body {
  padding: 30px;
}
dialog h2 {
  font-family: var(--serif);
  font-size: 23px;
}
dialog .dialog-foot {
  display: flex;
  justify-content: flex-end;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.close {
  border: 0;
  background: #f1f4f5;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: var(--muted);
  font-size: 20px;
  float: right;
}
.hint {
  padding: 13px 16px;
  background: #f5f8fa;
  border-left: 2px solid #aac2cf;
  font-size: 12px;
  color: #657b8a;
  line-height: 1.8;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}
.checkbox input {
  width: 16px;
  height: 16px;
  margin: 2px 0;
  flex: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .button {
    padding: 10px 15px;
  }
}
