/* The sales workspace extends Luna's existing charcoal, ivory, and gold palette. */
.sales-dashboard-heading { min-height: 150px; margin-bottom: 20px; border-radius: 12px; }
.sales-dashboard-heading h1 { font-size: clamp(30px, 3vw, 42px); letter-spacing: .4px; }
.sales-dashboard-heading .page-eyebrow { display: flex; align-items: center; gap: 9px; }
.sales-dashboard-heading .page-eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px #c9a45c70; }
.sales-overview { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 18px; gap: 14px; }
.sales-overview .metric { border-radius: 10px; min-height: 116px; padding: 19px 21px; }
.sales-overview .metric-value { font-size: 29px; }
.sales-overview .metric-footer { font-size: 11px; }
.sales-next-action { display: flex; align-items: center; gap: 15px; padding: 16px 21px; margin-bottom: 26px; border: 1px solid #665132; border-radius: 10px; background: linear-gradient(110deg,#30281b,#201e19 70%); }
.sales-next-icon { display: grid; place-items: center; border: 1px solid #75603a; background: #c9a45c12; border-radius: 10px; width: 39px; height: 39px; color: var(--gold-light); flex-shrink: 0; }
.sales-next-copy { min-width: 0; flex: 1; }
.sales-next-copy p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: #d9d0bf; overflow-wrap: anywhere; }
.sales-next-copy p span { color: #b8ac96; }
.sales-eyebrow { display: block; color: #b9a783; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.5; }
.sales-workspace { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(325px,1fr); gap: 22px; align-items: start; margin-bottom: 30px; }
.sales-sidebar { display: grid; gap: 22px; min-width: 0; }
.sales-panel { border: 1px solid #49402f; background: linear-gradient(130deg,#211f1a,#1c1b18 70%); border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px #0000000c; min-width: 0; }
.sales-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 23px 24px 18px; }
.sales-panel h2 { font-family: 'Cormorant SC',Georgia,serif; color: var(--ivory); font-size: 25px; font-weight: 600; letter-spacing: .4px; line-height: 1.2; margin: 5px 0 0; }
.sales-panel-icon { width: 39px; height: 39px; border-radius: 10px; border: 1px solid #675332; background: #c9a45c0a; display: grid; place-items: center; color: var(--gold-light); flex-shrink: 0; }
.sales-panel-icon svg { width: 20px; height: 20px; }
.leaderboard-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px 20px; }
.sales-segment { display: inline-flex; background: #151511; padding: 4px; border: 1px solid #3e382c; border-radius: 7px; gap: 3px; }
.sales-segment button { min-height: 33px; border: 1px solid transparent; border-radius: 4px; color: #bcb29f; background: transparent; padding: 6px 12px; font-size: 11px; font-weight: 500; white-space: nowrap; transition: background .15s,color .15s; }
.sales-segment button:hover { color: #eee1c8; background: #2a271f; }
.sales-segment button[aria-pressed="true"] { color: #ead3a4; background: #3b3222; border-color: #675333; box-shadow: 0 1px 4px #0003; }
.sales-sort { display: flex; gap: 13px; }
.sales-sort button { border: 0; border-bottom: 1px solid transparent; background: transparent; color: #a99f8c; font-size: 11px; padding: 8px 0; }
.sales-sort button[aria-pressed="true"] { color: var(--gold-light); border-color: var(--gold); }
.sales-podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding: 20px 30px 0; margin: 0 24px; border-top: 1px solid #c9a45c19; background: radial-gradient(ellipse at 50% 90%,#c9a45c12,transparent 70%); }
.podium-place { position: relative; display: flex; flex-direction: column; align-items: center; width: 33.333%; max-width: 200px; padding: 23px 10px 24px; text-align: center; border: 1px solid #4c4230; border-bottom: 0; border-radius: 11px 11px 0 0; background: linear-gradient(180deg,#302b21b0,#24211b); }
.podium-place-1 { order: 2; padding-top: 26px; background: linear-gradient(180deg,#4a3b22aa,#2a251b); border-color: #8c7040; min-height: 225px; }
.podium-place-2 { order: 1; min-height: 185px; }
.podium-place-3 { order: 3; min-height: 168px; }
.sales-avatar { width: 32px; height: 32px; border-radius: 50%; background: #353022; border: 1px solid #615238; color: #dec796; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; font-weight: 600; letter-spacing: .4px; }
.podium-place .sales-avatar { width: 46px; height: 46px; font-size: 15px; background: #242119; border-color: #81704e; }
.podium-place-1 .sales-avatar { width: 57px; height: 57px; font-size: 18px; color: #f3dbac; border-color: #bd995b; box-shadow: 0 0 0 5px #c9a45c0c; }
.podium-crown { position: absolute; top: -20px; color: #e0bd74; background: #292317; border: 1px solid #786037; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; transform: rotate(-8deg); }
.podium-crown svg { width: 18px; height: 18px; }
.podium-rank { display: grid; place-items: center; margin-top: -9px; z-index: 1; width: 19px; height: 19px; border-radius: 50%; background: #b7995d; color: #17140f; border: 2px solid #2b261c; font-size: 9px; font-weight: 700; }
.podium-place-2 .podium-rank { background: #bdb6a5; }.podium-place-3 .podium-rank { background: #bc9675; }
.podium-name { font-size: 12px; color: #e9e2d5; font-weight: 500; margin: 12px 0 7px; line-height: 1.4; overflow-wrap: anywhere; }
.podium-name small { display: block; font-family: 'Segoe UI',sans-serif; color: #c8ae78; font-size: 9px; margin-top: 2px; }
.podium-value { font-size: clamp(16px,1.8vw,24px); font-weight: 600; color: #efdfbb; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.podium-place-1 .podium-value { color: #f0d69d; }
.podium-caption { font-size: 10px; color: #b7aa92; margin-top: 6px; }
.leaderboard-table-wrap { overflow-x: auto; }
.leaderboard-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.leaderboard-table thead { background: #171612; }
.leaderboard-table thead th { font-size: 9px; color: #b9ab8e; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; padding: 15px 16px; border-top: 1px solid #4e422d; border-bottom: 1px solid #3d3526; }
.leaderboard-table th:first-child,.leaderboard-table td:first-child { padding-left: 24px; width: 68px; }
.leaderboard-table th:last-child,.leaderboard-table td:last-child { padding-right: 24px; text-align: right; }
.leaderboard-table th:nth-child(3),.leaderboard-table td:nth-child(3) { text-align: center; width: 65px; }
.leaderboard-table tbody td,.leaderboard-table tbody th { border-bottom: 1px solid #ffffff07; padding: 13px 16px; height: 61px; color: #bfb6a4; font-weight: 400; font-variant-numeric: tabular-nums; }
.leaderboard-table .is-you { background: #c9a45c0b; }
.leaderboard-table .is-you td:first-child { box-shadow: inset 3px 0 var(--gold); }
.leader-rank { display: inline-flex; justify-content: center; min-width: 20px; color: #b8ac93; font-size: 11px; }
.leader-rank-top { color: #e4c68d; }
.leader-person { display: flex; align-items: center; gap: 11px; color: #e3dbcb; }
.leader-person>span:last-child { overflow-wrap: anywhere; }
.you-label,.inactive-label { display: inline-block; color: #cfb781; font-size: 9px; margin-left: 8px; background: #c9a45c10; border: 1px solid #655334; border-radius: 4px; padding: 2px 5px; vertical-align: middle; }
.inactive-label { color: #b9b1a5; border-color: #4c463c; background: #ffffff05; }
.leaderboard-table .leader-revenue { font-weight: 550; color: #e7dcc5; }
.leaderboard-rules { padding: 16px 24px; background: #16151166; }
.leaderboard-rules summary { cursor: pointer; color: #b1a58f; font-size: 10px; display: flex; gap: 7px; align-items: center; width: fit-content; min-height: 24px; }
.leaderboard-rules summary svg { width: 13px; height: 13px; }
.leaderboard-rules p { font-size: 11px; color: #baaf9a; line-height: 1.8; margin: 10px 0 0; max-width: 650px; }
.sales-goal .sales-panel-head { padding-bottom: 15px; }.sales-goal h2 { font-size: 23px; }
.goal-segment { margin: 0 24px; }.goal-segment button { padding: 5px 17px; }
.goal-visual { display: flex; align-items: center; gap: 22px; padding: 24px 24px 17px; }
.goal-ring { width: 126px; height: 126px; border-radius: 50%; padding: 7px; background: conic-gradient(from -90deg, #d6b576 var(--goal-progress),#3d3527 0); flex-shrink: 0; }
.goal-ring>div { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; background: #211e18; box-shadow: inset 0 0 20px #0002; }
.goal-ring strong { font-size: 29px; letter-spacing: -1px; font-weight: 500; color: #ead3a2; font-variant-numeric: tabular-nums; }
.goal-ring strong small { font-size: 15px; margin-left: 2px; }.goal-ring strong svg { width: 30px; height: 30px; }
.goal-ring>div>span { font-size: 9px; color: #bdaf92; margin-top: 6px; }.goal-ring-empty { background: #4b402c; }
.goal-amounts { min-width: 0; }.goal-amounts>strong { display: block; color: #efe6d2; font-size: clamp(22px,2vw,30px); font-weight: 500; letter-spacing: -.6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.goal-amounts>span { display: block; font-size: 11px; margin-top: 5px; color: #c1b69f; }.goal-amounts>div { margin-top: 15px; color: #a99b80; font-size: 11px; }.goal-amounts b { font-weight: 500; color: #d4c5a6; }
.goal-message { font-size: 11px; color: #c0b49c; line-height: 1.7; padding: 0 24px; margin: 0 0 20px; }
.goal-card-footer { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; padding: 13px 24px; border-top: 1px solid #493e2b; background: #1716124d; }
.goal-card-footer>span { font-size: 10px; color: #b3a68d; }.goal-card-footer .quiet-link { font-size: 11px; display: inline-flex; gap: 7px; align-items: center; min-height: 26px; }.goal-card-footer svg { width: 12px; height: 12px; }
.goal-reached { border-color: #77815a; }.goal-reached .goal-ring { background: #b6cb92; }.goal-reached .sales-panel-icon { color: #c7dba9; border-color: #69744f; background: #b6cb920b; }
.wins-live { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; color: #b3b79b; white-space: nowrap; }.wins-live>span { width: 5px; height: 5px; border-radius: 50%; background: #b0bd8e; }
.wins-list { list-style: none; padding: 0 24px; margin: 0; }.wins-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 0; border-top: 1px solid #ffffff09; }
.win-icon { color: #d6ba7e; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; border: 1px solid #5d4c2f; background: #c9a45c09; flex-shrink: 0; }.win-icon svg { width: 14px; height: 14px; }
.win-body { flex: 1; min-width: 0; }.win-body p { color: #bfb39c; font-size: 11px; line-height: 1.6; margin: 0 0 4px; overflow-wrap: anywhere; }.win-body strong { color: #e8dfcd; font-weight: 500; }.win-body>span { color: #a99b81; font-size: 10px; }.win-body .quiet-link { display: block; padding: 0; margin-top: 7px; font-size: 10px; }.win-body .quiet-link svg { width: 11px; height: 11px; }
.win-amount { font-size: 12px; font-weight: 500; color: #e4c791; padding-top: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wins-footer { border-top: 1px solid #443a28; padding: 15px 24px; font-size: 10px; color: #b6a78a; background: #1716124d; }
.sales-no-wins { text-align: center; padding: 30px 20px 36px; border-top: 1px solid #c9a45c19; margin: 0 24px; }.sales-no-wins>span { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #5f4d2f; background: #c9a45c08; border-radius: 15px; color: #d8b878; margin: 0 auto 16px; }.sales-no-wins h3 { font-family: 'Cormorant SC',Georgia,serif; font-size: 25px; color: #ece0c5; margin-bottom: 7px; font-weight: 500; }.sales-no-wins p { font-size: 12px; line-height: 1.7; color: #b8aa8f; margin-bottom: 19px; }
.wins-empty { padding: 22px 24px 30px; text-align: center; color: #bda368; }.wins-empty p { font-size: 13px; color: #dfd1b3; margin: 10px 0 5px; }.wins-empty>span { font-size: 11px; color: #b2a58e; line-height: 1.6; }
.sales-unavailable { display: flex; align-items: flex-start; gap: 18px; padding: 24px; margin-bottom: 28px; }.sales-unavailable h2 { margin: 0 0 7px; }.sales-unavailable p { color: #bcae93; line-height: 1.6; font-size: 12px; }
.day-goal-strip { display: flex; align-items: center; gap: 15px; padding: 18px 22px; margin-bottom: 23px; background: linear-gradient(110deg,#2b251a,#1f1d18); border: 1px solid #675132; border-radius: 10px; }.day-goal-icon { display: grid; place-items: center; width: 39px; height: 39px; color: #dbc38e; background: #c9a45c0a; border: 1px solid #655131; border-radius: 10px; flex-shrink: 0; }.day-goal-strip>div:first-of-type { flex: 1; }.day-goal-strip strong { font-size: 13px; font-weight: 500; color: #e7dcc5; }.day-goal-strip>div>span { display: block; color: #b7a98c; font-size: 11px; margin-top: 6px; }.day-goal-progress { width: 140px; margin: 0 14px; }.day-goal-progress>span { margin: 0 0 7px!important; color: #e2c891!important; text-align: right; }.sales-progress { height: 5px; border-radius: 6px; overflow: hidden; background: #51432b; }.sales-progress>span { display: block; height: 100%; background: #d5b372; border-radius: inherit; }.day-goal-strip .quiet-link { white-space: nowrap; font-size: 11px; min-height: 34px; }.day-goal-strip .quiet-link svg { width: 13px; height: 13px; }
.sales-goal-input { position: relative; }.sales-goal-input>span { position: absolute; left: 13px; top: 12px; color: #bba577; }.sales-goal-input input { padding-left: 28px; width: 100%; font-size: 20px; height: 49px; }.sales-goal-note { font-size: 12px; color: #b6a991; line-height: 1.8; margin: 16px 0 0; }
@media(min-width:1500px){.sales-workspace{grid-template-columns:minmax(0,1.8fr) minmax(365px,1fr)}.sales-podium{padding-left:55px;padding-right:55px}.sales-overview{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.sales-workspace{grid-template-columns:minmax(0,1.4fr) minmax(310px,1fr);gap:16px}.sales-sidebar{gap:16px}.leaderboard-controls{align-items:flex-start;flex-direction:column;gap:8px}.sales-podium{padding-left:4px;padding-right:4px;gap:8px}.sales-panel-head{padding:20px 20px 16px}.goal-visual{padding:22px 20px 16px;gap:15px}.goal-ring{width:110px;height:110px}.goal-amounts>strong{font-size:23px}.sales-panel h2{font-size:23px}.sales-goal h2{font-size:21px}.sales-overview .metric{padding:17px}.sales-overview .metric-label{font-size:11px}}
@media(max-width:860px){.sales-workspace{grid-template-columns:1fr}.sales-sidebar{grid-template-columns:1fr 1fr;align-items:start}.leaderboard-controls{flex-direction:row;align-items:center}.sales-podium{padding-left:40px;padding-right:40px}.goal-visual{flex-wrap:wrap;gap:20px}.sales-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-dashboard-heading{gap:20px}.sales-dashboard-heading .heading-actions{flex-wrap:wrap}}
@media(max-width:600px){.sales-dashboard-heading{padding:23px 21px;flex-direction:column;align-items:flex-start;background-size:auto 100%}.sales-dashboard-heading .heading-actions{align-self:stretch;justify-content:flex-start}.sales-dashboard-heading .heading-actions .btn{min-height:40px}.sales-dashboard-heading h1{font-size:32px}.sales-dashboard-heading p{max-width:260px;line-height:1.7}.sales-overview{gap:10px;margin-bottom:14px}.sales-overview .metric{padding:16px;min-height:116px}.sales-overview .metric-value{font-size:26px}.sales-overview .metric-footer{font-size:10px;line-height:1.5}.sales-next-action{padding:16px;flex-wrap:wrap;gap:12px;margin-bottom:20px}.sales-next-action .btn{margin-left:51px;min-height:36px}.sales-next-copy{flex-basis:calc(100% - 54px)}.sales-sidebar{grid-template-columns:1fr}.sales-panel-head{padding:21px 19px 17px}.sales-panel h2{font-size:25px}.sales-eyebrow{font-size:8px;letter-spacing:1.3px}.leaderboard-controls{padding:0 18px 21px;flex-wrap:wrap;gap:8px}.sales-segment button{padding:6px 10px;min-height:35px}.sales-sort{gap:12px;margin-left:auto}.sales-sort button{min-height:34px}.sales-podium{margin:0 15px;padding:19px 0 0;gap:6px}.podium-place{padding-left:5px;padding-right:5px;padding-bottom:20px}.podium-place-1{min-height:222px}.podium-place-2{min-height:183px}.podium-place-3{min-height:170px}.podium-name{font-size:11px;min-height:31px;display:flex;flex-direction:column;justify-content:center}.podium-value{font-size:18px}.podium-caption{font-size:9px}.podium-place .sales-avatar{width:40px;height:40px;font-size:13px}.podium-place-1 .sales-avatar{width:50px;height:50px;font-size:16px}.leaderboard-table th:first-child,.leaderboard-table td:first-child{padding-left:15px;width:44px}.leaderboard-table th:last-child,.leaderboard-table td:last-child{padding-right:15px}.leaderboard-table thead th{font-size:8px;padding:14px 8px}.leaderboard-table tbody td,.leaderboard-table tbody th{padding:12px 8px;font-size:11px}.leaderboard-table th:nth-child(3),.leaderboard-table td:nth-child(3){width:38px}.leader-person{gap:8px}.leader-person .sales-avatar{width:28px;height:28px;font-size:9px}.you-label{font-size:8px;margin-left:4px;padding:1px 4px}.leaderboard-rules{padding:13px 18px}.goal-visual{flex-wrap:nowrap;padding:23px 24px;gap:24px}.goal-ring{width:126px;height:126px}.goal-amounts>strong{font-size:28px}.goal-segment{margin:0 24px}.sales-goal h2{font-size:24px}.day-goal-strip{flex-wrap:wrap;padding:16px;gap:12px}.day-goal-strip>div:first-of-type{flex-basis:calc(100% - 55px)}.day-goal-progress{flex:1;margin:0 0 0 51px;width:auto}.day-goal-strip .quiet-link{margin-left:auto}.sales-unavailable{padding:20px}.sales-no-wins{margin:0 18px}}
@media(max-width:360px){.podium-value{font-size:16px}.goal-visual{gap:15px;padding-left:19px;padding-right:19px}.goal-ring{width:110px;height:110px}.goal-amounts>strong{font-size:24px}.leader-person .sales-avatar{display:none}.sales-next-action .btn{margin-left:0}}
@media(prefers-reduced-motion:no-preference){.sales-panel{animation:sales-arrive .28s ease-out both}.sales-sidebar .sales-panel:nth-child(2){animation-delay:.07s}.goal-ring{transition:background .25s}.sales-overview .metric{transition:transform .15s,border-color .15s}.sales-overview .metric:hover{transform:translateY(-2px)}@keyframes sales-arrive{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
