@charset "UTF-8";
/* PC/H5 usability refinement. Keep existing themes and business controls. */
:root[data-theme]{--radius:15px;--radius-sm:9px;--refine-gap:18px}
:root[data-theme="douyin"]{--subtle:#8797b0;--muted:#acb9ce;--green:#4ed1a0;--red:#ff8297}
:root[data-theme="linear"]{--subtle:#9297ac;--muted:#b2b8ca}
:root[data-theme="stripe"]{--subtle:#5f7088;--muted:#506077;--green:#087458;--red:#bc2645;--amber:#865600}
.main-content{max-width:2000px;margin-inline:auto;padding:22px 26px 30px;min-width:0}
.page-heading{gap:18px;margin-bottom:20px;padding:18px 21px;border-radius:15px}
.page-heading h1{font-size:26px;letter-spacing:-.7px;line-height:1.3}
.page-heading-info{min-width:0}.page-heading-info>#pageDescription{font-size:12px;line-height:1.75;max-width:760px;overflow-wrap:anywhere}
.page-heading-actions{flex-wrap:wrap;gap:8px;flex-shrink:0}.page-heading-actions .button{font-size:12px;padding:8px 12px}
body[data-current-view="products"] .page-heading-actions a[href="#products"],body[data-current-view="analytics"] .page-heading-actions a[href="#analytics"]{display:none}
.ui-page-symbol{flex-shrink:0}.eyebrow{font-size:10px;line-height:1.5}
.panel,.product-card,.page-card{border-radius:14px}.panel-heading{padding:18px 20px;gap:12px;flex-wrap:wrap}
.panel-heading h2{font-size:14px;line-height:1.55}.panel-heading p{font-size:12px;line-height:1.65;color:var(--muted)}
.panel-body{padding:20px}.panel-heading>.text-link{flex-shrink:0}
.button{min-height:38px;line-height:1.4;border-radius:9px;font-size:12px;gap:7px;padding:9px 13px}
.button:hover:not(:disabled){transform:translateY(-1px)}.button:active:not(:disabled){transform:translateY(0)}
.button-small{min-height:32px;padding:6px 10px;font-size:11px}.button .icon,.ui-button-icon .icon{width:16px;height:16px}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.badge{font-size:11px;line-height:1.55;padding:3px 8px;white-space:nowrap;max-width:100%}
.badge .badge-dot{flex-shrink:0}.muted,.helper{line-height:1.75}.cell-subtitle,.small-text{font-size:12px}
.toolbar{gap:10px;padding:13px 15px;border-radius:12px;align-items:center;flex-wrap:wrap}.toolbar .search-field{min-width:170px}
.search-field input{font-size:13px}.segmented{max-width:100%;gap:3px;border-radius:9px}.segmented button{font-size:12px;padding:7px 10px;min-height:34px;white-space:nowrap}
.selection-bar{gap:12px;flex-wrap:wrap;padding:12px 15px;border-radius:11px}.selection-bar>div,.selection-actions{gap:7px;flex-wrap:wrap}.selection-bar .button{min-height:34px}
.data-table{font-size:12px}.data-table th{font-size:11px;padding:13px 15px;white-space:nowrap}.data-table td{padding:14px 15px;vertical-align:middle}
#pagesContent .pages-table{isolation:isolate}#pagesContent .data-table td{overflow:hidden;background:var(--surface)}#pagesContent .row-entity-cell{min-width:0}#pagesContent .row-entity-cell>div{min-width:0;overflow:hidden}#pagesContent .cell-title{overflow:hidden}
.cell-title{line-height:1.6;overflow-wrap:anywhere}.cell-subtitle{color:var(--subtle);line-height:1.5;margin-top:4px}.cell-actions{gap:6px;flex-wrap:wrap}.cell-actions .button{white-space:nowrap}
.table-frame{scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}.table-frame:focus-within{outline:1px solid var(--primary-border);outline-offset:-1px}
.stats-grid{gap:16px;margin-bottom:20px}.stat-card{padding:18px 20px;border-radius:14px}.stat-card>div{font-size:12px;line-height:1.6}.stat-card>strong{font-size:32px;line-height:1.3;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.stat-card p{font-size:11px;line-height:1.65}.stat-card:hover{transform:translateY(-2px)}
.engine-panel{gap:14px;padding:17px 20px;border-radius:14px;align-items:center}.engine-title-row{flex-wrap:wrap;gap:8px}.engine-info{min-width:0}.engine-info p{font-size:12px;line-height:1.65;overflow-wrap:anywhere}.engine-metrics{flex-shrink:0;gap:22px}.engine-live-badge{white-space:normal;line-height:1.6}.heartbeat{min-width:0}.heartbeat strong{font-size:12px;font-variant-numeric:tabular-nums}
.dashboard-visual-grid{gap:18px}.chart-panel .panel-heading{min-height:78px;align-items:center}.chart-heading-controls{margin-left:auto}.chart-container{min-width:0}.overview-rank-info{min-width:0}.overview-rank-info strong{font-size:13px;line-height:1.5}.overview-rank-info small{font-size:11px}.overview-rank-item{gap:11px}.overview-rank-item>.badge{flex-shrink:0}
.product-grid:not(.ui-list-view){grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.product-grid>.loading-state,.product-grid>.empty-state{grid-column:1/-1;width:100%}
.product-card{min-width:0;animation-delay:calc(min(var(--row-idx,0),6) * 20ms);animation-duration:.25s}
.product-card-main{min-width:0;min-height:137px;padding:15px;gap:13px}.product-info{min-width:0}.product-title{font-size:14px;line-height:1.55;min-height:3.1em;-webkit-line-clamp:2}
.product-price-row{align-items:center;gap:7px;flex-wrap:wrap;margin:7px 0}.product-price{font-size:20px;line-height:1.3}.product-sold{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-highlights{font-size:12px;line-height:1.6;min-height:1.6em;-webkit-line-clamp:2}
.product-photo{width:89px;height:103px;flex-shrink:0}.product-photo img{object-fit:contain}.product-card:hover .product-photo img{transform:scale(1.025)}
.product-card-top-bar{padding:10px 13px;gap:7px;min-height:43px}.product-top-badges{flex-wrap:wrap;justify-content:flex-end}.product-source-pill{white-space:nowrap;font-size:10px}.product-card-select-label{font-size:12px}
.product-posted-bar{margin:0 13px 12px;min-height:36px;padding:8px 10px;border-radius:8px;gap:8px;font-size:11px}.posted-bar-left{min-width:0}.posted-bar-link{font-size:11px}.posted-bar-names{max-width:100%;overflow:hidden}.mini-page-pill{max-width:100px}
.product-card-footer{padding:10px 13px;margin-top:auto;min-height:55px}.product-card-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.product-card-actions .button{font-size:11px;padding:6px 9px;min-height:33px;gap:5px}
.product-select-all-box{font-size:11px;padding:7px 10px;border-radius:8px;white-space:nowrap;max-width:100%}
.product-grid.ui-list-view .product-card-main{min-height:115px}.ui-list-view .product-title{min-height:0}.ui-list-view .product-highlights{min-height:0}.ui-list-view .product-card-footer{margin-top:0}
.analytics-split-layout{min-width:0;gap:18px}.analytics-pages-sidebar,.analytics-posts-stage,.analytics-page-meta,.analytics-post-body{min-width:0}.analytics-page-item{padding:12px;gap:10px;border-radius:10px}.analytics-page-title-row{gap:8px;flex-wrap:wrap}.analytics-page-title-row strong{font-size:13px;line-height:1.5}.analytics-page-sub{font-size:11px;gap:6px}.analytics-detail-header{padding:18px;gap:13px;flex-wrap:wrap}.analytics-detail-title-row{flex-wrap:wrap;gap:8px}.analytics-detail-actions{flex-wrap:wrap;gap:7px}.analytics-post-card{padding:15px;border-radius:11px;gap:13px}.analytics-post-title{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.analytics-post-meta{font-size:11px;line-height:1.7;flex-wrap:wrap}
.posted-page-item{gap:12px;flex-wrap:wrap}.posted-page-main{min-width:0;flex:1}.posted-page-info{min-width:0}.posted-page-name-row,.posted-page-meta{flex-wrap:wrap;gap:7px}.posted-page-meta{font-size:11px;overflow-wrap:anywhere}.unposted-pages-tags{gap:7px;flex-wrap:wrap}
.diagnostic-table th,.diagnostic-table td{padding:14px 13px}.diagnostic-table th[style*="min-width:260px"]{min-width:225px!important}.diag-product-main{min-width:0}.diag-product-title{font-size:13px;line-height:1.65}.diag-key-badge{font-size:11px;max-width:100%;overflow-wrap:anywhere}.diag-conclusion-badge{white-space:normal;line-height:1.65}.diag-review-note{font-size:11px;line-height:1.65}.diagnostic-table .cell-actions{min-width:90px;gap:6px}
.template-layout{gap:20px;min-width:0}.template-editor,.template-preview{min-width:0}.template-editor textarea{font-size:14px;line-height:1.9;min-height:300px;resize:vertical}.template-editor .field-label{font-size:13px;line-height:1.6}.template-image-block{gap:12px;padding:12px;border-radius:10px}.template-image-block>div{min-width:0}.variable-bar{gap:7px;flex-wrap:wrap}.variable-bar button{font-size:11px;padding:6px 9px;min-height:33px}.emoji-bar{gap:7px;flex-wrap:wrap}.template-preview-picker>label{font-size:12px}.template-order-picker{gap:10px;flex-wrap:wrap}.template-order-picker .segmented{flex-shrink:0}.preview-text{font-size:14px;line-height:1.85}.template-preview-media>img{object-fit:contain;max-height:380px}.template-preview .helper{font-size:12px}
.settings-panel{max-width:1050px;margin-inline:auto}.settings-section{padding:23px}.settings-section-title{gap:13px;margin-bottom:20px}.settings-section-title p{font-size:12px;line-height:1.75}.settings-section>label{display:grid;gap:8px;max-width:360px;font-size:13px;color:var(--muted)}.settings-section>label>input{width:100%;min-height:42px}.range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:620px;gap:20px}.range-fields label{display:grid;gap:7px;font-size:12px}.range-fields input{width:100%;min-height:42px}.token-field-group{gap:8px;flex-wrap:wrap;align-items:center}.token-field-group .search-field{flex:1;min-width:200px}.settings-section .helper{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.settings-section code{overflow-wrap:anywhere;word-break:break-word}.save-bar{gap:12px;padding:14px 18px;flex-wrap:wrap;border-radius:12px;max-width:1050px;margin-inline:auto}.save-bar .button{min-height:40px}.save-bar>span{font-size:12px}
.logs-toolbar{gap:10px}.logs-toolbar .date-filter{font-size:12px;gap:6px}.logs-toolbar input[type=date]{min-height:38px}.pagination{gap:12px;padding:13px 16px;border-radius:11px;margin-top:20px}.pagination-summary{font-size:12px;line-height:1.7;color:var(--muted)}.pagination-controls{gap:10px;flex-wrap:wrap}.page-position{font-size:12px;white-space:nowrap}.pagination .button{min-height:36px;font-size:12px}
dialog{max-width:calc(100vw - 28px);max-height:90dvh}.modal{border-radius:16px}.modal h2,.detail-dialog h2{font-size:20px;line-height:1.5}.modal p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.detail-dialog pre{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.modal-actions{gap:9px;flex-wrap:wrap}.modal-actions .button{min-height:40px}
.manual-product-dialog{width:min(820px,calc(100vw - 32px));max-height:91dvh;border-radius:17px}.manual-product-form{padding:23px;gap:18px}.manual-product-form header{align-items:flex-start;gap:15px}.manual-product-form header>div{min-width:0;flex:1}.manual-product-form header>[data-close]{flex-shrink:0}.manual-product-form h2{font-size:20px;line-height:1.5}.manual-product-form label{font-size:13px;line-height:1.65}.manual-product-form input:not([type=checkbox]),.manual-product-form select,.manual-product-form textarea{font-size:14px;min-height:42px}.manual-product-notice{font-size:12px;line-height:1.8;padding:12px}.manual-product-image{gap:14px}.manual-product-image img{object-fit:contain}.manual-product-confirm{gap:10px}.manual-product-confirm>span{line-height:1.8}.manual-product-form .manual-product-error{font-size:13px;line-height:1.7;scroll-margin:20px}.manual-product-form footer{gap:14px;align-items:center}.manual-product-form footer>span{font-size:11px;max-width:430px;line-height:1.7}
.empty-state{padding:42px 20px;min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center}.empty-state h3{font-size:16px;line-height:1.6}.empty-state p{font-size:13px;line-height:1.8;max-width:460px}.notice{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.toast{font-size:13px;line-height:1.75;max-width:100%}.loading-state{width:100%;gap:14px}
.login-card{max-width:450px;padding:32px;border-radius:18px}.login-card h2{font-size:26px;line-height:1.4}.login-description{font-size:13px;line-height:1.8}.login-input{min-height:46px;border-radius:10px}.login-input input{font-size:14px;min-height:44px}.login-options{gap:12px;font-size:12px;flex-wrap:wrap}.login-submit{min-height:45px;font-size:14px}.login-security{font-size:11px;line-height:1.7}
@media(min-width:1360px){.product-grid:not(.ui-list-view){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:2000px){.product-grid:not(.ui-list-view){grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1100px){.pages-table{max-height:720px;overflow:auto}.pages-table thead th{position:sticky;top:0;z-index:2;background:var(--surface-sub)}.template-preview{position:sticky;top:88px}.analytics-pages-sidebar{position:sticky;top:88px}.analytics-pages-list{max-height:calc(100dvh - 220px);overflow:auto;scrollbar-width:thin}}
@media(max-width:1359px){.page-heading-actions .desktop-only{display:none!important}.engine-metrics{gap:12px}.engine-metrics .heartbeat{font-size:11px}.template-layout{grid-template-columns:1fr}.template-preview{position:static}.analytics-split-layout{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:1099px){.analytics-split-layout{grid-template-columns:1fr}.analytics-pages-sidebar{position:static}.analytics-pages-list{max-height:260px;overflow:auto}.stats-grid{gap:13px}.stat-card{padding:16px}.stat-card>strong{font-size:28px}.engine-metrics{display:none}}
@media(max-width:767px){
  .workspace{padding-bottom:calc(78px + env(safe-area-inset-bottom))}.main-content{padding:16px 14px 24px;max-width:100%}.topbar{height:59px;padding:0 13px;gap:8px}.topbar-right{gap:8px}.breadcrumb{font-size:12px}.service-state{font-size:10px;max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-theme-group{flex-shrink:0}.theme-switch-btn{min-height:36px;min-width:36px}
  .page-heading{padding:15px 14px;margin-bottom:17px;gap:10px;border-radius:13px;align-items:flex-start}.page-heading h1{font-size:23px}.page-heading-info>#pageDescription{font-size:12px;line-height:1.7}.page-heading-actions .button{min-height:38px;min-width:38px;padding:8px}.page-heading-actions>a{display:none!important}
  .stats-grid{gap:11px;margin-bottom:17px}.stat-card{padding:14px;border-radius:12px}.stat-card>div{font-size:11px;line-height:1.5}.stat-card>strong{font-size:27px;margin:10px 0 6px}.stat-card p{font-size:11px;line-height:1.65}.stat-card .stat-icon-orb{width:29px;height:29px;padding:7px}.engine-panel{padding:14px;gap:10px;align-items:flex-start}.engine-info{flex:1;min-width:0}.engine-info strong{font-size:13px;line-height:1.6}.engine-info p{font-size:11px;line-height:1.75}.engine-icon{width:34px;height:34px;flex-shrink:0}.engine-live-badge{font-size:9px}.engine-title-row{gap:5px}.engine-setting-btn{padding:7px;min-width:34px;min-height:34px}
  .panel{margin-bottom:16px}.panel-heading{padding:15px;gap:10px}.panel-heading h2{font-size:14px}.panel-heading p{font-size:11px}.panel-body{padding:15px}.chart-heading-controls{margin-left:0}.chart-range-tabs button{min-height:34px;padding:6px 10px}.overview-rank-info strong{font-size:12px}.overview-rank-info small{font-size:10px}.overview-rank-item>.badge{font-size:10px}
  .toolbar{padding:12px;gap:10px;align-items:stretch}.toolbar .search-field{flex-basis:100%;min-width:0;max-width:none}.search-field input{font-size:16px;min-height:42px}.toolbar select{font-size:14px;min-height:42px;max-width:100%}.toolbar .button{min-height:40px;font-size:12px}.segmented{width:100%;max-width:100%;overflow-x:auto;flex-wrap:nowrap}.segmented button{min-height:38px;font-size:11px;flex-shrink:0;padding:7px 10px}
  .product-grid:not(.ui-list-view),.product-grid.ui-list-view{grid-template-columns:1fr;gap:14px}.product-card-main{padding:14px;min-height:132px;gap:12px}.product-photo{width:87px;height:102px}.product-title{font-size:14px;line-height:1.6;min-height:0}.product-price{font-size:19px}.product-highlights{font-size:11px;line-height:1.65;min-height:0}.product-sold{font-size:10px}.product-card-top-bar{padding:10px 13px}.product-card-footer{padding:10px 13px;min-height:56px}.product-card-actions{gap:7px;width:100%}.product-card-actions .button{min-height:39px;font-size:11px;flex:1;padding:7px 10px;justify-content:center}.product-posted-bar{min-height:39px;margin:0 13px 12px}.posted-bar-link{font-size:10px}.product-select-all-box{font-size:12px;min-height:39px}
  .selection-bar{position:static;gap:10px;padding:12px;font-size:12px}.selection-bar>div{width:100%;justify-content:flex-start;gap:7px}.selection-bar .button{min-height:38px;font-size:11px}.batch-schedule-group{gap:7px;flex-wrap:wrap}.page-time-input{min-height:39px;max-width:145px;font-size:13px}.page-card{padding:15px;border-radius:12px}.page-card-info>a{font-size:14px;line-height:1.6}.page-card-info>small{font-size:11px}.page-card-bottom{font-size:12px;line-height:1.7;gap:10px;flex-wrap:wrap}.page-card-schedule{gap:8px;flex-wrap:wrap}.page-card-last{font-size:11px;line-height:1.7}
  .analytics-pages-list{max-height:250px}.analytics-page-item{min-height:72px}.analytics-detail-header{padding:15px}.analytics-detail-header h3{font-size:15px;line-height:1.6}.analytics-detail-actions{gap:7px;flex-wrap:wrap}.analytics-post-card{padding:13px;gap:11px;flex-wrap:wrap}.analytics-post-body{min-width:0;flex:1}.posted-page-item{padding:13px}.posted-page-name-row strong{font-size:13px;line-height:1.6}.posted-page-meta{font-size:10px}.posted-page-actions{width:100%;display:flex;justify-content:flex-end}
  .diagnostic-table tbody tr{padding:15px;gap:13px}.diagnostic-table tbody td{font-size:12px;line-height:1.65}.diagnostic-table tbody td::before{font-size:11px}.diag-key-badge{font-size:11px}.diag-review-note{font-size:11px}.diagnostic-table .cell-actions{width:100%;justify-content:flex-start}.diagnostic-table .cell-actions .button{min-height:40px;font-size:12px}.ui-diagnostic-select{min-height:40px;font-size:12px}.diag-conclusion-badge{font-size:11px;line-height:1.7}
  .template-layout{gap:16px}.template-editor textarea{font-size:16px;min-height:300px}.template-select{min-width:0;flex:1}.template-select select{width:100%;font-size:14px}.variable-bar{gap:6px}.variable-bar button{min-height:37px;font-size:11px;padding:7px 9px}.emoji-bar button{width:37px;min-height:37px}.template-order-picker{gap:9px}.template-preview-media>img{max-height:300px}.preview-text{font-size:14px;line-height:1.85}.template-image-block small{font-size:10px}.template-preview .helper{font-size:11px}
  .settings-section{padding:20px 16px}.settings-section-title{gap:11px;margin-bottom:18px}.settings-section-title h2{font-size:14px}.settings-section-title p{font-size:12px;line-height:1.75}.settings-section>label{max-width:none;width:100%}.range-fields{grid-template-columns:1fr;gap:17px;max-width:none}.settings-section input,.settings-section select{font-size:16px;min-height:43px}.settings-section .helper{font-size:11px}.token-field-group .search-field{flex-basis:100%;min-width:0;max-width:none!important}.token-field-group .button{flex:1;min-height:40px;font-size:11px}.save-bar{position:sticky;bottom:calc(74px + env(safe-area-inset-bottom));gap:10px;padding:12px;border-radius:11px}.save-bar>span{font-size:11px;width:100%}.save-bar .button{width:100%;min-height:43px;justify-content:center}
  .logs-toolbar .date-filter{flex-basis:calc(50% - 6px);min-width:0;font-size:11px;display:grid;gap:5px}.logs-toolbar input[type=date]{min-width:0;max-width:100%;font-size:13px;min-height:42px}.logs-toolbar>.button{flex:1}.mobile-log{padding:16px 0}.mobile-log-title{font-size:13px;line-height:1.7}.mobile-log-meta{font-size:11px;line-height:1.7;gap:7px}.mobile-log-actions{gap:9px;flex-wrap:wrap;font-size:12px}.mobile-log-actions a,.mobile-log-actions button{min-height:34px;display:inline-flex;align-items:center}.pagination{padding:13px;gap:12px}.pagination-summary{font-size:12px;text-align:center}.pagination-controls{justify-content:center;gap:10px}.pagination .button{min-height:41px;padding:8px 12px;font-size:11px}
  .modal,.detail-dialog{padding:21px 18px;border-radius:14px;max-width:calc(100vw - 22px);max-height:88dvh}.modal h2,.detail-dialog h2{font-size:19px}.modal p{font-size:13px}.modal-actions .button{flex:1;min-height:43px}.manual-product-dialog{width:calc(100vw - 16px);max-width:none;max-height:94dvh;padding:0;border-radius:15px}.manual-product-form{padding:18px;gap:17px}.manual-product-form header{flex-wrap:nowrap;gap:10px}.manual-product-form h2{font-size:18px;line-height:1.5}.manual-product-form header p{font-size:11px}.manual-product-form header>[data-close]{min-width:64px;min-height:38px;padding:7px 9px}.manual-product-form label{font-size:13px}.manual-product-form input:not([type=checkbox]),.manual-product-form textarea,.manual-product-form select{font-size:16px;min-height:44px}.manual-product-row{grid-template-columns:1fr;gap:17px}.manual-product-notice{font-size:11px;line-height:1.8}.manual-product-image{grid-template-columns:minmax(0,1fr) 78px;gap:10px}.manual-product-image img{width:78px;height:90px}.manual-product-image input[type=file]{font-size:11px;max-width:100%}.manual-product-confirm>span{font-size:12px;line-height:1.7}.manual-product-form footer{gap:11px;flex-wrap:wrap}.manual-product-form footer>span{font-size:11px}.manual-product-form footer .button{width:100%;min-height:44px}
  .mobile-nav{padding-top:7px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}.mobile-nav a,.mobile-nav>button{min-height:46px;font-size:10px;gap:4px}.mobile-nav .icon{width:21px;height:21px}.toast-container{top:70px;right:11px;width:calc(100% - 22px)}.toast{padding:12px;font-size:12px}.empty-state{min-height:245px;padding:32px 18px}.empty-state h3{font-size:15px}.empty-state p{font-size:12px}.notice{font-size:12px}
  .login-brand{padding:24px 21px}.login-story h1{font-size:31px;line-height:1.3}.login-side{padding:23px 15px}.login-card{padding:25px 20px;border-radius:15px;max-width:460px}.login-card h2{font-size:24px}.login-description{font-size:12px}.login-input{min-height:48px}.login-input input{font-size:16px;min-height:46px}.login-submit{min-height:46px;font-size:14px}.login-options{font-size:11px;gap:10px}.login-security{font-size:11px}
}
@media(max-width:374px){.main-content{padding-inline:11px}.page-heading{padding:14px 12px}.page-heading h1{font-size:21px}.stat-card{padding:12px}.stat-card>strong{font-size:24px}.stat-card>div{font-size:10px}.product-photo{width:76px;height:96px}.product-card-main{gap:10px;padding:12px}.product-card-actions .button{padding:7px 8px;font-size:10px}.product-card-actions .icon{width:14px;height:14px}.segmented button{padding:7px 8px;font-size:10px}.manual-product-form{padding:16px}.service-state{max-width:106px}}
@media(pointer:coarse){.icon-button{min-width:42px;min-height:42px}.checkbox-label,.ui-diagnostic-select{min-height:40px}.switch{min-height:36px}.ui-diagnostic-select input,.product-card-select-label input{width:19px;height:19px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep navigation readable during route transitions and compositing. */
body.workspace-boot-enter .sidebar,body.workspace-boot-enter .desktop-nav a{animation:none;opacity:1;transform:none}.sidebar{backdrop-filter:none;-webkit-backdrop-filter:none}.desktop-nav{flex-shrink:0}

/* Frequent manual-entry workflow */
.product-entry-state{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px;margin:0 13px 12px;font-size:11px;color:var(--muted)}.product-entry-state select{width:100%;min-width:0;min-height:36px;border:1px solid var(--line-strong);border-radius:8px;background:var(--input-bg);color:var(--text);padding:7px;font:inherit;font-size:12px}.product-entry-state select:disabled{opacity:.6}.product-entry-legacy{display:block;line-height:1.6}.product-state-filter{min-height:38px;border:1px solid var(--line-strong);border-radius:9px;background:var(--input-bg);color:var(--text);padding:8px 10px;font-size:12px;max-width:100%}
.manual-product-dialog{width:min(1120px,calc(100vw - 36px));max-height:92dvh;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.manual-product-form{padding:0;gap:0;overflow:visible;display:block}.manual-product-form>header{position:sticky;top:0;z-index:4;background:var(--surface);padding:20px 24px;margin:0;box-shadow:0 4px 12px #0000000d}.manual-product-form>footer{position:sticky;bottom:0;z-index:4;background:var(--surface);padding:16px 24px;margin:0;box-shadow:0 -5px 15px #0000000c}.manual-product-form>.manual-product-error{margin:0 24px 18px;scroll-margin:95px}.manual-editor-body{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:26px;align-items:start;padding:24px}.manual-editor-fields{display:grid;gap:18px;min-width:0}.manual-editor-fields>label:has([name=title]){font-size:15px}.manual-editor-fields [name=title]{font-size:16px;font-weight:650}.manual-product-image{display:flex;flex-direction:column;align-items:stretch;gap:12px;position:sticky;top:108px;min-width:0;padding:17px;background:var(--surface-sub);border:1px solid var(--line);border-radius:14px}.manual-product-image h3{font-size:15px;margin:0}.manual-image-help,.manual-image-meta{font-size:11px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}.manual-upload-zone{border:1px dashed var(--primary-border);padding:12px;background:var(--primary-soft);border-radius:10px;cursor:pointer}.manual-upload-zone input[type=file]{font-size:11px!important;padding:8px!important;min-height:36px!important;cursor:pointer}.manual-upload-zone input::file-selector-button{border:0;border-radius:6px;background:var(--primary);color:var(--bg);padding:7px 9px;cursor:pointer;margin-right:8px}.manual-image-canvas{display:grid;place-items:center;min-height:210px;border:1px solid var(--line-strong);border-radius:10px;background:var(--input-bg);overflow:hidden}.manual-product-image .manual-image-canvas img{width:100%;height:240px;max-width:100%;object-fit:contain;border:0;border-radius:0;background:transparent}.manual-image-placeholder{padding:25px;text-align:center;font-size:12px;color:var(--muted)}.manual-image-actions{display:flex;gap:8px}.manual-image-actions .button{flex:1;justify-content:center}.manual-product-image.is-dragover{outline:2px solid var(--primary);outline-offset:3px}.manual-live-summary{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:14px;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.manual-live-summary>span{color:var(--primary)}.manual-save-actions{display:flex;gap:10px;flex-shrink:0}.manual-product-form footer>span{flex:1}.manual-product-row{gap:14px}.manual-product-confirm{margin-top:2px}.manual-image-lightbox{width:min(900px,95vw);max-height:92dvh;padding:16px;background:var(--surface);color:var(--text);border:1px solid var(--line-strong);border-radius:15px}.manual-image-lightbox::backdrop{background:#000b}.manual-image-lightbox button{display:flex;margin:0 0 12px auto}.manual-image-lightbox img{display:block;max-width:100%;max-height:76dvh;object-fit:contain;margin:auto}
@media(min-width:1100px){.product-grid.ui-list-view>.product-card{grid-template-rows:auto auto auto;grid-template-columns:130px minmax(220px,1fr) 300px}.ui-list-view .product-card-top-bar,.ui-list-view .product-card-main{grid-row:1/4}.ui-list-view .product-entry-state{grid-column:3;grid-row:2;margin:4px 16px 4px 0}.ui-list-view .product-card-footer{grid-row:3}.ui-list-view .product-posted-bar{align-self:center}}
@media(max-width:899px){.manual-product-dialog{width:calc(100vw - 18px);max-height:95dvh}.manual-editor-body{grid-template-columns:1fr;padding:17px;gap:20px}.manual-product-image{position:static;order:-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.7fr);gap:10px;padding:14px}.manual-product-image h3,.manual-image-help,.manual-live-summary{grid-column:1/-1}.manual-image-canvas{grid-column:2;grid-row:3/6;min-height:150px}.manual-product-image .manual-image-canvas img{height:170px}.manual-upload-zone,.manual-image-meta,.manual-image-actions{grid-column:1}.manual-image-actions{flex-wrap:wrap}.manual-image-actions .button{font-size:11px;min-height:36px}.manual-product-form>header{padding:16px 17px}.manual-product-form>footer{padding:13px 17px;gap:10px}.manual-save-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.manual-product-form footer .manual-save-actions .button{width:auto;font-size:12px;min-height:43px;justify-content:center}.manual-product-form footer>span{max-width:none;width:100%}.manual-product-form>.manual-product-error{margin:0 17px 14px}.manual-product-form [hidden]{display:none!important}}
@media(max-width:480px){.manual-product-image{grid-template-columns:1fr}.manual-image-canvas{grid-column:1;grid-row:auto;min-height:170px}.manual-product-image .manual-image-canvas img{height:210px}.manual-upload-zone input[type=file]{font-size:12px!important}.manual-live-summary{display:none}.manual-product-form header p{display:none}.manual-product-form h2{font-size:17px}.manual-product-form footer>span{font-size:10px}.product-entry-state select{min-height:42px;font-size:13px}.manual-product-row{grid-template-columns:1fr}}

.product-entry-state[data-saving="true"]::after{content:"正在保存…";grid-column:2;color:var(--primary);font-size:11px}
