/* Compact desk: six primary destinations, with local navigation inside each. */
.screen-computer:has(>.monitor){max-width:900px;margin:0 auto;height:min(550px,calc(100svh - var(--hud-h) - var(--dock-h) - 30px))}
.screen-computer .os-content{padding:0}
.compact-desktop.desktop-wallpaper{margin:0;padding:18px 24px;min-height:100%;display:flex;flex-direction:column;justify-content:center}
.compact-desktop.desktop-wallpaper:after{display:none}
.compact-desktop .desktop-greeting h2{font-size:28px;margin:0 0 3px}
.compact-desktop .desktop-greeting p{margin:0;font-size:12px;letter-spacing:normal}
.compact-desktop .desktop-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px;margin:20px 0 8px}
.compact-desktop .desktop-app{position:relative;gap:7px;min-width:0}
.compact-desktop .desktop-app b{font-size:17px;line-height:1.25}
.compact-desktop .desktop-app>small{font-size:11px;line-height:1.4;max-width:205px;color:#efd9b8;font-weight:400}
.compact-desktop .app-icon{width:58px;height:55px;position:relative}
.desktop-unread{position:absolute;right:-9px;top:-7px;min-width:23px;height:23px;padding:2px 5px;border-radius:50%;background:#b53329;border:2px solid #fff2d4;color:#fff6e0;font:800 12px Nunito;text-shadow:none;transform:rotate(3deg)}
.workspace-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px;padding:0 0 10px;border-bottom:1px solid #cfb785}
.workspace-tabs .workspace-group{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:#7b5c38;margin-right:5px}
.workspace-group svg{width:18px;height:18px}
.workspace-tabs button{min-height:38px;padding:7px 11px;font-size:12px;border-radius:8px;background:#f7e9c9;box-shadow:none;border-bottom-width:2px}
.workspace-tabs button[aria-current]{background:#795433;border-color:#9d7848;color:#fff4da}
.client-main-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.client-main-tabs button{display:flex;align-items:center;gap:9px;min-height:42px;padding:8px 14px;font-size:14px}
.client-search{margin:0 0 14px}
.client-search-main,.client-extra{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.client-search label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#735634;min-width:150px;flex:1}
.client-search input,.client-search select,.contact-filter select{min-height:42px;width:100%;margin:0;padding:8px 10px;font-size:14px}
.client-search button{min-height:42px;padding:8px 13px;font-size:13px}
.client-search details{margin-top:10px;border:0;padding:0}
.client-search summary{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:#75512d;cursor:pointer;width:fit-content;min-height:36px}
.client-search summary svg{width:17px;height:17px}
.client-extra{padding:10px 0 0}.client-search details[open]{border-bottom:1px solid #d9c39a;padding-bottom:12px}
.contact-filter{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:12px;color:#735634}
.contact-filter select{width:auto;max-width:100%;flex:1}
.management-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.management-actions>button{min-height:44px;margin:0}
.screen-property .file-sheet{padding:14px 18px;margin-bottom:12px}
.screen-property .property-values{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0 12px}
.screen-property .property-values>div{padding:7px 10px;gap:1px;border-radius:7px;align-content:center;min-width:0}
.screen-property .property-values small{font-size:12px;line-height:1.3}
.screen-property .property-values b{font-size:21px;line-height:1.25;overflow-wrap:anywhere}
.screen-property .file-sheet>p{margin-bottom:12px}
.screen-property .report-columns{gap:16px;padding-top:14px}
.screen-property .report-columns section+section{padding-left:16px}
.screen-property .report-columns h3{margin-bottom:12px}
.screen-property .property-exits{margin-top:14px;padding-top:12px}
.screen-management .paper{padding:18px 20px}
@media(max-width:900px){.screen-property .property-values{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){.compact-desktop.desktop-wallpaper{padding:16px 10px}.compact-desktop .desktop-apps{gap:20px 7px}.compact-desktop .desktop-app b{font-size:13px}.compact-desktop .desktop-app>small{display:none}.compact-desktop .app-icon{width:48px;height:47px}.workspace-tabs{gap:6px}.workspace-group{width:100%}.client-main-tabs{gap:6px}.client-main-tabs button{flex:1;padding:7px 8px;font-size:12px}.client-search label{min-width:125px}.management-actions>button{flex:1;min-width:130px}.screen-property .report-columns section+section{padding-left:0}.contact-filter{flex-direction:column;align-items:stretch}}
@media(max-height:550px) and (min-width:640px){.screen-computer:has(>.monitor){height:calc(100svh - var(--hud-h) - var(--dock-h) - 14px);max-width:820px}.compact-desktop.desktop-wallpaper{padding:7px 16px;justify-content:flex-start}.compact-desktop .desktop-greeting{display:flex;align-items:center;gap:16px}.compact-desktop .desktop-greeting h2{font-size:20px;margin:0}.compact-desktop .desktop-greeting p{font-size:11px}.compact-desktop .desktop-apps{gap:7px 12px;margin:6px 0 0}.compact-desktop .desktop-app{gap:3px}.compact-desktop .desktop-app b{font-size:13px}.compact-desktop .desktop-app>small{display:none}.compact-desktop .app-icon{width:40px;height:36px;border-bottom-width:3px;border-radius:8px}.compact-desktop .app-icon svg{width:23px;height:23px}.screen-computer .os-content{padding:0}.workspace-tabs{margin-bottom:10px;padding-bottom:7px}.workspace-tabs button{min-height:36px}.screen-property .property-values b{font-size:19px}}
.screen-clients .page-heading{margin-bottom:10px}.screen-clients .page-heading h1{font-size:28px;margin-bottom:5px}.screen-clients .page-heading p{font-size:13px;margin-bottom:0}
.screen-clients .workspace-tabs{margin-bottom:12px}
.client-main-tabs{margin:10px 0}
.client-search label{margin:0}
.client-search summary{padding:0;line-height:1.4;min-height:32px}
.client-search details{margin-top:5px}
.client-search{margin-bottom:8px}
.screen-clients .result-count{margin-bottom:10px}
.compact-desktop .desktop-apps{gap:16px 14px;margin-top:14px;margin-bottom:0}
@media(max-height:550px) and (min-width:640px){.compact-desktop .desktop-apps{gap:6px 12px;margin-top:5px}}
@media(max-height:550px) and (min-width:640px){.compact-desktop .desktop-greeting{display:none}.compact-desktop.desktop-wallpaper{padding:5px 16px}.compact-desktop .desktop-apps{margin:0;gap:6px 12px}.compact-desktop .desktop-app{padding:3px!important}}

/* v16: compact personal panels; account cards grow by count, never by height. */
.screen-wallet,.screen-career{max-width:850px;margin:0 auto;padding:12px 24px 110px}
.screen-wallet .page-heading,.screen-career .page-heading{margin-bottom:12px}
.screen-wallet .page-heading h1,.screen-career .page-heading h1{font-size:28px;margin-bottom:2px}
.screen-wallet .page-heading p,.screen-career .page-heading p{margin:0;font-size:13px}
.compact-wallet.wallet-object{display:block;margin:0 0 14px;padding:16px 20px;border-width:5px;border-bottom-width:7px;border-radius:18px}
.wallet-overview{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.compact-wallet .wallet-fold{padding:0}
.compact-wallet .wallet-fold>small,.wallet-bank-total>small{font-size:11px;letter-spacing:1px;color:#ead8bd}
.compact-wallet .wallet-fold>strong{font-size:34px;margin:3px 0;line-height:1.2}
.wallet-bank-total{text-align:right;color:#fff4d9;display:grid;justify-items:end;gap:3px}
.wallet-bank-total>strong{font:700 25px Baloo;line-height:1.2}
.wallet-bank-total button{min-height:36px;padding:5px 10px;font-size:12px}
.wallet-card-pocket h2{font-size:17px;color:#fff1d0;margin:0 0 8px}
.wallet-card-list{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity}
.wallet-card-list .account-card{flex:0 0 215px;width:215px;min-height:128px;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:5px;transform:none;padding:12px 14px;border-radius:12px;border-bottom-width:4px;text-align:left;scroll-snap-align:start;white-space:normal;color:#fff6df;text-shadow:none;box-shadow:0 4px 6px #201d2033}
.account-card .card-top{font-size:14px;letter-spacing:0;align-items:center;gap:8px}
.account-card .card-top svg{width:19px;height:19px;flex-shrink:0}
.account-card>small,.account-card .card-open{font-size:11px;font-weight:500;color:#eee4cb}
.account-card>strong{font:700 24px Baloo;line-height:1.2}
.wallet-card-list .card-tone-1{background:linear-gradient(125deg,#82634b,#513c31)}
.wallet-card-list .card-tone-2{background:linear-gradient(125deg,#687882,#3a4d59)}
.screen-wallet>.commission-panel{margin:0 0 14px;padding:13px 17px;display:grid;grid-template-columns:1fr auto;gap:4px 16px;align-items:center}
.screen-wallet>.commission-panel>small{grid-column:1;font-size:11px}
.screen-wallet>.commission-panel>strong{grid-column:2;grid-row:1 / 3;font:700 30px Baloo;line-height:1.15;color:#62441f;text-shadow:none}
.screen-wallet>.commission-panel>b{font-size:13px}
.screen-wallet>.commission-panel>span{grid-column:1 / -1;font-size:12px}
.screen-wallet>.commission-panel>button{justify-self:start;min-height:38px;padding:6px 12px;margin-top:4px}
.wallet-ledger.paper{padding:14px 18px;margin:0;max-height:260px;overflow:auto}
.wallet-ledger h2{font-size:21px;margin-bottom:8px}.wallet-ledger p{margin:0;font-size:13px}.wallet-ledger .ledger-row{padding:9px 0;font-size:13px}
.screen-mail:has(>.monitor),.screen-mailDetail:has(>.monitor){max-width:840px;margin:0 auto;height:min(580px,calc(100svh - var(--hud-h) - var(--dock-h) - 30px))}
.screen-mail .os-content,.screen-mailDetail .os-content{padding:14px 18px}
.screen-mail .page-heading{margin-bottom:8px}.screen-mail .page-heading h1{font-size:26px;margin:0}.screen-mail .page-heading p{font-size:12px;margin:0}
.screen-mail .workspace-tabs,.screen-mailDetail .workspace-tabs{margin-bottom:10px;padding-bottom:7px}
.mailbox .mail-label{font-size:12px;margin:4px 0}.mailbox .contact-filter{margin:6px 0}.mailbox .result-count{font-size:11px;margin:5px 0 9px}
.mailbox .file-list{gap:8px}.mailbox .estate-contact{margin:0}.mailbox .customer-row{padding:10px 12px;gap:12px;min-height:72px;border-radius:10px}
.mailbox .mail-stamp{width:30px;height:30px;flex-shrink:0}.mailbox .mail-stamp svg{width:24px;height:24px}
.mailbox .customer-summary{min-width:0}.mailbox .customer-summary b{font-size:16px;line-height:1.3}.mailbox .customer-summary small{font-size:12px;line-height:1.35;margin:2px 0;white-space:normal;overflow-wrap:anywhere}
.screen-mailDetail .paper{padding:16px 18px}.screen-mailDetail h1{font-size:25px}.screen-mailDetail h2{font-size:21px}
.screen-phone{padding-top:10px;padding-bottom:calc(var(--dock-h) + 20px)}
.screen-phone .phone-device{width:365px;padding:8px 9px;border-radius:30px;border-bottom-width:6px}
.screen-phone .phone-notch{height:6px;margin:3px auto 8px;width:70px}
.screen-phone .phone-screen{min-height:0;height:min(475px,calc(100svh - var(--hud-h) - var(--dock-h) - 85px));max-height:none;padding:12px;border-radius:18px;overscroll-behavior:contain}
.screen-phone .phone-home{height:7px;margin:8px auto 0}
.screen-phone .phone-screen h1{font-size:24px;margin:8px 0}
.screen-phone .phone-screen .actions{gap:6px;margin:6px 0}.screen-phone .phone-screen .actions button{font-size:11px;padding:6px 9px;min-height:36px}
.screen-phone .phone-tabs button{min-height:38px;padding:6px 10px}.screen-phone .contact-filter{margin:8px 0}.screen-phone .result-count{margin:6px 0;font-size:11px}
.screen-phone .phone-contact{padding:10px 8px;gap:9px}.screen-phone .phone-avatar{width:42px;height:42px;flex-shrink:0}.screen-phone .customer-summary b{font-size:16px}.screen-phone .customer-summary small{font-size:12px}
.screen-career .career-book{padding:18px 20px;margin:0}
.screen-career .career-identity{gap:14px;margin-bottom:10px}.screen-career .career-identity .player-face{width:62px;height:62px;border-width:3px;flex-shrink:0}
.screen-career .career-identity h2{font-size:21px;margin:0 0 3px;line-height:1.25}.screen-career .career-identity p{font-size:12px;margin:3px 0}
.screen-career .career-book>p{font-size:13px;margin:8px 0}
.screen-career .skill-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.screen-career .skill{display:grid;grid-template-columns:32px 1fr auto;gap:5px 10px;align-items:center;text-align:left;padding:11px 12px;border-bottom-width:4px;border-radius:10px}
.screen-career .skill>span{width:30px;height:30px;margin:0;border-width:2px;grid-row:1}.screen-career .skill>span svg{width:17px;height:17px}
.screen-career .skill h3{font-size:17px;margin:0;line-height:1.2}.screen-career .skill p{font-size:14px;margin:0;font-weight:800}
.screen-career .skill>small{grid-column:1 / -1;font-size:12px;min-height:0;line-height:1.35}
.screen-career .skill>button{grid-column:2 / -1;justify-self:end;padding:5px 12px;min-height:36px;margin-top:2px}
.screen-career .actions{gap:10px;margin:10px 0 0;flex-wrap:wrap}.screen-career .actions button{min-height:40px;padding:7px 12px;font-size:13px}
@media(max-width:639px){.screen-wallet,.screen-career{padding-left:12px;padding-right:12px}.compact-wallet.wallet-object{padding:12px}.wallet-overview{gap:10px}.wallet-bank-total>small{font-size:9px;letter-spacing:0}.compact-wallet .wallet-fold>strong{font-size:29px}.screen-career .skill-grid{grid-template-columns:1fr}.screen-career .career-book{padding:14px}.screen-wallet>.commission-panel{gap:5px 8px}.screen-wallet>.commission-panel>strong{font-size:26px}.screen-phone .contact-filter{flex-direction:row;align-items:center}}
@media(max-height:550px) and (min-width:640px){.screen-wallet,.screen-career{padding-top:5px}.screen-phone .phone-screen{height:calc(100svh - var(--hud-h) - var(--dock-h) - 58px)}.screen-phone .phone-device{width:345px}.screen-phone{padding-top:3px}.screen-mail:has(>.monitor),.screen-mailDetail:has(>.monitor){height:calc(100svh - var(--hud-h) - var(--dock-h) - 14px)}.screen-mail .page-heading{display:none}}
@media(max-height:550px) and (min-width:640px){.screen-phone .phone-screen{padding:8px 10px}.screen-phone .phone-screen>small,.screen-phone .phone-screen>h1{display:none}.screen-phone .phone-screen .actions{margin:0 0 4px}.screen-phone .phone-screen .actions button{min-height:32px;padding:4px 9px}.screen-phone .phone-tabs{margin:4px 0;gap:6px}.screen-phone .phone-tabs button{min-height:34px;padding:4px 9px}.screen-phone .contact-filter{margin:4px 0;gap:6px}.screen-phone .contact-filter select{min-height:34px;padding:4px 7px;font-size:12px}.screen-phone .result-count{margin:3px 0;font-size:10px}}

/* v17: personal finance remains a separate, compact destination. */
.screen-investments,.screen-termDeposits,.screen-personalLife,.screen-creditCards{max-width:920px;margin:auto;padding:14px 24px calc(var(--dock-h) + 24px)}
.screen-investments .paper,.screen-termDeposits .paper,.screen-personalLife .paper,.screen-creditCards .paper{padding:16px 20px;margin-bottom:14px}
.screen-investments .page-heading,.screen-termDeposits .page-heading,.screen-personalLife .page-heading,.screen-creditCards .page-heading{margin-bottom:12px}
.screen-investments h1,.screen-termDeposits h1,.screen-personalLife h1,.screen-creditCards h1{font-size:28px;margin-bottom:3px}
.eco-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}
.eco-metrics>div{background:#f5e6bf;border:1px solid #d4b477;border-bottom:4px solid #ac8246;border-radius:10px;padding:10px 12px;display:grid;gap:3px}
.eco-metrics small{font-size:12px;color:#745432}.eco-metrics b{font:700 24px Baloo;color:#614421}
.eco-negative{color:#a73227!important}.eco-positive{color:#396b42!important}.budget-hud small.eco-negative{font-size:10px;white-space:nowrap}
.eco-wallet-summary{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:12px;color:#fff2d2;font-size:13px}
.eco-table-wrap{overflow-x:auto}.eco-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}.eco-table th{font-size:11px;padding:8px;border-bottom:2px solid #b9955e}.eco-table td{padding:10px 8px;border-bottom:1px solid #ddc69b;vertical-align:middle}.eco-table td small{display:block;font-size:11px;margin-top:3px}.eco-table td:not(:first-child){white-space:nowrap}
.eco-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.eco-section-title h2{font-size:23px;margin:0 0 8px}.eco-section-title button{min-height:36px}
.eco-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.eco-form label{flex:1;min-width:120px;margin:0;font-size:13px}.eco-form input,.eco-form select{width:100%;min-height:42px;margin:5px 0 0;padding:8px;font-size:14px}.eco-form button{min-height:42px}.eco-preview{flex:0 0 100%;padding:10px 0;font-size:13px}.eco-preview b{font-size:16px}
.eco-chart{display:block;max-width:340px;width:100%;height:85px;background:#f5e9cd;border-radius:8px;margin-top:12px}.eco-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.eco-two h2{font-size:22px}.eco-two p{font-size:13px}.eco-two button{font-size:13px}
.eco-parts{margin:8px 0;font-size:13px}.eco-parts>div{display:flex;justify-content:space-between;gap:15px;padding:5px 0;border-bottom:1px solid #dec89e}.eco-parts dd{margin:0;font-weight:800}
.eco-term{padding:12px 0;border-bottom:1px solid #cfb57e}.eco-term>small{display:block;margin:4px 0;font-size:12px}.eco-term>p{font-size:13px;margin:5px 0}.eco-term>button{min-height:40px;font-size:12px}.eco-news{margin-bottom:16px}.eco-news h3{font-size:19px}.eco-news p{font-size:13px}.eco-news .paper{padding:14px;margin:10px 0}.eco-effects{font-size:12px!important}
@media(max-width:639px){.screen-investments,.screen-termDeposits,.screen-personalLife,.screen-creditCards{padding-left:12px;padding-right:12px}.eco-two{grid-template-columns:1fr}.eco-metrics{gap:6px}.eco-metrics>div{padding:8px}.eco-metrics b{font-size:19px}.eco-metrics small{font-size:10px}.eco-table td{padding:8px 5px}.eco-table{font-size:12px}}

/* v17 HUD: profile + time on the left, clear balances + mail/menu on the right. */
:root{--hud-h:144px}
.hud,.on-title .hud{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-items:start;align-content:start;gap:8px 18px;padding:12px 18px;height:var(--hud-h)}
.hud>.brand{grid-row:1;grid-column:1;min-height:58px;font-size:23px;max-width:310px}
.hud>.hud-status{grid-row:2;grid-column:1;justify-self:start;justify-content:flex-start;padding:3px 5px;border-radius:12px;width:max-content;max-width:100%;margin:0}
.hud-status .date-chip{font-size:13px;gap:5px;padding:3px 7px}
.hud-status .date-chip svg{display:block;width:18px;height:18px}
.hud-status button{min-height:34px;padding:3px 7px}
.hud-status .clock-chip{gap:6px}.hud-status .clock-time{font-size:23px}.hud-status .sun-mark{font-size:20px}
.hud-status .clock-toggle{width:36px;height:36px;min-width:36px;min-height:36px;margin-left:2px}
.hud>.hud-tools{grid-row:1;grid-column:2;display:flex;align-items:start;justify-self:end;gap:8px;min-width:0}
.hud-tools .budget-hud{display:grid;grid-template-columns:repeat(2,minmax(135px,155px));gap:8px;min-width:0}
.hud-tools .budget-hud button{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:58px;padding:7px 10px;border:1px solid #d2a669;border-top:2px solid #fff1c9;border-bottom:4px solid #83562f;border-radius:12px;background:linear-gradient(120deg,#fff4d5,#e7c994);box-shadow:inset 0 0 0 1px #fff4da80,0 4px 7px #30201440;white-space:normal}
.hud-tools .budget-hud .budget-icon{display:grid;place-items:center;flex:0 0 29px;width:29px;height:32px;border:1px solid #b78c54;border-radius:8px;background:#d6b27b55;color:#79502d}
.budget-hud .budget-icon svg{width:21px;height:21px}
.hud-tools .budget-hud .budget-copy{display:grid;gap:2px;align-items:start;min-width:0;text-align:left}
.budget-hud .budget-copy small{font:800 10px/1.2 Nunito;color:#785736;white-space:nowrap}
.budget-hud .budget-copy b{font:800 19px/1.2 Baloo;color:#4e351f;font-variant-numeric:tabular-nums;white-space:nowrap}
.budget-hud .budget-copy em{font:800 10px/1.2 Nunito;white-space:nowrap}
.hud-tools .round{width:48px;height:54px;min-height:54px;border-radius:12px;padding:9px}
.hud-tools .round svg{width:26px;height:26px}.hud-menu svg path{stroke-width:2.3;stroke-linecap:round;fill:none}
.screen-settings{max-width:820px;margin:auto;padding-bottom:calc(var(--dock-h) + 20px)}.settings-panel{padding:20px}.settings-panel .actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.auto-save-info{font-size:12px;color:#6d7852}.save-panel .auto-save-info{display:block;margin:8px 0;color:#e9d3ac}
@media(max-width:900px){.hud,.on-title .hud{padding:10px 12px;gap:7px 10px}.hud>.brand{font-size:19px;min-height:54px}.hud-tools .budget-hud{grid-template-columns:repeat(2,minmax(112px,134px));gap:6px}.hud-tools .budget-hud button{gap:6px;padding:6px 8px;min-height:54px}.budget-hud .budget-copy b{font-size:17px}.hud-tools .budget-hud .budget-icon{flex-basis:24px;width:24px;height:28px}.budget-hud .budget-icon svg{width:17px;height:17px}.hud>.hud-tools{gap:6px}.hud-tools .round{width:43px;height:50px;min-height:50px}}
@media(max-width:639px){:root{--hud-h:154px}.hud,.on-title .hud{grid-template-columns:minmax(125px,1fr) auto;gap:6px;padding:8px}.hud>.brand{font-size:14px;max-width:190px;min-height:48px;padding:7px 6px;gap:6px}.hud>.brand .player-face{width:32px;height:32px}.hud>.brand small{font-size:9px;max-width:100px}.hud>.hud-tools{display:grid;grid-template-columns:130px 36px;grid-template-rows:36px 36px;gap:5px}.hud-tools .budget-hud{grid-column:1;grid-row:1 / 3;grid-template-columns:1fr;gap:4px}.hud-tools .budget-hud button{padding:3px 6px;min-height:36px;gap:6px;border-bottom-width:3px;border-radius:8px}.hud-tools .budget-hud .budget-icon{width:22px;height:24px;flex-basis:22px}.budget-hud .budget-copy small{font-size:9px}.budget-hud .budget-copy b{font-size:14px}.budget-hud .budget-copy em{font-size:9px}.hud-tools .round{width:36px;height:36px;min-height:36px;padding:5px;border-radius:9px}.hud-tools .round svg{width:23px;height:23px}.hud-tools .hud-mail{grid-column:2;grid-row:1}.hud-tools .hud-menu{grid-column:2;grid-row:2}.hud>.hud-status{grid-column:1 / -1;grid-row:2;justify-self:start}.hud-status .date-chip{font-size:12px}.hud-status .clock-time{font-size:21px}}
@media(max-height:550px) and (min-width:640px){:root{--hud-h:112px}.hud,.on-title .hud{padding:6px 10px;gap:5px 12px}.hud>.brand{min-height:42px;font-size:17px}.hud>.brand .player-face{width:32px;height:32px}.hud>.hud-status{padding:2px 4px;border-bottom-width:3px}.hud-status button{min-height:31px}.hud-status .clock-toggle{width:32px;height:32px;min-width:32px;min-height:32px}.hud-status .date-chip{font-size:12px}.hud-status .clock-time{font-size:20px}.hud-tools .budget-hud button{min-height:46px;padding:4px 8px}.hud-tools .round{width:42px;height:46px;min-height:46px}.budget-hud .budget-copy b{font-size:17px}}
.eco-metrics:has(>div:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:639px){.eco-metrics:has(>div:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact bank cards: limits, statements and payments stay in one place. */
.credit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.credit-account{min-width:0}.credit-account p,.credit-account details{font-size:13px}.credit-account .eco-form{display:grid;grid-template-columns:minmax(0,1fr)}.credit-face{display:grid;gap:7px;background:linear-gradient(135deg,#81613d,#443520);border:1px solid #cda567;border-bottom:4px solid #392b1c;border-radius:13px;color:#fff1d0;padding:15px;min-height:114px}.credit-face.cinar{background:linear-gradient(135deg,#67744b,#343e28)}.credit-face.pusula{background:linear-gradient(135deg,#66727b,#323d49)}.credit-face small{font-size:12px}.credit-face b{font-size:14px;letter-spacing:1px}.credit-face span{font-size:12px}.screen-creditCards select{max-width:100%;margin-top:8px}.eco-metrics:has(>div:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:850px){.credit-grid{grid-template-columns:1fr}.credit-account .credit-face{max-width:245px}.credit-account .eco-form{display:flex}.credit-account .eco-form label{max-width:230px}}

.credit-bank-tabs{display:flex;gap:8px;margin-bottom:12px}.credit-bank-tabs button{flex:1;min-width:0;min-height:44px;padding:7px 12px}.credit-bank-tabs small{display:block;font-size:10px}.credit-bank-tabs [aria-current=page]{background:linear-gradient(#9d7548,#614123);color:#fff0cd}.credit-grid{display:block}.credit-account{display:grid;grid-template-columns:215px minmax(0,1fr);gap:16px;align-items:start}.credit-content p:first-child{margin-top:0}.credit-content p{margin-bottom:8px}.credit-content details{margin-top:12px}.credit-content .eco-form{display:flex}.credit-content .eco-form label{min-width:90px}.credit-content .eco-form button{font-size:12px}.credit-face{min-height:125px}.credit-account .credit-face{max-width:none}.credit-content details>summary{cursor:pointer}
@media(max-width:639px){.credit-account{grid-template-columns:1fr;gap:12px}.credit-face{max-width:230px!important;min-height:115px}.credit-bank-tabs button{font-size:12px}}

/* Listing results must remain visible above the history and optional filters. */
.market-board .browser-address{padding:7px 10px;margin-bottom:8px;font-size:11px}
.market-board>h1{font-size:26px;margin:6px 0}
.market-board .market-counts{gap:7px;margin:8px 0}
.market-board .market-counts>span{padding:4px 9px;font-size:11px;gap:6px}
.market-board .market-counts b{font-size:21px}
.market-board .market-filter-panel,.market-board .market-history{margin:8px 0;padding:8px 0}
.market-board details>summary{margin:0;font-size:13px}
.market-board details[open]>summary{margin-bottom:8px}
.market-board .market-result-note{font-size:12px;margin:8px 0}
.market-board .market-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.market-board .market-results .product-row{display:flex;flex-direction:column;align-items:stretch;gap:7px;padding:12px;margin:0;min-width:0}
.market-board .market-results .house-model{width:auto;height:auto;min-height:0;display:flex;align-items:center;gap:6px;background:#ead7b0;color:#654324;border:1px solid #c4a16b;border-radius:5px;box-shadow:none;transform:none;padding:5px 8px;flex-direction:row;justify-content:flex-start;min-width:0}
.market-board .market-results .house-model svg{width:18px;height:18px;filter:none}
.market-board .market-results .house-model span{position:static;font-size:11px;margin:0;font-weight:800}
.market-board .market-results .product-info{min-width:0}
.market-board .market-results h2{font-size:18px;line-height:1.2;margin:4px 0}
.market-board .market-results p{font-size:16px;margin:5px 0;font-weight:800}
.market-board .market-results small{font-size:11px;line-height:1.4}
.market-board .market-results .product-action{width:100%;min-width:0;max-width:none;margin-top:auto}
.market-board .market-results button{width:100%;min-height:38px;font-size:12px;padding:6px 10px}
.market-board .market-history h2{font-size:18px;margin-top:12px}
@media(max-width:540px){.market-board .market-results{grid-template-columns:1fr}}

/* v21: compact clock and level ivory HUD controls. */
.hud>.brand{width:190px;max-width:190px;height:60px;min-height:60px;font-size:18px;letter-spacing:0;gap:7px;padding:7px 9px}
.hud>.brand .player-face{width:37px;height:37px;flex-shrink:0}
.hud>.brand small{font-size:10px}
.hud>.brand>span{white-space:nowrap;min-width:0}.hud>.brand .level-tag{display:none}
.hud>.hud-status{display:grid;grid-template-columns:minmax(0,1fr) 28px 39px;grid-template-rows:13px 28px;width:170px;max-width:170px;height:52px;min-height:52px;padding:2px 5px;gap:2px;border-radius:10px;border-width:1px 1px 3px;align-items:center}
.hud-status .date-chip{grid-column:1 / -1;justify-content:center;padding:0 3px;min-height:13px;height:13px;font-size:10px;line-height:1;border:0;box-shadow:none;background:none}
.hud-status .date-chip svg{width:11px;height:11px}
.hud-status .clock-chip{padding:0 1px;height:28px;min-height:28px;border:0;box-shadow:none;background:none;gap:3px}
.hud-status .clock-time{font-size:18px}.hud-status .sun-mark{font-size:13px}
.hud-status .clock-toggle,.hud-status .clock-forward{display:flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:0;min-height:28px;margin:0;padding:3px;border-radius:6px;background:linear-gradient(#967047,#68472d);color:#fff5dc;border:1px solid #775333;box-shadow:inset 0 1px #dabc8e}
.hud-status .clock-forward{width:39px;flex-direction:column;gap:0;padding:1px}
.hud-status .clock-forward small{font-size:9px;line-height:1;font-weight:900}
.hud-status .clock-toggle svg{width:18px;height:18px;display:block;transform:none;filter:none;stroke:none}
.hud-status .clock-forward svg{width:18px;height:14px;display:block;transform:none;filter:none;stroke:none}
.hud-tools .round{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:42px;height:42px;min-height:42px;padding:0;position:relative;transform:none;border:1px solid #a67c4a;border-radius:50%;background:linear-gradient(145deg,#fff8e5,#e6c896);color:#604326;box-shadow:inset 0 0 0 2px #fff0cc,0 2px 0 #765231,0 4px 7px #30201435}
.hud-tools .round svg{display:block;flex:none;width:22px;height:22px;margin:0;transform:none;filter:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.hud-tools .round:hover{background:linear-gradient(145deg,#fffdf0,#f4dcac);transform:none}
.hud-tools .round:active{box-shadow:inset 0 1px 3px #76523166;transform:none}
.action-effort{display:block;font:400 10px/1.3 Nunito;opacity:.8;margin-top:3px}
.priority-control{display:inline-flex;gap:6px;align-items:center;margin:0;font-size:11px}
.priority-control select{width:auto;min-height:36px;padding:5px 8px;font-size:12px;margin:0;max-width:170px}
.deadline-line{flex-wrap:wrap;gap:8px}.assigned-priority{display:block;font-size:11px;margin:5px 0;color:#80623f}
.credit-face{height:125px;min-height:125px;padding:10px 13px;gap:4px;grid-template-rows:auto 26px auto auto;align-content:space-between}
.credit-face .card-hardware{display:flex;align-items:center;gap:7px;height:26px;color:#eddaa8}
.card-hardware svg{display:block;flex:none;margin:0;transform:none;filter:none}
.card-hardware .payment-chip{width:32px;height:25px;fill:#d8bb72;stroke:#8b6e38;stroke-width:1}
.card-hardware .payment-chip path{fill:none}
.card-hardware .contactless-mark{width:19px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.credit-face>b{font-size:12px;line-height:1.2}.credit-face>span:not(.card-hardware){font-size:11px;line-height:1.2}
@media(max-width:639px){.hud>.brand{width:175px;max-width:175px;font-size:15px}.hud>.brand .player-face{width:32px;height:32px}.hud>.hud-status{width:162px;max-width:162px}.hud-tools .round{width:36px;height:36px;min-height:36px}.hud-tools .round svg{width:20px;height:20px}}
