/* ORTHYNE P100 Evolution: progressive, accessible visual refresh.
 * Scoped selectors protect checkout/auth state. Reversible by restoring P94.
 */
:root{
 --oe-ink:#e9f7ff;--oe-navy:#07182c;--oe-surface:#0f2941;
 --oe-teal:#1de8ce;--oe-cyan:#69d8ff;--oe-violet:#9876ff;
}
@media (prefers-reduced-motion:no-preference){
 :is(.c70-card,.c70-tile,.cx-post,.cxp-voce-m,.cxt-ann,.cm-panel,.c68-tile,.cxt-card):not([hidden]){
   transition:transform .26s cubic-bezier(.2,.8,.2,1),box-shadow .26s,border-color .2s,background-color .2s;
 }
 @media (hover:hover) and (pointer:fine){
   :is(.c70-card,.c70-tile,.cx-post,.cxp-voce-m,.cxt-ann,.cm-panel,.c68-tile,.cxt-card):not([hidden]):hover{
     transform:translateY(-4px);box-shadow:0 16px 44px rgba(3,13,31,.24),0 0 0 1px rgba(29,232,206,.28);
   }
 }
}
:where(.c70-card,.cxt-ann,.cx-post,.cm-panel):focus-within{
 outline:2px solid rgba(29,232,206,.65);outline-offset:2px;
}
:where(.cm-page,.c70,.cx-page,.cx-home) :is(button,a):focus-visible{
 outline:3px solid var(--oe-teal);outline-offset:3px;
}
@media(prefers-reduced-motion:reduce){
 :where(.c70-card,.cxt-ann,.cx-post,.cm-panel,.oc-chat-evolved){transition:none!important;animation:none!important}
}
/* Readable marketplace cards on mobile */
@media(max-width:700px){
 :where(.c70,.cm-page) :is(.c70-card,.cm-panel){border-radius:18px}
 :where(.c70,.cm-page) .cm-quick a{transition:background .2s,box-shadow .2s}
}
/* Visual shipping dashboard (only seller data already authorized by RLS). */
.om-market-dashboard{
 padding:4px 0 10px;gap:11px;
}
.om-market-chip{
 background:linear-gradient(145deg,rgba(20,191,175,.15),rgba(72,116,237,.09))!important;
 border:1px solid rgba(47,193,195,.43)!important;
 border-radius:14px!important;
 box-shadow:0 8px 28px rgba(1,25,42,.1);
}
.om-ship-generate{
 background:linear-gradient(120deg,#0b9b93,#2465ba)!important;
 color:white!important;border:1px solid #6ce0cc!important;
 border-radius:11px!important;padding:10px 14px!important;min-height:42px!important;
}
.om-order-entry{box-shadow:0 6px 22px rgba(11,110,154,.15);font-weight:650}
/* Professional chat pro refresh: matches native .oa-p markup without intercepting API. */
.oa-p.orthyne-chat-pro{
 --oc-primary:#0e3852;--oc-highlight:#0caeab;
 width:min(520px,calc(100vw - 16px));
 height:min(720px,calc(100dvh - 16px));
 border-radius:23px;
 border:1px solid rgba(98,219,225,.32);
 background:linear-gradient(180deg,#f4fafc 0%,#edf5fa 100%);
 box-shadow:0 35px 95px rgba(0,19,43,.5),0 0 0 1px rgba(255,255,255,.23) inset;
 color:#15283d;
 font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.oa-p.orthyne-chat-pro .oa-h{
 background:linear-gradient(110deg,#082237 0%,#105479 68%,#153763 100%);
 border-bottom:1px solid rgba(111,224,229,.45);
 box-shadow:0 3px 19px rgba(4,36,67,.15);
 padding:11px 12px;column-gap:7px;
}
.oa-p.orthyne-chat-pro .oa-h b{
 color:white;font-size:14px;letter-spacing:.04em;font-weight:750;
}
.oa-p.orthyne-chat-pro .oa-h small{
 color:#a8f1e8;opacity:1;font-size:10px;
}
.oa-p.orthyne-chat-pro .oa-h .oa-o{
 filter:drop-shadow(0 0 7px rgba(37,230,217,.34));
}
.oa-p.orthyne-chat-pro .oa-h .oc-action{
 border:1px solid rgba(202,255,254,.26)!important;
 background:rgba(255,255,255,.08)!important;
 backdrop-filter:blur(9px);
 transition:background .18s,transform .18s;
}
.oa-p.orthyne-chat-pro .oa-h .oc-action:hover{
 background:rgba(28,212,198,.22)!important;
}
.oa-p.orthyne-chat-pro .oa-modes{
 background:#fff;border-bottom:1px solid #d4e6ee;
}
.oa-p.orthyne-chat-pro .oa-modes button{
 border-radius:11px;font-weight:650;
}
.oa-p.orthyne-chat-pro .oa-modes button[aria-pressed=true]{
 color:#084b5c;border-color:#178eaf;
 background:linear-gradient(120deg,#e1fff6,#e2efff);
 box-shadow:0 0 0 1px rgba(31,162,177,.16) inset;
}
.oa-p.orthyne-chat-pro .oa-mode-note{
 background:#f0f9fc;color:#526a7b;
 margin:0;padding:8px 13px;font-size:12px;
}
.oa-p.orthyne-chat-pro .oa-l{
 background:
 radial-gradient(ellipse 55% 36% at 90% 10%,rgba(113,213,236,.1),transparent),
 #f3f8fb;
 padding:14px 13px 8px;
}
.oa-p.orthyne-chat-pro .oa-m{
 line-height:1.56;font-size:14px;max-width:93%;
 border-radius:17px;
}
.oa-p.orthyne-chat-pro .oa-a{
 border:1px solid #cce1ea;
 background:#fff;
 color:#1d3646;
 box-shadow:0 6px 25px rgba(12,78,116,.085);
}
.oa-p.orthyne-chat-pro .oa-u{
 color:#fff;background:linear-gradient(125deg,#075e75,#1d4b90);
}
.oa-p.orthyne-chat-pro .oc-chip{
 border:1px solid #c2e2ed;
 border-radius:13px;
 background:linear-gradient(115deg,#f0ffff,#edf4ff);
 color:#20516a;
 padding:10px 12px;
 line-height:1.42;
 font-size:13px;
 transition:background .18s,transform .18s,border-color .18s,box-shadow .18s;
}
.oa-p.orthyne-chat-pro .oc-chip:hover,
.oa-p.orthyne-chat-pro .oc-chip:focus-visible{
 background:#e0f8fd;border-color:#44bac3;
 box-shadow:0 3px 17px rgba(31,150,177,.15);
}
.oa-p.orthyne-chat-pro .oc-examples{margin:7px 5px 14px 25px;gap:8px}
.oa-p.orthyne-chat-pro .oc-examples>small{
 color:#2d5667;font-size:12px;font-weight:700;
}
.oa-p.orthyne-chat-pro .oc-mini{
 min-width:35px;min-height:34px;border-radius:10px;
 background:#e6f5f8;color:#145e73;
 border:1px solid #d0e7ec;
}
.oa-p.orthyne-chat-pro .oa-f{
 border:1px solid #b7d8e4;background:white;
 box-shadow:0 7px 31px rgba(4,51,86,.12);
 border-radius:18px;
 padding:7px;gap:6px;
}
.oa-p.orthyne-chat-pro .oa-f textarea{
 color:#19334b!important;background:transparent;
 min-height:44px;height:44px;
 font-size:16px!important;
 padding:11px 7px;line-height:1.35;
}
.oa-p.orthyne-chat-pro .oa-f textarea::placeholder{color:#68869c;opacity:1}
.oa-p.orthyne-chat-pro .oa-f button{
 border-radius:12px;min-width:40px;min-height:40px;
}
.oa-p.orthyne-chat-pro .oa-f button[type=submit]{
 color:white;background:linear-gradient(140deg,#0eac9e,#136ec3);
 box-shadow:0 5px 15px rgba(23,136,180,.24);
}
.oa-p.orthyne-chat-pro .oa-f button.oa-voice-stop[aria-pressed=true]{
 background:linear-gradient(130deg,#10b7ad,#176da7);
}
.oa-p.orthyne-chat-pro .oa-voice-state{
 background:#eef9f9;color:#1f6279;
 border-top:1px solid #d8e9ee;
 line-height:1.4;max-height:60px;
}
.oa-p.orthyne-chat-pro .oc-voice-settings{
 border:1px solid #b7d7e5;background:#ecf8fc;
 padding:11px;
 box-shadow:0 5px 18px rgba(20,74,112,.09);
}
.oa-p.orthyne-chat-pro .oc-voice-settings button,
.oa-p.orthyne-chat-pro .oc-voice-settings select{
 min-height:40px;font-size:14px;
}
.oa-p.orthyne-chat-pro .oc-legal{
 background:transparent;border:0;
 font-size:11px;color:#486174;
}
.oa-p.orthyne-chat-pro .oc-search.is-open{
 background:#e5f4f8;
}
.oa-p.orthyne-chat-pro .oc-search input{
 border-radius:12px;min-height:40px;
}
.cxt-foglio.oc-chat{
 border:1px solid rgba(68,209,205,.4);
 background:#0c2035;box-shadow:0 -18px 58px #020c1a80;
}
.cxt-foglio.oc-chat .cxt-ftesta{
 background:linear-gradient(120deg,#092837,#125373);
 border-bottom:1px solid #5ad9d14a;
}
.cxt-foglio.oc-chat .cxt-bolla{border-radius:17px}
.cxt-foglio.oc-chat .cxt-bolla.mia{
 background:linear-gradient(120deg,#076b83,#306db3);
}
@media (max-width:640px){
 .oa-p.orthyne-chat-pro{
  top:max(5px,env(safe-area-inset-top))!important;
  width:calc(100vw - 10px)!important;
  left:5px!important;right:5px!important;
  height:calc(var(--oc-vh,100dvh) - 10px)!important;
  max-height:calc(var(--oc-vh,100dvh) - 10px)!important;
  border-radius:20px!important;
 }
 .oa-p.orthyne-chat-pro .oa-h{
  display:flex!important;flex-wrap:wrap!important;
  padding:8px 10px!important;
  gap:4px!important;min-height:64px;align-items:center;justify-content:flex-start;
 }
 .oa-p.orthyne-chat-pro .oa-h .oa-o{
   transform:scale(.78);transform-origin:center;
   margin:-4px;flex-shrink:0!important;
 }
 .oa-p.orthyne-chat-pro .oa-h .oa-ht{
   flex:1 1 82px!important;min-width:70px!important;
 }
 .oa-p.orthyne-chat-pro .oa-h .oa-ht b{font-size:12px!important;letter-spacing:0;white-space:nowrap}
 .oa-p.orthyne-chat-pro .oa-h .oa-ht small{display:none}
 .oa-p.orthyne-chat-pro .oa-h .oc-tools{
  flex:1 1 100%!important;order:10!important;
  justify-content:flex-end!important;
  gap:3px!important;max-width:100%;margin:0;
 }
 .oa-p.orthyne-chat-pro .oa-h button{
   flex:0 0 auto!important;
   width:31px!important;height:34px!important;
   min-width:31px!important;
   padding:4px!important;
 }
 .oa-p.orthyne-chat-pro .oa-h .oc-tools button{
   width:30px!important;height:33px!important;
 }
 .oa-p.orthyne-chat-pro .oa-l{padding:13px 9px 7px}
 .oa-p.orthyne-chat-pro .oa-m{max-width:95%;font-size:13.5px}
 .oa-p.orthyne-chat-pro .oc-examples{margin-left:10px;max-width:calc(100% - 15px)}
 .oa-p.orthyne-chat-pro .oc-chip{font-size:12.5px;padding:10px 11px}
 .oa-p.orthyne-chat-pro .oa-mode-note{padding:6px 10px}
 .oa-p.orthyne-chat-pro .oa-f{
   margin:5px 7px max(7px,env(safe-area-inset-bottom));
   gap:4px;max-width:calc(100% - 14px);min-width:0;
 }
 .oa-p.orthyne-chat-pro .oa-f textarea{
   width:0!important;min-width:0!important;flex:1 1 0!important;resize:none!important;
 }
 .oa-p.orthyne-chat-pro .oa-f button{
  min-height:39px;min-width:38px;flex:0 0 38px!important;
 }
}
@media(max-width:355px){
 .oa-p.orthyne-chat-pro .oa-h .oa-ht b{font-size:11px!important}
 .oa-p.orthyne-chat-pro .oa-h button{width:27px!important;min-width:27px!important}
 .oa-p.orthyne-chat-pro .oa-h .oc-tools button{width:26px!important}
}
