.an-home{color:#e9eaf0}.an-home-top{display:flex;gap:30px;margin:8px 0 24px;align-items:stretch}.an-tiles{display:flex;gap:10px}.an-tile{width:96px;height:106px;border:1px solid #4c4e5a;border-top-color:#89909b;border-radius:13px;background:linear-gradient(#30323d,#282a35);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#a6b2c6;text-decoration:none;box-shadow:0 3px 0 #191c25}.an-tile b{font-size:12px;color:#e4e5eb}.an-tile svg{width:40px;height:40px}.an-tile.goals{color:#be9399}.an-tile.bank{color:#c6b986}.an-progress{width:60px;height:3px;background:#41414b;margin-top:2px}.an-payments{flex:1;padding:14px 18px;background:#2b2e39;border:1px solid #41434f;border-top-color:#8d8660;border-radius:14px;font-size:13px}.an-payments header,.an-home-chart header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.an-payments h3{margin:0;font-size:15px}.an-home button,.analytics-board button,.an-modal button{color:inherit;background:#343744;border:1px solid #4a4e5e;border-radius:6px;padding:5px 9px;cursor:pointer;font-size:12px}.an-home button:hover,.analytics-board button:hover,.an-modal button:hover{background:#424654}.an-home-chart{padding:20px;background:#292c37;border:1px solid #41444f;border-radius:15px}.an-home-chart .an-title-link{font-size:19px;font-weight:700;background:none;border:0;padding:0}.an-home-chart [data-board] svg{width:16px;height:16px;vertical-align:middle}.an-home-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.an-home-controls>div{margin-right:auto}.an-home input,.an-modal input,.an-modal select{padding:6px;background:#222631;color:#e5e7ed;border:1px solid #454959;border-radius:5px;min-width:0}.an-home-controls label{font-size:12px;display:flex;gap:8px;align-items:center}.an-home-plot{min-height:350px}.an-home-chart>small{color:#959ba9;font-size:11px}.an-open{overflow:hidden}.analytics-board{position:fixed;inset:0;background:#20232c;color:#e4e6ec;z-index:5000;font-size:13px;font-family:inherit}.an-toolbar{height:64px;background:#262936;border-bottom:1px solid #444653;display:flex;align-items:center;gap:12px;padding:0 20px}.an-toolbar>nav{margin-left:auto;display:flex;gap:8px}.an-toolbar strong{white-space:nowrap}.an-save{font-size:11px;color:#adb3c1}.analytics-board .an-icon,.an-modal .an-icon{width:30px;height:30px;padding:6px;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;flex-shrink:0}.an-icon svg{width:17px;height:17px}.an-viewport{height:calc(100% - 64px);overflow:auto;position:relative}.an-canvas{position:relative;min-width:100%;min-height:100%;width:max-content;height:max-content;padding-right:60px;padding-bottom:60px}.an-window,.an-note{position:absolute;border:1px solid #555967;border-radius:11px;background:#282c38;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 8px 22px #0002;min-width:260px;min-height:240px}.an-window.active{border-color:#a39968}.an-titlebar{height:40px;min-height:40px;display:flex;align-items:center;background:#363c49;padding:3px 7px;gap:3px;cursor:grab;touch-action:none}.an-titlebar input{font:inherit;color:inherit;background:transparent;border:0;min-width:0;flex:1;outline-offset:1px;padding:3px}.an-titlebar .an-icon{width:23px;height:24px;padding:4px}.an-titlebar .an-icon svg{width:14px;height:14px}.an-titlebar button:disabled{opacity:.25;cursor:not-allowed}.an-titlebar [aria-pressed=true]{color:#dfbe78}.an-grip{color:#939bac;padding:0 4px}.an-dot{width:6px;height:6px;background:#ca9b60;border-radius:50%;display:none;flex-shrink:0}.an-window.active .an-dot{display:block}.an-configbar{display:flex;align-items:center;gap:4px;padding:6px 10px;border-bottom:1px solid #3c4250;min-height:35px}.an-summary{flex:1;font-size:10px;color:#b4bfcd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.an-chart{padding:9px 12px;flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}.an-window.collapsed{min-height:40px}.collapsed .an-configbar,.collapsed .an-chart,.collapsed .an-resize{display:none}.an-source{font-size:10px;color:#a7acbb;margin-bottom:6px}.an-empty{margin:auto;max-width:540px;line-height:1.7;color:#afb6c5;text-align:center}.an-legend{display:flex;gap:15px;flex-wrap:wrap;font-size:10px;margin-bottom:7px}.an-legend>span:before{content:'';display:inline-block;background:var(--series);width:6px;height:6px;border-radius:50%;margin-right:5px}.an-legend small{display:block;color:#aeb6c8}.an-plot{position:relative;flex:1;min-height:160px}.an-plot>svg{width:100%;height:100%;min-height:180px;touch-action:none}.an-plot text{fill:#9ba8bc;font-size:12px}.an-grid{stroke:#404653;stroke-width:1}.an-crosshair{stroke:#99a1b4;stroke-dasharray:3 4}.an-brush{fill:#889fc02a;pointer-events:none}.an-tooltip{position:absolute;top:30px;z-index:2;background:#171c27f5;border:1px solid #596379;border-radius:6px;padding:8px;pointer-events:none;font-size:11px;min-width:200px}.an-tooltip>div{margin:4px}.an-resize{position:absolute;right:0;bottom:0;width:15px;height:15px!important;padding:0!important;border:0!important;background:linear-gradient(135deg,transparent 65%,#8c94a5 68%,transparent 72%,transparent 80%,#8c94a5 83%,transparent 88%)!important;cursor:nwse-resize;touch-action:none}.an-note{min-width:140px;min-height:100px;border-color:#7a7763;background:rgba(var(--note-rgb),var(--note-alpha));--note-rgb:91,84,52;color:#f1eee4}.an-note[data-color=blue]{--note-rgb:61,79,100}.an-note[data-color=green]{--note-rgb:56,84,66}.an-note[data-color=rose]{--note-rgb:95,65,78}.an-note .an-titlebar{height:28px;min-height:28px;background:#0001;padding:1px 3px}.an-note .an-grip{padding:0 1px;font-size:10px}.an-note .an-titlebar input{font-size:11px}.an-note .an-titlebar button{width:19px;height:22px;padding:3px}.an-note textarea{flex:1;min-height:15px;resize:none;padding:7px 9px;background:transparent;border:0;color:inherit;font:inherit;font-size:12px;overflow:auto}.an-note footer{height:25px;min-height:25px;display:flex;align-items:center;gap:6px;padding:2px 10px 3px 7px}.an-note footer>div{display:flex;gap:3px}.an-note [data-color]{width:10px;height:10px;border-radius:50%;padding:0;border:1px solid #ffffff44;background:#b5a474}.an-note [data-color=blue]{background:#90aab9}.an-note [data-color=green]{background:#9ab99b}.an-note [data-color=rose]{background:#be91a6}.an-note input[type=range]{appearance:none;flex:1;min-width:25px;height:2px;background:#d3d4cb88;padding:0;border:0}.an-note input[type=range]::-webkit-slider-thumb{appearance:none;width:8px;height:8px;border-radius:50%;background:#eeefe7}.an-note[hidden]{display:none}.an-modal{position:fixed;inset:0;background:#090d15b8;display:flex;align-items:center;justify-content:center;z-index:6000;color:#e4e6ed;padding:14px}.an-modal>section{background:#2b2f3b;border:1px solid #515768;border-radius:13px;width:580px;max-width:100%;max-height:94vh;display:flex;flex-direction:column;box-shadow:0 15px 70px #0007}.an-modal header{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;border-bottom:1px solid #444a59}.an-modal h2{font-size:16px;margin:0}.an-modal-body{padding:15px 18px;overflow:auto;font-size:12px}.an-modal label{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;font-size:12px}.an-modal label:has(input[type=checkbox]){flex-direction:row;align-items:center}.an-modal fieldset{border:0;padding:0;margin:10px 0;display:flex;gap:14px;flex-wrap:wrap}.an-modal legend{margin-bottom:7px}.an-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.an-select-tools{display:flex;gap:8px;align-items:center;margin:5px 0}.an-skus{max-height:160px;overflow:auto;border:1px solid #424958;border-radius:6px;padding:8px;margin:8px 0 14px}.an-skus small,.an-list small,.an-table small{display:block;color:#a4acbd;font-size:10px}.an-modal footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:12px}.an-modal footer small{margin-right:auto;color:#b4bac6}.an-error{color:#e9a4a4}.an-list{display:flex;flex-direction:column;gap:7px}.an-list button{text-align:left;padding:10px}.an-table{overflow:auto}.an-table table{border-collapse:collapse;width:100%;font-size:11px}.an-table td,.an-table th{padding:8px;border-bottom:1px solid #404656;text-align:left}.an-table button{background:none;border:0}.an-home-plot .an-plot{height:310px}.an-home-plot .an-source{margin-top:15px}@media(max-width:700px){.an-home-top{flex-wrap:wrap;gap:18px}.an-payments{min-width:260px}.an-toolbar{gap:4px;padding:0 7px}.an-toolbar strong{font-size:13px}.an-save{max-width:70px;font-size:9px}.an-retry{max-width:70px;font-size:9px!important}.an-toolbar>nav{gap:0}.an-toolbar .an-icon{width:27px}.an-form-grid{gap:8px}.an-modal-body{padding:10px}.an-home-chart{padding:12px}.an-home-controls label{flex:1}.an-home-controls input{width:120px}.an-tiles{gap:8px}.an-tile{width:88px}}
/* Approved v11 home: compact tiles and a single aligned overview toolbar. */
.an-home-heading>span{font-size:12px;color:var(--muted,#a1a5b3);text-transform:capitalize}
.an-home-top{gap:32px;align-items:flex-start}.an-tile{position:relative;overflow:hidden;isolation:isolate}.an-tile:after{content:'';position:absolute;inset:18% -12% -20%;z-index:-1;background:linear-gradient(25deg,transparent 35%,#ffffff04 36%,#ffffff04 62%,transparent 63%);transform:rotate(-12deg)}.an-tile.goals{border-top-color:#be9399}.an-tile.bank{border-top-color:#c6b986}.an-tile svg{width:44px;height:44px}.an-payments{min-height:106px;box-sizing:border-box;max-width:100%}.an-payments header{margin-bottom:12px}.an-payments [data-payment-list]{color:#aeb3c1;font-size:12px;line-height:1.6}
.an-home-chart header{margin-bottom:14px}.an-home [data-board]{display:grid;place-items:center;width:30px;height:30px;padding:5px;border:0;background:none}.an-home-controls{display:flex;justify-content:space-between;align-items:center;gap:12px}.an-home-controls>.an-metric-tabs{display:flex;gap:2px;padding:3px;background:#222530;border-radius:8px;margin:0}.an-home .an-metric-tabs button{border:0;background:transparent;font-size:11px;padding:6px 9px;white-space:nowrap}.an-home .an-metric-tabs button[aria-pressed=true]{background:#414453;box-shadow:0 1px 3px #0003}.an-home-controls>.an-home-dates{display:flex;gap:10px;align-items:center;margin:0}.an-home-dates> :is(label,div){display:flex!important;flex-direction:row!important;gap:5px;font-size:11px;margin:0!important;width:auto!important}.an-home-dates .date-control{width:138px}.an-home-dates .date-text{font-size:11px;height:30px;box-sizing:border-box;padding:5px 29px 5px 7px}.an-home-dates .date-picker{width:25px;height:25px;padding:4px;right:2px;border:0;background:transparent}.an-home-dates .date-picker svg{width:15px;height:15px}.an-home-plot{min-height:0;height:330px;display:flex;flex-direction:column;margin-top:16px}.an-home-plot>.an-source{margin-top:0}.an-home-plot .an-empty{width:min(90%,490px);font-size:13px}.an-home-chart>small{display:block;margin-top:10px}.an-board-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px;color:#aeb6c5;text-align:center}.an-board-empty[hidden]{display:none}.an-board-empty h2{font-size:18px;color:#e4e6ec}.an-board-empty p{max-width:340px;line-height:1.7}.an-board-empty button{margin-top:8px}
/* The two creation affordances share the same Add dialog. */
.analytics-board .an-board-add.an-board-add--toolbar,.analytics-board .an-board-add.an-board-add--empty{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;border:0;border-radius:9px;background:var(--yellow,#ffcf4d);color:#26212d;box-shadow:none}
.analytics-board .an-board-add.an-board-add--toolbar{width:36px;height:36px;padding:7px}
.analytics-board .an-board-add.an-board-add--empty{min-height:36px;padding:7px 12px;font-weight:700}
.analytics-board .an-board-add svg{width:18px;height:18px;flex:none}
.analytics-board .an-board-add:not(:disabled):hover{filter:brightness(1.07)}
.analytics-board .an-board-add:focus-visible{outline:2px solid var(--yellow,#ffcf4d);outline-offset:3px}
.analytics-board .an-board-add:disabled{opacity:.55;cursor:not-allowed}
.analytics-board [data-action=refresh-orders]{color:var(--yellow)}
.analytics-board [data-action=refresh-orders][hidden]{display:none}

.analytics-board button:disabled{opacity:.4;cursor:wait}
@media(max-width:900px){.an-home-controls{flex-wrap:wrap}.an-home-dates{margin-left:auto!important}.an-home-top{gap:20px}.an-home-chart{padding:18px}}
@media(max-width:600px){.an-home-top{flex-direction:column;gap:20px}.an-payments{width:100%;min-width:0}.an-home-dates{width:100%;justify-content:space-between;margin:0!important;gap:6px!important}.an-home-dates> :is(label,div){flex:1;min-width:0}.an-home-dates .date-control{width:100%;min-width:0}.an-home-chart{padding:12px}.an-home-plot{height:280px}.an-home-dates .date-text{font-size:10px}.an-home-heading>span{font-size:10px}}

.an-source-control{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;font-size:11px;color:#b8c0cf;margin:0 0 12px}.an-source-control select{font:inherit;padding:5px 8px;color:#e4e6ed;background:#303541;border:1px solid #535a69;border-radius:6px;max-width:220px}.an-toolbar .an-source-control{margin:0}.an-toolbar .an-source-control select{max-width:185px}.an-toolbar .an-source-control:has(option[value=demo]:checked){color:#e2c68c}.an-home .an-source-control:has(option[value=demo]:checked){color:#e2c68c}.an-source:has(+.an-legend){line-height:1.5}
@media(max-width:700px){.an-toolbar{height:auto;min-height:64px;flex-wrap:wrap;padding:8px;gap:6px}.an-toolbar .an-source-control{order:3;width:100%;justify-content:flex-end}.an-toolbar .an-source-control select{max-width:230px}.an-viewport{height:calc(100% - 100px)}.an-toolbar>nav{gap:0}.an-toolbar .an-save{max-width:70px}.an-toolbar>strong{font-size:12px}}

/* The toolbar may wrap; give the scrollable canvas the remaining height. */
.analytics-board{display:flex;flex-direction:column}.an-toolbar{flex-shrink:0}.analytics-board .an-viewport{flex:1;min-height:0;height:auto}
/* Compact home shortcuts: reordering keeps each tile's native navigation. */
.an-shortcuts{position:relative;flex:none;padding-bottom:16px}.an-shortcuts .an-tiles{gap:12px}.an-shortcuts .an-tile{box-sizing:border-box;width:96px;height:106px;transition:transform .16s ease,box-shadow .16s ease;transform-origin:center;cursor:grab}.an-shortcuts .an-tile:hover,.an-shortcuts .an-tile:focus-visible{transform:scale(1.07);box-shadow:0 5px 16px #0003;z-index:1}.an-shortcuts .an-tile.dragging{opacity:.5}.an-tile.tasks{color:#b0accb;border-top-color:#b0accb}.an-shortcuts .an-order{position:absolute;right:0;bottom:-9px;border:0;background:transparent;color:#aeb3c1;font-size:17px;padding:0 4px}.an-home-top .an-payments{flex:0 1 420px;min-width:230px;min-height:106px;margin-left:auto;padding:12px 16px}.an-order-list>div{display:flex;align-items:center;gap:8px;padding:8px 0}.an-order-list span{flex:1}.an-order-list button:disabled{opacity:.3}.an-home-top{flex-wrap:wrap}.an-shortcuts .an-progress:empty{background:#41414b}@media(max-width:600px){.an-shortcuts{width:100%}.an-shortcuts .an-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.an-shortcuts .an-tile{width:100%;height:96px}.an-home-top .an-payments{flex:1 1 100%;min-width:0}.an-shortcuts .an-tile svg{width:36px;height:36px}}@media(prefers-reduced-motion:reduce){.an-shortcuts .an-tile{transition:none}}

.an-shortcuts .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* #256: size the payment column from the available home area, not the window. */
.an-home{container-type:inline-size}.an-home-top{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start}.an-shortcuts{width:100%;min-width:0}.an-shortcuts .an-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}.an-shortcuts .an-tile{width:100%;min-width:0}.an-home-top .an-payments{width:320px;min-width:0;max-width:none;margin-left:0;justify-self:end}.an-payments header{gap:12px}.an-payments h3{min-width:0}.an-home .an-payments-open{display:grid;place-items:center;width:28px;height:28px;padding:4px;border:0;background:transparent;flex:none}.an-payments-open svg{width:16px;height:16px}.an-payment-list{display:grid}.an-payment-row{display:grid;grid-template-columns:minmax(58px,auto) minmax(0,1fr);gap:10px;align-items:start;padding:9px 0;border-bottom:1px solid #41434f}.an-payment-row:first-child{padding-top:0}.an-payment-row:last-child{padding-bottom:0;border-bottom:0}.an-payment-row time{color:#c6b986;white-space:nowrap}.an-payment-detail{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-width:0}.an-payment-detail b{font-weight:500;overflow-wrap:anywhere}.an-payment-detail strong{text-align:right;overflow-wrap:anywhere;min-width:0}
@container (max-width:700px){.an-home-top{grid-template-columns:minmax(0,1fr) 248px;gap:20px}.an-home-top .an-payments{width:248px}.an-payment-detail{grid-template-columns:1fr}.an-payment-detail strong{text-align:left}}
@container (max-width:560px){.an-home-top{grid-template-columns:minmax(0,1fr);gap:20px}.an-home-top .an-payments{width:100%;justify-self:stretch}.an-payment-detail{grid-template-columns:minmax(0,1fr) auto}.an-payment-detail strong{text-align:right}}

/* #258 approved POLYGON home: dedicated shell, five portfolio entry tiles. */
.home-wordmark,.home-profile-trigger,#home-arrange{display:none}
.home-shell .sidebar{visibility:hidden;pointer-events:none;transform:translateX(-100%)}
.home-shell .main{margin-left:0}
.home-shell .topbar{height:82px;min-height:82px;padding:0 clamp(20px,4vw,54px);background:#242630;border-bottom:1px solid #434555}
.home-shell .breadcrumb{display:none}
.home-shell .home-wordmark{display:flex;align-items:center;gap:10px;color:#f2f1f7;font-size:18px;letter-spacing:.2px;flex:none;align-self:center}
.home-shell .home-wordmark img{width:34px;height:34px;object-fit:contain}
.home-shell .home-wordmark strong{font-weight:750}
.home-shell #home-arrange,.home-shell .home-profile-trigger{display:grid}
.home-shell #home-arrange[aria-pressed=true]{color:#f9bd12;background:#3b3553;box-shadow:0 0 0 1px #f9bd1266}
.home-shell .home-profile-trigger{place-items:center;border:0;background:transparent;padding:0;border-radius:50%}
.home-shell .home-profile-trigger .avatar{background:#45405d;color:#f3cb66}
.home-shell #content{max-width:1840px;padding:28px clamp(18px,4vw,46px) 40px;min-height:calc(100vh - 82px)}
.home-shell .profile-popover{left:auto;right:24px;top:70px;bottom:auto;visibility:visible;pointer-events:auto}
.home-shell .an-home-top{grid-template-columns:minmax(0,1fr) 320px;gap:38px;align-items:start}
.home-shell .an-shortcuts{padding:0}
.home-shell .an-shortcuts .an-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 16px;max-width:482px}
.home-shell .an-shortcuts .an-tile{position:relative;width:100%;height:auto;min-height:0;aspect-ratio:4/3;padding:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px solid #4b4e5b;border-top-color:#737886;border-radius:20px;background:linear-gradient(14deg,#292b37,#30323e);color:#cbd0dc;box-shadow:0 5px 0 #191c26;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:pan-y;transition:transform .16s ease,background .16s ease,border-color .16s ease;overflow:hidden}
.home-shell .an-shortcuts .an-tile:after{content:'';position:absolute;inset:0;background:linear-gradient(18deg,transparent 28%,#ffffff03 29% 55%,transparent 56%);pointer-events:none}
.home-shell .an-tile-art{display:grid;place-items:center;width:66px;height:66px;color:#afb5c4;transition:transform .16s ease,color .16s ease}
.home-shell .an-tile-art svg{width:52px;height:52px}
.home-shell .an-tile b{font-size:14px;color:#e6e6ee;line-height:1.2}
.home-shell .an-shortcuts .an-tile:hover,.home-shell .an-shortcuts .an-tile:focus-visible{transform:translateY(-3px);background:linear-gradient(14deg,#303240,#383746);box-shadow:0 7px 0 #191c26;z-index:1}
.home-shell .an-shortcuts .an-tile:hover .an-tile-art,.home-shell .an-shortcuts .an-tile:focus-visible .an-tile-art{color:#f9bd12;transform:scale(1.08)}
.home-shell .an-shortcuts.arranging .an-tile{cursor:grab;touch-action:none}
.home-shell .an-shortcuts.arranging .an-tile:active{cursor:grabbing}
.home-shell .an-shortcuts .an-tile.dragging{opacity:.42;transform:none}
.home-shell .an-shortcuts .an-tile.drop-target{border-color:#f9bd12;background:#f9bd1212}
.an-drag-dot{display:none;position:absolute;right:10px;top:8px;color:#f9bd12;font-size:17px;line-height:1}
.arranging .an-drag-dot{display:block}
.home-shell .an-home-top .an-payments{width:320px;min-height:150px;padding:18px 20px;border-radius:20px;background:#2d303c;border-color:#414453;align-self:start}
.home-shell .an-payments h3{font-size:15px}
.home-shell .an-home-chart{margin-top:28px;padding:21px 23px 14px;border-radius:18px;background:#292c37;border-color:#414453}
.home-shell .an-home-chart .an-title-link{font-size:18px}
.home-shell .an-home-plot{height:clamp(274px,38cqw,420px)}
@container (min-width:1100px){.home-shell .an-home-plot{height:clamp(420px,38cqw,510px)}}
.an-home-links{display:grid;gap:8px}.an-home-links button{padding:13px;text-align:left;border-radius:9px}
@media(max-width:900px){.home-shell .an-home-top{grid-template-columns:minmax(0,1fr) 320px;gap:24px}.home-shell .an-shortcuts .an-tiles{gap:14px 10px}.home-shell .an-tile-art{width:58px;height:58px}.home-shell .an-tile-art svg{width:46px;height:46px}}
@container (max-width:700px){.home-shell .an-home-top{grid-template-columns:minmax(0,1fr) 248px;gap:20px}.home-shell .an-home-top .an-payments{width:248px}}
@container (max-width:560px){.home-shell .an-home-top{grid-template-columns:minmax(0,1fr)}.home-shell .an-home-top .an-payments{width:100%}.home-shell .an-shortcuts .an-tiles{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}.home-shell .an-shortcuts .an-tile{border-radius:17px;padding:5px}.home-shell .an-tile-art{width:48px;height:48px}.home-shell .an-tile-art svg{width:40px;height:40px}.home-shell .an-tile b{font-size:11px}.home-shell .an-home-chart{padding:16px 13px 10px}}
@media(max-width:580px){.home-shell .topbar{padding:0 16px}.home-shell .header-tools{gap:2px}.home-shell .header-tools #notifications-trigger,.home-shell .header-tools #settings-trigger,.home-shell #home-arrange{width:38px;height:38px;min-width:38px;padding:8px}.home-shell .home-wordmark strong{display:none}.home-shell .home-wordmark img{width:32px;height:32px}.home-shell #content{padding-inline:14px}}
@media(prefers-reduced-motion:reduce){.home-shell .an-shortcuts .an-tile{transition:none}.home-shell .an-shortcuts .an-tile:hover{transform:none}}

/* GitHub-style chart treatment: keep POLYGON colours while matching its clean grid and hover detail. */
.an-legend{gap:20px;font-size:11px;margin:10px 0 12px}
.an-legend>span:before{width:24px;height:3px;border-radius:3px;margin:0 7px 3px 0}
.an-legend b,.an-tooltip{font-variant-numeric:tabular-nums}
.an-legend small{margin:3px 0 0 31px}
.an-plot{isolation:isolate}
.an-plot>svg{overflow:visible}
.an-grid{stroke:#4b5260;stroke-width:1;vector-effect:non-scaling-stroke}
.an-grid-vertical{opacity:.42}
.an-grid-horizontal{opacity:.72}
.an-series-line{stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.an-bar{vector-effect:non-scaling-stroke}
.an-crosshair{stroke:#8c96a8;stroke-width:1;stroke-dasharray:none;vector-effect:non-scaling-stroke}
.an-brush{fill:#2f81f726}
.an-active-point{position:absolute;z-index:3;width:12px;height:12px;border-radius:50%;background:var(--series);border:2px solid #f0f6fc;box-shadow:0 0 0 5px color-mix(in srgb,var(--series) 22%,transparent);transform:translate(-50%,-50%);pointer-events:none}
.an-tooltip{z-index:4;top:auto;background:#171b24f7;border-color:#667083;border-radius:9px;padding:10px 12px;box-shadow:0 8px 24px #0006;min-width:220px;max-width:min(320px,calc(100% - 16px))}
.an-tooltip>strong{display:block;margin-bottom:6px;font-size:12px;color:#f0f3f8}
.an-tooltip>div{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:5px 0}
.an-tooltip-name{display:flex;align-items:center;min-width:0}
.an-tooltip-name i{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--series);margin-right:7px}
.an-tooltip b{white-space:nowrap;color:#f0f3f8}
.an-home-plot .an-plot{height:330px}
html[data-theme=light] .an-grid{stroke:#d0d7de}
html[data-theme=light] .an-plot text{fill:#57606a}
html[data-theme=light] .an-tooltip{background:#fff;color:#24292f;border-color:#d0d7de;box-shadow:0 8px 24px #8c959f33}
html[data-theme=light] .an-tooltip>strong,html[data-theme=light] .an-tooltip b{color:#24292f}
@media(max-width:700px){.an-payments{min-width:0;width:100%}.an-plot text{font-size:18px}.an-x-label[data-tick-position="1"],.an-x-label[data-tick-position="3"],.an-x-label[data-tick-position="4"]{display:none}.an-legend{gap:10px}.an-tooltip{min-width:190px}}

.sales-self-purchases{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:44px}.sales-self-purchases input{appearance:none;width:40px;height:24px;border-radius:20px;background:var(--muted);position:relative;cursor:pointer;flex-shrink:0}.sales-self-purchases input:before{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--surface,#fff);transition:transform .12s}.sales-self-purchases input:checked{background:var(--gold,#ffbf00)}.sales-self-purchases input:checked:before{transform:translateX(16px)}

/* Inventory uses the common cards, spacing and confirmed-value hierarchy. */
.inventory-home-value{display:flex;flex-direction:column;gap:20px;color:inherit;text-decoration:none;height:100%;justify-content:center}
.inventory-home-value strong,.inventory-total strong{color:#ffca28;font-size:clamp(22px,2vw,36px);font-weight:800;font-variant-numeric:tabular-nums}
.inventory-home-value small{color:var(--muted,#adb0c0)}
.inventory-total{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 0}
.inventory-cards{display:grid;gap:20px}.inventory-card{padding:24px;border:1px solid #45465b;border-radius:18px;background:#2d2f3e}
.inventory-card header{display:flex;justify-content:space-between;gap:20px;align-items:center}.inventory-card h2{font-size:20px;margin:0;overflow-wrap:anywhere}
.inventory-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:20px}.inventory-stages section{border-top:1px solid #45465b;padding-top:12px}.inventory-stages h3{font-size:16px;color:#b4b6c5}.inventory-card .muted{font-size:13px;margin-top:20px}
@media(max-width:700px){.inventory-stages{grid-template-columns:1fr}.inventory-card header,.inventory-total{align-items:flex-start;flex-direction:column}}

/* #306: one compact row and a draft range; operational date fields remain. */
.an-home-chart{position:relative}.an-home-chart-toolbar{gap:16px;margin-bottom:12px!important}.an-home-chart-toolbar select{max-width:65%;padding:8px 12px;border:1px solid #454959;background:#252834;color:inherit;border-radius:8px;font:inherit;font-size:13px}.an-home-chart-actions{display:flex;gap:8px;align-items:center}
.an-home .pixel-calendar-trigger{width:30px;height:30px;display:grid;place-items:center;padding:5px;background:transparent;border:0;color:#b2a0e8}.pixel-calendar-icon{width:20px;height:20px;image-rendering:pixelated}
.an-plot .an-grid{shape-rendering:crispEdges;vector-effect:non-scaling-stroke}.an-plot .an-series-line{vector-effect:non-scaling-stroke;stroke-width:2}.an-plot text{font-size:12px!important}.an-home-plot .an-x-label{display:block!important}

.an-home-chart-toolbar .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-theme=light] .inventory-card{background:#fff;color:#24292f;border-color:#d0d7de}html[data-theme=light] .inventory-total strong,html[data-theme=light] .inventory-home-value strong{color:#a36b00}

.sales-heading{display:block}.sales-heading-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.sales-heading-row h1{margin:0}.sales-heading-row .sales-self-purchases{margin:0;flex-shrink:0;white-space:nowrap}@media(max-width:600px){.sales-heading-row{flex-wrap:wrap;gap:8px}.sales-heading-row h1{margin:0}.sales-heading-row .sales-self-purchases{margin-left:auto}}

.an-home-chart>.an-home-chart-toolbar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:16px}.an-home-chart-toolbar>select{flex:0 1 auto;min-width:0;width:auto;max-width:calc(100% - 84px)}.an-home-chart-toolbar>.an-home-chart-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;margin-left:auto;flex:0 0 auto}.an-home-chart-toolbar .pixel-calendar-trigger{width:30px;height:30px;min-width:30px;min-height:30px;padding:5px;border:0;background:transparent;color:#b2a0e8}.an-home-chart-toolbar .pixel-calendar-trigger:hover{background:#b2a0e81a}.an-home-chart-toolbar .pixel-calendar-icon{width:20px;height:20px}

/* Home: separate valuation above upcoming payments, aligned with shortcuts. */
.an-home-side{display:grid;grid-auto-rows:1fr;gap:18px;min-width:0;width:100%;align-self:start}
.an-home-side .an-payments,.home-shell .an-home-side .an-payments{box-sizing:border-box;width:100%;min-height:0;margin:0;justify-self:stretch;align-self:stretch}
.an-home-side .inventory-home-value{gap:12px;justify-content:flex-start}
.an-home-side .inventory-home-value strong.is-unconfirmed{font-size:20px;line-height:1.3}
.an-home-side .an-payments-open{color:inherit;text-decoration:none}
.an-home-side .an-payment-list{line-height:1.5}

/* Home range picker shares the dialog shell and date-calendar grid. */
.an-home-chart-toolbar [data-range]{display:flex;width:auto;max-width:100%;gap:4px;white-space:nowrap}
.an-home-chart-toolbar [data-range] [data-range-label]{font-size:11px;font-variant-numeric:tabular-nums;color:var(--ink)}
.an-home-chart-toolbar>select{max-width:none}
.an-range-picker{width:min(100%,360px);margin:auto;display:grid;gap:12px}
.an-range-picker .date-calendar-grid button{min-width:0}
.an-range-picker [data-in-range]{background:color-mix(in srgb,var(--accent,#ffca28) 22%,var(--surface))}
.an-range-picker [data-edge]:not([data-edge=""]){background:var(--accent,#ffca28);color:#20222c;font-weight:800}
.an-range-picker [aria-current=date]{text-decoration:underline}
.an-range-picker .date-calendar-grid button:disabled{text-decoration:line-through;opacity:.5}
.an-range-picker button:focus-visible{outline:2px solid var(--accent,#ffca28);outline-offset:1px}
.an-range-dates{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-variant-numeric:tabular-nums}
.an-range-dates label{display:grid;gap:4px;font-size:12px}
.an-range-dates output{font-size:14px;font-weight:600}
.an-range-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.an-range-presets button{min-width:0;padding:6px 3px;font-size:12px}
.an-range-presets button[aria-pressed=true]{border-color:var(--accent,#ffca28)}
.app-dialog-layer.an-range-layer .app-dialog{width:min(400px,100%)}
.app-dialog-layer.an-range-layer .app-dialog__body{padding-top:12px}
.an-range-picker footer{display:flex;justify-content:flex-end;gap:12px}

@container (max-width:355px){.home-shell .an-tile-art{width:38px;height:38px}.home-shell .an-tile-art svg{width:32px;height:32px}}

@container (min-width:1050px){
 .home-shell .an-home-top{
  --home-column-gap:16px;
  --home-tile-gap:12px;
  --home-tile-aspect:2.2;
  --home-tile-width:calc((100cqw - var(--home-column-gap) - 3 * var(--home-tile-gap)) / 5);
  grid-template-columns:minmax(0,1fr) var(--home-tile-width);
  column-gap:var(--home-column-gap);
 }
 .home-shell .an-shortcuts .an-tiles{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--home-tile-gap);max-width:none}
 .home-shell .an-shortcuts .an-tile{aspect-ratio:var(--home-tile-aspect);padding:5px;gap:4px}
 .home-shell .an-home-side{grid-auto-rows:auto}
 .home-shell .an-home-side .an-payments{min-height:calc(var(--home-tile-width) / var(--home-tile-aspect));padding:8px 12px}
 .home-shell .an-home-side .an-card-heading{gap:6px}
 .home-shell .an-home-side .an-payments header{margin-bottom:4px}
 .home-shell .an-home-side .an-payment-row{grid-template-columns:max-content minmax(0,1fr);gap:6px}
 .home-shell .an-home-side .an-payment-detail{grid-template-columns:minmax(0,1fr);gap:0}
 .home-shell .an-home-side .an-payment-detail strong{text-align:left}
 .home-shell .an-home-side .inventory-home-value{gap:4px;height:auto}
 .home-shell .an-home-side .inventory-home-value strong{overflow-wrap:anywhere}
 .home-shell .an-home-side .inventory-home-value strong:not(.is-unconfirmed){font-size:clamp(18px,1.6cqw,30px);line-height:1.15}
 .home-shell .an-tile-art{width:clamp(38px,3.8cqw,66px);height:auto;aspect-ratio:1}
 .home-shell .an-tile-art svg{width:79%;height:79%}
}

.home-shell .an-shortcuts [data-tile="metrics"] .an-tile-art svg{width:100%;height:100%}

.an-tooltip-blockers{margin:4px 0 8px;padding-inline-start:18px;font-size:12px;overflow-wrap:anywhere}
.an-home-chart-toolbar>[data-options]{min-width:132px;text-align:left;white-space:nowrap}.an-home-chart-actions [data-chart]{border-radius:7px;padding:5px 8px;white-space:nowrap}.an-home-chart-actions [data-chart][aria-pressed=true]{background:#4a465d;border-color:#a99ae5;color:#fff}.an-metrics-popup{left:24px;right:auto;max-height:min(460px,calc(100vh - 88px));overflow:auto}.an-metrics-popup fieldset{border:0;padding:0;margin:0;display:grid;gap:8px}.an-metrics-popup legend{font-size:13px;font-weight:700;margin-bottom:6px}.an-metrics-popup fieldset label{display:flex;gap:8px;align-items:center;font-size:12px}.an-metrics-popup select{width:100%;padding:7px;background:#222631;color:inherit;border:1px solid #454959;border-radius:5px}@media(max-width:600px){.an-home-chart>.an-home-chart-toolbar{gap:8px}.an-home-chart-toolbar>[data-options]{min-width:0}.an-home-chart-actions{gap:3px!important}.an-home-chart-actions [data-chart]{padding:5px}.an-metrics-popup{left:16px}}

.an-home-side .an-payments{position:relative}
.an-home-side .an-card-heading{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:12px;min-height:28px;font-size:15px;font-weight:700;line-height:1.2}
.an-home-side .an-card-heading h3{font-size:inherit;line-height:inherit}
.an-home-side .an-upcoming .an-payments-open::after{content:'';position:absolute;inset:0;border-radius:inherit}
.an-home-side .an-upcoming .an-payments-open:focus-visible::after{outline:2px solid currentColor;outline-offset:-3px}
.an-home-side .an-payment-row[href]{position:relative;z-index:1;color:inherit}

@media(max-width:480px){
 .an-home-chart>.an-home-chart-toolbar,
 .an-home-chart-toolbar>.an-home-chart-actions{flex-wrap:wrap}
 .an-home-chart-toolbar>.an-home-chart-actions{min-width:0;max-width:100%}
 .an-home-chart-toolbar [data-range]{white-space:normal}
 .an-home-chart-toolbar [data-range] svg{flex-shrink:0}
}

.home-wheel{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden}
.home-wheel[open]{display:grid;place-items:center}
.home-wheel::backdrop{background:transparent}
.home-wheel-surface:focus{outline:none}
/* Keep the ring visible between sectors while letting the chart show through. */
.home-wheel-options{display:block;width:min(480px,94vw,94dvh);height:auto;overflow:visible;background:radial-gradient(circle closest-side,transparent 43.75%,rgb(54 58 71 / .18) 43.75% 93.3333%,transparent 93.3333%)}
.home-wheel-choice{color:#e2e8f0;cursor:pointer;outline:none}
.home-wheel-sector{fill:#22252e;fill-opacity:.70;stroke:#363a47;stroke-width:1.5;pointer-events:fill}
.home-wheel-choice>svg,.home-wheel-choice>text{pointer-events:none}
.home-wheel-choice>svg{stroke:currentColor;stroke-width:1.5px}
.home-wheel-choice>text{fill:#fff;font:600 14px system-ui,sans-serif}
.home-wheel.wheel-pointer-moved .home-wheel-choice:hover>.home-wheel-sector,.home-wheel-choice:focus-visible>.home-wheel-sector{fill:#2a2e39;stroke:#f5c443;stroke-width:2px;filter:drop-shadow(0 0 12px rgba(245,196,67,.35))}
.home-wheel-choice:active>.home-wheel-sector{fill:#2a2e39}
.home-wheel-settings ol{display:grid;gap:8px;padding:0;list-style:none}
.home-wheel-settings li{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px}
.home-wheel-settings .wheel-sort-handle{min-width:32px;min-height:36px;padding:3px 6px;font-size:19px;cursor:grab;touch-action:none;user-select:none}
.home-wheel-settings [data-wheel-dragging]{opacity:.55}
.home-wheel-settings [data-wheel-dragging] .wheel-sort-handle{cursor:grabbing}
.home-wheel-settings [data-wheel-drop]::after{content:'';position:absolute;inset-inline:0;height:3px;border-radius:3px;background:var(--accent,#f5c443);pointer-events:none}
.home-wheel-settings [data-wheel-drop="before"]::after{top:-5px}
.home-wheel-settings [data-wheel-drop="after"]::after{bottom:-5px}
.home-wheel-settings label{display:flex;align-items:center;gap:8px}

/* Notes library only; editor windows, Bookmarks and retry retain their own styles. */
.an-notes-library .app-dialog .app-dialog__header{padding-block:14px}
.an-notes-library .app-dialog__body{display:grid;gap:14px}
.an-notes-library label.an-notes-search{display:flex;align-items:center;flex-direction:row;gap:10px;margin:0;padding:0 12px;border:1px solid var(--line,#454959);border-radius:9px;background:var(--bg,#222631);color:var(--muted,#a4acbd)}
.an-notes-search svg{width:18px;height:18px;flex:none}
.an-notes-library .an-notes-search input{flex:1;width:100%;min-height:42px;padding:0;background:transparent;border:0;color:var(--ink,#e5e7ed)}
.an-notes-library .an-notes-search:focus-within{outline:2px solid var(--yellow,#ffcf4d);outline-offset:2px}
.an-notes-empty{display:grid;justify-items:center;gap:8px;text-align:center;padding:16px 8px 10px}
.an-notes-empty>svg{width:48px;height:48px;color:var(--yellow,#ffcf4d)}
.an-notes-empty strong{font-size:1rem;color:var(--ink,#e5e7ed)}
.an-notes-empty p,.an-notes-no-results{margin:0;color:var(--muted,#a4acbd)}
.an-notes-library .an-notes-empty .an-notes-create{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:7px 12px;border:0;border-radius:9px;background:var(--yellow,#ffcf4d);color:#26212d;font-weight:700}
.an-notes-library .an-notes-create:hover{filter:brightness(1.07)}
.an-notes-library .an-notes-create:focus-visible{outline:2px solid var(--yellow,#ffcf4d);outline-offset:3px}
.an-notes-create svg{width:18px;height:18px;flex:none}
