/* HIT notifications: tabs, deadline groups and one card per notification. */
.hit-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 20px}
.hit-tabs a{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:8px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface,#fff);color:var(--ink);font-weight:650;text-decoration:none}
.hit-tabs a[aria-current=page]{background:var(--forest);border-color:var(--forest);color:white}
.hit-tabs a span{min-width:22px;padding:1px 7px;border-radius:10px;background:var(--mint);color:var(--ink);font-size:12px;text-align:center}
.hit-tabs a[aria-current=page] span{background:#ffffff2e;color:white}
.hit-tabs button{margin-left:auto;min-height:42px}
.hit-group{margin-bottom:26px}
.hit-group h2{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
.hit-group h2 span{min-width:22px;padding:1px 7px;border-radius:10px;background:var(--mint);color:var(--ink);font-size:12px;letter-spacing:0;text-align:center}
.hit-group.overdue h2{color:#b5422d}
.hit-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}
.hit-item{display:grid;gap:10px;padding:18px;border-left-width:4px}
.hit-item.hit-overdue{border-left-color:#b5422d}
.hit-item.hit-soon{border-left-color:#c6952f}
.hit-item.hit-open{border-left-color:var(--green)}
.hit-item-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px}
.hit-deadline{color:var(--muted);font-size:13px;font-weight:600}
.hit-overdue .hit-deadline{color:#b5422d}
.hit-soon .hit-deadline{color:#8a692c}
.hit-kind-birth{background:#e3eedf;color:#2f5d3a}
.hit-kind-arrival{background:#e5edf3;color:#36586f}
.hit-kind-departure{background:#f5edcf;color:#84652a}
.hit-kind-death{background:#ecede7;color:#4f5a52}
.hit-item h3{margin:0;font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.hit-item h3 a{color:var(--ink)}
.hit-item h3 small{color:var(--muted);font-size:14px;font-weight:500}
.hit-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0}
.hit-facts div{min-width:0}
.hit-facts dt{color:var(--muted);font-size:12px}
.hit-facts dd{margin:1px 0 0;font-weight:600;overflow-wrap:anywhere}
.hit-missing,.hit-changed{display:flex;align-items:flex-start;gap:8px;margin:0;padding:9px 11px;border-radius:10px;font-size:13.5px;line-height:1.4}
.hit-missing{background:#faf3df;color:#5e491c}
.hit-missing .app-icon{width:18px;height:18px;min-width:18px;margin-top:1px}
.hit-changed{background:#f9e8e0;color:#7a3021}
.hit-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
.hit-actions button{flex:1 1 140px;min-height:44px;gap:6px}
.hit-actions .quiet{flex:0 0 auto}
.hit-empty{display:grid;justify-items:center;gap:8px;padding:30px 18px;text-align:center;color:var(--muted)}
.hit-empty .app-icon{width:32px;height:32px;color:var(--green)}
.hit-empty p{margin:0}
.hit-note{margin-top:4px}
[data-theme=dark] .hit-tabs a{background:var(--surface);border-color:var(--line)}
[data-theme=dark] .hit-tabs a[aria-current=page]{background:#4d6b58;border-color:#4d6b58}
[data-theme=dark] .hit-missing{background:#3a3423;color:#e3c98a}
[data-theme=dark] .hit-changed{background:#3a2622;color:var(--red)}
[data-theme=dark] .hit-kind-birth{background:#25352a;color:#a8d1b0}
[data-theme=dark] .hit-kind-arrival{background:#24303a;color:#a9c3d6}
[data-theme=dark] .hit-kind-departure{background:#3a3423;color:#e3c98a}
[data-theme=dark] .hit-kind-death{background:#303236;color:#d3d7dc}
[data-theme=dark] :is(.hit-group.overdue h2,.hit-overdue .hit-deadline){color:var(--red)}
@media(max-width:560px){
  .hit-list{grid-template-columns:minmax(0,1fr)}
  .hit-tabs a{flex:1 1 0;justify-content:center}
  .hit-tabs button{flex:1 1 100%;margin-left:0}
  .hit-item{padding:16px}
}
.hit-banner{display:flex;align-items:center;gap:8px;margin:0 0 14px;padding:10px 14px;border-radius:12px;background:#faf3df;color:#5e491c;font-size:14px}
.hit-banner .app-icon{width:18px;height:18px;flex:none}
.hit-answer{margin:0;padding:8px 11px;border-radius:10px;background:var(--mint);font-size:13px;overflow-wrap:anywhere}
.hit-settings-card h3{margin:24px 0 4px;font-size:16px}
.hit-settings-card .form-grid{margin-top:12px}
.hit-consent{margin:16px 0 4px}
.hit-settings-form .button-row{margin-top:16px}
/* import of the HIT herd register */
.imp-actions,.imp-submit,.imp-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 18px}
.imp-toolbar{gap:8px 24px}
.imp-submit{position:sticky;bottom:12px;z-index:2;margin-top:16px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#fff);box-shadow:var(--shadow)}
.imp-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:0 0 14px}
.imp-summary div{padding:12px 14px;border-radius:12px;background:var(--mint)}
.imp-summary strong{display:block;font-size:24px;line-height:1.2}
.imp-summary small{font-size:12px}
.imp-holding-card,.imp-result{display:grid;gap:10px;justify-items:start;margin:0 0 18px}
.imp-holding-card p,.imp-result p{margin:0}
.imp-failed{margin:0;padding-left:18px;font-size:14px}
.imp-group{margin:0 0 22px}
.imp-group h2{display:inline-flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
.imp-group h2 span{min-width:22px;padding:1px 7px;border-radius:10px;background:var(--mint);color:var(--ink);font-size:12px;letter-spacing:0;text-align:center}
.imp-group summary{cursor:pointer}
.imp-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.imp-item{display:grid;gap:8px;padding:14px;border:1px solid var(--line);border-left-width:4px;border-radius:12px;background:var(--surface,#fff)}
.imp-new{border-left-color:var(--green)}
.imp-differs{border-left-color:#c6952f}
.imp-invalid{border-left-color:#b5422d}
.imp-choose{display:flex;align-items:center;gap:10px;margin:0;font-size:15px;cursor:pointer}
.imp-item dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin:0}
.imp-item dt{color:var(--muted);font-size:12px}
.imp-item dd{margin:0;font-weight:600;font-size:14px;overflow-wrap:anywhere}
.imp-note{margin:0;font-size:13px;color:#84652a}
.imp-add{margin:0;font-size:13px;color:var(--green);font-weight:600}
.imp-period{display:flex;align-items:center;gap:8px;margin:0}
.imp-period span{font-size:13px;color:var(--muted);font-weight:600}
.imp-period select{width:auto;min-width:240px}
.imp-options{display:grid;gap:8px;margin:0 0 20px;padding:14px 16px;border:1px solid var(--line);border-radius:12px}
.imp-options legend{padding:0 6px;font-weight:700;font-size:14px}
.imp-update{border-left-color:#36586f}
.imp-new_departed{border-left-color:#8a8f88}
@media(max-width:560px){.imp-submit .muted{display:none}.imp-period{flex:1 1 100%;flex-wrap:wrap;min-width:0}.imp-period select{flex:1 1 100%;width:100%;min-width:0;max-width:100%}}
[data-theme=dark] .imp-note{color:#e3c98a}
[data-theme=dark] .imp-summary div{background:#2c2e31}
@media(max-width:560px){.imp-list{grid-template-columns:minmax(0,1fr)}.imp-actions button,.imp-submit button{flex:1 1 100%}}
.user-row .user-hit{margin:0;font-weight:600;white-space:nowrap;cursor:pointer}
[data-theme=dark] .hit-banner{background:#3a3423;color:#e3c98a}
[data-theme=dark] .hit-answer{background:#2c2e31}