/* Three independent price forms retain the existing S1 controls and surface. */
#pricing-tabs{gap:8px;margin-block:16px 24px}
#pricing-tabs button{min-height:44px}
#pricing-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
#pricing-panel [hidden]{display:none!important}
#pricing-editor .price-form{display:flex;flex-direction:column;gap:16px;min-width:0;margin:0;padding:0 0 0 24px;border-left:1px solid var(--line)}
#pricing-editor .price-form:first-child{padding-left:0;border-left:0}
.price-form h3{font-size:18px;line-height:1.4;margin:0}
.price-form-fields{display:grid;gap:16px}
.price-form .price-video-rates{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
#pricing-editor label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-size:14px;line-height:1.6}
#pricing-editor :is(input,select){display:block;width:100%;min-width:0;max-width:none;height:44px;min-height:44px;box-sizing:border-box;font:inherit}
.price-form-hint{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
#pricing-editor [data-price-save]{align-self:flex-start;min-height:44px;margin-top:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#pricing-editor [data-price-status],#pricing-editor [data-price-comparison]{margin:0;line-height:1.7;overflow-wrap:anywhere}
#pricing-editor [data-price-status]:empty{display:none}
#pricing-editor [data-price-comparison]{padding:12px;background:var(--surface-strong);border:1px solid var(--line);border-radius:6px;font-variant-numeric:tabular-nums;white-space:pre-wrap}
#pricing-history{margin-top:32px;padding-top:22px;border-top:1px solid var(--line)}
#pricing-history h3{font-size:18px;line-height:1.4;margin:0 0 14px}
#pricing-history table{width:100%;min-width:850px;border-collapse:collapse;font-variant-numeric:tabular-nums}
#pricing-history th,#pricing-history td{padding:14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
#pricing-history th{font-weight:600;white-space:nowrap}
#pricing-history td:nth-child(1){min-width:170px}
#pricing-history td:nth-child(2){min-width:130px;max-width:220px}
#pricing-history td:nth-child(3),#pricing-history td:nth-child(4){min-width:150px}
#pricing-history td:nth-child(5){min-width:210px}
#pricing-history small{display:block;margin-top:6px;color:var(--muted)}
#pricing-history .table-wrap{max-height:480px;overflow:auto;overscroll-behavior:contain}
#price-history-notice{margin-top:12px;line-height:1.7;color:var(--muted)}
#price-history-page{font-variant-numeric:tabular-nums}
@media(max-width:1000px){#pricing-editor{grid-template-columns:repeat(2,minmax(0,1fr))}#pricing-editor .price-form:nth-child(3){grid-column:1/-1;padding:22px 0 0;border-left:0;border-top:1px solid var(--line)}#pricing-editor .price-form:nth-child(3) .price-video-rates{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){#pricing-tabs>button{flex:1}#pricing-editor{grid-template-columns:1fr;gap:24px}#pricing-editor .price-form:not(:first-child){grid-column:auto;padding:22px 0 0;border-left:0;border-top:1px solid var(--line)}#pricing-editor .price-form:nth-child(3) .price-video-rates{grid-template-columns:repeat(2,minmax(0,1fr))}#pricing-editor [data-price-save]{align-self:stretch}}

@media(max-height:650px){#pricing-history .table-wrap{max-height:calc(100dvh - 260px)}}
