#app #tab-shop.active { display: flex; flex-direction: column; min-height: 0; }

.sh-kpis { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.sh-kpis .sh-kpi { position: relative; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; min-height: 0; gap: 12px; padding: 10px 14px 10px 17px; background: rgba(0, 0, 0, .28); overflow: hidden; font: inherit; text-align: left; cursor: pointer; transition: background .12s, border-color .12s; }
.sh-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pl-accent); }
.sh-kpi:hover { background: rgba(255, 255, 255, .05); border-color: var(--border-color-strong); }
.sh-kpi.active { background: rgba(255, 255, 255, .08); border-color: var(--pl-accent); }
.sh-kpi-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--pl-accent); }
.sh-kpi-ic svg { width: 19px; height: 19px; }
.sh-kpi-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.sh-kpi strong { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--pl-accent); }
.sh-kpi small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sh-layout { display: flex; gap: 14px; flex: 1; min-height: 0; overflow: hidden; }
.sh-browse { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-surface); overflow: hidden; }
.sh-browse > .scroll-area { flex: 1; min-height: 0; }
.sh-toolbar { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border-color); }
.sh-title { display: flex; align-items: center; gap: 8px; margin-right: 4px; font-size: 14px; font-weight: 650; color: var(--text-primary); white-space: nowrap; }
.sh-title .ic { display: inline-flex; color: var(--sh-color, var(--text-secondary)); }
.sh-title svg { width: 16px; height: 16px; }
.sh-search { position: relative; flex: 1; min-width: 140px; max-width: 360px; }
.sh-search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--text-muted); pointer-events: none; }
.sh-search svg { width: 14px; height: 14px; }
.sh-search .input-field { width: 100%; height: 32px; padding-left: 32px; }
.sh-filter { display: flex; padding: 2px; border: 1px solid var(--border-color); border-radius: 6px; background: rgba(0, 0, 0, .2); }
.sh-filter button { height: 26px; padding: 0 10px; border: 0; border-radius: 4px; background: none; color: var(--text-muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.sh-filter button:hover { color: var(--text-primary); }
.sh-filter button.on { background: rgba(255, 255, 255, .1); color: var(--text-primary); }
.sh-toolbar #shop-daily-generate-btn { margin-left: auto; }
.sh-toolbar #shop-daily-generate-btn.hidden + #shop-new-btn { margin-left: auto; }

.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 14px; }
.sh-card { display: flex; flex-direction: column; border: 1px solid var(--border-color); border-radius: 8px; background: rgba(255, 255, 255, .03); overflow: hidden; cursor: pointer; transition: background .12s, border-color .12s, transform .12s; }
.sh-card:hover { background: rgba(255, 255, 255, .06); border-color: var(--border-color-strong); }
.sh-card.selected { border-color: var(--sh-color); box-shadow: 0 0 0 1px var(--sh-color); }
.sh-card-img { position: relative; aspect-ratio: 16 / 10; background: rgba(0, 0, 0, .3); overflow: hidden; }
.sh-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-price { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 4px; background: rgba(10, 10, 12, .78); color: #f0e6c8; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sh-card-img.no-img img { object-fit: contain; padding: 16%; opacity: .45; }
.sh-card-body { padding: 9px 11px 10px; min-width: 0; }
.sh-card-name { font-size: 13px; font-weight: 650; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card-meta { margin-top: 3px; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card.is-off .it-dot { background: #d27a7a; }
.sh-card.is-off .sh-card-img img { filter: grayscale(1); opacity: .45; }
.sh-card.is-off .sh-card-name { color: var(--text-secondary); }

.sh-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 70px 20px; text-align: center; color: var(--text-muted); }
.sh-empty .ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--sh-color); }
.sh-empty svg { width: 24px; height: 24px; }
.sh-empty b { font-size: 14px; color: var(--text-primary); }
.sh-empty small { font-size: 12px; }

.sh-editor { flex: 0 0 460px; width: 460px; display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-surface); overflow: hidden; }
.sh-editor.hidden { display: none; }
.sh-editor > .scroll-area { flex: 1; min-height: 0; }
.sh-head { --it-color: var(--sh-color); }
.sh-head-img { flex: none; width: 64px; height: 44px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .3); overflow: hidden; }
.sh-head-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-fields { padding: 16px; }
.sh-fields .shop-fields-block { display: flex; flex-direction: column; gap: 14px; }
.sh-fields .shop-fields-block.hidden { display: none; }
.sh-block { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; border: 1px solid var(--border-color); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.sh-block.hidden { display: none; }
.sh-block-head { display: flex; align-items: center; gap: 9px; margin: 0 -14px 2px; padding: 12px 14px; border-bottom: 1px solid var(--border-color); font-size: 13px; font-weight: 650; color: var(--text-primary); }
.sh-block-head .ic { display: inline-flex; color: var(--sh-color, var(--text-secondary)); }
.sh-block-head svg { width: 15px; height: 15px; }
.sh-block-head .btn { margin-left: auto; }
.sh-block .form-group { margin: 0; }
.sh-block .form-group > label { font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.sh-block .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-block textarea.input-field { min-height: 74px; resize: vertical; }
.sh-toggle { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: rgba(0, 0, 0, .18); font-size: 12.5px; color: var(--text-secondary); }
.sh-block .input-action-row { display: flex; gap: 8px; }
.sh-inline { display: flex; gap: 6px; }
.sh-inline .input-field { flex: 1; }
.sh-pack-list { display: flex; flex-direction: column; gap: 6px; }
.sh-pack-list .simple-row { padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 6px; background: rgba(0, 0, 0, .18); }
.sh-pack-list .empty-state { padding: 14px; font-size: 12px; text-align: center; color: var(--text-muted); }
.sh-subform { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px dashed var(--border-color-strong); border-radius: 8px; background: rgba(255, 255, 255, .03); }
.sh-subform.hidden { display: none; }
.sh-subform-title { font-size: 12.5px; font-weight: 650; color: var(--text-primary); }
.sh-subform-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 1400px) {
  .sh-editor { flex-basis: 390px; width: 390px; }
  .sh-kpi small { display: none; }
  .sh-kpi-ic { display: none; }
}

#app #tab-server.active { display: flex; flex-direction: column; min-height: 0; }
.sv-kpis { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sv-kpis .sv-kpi { position: relative; display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px 10px 17px; background: rgba(0, 0, 0, .28); overflow: hidden; }
.sv-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pl-accent); }
.sv-kpi-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--pl-accent); }
.sv-kpi-ic svg { width: 21px; height: 21px; }
.sv-kpi-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sv-kpi strong { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--pl-accent); }

