#wh-view,.wh-root{display:grid;gap:14px;min-width:0;overflow-wrap:anywhere}
#wh-view>*,.wh-root>*{min-width:0}
.wh-root>div:empty{display:none}
.wh-tools,.wh-search,.wh-dialog header,.wh-pair,.wh-cards,.wh-actions,.wh-line,.wh-totals{display:flex;gap:10px;align-items:center}
.wh-tools{min-width:0;max-width:100%}
.wh-nav .wh-tools button{border:1px solid var(--line);background:white;width:44px;height:44px;flex:none}
.wh-nav .wh-tools button svg{display:block}
.wh-nav [role=tab]{min-height:44px}
.wh-error{color:#9a3926;margin:0;font-size:.9rem}
.wh-actions,.wh-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.wh-root .wh-actions button,.wh-root .wh-cards button,.wh-pair button{
  display:flex;align-items:center;justify-content:center;gap:9px;min-height:54px;border-radius:12px
}
.wh-root .wh-actions button:first-child{background:var(--dark);color:#fff;border-color:var(--dark)}
.wh-root .wh-actions button:first-child svg{color:#f1ce7b}
.wh-root .wh-actions button:not(:first-child) svg{color:#927239}
.wh-root .wh-actions svg{width:21px;height:21px;flex:none}
.wh-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.wh-root .wh-cards button{background:#fff5df;border-color:#ebd8ac;color:#7b4d0e;justify-content:start;font-size:.83rem}
.wh-root .wh-cards button+button{background:#edf6f3;border-color:#cce2de;color:#146253}
.wh-cards b{margin-left:auto;font-size:1.2rem}
.wh-box,.wh-root details.wh-box{margin:0;padding:18px;border-radius:15px;background:white;border:1px solid var(--line)}
.wh-box h2,.wh-dialog h2{margin:0;font-size:1.17rem}
.wh-root [data-log]{display:grid;gap:10px}
.wh-root small,.wh-dialog small,.wh-hint{color:var(--muted);font-size:.83rem}
.wh-search input{flex:1;min-width:0}
.wh-search select{width:auto;max-width:100%}
.wh-box summary,.wh-dialog summary{cursor:pointer}
.wh-root .wh-line,.wh-dialog .wh-line{
  width:100%;text-align:left;font-size:.94rem;line-height:1.45;
  overflow-wrap:anywhere;min-height:58px;padding:12px 2px;justify-content:space-between;
  background:transparent;border:0;border-top:1px solid var(--line);border-radius:0
}
.wh-root button.wh-line:hover,.wh-dialog button.wh-line:hover{background:#f7f4eb}
.wh-line span{flex:1;min-width:0}
.wh-line small{display:block;font-weight:490}
.wh-line b{max-width:34%;font-size:.9rem;text-align:right}
.wh-line .office-icon{width:16px;height:16px;color:#85692d;flex:none}
.wh-dialog{padding:0;width:min(480px,calc(100vw - 20px));max-width:100%;max-height:90dvh;border:0;border-radius:18px;overflow:auto;color:var(--ink);background:white;overscroll-behavior:contain}
.wh-dialog::backdrop{background:rgba(26,24,20,.55)}
.wh-dialog header{position:sticky;top:0;z-index:1;background:#faf8f2;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--line)}
.wh-dialog header h2{overflow-wrap:anywhere}
.wh-dialog header button{padding:8px;width:44px;flex:none;justify-content:center}
.wh-dialog form{display:grid;gap:14px;padding:18px}
.wh-dialog form>*{min-width:0;margin:0;overflow-wrap:anywhere}
.wh-dialog label{display:grid;gap:5px}
.wh-dialog input:not([type=checkbox]),.wh-dialog select,.wh-search input,.wh-search select,.wh-tools select{
  min-width:0;max-width:100%;min-height:44px;font-size:16px
}
.wh-dialog label.wh-tick{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:42px}
.wh-tick input{width:20px;flex:none}
.wh-dialog button,.wh-root button{min-height:44px}
.wh-dialog button[type=submit]{width:100%;justify-content:center}
.wh-dialog p{font-size:.88rem}
.wh-dialog progress{width:100%;height:10px;accent-color:#17715b}
.wh-totals>div{flex:1;min-width:0;padding:10px 12px;background:#edf6f3;color:#146253;font-size:.83rem;border-radius:10px}
.wh-totals>div+div{background:#f5f3ee;color:#5b554c}
.wh-totals b{display:block;font-size:1.1rem}
.wh-pair{flex-wrap:wrap}
.wh-pair button{flex:auto;min-height:44px}
@media(max-width:700px){
  .wh-nav:has(select) .wh-tools{width:100%;order:-1}
  .wh-nav:not(:has(select)){flex-wrap:nowrap;gap:5px}
  .wh-nav:not(:has(select)) [role=tablist]{flex:1;width:auto}
  .wh-nav:not(:has(select)) [role=tab] svg{display:none}
  .wh-root .wh-actions button{flex-direction:column;font-size:.8rem;gap:6px;padding:10px 5px;min-height:80px}
  .wh-root .wh-cards button{display:flex;flex-wrap:wrap;gap:3px 6px;padding:10px;text-align:left}
  .wh-root .wh-cards button span{width:100%}
  .wh-root .wh-cards button svg{display:none}
  .wh-cards b{margin-left:0}
  .wh-actions,.wh-cards{gap:7px}
  .wh-box,.wh-root details.wh-box{padding:14px}
  .wh-search{flex-direction:column;align-items:stretch}
  .wh-dialog form{padding:14px}
  .wh-dialog header{padding:10px 14px}
}
.wh-root .wh-config{display:flex;align-items:center;text-align:left;gap:8px;min-width:0;justify-content:flex-start}.wh-root .wh-config svg:last-child{margin-left:auto}
