* { box-sizing: border-box; }
:root {
  font-family: system-ui, "Microsoft YaHei UI", sans-serif;
  color: #132c29;
  background: #eef4f1;
  --ink: #132c29;
  --muted: #4c625d;
  --green: #176452;
  --line: #c5d6ce;
}
body { margin: 0; min-height: 100vh; }
.shell { max-width: 41rem; padding: 0 1rem 3rem; margin-inline: auto; }
.mast {
  display: flex; align-items: center; justify-content: space-between;
  gap: .65rem; min-height: 4.75rem; border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); font-size: 1.08rem; font-weight: 750; text-decoration: none; }
main { margin-top: 1.3rem; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 1.1rem;
  padding: clamp(1.1rem, 5vw, 2rem); box-shadow: 0 8px 24px #26473c0b;
}
h1 { margin: 0 0 .75rem; font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.25; }
p { margin: 0; }
.intro { color: var(--muted); margin-bottom: 1.2rem; line-height: 1.5; }
.fields { display: grid; gap: 1rem; }
.login .fields { margin-top: 1.2rem; }
label { display: block; font-weight: 650; }
input:not([type=checkbox], [type=hidden]), textarea {
  display: block; margin-top: .38rem; width: 100%; min-height: 2.875rem; padding: .65rem .75rem;
  border: 1px solid #9eb9ad; border-radius: .5rem; font: inherit; color: var(--ink); background: #fff;
}
input::placeholder { color: var(--muted); }
#duration:read-only, textarea { background: #f3f7f5; }
textarea {
  font-family: ui-monospace, Consolas, monospace; line-height: 1.55;
  overflow-wrap: anywhere; resize: vertical;
}
.options { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .75rem; }
.check { display: flex; gap: .45rem; align-items: center; min-height: 2.875rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--green); }
button, .tabs a {
  min-height: 2.75rem; border: 1px solid var(--line); border-radius: .55rem;
  padding: .55rem .85rem; color: var(--ink); background: #fff;
  font: inherit; font-weight: 650; cursor: pointer;
}
.primary { background: var(--green); border-color: var(--green); color: #fff; }
.primary:disabled { opacity: .65; cursor: wait; }
.logout { background: transparent; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .8rem; }
.tabs a { text-decoration: none; text-align: center; display: grid; place-items: center; }
.tabs a[aria-current=page] { color: #084b36; background: #d5ebe1; border-color: #9ac4b1; }
.result { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.result-actions { display: flex; flex-wrap: wrap; gap: .45rem .8rem; align-items: center; margin-top: .55rem; }
#copy-status { color: var(--muted); }
.error {
  padding: .65rem .75rem; color: #8a2017; background: #fff1ef;
  border-radius: .5rem; overflow-wrap: anywhere;
}
:focus-visible { outline: 3px solid #197e65; outline-offset: 2px; }
