:root{--navy:#101d32;--navy2:#192a45;--blue:#355df2;--bluebg:#edf1ff;--teal:#079684;--tealbg:#ddf8f2;--ink:#17233a;--muted:#718098;--line:#e4eaf3;--bg:#f5f7fb;--card:#fff;--red:#da4b5a;--orange:#e68d37;--r:16px;--shadow:0 5px 23px rgba(18,35,60,.05)}
*{box-sizing:border-box}html{font-size:14px}body{margin:0;background:var(--bg);color:var(--ink);font:400 14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a.btn{cursor:pointer}h1,h2,h3{line-height:1.2;margin:0;color:var(--ink)}h1{font-size:1.82rem;letter-spacing:-.05rem}h2{font-size:1.28rem}h3{font-size:1rem}small,.subtle{color:var(--muted)}svg{vertical-align:middle}
.shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(165deg,var(--navy),var(--navy2));color:#c1cbdd;min-height:100vh;position:sticky;top:0;height:100vh;overflow-y:auto;padding:24px 12px 18px}.brand{display:flex;align-items:center;gap:10px;color:white;padding:2px 12px 24px;font-size:1.12rem;font-weight:750}.brand-icon{width:38px;height:38px;background:linear-gradient(135deg,#719cf9,#35cbb2);border-radius:11px;display:grid;place-items:center;color:#09182c;font-weight:900}.side-label{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#8595b1;padding:18px 13px 8px;font-weight:700}.nav-link{display:flex;align-items:center;gap:12px;color:#bfcce1;padding:11px 13px;border-radius:11px;margin:2px 0;font-size:13px}.nav-link span.symbol{width:20px;text-align:center;font-size:17px}.nav-link:hover,.nav-link.active{background:#2b4266;color:white;text-decoration:none}.side-footer{border-top:1px solid #30445d;margin:20px 11px 0;padding-top:17px;color:#a6b5cc;font-size:11px}.main{min-width:0}.topbar{min-height:74px;display:flex;gap:18px;align-items:center;justify-content:space-between;padding:12px 30px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}.topbar small{display:block}.top-actions{display:flex;align-items:center;gap:13px}.avatar{width:38px;height:38px;border-radius:50%;background:var(--bluebg);color:var(--blue);display:grid;place-items:center;font-weight:800}.content{padding:28px 30px 50px;max-width:1700px;margin:auto}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:800;color:var(--teal)}.page-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:24px}.page-head p{margin:7px 0 0;color:var(--muted)}.head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;gap:10px}.section-head a{font-size:.85rem}.grid{display:grid;gap:17px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:21px;min-width:0}.card + .card{margin-top:0}.stat{display:flex;flex-direction:column;gap:13px;position:relative}.stat .stat-ico{width:42px;height:42px;border-radius:12px;background:var(--bluebg);display:grid;place-items:center;font-size:21px}.stat .num{font-size:2rem;font-weight:780;letter-spacing:-.04em;line-height:1}.stat .desc{font-size:12px;color:var(--muted)}.stat a{position:absolute;inset:0}.quick-link{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--line);border-radius:13px;color:var(--ink);background:#fff}.quick-link:hover{border-color:#b8c7fb;box-shadow:var(--shadow);text-decoration:none}.quick-link b{display:block;font-size:.94rem}.quick-link small{font-size:.79rem}.quick-icon{display:grid;place-items:center;min-width:41px;height:41px;border-radius:10px;background:#e7f0ff;font-size:20px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;border:1px solid #dce2ed;border-radius:10px;background:white;color:var(--ink);padding:9px 14px;font-weight:650;min-height:37px}.btn:hover{text-decoration:none;background:#f3f6fc}.btn.primary{background:var(--blue);color:white;border-color:var(--blue)}.btn.primary:hover{background:#224fe5}.btn.teal{background:var(--teal);color:white;border-color:var(--teal)}.btn.danger{background:#fff0f1;color:#b52d45;border-color:#f5d1d5}.btn.small{font-size:12px;padding:6px 10px;min-height:30px}.btn:disabled{opacity:.5;cursor:not-allowed}
.field{display:flex;flex-direction:column;gap:5px;min-width:0}.field label{font-size:12px;font-weight:720;color:#546079}.field input,.field select,.field textarea,input.text,select.text{width:100%;min-width:0;border-radius:9px;border:1px solid #d7dfeb;padding:10px 11px;background:#fff;color:var(--ink);outline:none}.field textarea{min-height:75px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7898ff;box-shadow:0 0 0 3px #eaf0ff}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.span-2{grid-column:span 2}.span-3{grid-column:span 3}.span-4{grid-column:span 4}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.info-line{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.tag,.pill{display:inline-flex;align-items:center;border-radius:8px;padding:4px 9px;font-weight:700;font-size:11px;background:#ecf1f8;color:#5a6679;white-space:nowrap}.tag.confirmed,.tag.ready,.tag.done,.tag.checked_in{background:#e0f7ee;color:#067e62}.tag.checked_out,.tag.closed,.tag.cancelled{background:#eef1f5;color:#667284}.tag.dirty,.tag.open,.tag.pending{background:#fff2e2;color:#a8661e}.tag.maintenance,.tag.failed,.tag.urgent,.tag.no_show{background:#ffe5e8;color:#be354a}.tag.cleaning,.tag.inspection,.tag.in_progress{background:#e4edff;color:#335dba}.tag.status-payment{background:#ddf8f0;color:#067e62}.muted{color:var(--muted)}.notice{padding:12px 16px;border-radius:12px;background:#e8f7ef;color:#176b49;border:1px solid #bbecd1;margin-bottom:18px}.notice.error{background:#ffeded;color:#b23649;border-color:#ffd4d6}.notice.warning{background:#fff7e6;color:#a56722;border-color:#f9e8b6}
.table-wrap{width:100%;overflow:auto;border-radius:10px}.table{width:100%;border-collapse:collapse;font-size:13px;min-width:630px}.table th{text-align:left;padding:12px 13px;background:#f8fafd;color:#667389;font-size:11px;letter-spacing:.02em;font-weight:760;white-space:nowrap}.table td{padding:12px 13px;border-top:1px solid #edf0f6;vertical-align:middle}.table tr:hover td{background:#fcfdff}.table .mini{font-size:11px;color:var(--muted)}.tr-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}form.inline{display:inline-flex;gap:5px;align-items:center}form.inline select{width:auto}.empty{padding:30px;text-align:center;color:var(--muted)}.tiny{font-size:11px;color:var(--muted)}.timeline{display:flex;flex-direction:column;gap:13px}.line{position:relative;padding-left:20px;border-left:2px solid #dbe3ed}.line:before{content:'';position:absolute;left:-5px;top:4px;width:8px;height:8px;border-radius:50%;background:var(--teal)}.split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:18px}.dash-section{margin-top:24px}
.calendar-box{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden}.calendar-scroll{width:100%;overflow:auto;max-height:66vh}.calendar-grid{display:grid;width:max-content;min-width:100%;grid-template-columns:var(--left-width) repeat(var(--days),var(--cell-width));grid-auto-rows:42px;position:relative;--left-width:185px;--cell-width:48px}.calendar-label{position:sticky;left:0;background:white;z-index:4;padding:8px 10px;border-right:1px solid var(--line);border-bottom:1px solid #f1f3f7;overflow:hidden;font-size:12px;line-height:1.3}.calendar-label b{display:block}.calendar-label small{font-size:10px}.cal-day{height:42px;border-left:1px solid #eef1f7;border-bottom:1px solid #eef1f7;display:grid;place-items:center;font-size:11px}.cal-head{background:#f6f8fc;position:sticky;top:0;z-index:2;font-weight:700;color:#5a6a80}.cal-today{background:#e8f8f7!important;color:#007d71}.cal-weekend{background:#fafbfe}.calendar-book{z-index:2;position:absolute;top:calc((var(--row) - 1)*42px + 7px);left:calc(var(--left-width) + (var(--start) - 1)*var(--cell-width) + 2px);width:calc(var(--length)*var(--cell-width) - 4px);min-height:28px;border-radius:7px;padding:5px 7px;font-size:11px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 4px #1232;color:#fff;background:#4268d6;margin:2px 2px}.calendar-book.confirmed{background:#f2a23b;color:#51391f}.calendar-book.checked_in{background:#079684;color:#fff}.calendar-book.checked_out{background:#8e9ab0;color:white}.calendar-book.pending{background:#9175db;color:white}.calendar-book:hover{filter:brightness(.94);text-decoration:none}.legend{display:flex;gap:15px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.legend i{width:10px;height:10px;display:inline-block;border-radius:3px;margin-right:5px;background:#f2a23b}.legend i.active{background:#079684}.legend i.pending{background:#9175db}
.room-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.room-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;box-shadow:var(--shadow)}.room-card .room-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.room-card .occupant{border-top:1px dashed var(--line);padding-top:10px;margin-top:12px;font-size:12px}.room-card .room-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}.room-card .room-actions .btn{font-size:11px;padding:6px 8px}.room-card.ready{border-top:3px solid #11a788}.room-card.dirty{border-top:3px solid #ec9735}.room-card.maintenance{border-top:3px solid #df4d5c}.room-card.cleaning{border-top:3px solid #4c83eb}.room-card.inspection{border-top:3px solid #9481de}
.inbox{display:grid;grid-template-columns:295px minmax(0,1fr) 230px;min-height:600px;background:white;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}.thread-list{border-right:1px solid var(--line);max-height:75vh;overflow:auto}.thread{display:block;padding:16px;border-bottom:1px solid var(--line);color:var(--ink)}.thread.active,.thread:hover{background:#eef3ff;text-decoration:none}.thread b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-panel{min-width:0;display:flex;flex-direction:column;min-height:620px}.chat-head{display:flex;align-items:center;justify-content:space-between;padding:17px;border-bottom:1px solid var(--line)}.messages{background:linear-gradient(140deg,#f1f5f9,#eaf5f4);padding:18px;flex:1;overflow:auto;min-height:370px;max-height:560px}.bubble{max-width:78%;margin:10px 0;padding:10px 13px;border-radius:12px 12px 12px 3px;background:white;box-shadow:0 2px 6px #142b4012;font-size:13px;overflow-wrap:anywhere}.bubble.out{margin-left:auto;background:#d4f6e9;border-radius:12px 12px 3px 12px}.bubble small{display:block;text-align:right;margin-top:5px;font-size:10px}.chat-compose{padding:13px;border-top:1px solid var(--line);display:flex;gap:7px}.chat-compose textarea{flex:1;min-width:0;border:1px solid #dce4ee;border-radius:9px;min-height:53px;padding:9px;resize:vertical}.chat-side{padding:17px;border-left:1px solid var(--line)}.chat-side form{margin-top:16px}.chat-side .field{margin-bottom:10px}.message-note{padding:10px;background:#e9f4ff;color:#28558e;font-size:12px;border-radius:9px}.badge-count{background:#f0f4ff;border-radius:12px;padding:2px 7px;color:#3853a8;font-size:11px}.divider{height:1px;background:var(--line);margin:21px 0}.permissions .table{min-width:630px}.permissions th:not(:first-child),.permissions td:not(:first-child){text-align:center}.permissions input{width:17px;height:17px;accent-color:var(--blue)}.checkboxes{display:flex;flex-wrap:wrap;gap:9px 18px}.checkboxes label{display:flex;align-items:center;gap:7px;padding:6px 0;font-size:13px}.helper{font-size:11px;color:var(--muted);margin-top:6px}.login-wrap{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 80% 0,#334d82 0,transparent 44%),linear-gradient(120deg,#102038,#162f51)}.login-box{background:white;border-radius:22px;width:min(92vw,420px);padding:38px;box-shadow:0 30px 90px #0003}.login-box .brand{color:var(--ink);padding:0 0 24px}.login-box h1{margin-bottom:8px}.login-box .field{margin:15px 0}.login-box .btn{width:100%;margin-top:10px;padding:12px}.login-box .foot{font-size:11px;color:var(--muted);margin-top:26px;text-align:center}.hamburger{display:none}.mobile-overlay{display:none}.only-mobile{display:none}.footer{color:#8491a4;font-size:11px;text-align:right;padding:16px 30px}.kpi-summary{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:#5b6b7e}.metric{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:9px 0;border-bottom:1px solid #edf1f7}.metric b{font-size:15px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:17px}.tabs a{border:1px solid var(--line);border-radius:9px;padding:8px 12px;color:var(--ink)}.tabs a.active{background:var(--bluebg);color:var(--blue);border-color:#adbef8}.sticky-actions{position:sticky;bottom:10px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);padding:12px;border-radius:12px}
@media(max-width:1300px){.grid-4,.room-board{grid-template-columns:repeat(3,1fr)}.inbox{grid-template-columns:250px minmax(0,1fr)}.chat-side{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:18px;border-top:1px solid var(--line);border-left:0}.chat-side form{margin:0}}
@media(max-width:1024px){.shell{grid-template-columns:76px minmax(0,1fr)}.sidebar{padding:20px 7px}.sidebar .nav-link{justify-content:center}.sidebar .nav-link .nav-text,.side-label,.side-footer,.sidebar .brand-text{display:none}.brand{justify-content:center;padding:0 0 20px}.content{padding:22px}.grid-4,.grid-3,.room-board{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:repeat(2,1fr)}.span-3,.span-4{grid-column:span 2}.split{grid-template-columns:1fr}}
@media(max-width:670px){.shell{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:255px;transform:translateX(-110%);transition:transform .2s;z-index:200;height:100vh}.sidebar.open{transform:translateX(0)}.sidebar .nav-link{justify-content:flex-start}.sidebar .nav-link .nav-text,.sidebar .side-label,.sidebar .side-footer,.sidebar .brand-text{display:block}.sidebar .brand{justify-content:flex-start}.mobile-overlay.on{display:block;position:fixed;inset:0;background:#06152685;z-index:190}.hamburger{display:inline-flex;background:none;border:0;font-size:22px;color:var(--ink)}.topbar{padding:10px 16px;min-height:62px}.topbar .top-actions small{display:none}.content{padding:19px 13px}.page-head{align-items:start;flex-direction:column}.page-head h1{font-size:1.5rem}.grid-4,.grid-3,.grid-2,.room-board{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.span-2,.span-3,.span-4{grid-column:span 1}.card{padding:16px}.inbox{display:block}.thread-list{max-height:220px;overflow:auto}.chat-panel{min-height:480px}.chat-side{display:block}.bubble{max-width:92%}.footer{padding:14px;text-align:center}.head-actions{width:100%}.only-mobile{display:block}.calendar-grid{--left-width:125px;--cell-width:42px}.calendar-label{padding:6px;font-size:11px}}

/* ARATINGA 360 • Central multissetorial */
.chat-unread{float:right;min-width:21px;height:21px;display:inline-grid;place-items:center;padding:0 5px;background:#0a9a85;color:#fff;font-size:10px;font-weight:800;border-radius:100px}.media-note{margin-top:9px;border-top:1px solid #e3e8ee;padding-top:8px;font-size:12px}.media-note a{color:#1259b4;font-weight:700}.chat-pagination{padding:8px 15px;background:#fff;font-size:12px;border-bottom:1px solid #e7edf5}.chat-read-action{padding:8px 14px;border-top:1px solid #e7edf5;text-align:right}.thread small{display:block;margin-top:3px}.thread{position:relative}.chat-side{overflow-y:auto;max-height:900px}.chat-side h3{font-size:14px}.chat-side .btn{max-width:100%}.inbox{grid-template-columns:minmax(235px,285px) minmax(0,1fr) 265px}@media(max-width:1300px){.inbox{grid-template-columns:260px minmax(0,1fr)}.chat-side{max-height:none}}@media(max-width:670px){.inbox{display:block}.chat-side{max-height:none}.thread-list{max-height:230px}}


/* Aratinga 360 · atualização de identidade visual e notificações */
.sidebar .brand:hover{text-decoration:none}.sidebar-brand-logo{max-width:49px;max-height:45px;object-fit:contain;border-radius:10px;background:#fff;padding:4px}.nav-link{gap:11px;padding:8px 11px;min-height:43px;transition:background .18s,color .18s,transform .18s}.nav-link:hover{transform:translateX(2px)}.nav-symbol{width:35px;height:35px;flex-shrink:0;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--ic) 17%,transparent);color:var(--ic);border:1px solid color-mix(in srgb,var(--ic) 16%,transparent)}.nav-link.active .nav-symbol{background:color-mix(in srgb,var(--ic) 26%,transparent);color:#fff}.ico-dashboard{--ic:#76aaff}.ico-calendar{--ic:#b38aff}.ico-reservations{--ic:#f7be78}.ico-inbox{--ic:#5be0c1}.ico-room_ops{--ic:#f9a4a0}.ico-rooms{--ic:#91bfff}.ico-guests{--ic:#e6b4ff}.ico-restaurants{--ic:#ffc778}.ico-financial{--ic:#6bd6aa}.ico-reports{--ic:#8cb5f8}.ico-conversations_all{--ic:#e1acff}.ico-audit{--ic:#a2b4c9}.ico-branches{--ic:#f0c98b}.ico-roles{--ic:#aec0ee}.ico-users{--ic:#91e1d0}.ico-integrations{--ic:#f6abdb}.ico-settings{--ic:#aab8ff}.ico-password{--ic:#80ddd0}
.topbar-title{display:flex;gap:12px;align-items:center;min-width:0}.topbar-title b{display:block}.topbar-title small{display:block}.top-actions{position:relative}.avatar{text-decoration:none}.avatar:hover{text-decoration:none}.notification-wrap{position:relative}.notification-toggle{position:relative;display:grid;place-items:center;width:39px;height:39px;border-radius:12px;border:1px solid var(--line);color:var(--ink);background:#fff;cursor:pointer;transition:background .15s,transform .15s}.notification-toggle:hover{background:var(--bluebg);transform:translateY(-1px)}.notification-count{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;display:grid;place-items:center;border-radius:30px;border:2px solid #fff;background:#ee526d;color:#fff;font-size:10px;font-weight:800;padding:0 3px}.notification-count[hidden],.notification-menu[hidden]{display:none!important}.notification-menu{position:absolute;top:50px;right:-18px;width:min(380px,92vw);max-height:min(490px,78vh);overflow:hidden;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);box-shadow:0 16px 45px #12203327;border-radius:15px;z-index:95}.notification-menu-head{display:flex;align-items:center;justify-content:space-between;padding:17px;border-bottom:1px solid var(--line)}.notification-items{max-height:410px;overflow-y:auto}.notification-item{display:flex;width:100%;gap:11px;align-items:flex-start;text-align:left;border:0;border-bottom:1px solid #eef2f6;background:#fff;padding:13px 15px;cursor:pointer;color:var(--ink)}.notification-item:hover{background:#f5f7ff}.notification-item.unread{background:#f0f5ff}.notification-item .notification-symbol{width:32px;height:32px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:#e5f8f1;font-size:16px}.notification-item[data-source=stays] .notification-symbol{background:#f0ebff}.notification-item strong{font-size:12.5px;display:block}.notification-item small{display:block;margin-top:4px;font-size:11px}.notification-item time{display:block;font-size:10px;margin-top:6px;color:var(--muted)}.notification-empty{text-align:center;padding:24px 16px;color:var(--muted);font-size:12px}.notification-item .notification-dot{width:7px;height:7px;border-radius:50%;margin:5px 0 0 auto;flex-shrink:0;background:var(--blue)}
.theme-preview{border-radius:12px;display:flex;gap:12px;align-items:center;padding:14px;background:linear-gradient(110deg,var(--navy),var(--navy2));color:white;min-height:67px;font-weight:800}.theme-preview-logo{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--teal)}.theme-preview-button{margin-left:auto;background:var(--blue);border-radius:8px;padding:7px 12px;font-size:11px}.brand-preview{display:block;max-width:210px;max-height:80px;object-fit:contain;border:1px solid var(--line);border-radius:10px;margin-top:10px;padding:8px}.icon-preview{display:block;width:65px;height:65px;object-fit:contain;border:1px solid var(--line);border-radius:12px;margin-top:10px}.setting-checkbox{display:flex!important;flex-direction:row;align-items:center;gap:8px;margin:7px 0;font-weight:500!important}.setting-checkbox input{width:auto!important}.notification-switches{display:grid;gap:12px;margin-top:13px}.notification-switches label{padding:14px;border:1px solid var(--line);border-radius:12px;display:flex;gap:12px;align-items:center;cursor:pointer}.notification-switches input{height:18px;width:18px;accent-color:var(--blue)}.notification-switches small{display:block;margin-top:4px}
.access-overlay{position:fixed;inset:0;z-index:900;display:none;place-items:center;background:rgba(11,25,47,.84);backdrop-filter:blur(10px);color:#fff;padding:20px}.access-overlay.visible{display:grid}.access-panel{text-align:center;max-width:340px}.access-panel h2{color:#fff;font-size:20px;margin:21px 0 9px}.access-panel p{font-size:12px;color:#cddbef;line-height:1.5}.access-orbit{height:100px;width:100px;border:2px solid #75bbf566;border-top-color:#70f0d4;border-radius:50%;margin:auto;display:grid;place-items:center;animation:spin-access 1.15s linear infinite;box-shadow:0 0 45px #64dbd825}.access-orbit span{font-size:31px;animation:spin-access 1.15s linear reverse infinite;color:#86f5dc}.access-progress{width:240px;max-width:100%;height:5px;background:#425572;border-radius:20px;overflow:hidden;margin:22px auto 0}.access-progress i{display:block;width:50%;height:100%;background:linear-gradient(90deg,#61a6f4,#61efd0);border-radius:12px;animation:slide-access 1.4s ease-in-out infinite}@keyframes spin-access{to{transform:rotate(360deg)}}@keyframes slide-access{0%{transform:translateX(-105%)}100%{transform:translateX(310%)}}
.footer{text-align:center;padding:17px 25px;line-height:1.7;border-top:1px solid var(--line);background:#fff}.footer b{color:var(--ink)}
@media(max-width:1024px){.sidebar .nav-symbol{width:36px;height:36px}.sidebar .nav-link{justify-content:center;padding:7px}.top-role{display:none}}
@media(max-width:670px){.sidebar .nav-link{justify-content:flex-start;padding:8px 11px}.notification-menu{position:fixed;right:9px;left:9px;top:66px;width:auto}.top-actions{gap:7px}.top-exit{padding:5px 8px}.topbar-title small{max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.footer span{display:block}}
@media(prefers-reduced-motion:reduce){.access-orbit,.access-orbit span,.access-progress i{animation:none}.nav-link{transition:none}}

/* Tela de login: logo centralizada e em destaque, sem título duplicado. */
.login-box .brand.login-brand{display:flex;align-items:center;justify-content:center;gap:0;margin:0;padding:0 0 16px;min-height:132px}
.login-box .login-brand-logo{display:block;width:auto;height:auto;max-width:min(100%,190px);max-height:125px;object-fit:contain;border-radius:9px}
.login-box .login-eyebrow{text-align:center;margin:0 0 22px}
@media(max-width:450px){.login-box .brand.login-brand{min-height:118px}.login-box .login-brand-logo{max-width:160px;max-height:112px}}

/* Café Aratinga 360 — design system v0.4. Arquivo incorporado ao style.css no build. */
:root{--r:19px;--shadow:0 12px 35px rgba(26,34,45,.055);--bg:#f7f7f5;--card:#fff;--ink:#212b32;--muted:#77818a;--line:#e8e9e7;--gold:#c59a51;--gold2:#e9c27a}
html{scroll-behavior:smooth}body{background:radial-gradient(ellipse at 88% 0%,#f2e9d943,transparent 37%),#f7f8f7;color:var(--ink);font-size:14px}
::selection{background:#ead4a6;color:#25231d}
.sidebar{background:linear-gradient(180deg,var(--navy) 0%,color-mix(in srgb,var(--navy) 64%,var(--navy2)) 48%,var(--navy2) 100%);box-shadow:14px 0 48px #171b220b;border-right:1px solid #32353b;padding-top:27px}
.sidebar::before{content:"";position:absolute;left:0;right:0;top:0;height:160px;pointer-events:none;background:radial-gradient(ellipse at 30% -30%,#d6b16e2a,transparent 65%)}
.sidebar .brand{padding:5px 10px 24px;gap:12px;position:relative;z-index:1}.brand-text{font-size:13px;letter-spacing:.055em;font-weight:820}.brand-text>span{color:#e9c985!important}.sidebar-brand-logo{max-width:56px;max-height:54px;background:#292a2c;border:1px solid #a8874a40;padding:4px;border-radius:15px}
.brand-icon{background:linear-gradient(140deg,#dfb66c,#a86f2b);color:#171a1e;border-radius:14px}
.side-label{color:#8b979a;font-size:10px;margin-top:11px;letter-spacing:.19em}.nav-link{border-radius:13px;color:#b8c2c4;margin-bottom:3px;position:relative}.nav-link.active{background:linear-gradient(100deg,#ffffff15,#c3a16f19);color:#fff;box-shadow:inset 3px 0 0 #d8ac62}.nav-link:hover{background:#ffffff11;color:#f6eee1}.nav-symbol{border-radius:12px!important;background:color-mix(in srgb,var(--ic) 17%,transparent)}.nav-link.active .nav-symbol{color:var(--ic)!important;background:color-mix(in srgb,var(--ic) 22%,transparent)}
.side-footer{color:#9ba2a6;border-top:1px solid #ffffff18;line-height:1.9}
.main{background:transparent}.topbar{min-height:79px;background:#fffefefa;border-bottom:1px solid #e8ebea;box-shadow:0 2px 15px #26384405;backdrop-filter:blur(20px);padding-inline:clamp(17px,2.3vw,40px)}.topbar-title b{font-size:15px;letter-spacing:-.025em}.topbar-title small{font-size:11px;margin-top:4px;color:#8b9199}
.command-hint{display:flex;align-items:center;gap:9px;min-width:135px;padding:9px 10px;color:#767f88;background:#f7f8f7;border:1px solid #eaebe8;border-radius:11px;cursor:pointer}.command-hint>span{font-size:19px;line-height:1}.command-hint kbd{font-family:inherit;font-size:10px;padding:3px 5px;border-radius:5px;background:white;border:1px solid #e3e5e2;margin-left:auto}.connection-indicator{font-size:11px;color:#687c72;display:flex;align-items:center;gap:7px;font-weight:680;white-space:nowrap}.connection-indicator i,.hero-kicker i{display:inline-block;width:8px;height:8px;background:#27b583;border-radius:50%;box-shadow:0 0 0 4px #36b98c1a}
.top-role{border-radius:99px;padding:7px 10px;background:#f5f3ee;color:#88754f;font-size:11px;font-weight:740}.avatar{border:1px solid #e9d7b5;background:linear-gradient(145deg,#f8e8c5,#ead4a5);color:#785825}.notification-toggle{border-radius:12px}.content{max-width:1800px;padding:28px clamp(17px,2.3vw,40px) 54px}.page-head{margin-bottom:24px;align-items:center}.page-head h1{font-size:clamp(21px,2.2vw,30px);letter-spacing:-.06rem}.eyebrow{color:var(--blue);font-size:10px;letter-spacing:.14em}.page-head p{font-size:13px;max-width:680px}.btn{border-radius:11px;transition:transform .17s,box-shadow .17s,background .17s,border-color .17s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 5px 15px color-mix(in srgb,var(--blue) 19%,transparent)}.btn.primary:hover{background:color-mix(in srgb,var(--blue) 88%,#161616)}
.card,.calendar-box{border-radius:19px;border:1px solid var(--line);box-shadow:var(--shadow)}.card{padding:23px}.section-head h2,.section-head h3{font-weight:750;letter-spacing:-.025em}.stat{overflow:hidden;min-height:155px;gap:8px}.stat::after{content:"";position:absolute;height:115px;width:115px;right:-56px;top:-52px;background:var(--bluebg);border-radius:100%;opacity:.5}.stat-ico{background:var(--bluebg)!important}.stat .num{font-size:33px;color:#202832}.stat .desc{font-size:11px}.quick-link{border-radius:14px;box-shadow:0 3px 13px #19252f05;transition:all .22s ease}.quick-link:hover{border-color:#dcc6a4;transform:translateY(-3px);box-shadow:0 12px 25px #61523810}.quick-icon{border-radius:12px;background:#f6ede0}
.hero-command{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,.75fr);position:relative;overflow:hidden;min-height:272px;padding:36px clamp(25px,3vw,47px);margin-bottom:17px;border-radius:25px;background:linear-gradient(117deg,#171b20 5%,#262b31 65%,#423c31 140%);box-shadow:0 17px 36px #2425211b;color:#fff}.hero-command::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 86% 3%,#f3c46c24,transparent 54%),repeating-linear-gradient(128deg,transparent 0,transparent 70px,#ffffff03 72px,transparent 73px)}.hero-command::after{content:"";position:absolute;width:400px;height:400px;border:1px solid #d9ae6024;border-radius:50%;right:-160px;top:-210px;box-shadow:0 0 0 52px #d9ae6007,0 0 0 107px #d9ae6005;pointer-events:none}.hero-copy,.hero-pulse{z-index:1;position:relative}.hero-kicker{display:flex;align-items:center;gap:11px;font-size:10px;letter-spacing:.17em;font-weight:740;color:#ebcb91}.hero-kicker i{height:7px;width:7px;background:#e1bb72;box-shadow:0 0 0 4px #d6b16e24}.hero-copy h2{color:#fff;font-size:clamp(27px,2.8vw,45px);line-height:1.09;font-weight:780;letter-spacing:-.052em;margin:20px 0 12px}.hero-copy h2 em{font-style:normal;color:#e7c47e}.hero-copy p{max-width:530px;color:#c8cccd;line-height:1.65;font-size:13px}.hero-ctas{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:21px}.btn.hero-primary{background:linear-gradient(108deg,#deb873,#af8035);border:0;color:#181c20;padding:12px 18px}.btn.hero-primary:hover{background:#f0c87e}.btn.hero-outline{background:#ffffff0a;color:#f4eee6;border-color:#ffffff36;padding:11px 16px}.hero-pulse{display:grid;align-content:center;justify-items:center}.pulse-circle{height:168px;width:168px;border:1px solid #d6ab6172;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 15px #dda74a0a,0 0 0 32px #e8bc5b05;background:radial-gradient(circle,#c89a424d,#ffffff02 65%)}.pulse-core{font-size:55px;font-weight:850;letter-spacing:-.07em;color:#e6c580;line-height:1;text-align:center}.pulse-core small{display:block;font-size:10px;letter-spacing:.22em;color:#d1c1a4;margin-top:5px}.pulse-metric{margin-top:19px;display:flex;gap:9px;align-items:center;color:#ece3d3}.pulse-metric b{font-size:22px}.pulse-metric small{font-size:11px;color:#c8c0b3}
.pulse-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:14px 0 6px}.pulse-stat{display:flex;align-items:center;gap:14px;padding:20px 18px;border:1px solid var(--line);border-radius:17px;background:white;min-width:0;color:var(--ink);box-shadow:0 5px 18px #222b3308;transition:all .18s}.pulse-stat:hover{transform:translateY(-3px);border-color:#e0bc82;text-decoration:none;box-shadow:0 12px 30px #26334412}.pulse-symbol{height:44px;width:44px;min-width:44px;display:grid;place-items:center;border-radius:13px;background:#eef6f1;color:#289677;font-weight:850;font-size:24px}.pulse-symbol.alert{background:#fff0ec;color:#cf7051}.pulse-symbol.clock{background:#eef3ff;color:#6784d8}.pulse-symbol.connect{background:#f7f0e4;color:#b78842}.pulse-stat strong{font-size:25px;display:block;letter-spacing:-.045em;line-height:1.2}.pulse-stat small{font-size:11px;color:#7a848d}.pulse-arrow{font-size:14px;margin-left:auto;color:#a0a6a6}.pulse-footnote{margin:0 0 19px;text-align:right;font-size:10px}
.inbox{gap:0;min-height:min(75vh,780px);background:#fff;border:1px solid var(--line);border-radius:19px;overflow:hidden;box-shadow:var(--shadow)}.thread-list{background:#fafbf9;border-right:1px solid #e9ecea}.thread{border-left:3px solid transparent;transition:background .16s}.thread:hover{background:#f4f5f1}.thread.active{border-left-color:var(--blue);background:#f8f4ec}.thread-priority{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#c4cdd0}.thread-priority.high{background:#efa13e}.thread-priority.urgent{background:#e76161;box-shadow:0 0 0 4px #e761611c}.chat-panel{background:#fff}.chat-head{background:#ffffff;border-bottom:1px solid #edeae4;padding:19px 23px}.messages{background:radial-gradient(ellipse at 90% 0,#eee4d954,transparent 40%),linear-gradient(#fbfaf8,#f9faf9)}.bubble{border-radius:16px 16px 16px 3px;box-shadow:0 4px 17px #22262a0a}.bubble.out{border-radius:16px 16px 3px 16px;background:#e8f3ed}.chat-compose{background:#fff;border-top:1px solid #e9ebe7}.chat-compose textarea{border-radius:13px}.chat-side{background:#fdfdfa;border-left:1px solid #efefec}.chat-policy{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:9px 17px;border-bottom:1px solid #e5ede6;font-size:11px;font-weight:650;background:#f0f8f2;color:#21764d}.chat-policy.closed{background:#fff5e6;border-color:#f4dec0;color:#a16c25}.template-panel{border-top:1px solid #e8e8e3;background:#fffdf9;padding:14px;display:flex;flex-direction:column;gap:12px}.template-panel>div>b{display:block;font-size:12px}.template-panel>div>small{display:block;font-size:11px;margin-top:5px}.template-form{display:grid;grid-template-columns:minmax(0,1fr) 75px auto;gap:8px}.template-form input{min-width:0;border:1px solid #dfe3e2;background:#fff;border-radius:9px;padding:9px;font-size:12px}.template-form .btn{font-size:11px}.priority-form{display:flex;gap:8px;flex-wrap:wrap;align-items:end;margin-top:10px}.priority-form .field{flex:1;min-width:100px}.priority-badge{padding:5px 9px;font-size:11px;border-radius:99px;background:#e9efed;color:#50645a;font-weight:750}.priority-badge.high{background:#fff1d8;color:#93641e}.priority-badge.urgent{background:#ffebeb;color:#b63737}.provider-banner{background:linear-gradient(110deg,#242620,#463e2d);border:1px solid #c5a16665;color:#fff;border-radius:15px;padding:16px}.provider-banner b{color:#efd08b;font-size:12px;letter-spacing:.05em}.provider-banner small{display:block;color:#e7e0d2;font-size:11px;margin-top:7px;line-height:1.6}
.login-wrap{background:radial-gradient(ellipse at 70% 15%,#af8a4864,transparent 47%),linear-gradient(125deg,#171b21,#2b3035 60%,#29231d)}.login-box{box-shadow:0 22px 66px #05080d30;border-radius:23px}.login-box .login-brand-logo{max-width:min(100%,210px);max-height:140px}.login-eyebrow{color:#ae8045!important;letter-spacing:.13em}.secure-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2cb77f;margin-right:5px;box-shadow:0 0 0 4px #2cb77f20}
.command-modal[hidden]{display:none!important}.command-modal{position:fixed;inset:0;z-index:999;display:flex;align-items:flex-start;justify-content:center;padding:14vh 15px 20px;background:#151b21b8;backdrop-filter:blur(9px)}.command-inner{width:min(600px,100%);background:#fff;border-radius:20px;box-shadow:0 34px 90px #0005;overflow:hidden;border:1px solid #deddda}.command-top{display:flex;align-items:center;gap:12px;padding:16px 19px;border-bottom:1px solid #eceeeb}.command-top>span{font-size:24px;color:#b98b41}.command-top input{background:transparent;border:0;outline:none;min-width:0;flex:1;font-size:16px;color:#262d33}.command-top kbd{font-size:11px;background:#f3f5f3;border:1px solid #e4e8e3;padding:4px 7px;border-radius:6px}.command-results{max-height:360px;overflow:auto;padding:10px}.command-entry{display:flex;justify-content:space-between;align-items:center;padding:11px 15px;border-radius:11px;font-size:13px;color:#3d4650}.command-entry:hover,.command-entry.chosen{background:#f7efdf;color:#74501c;text-decoration:none}.command-empty{color:var(--muted);text-align:center;padding:20px}.command-foot{display:block;border-top:1px solid #eef0ec;padding:10px 16px;font-size:11px;color:#9b9fa3}
@media(max-width:1320px){.pulse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.connection-indicator{display:none}}
@media(max-width:980px){.hero-command{grid-template-columns:1fr}.hero-pulse{display:none}.command-hint{min-width:0}.command-hint small,.command-hint kbd{display:none}.pulse-grid{gap:9px}.content{padding:20px 19px 42px}}
@media(max-width:670px){.hero-command{padding:25px 22px;min-height:260px}.hero-copy h2{font-size:29px}.pulse-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pulse-stat{padding:13px 11px;gap:8px}.pulse-stat strong{font-size:23px}.pulse-stat small{font-size:10px}.pulse-symbol{width:33px;height:33px;min-width:33px;font-size:17px}.pulse-arrow{display:none}.hero-ctas .btn{white-space:normal}.command-hint{padding:7px}.template-form{grid-template-columns:1fr 70px}.template-form .btn{grid-column:span 2}.chat-policy{align-items:flex-start;flex-direction:column}.sidebar .brand-text{font-size:12px}.page-head h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){.pulse-stat,.quick-link,.btn{transition:none!important;transform:none!important}}

/* Café Aratinga 360 v0.4.2: estado de salvamento das integrações */
#whatsapp-channel {scroll-margin-top:104px;}
.channel-saved-status{display:flex;flex-direction:column;gap:6px;margin:13px 0 17px;padding:14px 16px;border-radius:13px;border:1px solid #bde7d9;background:#f1fbf6;color:#2a5544;font-size:12px;line-height:1.5}
.channel-saved-status>b{font-size:13px;color:#1f6c52}
.channel-saved-status>span{overflow-wrap:anywhere}
.channel-saved-status>small{color:#52645e;font-size:11px}

/* Café Aratinga 360 v0.5 · Templates Datafy */
.template-manager{display:flex;flex-direction:column;gap:17px}
.template-manager .template-toolbar{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap;background:linear-gradient(125deg,#fff,#fff9ee);border-color:#e9ddc9}
.template-manager .template-toolbar .info-line{flex:1}.template-manager .template-toolbar .field{min-width:240px}.template-manager .template-toolbar .inline-form{display:flex;align-items:center}
.template-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.template-kpi{position:relative;overflow:hidden;min-height:120px;background:#fff;border:1px solid var(--line);box-shadow:0 6px 25px #17213609;padding:18px 20px;border-radius:17px}
.template-kpi::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:#d8bd85}
.template-kpi small{display:block;font-weight:750;font-size:11px;color:#717c87;text-transform:uppercase;letter-spacing:.07em}
.template-kpi strong{display:block;font-size:33px;letter-spacing:-.05em;margin:4px 0 2px;line-height:1.1;color:#29303a}
.template-kpi span{font-size:11px;color:#78818b}.template-kpi.approved::before{background:#17a982}.template-kpi.pending::before{background:#e8aa42}.template-kpi.rejected::before{background:#dd6470}.template-kpi.paused::before{background:#94a0b0}
.template-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:17px;align-items:start}.template-create-card{border-top:3px solid #bf974c}.template-list-card{border-top:3px solid #20a383}
.template-create-card .field textarea{min-height:130px;line-height:1.5}.template-variable-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.template-var-field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:650;color:#4c5a6d}
.template-var-field input{width:100%;min-width:0;border:1px solid #d7dfeb;border-radius:9px;background:#fff;padding:11px;color:var(--ink)}
.template-var-field input:focus{outline:2px solid #b0dfd1;outline-offset:0;border-color:#21a785}
.template-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:7px}.template-buttons input{width:100%;min-width:0;border-radius:9px;border:1px solid #d7dfeb;background:#fff;padding:10px 11px}
.template-live-preview{border-radius:14px;background:linear-gradient(140deg,#ecf5ee,#f9faf5);border:1px solid #d5e7dc;padding:16px 17px;margin-top:15px;line-height:1.65;color:#234d3b;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.template-live-preview b{display:block;color:#2c7558;letter-spacing:.02em;margin-bottom:8px}
.template-items{display:flex;flex-direction:column;gap:12px;max-height:790px;overflow:auto;padding-right:3px}
.template-item{background:#fbfcfc;border:1px solid #e6eae9;border-radius:14px;padding:15px;transition:border-color .15s,box-shadow .15s}
.template-item:hover{border-color:#b4d9d1;box-shadow:0 8px 24px #2139310a}
.template-item-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.template-item-top strong{font-size:13px;display:block;color:#202e33;overflow-wrap:anywhere}.template-item-top small{font-size:10px;display:block;margin-top:4px}
.template-item p{white-space:pre-wrap;color:#48545f;line-height:1.6;font-size:12px;border-top:1px solid #eaecea;margin-top:12px;padding-top:12px;overflow-wrap:anywhere}
.template-status{padding:5px 10px;border-radius:99px;font-size:10px;font-weight:800;white-space:nowrap}
.template-status.approved{color:#0c8163;background:#dcf7e9}.template-status.pending{color:#aa6a16;background:#fff0d7}.template-status.rejected{color:#b73c4e;background:#ffe6e9}.template-status.paused{color:#697688;background:#e8edf4}
.template-item-foot{display:flex;flex-direction:column;gap:5px;padding-top:6px}.template-item-foot small{font-size:10px;overflow-wrap:anywhere}.template-ok{color:#0e886a!important;font-weight:680}
.template-send-form{display:flex;flex-direction:column;gap:11px}.template-send-form .field{width:100%}.template-send-form .field select{width:100%}.template-send-form .btn{white-space:normal;width:100%;font-size:12px;min-height:40px}
.template-send-form .template-variable-grid{grid-template-columns:1fr 1fr}.template-send-form .template-live-preview{margin-top:0}
.template-empty{font-size:12px;padding:12px 4px;text-align:left}.template-list-card .notice.error{font-size:11px;margin-bottom:9px}
@media(max-width:1200px){.template-kpi-grid{grid-template-columns:repeat(2,1fr)}.template-layout{grid-template-columns:1fr}}
@media(max-width:650px){.template-kpi-grid{gap:8px}.template-kpi{padding:13px;min-height:110px}.template-kpi strong{font-size:26px}.template-variable-grid,.template-send-form .template-variable-grid{grid-template-columns:1fr}.template-buttons{grid-template-columns:1fr}.template-manager .template-toolbar{align-items:stretch}.template-manager .template-toolbar .info-line{width:100%}}

/* v0.5.1 — identificação visível do operador no WhatsApp do cliente */
.chat-agent-identity{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;padding:9px 15px 12px;background:#f4faf7;border-top:1px solid #dbeee5;color:#325b4b;font-size:12px}
.chat-agent-identity b{color:#146b4d;font-weight:750}
.chat-agent-identity span:last-child{color:#68847a;font-size:11px}
@media(max-width:680px){.chat-agent-identity{font-size:11px;padding:8px 11px}}

/* Café Aratinga 360 v0.5.2 — mídias abertas diretamente na Central de Atendimento */
.chat-media-card{margin:10px 0 6px;padding:9px;border-radius:13px;max-width:340px;background:rgba(255,255,255,.76);border:1px solid #dce7e0;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.bubble.in .chat-media-card{border-color:#e0e7eb;background:#f9fbfc}
.chat-media-status{margin-top:8px;padding:9px 11px;border:1px dashed #c5d1d8;border-radius:10px;color:#6b7883;font-size:11px;line-height:1.4}
.chat-media-photo{display:block;cursor:zoom-in;border:0;background:transparent;margin:0;padding:0;border-radius:10px;max-width:100%;overflow:hidden}
.chat-media-photo img{display:block;max-height:270px;max-width:100%;width:auto;border-radius:10px;object-fit:contain}
.chat-media-photo:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.chat-media-heading{font-size:12px;color:#325947;font-weight:700}
.chat-media-card audio{display:block;width:min(100%,320px);height:45px}
.chat-media-card video{display:block;width:min(100%,330px);max-height:290px;border-radius:10px;background:#111}
.chat-media-download{font-size:11px;font-weight:700;color:#167363;text-decoration:none;padding:3px 0}
.chat-media-download:hover{text-decoration:underline}
.chat-media-lightbox{border:0;border-radius:17px;background:#11161a;box-shadow:0 22px 80px #0009;color:white;max-width:96vw;max-height:96vh;padding:15px;text-align:center;overflow:auto}
.chat-media-lightbox::backdrop{background:#081018d9;backdrop-filter:blur(4px)}
.chat-media-lightbox img{display:block;max-width:90vw;max-height:77vh;margin:14px auto;object-fit:contain}
.chat-media-lightbox-close{display:block;margin-left:auto;background:#272e35;border:1px solid #77828b;color:#fff;padding:9px 12px;border-radius:8px;cursor:pointer}
.chat-media-lightbox-caption{margin:4px 0 0;font-size:12px;color:#c3c9cd;overflow-wrap:anywhere}
.audit-media-preview{white-space:normal;margin:8px 0;max-width:350px}
@media(max-width:670px){.chat-media-card{max-width:100%}.chat-media-card audio{width:100%}.chat-media-lightbox img{max-width:86vw}}
