/*
 * 奥云商城视觉系统 v2
 * 仅统一视觉、排版、响应式与交互反馈，不改变任何业务功能和页面文字。
 */

:root{
  --ui-navy:#123b6d;
  --ui-navy-deep:#0d2d55;
  --ui-blue:#2f6fc0;
  --ui-blue-hover:#245ea8;
  --ui-copper:#b77a52;
  --ui-canvas:#f4f7fb;
  --ui-surface:#fff;
  --ui-soft:#f7f9fc;
  --ui-border:#d8e2ee;
  --ui-border-strong:#c4d2e2;
  --ui-text:#1f2f43;
  --ui-muted:#64748b;
  --ui-success:#16815a;
  --ui-warning:#b86509;
  --ui-danger:#c9382b;
  --ui-shadow:0 3px 12px rgba(20,52,91,.07);
  --ui-shadow-float:0 18px 46px rgba(13,45,85,.18);
  --ui-radius:10px;
  --ui-control-height:42px;
  font-family:"Microsoft YaHei UI","Microsoft YaHei",Arial,sans-serif;
  color:var(--ui-text);
  background:var(--ui-canvas);
}

html,body{background:var(--ui-canvas);color:var(--ui-text)}
body{font:15px/1.55 "Microsoft YaHei UI","Microsoft YaHei",Arial,sans-serif}
button,input,select,textarea{font:inherit}
button,input,select,textarea{transition:border-color .15s ease,background-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid rgba(47,111,192,.2);outline-offset:2px}
input::placeholder,textarea::placeholder{color:#8a98aa}

/* 应用框架 */
.app{grid-template-columns:220px minmax(0,1fr);background:var(--ui-canvas)}
.side{padding:18px 12px;background:linear-gradient(180deg,var(--ui-navy-deep),#123563 72%,#102f59);color:#dce7f5;scrollbar-color:#42658d transparent;scrollbar-width:thin}
.brand{padding:4px 12px 19px;color:#fff;font-size:22px;font-weight:800;letter-spacing:.01em}
.usercard{margin-bottom:15px;padding:11px 12px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.075);color:#eef5ff;font-size:13px;line-height:1.55}
.nav>button,.nav-parent{min-height:44px;margin:3px 0;padding:10px 12px;border-radius:8px;color:#d5e1f0;font-size:16px;font-weight:700}
.nav button:hover{background:rgba(255,255,255,.09);color:#fff}
.nav button.active{background:var(--ui-blue);color:#fff;box-shadow:inset 3px 0 0 #a9cef8}
.nav-parent{margin-top:8px;color:#fff}
.nav .nav-sub{min-height:40px;padding:8px 10px 8px 27px;color:#c8d7e9;font-size:15px}
.event-quick-nav{margin:3px 7px 9px;padding:5px 0 10px}
.nav .nav-event-main{min-height:44px;padding:9px 7px;color:#d1deee;font-size:14px}
.nav .nav-event-main .nav-event-name{line-height:1.45;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.nav .nav-event-children button{min-height:38px;padding:7px 8px 7px 18px;color:#bdcce0;font-size:14px}
.nav .nav-event-children button.active{background:rgba(255,255,255,.1);color:#fff;box-shadow:inset 3px 0 0 #7db0ed}
.nav .nav-event-main i.live{background:#55d8a0;box-shadow:0 0 0 3px rgba(85,216,160,.14)}

.app>main{background:var(--ui-canvas)}
.top{height:62px;padding:0 22px;border-bottom:1px solid var(--ui-border);background:rgba(255,255,255,.97);box-shadow:0 1px 5px rgba(18,59,109,.035);backdrop-filter:blur(10px)}
.top-page-title{max-width:calc(100vw - 430px);overflow:hidden;color:var(--ui-navy);font-size:22px;font-weight:800;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.page{padding:14px 18px 16px!important}
.page h1{color:var(--ui-navy);font-size:24px;line-height:1.25}
.page-title{margin-bottom:12px}

/* 面板、卡片与信息层级 */
.panel,.card,.event-section{border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface);box-shadow:var(--ui-shadow)}
.panel{padding:14px}
.card{padding:16px}
.muted{color:var(--ui-muted)}
.card strong{color:var(--ui-navy);font-family:Bahnschrift,"Microsoft YaHei UI",sans-serif;font-variant-numeric:tabular-nums}
.metrics,.dashboard-widget-grid{gap:12px}
.metrics{margin-bottom:14px}
.dashboard-widget{border-color:var(--ui-border);box-shadow:var(--ui-shadow)}
.dashboard-widget-head h3{color:var(--ui-navy);font-size:17px}
.dashboard-metric-value{color:var(--ui-navy);font-family:Bahnschrift,"Microsoft YaHei UI",sans-serif;font-size:30px;font-variant-numeric:tabular-nums}
.dashboard-drag-handle{border-color:transparent;background:transparent;color:#7890ab;opacity:.48}
.dashboard-widget:hover .dashboard-drag-handle,.dashboard-drag-handle:focus-visible{border-color:var(--ui-border-strong);background:var(--ui-soft);opacity:1}
.dashboard-resize-handle{opacity:.45}.dashboard-widget:hover .dashboard-resize-handle{opacity:1}
.sales-bar{background:#e7edf5}.sales-bar i{background:var(--ui-blue)}
.dashboard-selector,.scope-selector{overflow:visible;border-color:var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}
.scope-selector-row{min-height:58px;padding:9px 13px}.scope-selector-row>b{font-size:16px}

/* 统一按钮 */
.primary,.ghost,.danger,.danger-soft,.event-list-actions button,.page-title-actions button,.event-row-actions button,.permission-actions button{
  min-height:var(--ui-control-height);
  border-radius:8px;
  font-weight:700;
}
.primary{background:var(--ui-blue);color:#fff;box-shadow:0 2px 5px rgba(47,111,192,.16)}
.primary:hover{background:var(--ui-blue-hover);box-shadow:0 4px 10px rgba(47,111,192,.22);transform:translateY(-1px)}
.ghost{border:1px solid transparent;background:#edf3fb;color:#1d579d}
.ghost:hover{border-color:#c8d9ee;background:#e3edf9}
.danger,.danger-soft{background:#fff0ee;color:var(--ui-danger)}
.danger:hover,.danger-soft:hover{background:#ffe5e1}
button:disabled{transform:none!important;box-shadow:none!important;opacity:.48}

/* 表单、搜索、筛选 */
.field{gap:7px;margin:13px 0;color:#34465d;font-weight:700}
.field input,.field select,.field textarea,.toolbar input,.toolbar select,.event-search-box,.customer-manage-toolbar select,.permission-toolbar select,.event-order-toolbar select{
  min-height:var(--ui-control-height);
  border:1px solid var(--ui-border-strong);
  border-radius:8px;
  background:#fff;
  color:var(--ui-text);
}
.field input,.field select,.field textarea{padding:9px 11px}
.field input:hover,.field select:hover,.field textarea:hover,.toolbar input:hover,.toolbar select:hover{border-color:#9fb6d1}
.field input:focus,.field select:focus,.field textarea:focus,.toolbar input:focus,.toolbar select:focus{border-color:var(--ui-blue);box-shadow:0 0 0 3px rgba(47,111,192,.11);outline:0}
.event-search-box{height:var(--ui-control-height);box-shadow:none}
.event-search-box:focus-within{border-color:var(--ui-blue);box-shadow:0 0 0 3px rgba(47,111,192,.11)}
.toolbar,.customer-manage-toolbar,.material-toolbar,.permission-toolbar,.event-product-toolbar{gap:10px;margin-bottom:10px}
.page-title-actions,.customer-head-actions,.material-head-actions,.event-product-head-actions{gap:8px}
.column-filter{border-radius:6px}.column-filter:hover{background:#e9f0f9}.column-filter.filtered{background:#dceaff;color:#174f98}
select{max-width:100%}

/* 统一表格：描述左对齐、数字稳定、表头固定 */
.tablewrap{border:1px solid var(--ui-border);border-radius:9px;background:#fff;scrollbar-color:#9aaabd #edf1f6;scrollbar-width:thin}
.tablewrap>table{border:0}
table{color:var(--ui-text)}
table thead th{height:48px!important;padding:8px 9px!important;border-right:1px solid var(--ui-border)!important;border-bottom:1px solid var(--ui-border-strong)!important;background:#f1f5fa!important;color:var(--ui-navy)!important;font-size:16px!important;font-weight:800!important;line-height:1.25!important;letter-spacing:.01em;vertical-align:middle!important;white-space:nowrap}
table tbody td{height:52px;padding:8px 9px!important;border-right:1px solid #e2e9f1!important;border-bottom:1px solid #e6ecf3!important;background:#fff;font-size:15px;line-height:1.45;vertical-align:middle!important}
table tbody tr:hover>td{background:#f7faff}
table th:last-child,table td:last-child{border-right:0!important}
table td.name,.permission-table td.name,.audit-log-table td:nth-child(1),.audit-log-table td:nth-child(2),.audit-log-table td:nth-child(4),.event-order-report-table td.name{text-align:left!important}
.num,.money-cell,td[class*=amount],td[class*=total]{font-family:Bahnschrift,Consolas,"Microsoft YaHei",sans-serif;font-variant-numeric:tabular-nums}
.money-cell{white-space:nowrap}
.item-no{padding:4px 7px;border-color:#cad6e5;border-radius:6px;background:#fbfcfe;font-family:Bahnschrift,Consolas,monospace}
.name{color:#164f92;font-weight:700}
.tablewrap>table>thead>tr>th{box-shadow:0 1px 0 var(--ui-border-strong)}
.empty-row,.empty-state,.material-empty{color:var(--ui-muted)}

/* 状态标签 */
.tag,.event-tag,.sale-state,.event-included,.permission-role,.customer-type,.audit-action,.dashboard-achievement,.customer-completion{font-size:13px;font-weight:700}
.sale-state,.event-included{padding:5px 9px;border-radius:16px;background:#e7f6ee;color:var(--ui-success)}
.sale-state.off{background:#fff0ee;color:var(--ui-danger)}
.event-live{background:#e7f6ee;color:var(--ui-success)}
.event-upcoming,.shipped{background:#e8f1ff;color:#1c5ca7}
.event-ended{background:#eef1f5;color:#64748b}
.pending{background:#fff2df;color:#a95b04}.done{background:#e7f6ee;color:var(--ui-success)}

/* 选择与批量操作 */
.check-col{width:58px!important;min-width:58px!important;white-space:nowrap}
.select-all-link{white-space:nowrap;font-weight:800}
.event-batch-toolbar{min-height:46px!important;margin:8px 0!important;padding:6px 10px!important;border:1px solid #bcd2ed!important;border-radius:9px!important;background:#edf5ff!important}
.event-batch-toolbar .event-batch-actions{gap:7px}
.event-batch-toolbar>b{color:var(--ui-navy);font-size:14px}
.selection-selected>td{background:#edf5ff!important}

/* 分页始终一致 */
.unified-pagination,.customer-pagination{
  min-height:44px!important;
  gap:7px!important;
  padding:4px 12px!important;
  border-top:1px solid var(--ui-border)!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 -3px 10px rgba(18,59,109,.06)!important;
  color:#405269!important;
  font-size:14px!important;
  font-weight:700!important;
}
.customer-pagination,.event-products-page .unified-pagination{left:220px!important}
.unified-pagination button,.unified-pagination select,.customer-pagination button,.customer-pagination select{height:34px!important;border:1px solid var(--ui-border-strong)!important;border-radius:7px!important;background:#fff!important;color:#1b579d!important}
.pagination-summary{color:#52657a}

/* 订货会、客户、商品、素材 */
.event-workspace{min-height:calc(100vh - 132px);padding:12px}
.start-event-name{margin-bottom:10px;padding:10px 13px;border-left:4px solid var(--ui-copper);border-radius:7px;background:#f1f5fa;color:var(--ui-navy)}
.event-table,.event-customer-table,.event-product-table{border-collapse:separate!important;border-spacing:0!important}
.event-list-actions,.event-row-actions,.customer-actions,.permission-actions{gap:0}
.event-list-actions button,.event-row-actions button,.permission-actions button{min-height:32px;padding:4px 7px;border-radius:6px;background:transparent;color:#1c5da8}
.event-list-actions button:hover,.event-row-actions button:hover,.permission-actions button:hover{background:#edf4fc}
.event-row-actions button.delete,.permission-actions .delete,.event-list-actions .delete{color:var(--ui-danger)}
.event-row-actions i,.permission-actions i,.brand-row-actions i{height:16px;border-left-color:#cbd6e3}
.customer-password{background:#f0f4f8;color:var(--ui-navy);font-family:Bahnschrift,Consolas,monospace}
.customer-editable:not(.editing){border-radius:6px}.customer-editable:not(.editing):hover{background:#eef4fb}
.customer-achieved,.customer-completion{font-variant-numeric:tabular-nums}
.event-product-table .event-thumb-button,.product-table .product-thumb,.thumb-cell.thumb-empty:before{border:1px solid var(--ui-border);border-radius:8px;background:#f2f5f8}
.event-product-table{min-width:1170px!important;table-layout:fixed}
.event-product-table th,.event-product-table td{padding-right:9px!important;padding-left:9px!important}
.event-product-table th:nth-child(2),.event-product-table td:nth-child(2){min-width:72px!important}
.event-product-table th:nth-child(3),.event-product-table td:nth-child(3){min-width:78px!important}
.event-product-table th:nth-child(4),.event-product-table td:nth-child(4){min-width:82px!important}
.event-product-table th:nth-child(5),.event-product-table td:nth-child(5),.event-product-table th:nth-child(6),.event-product-table td:nth-child(6){width:82px!important;min-width:82px!important}
.event-product-table th:nth-child(7),.event-product-table td:nth-child(7){width:140px!important;min-width:140px!important}
.event-product-table th:nth-child(n+8):nth-child(-n+10),.event-product-table td:nth-child(n+8):nth-child(-n+10){min-width:75px!important}
.event-product-table th:nth-child(11),.event-product-table td:nth-child(11){min-width:72px!important}
.event-product-table th:nth-child(12),.event-product-table td:nth-child(12){min-width:70px!important}
.event-product-table th:last-child,.event-product-table td:last-child{width:175px!important;min-width:175px!important}
.event-product-table th:last-child,.event-product-table td:last-child,.event-customer-table th:last-child,.event-customer-table td:last-child{
  position:sticky;right:0;z-index:3;background:#fff;box-shadow:-5px 0 9px rgba(18,59,109,.055)
}
.event-product-table th:last-child,.event-customer-table th:last-child{z-index:7;background:#edf3fa!important}
.material-grid{gap:12px;grid-template-columns:repeat(auto-fill,minmax(205px,1fr))}
.material-card{padding:10px;border-color:var(--ui-border);border-radius:10px;box-shadow:0 2px 7px rgba(18,59,109,.035)}
.material-card:hover{border-color:#a9c0dc;box-shadow:0 6px 16px rgba(18,59,109,.08);transform:translateY(-1px)}
.material-image{border:1px solid #e0e7ef;border-radius:8px;background:#f5f7fa}
.material-image img{object-fit:contain;background:#fff}
.material-check{top:14px;left:14px;border:1px solid rgba(216,226,238,.8);box-shadow:0 2px 7px rgba(18,59,109,.08)}

/* 订单与汇总 */
.event-order-workspace{border-radius:var(--ui-radius)}
.event-order-tabs{padding:0 12px;background:#fbfcfe}
.event-order-tabs button{height:50px;padding:0 18px;border-bottom-width:3px;color:#4d6078;font-size:15px}
.event-order-tabs button.active{border-bottom-color:var(--ui-copper);color:var(--ui-navy)}
.event-order-toolbar{padding:10px 12px;background:#fff}
.event-order-workspace .event-order-metrics>div{padding:12px 17px}
.event-order-workspace .event-order-metrics b{color:var(--ui-navy);font-family:Bahnschrift,"Microsoft YaHei",sans-serif;font-size:25px;font-variant-numeric:tabular-nums}
.event-order-report{padding:0 12px 12px}
.event-order-report-table th,.event-order-report-table td{border-color:var(--ui-border)!important}
.order-rank{border-radius:7px;background:#eef2f7;color:#53677e}
.order-rank.top{background:#dceaff;color:#1659a5}
.order-share i{background:var(--ui-blue)}.order-progress i{background:var(--ui-success)}
.order-detail-modal h2,.order-detail-modal h3{color:var(--ui-navy)}
.order-info-grid>div{border:1px solid #e1e8f0;background:var(--ui-soft)}
.order-item-list>div{border-color:var(--ui-border)}

/* 系统设置 */
.brand-management-workspace,.freight-page{gap:12px}
.brand-manage-toolbar,.brand-card-toolbar,.freight-toolbar{padding:11px 13px;border:1px solid var(--ui-border);border-radius:9px;background:#fff;box-shadow:var(--ui-shadow)}
.brand-management-card,.freight-card,.security-settings,.thumbnail-settings{border-color:var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}
.brand-card-head{background:#f3f6fa}
.brand-card-head h2,.freight-toolbar b,.security-master-row b,.thumbnail-settings h2{color:var(--ui-navy)}
.brand-series-tag{border-color:#bfd1e8;background:#edf4fc;color:#164f92}
.brand-series-add{border-color:#7099ca;background:#f8fbff;color:#1b5ba6}
.permission-metrics{gap:10px;margin-bottom:12px}
.permission-metrics>div{padding:14px 16px;border-color:var(--ui-border);border-radius:9px;box-shadow:var(--ui-shadow)}
.permission-metrics b{font-family:Bahnschrift,"Microsoft YaHei",sans-serif;color:var(--ui-navy);font-size:27px}
.security-master-row{padding:17px 20px;background:#f7f9fc}
.security-action-grid{gap:10px;padding:0 20px 16px}
.security-action-card{min-height:70px;border-color:var(--ui-border);border-radius:9px}
.ratio-options{gap:10px}.ratio-card{padding:12px;border-color:var(--ui-border);border-radius:9px}.ratio-card.selected{border-color:var(--ui-blue);background:#eef5ff}
.thumb-size-setting,.thumb-setting-preview{border-color:var(--ui-border);background:#f7f9fc}
.freight-card-head{background:#f5f8fc}.freight-rule-editor{border-color:var(--ui-border);background:#f8fafc}
.freight-province-grid{border-color:var(--ui-border)}

/* 操作日志 */
.audit-log-panel{padding:12px}
.audit-log-toolbar{gap:9px;margin-bottom:10px}
.audit-log-count{background:#e8f1ff;color:#174f98}
.audit-log-table td:first-child small{color:var(--ui-muted);font-family:Bahnschrift,Consolas,monospace}
.audit-log-table td:nth-child(4){max-width:540px;line-height:1.6}
.audit-time{color:#405269;font-family:Bahnschrift,Consolas,monospace;font-variant-numeric:tabular-nums}
.audit-action{background:#e8f1ff;color:#174f98}.audit-action.success{background:#e7f6ee;color:var(--ui-success)}.audit-action.danger{background:#fff0ee;color:var(--ui-danger)}

/* 弹窗 */
.modal{padding:20px;background:rgba(13,45,85,.48);backdrop-filter:blur(2px)}
.dialog{width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:23px;border:1px solid rgba(216,226,238,.8);border-radius:13px;background:#fff;box-shadow:var(--ui-shadow-float);scrollbar-color:#9baabd #eef2f6;scrollbar-width:thin}
.dialog h2{margin:0 38px 16px 0;color:var(--ui-navy);font-size:23px;line-height:1.35}
.dialog h3{color:var(--ui-navy)}
.close{right:13px;top:10px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:#405269;font-size:22px}
.close:hover{background:#edf2f7;color:var(--ui-danger)}
.form-actions{position:sticky;z-index:2;bottom:-23px;margin:18px -23px -23px!important;padding:13px 23px;border-top:1px solid var(--ui-border);background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}
.delete-password-confirm .form-actions{bottom:-23px}
.toast{right:18px;top:16px;max-width:min(520px,calc(100vw - 36px));padding:11px 15px;border-radius:9px;font-size:15px;font-weight:700;box-shadow:0 8px 22px rgba(13,45,85,.2)}

/* 发布设置与可操作手机预览 */
.mobile-publish-workspace{border-color:var(--ui-border);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}
.mobile-publish-toolbar{padding:12px 15px;border-color:var(--ui-border);background:#fff}
.mobile-publish-toolbar b{color:var(--ui-navy);font-size:20px}
.mobile-publish-layout{grid-template-columns:minmax(265px,315px) minmax(380px,1fr) minmax(240px,280px);gap:14px;padding:14px;background:var(--ui-canvas)}
.mobile-config-panel,.mobile-release-panel{padding:14px;border-color:var(--ui-border);border-radius:10px;box-shadow:var(--ui-shadow)}
.mobile-config-panel h3,.mobile-release-panel h3{color:var(--ui-navy);font-size:18px}
.mobile-setting-check{border-color:var(--ui-border);background:#f8fafc}
.mobile-phone-frame{padding:13px 10px 11px;border-color:#20334d;background:#20334d;box-shadow:0 18px 34px rgba(18,42,72,.2)}
.mobile-phone-screen{height:580px!important;background:#f8f2e9}
.mobile-preview-mode{background:rgba(255,247,227,.95);color:#8f5b20}
.mobile-phone-screen>.mobile-demo-nav{border-top:1px solid #eadfce;background:rgba(255,252,247,.98);box-shadow:0 -3px 12px rgba(78,54,36,.1)}
.mobile-phone-screen>.mobile-demo-cart{background:var(--preview-header,var(--preview-theme,var(--ui-copper)))!important;box-shadow:0 7px 18px rgba(83,54,35,.22)}
.mobile-preview-product-card{box-shadow:0 3px 10px rgba(99,72,51,.07)}

/* 实际代理商手机端 */
.agent-mobile-portal{background:var(--background-color,#f8f2e9);font-family:"Microsoft YaHei UI","Microsoft YaHei",sans-serif}
.agent-mobile-brand{box-shadow:0 4px 14px rgba(79,55,38,.1)}
.agent-mobile-bottom{border-top:1px solid #eadfce;background:rgba(255,252,247,.97);box-shadow:0 -4px 15px rgba(76,52,35,.1);backdrop-filter:blur(10px)}
.agent-mobile-cart{box-shadow:0 8px 20px rgba(77,52,35,.24)}
.agent-mobile-products article,.agent-series-group{box-shadow:0 3px 12px rgba(82,57,39,.07)}

/* 响应式 */
@media(max-width:1280px){
  .page{padding-right:14px!important;padding-left:14px!important}
  .mobile-publish-layout{grid-template-columns:280px minmax(360px,1fr)}
  .mobile-release-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  .mobile-release-panel h3{grid-column:1/-1}
  .permission-metrics{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:1000px){
  .top-page-title{max-width:calc(100vw - 350px)}
  .customer-manage-toolbar,.material-toolbar,.event-product-toolbar,.permission-toolbar{flex-wrap:wrap}
  .customer-head-actions,.material-head-actions,.event-product-head-actions{width:100%;justify-content:flex-end}
  .event-order-toolbar{display:flex;flex-wrap:wrap}
  .event-order-toolbar .event-search-box{flex:1 1 100%}
  .dashboard-widget-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-widget{grid-column:auto!important}
  .ratio-options{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:800px){
  .app{display:block;height:auto;overflow:visible}
  .side{position:relative;z-index:50;display:flex;height:auto;max-height:132px;align-items:flex-start;gap:10px;padding:10px;overflow:auto}
  .brand{padding:7px 5px;white-space:nowrap}
  .nav{display:flex;align-items:flex-start;gap:4px}.nav>button,.nav-parent{white-space:nowrap}
  .event-quick-nav{display:flex;margin:0;padding:0;border:0}.nav-event-node{min-width:180px}
  .app>main{height:auto;min-height:calc(100vh - 70px);overflow:visible}
  .top{position:sticky;height:58px;padding:0 13px}.top-page-title{max-width:calc(100vw - 180px);font-size:19px}
  .page{padding:10px!important}
  .panel{padding:11px}
  .metrics,.dashboard-widget-grid,.detail-grid,.event-order-metrics,.publish-card{grid-template-columns:1fr}
  .dashboard-selector{grid-template-columns:1fr}
  .dashboard-widget{grid-column:1/-1!important}
  .event-workspace{min-height:auto}
  .customer-head-actions,.material-head-actions,.event-product-head-actions{justify-content:flex-start;overflow-x:auto}
  .dialog{width:calc(100vw - 18px);max-height:calc(100dvh - 18px);padding:18px}
  .form-actions{bottom:-18px;margin:16px -18px -18px!important;padding:12px 18px}
  .mobile-publish-layout{grid-template-columns:1fr;padding:10px}
  .mobile-phone-stage{order:-1}
  .mobile-release-panel{display:block}
  .mobile-phone-frame{width:375px}
  .ratio-options{grid-template-columns:repeat(2,1fr)}
  .unified-pagination,.customer-pagination{justify-content:flex-start;overflow-x:auto;white-space:nowrap}
  .customer-pagination,.event-products-page .unified-pagination{left:0!important}
}

@media(max-width:560px){
  body{font-size:15px}
  .top-page-title{font-size:18px}
  .primary,.ghost,.danger{min-height:42px}
  .page-title-actions{width:100%;overflow-x:auto}
  .formgrid,.mobile-config-two{grid-template-columns:1fr}
  .permission-metrics,.ratio-options{grid-template-columns:1fr 1fr}
  .mobile-phone-frame{width:min(375px,100%)}
  .mobile-phone-screen{height:610px!important}
  .toast{right:9px;top:9px;max-width:calc(100vw - 18px)}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
