/* Shared PC forms rendered inside the approved four-tab mobile design. */
#shared-controllers[hidden],#task-drawer-backdrop{display:none!important}
body.mobile-layout{margin:0}
.mobile-refresh{margin-left:auto;background:#ffffff91;border:1px solid #fff9;border-radius:50%;width:34px;height:34px;flex:none;display:grid;place-items:center;color:#55768c}
.mobile-refresh .icon{width:17px;height:17px}
.mobile-layout .reference-art{background-image:url('./design/assets/reference.png')}
.mobile-layout .detail-scroll>[data-live-content]>.message-task{padding:17px;background:#ffffffb0;border:1px solid #fff9;border-radius:20px;margin-bottom:12px}
.mobile-layout button:disabled{opacity:.45;cursor:not-allowed}
.mobile-layout .screen[hidden]{display:none!important}
.mobile-layout .screen:not(.welcome){text-align:left}
.mobile-layout [data-port="resources"]{min-width:0}
.mobile-layout .mobile-desktop-link,.mobile-layout .mobile-admin-link{display:block;margin:16px 2px;color:#286589;font-size:12px;line-height:1.6;text-decoration:none}
.mobile-layout .live-profile-mark{display:grid;place-items:center;background:#d5e8f5;color:#397499;font-size:30px;font-weight:600}
.mobile-layout .settings-card,.mobile-layout .meta-list{padding:0;background:transparent;margin:0}
.mobile-layout .meta-list{display:grid;grid-template-columns:1fr}
.mobile-layout .meta-list dt{font-size:11px;color:#6c8190;margin:12px 0 4px}
.mobile-layout .meta-list dd{font-size:12px;line-height:1.6;color:#2d4e64;margin:0;overflow-wrap:anywhere}
.mobile-layout .account-permissions{padding-left:18px;font-size:12px;line-height:1.9;color:#49677b}
.mobile-layout .account-link{color:inherit;text-decoration:none;border-top:1px solid rgba(151,178,193,.28)}
.mobile-layout .account-link:focus-visible{outline:2px solid #1766bf;outline-offset:-4px;border-radius:21px}
.mobile-layout .account-link .icon:last-child{transform:none}
.mobile-layout .account-facts>div{grid-template-columns:95px minmax(0,1fr)}
.mobile-layout .account-facts dd{line-height:1.7}
.mobile-layout .task-count{width:auto;min-width:28px;flex-shrink:0;max-width:88px;padding:5px 8px;text-align:center;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.mobile-layout .account-signout{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px}
.mobile-layout .account-signout .icon{width:18px;height:18px}
.mobile-layout .mobile-login-content{position:relative;flex:1;min-height:0;overflow:auto;display:flex;align-items:center;padding:24px}
.mobile-layout .login-shell{width:100%;padding:28px 22px;border:1px solid #fff;background:#ffffffb0;border-radius:26px;box-shadow:0 8px 26px #557d9510}
.mobile-layout .login-brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#257cb5;color:#fff;font-size:24px;font-weight:600}
.mobile-layout .login-kicker{font-size:11px;color:#5c7a8e;margin-top:22px}
.mobile-layout .login-story h1{font-size:30px;line-height:1.2;letter-spacing:-1px;margin:12px 0}
.mobile-layout .login-story>p:last-child{display:none}
.mobile-layout .login-action h2{font-size:18px;margin:26px 0 10px}
.mobile-layout .login-action p{font-size:12px;line-height:1.7;color:#607d8f}
.mobile-layout .login-button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:14px 12px;background:#287eb7;border-radius:14px;color:white;text-decoration:none;font-size:12px;font-weight:600}
.mobile-layout .security-note{font-size:10px!important}
.mobile-layout .live-pagination,.mobile-layout .pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:18px 0;color:#58788e;font-size:11px}
.mobile-layout .live-message-controls,.mobile-layout .workspace-filters,.mobile-layout .order-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 16px}
.mobile-layout .live-message-controls input{grid-column:1/-1}
.mobile-layout .live-message-controls select{grid-column:1/-1}
.mobile-layout .order-filters>label:first-child,.mobile-layout .order-filters>label:nth-child(2){grid-column:1/-1}
.mobile-layout label{min-width:0}
.mobile-layout input,.mobile-layout textarea,.mobile-layout select{box-sizing:border-box;max-width:100%;min-width:0;font-family:inherit}
.mobile-layout input:not([type=checkbox]),.mobile-layout textarea{background:#ffffffd9;border:1px solid #dbe6ee;border-radius:12px;min-height:43px;padding:10px 12px;font-size:16px;color:#244151}
.mobile-layout .order-filters label,.mobile-layout .workspace-filters label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#607b8e}
.mobile-layout .order-filters input,.mobile-layout .order-filters select,.mobile-layout .workspace-filters select{width:100%;font-size:14px}
.mobile-layout .primary,.mobile-layout .secondary,.mobile-layout .danger,.mobile-layout .task-view-link,.mobile-layout .icon-button{border-radius:12px;min-height:42px;border:1px solid #cfdfe9;background:#fff;padding:10px 13px;font-size:12px;line-height:1.4;font-family:inherit;color:#325970;cursor:pointer}
.mobile-layout .primary{color:#fff;background:#287eb7;border-color:#287eb7;font-weight:600}
.mobile-layout .danger{color:#a2473c;border-color:#e8cec7;background:#fff7f3}
.mobile-layout .icon-button{min-height:35px;padding:7px 10px}
.mobile-layout .orders-message{font-size:12px;color:#5d7c91;line-height:1.7;margin:10px 2px}
.mobile-layout .orders-list-card,.mobile-layout .workspace-table-card{max-width:100%;overflow:visible}
.mobile-layout table{display:block;width:100%;border:0;border-spacing:0}
.mobile-layout table thead{display:none}
.mobile-layout table tbody{display:block}
.mobile-layout table tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;padding:18px;background:#fff;border:1px solid #e0e9ee;border-radius:20px;margin-bottom:13px}
.mobile-layout table td{display:block;min-width:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.mobile-layout table td::before{content:attr(data-label);display:block;font-size:10px;color:#738a9b;margin-bottom:4px}
.mobile-layout table td strong,.mobile-layout table td small{display:block}
.mobile-layout table td small{font-size:10px;color:#748a99;margin-top:4px}
.mobile-layout table td[colspan]{grid-column:1/-1}
.mobile-layout .status-pill{display:inline-block;font-size:10px;background:#eef4f7;border-radius:12px;padding:4px 7px;color:#49697f}
.mobile-layout .empty-state,.mobile-layout .operation-note{font-size:12px;line-height:1.7;color:#5f7b90}
.mobile-layout .form-error,.mobile-layout .operation-error{font-size:12px;line-height:1.7;color:#a13b30}
#mobile-sheet .sheet-header h2{font-size:18px}
#mobile-sheet-content{overflow:auto}
#mobile-sheet #task-drawer,#mobile-sheet #order-detail,#mobile-sheet #sms-thread{position:static;inset:auto;transform:none;width:100%;max-width:none;max-height:none;padding:0;background:transparent;border:0;box-shadow:none}
#mobile-sheet #task-drawer>.task-drawer-heading,#mobile-sheet #order-detail>.panel-heading{display:none}
#mobile-sheet .detail-list{display:grid;grid-template-columns:100px minmax(0,1fr);gap:0 12px;margin:0 0 18px}
#mobile-sheet .detail-list dt,#mobile-sheet .detail-list dd{padding:10px 0;margin:0;border-bottom:1px solid #dde8ef;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#mobile-sheet .detail-list dt{color:#718998;font-size:11px}
#mobile-sheet .order-items{padding-left:18px;font-size:12px;line-height:1.9}
#mobile-sheet .order-detail-actions,#mobile-sheet .reservation-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
#mobile-sheet .reservation-actions select{width:100%;font-size:16px}
#mobile-sheet .reservation-actions>small{width:100%;color:#758b9c;line-height:1.7}
#mobile-sheet .reservation-operation{padding:14px;border:1px solid #d9e6ee;background:#ffffffb0;border-radius:16px;margin-top:12px;display:flex;flex-direction:column;gap:5px}
#mobile-sheet .reservation-operation>strong{font-size:13px}
#mobile-sheet .reservation-operation>span{font-size:11px;color:#658195;line-height:1.7}
#mobile-sheet .order-status-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
#mobile-sheet .order-status-form label{flex:1;display:flex;flex-direction:column;font-size:11px;gap:7px}
#mobile-sheet .message-context{position:static;max-width:100%;font-size:11px}
#mobile-sheet .message-context dl{display:grid;grid-template-columns:1fr;gap:4px}
#mobile-sheet .message-context dd{margin:0 0 8px;overflow-wrap:anywhere}
#mobile-sheet .sms-assist-panel{padding:12px;background:#eeeffc;border-radius:14px;margin:12px 0}
#mobile-sheet .sms-assist-copy{display:flex;gap:8px;align-items:start}
#mobile-sheet .sms-assist-copy strong{font-size:12px}
#mobile-sheet .sms-assist-copy p{font-size:10px;line-height:1.6;color:#767993;margin:5px 0}
#mobile-sheet .sms-assist-panel button{margin-top:8px}
#mobile-sheet .sms-assist-result{font-size:12px;line-height:1.7;white-space:pre-wrap;margin-top:10px}
#mobile-sheet .sms-messages{max-height:none;overflow:visible;margin:20px 0}
#mobile-sheet .sms-message{background:#fff;border:1px solid #dce6ee;border-radius:16px;max-width:92%;padding:12px;margin:12px 0}
#mobile-sheet .sms-outbound{background:#d7ebf9;margin-left:auto}
#mobile-sheet .sms-message.sms-system{width:fit-content;max-width:100%;margin:4px auto;padding:2px 0;background:transparent;border:0;border-radius:0;color:#647d8c;text-align:center;box-shadow:none;font-size:10px;line-height:1.5}
#mobile-sheet .sms-system-label{display:block;margin-bottom:3px;font-size:11px;font-weight:600}
#mobile-sheet .sms-message.sms-system p{font-size:12px;line-height:1.5}
#mobile-sheet .sms-message p{font-size:13px;line-height:1.7;white-space:pre-wrap;margin:0 0 5px}
#mobile-sheet .sms-message small{font-size:9px;color:#6c8395}
#mobile-sheet .sms-composer textarea{width:100%;min-height:90px;margin:10px 0}
#mobile-sheet .quick-replies{display:flex;flex-wrap:wrap;gap:5px}
#mobile-sheet .quick-replies button{font-size:10px;line-height:1.5;color:#557791;border:1px solid #dce6ed;border-radius:20px;background:#fff;padding:7px 9px;min-height:34px}
#mobile-sheet .composer-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#71889a}
#mobile-sheet[data-kind="thread"]{height:calc(var(--app-height) * .94);max-height:calc(var(--app-height) * .94)}
#mobile-sheet[data-kind="thread"] #mobile-sheet-content{display:flex;flex:1;min-height:0;overflow:hidden;padding:0}
#mobile-sheet[data-kind="thread"] #sms-thread{display:flex;flex:1;min-height:0;overflow:hidden}
#mobile-sheet[data-kind="thread"] #sms-thread-active:not([hidden]){display:flex;flex:1;min-height:0;max-width:100%;flex-direction:column;overflow:hidden}
#mobile-sheet[data-kind="thread"] #sms-thread-empty{align-self:center;padding:20px}
#mobile-sheet[data-kind="thread"] #sms-messages{flex:1;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;margin:0;padding:8px 18px 12px}
#mobile-sheet[data-kind="thread"] #sms-form{flex:none;background:#f3f8fb;border-top:1px solid #dce6ee;margin:0;padding:10px 18px max(12px,env(safe-area-inset-bottom));box-shadow:0 -5px 18px #456a7b06}
#mobile-sheet[data-kind="thread"] #sms-body{height:64px;min-height:54px;max-height:100px;resize:none;margin:8px 0;font-size:16px}
#mobile-sheet[data-kind="thread"] #sms-block-reason{margin:6px 0 0;max-height:60px;overflow:auto;font-size:11px;line-height:1.4}
#mobile-sheet[data-kind="thread"] #sms-block-reason:empty{display:none}
#mobile-sheet .mobile-thread-latest{flex:none;align-self:center;margin:4px;padding:6px 12px;border:1px solid #c7dfea;border-radius:18px;background:#fff;color:#39769d;font-size:11px;cursor:pointer}
#mobile-sheet .mobile-thread-latest[hidden]{display:none}
@media(max-height:500px){#mobile-sheet[data-kind="thread"] .sheet-header{padding:8px 16px}#mobile-sheet[data-kind="thread"] #sms-form{padding:7px 12px max(7px,env(safe-area-inset-bottom))}#mobile-sheet[data-kind="thread"] .quick-replies{display:none}#mobile-sheet[data-kind="thread"] #sms-body{height:48px;min-height:44px;margin:4px 0}}
.mobile-layout .live-ai-form{flex:none;margin:10px 18px 0;position:relative}
.mobile-layout #ai-form{margin:0;position:relative;background:#fff;border-radius:26px;padding:8px 8px 8px 15px}
.mobile-layout #ai-form .composer-actions{position:absolute;right:8px;bottom:9px;margin:0}
.mobile-layout #ai-form .composer-actions>span{display:none}
.mobile-layout #ai-send{display:grid;place-items:center;width:40px;height:40px;min-height:40px;padding:0;border-radius:50%;background:#248bea;border-color:#248bea}
.mobile-layout #ai-question{width:100%;padding:5px 50px 5px 0;resize:none;border:0;border-radius:0;background:transparent;min-height:40px;height:40px;line-height:1.5;font-size:16px}
.mobile-layout #selected-order-context{font-size:10px;padding:5px 0;line-height:1.5}
.mobile-layout #clear-selected-order{padding:3px 6px;background:#edf3f7;color:#52758b;border-radius:8px;font-size:10px}
.mobile-layout .live-ai-transcript{flex:1;min-height:0;overflow:auto}
.mobile-layout #ai-messages{max-height:none;overflow:visible}
.mobile-layout .chat-message{max-width:94%;padding:14px;margin:0 0 14px;background:#fff;border:1px solid #dce5ec;border-radius:18px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.mobile-layout .chat-message-user{margin-left:auto;background:#d4e8f7}
.mobile-layout .chat-author{font-size:9px;color:#668397}
.mobile-layout .chat-body{margin:5px 0;white-space:pre-wrap}
.mobile-layout .chat-sources{font-size:9px;color:#71899b}
.mobile-layout .chat-message[data-state=error]{border-color:#e3c4bc}
.mobile-layout .chat-empty{font-size:12px;color:#708998}
@media(max-width:340px){.mobile-layout .revision-header h1{font-size:25px}.mobile-layout .revision-header{gap:8px;padding-left:18px;padding-right:18px}}
