/* The two event tools: what site.css has no class for (a field's fault line, the check boxes, the weekday row, the
   file's text, the link rows). Logical properties only; both themes through the shared tokens and the two below. */
:root { --et-bad: #B3261E; }
:root[data-theme="dark"] { --et-bad: #F2B8B5; }

.et-err { margin: 0; font-size: 14px; line-height: 1.4; color: var(--et-bad); }
.et-err:empty { display: none; }
.st-field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--et-bad); }
.st-field textarea { min-block-size: 96px; resize: vertical; }
.et-check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); cursor: pointer; }
.et-check input { inline-size: 18px; block-size: 18px; margin: 0; accent-color: var(--ink); }
.et-days { border: 0; margin: 0; padding: 0; min-inline-size: 0; display: grid; gap: 8px; }
.et-days legend { padding: 0; margin-block-end: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.et-days-list { display: flex; flex-wrap: wrap; gap: 8px; }
.et-days-list .et-check { padding-block: 6px; padding-inline: 12px; border: 1px solid var(--g-hair); border-radius: 999px; }
.et-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.et-file { margin: 0; max-block-size: 320px; overflow: auto; padding-block: 12px; padding-inline: 14px; border-radius: 12px;
  background: var(--st-out); color: var(--ink); font-family: ui-monospace, Consolas, monospace; font-size: 13px;
  line-height: 1.5; white-space: pre; direction: ltr; text-align: start; }
.et-file:empty { display: none; }
.et-file:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.et-links { display: grid; gap: 14px; }
.et-link { display: grid; gap: 6px; }
.et-link > label { font-size: 14px; font-weight: 500; color: var(--ink); }
.et-link-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.et-link-row input { flex: 1 1 240px; min-inline-size: 0; font: inherit; font-size: 14px; color: var(--ink); background: var(--page);
  border: 1px solid var(--g-edge); border-radius: 10px; padding-block: 8px; padding-inline: 10px; }
.et-link-row a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.et-snippet { inline-size: 100%; min-block-size: 110px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
#et-tool [hidden] { display: none !important; }
