.hs-entry { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; min-height:48px; margin-top:8px; padding:10px 0; color:var(--text); background:none; border:0; border-top:1px solid var(--border); font:inherit; text-align:left; cursor:pointer; }
.hs-entry small { color:var(--muted); font-size:12px; }
.hs-dialog { box-sizing:border-box; width:min(720px,calc(100% - 32px)); max-height:90dvh; padding:0; border:1px solid var(--border); border-radius:14px; color:var(--text); background:var(--bg); overflow:auto; overscroll-behavior:contain; }
.hs-dialog::backdrop { background:rgba(0,0,0,.45); }
.hs-dialog * { box-sizing:border-box; }
.hs-head { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid var(--border); background:var(--bg); }
.hs-head h2 { font-size:20px; margin:0; letter-spacing:0; }
.hs-close { min-width:44px; min-height:44px; border:1px solid var(--border); border-radius:8px; background:transparent; color:inherit; cursor:pointer; font:inherit; font-size:22px; }
.hs-body { padding:18px 20px; }
.hs-auth { text-align:center; padding:28px 12px; }
.hs-auth p { color:var(--muted); font-size:14px; }
.hs-main-button { width:100%; min-height:50px; border:0; border-radius:8px; padding:12px; background:var(--accent); color:#fff; font:600 16px/1.4 system-ui,sans-serif; cursor:pointer; }
.hs-main-button:disabled { opacity:.6; cursor:wait; }
.hs-form { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.hs-form label { display:grid; gap:6px; min-width:0; color:var(--muted); font-size:13px; }
.hs-form input { width:100%; min-width:0; min-height:46px; padding:8px 10px; border:1px solid var(--border); border-radius:8px; background:var(--surface,var(--bg)); color:var(--text); font:16px/1.4 system-ui,sans-serif; }
.hs-date,.hs-presets,.hs-submit { grid-column:1/-1; }
.hs-presets { display:flex; flex-wrap:wrap; gap:8px; }
.hs-presets button { flex:1; min-width:58px; min-height:44px; padding:8px; border:1px solid var(--border); border-radius:8px; background:transparent; color:var(--text); font:14px/1.2 system-ui,sans-serif; cursor:pointer; }
.hs-presets button[aria-pressed=true] { border-color:var(--accent); color:var(--accent); background:var(--accent-soft,rgba(194,65,12,.08)); }
.hs-date-shortcuts { display:flex; gap:8px; margin:8px 0 12px; }
.hs-date-shortcuts button { padding:8px 12px; min-height:44px; border:1px solid var(--border); border-radius:8px; background:transparent; color:var(--text); font:inherit; cursor:pointer; }
.hs-live { min-height:22px; margin:10px 0 0; color:var(--muted); font:13px/1.5 system-ui,sans-serif; }
.hs-verdict { margin:20px 0; padding:16px; scroll-margin-top:90px; border-radius:10px; border:1px solid var(--border); border-left:5px solid var(--accent); background:var(--surface,var(--bg)); }
.hs-verdict h3 { margin:0 0 6px; font-size:22px; line-height:1.35; }
.hs-verdict p { margin:4px 0; font-size:14px; line-height:1.5; }
.hs-verdict[data-state=free] { border-left-color:#16804a; }
.hs-verdict[data-state=conflict] { border-left-color:#d04930; }
.hs-verdict[data-state=unsure] { border-left-color:#bc8417; }
.hs-badges { display:flex; gap:6px; flex-wrap:wrap; margin:10px 0; }
.hs-badge { padding:3px 7px; border:1px solid var(--border); border-radius:5px; font:12px/1.5 system-ui,sans-serif; }
.hs-day-head { display:flex; justify-content:space-between; align-items:center; margin:22px 0 8px; }
.hs-day-head h3 { margin:0; font-size:16px; }
.hs-timeline { list-style:none; padding:0; margin:0; }
.hs-timeline li { display:grid; grid-template-columns:66px minmax(0,1fr); gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.hs-clock { font:600 14px/1.7 ui-monospace,monospace; }
.hs-clock small { display:block; font-size:12px; color:var(--muted); font-weight:400; }
.hs-event { display:block; min-width:0; padding:10px 12px; border:1px solid var(--border); border-radius:8px; color:inherit; text-decoration:none; background:var(--surface,var(--bg)); overflow-wrap:anywhere; }
.hs-event strong { display:block; font-size:15px; line-height:1.5; }
.hs-event p { margin:3px 0; color:var(--muted); font-size:13px; line-height:1.5; }
.hs-event.is-conflict { border-color:#d04930; }
.hs-event.is-history { opacity:.65; }
.hs-footnote { font-size:12px; line-height:1.5; color:var(--muted); margin:16px 0 2px; }
.hs-progress { padding:16px 0; font-size:14px; color:var(--muted); }
@media(max-width:640px) {
 .hs-dialog { width:100%; max-width:none; height:100dvh; max-height:100dvh; margin:0; border:0; border-radius:0; }
 .hs-head { padding:10px 16px; padding-top:max(10px,env(safe-area-inset-top)); }
 .hs-body { padding:16px; padding-bottom:calc(96px + env(safe-area-inset-bottom)); }
 .hs-submit { position:sticky; bottom:0; z-index:1; padding:10px 0 max(10px,env(safe-area-inset-bottom)); background:var(--bg); }
 .hs-timeline li { grid-template-columns:56px minmax(0,1fr); gap:8px; }
 .hs-verdict { margin:12px 0 18px; padding:13px; }
 .hs-verdict h3 { font-size:21px; }
 .hs-main-button { touch-action:manipulation; }
}
@media(prefers-reduced-motion:reduce) { .hs-dialog * { scroll-behavior:auto!important; transition:none!important; } }

#hsVerdict { scroll-margin-top:80px; }
.hs-clock small { overflow-wrap:normal; }
