/* Purchasing and HC are additive views; shared footer and original modules stay intact. */
#app .msg-view{--msg-line:#304346;--msg-muted:#a9bcbb;color:#eef5f3;min-width:0}
body:has(.msg-view.active) #app>.topbar{padding:12px 18px}
body:has(.msg-view.active) #app .brand-icon{width:60px;height:auto}
body:has(.msg-view.active) #app .brand-name{font-size:20px}
body:has(.msg-view.active) #app .brand-sub{font-size:12px}
#app .msg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 18px;flex-wrap:wrap}
#app .msg-head h1{font-size:30px;margin:0 0 6px;line-height:1.15}
#app .msg-view p{margin:0;color:var(--msg-muted);line-height:1.5;overflow-wrap:anywhere}
#app .msg-view button{min-height:44px;min-width:44px;border:1px solid var(--msg-line);border-radius:13px;background:#172728;color:#b3e7df;font:inherit;padding:10px 14px;cursor:pointer}
#app .msg-view button:hover,#app .msg-view button:focus-visible{border-color:#77dfd0;outline:2px solid #77dfd030;outline-offset:2px}
#app .msg-view button:disabled{opacity:.5;cursor:wait}
#app .msg-view button.msg-primary{background:#22564d;color:#d9fff6;border-color:#62b8a9;font-weight:700}
#app .msg-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;align-items:center}
#app .msg-toolbar button[aria-pressed=true]{color:#0a2421;background:#7bdacf;border-color:#7bdacf}
#app .msg-list{display:grid;gap:12px;width:100%}
#app .msg-card{display:block;width:100%;text-align:left;padding:18px;border-radius:19px;background:linear-gradient(125deg,#1b3030,#141e20);border:1px solid var(--msg-line);margin:0}
#app button.msg-card{padding:18px;color:#eff6f4}
#app .msg-card h2{font-size:20px;line-height:1.3;margin:12px 0 8px;overflow-wrap:anywhere}
#app .msg-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--msg-muted)}
#app .msg-pill{font-size:12px;padding:5px 9px;border:1px solid #4b635f;border-radius:8px;display:inline-flex;align-items:center;gap:5px;color:#d0dcd9;background:#203430}
#app .msg-pill.ordered{color:#8be2c0;border-color:#3b8167}
#app .msg-pill.not_proceed{color:#d7c3b8;border-color:#705d55}
#app .msg-pill.attention{color:#ff9e9e;border-color:#963e49;background:#351e25}
#app .msg-new{width:7px;height:7px;border-radius:100%;background:#7bdacf;display:inline-block;margin-right:8px}
#app .msg-empty{border:1px dashed var(--msg-line);border-radius:20px;padding:32px 20px;text-align:center}
#app .msg-empty strong{display:block;color:#d8f0eb;font-size:21px;margin:0 0 10px}
#app .msg-notice{border-left:3px solid #e76572;background:#2b191f;border-radius:10px;padding:13px 14px;margin:0 0 16px;color:#ffc0c4;line-height:1.5;font-size:14px}
#app .msg-error{color:#ffb7a6;margin:12px 0;line-height:1.5}
#app .msg-view form{display:grid;gap:16px;width:100%;margin:16px 0 0}
#app .msg-view label{display:grid;gap:8px;color:#dcebe7;font-weight:600;min-width:0;font-size:16px}
#app .msg-view :is(input,textarea,select){box-sizing:border-box;width:100%;min-width:0;min-height:48px;border:1px solid #45605d;border-radius:12px;padding:12px;background:#0e1c1e!important;color:#f3f8f6!important;font:inherit;font-weight:400;font-size:16px;outline-offset:3px}
#app .msg-view textarea{min-height:100px;resize:vertical}
#app .msg-view input::placeholder,#app .msg-view textarea::placeholder{color:#91a9a4}
#app .msg-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
#app .msg-detail-body{white-space:pre-wrap;margin:16px 0;font-size:17px;line-height:1.5;overflow-wrap:anywhere}
#app .msg-conversation{display:grid;gap:12px;margin:22px 0 10px}
#app .msg-entry{padding:15px;border-left:2px solid #477d72;background:#142021;border-radius:0 12px 12px 0;overflow-wrap:anywhere}
#app .msg-entry p{white-space:pre-wrap;color:#e0ece8;margin-top:10px}
#app .msg-view summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#abd5cc;font-size:14px}
#app .msg-view details p{font-size:13px;margin-bottom:8px}
#app .msg-rule{font-size:13px;color:#a9bcbb;line-height:1.5;margin:20px 0}
#app .msg-bottom{margin-top:auto;padding-top:24px}
#hcMessages{position:relative}#hcMessages .msg-badge{position:absolute;top:0;left:calc(50% + 12px);background:#e75c6c;color:#fff;border:2px solid #0b1113;border-radius:12px;padding:1px 5px;font-size:11px;line-height:17px;min-width:18px}
#hcMessages .msg-badge[hidden]{display:none}
@media(min-width:700px){#app .msg-view{width:100%;max-width:760px;align-self:center}#app .msg-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:no-preference){#app .msg-view button:active{transform:scale(.99);box-shadow:0 0 16px #73dfcf20}}

/* One-second hold reveals a separate destructive button; scrolling keeps its native behavior. */
#app .msg-card-shell{position:relative;min-width:0}
#app .msg-card-shell>.msg-card,#app article.msg-card-shell{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
#app .msg-card-shell.delete-ready>.msg-card,#app article.msg-card.delete-ready{padding-right:72px}
#app .msg-view .msg-delete{position:absolute;right:12px;top:12px;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;font-size:30px;line-height:1;color:#ffb6aa;background:#3a2223;border-color:#a66560;border-radius:50%}
#app .msg-view .msg-delete[hidden]{display:none!important}
#app .msg-view .msg-delete-hint{font-size:13px;line-height:1.45;margin:0 0 12px;color:#a9bcbb}

/* Compact inbox: red requires attention; secondary content starts closed. */
body:has(.msg-view.active) #app>.topbar{padding:8px 14px}
body:has(.msg-view.active) #app .brand-icon{width:36px}
body:has(.msg-view.active) #app .brand-name{font-size:16px}
body:has(.msg-view.active) #app .brand-sub{display:none}
#app .msg-head{flex-wrap:nowrap;align-items:center;gap:10px;margin:8px 0 16px}
#app .msg-head>div{min-width:0}
#app .msg-head h1{font-size:27px;margin:0 0 4px;overflow-wrap:anywhere}
#app .msg-head p{font-size:12px}
#app .msg-head>.msg-primary{flex:none;font-size:14px;padding:10px 13px;border-radius:12px}
#app .msg-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;background:#132022;border-radius:12px;padding:3px;margin-bottom:10px}
#app .msg-toolbar button{padding:8px 4px;border:0;background:transparent;color:#a9bcbb;font-size:13px;border-radius:9px}
#app .msg-toolbar button[aria-pressed=true]{background:#d8e6e2;color:#142220;font-weight:700}
#app .msg-list{gap:8px}
#app .msg-card,#app button.msg-card{padding:13px 14px;border:0;border-radius:13px;background:#142123}
#app .msg-card h2{font-size:17px;line-height:1.3;margin:9px 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#app .msg-meta{font-size:12px;gap:6px}
#app .msg-card-hotel{min-width:0;overflow-wrap:anywhere}
#app .msg-pill{font-size:11px;padding:4px 7px;border:0;border-radius:6px}
#app .msg-pill.pending,#app .msg-pill.attention{color:#ffadb6;background:#44222c}
#app .msg-pill.pending:before,#app .msg-pill.attention:before{content:'';width:5px;height:5px;background:#ff7588;border-radius:50%;flex:none}
#app .msg-pill.not_proceed{color:#c3ccca;background:#293330}
#app .msg-card-foot{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#a9bcbb}
#app .msg-attention-text{color:#ff9da9}
#app .msg-new{background:#b9eeea;width:6px;height:6px}
#app .msg-empty{border:0;background:#111b1d;padding:24px 12px;border-radius:13px}
#app .msg-empty strong{font-size:16px;font-weight:500;margin:0;color:#b7c8c5}
#app .msg-fold{min-width:0;border-bottom:1px solid #263537;margin:0 0 12px}
#app .msg-fold>summary{list-style:none;display:flex;gap:8px;min-height:44px;padding:3px 1px;color:#b2c4c1;font-size:12px;line-height:1.35}
#app .msg-fold>summary::-webkit-details-marker{display:none}
#app .msg-fold>summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 4px 4px 2px;flex:none}
#app .msg-fold[open]>summary::after{transform:rotate(225deg);margin-top:4px}
#app .msg-fold>summary:focus-visible{outline:2px solid #77dfd0;outline-offset:2px;border-radius:6px}
#app .msg-fold-title{flex:1;min-width:0}
#app .msg-fold-caption{font-size:11px;color:#91a8a4;text-align:right}
#app .msg-fold-alert>summary .msg-fold-caption{color:#ff9eab;font-weight:700}
#app .msg-fold-alert>summary .msg-fold-caption::before{content:'●';font-size:8px;margin-right:5px}
#app .msg-fold-content{padding:8px 0 12px}
#app .msg-fold-content>.msg-actions{margin:4px 0 12px}
#app .msg-fold-content>.msg-rule{margin:10px 0;font-size:12px}
#app .msg-fold-content button{font-size:13px}
#app .msg-fold-content .msg-notice{font-size:13px;margin:0 0 10px;padding:10px 12px}
#app .msg-fold-content .msg-notice button{display:block;margin-top:10px}
#app .msg-fold-content>.msg-delete-hint{font-size:12px;margin:10px 0 0}
#app .msg-detail{margin-top:12px}
#app .msg-detail>.msg-fold{margin:6px 0 0;border:0}
#app .msg-detail-body{font-size:15px}
#app .msg-conversation{margin:16px 0 8px;gap:10px}
#app .msg-conversation:empty{display:none}
#app .msg-conversation h2{font-size:15px;margin:0;color:#cbd8d5}
#app .msg-entry{padding:12px;border-left:0;border-radius:10px}
#app .msg-fold-content .msg-entry{margin-bottom:8px}
#app .msg-feedback{font-size:12px;margin:0 0 10px;color:#b8ded4}
@media(min-width:700px){#app .msg-list{grid-template-columns:1fr}}


/* Quiet controls and an explicitly private testing surface. */
#app .msg-quiet-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0 12px}
#app .msg-quiet-actions button{background:transparent;border-color:#334342;color:#c3d0cc;font-size:12px;padding:7px 11px;min-height:40px}
#app .msg-policy-form{grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
#app .msg-policy-form label:last-of-type,#app .msg-policy-form p,#app .msg-policy-form>button{grid-column:1/-1}
#app .msg-policy-form .msg-rule{margin:0;font-size:12px}
#app .msg-notification-status,#app .msg-lab-profile{background:#142123;padding:16px;border-radius:14px;margin:16px 0}
#app .msg-notification-status{display:flex;gap:10px;flex-wrap:wrap}
#app .msg-notification-status strong,#app .msg-notification-status p,#app .msg-notification-status a{width:100%}
#app .msg-notification-status strong{font-size:17px}
#app .msg-notification-status p{margin:0}
#app .msg-notification-status a{color:#c3d0cc;font-size:12px;line-height:1.5;margin-top:5px}
#app .msg-lab-profile>.msg-rule{margin:10px 0;font-size:12px}
#app .msg-lab-profile>.msg-fold{margin-bottom:0;border:0}
#app .msg-lab-create{padding-bottom:18px;border-bottom:1px solid #304346}
#app .msg-lab-list{margin:20px 0 12px}
#app .msg-lab-list .msg-rule{font-size:12px;margin:9px 0}
#app .msg-lab-list button{font-size:13px;padding:9px 11px}
#app .msg-view .msg-danger-quiet{color:#ffb5be;background:transparent;border:0;padding-left:0;font-size:12px}
#app .msg-lab-list .msg-entry{margin:8px 0;background:#0e1c1e}
@media(max-width:359px){#app .msg-policy-form{grid-template-columns:1fr}}

/* Main order screen: direct simulation controls and persistent delivery clock. */
#app .msg-role-bar{display:flex;gap:4px;margin:-4px 0 10px;flex-wrap:wrap}
#app .msg-role-bar button{flex:1;min-width:65px;font-size:11px;padding:6px;min-height:40px;border:0;background:#152022;color:#c5cecc}
#app .msg-role-bar button:disabled{opacity:.38;cursor:default}
#app .msg-role-bar button[aria-pressed=true],#app .msg-mode-toggle[aria-checked=true]{background:#dde7e4;color:#142220;font-weight:700}
#app .msg-folders{display:flex;gap:8px;margin:5px 0 10px}
#app .msg-folders button{background:transparent;border:0;font-size:14px;color:#a9bcbb;padding:8px 12px}
#app .msg-folders button[aria-pressed=true]{color:#f0f5f4;background:#243331;font-weight:700}
#app .msg-status-filter{grid-template-columns:repeat(4,minmax(0,1fr))}
#app .msg-status-filter button{font-size:11px}
#app .msg-clock{display:block;font-size:11px;color:#9eb2ae;font-variant-numeric:tabular-nums;margin:6px 0;line-height:1.4}
#app .msg-wait-clock{font-size:19px;font-weight:650;color:#e7f0ed;margin:10px 0}
#app .msg-pill.received{background:#273b32;color:#a8dfbf}
#app .msg-card-shell>.msg-fold{margin:0;background:#142123;border:0;padding:0 14px;border-radius:0 0 13px 13px}
#app .msg-view .msg-receive{font-size:13px;background:#263f35;color:#d8f2e2;border:0}
#app .msg-card-shell>.msg-receive{margin:6px 0}
#app .msg-test-actions{gap:6px;margin:8px 0}
#app .msg-test-actions button{font-size:12px;padding:8px 10px;min-height:44px}
#app .msg-inline-lab .msg-card>.msg-rule{font-size:11px;margin:5px 0}
#app .msg-inline-lab .msg-fold{margin:0;border:0}
#app .msg-view button:disabled{cursor:default}

/* Normal purchasing: compact, expandable rows with material icons. */
#app .msg-normal{--msg-muted:#9ba4a8;--msg-line:#2b3034;color:#f3f4f5}
#app .msg-normal .msg-head{margin:10px 0 20px}
#app .msg-normal .msg-head h1{font-size:28px;font-weight:650;letter-spacing:-.7px}
#app .msg-normal .msg-head p:empty{display:none}
#app .msg-normal button{background:#23272b;border:0;color:#e7e9eb;border-radius:10px}
#app .msg-normal button.msg-primary{background:#e9edef;color:#131618;border:0}
#app .msg-list-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
#app .msg-normal .msg-folders{display:flex;gap:4px;margin:0;min-width:0}
#app .msg-normal .msg-folders button{background:transparent;color:#939da2;padding:8px 10px;font-size:13px}
#app .msg-normal .msg-folders button[aria-pressed=true]{color:#f2f4f5;background:#262b2e}
#app .msg-normal select.msg-status-select{width:auto;min-width:0;min-height:40px;padding:8px 25px 8px 10px;font-size:12px;border:0;background:#1b1f22!important;color:#bec5c9!important;border-radius:9px}
#app .msg-normal .msg-list{gap:1px;background:#2a2e31;border-radius:14px;overflow:visible}
#app .msg-order-row{background:#191d20;border-radius:0;min-width:0}
#app .msg-order-row:first-child{border-radius:14px 14px 0 0}
#app .msg-order-row:last-child{border-radius:0 0 14px 14px}
#app .msg-order-row:only-child{border-radius:14px}
#app .msg-order-fold{margin:0;border:0}
#app .msg-view summary.msg-order-summary{display:grid;grid-template-columns:34px minmax(0,1fr) auto 10px;gap:12px;min-height:88px;padding:16px;box-sizing:border-box;list-style:none;cursor:pointer;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;color:#e7eaec}
#app .msg-order-summary::-webkit-details-marker{display:none}
#app .msg-order-summary:focus-visible{outline:2px solid #bec8ce;outline-offset:-2px;border-radius:12px}
#app .msg-order-icon{width:28px;height:28px;display:block;color:#d8dfe3;flex:none}
#app .msg-order-copy{display:grid;gap:5px;min-width:0}
#app .msg-order-title{font-size:15px;font-weight:600;line-height:1.35;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#app .msg-order-subtitle{font-size:11px;color:#8e999f;line-height:1.4;overflow-wrap:anywhere}
#app .msg-order-state{display:grid;gap:5px;justify-items:end;max-width:130px}
#app .msg-normal .msg-pill{font-size:10px;background:#292e32;color:#bbc4c9;padding:4px 7px;white-space:normal;text-align:right}
#app .msg-normal .msg-pill.pending:before{display:none}
#app .msg-normal .msg-pill.attention{background:#3d242a;color:#ffacb5}
#app .msg-order-state .msg-clock{font-size:10px;line-height:1.4;text-align:right;background:transparent;color:#9aa6ad;padding:0;margin:0;max-width:120px}
#app .msg-order-state .msg-clock:empty{display:none}
#app .msg-order-chevron{width:6px;height:6px;border-right:1.5px solid #89949a;border-bottom:1.5px solid #89949a;transform:rotate(45deg);margin-top:-4px}
#app .msg-order-fold[open]>.msg-order-summary .msg-order-chevron{transform:rotate(225deg);margin-top:4px}
#app .msg-order-content{padding:0 16px 16px 62px}
#app .msg-order-content .msg-order-about{display:grid;gap:8px;margin:0 0 12px}
#app .msg-order-content .msg-order-about p{font-size:12px;line-height:1.55;margin:0}
#app .msg-order-content .msg-order-description{white-space:pre-wrap;color:#e2e5e7}
#app .msg-order-content .msg-fold{margin-bottom:6px;border-color:#303539}
#app .msg-order-content .msg-actions{gap:6px;margin:12px 0}
#app .msg-order-content button{font-size:12px;padding:10px}
#app .msg-normal>.msg-fold{margin-top:20px;border:0}
#app .msg-delete-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:8px 12px 0}
#app .msg-delete-actions[hidden]{display:none!important}
#app .msg-view .msg-delete-actions .msg-delete{position:static;flex:none}
#app .msg-view .msg-delete-cancel{min-height:44px;padding:8px 16px}
#app .msg-normal .msg-delete{background:#3a2223;color:#ffb6aa;border:1px solid #a66560}
@media(max-width:360px){#app .msg-view summary.msg-order-summary{grid-template-columns:26px minmax(0,1fr) auto 8px;gap:8px;padding:14px 12px}#app .msg-order-icon{width:24px;height:24px}#app .msg-order-state{max-width:92px}#app .msg-order-content{padding:0 12px 14px 46px}#app .msg-normal .msg-folders button{padding:8px;font-size:12px}}

/* Decisions and read receipts stay visible when an order is expanded. */
#app .msg-decision-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px}
#app .msg-decision-actions button{min-height:46px;font-size:13px;font-weight:600;padding:10px 8px;white-space:normal}
#app .msg-decision-actions>button:only-child{grid-column:1/-1}
#app .msg-view button.msg-reject{background:#30262a;color:#ffc2c8;border:1px solid #67414a}
#app .msg-seen-state{font-size:11px;line-height:1.4;color:#9da8ae;white-space:nowrap}
#app .msg-seen-state.is-seen{color:#e2e8eb}
#app .msg-read-receipt{margin:0 0 14px;overflow-wrap:anywhere}
#app .msg-read-receipt p{font-size:11px;line-height:1.5;color:#adb8be;margin:4px 0 0}
#app .msg-rejection{margin:0 0 14px;padding:12px;background:#282427;border-radius:10px}
#app .msg-rejection[hidden]{display:none}
#app .msg-rejection textarea{box-sizing:border-box;max-width:100%;min-height:72px;margin:6px 0 10px}
#app .msg-rejection button{margin:0 6px 4px 0;min-height:42px}
@media(max-width:420px){#app .msg-order-content{padding-left:14px;padding-right:14px}}

/* Comfortable reading, with the same quiet hierarchy and sharp vector icons. */
#app .msg-normal{--msg-muted:#b2bbc0;font-size:16px;line-height:1.5}
#app .msg-normal .msg-head>.msg-primary{font-size:16px;min-height:48px;padding:12px 16px}
#app .msg-normal .msg-list-controls{gap:10px;margin-bottom:14px;flex-wrap:wrap}
#app .msg-normal .msg-folders button{font-size:15px;min-height:48px;padding:10px 12px}
#app .msg-normal select.msg-status-select{font-size:14px;min-height:48px;padding:10px 28px 10px 12px;margin-left:auto}
#app .msg-normal .msg-list{border-radius:16px}
#app .msg-normal .msg-order-row:first-child{border-radius:16px 16px 0 0}
#app .msg-normal .msg-order-row:last-child{border-radius:0 0 16px 16px}
#app .msg-normal .msg-order-row:only-child{border-radius:16px}
#app .msg-normal summary.msg-order-summary{grid-template-columns:36px minmax(0,1fr) minmax(0,112px) 8px;gap:12px;min-height:108px;padding:20px 16px}
#app .msg-normal .msg-order-icon{width:34px;height:34px}
#app .msg-normal .msg-order-copy{gap:6px}
#app .msg-normal .msg-order-title{font-size:20px;line-height:1.3;font-weight:600;letter-spacing:-.2px}
#app .msg-normal .msg-order-subtitle{font-size:14px;line-height:1.45;color:#b2bbc0}
#app .msg-normal .msg-order-state{gap:7px;min-width:0;max-width:112px}
#app .msg-normal .msg-pill{font-size:12px;line-height:1.35;padding:5px 8px;overflow-wrap:anywhere}
#app .msg-normal .msg-seen-state{font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#app .msg-normal .msg-order-state .msg-clock{font-size:12px;line-height:1.45;max-width:100%;color:#b2bbc0}
#app .msg-normal .msg-order-chevron{width:8px;height:8px}
#app .msg-normal .msg-order-content{padding:0 16px 20px 64px}
#app .msg-normal .msg-order-content .msg-order-about p{font-size:14px;line-height:1.55}
#app .msg-normal .msg-order-content .msg-order-about .msg-order-description{font-size:16px;line-height:1.55}
#app .msg-normal .msg-order-content button{font-size:15px;min-height:48px;padding:12px}
#app .msg-normal .msg-decision-actions{gap:10px;margin-bottom:16px}
#app .msg-normal .msg-decision-actions button{font-size:16px;min-height:50px;padding:12px 10px}
#app .msg-normal .msg-read-receipt p{font-size:14px;line-height:1.5}
#app .msg-normal .msg-fold>summary{font-size:14px;min-height:48px}
#app .msg-normal .msg-fold-caption{font-size:12px}
#app .msg-normal .msg-fold-content p,#app .msg-normal .msg-rule,#app .msg-normal .msg-feedback{font-size:14px;line-height:1.55}
#app .msg-normal .msg-fold-content button{font-size:15px;min-height:48px}
#app .msg-normal .msg-delete-cancel{font-size:15px;min-height:48px}
#app .msg-normal .msg-delete{width:48px;height:48px}
@media(max-width:420px){#app .msg-normal .msg-order-content{padding-left:16px;padding-right:16px}}
@media(max-width:380px){
  #app .msg-normal summary.msg-order-summary{grid-template-columns:34px minmax(0,1fr) 8px;gap:10px 12px;padding:18px 14px}
  #app .msg-normal .msg-order-icon{grid-column:1;grid-row:1;align-self:start;margin-top:3px}
  #app .msg-normal .msg-order-copy{grid-column:2;grid-row:1}
  #app .msg-normal .msg-order-chevron{grid-column:3;grid-row:1}
  #app .msg-normal .msg-order-state{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 10px;max-width:none}
  #app .msg-normal .msg-order-state .msg-clock{text-align:left;flex-basis:100%}
}

/* The order itself is tinted glass; labels and controls remain fully opaque. */
#app .msg-normal .msg-list{gap:10px;background:transparent;border-radius:0}
#app .msg-normal .msg-order-row,
#app .msg-normal .msg-order-row:first-child,
#app .msg-normal .msg-order-row:last-child,
#app .msg-normal .msg-order-row:only-child{
  --msg-glass-rgb:174,183,188;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0) 55%),linear-gradient(135deg,rgba(var(--msg-glass-rgb),.38),rgba(var(--msg-glass-rgb),.19)),rgba(25,29,32,.68);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),inset 0 -1px 0 rgba(var(--msg-glass-rgb),.22),0 8px 18px rgba(0,0,0,.16);
  -webkit-backdrop-filter:blur(10px) saturate(135%);
  backdrop-filter:blur(10px) saturate(135%);
}
#app .msg-normal .msg-order-row[data-order-status="pending"]{--msg-glass-rgb:255,209,29}
#app .msg-normal .msg-order-row[data-order-status="not_proceed"]{--msg-glass-rgb:255,59,75}
#app .msg-normal .msg-order-row[data-order-status="ordered"],
#app .msg-normal .msg-order-row[data-order-status="received"]{--msg-glass-rgb:30,230,128}
/* Confirmed is in progress; received keeps the uninterrupted green glass. */
#app .msg-normal .msg-order-row[data-order-status="ordered"]{
  background-image:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,0) 55%),repeating-linear-gradient(135deg,rgba(30,230,128,.38) 0 18px,rgba(255,255,255,.22) 18px 36px);
}
#app .msg-normal .msg-order-row .msg-order-summary,
#app .msg-normal .msg-order-row .msg-order-icon{color:#f4f7f6}
#app .msg-normal .msg-order-row .msg-order-subtitle,
#app .msg-normal .msg-order-row .msg-seen-state,
#app .msg-normal .msg-order-row .msg-order-state .msg-clock{color:#dce3e1}
#app .msg-normal .msg-order-row .msg-order-state>.msg-pill{color:rgb(var(--msg-glass-rgb));background:rgba(7,13,15,.52)}
#app .msg-normal .msg-order-row .msg-order-chevron{border-color:#dce3e1}

