:root{font-family:system-ui,-apple-system,"Microsoft YaHei",sans-serif;color:#18243d;background:#f4f6fa}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{border:0;border-radius:12px;padding:11px 15px;font-weight:700;background:#315ff4;color:white;cursor:pointer}button.secondary{background:#e9eefb;color:#3153a8}button.warn{background:#fff0e7;color:#ad4b16}button.danger{background:#fce9e9;color:#b63838}button:disabled{opacity:.5;cursor:not-allowed}input,textarea{width:100%;border:1px solid #dce2ed;border-radius:11px;padding:11px;background:white;color:#18243d}textarea{min-height:105px;resize:vertical}label{display:block;font-size:13px;color:#62708a;margin:14px 0 6px}.shell{max-width:1100px;margin:auto;padding:18px 16px 80px}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.brand{font-weight:900;font-size:22px}.muted{color:#748198;font-size:13px}.topright{display:flex;align-items:center;gap:9px}.card{background:white;border:1px solid #e8ecf4;border-radius:18px;padding:18px;box-shadow:0 6px 20px #14224308;margin-bottom:14px}.auth{max-width:420px;margin:10vh auto}.auth h1{margin:0 0 6px}.row{display:flex;gap:10px;align-items:center}.row>*{min-width:0}.grow{flex:1}.grid{display:grid;grid-template-columns:320px 1fr;gap:16px}.tabs{display:flex;gap:7px;overflow:auto;padding-bottom:7px}.tabs button{white-space:nowrap;background:#e9eefb;color:#4a5c81;padding:9px 12px}.tabs button.active{background:#315ff4;color:white}.stats{display:flex;gap:8px;overflow:auto;margin-bottom:14px}.stat{background:white;border:1px solid #e6ebf4;border-radius:13px;padding:11px 13px;white-space:nowrap;font-size:13px}.stat b{display:block;font-size:20px}.order{padding:14px;border:1px solid #e8ecf4;border-radius:13px;margin:9px 0;cursor:pointer;background:white}.order.selected{border-color:#315ff4;box-shadow:0 0 0 2px #315ff424}.order .title{font-weight:800}.order .line{margin-top:5px;color:#66748b;font-size:13px;line-height:1.5}.badge{display:inline-block;font-size:12px;padding:4px 8px;border-radius:99px;background:#e8edff;color:#3153a8;font-weight:700}.badge.hot{background:#fff0e7;color:#ad4b16}.badge.done{background:#e2f6ec;color:#167349}.sectiontitle{font-size:17px;font-weight:900;margin:0 0 10px}.kv{display:grid;grid-template-columns:75px 1fr;gap:7px 10px;font-size:14px;line-height:1.5}.kv span:nth-child(odd){color:#748198}.actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.actions button{padding:9px 11px;font-size:13px}.event{border-left:3px solid #d9e3ff;padding:3px 0 10px 12px;margin:10px 0;white-space:pre-wrap;font-size:14px}.event b{display:block}.event small{color:#8995a9}.pictures{display:flex;gap:8px;flex-wrap:wrap}.pictures img{width:105px;height:105px;object-fit:cover;border-radius:10px;border:1px solid #ddd}.notice{background:#fff8e7;border:1px solid #ffe3a4;border-radius:12px;padding:11px;margin:7px 0;font-size:13px;cursor:pointer}.empty{color:#8b97ab;text-align:center;padding:28px}.modalback{position:fixed;inset:0;background:#0d1a3588;display:grid;place-items:center;padding:18px;z-index:10}.modal{background:white;border-radius:18px;padding:20px;width:min(460px,100%);max-height:90vh;overflow:auto}.modal h3{margin:0 0 8px}.preview{white-space:pre-wrap;background:#f4f6fa;border-radius:10px;padding:12px;font-size:13px}.hint{font-size:12px;color:#8190a7;margin-top:6px}.file{padding:10px;border:1px dashed #a9b7d0;border-radius:10px}@media(max-width:740px){.grid{display:block}.shell{padding:14px 12px 80px}.top{align-items:start}.brand{font-size:19px}.card{padding:15px}.desktoplist.hidden{display:none}.detail{min-height:70vh}}
.floating-message{position:fixed;z-index:30;top:max(14px,env(safe-area-inset-top));right:14px;width:min(370px,calc(100vw - 28px));display:grid;gap:5px;padding:14px 16px;border-radius:15px;background:#182e61;color:#fff;box-shadow:0 12px 35px #0e214d55;cursor:pointer;line-height:1.4;font-size:13px}.floating-message b{font-size:15px}.floating-message span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.floating-message small{color:#bbd1ff}
.message-panel{margin-bottom:16px}.message-scroll{max-height:310px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:6px;touch-action:pan-y}.message-scroll .notice:first-child{margin-top:0}.grid.list-only{display:block}.grid.list-only .desktoplist{width:100%}.message-panel .hint{margin:0 0 12px}.topright{flex-wrap:wrap;justify-content:flex-end}
html,body,#app{height:100%;overflow:hidden}.shell{height:100dvh;max-height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:12px}.top,.stats{flex:none}.message-panel{display:flex;flex-direction:column;min-height:0;max-height:36vh;flex:none}.message-panel .sectiontitle,.message-panel .hint{flex:none}.message-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.grid{flex:1;min-height:0;overflow:hidden}.desktoplist,.detail{min-height:0;overflow:hidden}.desktoplist{display:flex;flex-direction:column}.list-card{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}.list-card>input,.list-card>.tabs,.list-card>button{flex:none}.order-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.grid.list-only .desktoplist{height:100%}.detail{display:flex;flex-direction:column}.detail-screen{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;margin-bottom:0}.detail-head{display:flex;align-items:center;gap:10px;flex:none}.detail-head strong{display:block;font-size:16px;line-height:1.25;max-height:2.5em;overflow:hidden}.detail-head .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-tabs{flex:none;margin:12px 0 8px}.detail-body{min-height:0;flex:1;display:flex;flex-direction:column}.detail-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding-right:5px}.detail-scroll .kv{padding:8px 2px}.chat-layout{min-height:0;flex:1;display:flex;flex-direction:column}.chat-compose{flex:none;border-top:1px solid #e8ecf4;padding-top:10px;display:flex;gap:8px;align-items:flex-end}.chat-compose textarea{min-height:44px;max-height:95px;height:54px}.chat-compose button{flex:none}.detail-open .stats,.detail-open .message-panel{display:none}
@media(max-width:740px){.shell{padding:10px 12px max(8px,env(safe-area-inset-bottom))}.top{margin-bottom:9px}.brand{font-size:18px}.topright{gap:4px}.topright button{padding:7px 9px;font-size:12px}.stats{margin-bottom:8px}.stat{padding:7px 10px}.stat b{font-size:17px}.message-panel{max-height:34vh;padding:12px;margin-bottom:9px}.message-panel .sectiontitle{margin-bottom:4px}.message-panel .hint{margin:0 0 7px}.grid{display:flex;flex-direction:column}.desktoplist{flex:1}.desktoplist.hidden{display:none}.detail{flex:1;min-height:0}.detail-screen{padding:12px}.detail-head .secondary{padding:8px 10px}.detail-tabs{margin:9px 0 6px}.detail-tabs button{padding:8px 10px}.detail-scroll .kv{grid-template-columns:75px 1fr}}
.auth-shell{justify-content:center}.auth-shell .auth{width:min(420px,100%);margin:0 auto;max-height:100%;overflow-y:auto;overscroll-behavior:contain}
.desktoplist.hidden{display:none}.grid.list-only .detail{height:100%}.list-card>button{margin-bottom:10px}.list-card>input{margin-bottom:10px}
.connection-warning{position:fixed;z-index:40;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));margin:auto;max-width:800px;background:#b63838;color:white;padding:12px 16px;border-radius:12px;box-shadow:0 8px 28px #34101055;font-size:13px}
