/* Feature layout layer; colors and controls are governed by ui-tokens/ui-system. */
@layer rental-features {
.gr-toolbar,.gr-heading,.gr-year-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.gr-toolbar{margin-bottom:18px}.gr-toolbar h3{margin:0 0 6px;font-size:22px}.gr-toolbar p,.gr-caption{color:var(--ui-muted);font-size:12px;line-height:1.7;margin:0}.gr-actions,.gr-year-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.gr-today-chip{background:var(--ui-surface-muted);color:var(--ui-warning);border:1px solid var(--ui-warning-border);border-radius:8px;padding:8px 12px;font-size:12px;white-space:nowrap}.gr-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start}.gr-picker{padding:16px;display:grid;gap:12px;min-width:0}.gr-picker>label{font-size:13px;font-weight:600;color:var(--ui-text-secondary)}.gr-picker>small,.gr-heading>small,.gr-delete-game>small{color:var(--ui-muted);font-size:12px}.gr-picker .input{width:100%;min-width:0}.gr-picker #grGames{display:grid;gap:8px;max-height:680px;overflow-y:auto}.gr-game{display:grid;gap:6px;width:100%;text-align:left;padding:12px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);color:var(--ui-text);cursor:pointer;overflow-wrap:anywhere;font:inherit}.gr-game:hover{background:var(--ui-surface-subtle)}.gr-game.active{border-color:var(--ui-primary-border);background:var(--ui-primary-soft);box-shadow:inset 3px 0 var(--ui-primary)}.gr-game>strong{font-size:14px;line-height:1.5}.gr-game>span,.gr-game small{font-size:12px;color:var(--ui-muted)}.gr-game .gr-game-price{color:var(--ui-primary);display:flex;gap:5px;flex-wrap:wrap}.gr-detail{display:grid;gap:18px;min-width:0}.gr-card{padding:20px;min-width:0}.gr-heading h3{margin:4px 0;font-size:18px;overflow-wrap:anywhere}.gr-heading>div:first-child{min-width:0;max-width:100%}.gr-kicker{color:var(--ui-violet);font-size:12px}.gr-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.gr-metrics>div{display:grid;gap:9px;padding:14px;background:var(--ui-surface-subtle);border:1px solid var(--ui-border);border-radius:10px;min-width:0}.gr-metrics span,.gr-metrics small{color:var(--ui-muted);font-size:12px;line-height:1.6}.gr-metrics strong{font-size:20px;color:var(--ui-ink);overflow-wrap:anywhere}.gr-note{margin:12px 0 18px;color:var(--ui-text-secondary);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.gr-year-toolbar{margin:18px 0 12px}.gr-year-controls label{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--ui-text-secondary)}.gr-year-controls select{width:96px}.gr-year-today{color:var(--ui-warning);font-size:12px}.gr-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:var(--ui-muted);margin:12px 0}.gr-legend>span{display:flex;align-items:center;gap:6px}.gr-legend i{display:inline-block;width:9px;height:9px;border-radius:50%}.gr-dot{background:var(--ui-primary)}.gr-release-dot{background:var(--ui-violet)}.gr-today-dot{background:var(--ui-warning)}.gr-chart-scroll{overflow:auto;max-height:640px;border:1px solid var(--ui-border);border-radius:10px;max-width:100%;background:var(--ui-surface);margin-bottom:12px}.gr-chart-scroll svg{display:block;width:100%;height:auto;font-family:inherit}.gr-axis{font-size:12px;fill:var(--ui-muted)}.gr-marker text{font-size:12px;font-weight:600}.gr-marker-release line{stroke:var(--ui-violet)}.gr-marker-release text{fill:var(--ui-violet)}.gr-marker-today line{stroke:var(--ui-warning);stroke-width:1.5}.gr-marker-today text{fill:var(--ui-warning)}.gr-point{cursor:pointer;outline:none}.gr-point rect{fill:var(--ui-primary-soft);stroke:var(--ui-primary-soft)}.gr-point circle{fill:var(--ui-surface);stroke:var(--ui-primary);stroke-width:2.5}.gr-point-date{font-size:11px;fill:var(--ui-muted)}.gr-point-price{font-size:12px;fill:var(--ui-primary-hover);font-weight:600}.gr-point:hover rect,.gr-point:focus rect{fill:var(--ui-primary-soft);stroke:var(--ui-primary)}.gr-point:hover circle,.gr-point:focus circle{fill:var(--ui-primary);stroke-width:4}.gr-table-wrap{overflow:auto;margin-top:14px;max-height:440px}.gr-table-wrap table{width:100%;font-size:13px;min-width:530px}.gr-table-wrap td,.gr-table-wrap th{white-space:nowrap}.gr-table-wrap .gr-note-cell{white-space:pre-wrap;overflow-wrap:anywhere;min-width:140px;max-width:340px}.gr-delete-game{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid var(--ui-border)}.gr-empty{color:var(--ui-muted);font-size:13px;padding:24px 10px;line-height:1.8}.gr-dialog #grEditorContext{font-size:13px;color:var(--ui-muted);overflow-wrap:anywhere}.gr-dialog textarea{min-height:75px;resize:vertical}.gr-error{color:var(--ui-danger);font-size:13px;line-height:1.7}.gr-dialog .form-grid{margin-top:18px}
#grGameFields[hidden],#grPointFields[hidden]{display:none!important}
.gr-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.gr-release-point rect{fill:var(--ui-surface-subtle);stroke:var(--ui-violet-border)}.gr-release-point circle{stroke:var(--ui-violet)}.gr-release-point .gr-point-price{fill:var(--ui-violet)}.gr-release-point:hover rect,.gr-release-point:focus rect{fill:var(--ui-surface-muted);stroke:var(--ui-violet)}.gr-release-point:hover circle,.gr-release-point:focus circle{fill:var(--ui-violet);stroke:var(--ui-violet)}.gr-row-type{display:block;color:var(--ui-violet);font-size:11px;margin-top:4px}
@media(max-width:1100px){.gr-layout{grid-template-columns:220px minmax(0,1fr)}.gr-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.gr-layout{grid-template-columns:minmax(0,1fr)}.gr-toolbar h3{font-size:19px}.gr-picker{padding:14px}.gr-picker #grGames{max-height:240px}.gr-card{padding:14px}.gr-metrics{gap:8px}.gr-metrics>div{padding:10px}.gr-metrics strong{font-size:17px}.gr-actions{gap:7px}.gr-heading{align-items:flex-start}.gr-year-controls{gap:4px}.gr-year-controls label{gap:5px}.gr-year-controls select{width:82px}.gr-today-chip{padding:7px 10px}.gr-caption{font-size:11px}.gr-dialog .form-grid{grid-template-columns:minmax(0,1fr)}.gr-dialog .form-grid .span-2{grid-column:1/-1}}
}
