/* Simple automations: the Reminders card (web/js/auto-card.js), quick rules and the Automation center (templates.js allAutomations) */
.ac-card { display: flex; flex-direction: column; gap: 10px; }
.ac-flat { display: flex; flex-direction: column; gap: 10px; }
.ac-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ac-head .jb-h2 { margin-bottom: 2px; }
.ac-steps { display: flex; flex-direction: column; }
.ac-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.ac-step:first-child { border-top: 0; }
.ac-step.off .ac-what > b, .ac-step.off .ac-what > span { opacity: .55; }
.ac-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ac-what > b { font-size: 15px; }
.ac-what > span { font-size: 13px; }
.ac-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; }
.ac-sel { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); }
.ac-tag { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--chip-soft); border-radius: 99px; padding: 3px 9px; }
.ac-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ac-chip { font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.ac-chip[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: var(--on-sage, #fff); }
.ac-word { display: grid; gap: 8px; margin-top: 8px; }
.ac-word textarea { resize: vertical; }
.ac-word code { font-size: 12px; background: var(--chip-soft); border-radius: 4px; padding: 1px 4px; }
.ac-prev { margin-top: 8px; background: var(--chip-soft); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.ac-prev b { font-size: 14px; }
.ac-prev-l { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ac-opt { font-size: 14px; }
.ac-offnote { padding: 6px 0; }
.ac-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; border-top: 1px solid var(--line-soft); padding-top: 10px; font-size: 13px; color: var(--ink-3); }
.ac-foot .jb-link { margin-left: auto; }
.ac-switch { position: relative; display: inline-flex; flex: none; cursor: pointer; margin-top: 1px; }
.ac-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ac-switch span { width: 38px; height: 22px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; }
.ac-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.ac-switch input:checked + span { background: var(--sage); }
.ac-switch input:checked + span::after { transform: translateX(16px); }
.ac-switch input:focus-visible + span { outline: 2px solid var(--maroon); outline-offset: 2px; }
.ac-switch.big span { width: 44px; height: 26px; }
.ac-switch.big span::after { width: 20px; height: 20px; }
.ac-switch.big input:checked + span::after { transform: translateX(18px); }
/* tuition: the schedule around the due date */
.ac-tl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; position: relative; padding: 4px 0 2px; }
.ac-tl::before { content: ''; position: absolute; left: 10%; right: 10%; top: 19px; height: 2px; background: var(--line); }
.ac-tl-pt { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); position: relative; text-align: center; }
.ac-tl-pt i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--line); background: var(--paper); color: var(--ink-3); }
.ac-tl-pt.on i { background: var(--sage); border-color: var(--sage); color: #fff; }
.ac-tl-pt.due i { border-color: var(--maroon); color: var(--maroon); }
.ac-tl-pt b { font-weight: 600; color: var(--ink-2); }
@media (max-width: 600px) { .ac-tl { display: none; } }
/* quick rules */
.qr-sentence { font-size: 20px; line-height: 2; color: var(--ink); }
.qr-sentence select { font: inherit; font-size: 16px; font-weight: 600; color: var(--maroon-ink); background: var(--maroon-wash); border: 1px solid var(--maroon-line); border-radius: var(--r-sm); padding: 3px 8px; margin: 0 2px; max-width: 100%; }
.qr-recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jb-sheet .qr-recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .qr-recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .qr-recipes, .jb-sheet .qr-recipes { grid-template-columns: minmax(0, 1fr); } }
.qr-recipe { text-align: left; font: inherit; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.qr-recipe:hover, .qr-recipe[aria-pressed="true"] { border-color: var(--maroon-line); background: var(--maroon-wash); }
.qr-recipe small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.qr-prev { background: var(--chip-soft); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
/* Automation center */
.am-sec { display: flex; flex-direction: column; gap: 4px; }
.am-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.am-row:first-of-type { border-top: 0; }
.am-row .t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.am-row .t b { font-size: 15px; }
.am-row .t span { font-size: 13px; color: var(--ink-3); }
.am-row .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12.5px; color: var(--ink-3); text-align: right; }
.am-row.click { cursor: pointer; }
.am-row.click:hover .t b { color: var(--maroon); }
@media (max-width: 600px) { .am-row { grid-template-columns: auto minmax(0, 1fr); } .am-row .meta { grid-column: 2; align-items: flex-start; text-align: left; } }
.am-held { border-left: 3px solid var(--accent); }
.ac-dim { opacity: .5; }
