/* Huanyu Studio: workspace shell, catalog, task flows and shared surfaces. */
body[data-theme=light]{--bg:#f5f6f7;--panel:#fff;--panel-2:#f8f9fa;--card:#fff;--border:#e7e9ec;--text:#23302c;--muted:#76817d;--muted-2:#939b97;--primary:#cf643f;--primary-2:#bd5430;--shadow:0 10px 45px #18332a12}
body[data-theme=dark]{--bg:#141c1a;--panel:#1d2925;--panel-2:#25342e;--card:#1d2925;--border:#36473f;--text:#ebf0ec;--muted:#aab8b0;--muted-2:#82948a;--primary:#e28760;--primary-2:#d3764e}
body{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.55;letter-spacing:.05px}button,input,select,textarea{font-family:inherit}button,a,input,select,textarea,summary{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--primary)}
body[data-theme] .sidebar{width:216px;flex-basis:216px;background:#182e27;border:0;padding:28px 16px 18px;color:#e8f0eb;box-shadow:none}body[data-theme] .brand{padding:0 10px 24px;background:none;border:0}.brand-title{font-size:23px;color:#fff;letter-spacing:1px}.brand-sub{font-size:11px!important;color:#8aa297!important;margin-top:2px}.brand-logo{width:40px;height:40px;border-radius:11px;background:#fff!important;border:0!important}.brand-logo-img{object-fit:contain}.brand-text{padding-left:2px}
body[data-theme] .nav{gap:3px;padding:0;scrollbar-width:thin;scrollbar-color:#426253 transparent}body[data-theme] .nav-group-title{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#789487;margin:23px 12px 9px}.nav-group-title:first-child{margin-top:12px}body[data-theme] .nav-item{height:41px;min-height:41px;padding:9px 12px;display:flex;gap:12px;align-items:center;border-radius:7px;color:#b8cbc0;font-size:13px;font-weight:450;background:none}body[data-theme] .nav-item.active{background:#304d3f;color:#fff;font-weight:600;box-shadow:inset 3px 0 #e0a67a}body[data-theme] .nav-item:hover{background:#284438;color:#fff}.nav-icon{width:17px;height:17px}.nav-icon svg{width:17px;height:17px;stroke-width:1.55}body[data-theme] .sidebar-footer{padding:17px 4px 0;border-top:1px solid #ffffff16;margin-top:18px;gap:9px}body[data-theme] .sidebar .pill{background:transparent!important;border:0!important;padding:3px 2px!important;min-height:0!important;color:#98b1a3!important;font-size:10px;line-height:1.6}body[data-theme] .sidebar .environment-tag{background:#253e33;color:#adc4b5;border:1px solid #ffffff06;border-radius:5px;font-weight:400;font-size:10px}body[data-theme] .sidebar-footer .btn,body[data-theme] .sidebar-footer .icon-btn{background:transparent;color:#b8cbc0;border-color:#ffffff22;min-height:32px;padding:4px 10px;font-size:11px}.sidebar-footer .actions{display:flex;gap:8px}.sidebar-footer .dot{width:6px;height:6px}
.main{display:flex;flex-direction:column;min-width:0}.studio-topbar{height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:var(--panel);border-bottom:1px solid var(--border);gap:18px}.studio-breadcrumb{font-size:12px;color:var(--muted);white-space:nowrap}.studio-breadcrumb span{margin:0 14px;color:#bdc4bf}.studio-breadcrumb strong{font-weight:500;color:var(--text)}.studio-topbar-right{display:flex;gap:12px;align-items:center;font-size:12px}.studio-search-button{display:flex;align-items:center;gap:40px;border:0;border-radius:7px;background:var(--panel-2);color:var(--muted);font-size:12px;padding:8px 12px;cursor:pointer}.studio-search-button kbd{font:10px inherit;border:1px solid var(--border);border-radius:4px;padding:0 4px;color:var(--muted)}.studio-topbar-divider{height:22px;width:1px;background:var(--border);margin:0 6px}.studio-avatar{background:#f6ebe3;color:#a36743;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:12px}.content{padding:30px 32px 38px;flex:1;min-height:0;overflow:auto}.studio-page{max-width:1500px;margin:0 auto}.studio-page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.studio-page-head h1{font-size:27px;line-height:1.4;font-weight:650;letter-spacing:-.5px;margin:5px 0 7px}.studio-page-head p{font-size:13px;color:var(--muted);margin:0}.studio-eyebrow{font-size:10px;font-weight:600;letter-spacing:1.7px;color:var(--muted-2)}.studio-head-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.studio-head-actions .toolbar{display:flex;gap:8px}.studio-muted,.studio-caption{color:var(--muted);font-size:12px}.studio-caption{font-size:11px;margin-top:6px;line-height:1.6}.studio-link{font-size:12px;color:var(--primary);text-decoration:none}.studio-link:hover{text-decoration:underline}.studio-surface{background:var(--panel);border:1px solid var(--border);border-radius:13px;padding:24px;min-width:0}.studio-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.studio-surface h2{font-size:16px;font-weight:600;margin:0}.studio-text-button{background:none;border:0;padding:5px 2px;color:var(--primary);font-size:12px;cursor:pointer;font-weight:550}.studio-text-button:hover{color:var(--primary-2);text-decoration:underline}
body[data-theme] .btn,body[data-theme] .icon-btn{border-radius:7px;min-height:36px;padding:8px 13px;border-color:var(--border);font-weight:500;font-size:12px;box-shadow:none}body[data-theme] .btn-primary{background:var(--primary)!important;border-color:var(--primary)!important;color:#fff!important}body[data-theme] .btn-ghost{background:var(--panel)}body[data-theme] .btn-danger{background:transparent;color:#bd4b42;border-color:#d8827b44}body[data-theme] .input,body[data-theme] .select,body[data-theme] .textarea{font-size:13px;border-color:var(--border);border-radius:7px;min-height:38px;padding:8px 11px;line-height:1.5}body[data-theme] .input:focus,body[data-theme] .select:focus,body[data-theme] .textarea:focus{border-color:#b5876a;outline:3px solid #c96b3e0c}body[data-theme] .field label,body[data-theme] .field-label{font-size:12px;color:var(--muted);font-weight:500}.field-hint{font-size:11px}.status-note{font-size:12px;background:var(--panel-2);border:1px solid var(--border);color:var(--muted);border-radius:7px}
.studio-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.studio-stat{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:21px 22px;position:relative;overflow:hidden}.studio-stat-label{font-size:12px;color:var(--muted);margin-bottom:17px}.studio-stat strong{display:block;font-size:31px;font-weight:550;letter-spacing:-1.3px;font-variant-numeric:tabular-nums;line-height:1.1;white-space:nowrap}.studio-stat>span{display:block;font-size:10px;color:var(--muted);margin-top:17px}.studio-stat-primary{background:#244435;border-color:#244435;color:#fff}.studio-stat-primary .studio-stat-label{color:#d5e3d9}.studio-stat-primary>span{color:#9cb6a6}.studio-stat-primary:after{content:"";position:absolute;width:90px;height:90px;border:22px solid #ffffff04;border-radius:50%;right:-35px;top:-20px;pointer-events:none}.studio-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:22px;margin-bottom:23px}.studio-dashboard-grid svg{width:100%;display:block;color:var(--text)}.studio-todos>.studio-eyebrow{margin-bottom:6px}.studio-todos>h2{margin-bottom:15px}.studio-todo{display:flex;align-items:center;gap:16px;color:var(--text);text-decoration:none;padding:15px 0;border-bottom:1px solid var(--border)}.studio-todo>div{flex:1}.studio-todo strong,.studio-shortcut strong{font-size:13px;font-weight:500;display:block}.studio-todo div>span,.studio-shortcut div>span{color:var(--muted);font-size:11px;display:block;margin-top:4px}.studio-todo b{font-size:22px;font-weight:550;font-variant-numeric:tabular-nums}.studio-todo>span{color:var(--muted)}.studio-todo:hover strong,.studio-shortcut:hover strong{color:var(--primary)}.studio-recent-row{display:flex;width:100%;align-items:center;gap:20px;text-align:left;padding:17px 0;border:0;border-bottom:1px solid var(--border);background:none;color:var(--text);cursor:pointer}.studio-recent-row:last-child{border-bottom:0}.studio-recent-row>div{flex:1;min-width:0}.studio-recent-row strong{font-size:13px;font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio-recent-row div>span{font-size:10px;color:var(--muted);display:block;margin-top:4px}.studio-recent-row>b{font-size:13px;font-weight:600;min-width:75px;text-align:right}.studio-status{display:inline-block;border-radius:5px;padding:4px 8px;font-size:11px;background:var(--panel-2);color:var(--muted);white-space:nowrap}.studio-status.success{color:#377655;background:#edf6ef}.studio-status.neutral{color:var(--muted);background:var(--panel-2)}.studio-shortcut{display:flex;align-items:center;justify-content:space-between;gap:14px;text-decoration:none;color:var(--text);padding:17px 0;border-bottom:1px solid var(--border)}.studio-shortcut>b{color:var(--muted);font-weight:400}.studio-shortcut:last-child{border-bottom:0}.studio-empty{text-align:center;padding:48px 24px;color:var(--muted);font-size:13px}.studio-empty strong{display:block;color:var(--text);font-size:16px;font-weight:500}.studio-empty p{margin:10px 0 20px}
.studio-catalog-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:0 0 24px;gap:0;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:21px 0}.studio-catalog-stats>div{padding:0 25px;border-right:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:14px}.studio-catalog-stats>div:last-child{border:0}.studio-catalog-stats span{font-size:12px;color:var(--muted)}.studio-catalog-stats strong{font-size:25px;font-weight:550;font-variant-numeric:tabular-nums}.studio-catalog{padding:0;overflow:visible}.studio-category-tabs{display:flex;gap:28px;padding:0 24px;border-bottom:1px solid var(--border);overflow-x:auto}.studio-category-tab{display:flex;gap:8px;align-items:center;white-space:nowrap;background:none;border:0;border-bottom:2px solid transparent;padding:19px 0 17px;font-size:13px;color:var(--muted);cursor:pointer}.studio-category-tab small{font-size:10px;background:var(--panel-2);border-radius:4px;padding:1px 5px;font-variant-numeric:tabular-nums}.studio-category-tab.active{color:var(--primary);font-weight:600;border-bottom-color:var(--primary)}.studio-category-tab.active small{background:#cd683517;color:var(--primary)}.studio-catalog-filters{display:flex;gap:12px;align-items:center;padding:22px 24px}.studio-catalog-filters .input{width:290px;max-width:60%}.studio-catalog-filters .select{width:130px}.studio-catalog-table{width:100%;overflow:auto}.studio-product-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:860px;font-size:12px}.studio-product-table th{color:var(--muted);font-size:11px;font-weight:500;background:var(--panel-2);padding:12px 20px;text-align:left;border-block:1px solid var(--border)}.studio-product-table th:first-child{width:36%;padding-left:24px}.studio-product-table th:nth-child(2){width:16%}.studio-product-table th:nth-child(3){width:15%}.studio-product-table th:nth-child(4){width:13%}.studio-product-table th:last-child{width:20%}.studio-product-table td{padding:22px 20px;border-bottom:1px solid var(--border);vertical-align:middle}.studio-product-table td:first-child{padding-left:24px}.studio-product-table tr:last-child td{border-bottom:0}.studio-product-table tbody tr:hover{background:var(--panel-2)}.studio-product-info{display:flex;align-items:center;gap:15px;min-width:0}.studio-product-picture{width:64px;height:64px;flex:0 0 64px;border:1px solid var(--border);border-radius:9px;overflow:hidden;background:#f5ece0;display:grid;place-items:center;font-size:15px;color:#a57e57}.studio-product-picture img{width:100%;height:100%;object-fit:cover}.studio-product-info>div:last-child{min-width:0}.studio-product-name{display:block;max-width:100%;text-align:left;font-size:14px;line-height:1.6;font-weight:550;color:var(--text);background:none;border:0;padding:0;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-product-name:hover{color:var(--primary)}.studio-product-address{display:block;color:var(--muted-2);font-size:10px;margin-top:4px;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-price{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}.studio-chip{display:inline-block;border:1px solid var(--border);padding:3px 7px;font-size:10px;color:var(--muted);border-radius:5px;background:var(--panel)}.studio-row-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.studio-row-actions .action-menu summary{font-size:11px;border:0;padding:5px 0;color:var(--muted)}.studio-list-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid var(--border);padding:17px 24px}.studio-pagination{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.studio-pagination .select{width:110px}.studio-pagination .btn{padding:6px 11px;min-height:32px}.studio-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:24px 0}.studio-mini-stats>div{padding:16px;background:var(--panel-2);border-radius:8px}.studio-mini-stats span{display:block;color:var(--muted);font-size:11px}.studio-mini-stats strong{display:block;margin-top:10px;font-size:15px}.studio-product-overview-head h2{font-size:25px;margin:13px 0 4px}
/* The shared pages keep proven actions, but move the page hierarchy outside the data surface. */
body[data-theme] .studio-page>.card{border:1px solid var(--border);border-radius:12px;box-shadow:none;overflow:hidden}body[data-theme] .studio-old-head{display:none!important}body[data-theme] .studio-old-head.studio-with-controls{display:flex!important;padding:16px 22px;min-height:0;border-bottom:1px solid var(--border)}.studio-old-head.studio-with-controls>.card-title{display:none}.studio-old-head>.toolbar:empty{display:none}.studio-page .card-title{font-size:17px}.studio-page .filters{background:var(--panel)!important;border-bottom:1px solid var(--border);padding:20px 22px;gap:12px}.studio-page .card-body{padding:22px}.studio-page .table th{background:var(--panel-2)!important;font-size:11px;font-weight:500;padding:13px 16px}.studio-page .table td{font-size:12px;padding:17px 16px;border-color:var(--border)}.studio-page .table td strong{font-weight:550}.studio-page .pager{padding:18px 0 0;gap:10px}.studio-page .table tbody tr:nth-child(even){background:none}.studio-page .table tbody tr:hover td{background:var(--panel-2)}.studio-page .table .btn{font-size:11px;min-height:30px;padding:5px 10px}.studio-page .action-menu summary{font-size:11px;min-height:30px;padding:5px 9px}.studio-page .action-menu[open]{position:relative;background:var(--panel);z-index:5;border-radius:7px;box-shadow:0 5px 18px #11221912}.studio-page .action-menu[open]>.btn{white-space:nowrap;text-align:left;width:100%}
.studio-page.orders-page .orders-summary{display:flex!important;gap:0;padding:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;margin:0 0 18px}.studio-page.orders-page .orders-summary-card{flex:1;min-width:0;background:var(--panel)!important;border:0!important;border-right:1px solid var(--border)!important;border-radius:0;padding:16px 20px;box-shadow:none!important}.studio-page.orders-page .orders-summary-card:last-child{border-right:0!important}.studio-page.orders-page .orders-summary-value{font-size:24px;font-weight:550;letter-spacing:-.5px}.studio-page.orders-page .orders-summary-label{font-size:11px}.studio-page.orders-page .orders-summary-hint{font-size:10px;color:var(--muted)}.studio-page.orders-page .orders-summary-card.is-active{background:#cd683509!important;box-shadow:inset 0 -2px var(--primary)!important}.studio-page.orders-page .orders-bulk-bar{margin:12px 0;background:var(--panel-2);border-radius:7px;padding:9px 13px;min-height:0}.studio-page.orders-page .orders-results-bar{margin-bottom:10px}.studio-page.orders-page .orders-table{min-width:920px!important;width:100%!important;table-layout:fixed}.studio-page.orders-page .orders-table th:nth-child(1){width:40px}.studio-page.orders-page .orders-table th:nth-child(2){width:18%}.studio-page.orders-page .orders-table th:nth-child(3){width:23%}.studio-page.orders-page .orders-table th:nth-child(4){width:14%}.studio-page.orders-page .orders-table th:nth-child(5){width:12%}.studio-page.orders-page .orders-table th:nth-child(6){width:15%}.studio-page.orders-page .orders-table th:last-child{width:18%}.studio-page.orders-page .orders-table td{position:static!important;white-space:normal;overflow:visible;word-break:break-word}.studio-page.orders-page .orders-table td:last-child{box-shadow:none!important;background:var(--panel)!important;position:static!important}.studio-page.orders-page .orders-table th:last-child{position:static!important;box-shadow:none!important}.studio-page.orders-page .orders-table .actions{gap:7px;flex-wrap:wrap}.studio-page.orders-page .orders-main-text{max-width:none!important;font-size:12px}.studio-page.orders-page .orders-table .studio-caption{font-size:10px;line-height:1.65}.studio-page.orders-page .orders-table th:nth-child(5),.studio-page.orders-page .orders-table td:nth-child(5){text-align:right}.studio-page.orders-page .orders-table .orders-progress{max-width:100px}.studio-page.orders-page .orders-results-tip{font-size:11px}
.studio-page.permissions-page .permissions-body{padding:0}.studio-page.permissions-page .permissions-tabs{margin:0;padding:14px 22px;border-bottom:1px solid var(--border)}.studio-page.permissions-page .permissions-grid{padding:0;gap:0}.studio-page.permissions-page .permissions-panel{border:0;border-radius:0;padding:22px}.studio-page.permissions-page .permissions-panel>.panel-head{padding:0 0 16px;margin:0 0 16px}.studio-page.permissions-page .studio-team-table{min-width:880px!important;table-layout:fixed!important}.studio-team-table th:nth-child(1){width:20%}.studio-team-table th:nth-child(2){width:26%}.studio-team-table th:nth-child(3){width:12%;text-align:right}.studio-team-table th:nth-child(4){width:12%}.studio-team-table th:nth-child(5){width:30%}.studio-page.permissions-page .studio-team-table td{white-space:normal!important;min-width:0!important;max-width:none!important;word-break:break-word}.studio-page.permissions-page .studio-team-table td:nth-child(3){text-align:right;font-size:15px;font-weight:550}.studio-page.permissions-page .studio-team-table td:nth-child(4){text-align:left!important}.studio-page.permissions-page .studio-team-table td>.actions{min-width:0;gap:7px}.studio-team-table .studio-caption{font-size:10px;line-height:1.7}.permissions-panel .switch{white-space:nowrap}.permissions-panel .switch-slider{transform:scale(.8);transform-origin:left center}.permissions-panel .switch-text{font-size:11px}
body[data-theme] .af-root .af-head{background:none!important;border:0;padding:0;margin:0 0 20px}.af-root .af-head>h2,.af-root .af-head>.af-muted{display:none}.af-root .af-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:0!important;background:var(--panel);border:1px solid var(--border);border-radius:10px;margin:0!important;padding:20px 0}.af-root .af-stats>div{padding:0 24px;border-right:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;gap:15px}.af-root .af-stats>div:last-child{border:0}.af-root .af-stats strong{font-size:24px!important;font-weight:550!important;margin:0!important}.af-root .af-stats .af-muted{font-size:12px}.af-root .af-tabs{margin:0!important;background:var(--panel);padding:0 22px;border:1px solid var(--border);border-bottom:0;border-radius:12px 12px 0 0;gap:26px!important}body[data-theme] .af-root .af-tabs button{background:none!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0;padding:19px 0 16px;min-height:50px;color:var(--muted)!important;font-size:13px}body[data-theme] .af-root .af-tabs button.active{border-bottom-color:var(--primary)!important;color:var(--primary)!important;font-weight:600}.af-root .af-tabs button:last-child{margin-left:auto}.af-root .af-panel{border-radius:0 0 12px 12px!important;padding:22px!important}.af-root .af-note{border:0!important;border-left:3px solid #d7b08a!important;background:var(--panel-2)!important;font-size:12px!important;color:var(--muted)!important;padding:12px 16px!important;margin:0 0 20px!important}.af-root .af-form{max-width:820px!important}.af-root .data-tools{margin-top:14px;gap:10px}.af-root .data-tools input{max-width:250px!important}.af-root .data-tools select{max-width:150px!important}.af-root table th{font-size:11px!important}.af-root table td{padding:18px 12px!important;font-size:12px}.af-root .af-rule-grid{table-layout:auto!important}.af-root .af-rule-grid td:first-child{min-width:230px}.af-root .af-rule-grid select{min-width:165px}.af-root .af-rule-grid input{min-width:120px}.af-root dialog{border-radius:12px!important}.af-root dialog h3{font-size:20px}.af-root dialog p{line-height:1.8}.af-root label{font-size:12px!important;color:var(--muted)}
/* Detail is a side sheet; a product editor is a dedicated workspace. */
body[data-theme] .modal{border:0;border-radius:13px;box-shadow:0 24px 90px #11271b26;max-width:1000px}.modal-head{padding:21px 25px!important}.modal-title{font-size:18px}.modal-body{padding:25px}.modal-foot{padding:16px 25px!important}.modal-mask{backdrop-filter:blur(3px);background:#13261e4d}.modal.studio-drawer{position:fixed;right:0;top:0;bottom:0;width:min(820px,95vw)!important;max-width:none!important;height:100dvh;max-height:100dvh!important;border-radius:0!important;margin:0;animation:studio-slide .18s ease-out}.studio-drawer .modal-body{padding:26px;flex:1;overflow:auto;background:var(--bg)}.studio-drawer .modal-head,.studio-drawer .modal-foot{flex-shrink:0}.studio-drawer .order-detail .panel{background:var(--panel);border-radius:10px}.studio-drawer .order-detail .kv{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.studio-drawer .order-stat-grid{gap:10px}.studio-drawer .order-detail-grid{grid-template-columns:1fr!important}.studio-drawer .order-detail .panel-head{padding:0 0 14px!important}.studio-drawer .order-detail .panel-title{font-size:14px}.studio-drawer .order-detail .order-stat-value{font-size:23px}.studio-drawer .order-detail .kv .k{font-size:11px;color:var(--muted)}.studio-drawer .order-detail .kv .v{font-size:12px}.studio-drawer .operation-record{font-size:12px;color:var(--muted)}
.modal.studio-editor-modal{position:fixed;inset:22px;width:calc(100vw - 44px)!important;max-width:none!important;height:calc(100dvh - 44px);max-height:none!important;border-radius:13px!important;display:flex;flex-direction:column}.studio-editor-modal>.modal-body{padding:0!important;flex:1;min-height:0;overflow:hidden!important}.studio-editor-modal>.modal-head{flex-shrink:0}.studio-editor-modal>.modal-foot{flex-shrink:0;gap:10px}.studio-editor-modal>.modal-foot>.btn:first-child{margin-right:auto}.studio-editor{display:grid!important;grid-template-columns:225px minmax(0,1fr);gap:0!important;height:100%;min-height:0}.studio-editor-side{background:var(--panel-2);border-right:1px solid var(--border);padding:26px 16px;overflow:auto}.studio-editor-intro{padding:0 10px 22px}.studio-editor-intro h2{font-size:20px;margin:9px 0}.studio-editor-intro p{color:var(--muted);font-size:11px;line-height:1.7;margin:0}.studio-editor .modal-nav{display:flex!important;flex-direction:column;gap:5px;padding:0!important;margin:0!important;position:static!important;border:0!important;background:transparent!important;overflow:visible}.studio-step{display:flex;align-items:center;gap:12px;padding:12px 11px;color:var(--muted);border:1px solid transparent;border-radius:7px;background:none;text-align:left;font-size:12px;cursor:pointer}.studio-step-number{font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted-2);border:1px solid var(--border);border-radius:50%;height:24px;width:24px;display:grid;place-items:center;background:var(--panel)}.studio-step.active{background:var(--panel);border-color:var(--border);box-shadow:0 2px 5px #1b3b2110;color:var(--primary);font-weight:600}.studio-step.active .studio-step-number{color:#fff;background:var(--primary);border-color:var(--primary)}.studio-editor-note{font-size:10px;color:var(--muted-2);white-space:pre-line;padding:25px 10px;line-height:1.9}.studio-editor-stage{padding:32px 42px 45px;overflow-y:auto;min-height:0;background:var(--panel)}.studio-editor-pane-head{padding:0 0 26px;border-bottom:1px solid var(--border);margin-bottom:24px}.studio-editor-pane-head h2{font-size:24px;margin:7px 0}.studio-editor-pane-head p{font-size:12px;color:var(--muted);margin:0}.studio-editor-stage>.panel{border:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important;max-width:1060px}.studio-editor-stage>.panel>.section-title{display:none}.studio-editor-stage .field{margin-bottom:14px}.studio-editor-stage .grid-2{gap:22px}.studio-check-row{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--border);font-size:13px}.studio-check-row strong{font-weight:500;font-size:12px}.studio-check-row .success{color:#4c815f}.studio-check-row .warning{color:#b57c37}.studio-publish-check .status-note{margin-top:24px}
.studio-command{background:var(--panel);color:var(--text);width:min(560px,90vw);border:1px solid var(--border);border-radius:12px;padding:0;max-height:75vh;box-shadow:0 30px 110px #15292030}.studio-command::backdrop{background:#13261e66;backdrop-filter:blur(3px)}.studio-command-head{display:flex;gap:10px;padding:18px;border-bottom:1px solid var(--border)}.studio-command-head input{flex:1;min-width:0;border:0;background:none;font-size:15px;color:var(--text);outline:0}.studio-command-results{padding:10px;overflow:auto;max-height:55vh}.studio-command-item{display:block;width:100%;border:0;text-align:left;background:none;color:var(--text);padding:14px 15px;border-radius:7px;font-size:13px;cursor:pointer}.studio-command-item:hover{background:var(--panel-2);color:var(--primary)}.site-footer{padding:8px!important;font-size:10px!important;color:var(--muted-2);border-top:0!important}.studio-old-head:empty{display:none!important}body[data-route=login] .sidebar,body[data-route=login] .studio-topbar{display:none}body[data-route=login] .content{background:radial-gradient(ellipse at 12% 10%,#e3ede5,transparent 65%),#f6f6f1}
@keyframes studio-slide{from{transform:translateX(35px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(min-width:1600px){.content{padding:34px 45px}.studio-page-head{margin-bottom:30px}.studio-dashboard-grid{grid-template-columns:minmax(0,2fr) minmax(300px,1fr)}}
@media(max-width:1200px){body[data-theme] .sidebar{width:196px;flex-basis:196px;padding-inline:12px}.content{padding:25px 23px}.studio-topbar{padding:0 23px}.studio-stat{padding:18px 17px}.studio-stat strong{font-size:26px}.studio-catalog-stats>div{padding:0 18px}.studio-catalog-stats strong{font-size:23px}.studio-dashboard-grid{gap:18px;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr)}.studio-surface{padding:20px}.studio-page.orders-page .orders-summary-card{padding:15px 12px}.studio-page.orders-page .orders-summary-value{font-size:20px}.studio-editor-stage{padding:25px 30px}.studio-editor{grid-template-columns:205px minmax(0,1fr)}}
@media(max-width:820px){.studio-topbar{height:56px;flex-basis:56px;padding:0 15px 0 60px}.studio-breadcrumb{font-size:11px}.studio-topbar-right{gap:7px}#studioUser,.studio-search-button kbd,.studio-topbar-divider{display:none}.studio-search-button{font-size:0;padding:7px 9px}.studio-search-button:before{content:'搜索';font-size:11px}.content{padding:22px 15px}.mobile-toggle{top:10px!important;z-index:1000}.studio-page-head h1{font-size:23px}.studio-page-head{align-items:flex-start;gap:15px;margin-bottom:22px}.studio-page-head p{font-size:11px;max-width:240px}.studio-eyebrow{font-size:9px}.studio-head-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:135px}.studio-head-actions .btn{font-size:10px;min-height:31px;padding:7px 9px}.studio-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.studio-stat{padding:17px}.studio-stat strong{font-size:25px}.studio-stat>span{font-size:9px;line-height:1.6;margin-top:13px}.studio-stat-label{font-size:11px;margin-bottom:12px}.studio-dashboard-grid{grid-template-columns:1fr;gap:16px}.studio-surface{padding:19px}.studio-catalog{padding:0}.studio-catalog-stats{padding:0;grid-template-columns:repeat(2,1fr)}.studio-catalog-stats>div{padding:17px;border-bottom:1px solid var(--border)}.studio-catalog-stats>div:nth-child(2){border-right:0}.studio-catalog-stats>div:nth-child(3){border-bottom:0}.studio-category-tabs{padding:0 18px;gap:22px}.studio-category-tab{font-size:12px}.studio-catalog-filters{padding:17px;gap:8px}.studio-list-footer{padding:14px}.studio-pagination{gap:7px}.studio-page .filters{padding:16px!important}.studio-page .card-body{padding:16px}.studio-page.orders-page .orders-summary{flex-wrap:wrap}.studio-page.orders-page .orders-summary-card{flex:1 1 30%;border-bottom:1px solid var(--border)!important}.af-root .af-tabs{gap:18px!important;padding:0 17px;overflow:auto;flex-wrap:nowrap!important}.af-root .af-tabs button{white-space:nowrap;font-size:12px!important}.af-root .af-stats>div{display:block;padding:0 14px}.af-root .af-stats strong{font-size:19px!important;margin-bottom:7px!important}.af-root .af-stats .af-muted{font-size:10px}.studio-editor{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.studio-editor-side{padding:12px 15px;border-right:0;border-bottom:1px solid var(--border)}.studio-editor-intro,.studio-editor-note{display:none}.studio-editor .modal-nav{flex-direction:row;overflow-x:auto!important;gap:8px}.studio-step{white-space:nowrap;padding:7px}.studio-step-number{display:none}.studio-editor-stage{padding:21px}.modal.studio-editor-modal{inset:0;width:100vw!important;height:100dvh;border-radius:0!important}.studio-editor-modal>.modal-foot{padding:10px 14px!important;gap:6px;flex-wrap:wrap}.studio-editor-modal .modal-foot .btn{font-size:10px;padding:7px 8px}.studio-drawer .modal-body{padding:16px}.studio-drawer .order-detail .kv{grid-template-columns:1fr}.studio-mini-stats{gap:7px}.studio-mini-stats>div{padding:10px}.studio-mini-stats strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.modal.studio-drawer{animation:none}*{scroll-behavior:auto!important}}
/* Keep data inside its surface and remove legacy inline cell layout. */
.content,#view,.studio-page,.studio-page .card-body,.studio-page .coupons-table-wrap{min-width:0;max-width:100%;box-sizing:border-box}
.studio-page .table-wrap-x{width:100%;overflow:auto;scrollbar-width:thin;padding-bottom:0}.studio-page .table-wrap-x::-webkit-scrollbar{height:7px}.studio-page .hscroll{display:none!important}
.studio-page .table-nowrap td>.studio-caption{display:block!important;margin:5px 0 0!important}.studio-page .table.has-actions th:last-child,.studio-page .table.has-actions td:last-child{box-shadow:-2px 0 0 var(--border)!important;border-left:0;background:var(--panel)!important}
.studio-page .table th{font-size:12px}.studio-page .table td{font-size:13px}.studio-page .table tbody tr:nth-child(odd) td{background:var(--panel)}
.studio-page.orders-page .orders-table th,.studio-page.orders-page .orders-table td{min-width:0!important;width:auto;max-width:none!important;padding:15px 12px}
.studio-page.orders-page .orders-table th:first-child{width:35px!important}.studio-page.orders-page .orders-table th:nth-child(2){width:17%!important}.studio-page.orders-page .orders-table th:nth-child(3){width:20%!important}.studio-page.orders-page .orders-table th:nth-child(4){width:14%!important}.studio-page.orders-page .orders-table th:nth-child(5){width:11%!important}.studio-page.orders-page .orders-table th:nth-child(6){width:16%!important}.studio-page.orders-page .orders-table th:last-child{width:19%!important}
.studio-page.orders-page .orders-table td>.orders-voucher-progress{display:flex;margin:8px 0 0;min-width:0;max-width:100%}.studio-page.orders-page .orders-table td>.orders-voucher-progress .orders-voucher-bar{width:100%;max-width:115px}.studio-page.orders-page .orders-table td:last-child{box-shadow:none!important}
.studio-page.permissions-page .studio-team-table th:last-child,.studio-page.permissions-page .studio-team-table td:last-child{box-shadow:none!important;position:static!important}.studio-page.permissions-page .studio-team-table td>.actions{display:flex!important;margin-left:0}.studio-team-table td .studio-caption{font-size:11px;white-space:normal;line-height:1.7}.studio-team-table td:first-child{font-weight:550}.studio-team-table td:first-child .studio-caption{font-weight:400}
.studio-page .table:has(tbody:empty):after{content:'暂无记录，可调整筛选条件或新增内容';display:table-caption;caption-side:bottom;text-align:center;padding:60px 20px;color:var(--muted);font-size:13px}
body[data-theme] .sidebar{padding-top:22px}body[data-theme] .brand{padding-bottom:13px}body[data-theme] .nav-group-title{margin:16px 12px 7px}body[data-theme] .nav-item{height:36px;min-height:36px;padding-block:7px}
.studio-editor-stage>.panel>.panel-head{display:none}.studio-step[hidden]{display:none!important}.studio-drawer .order-detail .kv-item{border:0;background:transparent;padding:8px 0;border-radius:0}
.studio-page .af-panel:empty{display:none}.studio-page .af-note{line-height:1.8}.studio-page .msel-trigger{border-radius:7px;background:var(--panel);border-color:var(--border)}
.studio-page.orders-page .orders-table td>.orders-voucher-progress{display:flex!important;margin:7px 0 0!important}
.studio-page .studio-campaign-table{table-layout:fixed;width:100%;min-width:940px!important}.studio-page .studio-campaign-table th{width:16%}.studio-page .studio-campaign-table th:first-child{width:19%}.studio-page .studio-campaign-table th:last-child{width:17%}.studio-page .studio-campaign-table td{white-space:normal!important;overflow-wrap:anywhere}.studio-page .studio-campaign-table td>div{display:block;margin:5px 0 0}.studio-page .studio-campaign-table td>.actions{display:flex;margin:0;gap:7px;flex-wrap:wrap}.studio-page .studio-campaign-table th:last-child,.studio-page .studio-campaign-table td:last-child{position:static!important;box-shadow:none!important}.studio-page .studio-campaign-table .switch{display:flex;gap:5px;white-space:nowrap}.studio-page .studio-campaign-table .switch-slider{transform:scale(.8);transform-origin:left center}.studio-page .studio-campaign-table .switch-text{font-size:11px}
body[data-theme] .studio-page .table tbody tr td{background:var(--panel)}body[data-theme] .studio-page .table tbody tr:hover td{background:var(--panel-2)}
.studio-page .studio-voucher-table{width:100%!important;min-width:930px!important;table-layout:fixed!important}.studio-page .studio-voucher-table th,.studio-page .studio-voucher-table td{min-width:0!important;max-width:none!important;width:auto;white-space:normal!important;padding:17px 12px}.studio-page .studio-voucher-table th:first-child{width:4%}.studio-page .studio-voucher-table th:nth-child(2){width:23%}.studio-page .studio-voucher-table th:nth-child(3){width:24%}.studio-page .studio-voucher-table th:nth-child(4){width:17%}.studio-page .studio-voucher-table th:nth-child(5){width:12%}.studio-page .studio-voucher-table th:nth-child(6){width:20%}.studio-page .studio-voucher-table td:last-child,.studio-page .studio-voucher-table th:last-child{position:static!important;box-shadow:none!important}.studio-page .studio-voucher-table td>.actions{display:flex;margin:0;gap:6px;flex-wrap:wrap}.studio-page .studio-voucher-table .studio-caption{font-size:11px}.studio-page .studio-voucher-table .voucher-cell-ellipsis,.studio-page .studio-voucher-table .voucher-spot-ellipsis,.studio-page .studio-voucher-table .voucher-code-ellipsis{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.studio-page .studio-campaign-table th,.studio-page .studio-campaign-table td{min-width:0!important;max-width:none!important;width:auto!important;white-space:normal!important}.studio-page .studio-campaign-table th:nth-child(1){width:17%!important}.studio-page .studio-campaign-table th:nth-child(2){width:18%!important}.studio-page .studio-campaign-table th:nth-child(3){width:20%!important}.studio-page .studio-campaign-table th:nth-child(4){width:14%!important}.studio-page .studio-campaign-table th:nth-child(5){width:12%!important}.studio-page .studio-campaign-table th:nth-child(6){width:19%!important}.studio-page .table .btn,.studio-page .table summary{white-space:nowrap!important;flex-shrink:0}.studio-page .studio-campaign-table .actions{justify-content:flex-start!important}

/* Ticket editing: bounded operations and focused form sections. */
.studio-editor-stage .ticket-config-table{width:100%;min-width:680px;table-layout:fixed;border-collapse:collapse}
.studio-editor-stage .ticket-config-table th,.studio-editor-stage .ticket-config-table td{padding:18px 14px;white-space:normal;word-break:break-word;font-size:13px;border-color:var(--border);position:static!important;box-shadow:none!important;background:var(--panel)!important}
.studio-editor-stage .ticket-config-table th{background:var(--panel-2)!important;color:var(--muted);font-size:12px;font-weight:500}
.studio-editor-stage .ticket-config-table[data-mode=standard] th:first-child{width:34%}.studio-editor-stage .ticket-config-table[data-mode=standard] th:nth-child(2){width:19%}.studio-editor-stage .ticket-config-table[data-mode=standard] th:nth-child(3){width:12%}.studio-editor-stage .ticket-config-table[data-mode=standard] th:nth-child(4){width:16%}.studio-editor-stage .ticket-config-table th:last-child{width:150px!important}
.ticket-config-table td>.ticket-row-caption{display:block!important;margin:7px 0 0!important;font-size:11px;color:var(--muted);line-height:1.7}.ticket-config-table td>.actions{display:flex!important;flex-wrap:nowrap;gap:7px;margin:0!important}.ticket-config-table .btn{font-size:12px;white-space:nowrap}.ticket-config-table .switch{display:flex;align-items:center;gap:7px;white-space:nowrap}.ticket-config-table .switch-slider{width:34px;height:20px;flex:0 0 34px}.ticket-config-table .switch-slider:after{width:16px;height:16px;top:2px;left:2px}.ticket-config-table .switch.on .switch-slider:after{transform:translateX(14px)}.ticket-config-table .switch-text{font-size:12px}
.ticket-action-popover{position:fixed;inset:auto;margin:0;width:170px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:6px;background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 36px #10251a26;overflow:auto;max-height:calc(100vh - 16px)}
.ticket-action-popover:popover-open{display:flex;flex-direction:column;gap:2px}.ticket-action-popover::backdrop{background:transparent}.ticket-action-popover>.btn{display:block;width:100%;text-align:left;border:0!important;box-shadow:none!important;border-radius:5px;padding:10px 12px!important;min-height:36px;white-space:nowrap}.ticket-action-popover>.btn:hover{background:var(--panel-2)}.ticket-action-popover>.btn-danger{color:#b4483d!important;border-top:1px solid var(--border)!important;margin-top:4px;border-radius:0 0 5px 5px}
body[data-theme] .ticket-form-dialog{width:min(1060px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);border-radius:14px;border:0;background:var(--panel);box-shadow:0 30px 100px #14291f30}
.ticket-form-dialog>.modal-body{padding:0;overflow-y:auto;overflow-x:hidden}.ticket-form-dialog>.modal-head{padding:21px 28px!important}.ticket-form-dialog>.modal-foot{padding:16px 28px!important;border-top:1px solid var(--border);gap:10px;flex-shrink:0;background:var(--panel)}
.ticket-form{display:block!important;min-width:0}.ticket-form-intro{padding:22px 28px 15px}.ticket-form-intro p{font-size:12px;color:var(--muted);margin:7px 0 0;line-height:1.8}.ticket-form-tabs{display:flex;gap:28px;padding:0 28px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--panel);z-index:1}.ticket-form-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:14px 0;font-size:13px;color:var(--muted);cursor:pointer;white-space:nowrap}.ticket-form-tabs button.active{border-bottom-color:var(--primary);color:var(--primary);font-weight:600}
.ticket-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:30px;padding:26px 28px 32px;background:var(--panel-2);min-height:430px}.ticket-form-main{min-width:0}.ticket-form-pane[hidden]{display:none!important}.ticket-form-section{border:1px solid var(--border);background:var(--panel);padding:22px;border-radius:10px;margin-bottom:18px}.ticket-form-section:last-child{margin-bottom:0}.ticket-form-section>h3{margin:0 0 5px;font-size:15px;font-weight:600}.ticket-form-hint{font-size:11px;color:var(--muted);line-height:1.8;margin:6px 0 0;white-space:pre-line}.ticket-form-section>.ticket-form-hint{margin-bottom:18px}.ticket-form-section>.ticket-form-hint:last-child{margin:10px 0 0}.ticket-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.ticket-form .field{min-width:0;margin:0 0 15px;gap:7px}.ticket-form-grid>.field{margin:0}.ticket-form .field>label{font-size:12px;color:var(--text)}.ticket-form input,.ticket-form select,.ticket-form textarea{box-sizing:border-box;max-width:100%}.ticket-form input:not([type=checkbox]):not([type=file]){height:41px;width:100%}.ticket-form textarea{min-height:95px;width:100%;resize:vertical}.ticket-form .intro-img{max-height:230px;width:auto;max-width:100%;object-fit:contain;border-radius:8px}.ticket-form .file{display:inline-flex;align-self:flex-start}.ticket-form .switch{padding:8px 0;min-height:41px;box-sizing:border-box}.ticket-form [aria-invalid=true]{border-color:#c4594e!important;background:#fff8f6!important;color:#733b34!important}.ticket-form-error{background:#fff1ed;color:#a44033;border:1px solid #f0cabe;border-radius:7px;padding:12px 15px;font-size:12px;margin-bottom:18px}.ticket-form-error[hidden]{display:none}
.ticket-form-summary{background:#edf2ed;border:1px solid #dce5dc;padding:22px 19px;border-radius:10px;align-self:start;position:sticky;top:68px;color:#294537}.ticket-form-summary>.studio-eyebrow{color:#6d8574}.ticket-form-summary>strong{display:block;font-size:17px;line-height:1.7;margin:18px 0 12px;overflow-wrap:anywhere}.ticket-form-summary>b{font-size:27px;display:block;letter-spacing:-.6px;font-weight:600}.ticket-form-summary>span:not(.studio-eyebrow){display:block;font-size:12px;color:#64806c;margin-top:10px}.ticket-form-summary>p{border-top:1px solid #d6e1d7;padding-top:18px;margin-top:22px;color:#64806c}.ticket-form [role=tabpanel]>.ticket-form-section>div:empty{display:none}
body[data-theme=dark] .ticket-form-summary{background:#263f32;border-color:#395846;color:#dfede0}body[data-theme=dark] .ticket-form-summary>p,body[data-theme=dark] .ticket-form-summary>span{color:#b3cbb7}
@media(max-width:1000px){.ticket-form-layout{grid-template-columns:1fr}.ticket-form-summary{display:none}.studio-editor-stage{padding-inline:24px}.studio-editor-stage .panel{max-width:100%;min-width:0}.studio-editor-stage .panel-head{flex-wrap:wrap;gap:12px}}
@media(max-width:600px){body[data-theme] .ticket-form-dialog{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.ticket-form-intro{padding:18px}.ticket-form-tabs{padding:0 18px;gap:23px}.ticket-form-layout{padding:18px;gap:0}.ticket-form-section{padding:18px}.ticket-form-grid{grid-template-columns:1fr}.ticket-form-dialog>.modal-head{padding:17px 18px!important}.ticket-form-dialog>.modal-foot{padding:12px 18px!important}.ticket-form-dialog>.modal-foot .btn{min-height:40px}}
@media(max-width:600px){.submodal-mask:has(>.ticket-form-dialog){padding:0}body[data-theme] .ticket-form-dialog{position:fixed;inset:0;box-sizing:border-box;min-width:0;margin:0}}
body:has(.ticket-form-dialog) .toast{bottom:90px;pointer-events:none;max-width:calc(100vw - 36px)}

/* Shared operations sit above scroll containers, never expand or clip table rows. */
body[data-theme] details.action-menu[open]{background:transparent;box-shadow:none;border:0;padding:0}
.studio-action-popover{position:fixed;inset:auto;margin:0;width:184px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;box-sizing:border-box;padding:6px;border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--text);box-shadow:0 12px 40px #12261d26}
.studio-action-popover:not(:popover-open){display:none!important}
.studio-action-popover:popover-open{display:flex!important;flex-direction:column;gap:3px}
.studio-action-popover::backdrop{background:transparent}
body[data-theme] .studio-action-popover>.btn{display:block;width:100%;margin:0;text-align:left;white-space:nowrap;min-height:38px;padding:10px 12px;border:0;border-radius:5px;background:transparent;font-size:12px}
body[data-theme] .studio-action-popover>.btn:hover{background:var(--panel-2)}
body[data-theme] .studio-action-popover>.btn-danger{border-top:1px solid var(--border);border-radius:0 0 5px 5px;margin-top:3px;color:#bd4b42}
.action-menu summary[aria-expanded=true]{color:var(--primary)!important;background:var(--panel-2)}
.data-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}
.data-tools>.input{width:220px;max-width:100%}.data-tools>.select{width:150px}.data-tools>input[type=date]{width:160px}
.data-tools .field-error{width:100%;margin:0}.data-tools .field-error:empty{display:none}
.data-tools+.table [data-empty] td,.af-panel [data-empty] td{padding:40px 20px!important;text-align:center;color:var(--muted)}
.pager .select{width:auto;min-width:104px}.pager .btn:disabled{opacity:.4;cursor:default}
body[data-theme] .af-root .data-tools input,body[data-theme] .af-root .data-tools select{margin:0;min-height:38px;width:auto;max-width:100%;font-size:12px}
body[data-theme] .af-root .data-tools input:not([type=date]){width:240px}
body[data-theme] .af-root .data-tools .select{min-width:135px}
body[data-theme] .af-root .pager select{width:110px;margin:0}
.af-root .pager{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px;font-size:12px}
.af-root dialog{box-sizing:border-box;max-height:calc(100dvh - 48px);overflow:auto;color:var(--text)!important;background:var(--panel)!important}
.af-root dialog h3{font-size:19px;margin:0 0 18px}.af-root dialog p{line-height:1.8;overflow-wrap:anywhere}
.af-root dialog form>button{margin:14px 8px 0 0}
.af-root [role=status]:empty{display:none}.af-root .af-panel>button.primary{margin-bottom:16px}
body[data-theme=dark] .af-root input,body[data-theme=dark] .af-root select,body[data-theme=dark] .af-root textarea{background:var(--panel-2)!important;border-color:var(--border)!important;color:var(--text)!important;caret-color:var(--text)}
body[data-theme] .af-root td,body[data-theme] .af-root th,body[data-theme] .af-root .af-rule-grid{border-color:var(--border)}
.studio-page .filters-left,.studio-page .filters-right{min-width:0;flex-wrap:wrap}
.studio-page .filters-left>*{max-width:100%}
.studio-page .table-wrap{overscroll-behavior-x:contain}
body[data-theme] .btn:disabled{cursor:default}
.submodal .modal-body{overscroll-behavior:contain}
[inert]{pointer-events:none}
.switch{position:relative}.switch input{left:0;top:0}.switch:focus-within .switch-slider{outline:2px solid var(--primary);outline-offset:3px}
@media(max-width:1000px){.studio-page-head{align-items:flex-start}.studio-head-actions{flex-wrap:wrap;justify-content:flex-end;max-width:45%}.studio-page .filters{flex-wrap:wrap}.studio-page .pager{flex-wrap:wrap}}
@media(max-width:600px){.studio-page-head{flex-direction:column;gap:14px}.studio-head-actions{max-width:100%;justify-content:flex-start}.studio-page-head h1{font-size:24px}.data-tools>.input,.data-tools>.select{flex:1 1 140px;min-width:0}.af-root .af-panel{padding:16px}.af-root .pager{justify-content:flex-start}.studio-command{box-sizing:border-box;max-width:calc(100vw - 24px)}.studio-topbar-right{min-width:0}.studio-topbar-right>#studioUser{max-width:85px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.studio-page .studio-comments-table{table-layout:fixed;width:100%;min-width:1040px!important}
.studio-page .studio-comments-table th,.studio-page .studio-comments-table td{width:auto!important;min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere;vertical-align:top;padding:19px 14px}
.studio-comments-table th:nth-child(1){width:4%!important}.studio-comments-table th:nth-child(2){width:20%!important}.studio-comments-table th:nth-child(3){width:24%!important}.studio-comments-table th:nth-child(4){width:19%!important}.studio-comments-table th:nth-child(5){width:19%!important}.studio-comments-table th:nth-child(6){width:14%!important}
.studio-comments-table td>div{display:block!important;margin:5px 0 0!important;line-height:1.75}.studio-comments-table td>.actions{display:flex!important;flex-wrap:wrap;gap:7px;margin:0!important}
.studio-comments-table .ellipsis{max-width:100%;white-space:normal}.studio-comments-table td:last-child,.studio-comments-table th:last-child{position:static!important;box-shadow:none!important}
.studio-comments-table .studio-rating{color:#b68136;font-size:13px;letter-spacing:2px}
.studio-form-section{padding:22px;border:1px solid var(--border);border-radius:10px;background:var(--panel);margin-top:16px;min-width:0}
.studio-form-section h3{font-size:15px;font-weight:600;margin:0 0 7px}.studio-form-section>.studio-caption{margin:0 0 20px;line-height:1.8}
.studio-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.studio-form-grid>.field{margin:0;min-width:0}
.studio-form-section>.coupon-editor-full{margin-top:18px}.coupon-editor-shell>.status-note{margin:0}
body[data-route=login] .login-wrap{box-sizing:border-box;width:100%;padding:24px 0;min-width:0;background:none}
body[data-route=login] .login-card{box-sizing:border-box;width:min(460px,100%);min-width:0;margin:0 auto;border-radius:16px;border:1px solid var(--border);box-shadow:0 18px 60px #1b3d2520}
body[data-route=login] .mobile-toggle{display:none}
.banner-dropzone:focus-visible{outline:2px solid var(--primary);outline-offset:4px}
@media(max-width:600px){.studio-form-grid{grid-template-columns:1fr}.studio-form-section{padding:17px}body[data-route=login] .content{padding:20px 15px}.login-card .card-body{padding:24px!important}}

/* Full order ledger: preserve all fields and keep actions reachable while scrolling. */
.studio-page.orders-page .orders-table{width:2070px!important;min-width:2070px!important;table-layout:fixed}
.studio-page.orders-page .orders-table th,.studio-page.orders-page .orders-table td{text-align:left!important;vertical-align:middle}
.studio-page.orders-page .orders-table th:nth-child(1){width:44px!important}
.studio-page.orders-page .orders-table th:nth-child(2){width:160px!important}
.studio-page.orders-page .orders-table th:nth-child(3){width:160px!important}
.studio-page.orders-page .orders-table th:nth-child(4){width:120px!important}
.studio-page.orders-page .orders-table th:nth-child(5){width:130px!important}
.studio-page.orders-page .orders-table th:nth-child(6){width:110px!important}
.studio-page.orders-page .orders-table th:nth-child(7){width:140px!important}
.studio-page.orders-page .orders-table th:nth-child(8){width:190px!important}
.studio-page.orders-page .orders-table th:nth-child(9){width:210px!important}
.studio-page.orders-page .orders-table th:nth-child(10){width:70px!important}
.studio-page.orders-page .orders-table th:nth-child(11){width:110px!important}
.studio-page.orders-page .orders-table th:nth-child(12){width:140px!important}
.studio-page.orders-page .orders-table th:nth-child(13){width:260px!important}
.studio-page.orders-page .orders-table th:last-child{width:210px!important}
.studio-page.orders-page .orders-table th:last-child,.studio-page.orders-page .orders-table td:last-child{position:sticky!important;right:0;z-index:2;box-shadow:-2px 0 0 var(--border)!important;background:var(--panel)!important}
.studio-page.orders-page .orders-table .order-inline-note{display:block!important;width:100%;box-sizing:border-box;min-height:64px;resize:vertical;white-space:pre-wrap;font-size:12px;margin-bottom:6px}

.studio-page .studio-voucher-table{width:2050px!important;min-width:2050px!important;table-layout:fixed!important}
.studio-page .studio-voucher-table th{width:160px!important}
.studio-page .studio-voucher-table th:first-child{width:44px!important}
.studio-page .studio-voucher-table th:nth-child(2){width:230px!important}
.studio-page .studio-voucher-table th:nth-child(5),.studio-page .studio-voucher-table th:nth-child(6){width:200px!important}
.studio-page .studio-voucher-table th:nth-child(8){width:230px!important}
.studio-page .studio-voucher-table th:last-child{width:200px!important}
.studio-page .studio-voucher-table td:last-child,.studio-page .studio-voucher-table th:last-child{position:sticky!important;right:0;z-index:2;background:var(--panel)!important;box-shadow:-2px 0 0 var(--border)!important}
.studio-page .note-link{white-space:pre-wrap!important;text-align:left;overflow-wrap:anywhere;max-width:100%!important}

.studio-page .vouchers-table-stock{width:2100px!important;min-width:2100px!important;table-layout:fixed}

.comments-page .filters>.actions{display:flex;flex-wrap:nowrap;gap:10px;align-items:center}
.permissions-page .permissions-table:not(.studio-team-table) td:nth-child(3){white-space:normal;line-height:1.8;min-width:400px}

.studio-page .studio-coupon-table{width:1820px!important;min-width:1820px!important;table-layout:fixed!important}
.studio-page .studio-coupon-table th,.studio-page .studio-coupon-table td{white-space:normal!important;overflow-wrap:anywhere;vertical-align:middle;padding:18px 14px}
.studio-page .studio-coupon-table td>.actions{display:flex;gap:8px;flex-wrap:wrap}
.studio-page .studio-coupon-table th:last-child,.studio-page .studio-coupon-table td:last-child{position:sticky!important;right:0;z-index:2;background:var(--panel)!important;box-shadow:-2px 0 0 var(--border)!important}

/* Shared list search and filter controls; form editors retain their own layout. */
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters){gap:12px;align-items:center}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) :is(input.input,select,.msel-trigger){box-sizing:border-box!important;height:40px!important;min-height:40px!important;border:1px solid var(--border)!important;border-radius:7px!important;background-color:var(--panel)!important;color:var(--text)!important;font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;padding:8px 12px!important;box-shadow:none!important;transition:border-color .15s,box-shadow .15s;max-width:100%}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) :is(input.input,select,.msel-trigger):not(:disabled):hover{border-color:var(--muted-2)!important}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) :is(input.input,select,.msel-trigger):focus,body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) :is(input.input,select,.msel-trigger):focus-visible{border-color:var(--primary)!important;outline:0!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 15%,transparent)!important}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) :is(input.input,select,.msel-trigger):disabled{background-color:var(--panel-2)!important;color:var(--muted)!important;cursor:not-allowed;opacity:.7}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) input::placeholder{color:var(--muted)!important;opacity:1}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) select,body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) .msel-trigger{appearance:none!important;padding-right:34px!important;cursor:pointer;background-image:url("data:image/svg+xml,%3:is(.filters,.data-tools,.studio-catalog-filters) :is(input.input,select,.msel-trigger)svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3:is(.filters,.data-tools,.studio-catalog-filters) :is(input.input,select,.msel-trigger)path d='m4 5.5 3 3 3-3' fill='none' stroke='%2376817d' stroke-width='1.5' stroke-linecap='round'/%3E%3:is(.filters,.data-tools,.studio-catalog-filters) :is(input.input,select,.msel-trigger)/svg%3E")!important;background-position:right 12px center!important;background-repeat:no-repeat!important;background-size:14px!important}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) .msel-caret{display:none!important}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) .msel-trigger{text-align:left;font-size:13px!important;font-weight:400!important}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) .msel-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) input.input{font-size:13px!important;font-weight:400!important}
body[data-theme] :is(.filters,.data-tools,.studio-catalog-filters) select{font-size:13px!important;font-weight:400!important}

/* Hotel package authoring follows the same editor system as other products. */
.hotel-package-editor .hotel-benefits-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hotel-package-editor .hotel-benefits-editor>.field-label,.hotel-package-editor .hotel-benefits-editor>.field-hint{grid-column:1/-1;margin:0}
.hotel-package-editor .ticket-highlight-card{margin:0!important;box-shadow:none!important;align-items:flex-start}
.hotel-package-editor .ticket-highlight-card>div:first-child{width:36px!important;height:36px!important;flex-basis:36px!important;line-height:36px!important;font-size:18px!important;box-shadow:none!important}
.hotel-package-editor .ticket-highlight-card textarea{min-height:96px!important}
.hotel-package-editor .ticket-highlight-card .field-hint{display:none}
.hotel-package-editor .ticket-date-card{box-shadow:none;border:1px solid var(--border);border-radius:14px;padding:18px}
@media(max-width:700px){.hotel-package-editor .hotel-benefits-editor{grid-template-columns:1fr}}
