@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

* { box-sizing: border-box; }

.hj-root{
  --paper:#F5F6F1; --surface:#FFFFFF; --ink:#12201E; --ink-soft:#54655F;
  --line:#DDE2DA; --brand:#1B6B63; --brand-dark:#0E3D38; --brand-soft:#E4EEEC;
  --amber:#B9822E; --amber-soft:#F6ECD9; --red:#B7402E; --red-soft:#F7E2DD;
  --green:#3E7A4C; --green-soft:#E4EFE4; --pad:#8A6E4A; --pad-soft:#EFE7DA;
  font-family:'Inter',system-ui,sans-serif; background:var(--paper); color:var(--ink);
  min-height:100vh; margin:0;
}
.disp{ font-family:'Space Grotesk',system-ui,sans-serif; }
.hj-shell{ max-width:1180px; margin:0 auto; padding:28px 20px 80px; }

.hj-topbar{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:20px; border-bottom:1px solid var(--line); margin-bottom:22px; flex-wrap:wrap;}
.hj-brand{ display:flex; align-items:center; gap:10px; }
.hj-brand-mark{ width:34px; height:34px; border-radius:8px; background:var(--brand); display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0;}
.hj-brand-name{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:18px; letter-spacing:-0.01em;}
.hj-brand-sub{ font-size:11.5px; color:var(--ink-soft); margin-top:-2px;}

