:root{--blue:#1677ff;--blue2:#2f86ed;--blue-bg:#eaf4ff;--line:#dbe4ef;--muted:#71829b;--text:#10233f;--panel:#fff;--page:#f5f8fc;--danger:#ef4444;--green:#19a962;--yellow:#f6a800;--radius-small:8px;--radius-control:11px;--radius-panel:12px;--radius:var(--radius-panel);--radius-modal:16px;--shadow:0 10px 28px rgba(32,64,106,.10);--font-family:"Microsoft YaHei UI","Segoe UI",sans-serif;--font-size:14px;--window-min-width:1999px;--topbar-height:84px;--tabs-height:48px;--tab-min-width:150px;--page-padding:10px 14px 12px;--support-header-height:48px;--filter-height:66px;--workspace-left-width:828px;--ticket-header-height:38px;--ticket-row-min-height:58px;--detail-title-height:50px;--attachment-box-height:108px;--reply-box-height:148px;--reply-text-height:79px;--performance-header-height:72px;--performance-cards-height:58px;--performance-filter-height:58px;--performance-row-height:44px;--modal-width:720px;--modal-max-height:88vh;--toast-min-width:140px;--toast-max-width:440px;--toast-left:50%;--toast-top:50%}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;font-family:var(--font-family);color:var(--text);background:var(--page);font-size:var(--font-size)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}.hidden{display:none!important}
.login-view{min-height:100%;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#e6f2ff,transparent 42%),linear-gradient(135deg,#f9fbff,#edf5ff)}.login-card{width:380px;padding:34px;background:#fff;border:1px solid #dce6f3;border-radius:20px;box-shadow:0 24px 70px rgba(31,78,130,.16);text-align:center}.login-card h1{margin:14px 0 5px;font-size:24px}.login-card p{margin:0 0 24px;color:var(--muted)}.login-card label{display:block;text-align:left;font-weight:650;margin:14px 0 6px}.login-card input{width:100%;height:43px;margin-top:7px;border:1px solid #cdd9e8;border-radius:11px;padding:0 13px;outline:none}.login-card input:focus{border-color:#69a8ff;box-shadow:0 0 0 3px #e4f0ff}.form-error{min-height:20px;color:var(--danger);margin-top:10px}.brand-mark{width:58px;height:58px;border-radius:16px;margin:auto;background:linear-gradient(145deg,#368df2,#076be4);color:#fff;display:grid;place-items:center;font-weight:800;font-size:30px}.brand-mark.small{width:38px;height:38px;border-radius:10px;font-size:22px;margin:0}
.app-shell{min-width:var(--window-min-width);height:100vh;display:flex;flex-direction:column;overflow:hidden}.topbar{height:var(--topbar-height);flex:0 0 var(--topbar-height);background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:relative;z-index:12;overflow:visible}.topbar-left{display:flex;align-items:center;gap:12px;min-width:0}.brand{display:flex;align-items:center;gap:10px}.brand strong{display:block;font-size:17px}.brand span{display:block;color:#8392a8;font-size:12px;margin-top:2px}.top-actions{display:flex;align-items:center;gap:8px;min-width:0}.top-actions .status-pill{min-width:0}.btn,.status-pill{height:38px;padding:0 16px;border:1px solid #d4deeb;border-radius:var(--radius-control);background:#fff;white-space:nowrap;transition:.15s}.btn:hover,.status-pill:hover{border-color:#91bfff;background:#f8fbff}.btn.primary{background:linear-gradient(135deg,#2e8af2,#1476ec);color:#fff;border-color:#1476ec;font-weight:700}.btn.primary-lite{background:#eef6ff;color:#086de8;border-color:#bcd9ff;font-weight:700}.btn.wide{width:100%;margin-top:18px}.status-pill{max-width:470px;color:#086de8;background:#eef6ff;border-color:#b9d7ff;display:flex;align-items:center;gap:7px;overflow:hidden}.status-pill span:nth-child(2){overflow:hidden;text-overflow:ellipsis}.dot{width:7px;height:7px;border-radius:50%;display:inline-block;flex:0 0 auto}.dot.blue{background:var(--blue)}.dot.green{background:#69cc15;width:10px;height:10px}
.nav-dropdown{position:relative;flex:0 0 auto}.nav-menu-btn{min-width:132px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:700}.nav-menu-btn[aria-expanded="true"]{color:#086de8;border-color:#91bfff;background:#eef6ff}.nav-chevron{transition:transform .15s}.nav-menu-btn[aria-expanded="true"] .nav-chevron{transform:rotate(180deg)}.nav-menu{position:absolute;z-index:25;left:0;top:46px;width:238px;padding:7px;background:#fff;border:1px solid #d4deeb;border-radius:var(--radius-panel);box-shadow:var(--shadow)}.nav-item{width:100%;height:42px;padding:0 12px;border:0;border-radius:var(--radius-small);background:#fff;color:#263b58;text-align:left;font-weight:650;display:flex;align-items:center}.nav-item:hover{background:#f3f8ff}.nav-item.active{color:#006df0;background:#eaf4ff}.nav-item b{margin-left:auto;color:inherit}.manual-sync{margin:5px 10px 5px auto;height:38px}
.page{flex:1;min-height:0;padding:var(--page-padding)}.support-page{display:flex;flex-direction:column}.page-head{display:flex;align-items:center;justify-content:space-between}.page-head.compact{height:var(--support-header-height);flex:0 0 var(--support-header-height)}.page-head h2,.admin-head h2,.performance-head h2{font-size:20px;margin:0 0 2px;font-weight:800}.page-head p,.admin-head p,.performance-head p{margin:0;color:var(--muted);font-size:13px}.metric-row{display:flex;gap:8px}.metric{width:88px;height:42px;background:#fff;border:1px solid #d7e2ef;border-radius:var(--radius-control);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#0e67ee}.metric span{font-size:12px}.metric b{font-size:15px}
.filter-grid{height:var(--filter-height);flex:0 0 var(--filter-height);display:grid;grid-template-columns:130px 130px 130px 140px 140px minmax(240px,1fr) 130px;gap:8px;align-items:end;padding:2px 0 8px}.filter-grid label{min-width:0}.filter-grid label>span{display:block;text-align:center;font-weight:700;font-size:13px;margin-bottom:5px}.filter-grid select,.filter-grid input{width:100%;height:34px;border:1px solid #cfdbea;border-radius:var(--radius-control);background:#fff;outline:none;padding:0 12px}.filter-grid select{appearance:auto}.filter-grid input:focus,.filter-grid select:focus{border-color:#69a8ff}.search-label input{text-align:center}.batch-label select{color:#657890}
.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(485px,var(--workspace-left-width)) minmax(600px,1fr);gap:8px}.ticket-pane,.detail-pane{background:#fff;border:1px solid #dce5f0;border-radius:var(--radius);min-height:0;overflow:hidden}.ticket-pane{display:flex;flex-direction:column}.row-grid{display:grid;grid-template-columns:28px 34px minmax(150px,1.4fr) minmax(122px,1fr) minmax(120px,1.1fr) 94px;align-items:center}.ticket-head{height:var(--ticket-header-height);flex:0 0 var(--ticket-header-height);background:#f8fafc;border-bottom:1px solid var(--line);font-weight:750;text-align:center}.ticket-head input{vertical-align:middle}.ticket-list{flex:1;min-height:0;overflow:auto}.ticket-row{min-height:var(--ticket-row-min-height);border-bottom:1px solid #e7edf5;padding:4px 0;cursor:pointer;transition:background .12s}.ticket-row:hover{background:#f6faff}.ticket-row.selected{background:#e3f1ff}.ticket-row>span{padding:0 5px;min-width:0}.ticket-row .select-cell{text-align:center}.ticket-row input{width:15px;height:15px}.star{font-size:25px;color:#a9b9cc;text-align:center;background:none;border:0;padding:0}.star.on{color:var(--yellow);text-shadow:0 1px 1px rgba(118,75,0,.15)}.ticket-shop{line-height:1.25}.ticket-shop b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ticket-kind{font-weight:700}.ticket-kind.complaint{color:#f04444}.ticket-kind.inquiry{color:#28466b}.ticket-order{font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ticket-preview{line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ticket-time{white-space:pre-line;text-align:center;font-variant-numeric:tabular-nums}.unread-dot{margin-left:5px}.list-footer{height:28px;flex:0 0 28px;border-top:1px solid var(--line);color:#8291a7;display:flex;align-items:center;justify-content:space-between;padding:0 10px;font-size:12px}
.detail-pane{position:relative;display:flex;flex-direction:column}.detail-pane.empty{display:grid;place-items:center}.empty-state{color:#94a3b8}.detail-pane:not(.empty) #detailContent{height:100%;display:flex;flex-direction:column}.detail-title-row{height:var(--detail-title-height);flex:0 0 var(--detail-title-height);display:flex;align-items:center;justify-content:space-between;padding:4px 12px;background:#f8fafc;border-bottom:1px solid var(--line)}.detail-title-row h2{font-size:19px;margin:0}.copy-order{cursor:copy}.tag-row{display:flex;gap:6px;margin-top:3px}.tag{display:inline-flex;height:22px;align-items:center;padding:0 8px;border-radius:7px;background:#eef6ff;color:#1677ff;border:1px solid #b9d8ff;font-size:12px;font-weight:700}.tag.red{background:#fff1f0;color:#ef4444;border-color:#ffc7c2}.tag.green{background:#edfff5;color:#149451;border-color:#b7eccf}.star-btn{min-width:132px;font-weight:750}.star-btn.on{color:#9b6200;background:#fff7df;border-color:#f0bf55}
.detail-meta{min-height:42px;flex:0 0 auto;padding:7px 12px;display:flex;gap:18px;align-items:center;flex-wrap:wrap;background:#fbfcfe;color:#657893;border-bottom:1px solid #e7edf5}.detail-meta b{color:#253c5a}.claim-facts{min-height:34px;flex:0 0 auto;padding:5px 12px;display:flex;gap:10px;align-items:center;background:#fff6f5;border-bottom:1px solid #ffd6d2;color:#ef4444;font-weight:700}.message-list{flex:1;min-height:150px;overflow:auto;padding:10px 12px;background:#fff}.message-row{display:flex;margin-bottom:9px}.message-row.seller{justify-content:flex-end}.bubble{max-width:68%;min-width:210px;padding:7px 10px;border-radius:11px;background:#f3f5f8;box-shadow:0 1px 0 rgba(20,50,90,.03);line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}.message-row.seller .bubble{background:#e7f2ff;border:1px solid #c5ddff}.bubble-head{display:flex;justify-content:space-between;gap:18px;margin-bottom:3px;font-size:12px}.checks.read{color:var(--green);font-weight:800}.checks.unread{color:#a9b7c9}.translated{margin-top:5px;padding:5px 7px;border-radius:7px;background:rgba(255,255,255,.62);color:#70819a}
.claim-facts.unaffected{background:#f0fff6;border-color:#b8edcf;color:#12834a}.claim-facts.affected{background:#fff6f5;border-color:#ffd6d2;color:#ef4444}.ticket-reputation{display:inline-block;margin:2px 0 0 6px;padding:1px 6px;border-radius:6px;font-size:11px;font-weight:800}.ticket-reputation.unaffected{background:#edfff5;color:#128b4d}.ticket-reputation.affected{background:#fff1f0;color:#df3434}.message-event{margin:12px 8%;padding:8px 12px;border-top:1px solid #f0b9b5;border-bottom:1px solid #f0b9b5;background:#fff9f8;color:#ad2e24;text-align:center;font-weight:700;white-space:pre-line;line-height:1.45}.message-event time{display:block;margin-top:4px;color:#9a7b78;font-size:11px;font-weight:400}
.attachment-box{height:var(--attachment-box-height);flex:0 0 var(--attachment-box-height);margin:0 10px;border:1px solid #d8e2ef;border-radius:10px;overflow:hidden}.attachment-head,.attachment-row{display:grid;grid-template-columns:minmax(220px,2fr) 105px 85px 100px 120px;align-items:center;text-align:center}.attachment-head{height:31px;background:#f8fafc;border-bottom:1px solid #dfe7f0;font-weight:750}.attachment-list{height:calc(var(--attachment-box-height) - 32px);overflow:auto}.attachment-row{min-height:34px;border-bottom:1px solid #edf1f6}.attachment-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 5px}.mini-btn{height:26px;border:1px solid #d4dfec;background:#fff;border-radius:var(--radius-small);padding:0 9px;margin:0 2px}.composer{height:var(--reply-box-height);flex:0 0 var(--reply-box-height);padding:8px 10px 7px}.composer textarea{width:100%;height:var(--reply-text-height);resize:none;border:1px solid #cfdae7;border-radius:10px;padding:9px;outline:none}.composer textarea:focus{border-color:#69a8ff}.upload-rows{position:absolute;left:19px;right:19px;bottom:50px;max-height:55px;overflow:auto;pointer-events:none}.upload-chip{display:inline-flex;align-items:center;gap:5px;background:#fff;border:1px solid #cfddeb;border-radius:8px;padding:3px 7px;margin:2px;pointer-events:auto}.upload-chip button{border:0;background:none;color:#ef4444}.composer-actions{height:39px;display:flex;align-items:end;gap:8px}.file-button{position:relative;overflow:hidden}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.composer-actions>span{flex:1;color:#8090a6;font-size:12px}.status-select{height:37px;border:1px solid #cfdbea;border-radius:var(--radius-control);padding:0 12px;background:#fff}.composer-actions .primary{min-width:98px}
.admin-page{overflow:auto}.admin-head{height:62px;display:flex;align-items:center;justify-content:space-between}.table-card{background:#fff;border:1px solid #d9e3ef;border-radius:12px;overflow:auto;min-height:300px}table{width:100%;border-collapse:collapse}th{height:40px;background:#f8fafc;color:#50627c}td{height:42px;border-top:1px solid #e7edf5;text-align:center;padding:5px 8px}tr:hover td{background:#f7fbff}.site-badge{display:inline-block;margin:2px;padding:2px 7px;border-radius:7px;background:#eef6ff;color:#1475e9}.status-ok{color:#15a65d;font-weight:700}.status-off{color:#a1afc0}
.modal{position:fixed;z-index:30;inset:0;background:rgba(14,31,54,.36);display:grid;place-items:center}.modal-card{width:min(var(--modal-width),90vw);max-height:var(--modal-max-height);background:#fff;border-radius:var(--radius-modal);box-shadow:0 28px 90px rgba(0,25,60,.28);display:flex;flex-direction:column}.modal-head{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid var(--line)}.modal-head h3{margin:0;font-size:18px}.icon-btn{border:0;background:transparent;font-size:26px;color:#728198}.modal-body{padding:16px;overflow:auto}.modal-actions{padding:10px 16px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.form-grid{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:center}.form-grid label{font-weight:700;text-align:right}.form-grid input,.form-grid select,.form-grid textarea{width:100%;min-height:38px;border:1px solid #ccd9e8;border-radius:10px;padding:7px 10px}.form-grid textarea{height:86px}.check-list{max-height:280px;overflow:auto;border:1px solid #d9e3ee;border-radius:10px;padding:8px}.check-item{display:flex;align-items:center;gap:8px;padding:7px;border-bottom:1px solid #edf1f6}.oauth-link{padding:9px;border-radius:9px;background:#f1f7ff;color:#176bd0;overflow-wrap:anywhere}.notification-panel{position:fixed;z-index:20;right:18px;top:74px;width:430px;max-height:560px;overflow:auto;background:#fff;border:1px solid #d7e2ef;border-radius:14px;box-shadow:var(--shadow);padding:12px}.notification-panel h3{margin:3px 4px 10px}.notification{padding:9px;border-top:1px solid #e8eef5}.notification b{display:block}.notification p{margin:3px 0;color:#697b94;white-space:pre-wrap}.notification time{font-size:11px;color:#9aa8ba}.toast{position:fixed;z-index:60;left:var(--toast-left);top:var(--toast-top);transform:translate(-50%,-50%);min-width:var(--toast-min-width);max-width:var(--toast-max-width);padding:15px 20px;background:rgba(30,34,41,.88);color:#fff;border-radius:var(--radius);text-align:center;white-space:pre-line;box-shadow:0 15px 45px rgba(0,0,0,.25)}

.performance-page{display:flex;flex-direction:column;min-height:0}.performance-head{height:var(--performance-header-height);flex:0 0 var(--performance-header-height);display:flex;align-items:center}.performance-cards{height:var(--performance-cards-height);flex:0 0 var(--performance-cards-height);display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:8px}.performance-card{height:100%;background:#fff;border:1px solid #dce5f0;border-radius:var(--radius-panel);display:flex;align-items:center;justify-content:space-between;padding:0 15px;position:relative;overflow:hidden}.performance-card:before,.performance-card:after{content:"";position:absolute;top:7px;bottom:7px;width:4px;border-radius:4px}.performance-card:before{left:0}.performance-card:after{right:0}.performance-card span{display:inline-flex;align-items:center;height:31px;padding:0 8px;border:1px solid #dce5f0;border-radius:var(--radius-control);background:#fff}.performance-card b{font-size:25px}.blue-card:before,.blue-card:after{background:#2f96e8}.blue-card b{color:#2f96e8}.purple-card:before,.purple-card:after{background:#9b55c8}.purple-card b{color:#9b55c8}.green-card:before,.green-card:after{background:#17af69}.green-card b{color:#17af69}.performance-filters{height:var(--performance-filter-height);flex:0 0 var(--performance-filter-height);display:grid;grid-template-columns:150px 280px 190px minmax(280px,1fr);gap:10px;align-items:center;background:#fff;border:1px solid #dce5f0;border-radius:var(--radius-panel);padding:7px 12px;margin-bottom:8px}.performance-filters label{display:flex;align-items:center;gap:8px;font-weight:700;min-width:0}.performance-filters select,.performance-filters input{height:36px;flex:1;min-width:0;border:1px solid #cfdbea;border-radius:18px;background:#fff;padding:0 13px;outline:none}.performance-filters input{text-align:center}.performance-table-card{flex:1;min-height:0;background:#fff;border:1px solid #dce5f0;border-radius:var(--radius-panel);overflow:auto}.performance-table{table-layout:fixed}.performance-table th,.performance-table td{text-align:center}.performance-table th:nth-child(1){width:120px}.performance-table th:nth-child(2){width:230px}.performance-table th:nth-child(10){width:115px}.performance-table td{height:var(--performance-row-height)}.site-check{color:#0b5f99;font-size:17px;font-weight:800}.performance-footer{height:30px;flex:0 0 30px;display:flex;align-items:center;justify-content:space-between;color:#60738f;font-size:12px;padding:0 4px}.performance-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.performance-detail-item{border:1px solid #dce5f0;border-radius:11px;padding:12px;background:#f9fbfe;text-align:center}.performance-detail-item b{display:block;font-size:22px;color:#1677ff;margin-top:5px}.permission-section{margin-top:12px;border:1px solid #d9e3ee;border-radius:11px;padding:11px}.permission-section>strong{display:block;margin-bottom:7px}.permission-note{margin:5px 0;color:#71829b;font-size:12px}.permission-inline{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.permission-inline label{display:flex;align-items:center;gap:6px;font-weight:600}.permission-columns{display:grid;grid-template-columns:1fr 1.5fr;gap:10px}.permission-summary{line-height:1.45}.permission-summary span{display:inline-block;margin:2px;padding:2px 7px;border-radius:7px;background:#eef6ff;color:#1677ff}
@media(max-height:760px){.topbar{height:70px;flex-basis:70px}.page-head.compact{height:42px;flex-basis:42px}.filter-grid{height:60px;flex-basis:60px}.attachment-box{height:92px;flex-basis:92px}.attachment-list{height:60px}.composer{height:135px;flex-basis:135px}.composer textarea{height:67px}}
.oauth-account-card,.oauth-site-card{border:1px solid #d7e0ea;border-radius:10px;margin-bottom:14px;padding:14px;background:#fff}.oauth-account-card h4,.oauth-site-card h4{margin:-25px 0 12px 0;padding:0 7px;width:max-content;background:#fff;color:#173b67;font-size:15px}.oauth-account-grid{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:center}.oauth-account-grid>span{text-align:right;color:#314861}.oauth-account-grid>strong{display:flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #bfd0e4;border-radius:8px;background:#fbfdff;color:#244b78;font-weight:500}.oauth-site-head{height:38px;border-bottom:1px solid #dce4ed;display:flex;align-items:center;justify-content:space-between;padding:0 9px;color:#60738e}.oauth-site-head label{font-weight:700;color:#263f5e}.oauth-site-head input,.oauth-site-row input{width:16px;height:16px;min-height:0!important;flex:0 0 auto}.oauth-site-list{padding-top:7px}.oauth-site-row{min-height:40px;border:1px solid #d6e1ee;border-radius:8px;margin:6px 0;padding:7px 10px;display:grid;grid-template-columns:20px minmax(160px,1fr) minmax(180px,auto);align-items:center;gap:7px;background:#fcfdff;cursor:pointer}.oauth-site-row:hover{border-color:#8ebeff;background:#f5faff}.oauth-site-label{color:#25496f}.oauth-site-label b{display:inline-block;width:25px;color:#48627f;font-size:11px}.oauth-site-user{color:#7890ad;text-align:right;font-size:13px;font-variant-numeric:tabular-nums}.oauth-site-warning{margin:9px 3px 0;color:#c77a00;font-size:12px}.modal-card[data-popup="oauth_sites"] .modal-actions .btn{min-width:84px}

/* v1.5.12 locked UI baseline: only confirmed layout/visibility changes. */
:root{--window-min-width:1999px;--topbar-height:65px;--tabs-height:40px;--support-header-height:65px;--filter-height:35px;--workspace-left-width:828px;--detail-title-height:50px;--attachment-box-height:90px;--reply-box-height:130px;--reply-text-height:80px}
.app-shell{width:1999px;min-width:1999px;margin:0 auto}.topbar,.top-actions,.brand{min-width:0}
.top-actions{margin-left:auto;justify-content:flex-end}.token-status-pill{justify-content:center;text-align:center}.token-status-pill span:nth-child(2){text-align:center}.manual-sync{margin:0;height:38px}
.filter-grid{grid-template-columns:245px 443px 291px 330px 245px 371px;gap:8px;align-items:center;padding:3px 0}.filter-grid label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;text-align:center;font-weight:700;min-width:0}.filter-grid label>span{display:block;margin:0;text-align:center}.filter-grid select,.filter-grid input{height:29px;text-align:center;text-align-last:center;min-width:0}.filter-grid option{text-align:center}
.workspace{height:784px;flex:0 0 784px;grid-template-columns:828px 1133px;gap:4px;min-width:1965px}.row-grid{grid-template-columns:34px minmax(250px,1.4fr) minmax(180px,1fr) minmax(160px,1.1fr) 110px}.ticket-head,.ticket-row{text-align:center}
.detail-title-row{height:50px;flex:0 0 50px;display:grid;grid-template-columns:132px minmax(0,1fr) 132px;align-items:center;justify-content:stretch;padding:4px 12px;position:relative;overflow:hidden}.detail-title-main{grid-column:2;min-width:0;max-width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}.detail-order-line{min-width:0;max-width:100%;display:flex;align-items:center;justify-content:center;gap:10px;overflow:hidden}.detail-order-line h2{min-width:0;max-width:100%;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tag-row{margin:0;flex:0 0 auto}.detail-title-row .star-btn{grid-column:3;position:static;right:auto;top:auto;transform:none;justify-self:end;align-self:center}.detail-meta{height:35px;min-height:35px;flex:0 0 35px;padding:4px 8px;justify-content:center;gap:16px;background:transparent;border:0;text-align:center}.claim-facts{height:35px;min-height:35px;flex:0 0 35px;padding:4px 12px;justify-content:center;text-align:center;gap:36px}.message-list{height:444px;min-height:444px;flex:0 0 444px}.attachment-box{height:90px;flex:0 0 90px}.attachment-list{height:58px;overflow-y:auto}.composer{height:130px;flex:0 0 130px;display:grid;grid-template-rows:80px 50px;padding:0 10px 0}.composer textarea{height:80px}.composer-actions{height:50px;align-items:center}.upload-rows{bottom:50px}
.modal-card[data-popup="account_editor"]{width:min(760px,calc(100vw - 48px));max-height:none}.modal-card[data-popup="app_editor"]{width:min(620px,calc(100vw - 48px));max-height:none}.modal-card[data-popup="user_editor"]{width:min(1060px,calc(100vw - 48px));max-height:none}.modal-card[data-popup="account_editor"] .modal-body,.modal-card[data-popup="app_editor"] .modal-body,.modal-card[data-popup="user_editor"] .modal-body{overflow:visible}.modal-card[data-popup="account_editor"] .check-list{max-height:none;overflow:visible}.modal-card[data-popup="account_editor"] .check-item{min-height:42px;padding:5px 7px}.modal-card[data-popup="app_editor"] .form-grid{gap:10px}.form-grid input[type="checkbox"],.form-grid input[type="radio"],.check-item input[type="checkbox"],.permission-inline input{width:18px!important;height:18px!important;min-height:18px!important;padding:0!important}

/* v1.5.23: restore the locked font and component heights.  Only horizontal
   width is distributed across the real viewport; never scale the whole UI. */
html,body{width:100%;height:100%;overflow:hidden}
#appView.app-shell{position:relative;width:100%;min-width:0;height:100vh;margin:0;transform:none;overflow:hidden}
.page{min-width:0}
.workspace{width:100%;min-width:0;grid-template-columns:828px minmax(0,1fr)}
.detail-pane{min-width:0}

/* v1.5.25 approved responsive layout.  Preserve every locked font, control
   height, radius and vertical section height.  Only distribute horizontal
   width and give the workspace the real remaining viewport height. */
.support-page{min-height:0;overflow:hidden}
.workspace{height:auto;flex:1 1 auto;grid-template-columns:minmax(485px,42.14fr) minmax(600px,57.86fr);overflow:hidden}
.detail-pane:not(.empty) #detailContent{min-height:0}
.message-list{height:auto;min-height:0;flex:1 1 auto;overflow:auto}
.attachment-box{flex:0 0 var(--attachment-box-height)}
.composer{flex:0 0 var(--reply-box-height)}

@media (max-width:1599px){
  .topbar{padding-left:12px;padding-right:12px}
  .top-actions{gap:6px}
  .status-pill{max-width:360px}
  .nav-menu{max-width:calc(100vw - 24px)}
  .filter-grid{grid-template-columns:12.47fr 22.54fr 14.81fr 16.79fr 12.47fr 18.88fr;gap:6px}
  .workspace{grid-template-columns:minmax(485px,41fr) minmax(600px,59fr)}
}

@media (max-width:1365px){
  #appView.app-shell{overflow:auto}
  .support-page{min-width:1093px}
  .top-actions .status-pill{max-width:280px}
}

@media (max-height:760px){
  .topbar{height:65px;flex-basis:65px}
  .page-head.compact{height:65px;flex-basis:65px}
  .filter-grid{height:35px;flex-basis:35px}
  .attachment-box{height:90px;flex-basis:90px}
  .attachment-list{height:58px}
  .composer{height:130px;flex-basis:130px}
  .composer textarea{height:80px}
}

/* v1.5.26: keep the last filter inside the viewport and let metadata grow
   instead of painting wrapped order fields over the complaint facts row. */
.filter-grid{
  width:100%;max-width:100%;overflow:hidden;padding-right:10px;
  grid-template-columns:minmax(0,12.47fr) minmax(0,22.54fr) minmax(0,14.81fr) minmax(0,16.79fr) minmax(0,12.47fr) minmax(0,18.88fr)
}
.filter-grid label,.filter-grid select,.filter-grid input{min-width:0;max-width:100%}
.detail-meta{height:auto;min-height:35px;flex:0 0 auto;align-content:center;row-gap:4px}
.claim-facts{height:auto;min-height:35px;flex:0 0 auto;flex-wrap:wrap;row-gap:4px}

/* v1.5.30: keep only the four approved order-detail metadata fields and
   distribute them inside the detail border without changing component height. */
.detail-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;column-gap:10px;padding-left:12px;padding-right:12px}
.detail-meta>span{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