.sv-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; flex: 1; min-height: 0; }
.sv-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; }
.sv-card { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-surface); overflow: hidden; }
.sv-card > .scroll-area { flex: 1; min-height: 0; }
.sv-card-head { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--border-color); font-size: 14px; font-weight: 650; color: var(--text-primary); }
.sv-card-head .ic { display: inline-flex; color: var(--text-secondary); }
.sv-card-head svg { width: 16px; height: 16px; }
.sv-card-head small { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--text-muted); }
.sv-card-body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }

.sv-weather-groups { display: flex; flex-direction: column; gap: 18px; padding: 16px; }
.sv-weather-group-title { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.sv-weather-group-title::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sv-color); }
.sv-weather-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sv-weather-card { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: rgba(255, 255, 255, .03); color: var(--text-secondary); font: inherit; text-align: left; cursor: pointer; transition: background .12s, border-color .12s; }
.sv-weather-card:hover { background: rgba(255, 255, 255, .07); border-color: var(--border-color-strong); }
.sv-weather-card.active { background: rgba(255, 255, 255, .09); border-color: var(--sv-color); box-shadow: inset 3px 0 var(--sv-color); }
.sv-weather-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--sv-color); }
.sv-weather-ic svg { width: 20px; height: 20px; }
.sv-weather-card b { display: block; font-size: 13px; color: var(--text-primary); }
.sv-weather-card small { display: block; margin-top: 2px; font-size: 10.5px; letter-spacing: .04em; color: var(--text-muted); }

