/* HF5 ledger material. Decoration only: no geometry of financial tokens,
   no event gates, fixed-parent transforms or delayed navigation. */
body#wltProduct480 {
  --hf5-paper:#fffdf8; --hf5-field:#faf6ef; --hf5-ground:#eeebe3;
  --hf5-ink:#29292b; --hf5-muted:#67625d; --hf5-rule:#dcd3c6;
  --hf5-edge:#cbbda9; --hf5-wine:#81243e; --hf5-cover:#522033;
  --hf5-cover-light:#753349; --hf5-stitch:#c39d7a; --hf5-focus:#8c2943;
  --hf5-shadow:0 2px 0 #fffdf8,0 3px 0 #d4c8b7,0 8px 20px #3f2c1810;
  --hf5-press-shadow:inset 0 2px 3px #33102024,0 1px 0 #fff5;
}
body#wltProduct480.wlt-desk {
  --hf3-paper:var(--hf5-paper); --hf3-field:var(--hf5-field);
  --hf3-ground:var(--hf5-ground); --hf3-ink:var(--hf5-ink);
  --hf3-muted:var(--hf5-muted); --hf3-line:var(--hf5-rule);
  --desk-relief-edge:var(--hf5-edge);
}
/* Book cover: light catches the spine, stitching stays within the sidebar. */
body#wltProduct480.wlt-desk .desk-sidebar {
  position:relative; isolation:isolate;
  background:linear-gradient(90deg,#321321 0,#4b1a2c 7px,#9b6073 8px,#582337 10px,#713047 18px,#542034 24px,#60253a 82%,#411629 100%)!important;
  border-right:1px solid #351020!important;
  box-shadow:inset -4px 0 4px #20081750,7px 0 0 #cfc2b01f,10px 0 24px #30131c14!important;
}
body#wltProduct480.wlt-desk .desk-sidebar::before {
  content:""; position:absolute; inset:18px auto 18px 10px; width:3px;
  border-left:1px dashed #d4a99170; border-right:1px solid #200b1638;
  pointer-events:none;
}
body#wltProduct480.wlt-desk .desk-side-brand {
  border-bottom:1px solid #cda4ad38; margin-bottom:10px;
  background:linear-gradient(180deg,#ffffff07,transparent);
}
body#wltProduct480.wlt-desk .desk-side-brand b {
  text-shadow:0 1px 0 #bf7a8926,0 2px 2px #230913!important;
}
body#wltProduct480.wlt-desk .desk-side-search {
  background:linear-gradient(180deg,#3e1627,#552538)!important;
  border-color:#aa788a!important; border-radius:6px!important;
  box-shadow:inset 0 1px 3px #26091870,0 1px 0 #cb919b32!important;
}
body#wltProduct480.wlt-desk .desk-nav-group { letter-spacing:.09em; }
body#wltProduct480.wlt-desk .desk-nav .nav-item {
  border-radius:5px!important; border:1px solid transparent!important;
  transition:background-color 90ms,color 90ms,box-shadow 90ms,border-color 90ms!important;
}
/* Funds' older page palette must not paint cover navigation with page ink. */
html body#wltProduct480.wlt-desk.wlt-app-active .desk-sidebar.sidebar .desk-nav .nav-item {
  color:#f1e4e7!important;
}
html body#wltProduct480.wlt-desk.wlt-app-active .desk-sidebar.sidebar .desk-nav .nav-item:disabled,
html body#wltProduct480.wlt-desk.wlt-app-active .desk-sidebar.sidebar .desk-nav .nav-item[aria-disabled=true] {
  color:#dbbdc8!important; opacity:1!important; background:transparent!important;
  box-shadow:none!important; border-color:transparent!important;
}
body#wltProduct480.wlt-desk .desk-nav .nav-item:hover {
  background:linear-gradient(90deg,#ffffff13,#ffffff07)!important;
  border-color:#ffffff14!important; box-shadow:inset 0 1px 0 #ffffff0c!important;
}
html body#wltProduct480.wlt-desk.wlt-app-active .desk-sidebar.sidebar .desk-nav .nav-item.active {
  color:#64253a!important; border-color:#e7d6c0!important;
  background:linear-gradient(180deg,#fffdf5,#f3e8d8)!important;
  box-shadow:inset 4px 0 0 #a35367,inset 0 1px 0 #ffffff,0 2px 0 #2f112277,0 5px 9px #220f2430!important;
}
body#wltProduct480.wlt-desk .desk-nav .nav-item.active::after {
  content:""; position:absolute; right:12px; top:-2px; width:9px; height:13px;
  background:#9b465c; clip-path:polygon(0 0,100% 0,100% 100%,50% 75%,0 100%);
  box-shadow:inset 1px 0 0 #ffffff28; pointer-events:none;
}
body#wltProduct480.wlt-desk .desk-user {
  border-radius:6px!important; background:linear-gradient(180deg,#401425,#572237)!important;
  border-color:#a06b7f!important; box-shadow:inset 0 1px 0 #e0acb518,0 2px 4px #21071332!important;
}
/* Warm sheet and cut paper edges. Surfaces remain opaque beneath text. */
body#wltProduct480.wlt-desk .main-scroll {
  background:linear-gradient(90deg,#b19e8920,transparent 22px),repeating-linear-gradient(0deg,transparent 0,transparent 31px,#86735c05 32px),var(--hf5-ground)!important;
}
body#wltProduct480.wlt-desk .topbar {
  background:linear-gradient(180deg,#fffefb,var(--hf5-paper))!important;
  border-bottom-color:var(--hf5-edge)!important;
  box-shadow:0 2px 0 #fffaf4,0 3px 0 #d6c9b74d,0 7px 14px #402b1609!important;
}
body#wltProduct480.wlt-desk :is(.desk-top-book,.desk-top-search) {
  background:linear-gradient(180deg,var(--hf5-paper),var(--hf5-field))!important;
  border-color:var(--hf5-edge)!important; border-radius:6px!important;
  box-shadow:inset 0 1px 0 #fff,0 2px 0 #d8cbb863!important;
}
body#wltProduct480.wlt-desk :is(.page-head,.desk-page-title,.fhw-header,.ia-header) {
  background-image:linear-gradient(var(--hf5-rule),var(--hf5-rule)),linear-gradient(var(--hf5-rule),var(--hf5-rule));
  background-size:100% 1px,100% 1px; background-position:left bottom,left calc(100% - 4px); background-repeat:no-repeat;
  padding-bottom:14px;
}
body#wltProduct480.wlt-desk :is(.section-card,.desk-panel,.desk-kpi,.desk-workflow-card,.fhw-card,.fhw-debt-card,.query-summary-card,.query-filters,.query-results,.ia-card,.funds-card,.business-ledger-card) {
  background:linear-gradient(140deg,#ffffff88,transparent 65%),var(--hf5-paper)!important;
  border-color:var(--hf5-rule)!important; border-radius:6px!important;
  box-shadow:var(--hf5-shadow)!important;
}
body#wltProduct480.wlt-desk :is(.desk-panel-head,.card-head,.query-results-head,.query-currency-title,.fhw-heading) {
  background:linear-gradient(180deg,var(--hf5-paper),var(--hf5-field))!important;
  border-bottom-color:var(--hf5-rule)!important;
}
body#wltProduct480.wlt-desk .desk-welcome {
  background:linear-gradient(90deg,#a34a6310 0,#a34a6310 5px,transparent 5px),linear-gradient(135deg,#fffefb,#fbf6ed)!important;
  border-color:var(--hf5-edge)!important; border-radius:8px!important;
  box-shadow:0 2px 0 #fffdf8,0 4px 0 #d9cdbb,0 10px 23px #3b261711!important;
}
/* Lists and tables share ledger ruling, preserving their scroll containers. */
body#wltProduct480.wlt-desk :is(.v477-contact-row,.v430-row,.desk-task,.fhw-reminder,.funds-line,.ia-list-row) {
  border-color:var(--hf5-rule)!important;
}
body#wltProduct480.wlt-desk .v477-contact-row {
  background:var(--hf5-paper)!important; border-radius:5px!important;
  box-shadow:inset 3px 0 0 #b79a742b,0 1px 0 #fffaf4!important;
}
body#wltProduct480.wlt-desk :is(.v477-contact-row,.desk-task,.v430-row):hover {
  background-color:var(--hf5-field)!important;
}
body#wltProduct480.wlt-desk :is(.query-table,.v430-table,.v487-table,.desk-recent-table,.fhw table,.ia-table) th {
  background:var(--hf5-field)!important;
  border-bottom:2px solid var(--hf5-edge)!important;
}
body#wltProduct480.wlt-desk :is(.query-table,.v430-table,.v487-table,.desk-recent-table,.fhw table,.ia-table) :is(th,td):not(:last-child) {
  border-right:1px solid #b9a78c22;
}
body#wltProduct480.wlt-desk :is(.query-table,.v430-table,.v487-table,.desk-recent-table,.fhw table,.ia-table) tbody tr:hover {
  background:var(--hf5-field)!important;
}
body#wltProduct480.wlt-desk :is(.empty,.empty-state,.query-empty,.ia-empty) {
  background:linear-gradient(180deg,var(--hf5-paper),var(--hf5-field))!important;
  border-color:var(--hf5-rule)!important; border-radius:6px!important;
}
/* Main / secondary / auxiliary controls. Sizes and datasets are inherited. */
body#wltProduct480.wlt-desk :is(.gold-btn,.outline-btn,.danger-btn,.ia-button) {
  border-radius:5px!important;
  transition:background-color 90ms,border-color 90ms,color 90ms,box-shadow 90ms,transform 90ms!important;
}
body#wltProduct480.wlt-desk .gold-btn {
  background:linear-gradient(180deg,#a8415a,#81243e)!important; color:#fffaf5!important;
  border-color:#6d1e35!important;
  box-shadow:inset 0 1px 0 #ffdce74d,0 3px 0 #54172c,0 6px 12px #5c203226!important;
}
html[data-appearance] body#wltProduct480.wlt-desk.finance-hub-active .gold-btn {
  background:linear-gradient(180deg,#a8415a,#81243e)!important;
  color:#fffaf5!important; border-color:#6d1e35!important;
}
html[data-appearance] body#wltProduct480.wlt-desk.finance-hub-active .gold-btn:not(:disabled):not([aria-disabled=true]):hover {
  background:linear-gradient(180deg,#b44a63,#8d2945)!important;
}
body#wltProduct480.wlt-desk .gold-btn:not(:disabled):not([aria-disabled=true]):hover {
  background:linear-gradient(180deg,#b44a63,#8d2945)!important;
  box-shadow:inset 0 1px 0 #ffe5ed63,0 3px 0 #54172c,0 7px 14px #5c203230!important;
}
body#wltProduct480.wlt-desk .outline-btn {
  background:linear-gradient(180deg,var(--hf5-paper),var(--hf5-field))!important;
  border-color:var(--hf5-edge)!important; color:var(--hf5-ink)!important;
  box-shadow:inset 0 1px 0 #fff,0 2px 0 #d8cbb8a8,0 3px 5px #3f2c1608!important;
}
body#wltProduct480.wlt-desk .outline-btn:not(:disabled):not([aria-disabled=true]):hover {
  border-color:#ad8a8c!important; background:var(--hf5-paper)!important;
  box-shadow:inset 0 1px 0 #fff,0 2px 0 #c9b6a3,0 3px 6px #3f2c160e!important;
}
body#wltProduct480.wlt-desk :is(.gold-btn,.outline-btn,.danger-btn,.ia-button):not(:disabled):not([aria-disabled=true]):active {
  transform:translateY(1px); box-shadow:var(--hf5-press-shadow)!important;
}
body#wltProduct480.wlt-desk :is(.text-link,.desk-inline-button,.fhw-text) {
  box-shadow:none!important; border-radius:3px!important;
  text-underline-offset:4px;
}
body#wltProduct480.wlt-desk :is(.text-link,.desk-inline-button,.fhw-text):not(:disabled):hover { text-decoration:underline; }
body#wltProduct480.wlt-desk :is(.gold-btn,.outline-btn,.danger-btn,.ia-button):disabled {
  opacity:1!important; filter:none!important; color:#6a6268!important;
  background:#ece7e6!important; border-color:#d3c9cc!important;
  box-shadow:inset 0 1px 2px #42202e0c!important; cursor:not-allowed;
}
body#wltProduct480.wlt-desk :is(.query-segments,.fhw-pills,.v430-tabs,.v477-contact-tabs) button.active,
body#wltProduct480.wlt-desk .query-segments button[aria-selected=true] {
  background:var(--hf5-wine)!important; color:#fff7f0!important;
  border-color:#6b2037!important; box-shadow:inset 0 1px 0 #ffffff28!important;
}
body#wltProduct480.wlt-desk :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),textarea,select) {
  background:var(--hf5-paper)!important; border-color:var(--hf5-edge)!important;
  border-radius:5px!important; box-shadow:inset 0 2px 3px #62492408!important;
}
body#wltProduct480.wlt-desk :is(input,textarea,select):focus {
  border-color:var(--hf5-focus)!important; box-shadow:0 0 0 3px #9c3d5419!important;
}
body#wltProduct480.wlt-desk :is(button,a,input,select,textarea,summary):focus-visible {
  outline:2px solid var(--hf5-focus)!important; outline-offset:3px!important;
}
body#wltProduct480.wlt-desk :is(input,textarea,select)[aria-invalid=true] {
  border-color:#a5233e!important; box-shadow:0 0 0 2px #a5233e19!important;
}
body#wltProduct480.wlt-desk :is(input,textarea,select):disabled {
  background:var(--hf5-field)!important; color:var(--hf5-muted)!important;
}
/* The modal stays fixed-header / scrolling-body / visible-footer. */
body#wltProduct480.wlt-desk .modal-card {
  border-radius:7px!important; border-color:var(--hf5-edge)!important;
  background:var(--hf5-paper)!important;
  box-shadow:0 2px 0 #fffdf8,0 5px 0 #cfc0a9,0 24px 65px #21151f45!important;
  animation:hf5-sheet-open 120ms ease-out both;
}
body#wltProduct480.wlt-desk .modal-head {
  background:linear-gradient(90deg,#983f59 0,#983f59 4px,transparent 4px),linear-gradient(var(--hf5-rule),var(--hf5-rule)),linear-gradient(180deg,var(--hf5-paper),var(--hf5-field))!important;
  background-size:auto,calc(100% - 40px) 1px,auto!important;
  background-position:0 0,20px calc(100% - 4px),0 0!important;
  background-repeat:no-repeat!important;
  border-bottom-color:var(--hf5-edge)!important;
}
body#wltProduct480.wlt-desk .modal-head h2 { color:var(--hf5-ink)!important; letter-spacing:.015em; }
body#wltProduct480.wlt-desk :is(.query-table,.v430-table,.v487-table,.desk-recent-table,.fhw table,.ia-table) th {
  box-shadow:inset 0 1px 0 #ffffff66,inset 0 -4px 0 #bba58b0b;
}
body#wltProduct480.wlt-desk .modal-body form>.v430-actions-row:last-child {
  background:var(--hf5-paper)!important; border-top-color:var(--hf5-edge)!important;
  box-shadow:0 -3px 0 #fffdf866,0 -5px 14px #4c34100a;
}
body#wltProduct480.wlt-desk :is(.page-head h1,.desk-page-title h1,.fhw-header h1,.ia-header h1) { animation:hf5-sheet-open 110ms ease-out both; }
@keyframes hf5-sheet-open { from { opacity:.92; } to { opacity:1; } }
/* Night ledger: the cover remains wine, while the page is warm charcoal. */
body#wltProduct480.wlt-dark-product {
  --hf5-paper:#27262b; --hf5-field:#302d32; --hf5-ground:#1d1c21;
  --hf5-ink:#f4ece4; --hf5-muted:#c6bdba; --hf5-rule:#52464b;
  --hf5-edge:#79646c; --hf5-wine:#91415a; --hf5-focus:#ffc0d0;
  --hf5-shadow:0 2px 0 #41363d,0 3px 0 #161016,0 8px 20px #00000025;
}
body#wltProduct480.wlt-desk.wlt-dark-product :is(.topbar,.desk-welcome) { background:linear-gradient(135deg,#302a2f,var(--hf5-paper))!important; }
body#wltProduct480.wlt-desk.wlt-dark-product :is(.section-card,.desk-panel,.desk-kpi,.desk-workflow-card,.fhw-card,.fhw-debt-card,.query-summary-card,.query-filters,.query-results,.ia-card,.funds-card) { background:linear-gradient(140deg,#ffffff04,transparent 65%),var(--hf5-paper)!important; }
body#wltProduct480.wlt-desk.wlt-dark-product .outline-btn { box-shadow:inset 0 1px 0 #ffffff14,0 2px 0 #191319!important; }
body#wltProduct480.wlt-desk.wlt-dark-product .gold-btn { background:linear-gradient(180deg,#a04865,#7e2945)!important; border-color:#bd7187!important; }
html[data-appearance] body#wltProduct480.wlt-desk.wlt-dark-product.finance-hub-active .gold-btn { background:linear-gradient(180deg,#a04865,#7e2945)!important; border-color:#bd7187!important; }
body#wltProduct480.wlt-desk.wlt-dark-product :is(.gold-btn,.outline-btn,.danger-btn,.ia-button):disabled { background:#393239!important; color:#c2b7bf!important; border-color:#66545f!important; }
html[data-appearance] body#wltProduct480.wlt-desk.finance-hub-active .gold-btn:disabled { background:#ece7e6!important; color:#6a6268!important; border-color:#d3c9cc!important; }
html[data-appearance] body#wltProduct480.wlt-desk.wlt-dark-product.finance-hub-active .gold-btn:disabled { background:#393239!important; color:#c2b7bf!important; border-color:#66545f!important; }
body#wltProduct480.wlt-desk.wlt-dark-product :is(input,textarea,select):focus { box-shadow:0 0 0 3px #ffd0df20!important; }
/* Signed-out book and ledger keep the current 3D book, dimensions and QR flow. */
body.desk-login .desk-login-left { background:linear-gradient(90deg,#7630470a,transparent 30px),repeating-linear-gradient(0deg,transparent 0,transparent 31px,#86735c04 32px),#f4f0e8!important; }
body.desk-login .desk-login-right { background:linear-gradient(135deg,#fffdf8,#eee8dc)!important; }
body.desk-login .desk-login-story h1 em { color:#81243e; }
body.desk-login .desk-login-promises span { border-radius:5px; border-color:#ddd0bf; background:#fffdf8; box-shadow:0 2px 0 #d9cbb8; }
body.desk-login .desk-login-card {
  background:linear-gradient(90deg,#81243e 0,#81243e 4px,transparent 4px),#fffdf8!important;
  border-radius:7px!important; border-color:#cbbda9!important;
  box-shadow:0 2px 0 #fffdf8,0 5px 0 #d5c5ae,0 16px 35px #462c2219!important;
}
body.desk-login .desk-login-card h2 { padding-bottom:10px; border-bottom:3px double #ddcebb; }
body.desk-login :is(.desk-login-tabs,.desk-login-tabs button,.desk-login-book-controls button) { border-radius:5px; }
body.desk-login .desk-login-tabs button.active { color:#81243e; background:linear-gradient(180deg,#fffdf8,#f5ede2); }
body.desk-login :is(.eco-qr-wrap,.qr-wrap) { border-radius:5px!important; border-color:#cbbda9!important; background:#fff!important; box-shadow:inset 0 0 0 6px #fbf6ec,0 2px 0 #d5c5ae!important; }
body.desk-login :is(.input-box,.eco-login-hints,.eco-login-flow) { border-radius:5px!important; border-color:#d8c9b6!important; background:#faf6ee!important; }
body.desk-login .input-box:focus-within { border-color:#9d5368!important; box-shadow:0 0 0 2px #9d536814!important; }
body.desk-login .gold-btn { background:linear-gradient(180deg,#a8415a,#81243e)!important; color:#fffaf5!important; border-color:#6d1e35!important; border-radius:5px!important; box-shadow:inset 0 1px 0 #ffdce74d,0 3px 0 #54172c,0 6px 12px #5c203226!important; }
body.desk-login .outline-btn { background:linear-gradient(180deg,#fffdf8,#faf6ef)!important; border-radius:5px!important; border-color:#cbbda9!important; box-shadow:0 2px 0 #d8cbb8a8!important; }
body.desk-login :is(.gold-btn,.outline-btn):disabled { background:#ece7e6!important; color:#6a6268!important; border-color:#d3c9cc!important; box-shadow:none!important; opacity:1!important; filter:none!important; }
body.desk-login :is(button,a,input):focus-visible { outline:2px solid #8c2943!important; outline-offset:3px!important; }
/* Framed login fields use their rounded focus-within border as the focus cue. */
body.desk-login .input-box input:focus-visible { outline:none!important; outline-offset:0!important; box-shadow:none!important; }
body:is(.wlt-desk,.desk-login) :is(.gold-btn,.outline-btn,.danger-btn,.ia-button):disabled:hover {
  transform:none!important; filter:none!important;
}
@media(max-width:760px) {
  body#wltProduct480.wlt-desk :is(.page-head,.desk-page-title,.fhw-header,.ia-header) { padding-bottom:10px; }
  body#wltProduct480.wlt-desk .modal-card { box-shadow:0 3px 0 #a69684,0 12px 30px #20141e40!important; }
}
@media(prefers-reduced-motion:reduce) {
  body#wltProduct480.wlt-desk :is(.modal-card,.page-head h1,.desk-page-title h1,.fhw-header h1,.ia-header h1) { animation:none!important; }
  body#wltProduct480.wlt-desk :is(.gold-btn,.outline-btn,.danger-btn,.ia-button,.desk-nav .nav-item) { transition:none!important; }
  body#wltProduct480.wlt-desk :is(.gold-btn,.outline-btn,.danger-btn,.ia-button):active { transform:none!important; }
  body.desk-login :is(.gold-btn,.outline-btn) { transition:none!important; }
  body.desk-login :is(.gold-btn,.outline-btn):hover { transform:none!important; }
}
