.auto-shell { --card:#fff; --text:#252e28; --line:#dbe3da; --muted-bg:#eef2ec; --accent-ink:var(--wl-accent-ink,#fff); background-image:var(--wl-background-light); background-attachment:fixed; min-height:100%; }
.auto button:not(.primary),.auto-dialog button:not(.primary) { background:var(--card); color:var(--text); border-color:var(--line); padding:8px 12px; }
.auto .primary,.auto-dialog .primary { color:var(--accent-ink); padding:9px 13px; }
.auto textarea,.auto-dialog textarea { width:100%; padding:9px 11px; font:inherit; color:var(--text); border:1px solid var(--line); border-radius:8px; }
.auto { max-width: 1500px; padding: 24px clamp(14px, 4vw, 56px) 60px; margin: auto; }
.auto h1,.auto h2,.auto h3 { margin: 0; }
.auto-head,.auto-toolbar,.auto-actions,.auto-dialog-head,.auto-card-head { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.auto-head,.auto-dialog-head,.auto-card-head { justify-content:space-between; }
.auto-head h1 { font-size:clamp(26px,5vw,39px); line-height:1.15; }
.auto-head label { display:flex; gap:8px; align-items:center; }
.auto .panel,.auto-dialog .panel { padding:16px; margin:12px 0; }
.auto-toolbar { margin-bottom:10px; align-items:end; }
.auto-toolbar>label { min-width:130px; }
.auto-feedback:empty { display:none; }
.auto-feedback:not(:empty) { margin:12px 0; }
.auto-empty { opacity:.75; }
.auto-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr)); gap:11px 16px; }
.auto-grid label,.auto-dialog label:not(.auto-check),.auto-toolbar label { display:grid; gap:5px; }
.auto-wide { grid-column:1/-1; }
.auto textarea,.auto-dialog textarea { resize:vertical; min-height:72px; }
.auto-scroll { overflow-x:auto; }
.auto-table { width:100%; border-collapse:collapse; text-align:left; }
.auto-table th,.auto-table td { padding:9px; border-bottom:1px solid var(--line); vertical-align:top; }
.auto-table th { white-space:nowrap; font-size:.86rem; }
.auto-table td small,.auto-note { opacity:.78; }
.auto-table td time { display:block; white-space:nowrap; font-variant-numeric:tabular-nums; }
.auto .auto-link:not(.primary),.auto-dialog .auto-link:not(.primary) { border:none; background:none; color:var(--text); padding:0; text-align:left; text-decoration:underline; text-underline-offset:3px; font-weight:650; }
.auto-dialog { color:var(--text); background:var(--card); border:1px solid var(--line); border-radius:14px; max-width:min(95vw,930px); width:870px; max-height:92dvh; padding:16px clamp(12px,3vw,24px) 24px; overflow:auto; }
.auto-dialog::backdrop { background:rgb(0 0 0 / 52%); }
.auto-dialog-head { margin-bottom:14px; }
.auto-dialog-head h2 { flex:1; margin:0; font-size:1.25rem; }
.auto-dialog-head button { font-size:1.35rem; min-width:42px; }
.auto-dialog form { margin:0; }
.auto-dialog .auto-actions { margin-top:14px; }
.auto-dialog .error:empty { display:none; }
.auto-check { display:inline-flex; align-items:center; gap:6px; }
.auto-check input { width:auto; }
.auto-dialog fieldset { border:1px solid var(--line); border-radius:9px; margin:12px 0; padding:10px; }
.auto-dialog legend { font-weight:650; padding:0 5px; }
.auto-form-lines { display:grid; gap:8px; }
.auto-row { border:1px solid var(--line); border-radius:8px; padding:8px; display:grid; gap:7px; }
.auto-row .auto-actions { margin-top:0; }
.auto-dialog details,.auto details { margin:10px 0; }
.auto-dialog summary,.auto summary { cursor:pointer; }
.auto-pager { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:10px; }
.auto-timeline { display:grid; grid-template-columns:68px repeat(var(--post-count),minmax(145px,1fr)); min-width:calc(68px + 145px * var(--post-count)); gap:3px; }
.auto-post-header { min-height:60px; padding:7px; display:flex; flex-direction:column; justify-content:center; background:var(--card); border:1px solid var(--line); border-radius:7px; word-break:break-word; }
.auto-post-header small { opacity:.8; }
.auto-track { height:var(--track-height); position:relative; border:1px solid var(--line); border-radius:7px; background:var(--card); }
.auto-track-tick,.auto-window,.auto-event { position:absolute; top:var(--slot-top); }
.auto-track-tick { inset-inline-end:3px; font-size:.8rem; white-space:nowrap; opacity:.8; }
.auto .auto-window:not(.primary) { inset-inline:0; height:var(--slot-height); background:transparent; border:0; border-top:1px solid var(--line); color:transparent; padding:0 4px; text-align:left; }
.auto .auto-window:not(.primary):hover,.auto .auto-window:not(.primary):focus-visible { color:var(--text); background:color-mix(in srgb,var(--accent) 12%,var(--card)); }
.auto-window::after { content:'+'; position:absolute; right:9px; top:50%; transform:translateY(-50%); color:var(--text); opacity:.35; }
.auto .auto-event:not(.primary) { z-index:1; inset-inline:3px; height:var(--slot-height); overflow:hidden; padding:1px 5px; font-size:.8rem; line-height:1.1; display:grid; align-content:center; gap:2px; text-align:left; border:1px solid color-mix(in srgb,var(--accent) 55%,var(--line)); background:color-mix(in srgb,var(--accent) 17%,var(--card)); }
.auto .auto-event[data-state=block]:not(.primary) { background:var(--muted-bg,var(--card)); border-style:dashed; }
.auto .auto-event[data-state=ready]:not(.primary) { border-width:2px; }
.auto-event strong,.auto-event small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.auto-pill { display:inline-block; background:color-mix(in srgb,var(--accent) 14%,var(--card)); border-radius:6px; padding:3px 7px; font-size:.85rem; }
.auto-photo { display:flex; gap:10px; flex-wrap:wrap; }
.auto-photo figure { margin:0; }
.auto-photo img { width:150px; height:105px; object-fit:cover; border-radius:8px; background:var(--line); }
.auto-photo figcaption { width:150px; overflow-wrap:anywhere; }
.auto-kpis { display:flex; gap:16px; flex-wrap:wrap; margin:14px 0; }
.auto-kpis span { display:grid; gap:4px; }
.auto-kpis strong { font-size:1.2rem; font-variant-numeric:tabular-nums; }
.auto-danger { color:var(--danger,#a12c20); }
.auto-secondary { font-size:.87rem; opacity:.8; }
#auto-print,[hidden] { display:none !important; }
@media (max-width:640px) { .auto-table th,.auto-table td { padding:6px; } .auto-dialog { width:95vw; } }
@media print {
  body { background:#fff !important; color:#000 !important; }
  body>header,#auto,#auto-dialog { display:none !important; }
  body>#auto-print { display:block !important; padding:0; font:11pt/1.4 Arial,sans-serif; }
  #auto-print h1 { font-size:20pt; }
  #auto-print table { width:100%; border-collapse:collapse; }
  #auto-print td,#auto-print th { border:1px solid #888; padding:5px; text-align:left; }
  #auto-print figure { display:inline-block; max-width:44%; vertical-align:top; margin:8px; break-inside:avoid; }
  #auto-print img { max-width:100%; max-height:240px; }
  #auto-print p { overflow-wrap:anywhere; }
}
