/* Personal home and commodity order book, using the town's existing palette. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.citizen-banner{display:flex;align-items:center;gap:22px;padding:28px 30px;border-radius:10px;margin-bottom:20px;background:linear-gradient(110deg,#294d4d,#41645b);color:#f8f5e9;position:relative;overflow:hidden}.citizen-banner:after{content:"";position:absolute;right:0;top:-80px;width:270px;height:270px;border:1px solid #f1e3be15;border-radius:50%;pointer-events:none}.profile-avatar{width:70px;height:70px;border:1px solid #ebdfbd60;background:#f1e7cf1b;color:#f4e2bb;font-size:30px}.citizen-identity .eyebrow{color:#c8ba94;margin-bottom:3px}.citizen-identity h2{font-size:25px;letter-spacing:2px}.citizen-identity p:last-child{font-size:12px;color:#d0d8ce;margin-top:4px}.profile-actions{display:flex;gap:9px;margin-left:auto;z-index:1}.btn.light-button{color:#f5edda;background:#ffffff0a;border:1px solid #ffffff30}.btn.light-button:hover{background:#ffffff16}
.personal-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.personal-stat{margin:0!important;padding:20px!important;display:flex;flex-direction:column;min-width:0}.personal-stat>span{font-size:11px;color:var(--muted)}.personal-stat h2{font-size:28px;font-weight:600;margin:8px 0}.personal-stat h2 small{font-size:11px;color:var(--muted);font-weight:400}.personal-stat p{font-size:11px;color:var(--muted);margin:10px 0 13px;line-height:1.8}.personal-stat>.text-link{margin-top:auto}.personal-stat>.progress{height:5px;margin:3px 0}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:22px}.dashboard-columns>section,.dashboard-columns>aside{min-width:0}.count-badge{background:var(--green-light);color:var(--green);border-radius:20px;padding:0 9px;font-size:11px}.attention-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-top:1px solid var(--line)}.attention-row:first-of-type{border:0}.attention-row>div{flex:1;min-width:0}.attention-row h3{font-size:13px}.attention-row p{font-size:11px;color:var(--muted);margin-top:3px}.attention-dot{width:6px;height:6px;background:var(--gold);border-radius:50%;flex:none}.calm-state{display:flex;align-items:center;gap:14px;padding:10px 0}.calm-state>.icon{color:#568367}.calm-state>div{flex:1}.calm-state h3{font-size:13px}.calm-state p{font-size:11px;color:var(--muted);margin-top:5px}.quiet-empty{color:var(--muted);font-size:12px;padding:18px 0;line-height:1.9}.schedule-row{display:flex;gap:13px;align-items:center;padding:16px 0;border-top:1px solid var(--line)}.schedule-row:first-of-type{border:0}.schedule-row>div{flex:1;min-width:0}.schedule-row h3{display:flex;gap:7px;font-size:13px;align-items:center}.schedule-row p{font-size:11px;color:var(--muted);margin:4px 0 8px}.schedule-row>strong{font-size:12px;font-weight:500;white-space:nowrap;color:var(--green)}.schedule-icon{width:33px;height:33px;display:grid;place-items:center;background:var(--green-light);color:#6c8064;border-radius:8px}.schedule-row .progress{height:4px}.personal-skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px}.personal-skill .split{font-size:12px}.personal-skill .split span{color:var(--green)}.personal-skill .progress{height:5px;margin:10px 0 6px}.personal-skill small{font-size:10px;color:var(--muted)}.shortcut-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shortcut-grid a{display:flex;align-items:center;gap:7px;padding:12px 8px;border:1px solid var(--line);border-radius:6px;font-size:11px}.shortcut-grid a>.icon:first-child{width:17px;color:var(--green)}.shortcut-grid a>.icon:last-child{width:12px;margin-left:auto}.shortcut-grid a:hover{background:var(--green-light)}.buff-row{display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}.buff-row strong{font-size:12px;font-weight:500}.buff-row small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.buff-row>.icon{color:var(--gold)}.storage-row{display:block;padding:12px 0;border-top:1px solid var(--line)}.storage-row .split{font-size:11px}.storage-row .split span{font-variant-numeric:tabular-nums;color:var(--muted)}.storage-row .progress{height:4px;margin:8px 0 4px}.storage-row small{font-size:10px;color:var(--muted)}.storage-row small .icon{width:12px;height:12px;float:right}.brief-message{padding:12px 0;border-top:1px solid var(--line)}.brief-message time{font-size:10px;color:var(--muted)}.brief-message h3{font-size:12px;margin:3px 0}.brief-message p{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.unread-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--gold);margin-right:6px}
.exchange-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px;align-items:start}.item-browser{padding:0!important;position:sticky;top:18px;overflow:hidden}.item-browser-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 16px 0}.item-browser-heading h2{font-size:14px}.market-search{display:block;padding:14px 12px}.market-search input{width:100%;background:#f6f5ef;border:1px solid var(--line);border-radius:5px;padding:9px 10px;font-size:12px;color:var(--ink)}#market-items{max-height:480px;overflow-y:auto;scrollbar-width:thin}.item-category>summary{font-size:11px;font-weight:600;color:#718073;cursor:pointer;padding:11px 16px;background:#f7f6f1;list-style:inside}.item-category>summary span{float:right;font-size:10px;font-weight:400}.item-tree-row{display:flex;align-items:center;gap:10px;padding:12px 16px;font-size:12px;border-left:3px solid transparent}.item-tree-row>.icon{width:18px;height:18px;color:#82947d}.item-tree-row small{margin-left:auto;color:#9ba494;font-size:10px}.item-tree-row.selected{background:#edf0e4;border-left-color:var(--gold);color:#37594c;font-weight:650}.item-tree-row:hover{background:#f2f2e9}.item-browser-tip{padding:16px;border-top:1px solid var(--line);font-size:10px!important;line-height:1.8}.watch-list{border-bottom:1px solid var(--line);padding:0 0 8px}.watch-list>h3{padding:3px 16px 8px;color:var(--gold);font-size:10px;font-weight:600}.watch-list>p{padding:0 16px}.exchange-main{min-width:0}.commodity-header{padding:22px!important}.commodity-title{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.commodity-title .eyebrow{margin-bottom:0;font-size:9px}.commodity-title h2{font-size:23px;margin-top:1px}.watch-button{font-size:11px;padding:6px 10px;border:0;background:transparent;color:var(--muted);border-radius:5px}.watch-button.watching{color:#997634;background:#f4eedf}.commodity-actions{margin-left:auto;display:flex;gap:8px}.commodity-actions .btn{min-height:36px;font-size:11px;padding:8px 12px}.exchange-filters{display:flex;align-items:end;gap:14px;margin-top:19px;flex-wrap:wrap}.exchange-filters>.field{margin:0;min-width:125px;max-width:190px;flex:1}.exchange-filters>.field select{padding:8px 9px;font-size:12px;min-height:36px}.mine-filter{display:flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap;margin-bottom:8px}.exchange-filters>.text-link{font-size:10px;margin-bottom:9px}.quote-summary{display:grid;grid-template-columns:1fr 1fr 1.3fr 1.6fr;gap:14px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.quote-summary span{display:block;font-size:10px;color:var(--muted)}.quote-summary strong{display:block;font-size:21px;font-weight:600;margin-top:4px;font-variant-numeric:tabular-nums}.quote-summary small{font-size:10px;font-weight:400;color:var(--muted)}.delivery-hint{font-size:10px;color:#788778;margin-top:15px;line-height:1.8}.delivery-hint .icon{width:14px;height:14px;margin-right:4px}.commodity-benefit{font-size:11px;color:var(--green);margin-top:8px}.order-book{padding:0!important;overflow:hidden;margin-bottom:18px}.book-title{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--line);gap:10px}.book-title>div{display:flex;align-items:center;gap:9px}.book-title h2{font-size:14px}.book-indicator{width:5px;height:17px;border-radius:3px;display:inline-block}.book-indicator.sell{background:#a78652}.book-indicator.buy{background:#4d7b72}.book-scroll{overflow-x:auto;scrollbar-width:thin}.order-book table{min-width:605px;width:100%;table-layout:auto;font-variant-numeric:tabular-nums}.order-book th{font-size:10px;font-weight:500;padding:10px 14px;background:#f6f6ef;color:#809080;white-space:nowrap}.order-book td{font-size:11px;padding:12px 14px;white-space:nowrap;border-bottom:1px solid #e8e9df}.order-book tbody tr:last-child td{border-bottom:0}.order-book .price-cell{font-size:14px;font-weight:600;color:var(--ink)}.order-book .price-cell>small{font-size:9px;font-weight:400;color:var(--muted)}.number-cell{font-variant-numeric:tabular-nums}.sort-price{border:0;padding:0;background:transparent;font-size:10px;color:var(--green)}.best-tag{display:block;font-size:9px;color:#79945e;font-weight:400;margin-top:2px}.order-source{font-size:9px;color:#849080;background:#edf0e8;border-radius:3px;padding:2px 4px;margin-left:3px}.order-source.merchant{color:#a68b57;background:#f3eee2}.merchant-row{background:#faf9f2}.my-order-row{background:#edf4ed}.delivery-note{display:block;color:var(--muted);font-size:9px}.order-book .btn.small{min-height:29px;padding:4px 10px;font-size:10px}.recent-trades{padding:20px!important}.recent-trades table{width:100%;min-width:460px}.recent-trades th,.recent-trades td{font-size:11px;padding:9px 12px}.trade-facts{display:flex;gap:20px;padding:12px 0;font-size:12px;color:var(--muted)}.trade-facts strong{color:var(--ink)}.quantity-shortcuts{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:16px}.exchange-total{margin-bottom:8px;display:block}.trade-availability,.post-availability{color:var(--muted);margin-bottom:14px}.refresh-quote{margin-top:15px}.all-orders .action-row{gap:20px}.all-orders h3{font-size:13px}.material-market-links{margin:10px 0}.max-production{align-self:end;margin-bottom:8px}.personal-stats+.dashboard-columns .panel{margin-bottom:20px}.directory-toggle{display:none}
@media(min-width:1001px){.main:has(.exchange-layout){padding-top:22px}.main:has(.exchange-layout)>.page-heading{margin-bottom:18px}.main:has(.exchange-layout)>.page-heading h1{font-size:25px}.main:has(.exchange-layout)>.page-heading .eyebrow{margin-bottom:5px}.main:has(.exchange-layout)>.page-heading .muted{font-size:12px}.commodity-header{padding:16px 20px!important}.commodity-title .large-icon{width:40px;height:40px}.commodity-title h2{font-size:20px;line-height:1.3}.exchange-filters{margin-top:11px}.exchange-filters .field>span{font-size:10px;margin-bottom:4px}.quote-summary{margin-top:12px;padding-top:10px}.quote-summary strong{font-size:19px;margin-top:2px}.delivery-hint{margin-top:8px;line-height:1.6}.book-title{padding:11px 16px}.order-book th{padding:8px 12px}.order-book td{padding:6px 12px;font-size:12px}.order-book .btn.small{min-height:25px;padding:3px 9px}.order-book .price-cell{font-size:14px}}
@media(max-width:1200px){.personal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-columns{grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr)}.exchange-layout{grid-template-columns:170px minmax(0,1fr);gap:15px}.commodity-actions{flex-basis:100%;margin-left:0;margin-top:5px}.quote-summary{grid-template-columns:1fr 1fr;row-gap:13px}.profile-actions{flex-direction:column}.shortcut-grid{grid-template-columns:1fr}.personal-stat{min-height:180px}}
@media(max-width:1000px){.dashboard-columns{grid-template-columns:1fr}.dashboard-columns>aside{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.exchange-layout{grid-template-columns:150px minmax(0,1fr)}.commodity-header{padding:18px!important}.book-title{padding:14px}.exchange-filters>.text-link{flex-basis:100%;margin-bottom:0}.citizen-banner{padding:23px;gap:15px}.profile-avatar{width:56px;height:56px;font-size:25px}.profile-actions .btn{font-size:11px;padding:8px 12px}}
@media(max-width:720px){.citizen-banner{padding:20px;flex-wrap:wrap;gap:13px}.citizen-identity h2{font-size:23px}.citizen-identity .eyebrow{font-size:8px}.profile-actions{flex-direction:row;margin-left:0;flex-basis:100%;margin-top:5px}.profile-actions .btn{min-height:34px;padding:7px 11px}.personal-stats{gap:10px;margin-bottom:15px}.personal-stat{padding:16px!important;min-height:188px}.personal-stat h2{font-size:25px}.personal-stat h2 small{font-size:9px}.personal-stat p{font-size:10px;line-height:1.85}.personal-stat>.text-link{font-size:10px}.dashboard-columns{gap:0}.dashboard-columns>aside{display:block}.attention-row{gap:8px;flex-wrap:wrap}.attention-row .btn{margin-left:14px}.calm-state{flex-wrap:wrap}.calm-state>.btn{margin-left:35px}.schedule-row{gap:9px}.schedule-row>strong{font-size:10px}.schedule-row h3{font-size:12px}.personal-skills{gap:20px}.shortcut-grid{grid-template-columns:1fr 1fr}.exchange-layout{display:block}.item-browser{position:static;margin-bottom:14px!important}.item-browser-heading{padding:14px 16px}.item-browser:not(.directory-expanded) .market-search,.item-browser:not(.directory-expanded) #market-items,.item-browser:not(.directory-expanded) .item-browser-tip{display:none}.directory-toggle{display:block;border:0;background:none;font-size:12px;color:var(--green);padding:3px 0}.item-browser-heading>.tiny{display:none}#market-items{max-height:310px}.item-browser-tip{padding:10px 16px}.commodity-title{gap:10px}.commodity-title .large-icon{width:42px;height:42px}.commodity-title h2{font-size:22px}.watch-button{margin-left:auto;font-size:10px}.commodity-actions{margin-top:8px}.commodity-actions>.btn{flex:1}.exchange-filters{gap:12px}.exchange-filters>.field{min-width:115px;max-width:none}.exchange-filters>.mine-filter{margin-bottom:0}.exchange-filters>.text-link{flex-basis:auto;margin-left:auto}.quote-summary{gap:14px}.quote-summary strong{font-size:20px}.delivery-hint{font-size:10px}.book-title>div>.muted{font-size:10px}.book-title>.tiny{font-size:10px}.order-book th,.order-book td{padding:10px 12px}.recent-trades .section-title{flex-wrap:wrap;gap:5px}.personal-stat .progress{margin-top:0}.max-production{padding:7px!important}.work-quote{flex-basis:100%}}