.sv-time .staff-time-display { display: block; font-size: 44px; font-weight: 500; line-height: 1.1; letter-spacing: .03em; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.sv-time .staff-time-slider { width: 100%; height: 6px; margin: 0; border-radius: 3px; appearance: none; background: linear-gradient(90deg, #2b3350 0%, #e3a97a 25%, #e6cb7d 50%, #e3a97a 75%, #2b3350 100%); cursor: pointer; }
.sv-time .staff-time-slider::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border: 2px solid #1b1d22; border-radius: 50%; background: #f1f3f5; }
.sv-time .staff-time-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sv-time .time-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.sv-time .time-controls .form-group { width: 90px; margin: 0; }
.sv-time .time-controls .form-group > label { font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.sv-toggle { margin: 0; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: rgba(0, 0, 0, .18); cursor: default; }
.sv-toggle span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-primary); }
.sv-toggle small { font-size: 11px; color: var(--text-muted); }

.sv-announce textarea.input-field { min-height: 90px; resize: vertical; }
.sv-announce-actions { display: flex; align-items: center; justify-content: space-between; margin-top: -4px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.sv-announce-actions .btn .ic { display: inline-flex; }
.sv-announce-actions .btn svg { width: 13px; height: 13px; }
.sv-history-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.sv-history { display: flex; flex-direction: column; gap: 6px; margin-top: -6px; }
.sv-history-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 6px; background: rgba(0, 0, 0, .18); font-size: 12px; }
.sv-history-time { flex: none; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.sv-history-text { flex: 1; min-width: 0; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-history-reuse { flex: none; width: 24px; height: 24px; border: 1px solid var(--border-color); border-radius: 5px; background: rgba(255, 255, 255, .04); color: var(--text-secondary); cursor: pointer; }
.sv-history-reuse:hover { background: rgba(255, 255, 255, .1); color: var(--text-primary); }
.sv-history-empty { padding: 12px; border: 1px dashed var(--border-color); border-radius: 6px; font-size: 12px; text-align: center; color: var(--text-muted); }

@media (max-width: 1400px) {
  .sv-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .sv-kpi small { display: none; }
}
.sh-settings { grid-column: 1 / -1; max-width: 560px; }
.sh-settings .rob-help { margin: 0 0 12px; }
.sh-settings .sh-toggle + .sh-toggle { margin-top: 8px; }
.sh-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; max-width: none; }
.sh-settings > .rob-help, .sh-settings > .sh-settings-actions { grid-column: 1 / -1; margin: 0; }
.sh-subcat-list { display: flex; flex-direction: column; gap: 6px; }
.sh-subcat-row { display: flex; gap: 6px; }
.sh-subcat-row .input-field { flex: 1; }
.sh-subcat-row .btn svg { width: 14px; height: 14px; }
.sh-subcat-add { align-self: flex-start; }
.sh-settings-actions { display: flex; justify-content: flex-end; margin-top: 14px; }

.sh-rarity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.sh-rarity-row { display: grid; grid-template-columns: 1fr 86px auto; align-items: center; gap: 8px; font-size: 12.5px; white-space: nowrap; }
.sh-rarity-row input { padding: 6px 8px; text-align: right; }
.sh-rarity-row em { font-style: normal; color: var(--text-muted); }
.sh-rarity-total { margin-top: 10px; font-weight: 600; }
.sh-rarity-total.bad { color: #f2a3a3; }
.sh-daily-count { grid-template-columns: auto 86px; justify-content: start; gap: 12px; margin-bottom: 12px; font-weight: 600; }
.sh-settings { display: block; columns: 3; column-gap: 14px; }
.sh-settings > * { break-inside: avoid; margin: 0 0 14px; }
.sh-settings > .sh-settings-actions { column-span: all; margin: 0; }
.sh-settings .sh-rarity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sh-coin-row { display: flex; align-items: center; gap: 10px; }
.sh-coin-row .input-field { flex: 1; }
.sh-coin-preview { flex: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff4d6, #e8b84a 55%, #c9a35c); box-shadow: inset 0 0 0 1.5px rgba(110, 78, 20, 0.45); }
.sh-coin-preview.custom { border-radius: 0; box-shadow: none; background: center / contain no-repeat; }
