/* Heymake components · built only from tokens.css variables. Class names match the design system page. */
/* ---- components ---- */
  .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: var(--hm-control-h); padding: 0 16px; border-radius: var(--hm-radius-md);
    font-family: var(--hm-font-display); font-weight: 700; font-size: 15px; line-height: 1;
    border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  }
  .btn:hover { text-decoration: none; }
  .btn-primary { background: var(--hm-action); color: var(--hm-white); }
  .btn-primary:hover { background: var(--hm-action-hover); color: var(--hm-white); }
  .btn-secondary { background: var(--hm-white); color: var(--hm-action); border-color: var(--hm-action); }
  .btn-secondary:hover { background: var(--hm-action-tint); color: var(--hm-action-hover); }
  .btn-tertiary { background: transparent; color: var(--hm-action); padding: 0 8px; }
  .btn-tertiary:hover { background: var(--hm-action-tint); color: var(--hm-action-hover); }
  .btn-icon { width: var(--hm-control-h); padding: 0; }
  .btn-icon.btn-sm { width: 32px; }
  .btn svg { width: 20px; height: 20px; flex-shrink: 0; }
  .btn-sm svg { width: 16px; height: 16px; }
  .btn-danger { background: var(--hm-error); color: var(--hm-white); }
  .btn-danger:hover { background: #A81422; color: var(--hm-white); }
  .btn[disabled], .btn.is-disabled { background: var(--hm-surface); color: var(--hm-ink-3); border-color: transparent; cursor: not-allowed; }
  .btn-sm { height: 32px; padding: 0 16px; font-size: 14px; }

  .field { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
  .field label { font-family: var(--hm-font-display); font-weight: 600; font-size: 14px; }
  .field .help { font-size: 13px; color: var(--hm-ink-2); }
  .input {
    height: var(--hm-control-h); width: 100%; padding: 0 16px; border-radius: var(--hm-radius-md);
    border: 1.5px solid var(--hm-border-strong); background: var(--hm-white); color: var(--hm-ink);
    font-family: var(--hm-font-body); font-size: 15px;
  }
  .input::placeholder { color: var(--hm-ink-3); }
  .input:focus { outline: 3px solid var(--hm-focus); outline-offset: 1px; border-color: var(--hm-action); }
  .input.is-error { border-color: var(--hm-error); }
  .field .error { font-size: 13px; color: var(--hm-error); font-weight: 500; }
  textarea.input { height: auto; min-height: 96px; padding: 8px 16px; resize: vertical; }

  .tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--hm-radius-pill); font-family: var(--hm-font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.2px; }
  .tag-purple  { background: #E7E2FE; color: #6642F7; }
  .tag-pink    { background: #FDE3EE; color: #CC1167; }
  .tag-blue    { background: #E0F0FF; color: #006FBD; }
  .tag-green   { background: #E5FAF1; color: #188051; }
  .tag-yellow  { background: #FFF6E0; color: #926900; }
  .tag-teal    { background: #E3FCF9; color: #0E7F72; }
  .tag-neutral { background: var(--hm-surface); color: var(--hm-ink-2); }
  .tag-outline { background: var(--hm-white); border: 1.5px solid var(--hm-border-strong); color: var(--hm-ink-2); }

  .aud { display: inline-flex; align-items: baseline; font-family: var(--hm-font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.8px; line-height: 1; }
  .aud span:last-child { margin-left: 0; }

  .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 12px; }
  .card { background: var(--hm-white); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
  .card.is-raised { box-shadow: var(--hm-shadow-card); border-color: transparent; }
  .card .who { display: flex; align-items: center; gap: 8px; }
  .avatar { width: 40px; height: 40px; border-radius: var(--hm-radius-pill); display: flex; align-items: center; justify-content: center; font-family: var(--hm-font-display); font-weight: 800; font-size: 15px; color: var(--hm-ink); }
  .card h4 { font-size: 17px; font-weight: 700; }
  .card .sub { font-size: 13px; color: var(--hm-ink-2); }
  .card .price { font-family: var(--hm-font-display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
  .card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }

  .alerts { display: grid; gap: 8px; max-width: 640px; margin-top: 12px; }
  .alert { display: flex; gap: 8px; padding: 16px; border-radius: var(--hm-radius-md); font-size: 14px; align-items: flex-start; }
  .alert b { font-family: var(--hm-font-display); font-weight: 700; }
  .alert-success { background: var(--hm-success-tint); color: var(--hm-success); }
  .alert-warning { background: var(--hm-warning-tint); color: var(--hm-warning); }
  .alert-error   { background: var(--hm-error-tint);   color: var(--hm-error); }
  .alert-info    { background: var(--hm-info-tint);    color: var(--hm-info); }
  .alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
  .alert-line { background: var(--hm-white); color: var(--hm-ink); border: 1.5px solid; }
  .alert-line b, .alert-line svg { color: inherit; }
  .alert-line-success { border-color: var(--hm-success); } .alert-line-success b, .alert-line-success svg { color: var(--hm-success); }
  .alert-line-info    { border-color: var(--hm-info); }    .alert-line-info b,    .alert-line-info svg    { color: var(--hm-info); }
  .alert-line-warning { border-color: var(--hm-warning); } .alert-line-warning b, .alert-line-warning svg { color: var(--hm-warning); }
  .alert-line-error   { border-color: var(--hm-error); }   .alert-line-error b,   .alert-line-error svg   { color: var(--hm-error); }







  /* ---- animated wordmark ---- */
  .anim { line-height: 1; }
  .anim .slot { position: relative; display: inline-block; overflow: hidden; line-height: 1; padding: 0.12em 0 0.26em; margin: -0.12em 0 -0.26em; vertical-align: baseline; }
  .anim .ghost { visibility: hidden; }
  .anim .w { position: absolute; left: 0; top: 0.12em; line-height: 1; white-space: nowrap; opacity: 0; transform: translateY(0.6em); animation: hm-rotate 8s cubic-bezier(.2,.7,.2,1) infinite; }
  .anim .w1 { color: var(--hm-action);    animation-delay: 0s; }
  .anim .w2 { color: var(--hm-designer);  animation-delay: 2s; }
  .anim .w3 { color: var(--hm-developer); animation-delay: 4s; }
  .anim .w4 { color: var(--hm-client);    animation-delay: 6s; }
  .anim-dark .w1 { color: #8A6EF9; } .anim-dark .w2 { color: #F04E98; } .anim-dark .w3 { color: #1FA3FF; } .anim-dark .w4 { color: #22B573; }
  @keyframes hm-rotate {
    0%     { opacity: 0; transform: translateY(0.6em); }
    4.4%   { opacity: 1; transform: translateY(0); }      /* 350ms in */
    25%    { opacity: 1; transform: translateY(0); }      /* hold to 2s */
    29.4%  { opacity: 0; transform: translateY(-0.6em); } /* 350ms out */
    100%   { opacity: 0; transform: translateY(-0.6em); }
  }
  @media (prefers-reduced-motion: reduce) {
    .anim .w { animation: none; }
    .anim .w1 { opacity: 1; transform: none; }
  }

  /* ---- toggle ---- */
  .toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--hm-font-display); font-weight: 600; font-size: 14px; color: var(--hm-ink); }
  .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .toggle .track { position: relative; width: 40px; height: 24px; border-radius: var(--hm-radius-pill); background: var(--hm-border-strong); flex-shrink: 0; }
  .toggle .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--hm-white); box-shadow: 0 1px 2px rgba(30,27,46,.25); }
  .toggle input:checked + .track { background: var(--hm-action); }
  .toggle input:checked + .track::after { left: 18px; }
  .toggle input:focus-visible + .track { outline: 3px solid var(--hm-focus); outline-offset: 2px; }
  .toggle.is-disabled { cursor: not-allowed; color: var(--hm-ink-3); }
  .toggle.is-disabled .track { background: var(--hm-border); }
  .toggle.is-disabled input:checked + .track { background: var(--hm-action-tint); }
  .toggle .hint { font-family: var(--hm-font-body); font-weight: 400; color: var(--hm-ink-2); }

  /* ---- button group (segmented) ---- */
  .seg { display: inline-flex; border: 2px solid var(--hm-action); border-radius: var(--hm-radius-md); overflow: hidden; }
  .seg button { height: 36px; padding: 0 16px; border: 0; background: var(--hm-white); color: var(--hm-action); font-family: var(--hm-font-display); font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-right: 2px solid var(--hm-action); }
  .seg button:last-child { border-right: 0; }
  .seg button:hover { background: var(--hm-action-tint); }
  .seg button[aria-pressed="true"] { background: var(--hm-action); color: var(--hm-white); }
  .seg button svg { width: 16px; height: 16px; }
  .seg button:focus-visible { outline: 3px solid var(--hm-focus); outline-offset: -3px; }
  .seg.seg-icon button { width: 36px; padding: 0; justify-content: center; }
  .seg.seg-quiet { border-color: var(--hm-border); }
  .seg.seg-quiet button { color: var(--hm-ink-2); border-right-color: var(--hm-border); }
  .seg.seg-quiet button[aria-pressed="true"] { background: var(--hm-action-tint); color: var(--hm-action-on-tint); }
  .seg.seg-quiet button:hover { background: var(--hm-surface); }
  .seg.seg-quiet button[aria-pressed="true"]:hover { background: var(--hm-action-tint); }

  /* ---- tooltip ---- */
  .tip { position: relative; display: inline-flex; }
  .tip .bubble { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--hm-ink); color: var(--hm-white); font-family: var(--hm-font-body); font-size: 13px; font-weight: 500; line-height: 1.4; padding: 8px 8px; border-radius: var(--hm-radius-sm); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 120ms ease; z-index: 2; }
  .tip .bubble::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--hm-ink); }
  .tip:hover .bubble, .tip:focus-within .bubble, .tip.is-open .bubble { opacity: 1; }
  .tip.tip-bottom .bubble { bottom: auto; top: calc(100% + 8px); }
  .tip.tip-bottom .bubble::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--hm-ink); }
  .tip.tip-right .bubble { left: calc(100% + 8px); bottom: auto; top: 50%; transform: translateY(-50%); }
  .tip.tip-right .bubble::after { top: 50%; left: auto; right: 100%; transform: translateY(-50%); border-top-color: transparent; border-right-color: var(--hm-ink); }
  .tip .bubble.wide { white-space: normal; width: 220px; text-align: left; }

  /* ---- dropdowns ---- */
  .dd { position: relative; width: 320px; max-width: 100%; }
  .dd-field { min-height: var(--hm-control-h); width: 100%; padding: 0 40px 0 16px; border-radius: var(--hm-radius-md); border: 1.5px solid var(--hm-border-strong); background: var(--hm-white); color: var(--hm-ink); font-family: var(--hm-font-body); font-size: 15px; text-align: left; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; position: relative; }
  .dd-field.is-placeholder { color: var(--hm-ink-3); }
  .dd-field::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--hm-ink-2); border-bottom: 2px solid var(--hm-ink-2); transform: translateY(-70%) rotate(45deg); }
  .dd.is-open .dd-field { border-color: var(--hm-action); outline: 3px solid var(--hm-focus); outline-offset: 1px; }
  .dd.is-open .dd-field::after { transform: translateY(-20%) rotate(225deg); }
  .dd-field .chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px 0 8px; margin: 6px 0; border-radius: var(--hm-radius-pill); background: var(--hm-action-tint); color: var(--hm-action-on-tint); font-family: var(--hm-font-display); font-weight: 700; font-size: 12px; }
  .dd-field .chip b { display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; font-size: 12px; line-height: 1; }
  .dd-field .chip b:hover { background: rgba(102,66,247,.15); }
  .dd-menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--hm-white); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-md); box-shadow: var(--hm-shadow-2); padding: 8px; z-index: 3; display: none; }
  .dd.is-open .dd-menu { display: block; }
  .dd-menu.is-static { display: block; position: static; margin-top: 8px; }
  .dd-search { position: relative; margin-bottom: 8px; }
  .dd-search input { height: 32px; width: 100%; padding: 0 8px 0 32px; border-radius: var(--hm-radius-sm); border: 1.5px solid var(--hm-border-strong); font-family: var(--hm-font-body); font-size: 14px; color: var(--hm-ink); }
  .dd-search input:focus { outline: 3px solid var(--hm-focus); outline-offset: 1px; border-color: var(--hm-action); }
  .dd-search svg { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--hm-ink-2); }
  .dd-item { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px; border-radius: var(--hm-radius-sm); font-family: var(--hm-font-body); font-size: 15px; color: var(--hm-ink); cursor: pointer; }
  .dd-item:hover, .dd-item.is-active { background: var(--hm-surface); }
  .dd-item[aria-selected="true"] { background: var(--hm-action-tint); color: var(--hm-action-on-tint); font-weight: 600; }
  .dd-item .check { margin-left: auto; width: 16px; height: 16px; color: var(--hm-action-on-tint); visibility: hidden; }
  .dd-item[aria-selected="true"] .check { visibility: visible; }
  .dd-item .box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--hm-border-strong); background: var(--hm-white); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .dd-item .box svg { width: 12px; height: 12px; color: var(--hm-white); visibility: hidden; }
  .dd-item[aria-checked="true"] .box { background: var(--hm-action); border-color: var(--hm-action); }
  .dd-item[aria-checked="true"] .box svg { visibility: visible; }
  .dd-item .meta { margin-left: auto; font-size: 13px; color: var(--hm-ink-2); }
  .dd-group { font-family: var(--hm-font-display); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--hm-ink-3); padding: 8px 8px 4px; }
  .dd-empty { padding: 16px 8px; font-size: 14px; color: var(--hm-ink-2); }
  .dd-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--hm-border); margin-top: 8px; padding-top: 8px; }

  /* ---- shadows ---- */

  /* ---- inputs: adornments ---- */
  .input-wrap { position: relative; display: flex; align-items: center; }
  .input-wrap .input { padding-left: 40px; }
  .input-wrap.has-right .input { padding-right: 40px; }
  .input-wrap .lead { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--hm-ink-2); display: inline-flex; align-items: center; font-family: var(--hm-font-display); font-weight: 600; font-size: 15px; pointer-events: none; }
  .input-wrap .lead svg { width: 18px; height: 18px; }
  .input-wrap .trail { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: inline-flex; gap: 2px; }
  .input-wrap .trail button { height: 24px; min-width: 24px; padding: 0 4px; border: 0; background: transparent; color: var(--hm-ink-2); border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-family: var(--hm-font-display); font-weight: 700; font-size: 12px; }
  .input-wrap .trail button:hover { background: var(--hm-surface); color: var(--hm-ink); }
  .input-wrap .trail svg { width: 18px; height: 18px; }
  .input.num { font-variant-numeric: tabular-nums; }
  .step { display: flex; flex-direction: column; }
  .step button { height: 12px; line-height: 0; }
  .step svg { width: 12px; height: 12px; }
  .char { align-self: flex-end; font-size: 12px; color: var(--hm-ink-3); font-variant-numeric: tabular-nums; }

  /* ---- checkbox / radio ---- */
  .check, .radio { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-family: var(--hm-font-body); font-size: 15px; color: var(--hm-ink); }
  .check input, .radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .check .box, .radio .dot { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; border: 1.5px solid var(--hm-border-strong); background: var(--hm-white); display: inline-flex; align-items: center; justify-content: center; }
  .check .box { border-radius: 4px; }
  .radio .dot { border-radius: 50%; }
  .check .box svg { width: 13px; height: 13px; color: var(--hm-white); visibility: hidden; }
  .check input:checked + .box { background: var(--hm-action); border-color: var(--hm-action); }
  .check input:checked + .box svg { visibility: visible; }
  .check.is-mixed .box { background: var(--hm-action); border-color: var(--hm-action); }
  .check.is-mixed .box svg { visibility: visible; }
  .radio .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--hm-action); transform: scale(0); }
  .radio input:checked + .dot { border-color: var(--hm-action); }
  .radio input:checked + .dot::after { transform: scale(1); }
  .check input:focus-visible + .box, .radio input:focus-visible + .dot { outline: 3px solid var(--hm-focus); outline-offset: 2px; }
  .check.is-disabled, .radio.is-disabled { color: var(--hm-ink-3); cursor: not-allowed; }
  .check.is-disabled .box, .radio.is-disabled .dot { border-color: var(--hm-border); background: var(--hm-surface); }
  .check.is-disabled input:checked + .box { background: var(--hm-action-tint); border-color: var(--hm-action-tint); }
  .check.is-disabled input:checked + .box svg { color: var(--hm-action-on-tint); }
  .check .sub, .radio .sub { display: block; font-size: 13px; color: var(--hm-ink-2); }
  .choice-list { display: flex; flex-direction: column; gap: 8px; }
  .radio-card { display: flex; gap: 8px; padding: 16px; border: 1.5px solid var(--hm-border-strong); border-radius: var(--hm-radius-md); cursor: pointer; align-items: flex-start; max-width: 320px; }
  .radio-card.is-on { border-color: var(--hm-action); background: var(--hm-action-tint); }
  .radio-card .radio { pointer-events: none; }

  /* ---- date picker ---- */
  .cal { width: 296px; background: var(--hm-white); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-md); box-shadow: var(--hm-shadow-2); padding: 16px; }
  .cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-family: var(--hm-font-display); font-weight: 700; font-size: 15px; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; text-align: center; font-size: 14px; }
  .cal-grid .dow { font-family: var(--hm-font-display); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--hm-ink-3); height: 24px; display: flex; align-items: center; justify-content: center; }
  .cal-grid .d { height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; color: var(--hm-ink); font-variant-numeric: tabular-nums; }
  .cal-grid .d:hover { background: var(--hm-surface); }
  .cal-grid .d.out { color: var(--hm-ink-3); }
  .cal-grid .d.today { box-shadow: inset 0 0 0 1.5px var(--hm-action); font-weight: 600; }
  .cal-grid .d.sel { background: var(--hm-action); color: var(--hm-white); font-weight: 700; }
  .cal-grid .d.range { background: var(--hm-action-tint); border-radius: 0; }
  .cal-grid .d.range-end { background: var(--hm-action); color: var(--hm-white); border-radius: 0 50% 50% 0; }
  .cal-grid .d.range-start { border-radius: 50% 0 0 50%; }
  .cal-grid .d.dis { color: var(--hm-border-strong); cursor: not-allowed; }

  /* ---- file upload ---- */
  .drop { border: 2px dashed var(--hm-border-strong); border-radius: var(--hm-radius-lg); padding: 32px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 420px; }
  .drop.is-over { border-color: var(--hm-action); background: var(--hm-action-tint); }
  .drop svg { width: 32px; height: 32px; color: var(--hm-action); }
  .drop b { font-family: var(--hm-font-display); font-size: 15px; }
  .drop .note { font-size: 13px; }
  .file-row { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border: 1px solid var(--hm-border); border-radius: var(--hm-radius-md); max-width: 420px; font-size: 14px; }
  .file-row .name { font-weight: 600; flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .file-row .size { color: var(--hm-ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
  .file-row.is-error { border-color: var(--hm-error); }
  .file-row.is-error .size { color: var(--hm-error); }
  .bar { height: 8px; background: var(--hm-action-tint); border-radius: 999px; overflow: hidden; }
  .bar > i { display: block; height: 100%; background: var(--hm-action); border-radius: 999px; }
  .file-row .bar { width: 96px; }

  /* ---- tabs ---- */
  .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--hm-border); }
  .tabs button { height: 40px; padding: 0 16px; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: var(--hm-font-display); font-weight: 600; font-size: 15px; color: var(--hm-ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
  .tabs button:hover { color: var(--hm-ink); }
  .tabs button[aria-selected="true"] { color: var(--hm-action); border-bottom-color: var(--hm-action); }
  .tabs button:focus-visible { outline: 3px solid var(--hm-focus); outline-offset: -3px; border-radius: 4px; }
  .tabs .count { font-family: var(--hm-font-display); font-size: 12px; font-weight: 700; background: var(--hm-surface); color: var(--hm-ink-2); border-radius: 999px; padding: 0 8px; height: 20px; display: inline-flex; align-items: center; }
  .tabs button[aria-selected="true"] .count { background: var(--hm-action-tint); color: var(--hm-action-on-tint); }
  .tabs.pills { border: 0; gap: 8px; }
  .tabs.pills button { height: 32px; border: 0; border-radius: 999px; margin: 0; padding: 0 16px; font-size: 14px; }
  .tabs.pills button[aria-selected="true"] { background: var(--hm-action-tint); color: var(--hm-action-on-tint); }
  .tabpanel { padding: 16px 0; font-size: 15px; color: var(--hm-ink-2); }

  /* ---- modals & drawers ---- */
  .modal { background: var(--hm-white); border-radius: var(--hm-radius-lg); box-shadow: var(--hm-shadow-3); width: 100%; max-width: 420px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
  .modal h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
  .modal p { margin: 0; font-size: 15px; color: var(--hm-ink-2); }
  .modal .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
  .modal .actions { display: flex; justify-content: flex-end; gap: 8px; }
  .drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 320px; background: var(--hm-white); box-shadow: var(--hm-shadow-3); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
  .drawer .head { display: flex; align-items: center; justify-content: space-between; }
  .drawer h4 { font-size: 18px; }
  .drawer .actions { margin-top: auto; display: flex; gap: 8px; justify-content: flex-end; }

  /* ---- tables ---- */
  .tbl-wrap { overflow-x: auto; border: 1px solid var(--hm-border); border-radius: var(--hm-radius-lg); }
  table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
  .tbl th { text-align: left; font-family: var(--hm-font-display); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--hm-ink-2); padding: 12px 16px; background: var(--hm-surface); border-bottom: 1px solid var(--hm-border); white-space: nowrap; }
  .tbl th.sort { color: var(--hm-ink); }
  .tbl th.sort::after { content: " ↓"; }
  .tbl td { padding: 12px 16px; border-bottom: 1px solid var(--hm-border); vertical-align: middle; }
  .tbl tr:last-child td { border-bottom: 0; }
  .tbl tbody tr:hover td { background: var(--hm-surface); }
  .tbl tr.is-selected td { background: var(--hm-action-tint); }
  .tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
  .tbl .who { display: flex; align-items: center; gap: 8px; font-weight: 600; }
  .tbl .who .sub { display: block; font-weight: 400; font-size: 13px; color: var(--hm-ink-2); }
  .tbl td .btn { vertical-align: middle; }
  .list { border: 1px solid var(--hm-border); border-radius: var(--hm-radius-lg); overflow: hidden; max-width: 640px; }
  .list .li { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid var(--hm-border); }
  .list .li:last-child { border-bottom: 0; }
  .list .li:hover { background: var(--hm-surface); }
  .list .grow { flex-grow: 1; min-width: 0; }
  .list .grow b { display: block; font-family: var(--hm-font-display); }
  .list .grow span { font-size: 13px; color: var(--hm-ink-2); }

  /* ---- pagination & filters ---- */
  .pager { display: flex; align-items: center; gap: 4px; }
  .pager button { height: 32px; min-width: 32px; padding: 0 8px; border: 0; background: transparent; border-radius: var(--hm-radius-sm); font-family: var(--hm-font-display); font-weight: 600; font-size: 14px; color: var(--hm-ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
  .pager button:hover { background: var(--hm-surface); color: var(--hm-ink); }
  .pager button[aria-current="page"] { background: var(--hm-action-tint); color: var(--hm-action-on-tint); }
  .pager button[disabled] { color: var(--hm-ink-3); cursor: not-allowed; background: transparent; }
  .pager button svg { width: 16px; height: 16px; }
  .pager .gap { color: var(--hm-ink-3); padding: 0 4px; }
  .result-count { font-size: 14px; color: var(--hm-ink-2); font-variant-numeric: tabular-nums; }
  .result-count b { color: var(--hm-ink); }
  .fchip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--hm-action-tint); color: var(--hm-action-on-tint); font-family: var(--hm-font-display); font-weight: 700; font-size: 13px; }
  .fchip b { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .fchip b:hover { background: rgba(102,66,247,.15); }
  .fchip .k { font-weight: 500; color: var(--hm-ink-2); }
  .filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px; border: 1px solid var(--hm-border); border-radius: var(--hm-radius-lg); }
  .filter-bar .spacer { flex-grow: 1; }

  /* ---- avatars & profile ---- */
  .av { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--hm-font-display); font-weight: 700; color: var(--hm-action-on-tint); background: var(--hm-action-tint); position: relative; flex-shrink: 0; overflow: visible; }
  .av.xs { width: 24px; height: 24px; font-size: 10px; } .av.sm { width: 32px; height: 32px; font-size: 12px; } .av.md { width: 40px; height: 40px; font-size: 14px; } .av.lg { width: 56px; height: 56px; font-size: 20px; } .av.xl { width: 96px; height: 96px; font-size: 32px; }
  .av.photo { background: linear-gradient(135deg, #E7E2FE, #FDE3EE); color: transparent; }
  .av.photo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #C9C2D6 0 22%, transparent 23%), radial-gradient(ellipse at 50% 95%, #C9C2D6 0 42%, transparent 43%); }
  .av .st { position: absolute; right: 0; bottom: 0; width: 25%; height: 25%; min-width: 10px; min-height: 10px; border-radius: 50%; border: 2px solid var(--hm-white); box-sizing: content-box; }
  .st-on { background: #22B573; } .st-busy { background: #FFC531; } .st-off { background: var(--hm-border-strong); }
  .av-group { display: inline-flex; }
  .av-group .av { border: 2px solid var(--hm-white); margin-left: -8px; box-sizing: content-box; }
  .av-group .av:first-child { margin-left: 0; }
  .av-group .more { background: var(--hm-surface); color: var(--hm-ink-2); }
  .level { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px 0 4px; border-radius: 999px; font-family: var(--hm-font-display); font-weight: 700; font-size: 12px; }
  .level svg { width: 16px; height: 16px; }
  .level-new { background: var(--hm-surface); color: var(--hm-ink-2); }
  .level-pro { background: var(--hm-action-tint); color: var(--hm-action-on-tint); }
  .level-top { background: #FFF6E0; color: #926900; }
  .profile-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
  .profile-head h4 { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
  .profile-head .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--hm-ink-2); margin-top: 4px; }

  /* ---- loading ---- */
  .skel { background: linear-gradient(90deg, var(--hm-surface) 25%, #ECE9F3 37%, var(--hm-surface) 63%); background-size: 400% 100%; border-radius: 4px; animation: hm-skel 1.4s ease infinite; }
  @keyframes hm-skel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
  .skel.line { height: 12px; } .skel.title { height: 16px; width: 60%; } .skel.circle { border-radius: 50%; }
  .spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--hm-action-tint); border-top-color: var(--hm-action); animation: hm-spin .8s linear infinite; flex-shrink: 0; }
  .spin.lg { width: 32px; height: 32px; border-width: 3px; }
  .spin.on-primary { border-color: rgba(255,255,255,.35); border-top-color: #fff; width: 16px; height: 16px; border-width: 2px; }
  @keyframes hm-spin { to { transform: rotate(360deg); } }
  .btn.is-loading { pointer-events: none; }
  @media (prefers-reduced-motion: reduce) { .skel, .spin { animation: none; } }

  /* ---- empty / error / success states ---- */
  .state { border: 1px solid var(--hm-border); border-radius: var(--hm-radius-lg); padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 480px; }
  .state .art { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
  .state .art svg { width: 28px; height: 28px; }
  .state h4 { font-size: 18px; font-weight: 700; }
  .state p { margin: 0; font-size: 14px; color: var(--hm-ink-2); max-width: 36ch; }
  .state .actions { display: flex; gap: 8px; margin-top: 8px; }
  .state.compact { padding: 24px 16px; flex-direction: row; text-align: left; align-items: center; gap: 16px; }
  .state.compact .art { width: 40px; height: 40px; margin: 0; flex-shrink: 0; }
  .state.compact .art svg { width: 20px; height: 20px; }
  .state.page { border: 0; padding: 64px 24px; max-width: 560px; }
  .state.page h4 { font-size: 24px; letter-spacing: -0.5px; }
  .toast { display: inline-flex; align-items: center; gap: 8px; background: var(--hm-ink); color: var(--hm-white); padding: 12px 16px; border-radius: var(--hm-radius-md); box-shadow: var(--hm-shadow-2); font-size: 14px; }
  .toast svg { width: 18px; height: 18px; }
  .toast a { color: #C4B5FF; }
  .toast .x { margin-left: 8px; color: #B9B3C9; cursor: pointer; }

  /* ---- progress ---- */
  .stepper { display: flex; align-items: flex-start; gap: 0; max-width: 640px; }
  .stepper .s { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; font-size: 13px; color: var(--hm-ink-2); }
  .stepper .s .n { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--hm-font-display); font-weight: 700; font-size: 14px; border: 2px solid var(--hm-border-strong); background: var(--hm-white); color: var(--hm-ink-2); z-index: 1; }
  .stepper .s .n svg { width: 16px; height: 16px; }
  .stepper .s::before { content: ""; position: absolute; top: 16px; left: -50%; right: 50%; height: 2px; background: var(--hm-border); }
  .stepper .s:first-child::before { display: none; }
  .stepper .s.done .n { background: var(--hm-action); border-color: var(--hm-action); color: var(--hm-white); }
  .stepper .s.done::before, .stepper .s.now::before { background: var(--hm-action); }
  .stepper .s.now .n { border-color: var(--hm-action); color: var(--hm-action); box-shadow: 0 0 0 4px var(--hm-action-tint); }
  .stepper .s.now { color: var(--hm-ink); font-weight: 600; }
  .prog { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
  .prog .row2 { display: flex; justify-content: space-between; font-size: 14px; font-variant-numeric: tabular-nums; }
  .prog .row2 b { font-family: var(--hm-font-display); }
  .ring { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--hm-action) 0 var(--p), var(--hm-action-tint) var(--p) 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .ring i { width: 42px; height: 42px; border-radius: 50%; background: var(--hm-white); display: flex; align-items: center; justify-content: center; font-family: var(--hm-font-display); font-weight: 700; font-size: 13px; font-style: normal; font-variant-numeric: tabular-nums; }
  .status { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px 0 4px; border-radius: 999px; font-family: var(--hm-font-display); font-weight: 700; font-size: 12px; }
  .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-left: 4px; }
  .status-draft { background: var(--hm-surface); color: var(--hm-ink-2); }
  .status-open { background: #E0F0FF; color: #006FBD; }
  .status-review { background: #FFF6E0; color: #926900; }
  .status-active { background: var(--hm-action-tint); color: var(--hm-action-on-tint); }
  .status-done { background: #E5FAF1; color: #188051; }
  .status-declined { background: #FDE3E3; color: #CD1A2A; }

  /* ---- responsive ---- */

  /* ---- accessibility ---- */

  /* ---- icons ---- */

  @media (max-width: 800px) {
    .shell { grid-template-columns: 1fr; }
    .nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--hm-border); flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 16px; }
    .nav .logo { width: 100%; margin-bottom: 8px; }
    .nav .eyebrow { display: none; }
    .main { padding: 24px 16px 64px; }
    h1 { font-size: 34px; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .btn, .input, .card { transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease; }
  }
