:root { color-scheme: light; font-family: system-ui, sans-serif; color: #292138; background: #f5f0fa; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 24px; }
main { width: min(100%, 760px); margin: 24px auto; padding: clamp(20px, 5vw, 36px); border: 1px solid #e2d8ed; border-radius: 24px; background: #fff; box-shadow: 0 10px 35px #412a5a14; }
.back { color: #5a3997; font-weight: 700; text-decoration: none; display: inline-flex; min-height: 38px; align-items: center; }
.eyebrow { margin: 14px 0 5px; color: #69489f; letter-spacing: .07em; font-size: .76rem; font-weight: 750; }
h1, h2 { margin: 0; line-height: 1.25; }
h1 { font-size: clamp(1.55rem, 5vw, 2.1rem); }
header p:last-child, .note { color: #655a76; line-height: 1.5; }
.lookup { margin: 22px 0; padding: 14px; border-radius: 14px; background: #f6f1fb; }
.lookup-row, .save-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.lookup-row input { flex: 1; min-width: 140px; }
label { display: block; margin: 6px 0 4px; font-size: .9rem; font-weight: 650; }
input, button { min-height: 44px; font: inherit; border-radius: 10px; }
input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #d9cde7; background: #fff; }
button { flex: none; border: 0; padding: 8px 15px; background: #5a3997; color: #fff; font-weight: 700; cursor: pointer; }
button.secondary { margin: 6px 0 2px; background: #efe5f9; color: #513578; }
button:disabled, fieldset:disabled { opacity: .57; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid #8854c0; outline-offset: 2px; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
fieldset { min-width: 0; margin: 0; padding: 10px 12px 13px; border: 1px solid #e2d8ed; border-radius: 12px; }
legend { padding: 0 6px; font-weight: 750; }
.usage { margin: 0 0 12px; color: #513578; font-size: .86rem; }
.save-row { margin-top: 17px; }
[role=status] { margin: 6px 0 0; color: #573b78; font-size: .9rem; }
[role=status]:empty { display: none; }
@media (max-width: 560px) {
  body { padding: 10px; }
  main { margin: 8px auto; }
  .modes { grid-template-columns: 1fr; }
}
.activity-list { list-style: none; padding: 0; }
.activity-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #e2d8ed; color: #5a3997; text-decoration: none; }
.activity-list small { text-align: right; color: #635773; }
.activity-turn { border-top: 1px solid #e2d8ed; padding: 12px 0; overflow-wrap: anywhere; }
.activity-turn p { white-space: pre-wrap; }
