/* Small, readable controls using Polxy's paper/ink palette. */
html body #polxy-recurring-dialog { width: min(700px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); padding: 24px; margin: auto; border: 2px solid #111318; border-radius: 0; background: #fffaf2; color: #111318; box-shadow: 5px 5px 0 #111318; overflow: auto; }
html body #polxy-recurring-dialog::backdrop { background: rgb(12 14 20 / 48%); }
html body #polxy-recurring-dialog > header { display: flex; justify-content: space-between; align-items: start; gap: 20px; position: static; padding: 0 0 16px; background: transparent; color: inherit; border: 0; }
html body #polxy-recurring-dialog h2 { margin: 0; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; text-transform: none; }
html body :is(#polxy-recurring-dialog, #polxy-recurring-queue) { font: 400 14px/1.55 Arial, sans-serif; }
html body :is(#polxy-recurring-dialog, #polxy-recurring-queue) button { min-height: 44px; padding: 9px 14px; border: 1px solid #111318; border-radius: 0; background: #fffaf2; color: #111318; box-shadow: none; font: 600 13px/1.5 Arial, sans-serif; text-transform: none; }
html body :is(#polxy-recurring-dialog, #polxy-recurring-queue) button:hover { background: #dfff3f; }
html body :is(#polxy-recurring-dialog, #polxy-recurring-queue) button:disabled { opacity: .55; cursor: wait; }
html body :is(#polxy-recurring-dialog, #polxy-recurring-queue) :is(button, input, textarea, select, summary):focus-visible { outline: 3px solid #44308b; outline-offset: 3px; }
html body #polxy-recurring-dialog .recurring-primary { background: #dfff3f; box-shadow: 2px 2px 0 #111318; }
html body .recurring-list-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
html body .recurring-list-intro p { margin: 0; max-width: 65%; }
html body .recurring-job { padding: 18px 0; border-top: 1px solid #bbb8b2; overflow-wrap: anywhere; }
html body .recurring-job-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 8px 18px; }
html body :is(.recurring-job, .recurring-empty, .recurring-review) h3 { margin: 0 0 8px; font: 700 17px/1.45 Arial, sans-serif; text-transform: none; color: inherit; }
html body .recurring-status { flex-shrink: 0; padding: 2px 8px; background: #e4f2ee; border: 1px solid #9eaaa6; color: #111318; font-size: 12px; }
html body .recurring-job p { margin: 8px 0 12px; }
html body .recurring-job dl { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 16px 0; }
html body :is(.recurring-job, .recurring-review) dt { color: #5b5b57; font-size: 12px; }
html body :is(.recurring-job, .recurring-review) dd { margin: 3px 0 0; font-weight: 600; }
html body :is(.recurring-note, .recurring-schedule) { margin: 8px 0 16px; color: #50524e; font: 400 12px/1.6 Arial, sans-serif; }
html body .recurring-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 2px; }
html body .recurring-brief { padding: 0; border: 0; box-shadow: none; background: transparent; color: inherit; }
html body .recurring-brief > summary { display: list-item; font: 600 12px/1.5 Arial, sans-serif; min-height: 32px; padding: 8px 0; cursor: pointer; }
html body .recurring-brief > summary::after { display: none; }
html body .recurring-empty { padding: 24px 0; max-width: 500px; }
html body #polxy-recurring-form label { display: grid; gap: 6px; margin: 0 0 16px; font: 600 13px/1.5 Arial, sans-serif; text-transform: none; color: #111318; }
html body #polxy-recurring-form :is(input:not([type="checkbox"]), textarea, select) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 10px; margin: 0; border: 1px solid #878780; border-radius: 0; color: #111318; background: #fffdf8; font: 400 14px/1.5 Arial, sans-serif; text-transform: none; box-shadow: none; }
html body #polxy-recurring-form input[readonly] { background: #eeede6; }
html body #polxy-recurring-form textarea { resize: vertical; }
html body .recurring-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
html body #polxy-recurring-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
html body #polxy-recurring-form fieldset[hidden] { display: none; }
html body #polxy-recurring-form legend { padding: 0; margin: 0 0 8px; font-weight: 600; }
html body .recurring-weekdays { display: flex; flex-wrap: wrap; gap: 8px 18px; }
html body #polxy-recurring-form :is(.recurring-weekdays label, .recurring-check) { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 36px; }
html body #polxy-recurring-form input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: #111318; }
html body .recurring-review dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; padding: 20px 0; border-block: 1px solid #bbb8b2; }
html body .recurring-review { overflow-wrap: anywhere; }
html body .recurring-eyebrow { display: block; margin: 4px 0 12px; font-size: 12px; color: #50524e; }
html body #polxy-recurring-queue .queue-phase-content { background: #fffaf2; color: #111318; }
html body .recurring-chat-draft { box-sizing: border-box; width: min(100%, 860px); margin: 0 auto 24px; padding: 20px 24px; border: 1px solid #999b92; border-left: 4px solid #524092; background: #fffaf2; color: #111318; overflow-wrap: anywhere; font: 400 14px/1.55 Arial, sans-serif; }
html body .recurring-chat-draft h3 { margin: 0 0 8px; font: 700 17px/1.4 Arial, sans-serif; color: inherit; text-transform: none; }
html body .recurring-chat-draft dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; margin: 18px 0; }
html body .recurring-chat-draft dt { color: #565954; font-size: 12px; }
html body .recurring-chat-draft dd { margin: 2px 0 0; font-weight: 600; }
html body .recurring-chat-draft button { min-height: 44px; padding: 10px 16px; border: 1px solid #111318; border-radius: 0; background: #dfff3f; color: #111318; box-shadow: none; font: 600 13px/1.5 Arial, sans-serif; text-transform: none; }
html body .recurring-chat-draft button:focus-visible { outline: 3px solid #44308b; outline-offset: 3px; }
html body .recurring-chat-draft button:disabled { background: #eee; color: #656565; cursor: default; }
html[data-polxy-theme="calm-monochrome"] body .recurring-chat-draft { background: #fff; border-left-color: #707579; }
html[data-polxy-theme="calm-monochrome"] body .recurring-chat-draft button:not(:disabled) { background: #202324; color: #fff; }
@media (max-width: 600px) {
  html body .recurring-chat-draft { padding: 16px; }
  html body .recurring-chat-draft dl { grid-template-columns: minmax(0,1fr); }
  html body #polxy-recurring-dialog { box-sizing: border-box; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 18px !important; }
  html body :is(.recurring-form-grid, .recurring-review dl) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  html body .recurring-review dl { gap: 16px; }
  html body .recurring-list-intro p { max-width: 100%; }
}
html[data-polxy-theme="calm-monochrome"] body #polxy-recurring-dialog { background: #fff; box-shadow: 3px 3px 0 #707579; }
html[data-polxy-theme="calm-monochrome"] body #polxy-recurring-dialog .recurring-primary { color: #fff; background: #202324; box-shadow: none; }
html[data-polxy-theme="calm-monochrome"] body :is(#polxy-recurring-dialog, #polxy-recurring-queue) button:hover { color: #111318; background: #e5e7e7; }
html[data-polxy-theme="calm-monochrome"] body .recurring-status { background: #edeff0; }
html body #dashboard-answer-dialog .recurring-exact-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; margin: 12px 0; border: 1px solid #93938c; background: #fffaf2; color: #08090d; font: 400 15px/1.7 Arial, sans-serif; }

.recurring-chat-progress { margin-top: 12px; }
.recurring-chat-progress article { padding: 12px 0; border-top: 1px solid currentColor; }
.recurring-chat-progress article > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.recurring-chat-progress article span, .recurring-chat-progress small { display: block; font-size: 12px; }
.recurring-chat-progress button { min-height: 44px; margin-top: 6px; }

.recurring-previous-version { margin: 12px 0; }
.recurring-previous-version summary { cursor: pointer; min-height: 32px; padding: 6px 0; }
