.sr-dialog{width:min(900px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:1px solid #c5d0dc;border-radius:12px;color:#172b40;background:#fff;box-shadow:0 20px 65px #0004}.sr-dialog::backdrop{background:#10213299}.sr-head{padding:16px 22px;background:#eef3f8;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d6e0e9}.sr-head h2{margin:0 0 4px}.sr-body{padding:20px 22px;overflow:visible}.sr-footer{padding:14px 22px;border-top:1px solid #d6e0e9;display:flex;justify-content:flex-end;gap:10px;background:#f7f9fb}.sr-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sr-full{grid-column:1/-1}.sr-dialog label{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;font-weight:600}.sr-dialog input,.sr-dialog textarea{box-sizing:border-box;width:100%;font:inherit;padding:11px;border:1px solid #b6c6d6;border-radius:7px;background:#fff}.sr-dialog textarea{min-height:105px;resize:vertical;field-sizing:content}.sr-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}.sr-photo{min-width:0}.sr-photo img{width:100%;height:150px;object-fit:contain;background:#f0f3f6;border-radius:6px}.sr-photo button{width:100%;margin-top:6px}.sr-list-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e1e8ef;padding:12px 0}.sr-review{padding:15px;background:#f4f7fa;border:1px solid #d9e3ec;border-radius:8px;margin-bottom:18px}.sr-review p{white-space:pre-wrap;overflow-wrap:anywhere}.sr-review h4{margin:14px 0 4px}.sr-dialog .sr-accept{display:flex;flex-direction:row;align-items:flex-start;line-height:1.5;margin:18px 0}.sr-accept input{width:22px;height:22px;flex:0 0 22px}.sr-exit{border:1px solid #d9a15b;background:#fff5e6;padding:14px;margin:14px 0}.sr-dialog canvas{display:block;width:100%;height:180px;border:2px solid #adc2d5;border-radius:8px;background:#fff;touch-action:none;margin:12px 0}.sr-dialog button{min-height:42px}.sr-dialog button:disabled{opacity:.6;cursor:wait}
@media(max-width:620px){.sr-dialog{width:100vw;max-width:100vw;max-height:100dvh;min-height:100dvh;margin:0;border-radius:0}.sr-head,.sr-body,.sr-footer{padding:14px}.sr-grid{grid-template-columns:1fr}.sr-photos{grid-template-columns:1fr 1fr}.sr-list-item{align-items:flex-start;flex-direction:column}.sr-footer{flex-wrap:wrap}.sr-footer button{flex:1}.sr-head h2{font-size:19px}.sr-dialog canvas{height:170px}.sr-dialog input,.sr-dialog textarea{font-size:16px}}

/* Ticket portrait: cards stay inside the viewport; only normal page scrolling. */
.ticket-mobile-cards{display:none}
@media(max-width:760px){#page-tickets>.table-wrap{display:none}#page-tickets .toolbar{min-width:0;flex-wrap:wrap}#page-tickets .toolbar input,#page-tickets .toolbar select{min-width:0;width:100%;max-width:100%}.ticket-mobile-cards{display:grid;gap:12px;min-width:0}.ticket-mobile-card{min-width:0;max-width:100%;padding:16px;border:1px solid #dce5ef;border-radius:12px;background:white;overflow-wrap:anywhere}.ticket-mobile-card h3{margin:12px 0 6px;font-size:17px}.ticket-mobile-title{font-weight:600;font-size:16px;white-space:pre-wrap;margin:8px 0}.ticket-mobile-card p{overflow-wrap:anywhere}.ticket-mobile-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0}.ticket-mobile-card>.primary{width:100%;min-height:46px}#page-ticket-detail .panel{min-width:0;overflow-wrap:anywhere}#page-ticket-detail .detail-head{flex-wrap:wrap}#page-ticket-detail input,#page-ticket-detail select,#page-ticket-detail textarea{max-width:100%;font-size:16px}}
.sr-error{background:#fff0f0;border:1px solid #e5aaaa;border-radius:7px;color:#982323;padding:12px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.sr-dialog{overflow-x:hidden;overflow-y:auto;box-sizing:border-box}.sr-head{position:sticky;top:0;z-index:2}.sr-footer{position:sticky;bottom:0;z-index:2;flex-wrap:wrap}.sr-dialog canvas{box-sizing:border-box;max-width:100%;user-select:none;-webkit-user-select:none}.sr-dialog .sr-body{min-width:0}.sr-dialog textarea{overflow:hidden}.sr-head>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:620px){.sr-dialog{height:100dvh;min-height:0;width:100%;max-width:100%;padding-bottom:env(safe-area-inset-bottom)}.sr-footer button{min-width:0;font-size:14px}.sr-footer{padding-bottom:max(14px,env(safe-area-inset-bottom))}}