/* Discreet, collapsed archive folders; dates remain legible on the order card. */
#app .msg-archive-folders{display:grid;gap:6px;margin:20px 0 10px;}
#app .msg-archive-folder{background:rgba(255,255,255,.025);border:0;border-radius:12px;}
#app .msg-archive-folder>summary{min-height:48px;padding:12px 14px;display:flex;align-items:center;gap:10px;}
#app .msg-archive-folder>summary>svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;opacity:.7;}
#app .msg-archive-folder .msg-fold-title{font-size:15px;font-weight:500;}
#app .msg-archive-folder .msg-fold-caption{font-size:13px;font-variant-numeric:tabular-nums;}
#app .msg-archive-folder>.msg-fold-content{padding:8px 0 0;}
#app .msg-normal .msg-final-date{display:block;margin-top:5px;font-size:14px;line-height:1.4;color:#f1f3f5;font-variant-numeric:tabular-nums;white-space:normal;}

/* Readable order details, shared by Pedidos and Lo importante del día. */
#app .msg-order-content .msg-order-about{display:grid;gap:20px;margin:4px 0 22px}
#app .msg-order-content .msg-detail-field{display:grid;gap:6px;margin:0;min-width:0}
#app .msg-order-content .msg-detail-label{display:block;font-size:15px;line-height:1.4;font-weight:600;color:#bdc8cc;margin:0}
#app .msg-order-content .msg-detail-value{margin:0;min-width:0;font-size:17px;line-height:1.55;font-weight:500;color:#f2f5f5;overflow-wrap:anywhere}
#app .msg-view .msg-order-content .msg-order-about .msg-detail-text{margin:0;font-size:17px;line-height:1.6;color:#f2f5f5;white-space:pre-wrap;overflow-wrap:anywhere}
#app .msg-order-content .msg-read-receipt{display:grid;gap:14px;margin:0 0 22px}
#app .msg-order-content .msg-read-receipt>.msg-seen-state{font-size:15px;line-height:1.5}
#app .msg-order-content .msg-detail-person{display:grid;gap:7px;min-width:0}
#app .msg-order-content .msg-detail-time{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;font-size:17px;line-height:1.5;font-variant-numeric:tabular-nums;color:#f2f5f5}
#app .msg-order-content .msg-detail-day{font-weight:600}
#app .msg-order-content .msg-detail-hour{font-weight:500;white-space:nowrap;color:#d8e0e2}
#app .msg-order-content .msg-detail-pending{font-size:16px;line-height:1.5;font-weight:400;color:#b8c3c7}
#app .msg-order-content .msg-detail-timeline{list-style:none;display:grid;gap:22px;margin:8px 0 16px;padding:0}
#app .msg-order-content .msg-detail-milestone{position:relative;display:grid;gap:7px;min-width:0;padding-left:22px}
#app .msg-order-content .msg-detail-milestone::before{content:'';position:absolute;left:0;top:6px;width:8px;height:8px;border:1.5px solid #9caaaf;border-radius:50%;box-sizing:border-box}
#app .msg-order-content .msg-detail-milestone.is-complete::before{background:#e0e7e9;border-color:#e0e7e9}
#app .msg-order-content .msg-fold>summary{font-size:16px;font-weight:600;line-height:1.5;min-height:54px}
#app .msg-order-content .msg-detail-activity{list-style:none;display:grid;gap:12px;margin:0 0 16px;padding:0}
#app .msg-order-content .msg-detail-event{display:grid;gap:12px;padding:16px;margin:0;background:rgba(7,13,15,.23);border:0;border-radius:12px;min-width:0}
#app .msg-order-content .msg-detail-event .msg-detail-event-title{font-size:17px;font-weight:600;line-height:1.55;margin:0;color:#f2f5f5;white-space:pre-wrap;overflow-wrap:anywhere}
#app .msg-order-content .msg-detail-more{font-size:15px;line-height:1.5;margin:0;color:#bdc8cc}
@media(max-width:600px){#app .msg-order-content{padding-left:16px;padding-right:16px}}

.msg-update-notice{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:16px;margin:0 0 16px;background:#182124;border-radius:16px;color:#eef3f3;font-size:16px;line-height:1.5}.msg-update-notice>div{flex:1 1 230px}.msg-update-notice strong{font-size:18px}.msg-update-notice p{margin:5px 0 0;color:#c2ccce}.msg-update-notice a{min-height:48px;display:inline-flex;align-items:center;text-decoration:none}

.msg-update-download{width:100%;max-width:100%}
.msg-update-download button{min-height:48px;white-space:normal;text-align:left}
.msg-update-download p{margin:12px 0;line-height:1.5;color:inherit}
.msg-update-download input{width:100%;box-sizing:border-box;padding:12px;font-size:16px}
