:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #182330;
  background: #f3f5f7;
  --ink: #182330;
  --muted: #526171;
  --line: #dce2e8;
  --accent: #ad3d10;
}
* { box-sizing: border-box; }
body { margin: 0; }
.top { min-height: 72px; padding: 12px max(24px, calc((100vw - 1120px)/2)); background: #15212e; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity { display: flex; align-items: center; gap: 19px; }
.brand { display: block; flex: none; padding: 5px 7px; border-radius: 5px; background: #fff; }
.brand img { display: block; width: 150px; height: auto; }
.identity-label { font-size: .875rem; color: #c0cbd5; border-left: 1px solid #546371; padding-left: 19px; }
main { max-width: 1168px; margin: auto; padding: 42px 24px 22px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.eyebrow, .schedule-label { font-size: .75rem; font-weight: 750; letter-spacing: .095em; color: var(--accent); }
.eyebrow { margin: 0 0 8px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.04; letter-spacing: -.055em; margin-bottom: 11px; }
.subheading { color: var(--muted); margin-bottom: 0; }
.schedule { display: grid; gap: 2px; padding-left: 20px; border-left: 2px solid #e36b32; min-width: 148px; font-size: .875rem; color: var(--muted); }
.schedule strong { color: var(--ink); font-size: 1.65rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 7px #19293808; margin-bottom: 17px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 17px 20px; }
h2 { font-size: 1.18rem; letter-spacing: -.025em; margin: 0 0 3px; }
.panel-head p { font-size: .875rem; color: var(--muted); margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .925rem; }
th { background: #f6f8fa; color: var(--muted); font-size: .875rem; font-weight: 650; }
th, td { padding: 10px 20px; border-top: 1px solid #edf0f3; }
td:first-child { font-weight: 650; }
td:last-child, th:last-child { text-align: right; }
.match { color: var(--muted); white-space: nowrap; }
.match:before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #277759; vertical-align: .12em; }
.match.keyword:before { background: #ab6a17; }
.button { appearance: none; border: 1px solid transparent; font: inherit; font-size: .875rem; font-weight: 650; min-height: 36px; padding: 6px 13px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.button:disabled { opacity: .48; cursor: default; }
.button.primary { background: #af4216; color: #fff; }
.button.primary:hover:not(:disabled) { background: #8d3210; }
.button.outline { background: transparent; border-color: #c9d2dc; color: #253746; }
.button.outline:hover:not(:disabled) { background: #eef2f6; }
.top .button.outline { color: #fff; border-color: #667786; }
.top .button.outline:hover { background: #26384a; }
.button.remove { background: transparent; color: #9b3216; min-height: 29px; padding: 3px 7px; }
.button.remove:hover:not(:disabled) { background: #fff0ea; }
.recipients { list-style: none; padding: 0; margin: 0; }
.recipients li { border-top: 1px solid #edf0f3; padding: 7px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.recipients li span { overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 15px 20px; margin: 0; border-top: 1px solid #edf0f3; }
.notice { padding: 12px 15px; background: #eaf4ec; border-left: 3px solid #277759; border-radius: 4px; }
.notice.failed { background: #fff0ea; border-color: #9b3216; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: .875rem; padding: 3px 2px; }
dialog { border: 1px solid var(--line); border-radius: 13px; padding: 22px; max-width: min(480px, calc(100% - 30px)); width: 100%; color: var(--ink); box-shadow: 0 12px 60px #11243745; }
dialog::backdrop { background: #0a162a85; }
dialog h2 { margin-bottom: 15px; }
dialog label { display: block; font-size: .875rem; font-weight: 650; margin: 12px 0; }
dialog input { display: block; width: 100%; margin-top: 5px; border: 1px solid #a7b4c2; border-radius: 6px; padding: 8px 10px; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 400; }
.hint { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.error { margin: 10px 0 0; color: #a13217; }
.catalog { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 12px; padding: 0 9px 3px; max-height: 42vh; overflow: auto; }
.catalog label { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.catalog label:last-child { border-bottom: 0; }
.catalog legend { padding: 0 5px; font-size: .875rem; font-weight: 650; }
.catalog input { width: auto; margin: 3px 0 0; flex: none; }
.catalog code { display: block; white-space: normal; overflow-wrap: anywhere; font-weight: 400; color: var(--muted); }
:focus-visible { outline: 3px solid #276bbb; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .top { padding-inline: 14px; }
  .identity { gap: 9px; }
  .brand img { width: clamp(87px, 28vw, 125px); }
  .identity-label { padding-left: 9px; font-size: .75rem; }
  main { padding: 26px 12px 18px; }
  .intro { align-items: flex-start; flex-direction: column; gap: 13px; }
  th, td { padding: 8px 10px; }
  .panel-head, .recipients li { padding-inline: 11px; }
}
