/* Tetra theme (Oct 2026): light, readable shell, flags & merchant logos, module tiles. Loaded last. */
:root{--tt-bg:#f4f7fb;--tt-card:#fff;--tt-ink:#0f2233;--tt-text:#24384a;--tt-muted:#5b6b7b;--tt-line:#e3e9f0;--tt-soft:#f7f9fc;--tt-accent:#0d8a86;--tt-accent-ink:#0a6663;--tt-accent-soft:#e3f4f2;--tt-shadow:0 1px 2px rgba(15,34,51,.05),0 6px 20px rgba(15,34,51,.05);--tv-ink:var(--tt-ink);--tv-muted:var(--tt-muted);--tv-line:var(--tt-line);--tv-bg:var(--tt-bg);--tv-accent:var(--tt-accent);--tv-accent-soft:var(--tt-accent-soft)}
html{-webkit-font-smoothing:antialiased}
html:not(.dark) .fi-body{background:var(--tt-bg)!important;color:var(--tt-text)}
.fi-body{font-size:15px}

/* ---------- Sidebar: light, calm, clear active state ---------- */
html:not(.dark) .fi-sidebar{background:#fff!important;border-right:1px solid var(--tt-line)!important;box-shadow:none}
html:not(.dark) .fi-sidebar-header{background:#fff!important;border-bottom:1px solid var(--tt-line)!important;box-shadow:none!important}
.fi-sidebar-nav{padding:14px 12px 24px!important;gap:18px!important}
html:not(.dark) .fi-sidebar-group-label{color:#8a99a8!important;font-size:11px!important;font-weight:700!important;letter-spacing:.08em}
html:not(.dark) .fi-sidebar-group-btn .fi-icon,html:not(.dark) .fi-sidebar-group-collapse-btn{color:#a3b0bd!important}
.fi-sidebar-item a,.fi-sidebar-item-btn{border-radius:10px!important;min-height:40px}
html:not(.dark) .fi-sidebar-item-label{color:#2a3d4f!important;font-size:14px!important;font-weight:500!important}
html:not(.dark) .fi-sidebar-item-icon{color:#7a8a99!important}
html:not(.dark) .fi-sidebar-item a:hover,html:not(.dark) .fi-sidebar-item-btn:hover{background:#f1f5f9!important}
html:not(.dark) .fi-sidebar-item.fi-active>a,html:not(.dark) .fi-sidebar-item.fi-active>.fi-sidebar-item-btn{background:var(--tt-accent-soft)!important;box-shadow:inset 3px 0 0 var(--tt-accent)!important}
html:not(.dark) .fi-sidebar-item.fi-active .fi-sidebar-item-label{color:var(--tt-accent-ink)!important;font-weight:700!important}
html:not(.dark) .fi-sidebar-item.fi-active .fi-sidebar-item-icon{color:var(--tt-accent)!important}
.fi-sidebar-item .fi-badge{border-radius:999px!important;min-width:22px;justify-content:center}

/* ---------- Top bar ---------- */
html:not(.dark) .fi-topbar,html:not(.dark) .fi-topbar nav{background:rgba(255,255,255,.92)!important;backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--tt-line)!important;box-shadow:none!important}

/* ---------- Page header & typography ---------- */
.fi-header-heading{font-size:28px!important;font-weight:800!important;letter-spacing:-.03em!important;color:var(--tt-ink)}
.fi-header-subheading{font-size:15px!important;color:var(--tt-muted)!important;max-width:760px}
.fi-breadcrumbs{font-size:13px}

/* ---------- Cards, sections, tables ---------- */
html:not(.dark) .fi-section,html:not(.dark) .fi-ta-ctn,html:not(.dark) .tv-card,html:not(.dark) .fi-wi-stats-overview-stat{background:var(--tt-card)!important;border:1px solid var(--tt-line)!important;border-radius:16px!important;box-shadow:var(--tt-shadow)!important;--tw-ring-color:transparent!important}
.fi-section-header-heading{font-size:16px!important;font-weight:700!important}
html:not(.dark) .fi-ta-header-cell{background:var(--tt-soft)!important}
.fi-ta-header-cell{padding-top:12px!important;padding-bottom:12px!important}
.fi-ta-header-cell-label{font-size:12px!important;font-weight:700!important;text-transform:uppercase;letter-spacing:.05em;color:var(--tt-muted)!important}
.fi-ta-cell{padding-top:6px;padding-bottom:6px}
.fi-ta-text-item-label,.fi-ta-text{font-size:14px!important}
.fi-ta-cell-title .fi-ta-text-item-label,.fi-ta-cell-description .fi-ta-text-item-label,.fi-ta-cell-name .fi-ta-text-item-label{font-weight:600!important;color:var(--tt-ink)}
html:not(.dark) .fi-ta-row:hover{background:#f6fbfb!important}
html:not(.dark) .fi-ta-row.fi-striped{background:#fbfcfe}
.fi-ta-header-toolbar{padding:12px 16px!important}
.fi-ta-search-field input{font-size:14px}
.fi-ta-empty-state-heading{font-size:17px!important}

/* ---------- Tabs as a segmented control ---------- */
html:not(.dark) .fi-tabs{background:#e9eef4!important;border:0!important;border-radius:12px!important;padding:4px!important;box-shadow:none!important;gap:2px!important}
.fi-tabs-item{border-radius:9px!important;padding:8px 14px!important;font-size:14px!important;font-weight:600!important}
html:not(.dark) .fi-tabs-item{color:#4b5d6e!important}
html:not(.dark) .fi-tabs-item.fi-active{background:#fff!important;color:var(--tt-accent-ink)!important;box-shadow:0 1px 3px rgba(15,34,51,.12)}
.fi-tabs-item .fi-badge{border-radius:999px!important}

/* ---------- Buttons, badges, inputs ---------- */
.fi-btn{border-radius:10px!important;font-weight:600!important}
.fi-btn.fi-size-md,.fi-btn:not(.fi-size-sm):not(.fi-size-xs){min-height:40px}
.fi-badge{border-radius:999px!important;font-weight:600!important;padding-inline:10px!important}
.fi-input-wrp{border-radius:10px!important}
.fi-fo-field-label-content,.fi-fo-field-wrp-label span{font-size:14px;font-weight:600}
.fi-modal-window{border-radius:18px!important}
.fi-modal-heading{font-size:19px!important;font-weight:750!important}

/* ---------- Flags and merchant logos ---------- */
.tt-flag{display:inline-block;width:20px;height:15px;border-radius:3px;object-fit:cover;box-shadow:0 0 0 1px rgba(15,34,51,.12);vertical-align:-2px;flex:none}
.tt-flag-sm{width:18px;height:13.5px}
.tt-flag-lg{width:30px;height:22.5px;border-radius:4px}
.tt-with-flag,.tt-with-avatar{display:inline-flex;align-items:center;gap:7px;min-width:0}
.tt-avatar{display:inline-grid;place-items:center;flex:none;border-radius:10px;font-weight:800;letter-spacing:-.02em;line-height:1;object-fit:contain;background:#fff}
.tt-avatar.is-logo{box-shadow:0 0 0 1px var(--tt-line);padding:2px}
.tt-avatar-xs{width:20px;height:20px;font-size:9px;border-radius:6px}
.tt-avatar-sm{width:26px;height:26px;font-size:11px;border-radius:7px}
.tt-avatar-md{width:40px;height:40px;font-size:14px}
.tt-avatar-lg{width:56px;height:56px;font-size:20px;border-radius:14px}
.tt-tone-0{background:#e0f2f1;color:#0f766e}.tt-tone-1{background:#e0ecff;color:#1d4ed8}.tt-tone-2{background:#f3e8ff;color:#7e22ce}.tt-tone-3{background:#ffedd5;color:#c2410c}
.tt-tone-4{background:#fce7f3;color:#be185d}.tt-tone-5{background:#dcfce7;color:#15803d}.tt-tone-6{background:#fef9c3;color:#a16207}.tt-tone-7{background:#e0e7ff;color:#4338ca}
.tt-flag-box{background:var(--tt-soft);box-shadow:0 0 0 1px var(--tt-line);font-size:12px;color:var(--tt-muted)}
.tt-context{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:13px;color:var(--tt-muted);margin-top:3px}
.tt-context>.tt-sep{color:#b5c1cc}
.tt-context>span{white-space:nowrap}
.tv-task .tt-context .tt-avatar{display:none}
.fi-ta-text-item-description .tt-context{margin-top:2px}
.tt-logo-img{border-radius:10px!important;object-fit:contain;box-shadow:0 0 0 1px var(--tt-line);background:#fff}
.tt-ref{color:var(--tt-muted);font-weight:600;margin-right:2px}

/* ---------- Dashboard ---------- */
.tm-v2{gap:24px!important}
.tt-hero{position:relative;overflow:hidden;padding:28px 30px!important;border-radius:20px;background:linear-gradient(125deg,#0b5f63 0%,#0d8a86 48%,#1f7fb6 100%);color:#fff;box-shadow:0 10px 30px rgba(13,138,134,.22);align-items:flex-end!important;flex-wrap:wrap}
.tt-hero::after{content:"";position:absolute;right:-80px;top:-120px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.18),rgba(255,255,255,0) 70%);pointer-events:none}
.tt-hero .tv-kicker{color:#cdeeea!important;font-size:13px!important;font-weight:600!important;letter-spacing:.02em;text-transform:none}
.tt-hero h1{color:#fff!important;font-size:32px!important;font-weight:800!important;margin:6px 0 6px!important;letter-spacing:-.035em}
.tt-hero p{color:#e3f6f4!important;font-size:15px!important}
.tt-hero-copy{position:relative;z-index:1;min-width:0}
.tt-quick{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:10px}
.tt-quick-btn{display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border-radius:12px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);color:#fff;font-size:14px;font-weight:650;text-decoration:none;transition:background .15s}
.tt-quick-btn:hover{background:rgba(255,255,255,.24)}
.tt-quick-btn svg{width:18px;height:18px}
.tt-quick-btn.is-primary{background:#fff;color:#0a6663;border-color:#fff;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.tt-quick-btn.is-primary:hover{background:#f0fbfa}
.tt-quick-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* Metric cards: separate, tinted, large numbers */
html:not(.dark) .tv-metrics{background:transparent!important;border:0!important;border-radius:0!important;overflow:visible!important;gap:16px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))!important}
html:not(.dark) .tv-metric{background:#fff;border:1px solid var(--tt-line)!important;border-radius:16px;box-shadow:var(--tt-shadow);padding:20px!important;border-right:1px solid var(--tt-line)!important;border-bottom:1px solid var(--tt-line)!important;transition:transform .15s,box-shadow .15s}
html:not(.dark) .tv-metric:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(15,34,51,.09);background:#fff!important}
.tv-metric>div>span{font-size:14px!important;font-weight:600!important;color:var(--tt-muted)!important}
.tv-metric strong{font-size:34px!important;font-weight:800!important;letter-spacing:-.03em;color:var(--tt-ink)!important}
.tv-metric small{font-size:13px!important}
.tv-metric .tm-icon{width:44px!important;height:44px!important;border-radius:12px!important}
.tv-metric .tm-icon svg{width:22px!important;height:22px!important}

/* Operational flow: one clear block with distinct colors for each stage. */
.tt-workflow{padding:18px 20px;border:1px solid #dbe5ee;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f7fafc 100%);box-shadow:var(--tt-shadow)}
.tt-workflow-head{display:flex;align-items:center;gap:11px;margin-bottom:16px}
.tt-workflow-head>span:last-child{display:grid;min-width:0}
.tt-workflow-head strong{color:var(--tt-ink);font-size:16px;font-weight:800;letter-spacing:-.01em}
.tt-workflow-head small{margin-top:2px;color:var(--tt-muted);font-size:12.5px}
.tt-workflow-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e3f4f2;color:var(--tt-accent-ink);box-shadow:inset 0 0 0 1px rgba(13,138,134,.12)}
.tt-workflow-mark svg{width:23px;height:23px}
.tt-workflow-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;margin:0;padding:0;list-style:none}
.tt-workflow-step{position:relative;display:flex;align-items:center;gap:11px;min-width:0;padding:13px;border:1px solid var(--tt-line);border-radius:14px;background:#fff}
.tt-workflow-step:not(:last-child)::after{content:"";position:absolute;z-index:1;left:calc(100% + 5px);top:50%;width:14px;height:8px;border-top:2px solid #b7c5d2;border-right:2px solid #b7c5d2;transform:translateY(-50%) rotate(45deg)}
.tt-workflow-icon{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:15px;box-shadow:inset 0 0 0 1px rgba(15,34,51,.035)}
.tt-workflow-icon svg{width:28px;height:28px}
.tt-workflow-step>span:last-child{display:grid;min-width:0}
.tt-workflow-step b{color:var(--tt-ink);font-size:13px;font-weight:800;line-height:1.25}
.tt-workflow-step small{margin-top:3px;color:var(--tt-muted);font-size:11.5px;line-height:1.3}
.tt-flow-blue .tt-workflow-icon{background:#e4efff;color:#2563c7}.tt-flow-violet .tt-workflow-icon{background:#f1e8ff;color:#7c3aed}.tt-flow-amber .tt-workflow-icon{background:#fff0d8;color:#c65d08}.tt-flow-teal .tt-workflow-icon{background:#dff6f2;color:#087f75}.tt-flow-rose .tt-workflow-icon{background:#ffe5ee;color:#c42c62}
.dark .tt-workflow,.dark .tt-workflow-step{background:#1a2a36;border-color:#334755}.dark .tt-workflow-head strong,.dark .tt-workflow-step b{color:#e9f1f6}.dark .tt-workflow-mark{background:#223f40;color:#70d4ce}

/* Module tiles */
.tt-section-title h2{font-size:17px;font-weight:750;color:var(--tt-ink);margin:0 0 12px}
.tt-module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:10px}
.tt-module{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:12px 14px;border-radius:16px;background:#fff;border:1px solid var(--tt-line);box-shadow:var(--tt-shadow);text-decoration:none;color:var(--tt-ink);transition:transform .15s,box-shadow .15s,border-color .15s;min-width:0}
.tt-module:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(15,34,51,.09);border-color:#cfdbe6}
.tt-module:focus-visible{outline:3px solid var(--tt-accent);outline-offset:2px}
.tt-module-icon{grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;border-radius:11px}
.tt-module-icon svg{width:22px;height:22px}
.tt-module-label{font-size:14px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.tt-module-label{grid-column:2;align-self:end}
.tt-module small{grid-column:2;font-size:12px;color:var(--tt-muted);align-self:start}
.tt-module:not(:has(small)) .tt-module-label{grid-row:1/3;align-self:center}
.tt-module-badge{grid-column:3;grid-row:1/3;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:#e11d48;color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center}
.tt-m-teal .tt-module-icon,.tt-finance-tile.tt-m-teal .tt-finance-link-icon{background:#dff6f2;color:#087f75}.tt-m-blue .tt-module-icon,.tt-finance-tile.tt-m-blue .tt-finance-link-icon{background:#e4efff;color:#2563c7}.tt-m-violet .tt-module-icon,.tt-finance-tile.tt-m-violet .tt-finance-link-icon{background:#f1e8ff;color:#7c3aed}
.tt-m-amber .tt-module-icon,.tt-finance-tile.tt-m-amber .tt-finance-link-icon{background:#fff0d8;color:#c65d08}.tt-m-rose .tt-module-icon,.tt-finance-tile.tt-m-rose .tt-finance-link-icon{background:#ffe5ee;color:#c42c62}.tt-m-slate .tt-module-icon,.tt-finance-tile.tt-m-slate .tt-finance-link-icon{background:#e8eef5;color:#40536a}

/* Finance modules: large icon tiles inside clear, collapsible business areas. */
.tt-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.tt-section-title p{margin:0 0 12px;color:var(--tt-muted);font-size:13px}
.tt-modules [x-cloak]{display:none!important}
.tt-favorites{margin-bottom:14px;padding:14px;border:1px solid #d9e7e5;border-radius:17px;background:linear-gradient(135deg,#f8fdfc 0%,#f4f8fc 100%);box-shadow:var(--tt-shadow)}
.tt-favorites-head{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.tt-favorites-symbol{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#fff3cd;color:#b7791f;box-shadow:0 0 0 1px #f3df9b}
.tt-favorites-symbol svg{width:21px;height:21px}
.tt-favorites-heading{display:grid;min-width:0}
.tt-favorites-head strong{color:var(--tt-ink);font-size:15px;font-weight:800}
.tt-favorites-head small{margin-top:2px;color:var(--tt-muted);font-size:12px}
.tt-favorites-actions{display:flex;align-items:center;gap:7px;margin-left:auto}
.tt-arrange-toggle,.tt-arrange-reset{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:7px 10px;border:1px solid #cbd8df;border-radius:10px;background:#fff;color:var(--tt-text);font-size:12px;font-weight:700;cursor:pointer}
.tt-arrange-toggle:hover,.tt-arrange-reset:hover{border-color:#9db8c2;background:#f7fbfb;color:var(--tt-accent-ink)}
.tt-arrange-toggle:focus-visible,.tt-arrange-reset:focus-visible,.tt-favorite-move button:focus-visible{outline:3px solid var(--tt-accent);outline-offset:2px}
.tt-arrange-toggle svg,.tt-arrange-reset svg{width:15px;height:15px}
.tt-arrange-toggle[aria-pressed="true"]{border-color:var(--tt-accent);background:var(--tt-accent-soft);color:var(--tt-accent-ink)}
.tt-arrange-help{margin:0 0 10px;padding:8px 11px;border-radius:10px;background:#e9f6f5;color:#315f60;font-size:12px;font-weight:600}
.tt-favorites-empty{margin:0;padding:11px 13px;border:1px dashed #cbd8df;border-radius:12px;background:rgba(255,255,255,.7);color:var(--tt-muted);font-size:13px}
.tt-favorites-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,300px));justify-content:start;gap:9px}
.tt-favorite-card,.tt-finance-tile{position:relative;min-width:0;border:1px solid var(--tt-line);border-radius:14px;background:#fff;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.tt-favorite-card:hover,.tt-finance-tile:hover{transform:translateY(-2px);border-color:#c6d8df;box-shadow:0 8px 22px rgba(15,34,51,.08)}
.tt-favorite-card.is-arranging{cursor:grab;border-style:dashed;border-color:#8db8b5;background:#fbfefe}
.tt-favorite-card.is-dragging{opacity:.55;transform:scale(.98)}
.tt-favorite-link{display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:90px;padding:12px 46px 12px 12px;color:var(--tt-ink);text-decoration:none}
.tt-favorite-card .tt-module-icon{width:60px;height:60px;border-radius:16px}
.tt-favorite-card .tt-module-icon svg{width:32px;height:32px}
.tt-favorite-card.is-arranging .tt-favorite-link{padding-right:108px}
.tt-favorite-link:focus-visible,.tt-finance-tile-link:focus-visible{outline:3px solid var(--tt-accent);outline-offset:2px;border-radius:13px}
.tt-favorite-copy,.tt-finance-tile-copy{display:grid;min-width:0}
.tt-favorite-copy strong,.tt-finance-tile-copy strong{font-size:13.5px;font-weight:750;line-height:1.25;overflow-wrap:anywhere}
.tt-favorite-copy small,.tt-finance-tile-copy small{margin-top:3px;color:var(--tt-muted);font-size:11.5px}
.tt-finance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:14px}
.tt-finance-group{overflow:hidden;border:1px solid var(--tt-line);border-radius:16px;background:#fff;box-shadow:var(--tt-shadow);min-width:0;transition:border-color .2s ease,box-shadow .2s ease}
.tt-finance-group:hover{border-color:#cbd6e2;box-shadow:0 8px 28px rgba(15,34,51,.08)}
.tt-finance-toggle{display:grid;grid-template-columns:42px minmax(0,1fr) 28px;align-items:center;gap:12px;width:100%;padding:16px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--tt-line);cursor:pointer;transition:background .2s ease,border-color .28s ease}
.tt-finance-toggle:hover{background:var(--tt-soft)}
.tt-finance-toggle:focus-visible{outline:3px solid var(--tt-accent);outline-offset:-3px}
.tt-finance-heading{display:grid;min-width:0}
.tt-finance-heading strong{color:var(--tt-ink);font-size:15px;font-weight:750;letter-spacing:-.01em}
.tt-finance-heading small{margin-top:3px;color:var(--tt-muted);font-size:12px;line-height:1.4}
.tt-finance-chevron{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--tt-soft);color:#64748b}
.tt-finance-chevron svg{width:17px;height:17px;transition:transform .28s ease}
.tt-finance-group.is-collapsed .tt-finance-chevron svg{transform:rotate(-90deg)}
.tt-finance-group.is-collapsed .tt-finance-toggle{border-bottom-color:transparent}
.tt-finance-links-wrap{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .3s ease,opacity .2s ease}
.tt-finance-group.is-collapsed .tt-finance-links-wrap{grid-template-rows:0fr;opacity:0}
.tt-finance-group nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:0;overflow:hidden;padding:10px}
.tt-finance-tile-link{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:100px;padding:12px 42px 12px 12px;color:var(--tt-ink);text-decoration:none}
.tt-finance-link-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:17px;background:var(--tt-soft);color:var(--tt-accent-ink);box-shadow:inset 0 0 0 1px rgba(15,34,51,.035)}
.tt-finance-link-icon svg{width:34px;height:34px}
.tt-finance-tile .tt-module-badge,.tt-favorite-card .tt-module-badge{position:absolute;top:7px;right:auto;left:7px;z-index:2;min-width:20px;height:20px;font-size:11px}
.tt-favorite-toggle{position:absolute;z-index:3;top:8px;right:8px;display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--tt-line);border-radius:10px;background:#fff;color:#94a3b8;cursor:pointer;transition:color .16s ease,background .16s ease,border-color .16s ease,transform .16s ease}
.tt-favorite-toggle:hover{color:#b7791f;background:#fff9e6;border-color:#ecd27c;transform:scale(1.05)}
.tt-favorite-toggle:focus-visible{outline:3px solid var(--tt-accent);outline-offset:2px}
.tt-favorite-toggle svg{width:17px;height:17px}
.tt-favorite-toggle[aria-pressed="true"],.tt-favorite-toggle.is-selected{color:#a86905;background:#fff3cd;border-color:#e8c75f}
.tt-favorite-move{position:absolute;z-index:3;top:8px;right:8px;display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #c6d9db;border-radius:10px;background:#fff}
.tt-favorite-move button,.tt-drag-handle{display:grid;place-items:center;width:26px;height:26px;border:0;border-radius:7px;background:transparent;color:#527378}
.tt-favorite-move button{cursor:pointer}
.tt-favorite-move button:hover:not(:disabled){background:var(--tt-accent-soft);color:var(--tt-accent-ink)}
.tt-favorite-move button:disabled{opacity:.3;cursor:not-allowed}
.tt-favorite-move svg{width:15px;height:15px}
.tt-drag-handle{cursor:grab;color:#8aa0a8}
.dark .tt-finance-group,.dark .tt-favorite-card,.dark .tt-finance-tile{background:#1a2a36;border-color:#334755}.dark .tt-finance-toggle{border-color:#334755}.dark .tt-finance-toggle:hover,.dark .tt-finance-chevron{background:#223440}.dark .tt-finance-heading strong,.dark .tt-finance-tile-link,.dark .tt-favorite-link{color:#e9f1f6}.dark .tt-favorites{background:#162630;border-color:#334755}.dark .tt-favorite-toggle{background:#223440;border-color:#405866}

/* Open work rows */
.tv-task{padding:14px 20px!important;gap:14px!important}
html:not(.dark) .tv-task:hover{background:#f6fbfb!important}
.tv-task-copy strong{font-size:15px!important;font-weight:700!important;color:var(--tt-ink)}
.tv-task>svg{width:18px;height:18px;color:#a3b0bd}
.tv-card-head h2{font-size:17px!important;font-weight:750!important}

/* Balances: light card with strong numbers */
html:not(.dark) .tv-finance{background:#fff!important;color:var(--tt-ink)!important}
html:not(.dark) .tv-finance .tv-card-head{background:linear-gradient(120deg,#0b5f63,#0d8a86)!important;color:#fff}
html:not(.dark) .tv-finance .tv-card-head h2,html:not(.dark) .tv-finance .tv-card-head p,html:not(.dark) .tv-finance .tv-card-head svg{color:#fff!important}
html:not(.dark) .tv-finance .tv-kicker{color:var(--tt-muted)!important}
html:not(.dark) .tv-finance .tv-amount strong{color:var(--tt-ink)!important}
html:not(.dark) .tv-finance .tv-amount span,html:not(.dark) .tv-finance p{color:var(--tt-muted)!important}
html:not(.dark) .tv-finance .tv-balance-block{border-color:var(--tt-line)!important}
html:not(.dark) .tv-finance .tv-balance-block a{color:var(--tt-accent-ink)!important}
html:not(.dark) .tv-finance .tv-finance-footer{background:var(--tt-soft)!important;color:var(--tt-accent-ink)!important;border-top:1px solid var(--tt-line)}
html:not(.dark) .tv-notices{border-radius:14px!important}

/* Request page */
.tux-facts dd{font-size:15px;font-weight:600;color:var(--tt-ink)}
.tux-facts dt{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--tt-muted)}

/* Dark mode keeps Filament's palette; just tune the new pieces */
.dark .tt-module,.dark .tv-metric{background:#1a2a36;border-color:#334755}
.dark .tt-module-label{color:#e9f1f6}
.dark .tt-avatar{background:#22313d}

@media(max-width:640px){
 .tt-hero{padding:22px 18px!important;border-radius:16px}
 .tt-hero h1{font-size:26px!important}
 .tt-quick{width:100%}
 .tt-quick-btn{flex:1 1 calc(50% - 10px);justify-content:center;padding:11px 10px}
 .tt-module-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .tt-module{display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 6px;gap:6px}
 .tt-module small{display:none}
 .tt-module-label{font-size:12.5px}
 .tt-module-badge{position:absolute;top:6px;right:6px}
 .tt-finance-grid{grid-template-columns:1fr}
 .tt-finance-toggle{grid-template-columns:38px minmax(0,1fr) 28px;padding:14px;gap:10px}
 .tt-finance-group nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px}
 .tt-finance-tile-link{display:flex;flex-direction:column;justify-content:center;text-align:center;min-height:112px;padding:13px 8px 10px;gap:7px}
 .tt-finance-link-icon{width:50px;height:50px}
 .tt-finance-link-icon svg{width:27px;height:27px}
 .tt-finance-tile-copy small{display:none}
 .tt-favorites-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tt-favorite-link{grid-template-columns:40px minmax(0,1fr);padding:10px 42px 10px 10px}
 .tt-favorite-link .tt-module-icon{width:40px;height:40px}
 .tt-favorite-link .tt-module-icon svg{width:22px;height:22px}
 .tt-favorites-actions{width:100%;margin-left:0}
 .tt-arrange-toggle,.tt-arrange-reset{flex:1}
 .tv-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 .tv-metric{padding:14px!important}
 .tv-metric strong{font-size:28px!important}
 .tt-workflow{padding:15px}
 .tt-workflow-steps{grid-template-columns:1fr;gap:9px}
 .tt-workflow-step{padding:10px 12px}
 .tt-workflow-step:not(:last-child)::after{left:31px;top:calc(100% + 1px);width:8px;height:8px;border-top:0;border-left:2px solid #b7c5d2;border-bottom:2px solid #b7c5d2;transform:rotate(-45deg)}
 .tt-workflow-icon{width:46px;height:46px;border-radius:13px}
 .tt-workflow-icon svg{width:25px;height:25px}
 .fi-header-heading{font-size:24px!important}
}
@media(min-width:641px) and (max-width:1100px){.tt-finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tt-workflow-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tt-workflow-step::after{display:none}}
@media(max-width:420px){.tt-finance-group nav,.tt-favorites-grid{grid-template-columns:1fr}.tt-finance-tile-link{display:grid;grid-template-columns:46px minmax(0,1fr);text-align:left;min-height:76px;padding:11px 42px 11px 11px}.tt-finance-tile-copy small{display:block}}
@media(prefers-reduced-motion:reduce){.tt-finance-group,.tt-finance-toggle,.tt-finance-links-wrap,.tt-finance-chevron svg,.tt-favorite-card,.tt-finance-tile,.tt-favorite-toggle{transition:none}}

/* Lists: the main text of a row is bold and roomy; its context line stays on one line where possible */
.fi-ta-text-has-descriptions>.fi-ta-text-item{font-size:15px!important;font-weight:700!important;color:var(--tt-ink)}
@media(min-width:1100px){.fi-ta-cell-description,.fi-ta-cell-title{min-width:460px}}
.tv-task-copy>.tt-context{display:flex!important;font-size:13px}.tt-context>.tt-sep{color:#94a3b8!important;font-weight:700}
.tt-hero-logo{position:relative;z-index:1;align-self:center;flex:none}.tt-hero-logo .tt-avatar{width:64px;height:64px;font-size:22px;border-radius:16px;box-shadow:0 0 0 3px rgba(255,255,255,.35)}
.tt-hero:has(.tt-hero-logo) .tt-hero-copy{flex:1}
.tt-flag-box~.tv-task-copy .tt-context .tt-flag{display:none}
@media(max-width:640px){html:not(.dark) .tv-metrics,.tv-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.tv-metric small{display:none}.tt-hero-logo .tt-avatar{width:48px;height:48px;font-size:17px}}