.hj-roles{ display:flex; gap:4px; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:3px;}
.hj-role-btn{ border:none; background:transparent; padding:8px 14px; font-size:13.5px; font-weight:600; color:var(--ink-soft); border-radius:7px; cursor:pointer; font-family:'Inter',sans-serif; text-decoration:none; display:inline-block;}
.hj-role-btn.active{ background:var(--brand); color:#fff; }

.hj-subnav{ display:flex; gap:6px; margin-bottom:22px; flex-wrap:wrap; }
.hj-subnav a{ border:1px solid var(--line); background:var(--surface); padding:8px 14px; border-radius:8px; font-size:13.5px; font-weight:600; color:var(--ink-soft); cursor:pointer; font-family:'Inter',sans-serif; text-decoration:none;}
.hj-subnav a.active{ background:var(--brand-dark); border-color:var(--brand-dark); color:#fff; }

.hj-compliance{ display:flex; align-items:center; gap:10px; background:var(--brand-soft); color:var(--brand-dark); border-radius:10px; padding:11px 16px; font-size:12.6px; margin-bottom:20px; font-weight:600; line-height:1.5;}

.hj-hero{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; background:var(--brand-dark); color:#fff; border-radius:14px; padding:26px 28px; margin-bottom:18px; flex-wrap:wrap;}
.hj-hero-num{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:48px; line-height:1; letter-spacing:-0.02em;}
.hj-hero-label{ font-size:14px; color:#CFE3DF; margin-top:6px; max-width:440px; }
.hj-hero-stats{ display:flex; gap:26px; flex-wrap:wrap; }
.hj-hero-stat{ text-align:right; }
.hj-hero-stat b{ font-family:'Space Grotesk',sans-serif; font-size:22px; display:block; }
.hj-hero-stat span{ font-size:11.5px; color:#B9D6D1; }

.hj-grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:22px;}
.hj-grid2{ display:grid; grid-template-columns:2fr 1fr; gap:16px; margin-bottom:22px;}
@media(max-width:860px){ .hj-grid3{grid-template-columns:1fr 1fr;} .hj-grid2{grid-template-columns:1fr;} }
@media(max-width:560px){ .hj-grid3{grid-template-columns:1fr;} }

.hj-card{ background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px 20px;}
.hj-card h3{ font-family:'Space Grotesk',sans-serif; font-size:14.5px; font-weight:600; margin:0 0 4px; }
.hj-stat-big{ font-family:'Space Grotesk',sans-serif; font-size:30px; font-weight:700; margin:2px 0;}
.hj-stat-cap{ font-size:12px; color:var(--ink-soft); }

.hj-section-title{ font-family:'Space Grotesk',sans-serif; font-size:16px; font-weight:600; margin:0 0 12px; display:flex; align-items:center; gap:8px;}

.hj-ledger{ border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--surface);}
.hj-ledger-row{ display:grid; grid-template-columns:1.5fr 1.3fr 1.3fr 0.9fr 32px; gap:10px; padding:13px 18px; align-items:center; border-bottom:1px solid var(--line); font-size:13.5px;}
.hj-ledger-row:last-child{ border-bottom:none; }
.hj-ledger-row.head{ background:var(--paper); font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-soft); font-weight:600;}
.hj-serial{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13px;}
.hj-muted{ color:var(--ink-soft); font-size:12.5px;}
.hj-lot{ font-family:'Space Grotesk',sans-serif; font-size:11.5px; color:var(--ink-soft); }

.hj-badge{ display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:20px; font-size:11.5px; font-weight:600; white-space:nowrap;}
.hj-badge.ok{ background:var(--green-soft); color:var(--green); }
.hj-badge.warn{ background:var(--amber-soft); color:var(--amber); }
.hj-badge.crit{ background:var(--red-soft); color:var(--red); }
.hj-badge.rent{ background:var(--pad-soft); color:var(--pad); }

.hj-life{ display:flex; flex-direction:column; gap:4px; min-width:110px;}
.hj-life-row{ display:flex; align-items:center; gap:6px; }
.hj-life-track{ flex:1; height:5px; background:var(--line); border-radius:3px; overflow:hidden;}
.hj-life-fill{ height:100%; border-radius:3px; }

.hj-qr{ width:32px; height:32px; border:1px solid var(--line); border-radius:7px; display:flex; align-items:center; justify-content:center; color:var(--ink-soft); background:var(--paper); flex-shrink:0;}

.hj-btn{ font-family:'Inter',sans-serif; font-weight:600; font-size:13.5px; border-radius:8px; padding:10px 16px; cursor:pointer; border:1px solid transparent; display:inline-flex; align-items:center; gap:7px;}
.hj-btn-primary{ background:var(--brand); color:#fff; }
.hj-btn-primary:hover{ background:var(--brand-dark); }
.hj-btn-secondary{ background:var(--surface); border:1px solid var(--line); color:var(--ink); }
.hj-btn-secondary:hover{ border-color:var(--brand); color:var(--brand); }

.hj-input{ width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px; font-size:13.5px; font-family:'Inter',sans-serif; background:var(--surface); color:var(--ink); }
.hj-input:focus{ outline:2px solid var(--brand); outline-offset:1px; }
.hj-label{ font-size:12px; font-weight:600; color:var(--ink-soft); display:block; margin-bottom:5px;}
.hj-form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px;}
@media(max-width:560px){ .hj-form-grid{grid-template-columns:1fr;} }

.hj-toggle-group{ display:flex; gap:8px; }
.hj-toggle{ border:1px solid var(--line); background:var(--surface); padding:8px 14px; border-radius:8px; font-size:12.8px; font-weight:600; cursor:pointer; color:var(--ink-soft); font-family:'Inter',sans-serif;}
.hj-toggle.active{ background:var(--brand); color:#fff; border-color:var(--brand); }
.hj-toggle input{ display:none; }
.hj-toggle:has(input:checked){ background:var(--brand); color:#fff; border-color:var(--brand); }

.hj-fieldset{ border:1px dashed var(--line); border-radius:10px; padding:12px 14px; margin-top:4px;}
.hj-fieldset legend{ font-size:11.5px; font-weight:700; color:var(--brand-dark); text-transform:uppercase; letter-spacing:.03em; padding:0 4px;}

.hj-timeline{ position:relative; padding-left:18px; margin-top:10px;}
.hj-timeline:before{ content:''; position:absolute; left:4px; top:4px; bottom:4px; width:1.5px; background:var(--line);}
.hj-tl-item{ position:relative; padding-bottom:14px; }
.hj-tl-item:last-child{ padding-bottom:0; }
.hj-tl-dot{ position:absolute; left:-18px; top:3px; width:9px; height:9px; border-radius:50%; background:var(--brand); border:2px solid var(--surface); box-shadow:0 0 0 1px var(--line);}
.hj-tl-dot.mail{ background:var(--amber); }
.hj-tl-date{ font-size:11px; color:var(--ink-soft); font-weight:600;}
.hj-tl-label{ font-size:13px; margin-top:1px;}

.hj-banner{ background:var(--green-soft); color:var(--green); border-radius:9px; padding:10px 14px; font-size:13px; font-weight:600; margin-bottom:14px; display:flex; align-items:center; gap:8px;}
.hj-search{ display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:8px; padding:8px 12px; background:var(--surface); max-width:340px; margin-bottom:14px;}
.hj-search input{ border:none; outline:none; font-size:13.5px; width:100%; background:transparent; font-family:'Inter',sans-serif; }

.hj-smart{ border:1px dashed var(--brand); background:var(--brand-soft); border-radius:12px; padding:16px 18px; margin-top:18px;}
.hj-smart h4{ font-family:'Space Grotesk',sans-serif; font-size:13.5px; margin:0 0 8px; color:var(--brand-dark);}
.hj-smart ul{ margin:0; padding-left:18px; font-size:12.8px; color:var(--ink-soft); line-height:1.7;}

.hj-chip{ display:inline-block; border:1px solid var(--line); background:var(--surface); padding:5px 10px; border-radius:16px; font-size:11.5px; margin:3px 6px 3px 0; cursor:pointer; font-family:'Space Grotesk',sans-serif; text-decoration:none; color:var(--ink);}
.hj-chip:hover{ border-color:var(--brand); color:var(--brand); }

.hj-mailgrid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:10px;}
@media(max-width:700px){ .hj-mailgrid{grid-template-columns:1fr;} }
.hj-mailbox{ border:1px solid var(--line); border-radius:10px; padding:14px 16px; background:var(--paper); font-size:12.5px;}
.hj-mailbox .tag{ display:inline-block; font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; padding:2px 8px; border-radius:12px; margin-bottom:8px;}
.hj-mailbox .subj{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13.5px; margin-bottom:6px;}
.hj-mailbox .meta{ color:var(--ink-soft); font-size:11px; margin-bottom:10px;}
.hj-mailbox .fake-link{ color:var(--brand); font-weight:600; text-decoration:underline; }

.hj-details summary{ cursor:pointer; list-style:none; }
.hj-details summary::-webkit-details-marker{ display:none; }
