:root{--green:#073f39;--deep:#0d2925;--gold:#c4a36c;--paper:#faf9f5;--line:#e7e4dc;--muted:#687773;--shadow:0 8px 25px #123a2610}*{box-sizing:border-box}body{margin:0;font:14px system-ui,-apple-system,'Segoe UI',sans-serif;color:#163d37;background:var(--paper)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);padding:10px 16px;border-radius:6px;background:#fff;color:inherit;transition:.15s}button:hover{background:#f2ece0}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#126255}.gold{background:linear-gradient(120deg,#d9bf8e,#c8a976);color:#253b32;border:0}.muted,small{color:var(--muted)}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.7px}h2{font-size:20px}h3{font-size:16px}p{line-height:1.6}.top{height:78px;background:linear-gradient(110deg,#093c37,#102d29);display:flex;align-items:center;padding:12px 26px;color:#f5efdc;gap:26px;border-bottom:1px solid #c9a96555}.brand{font-family:Georgia,serif;font-size:32px;font-weight:bold;color:#eadab6;text-decoration:none;white-space:nowrap;letter-spacing:-1px}.brand b{color:#c6a062}.brand:before{content:'⌁';display:block;font-size:34px;line-height:10px;text-align:center;color:var(--gold)}.top .subbrand{border-left:1px solid #bca47066;padding-left:24px;font-size:15px}.top .environment{margin-left:auto;font-size:10px;letter-spacing:2px;color:#ddcda8}.workspace{display:grid;grid-template-columns:190px 1fr;min-height:calc(100vh - 78px)}.sidebar{background:linear-gradient(160deg,#073f39,#082b27);color:#e3ece8;padding:30px 14px;display:flex;flex-direction:column;gap:9px;position:relative;overflow:hidden}.sidebar:after{content:'';position:absolute;bottom:-80px;left:-90px;width:350px;height:200px;transform:rotate(25deg);background:#c3a25f10;border:25px solid #52776719;pointer-events:none}.sidebar .brand{font-size:23px;margin:0 9px 26px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{background:none;border:1px solid transparent;color:#e1ebe6;text-align:left;padding:12px 14px;display:flex;align-items:center;gap:14px;font-size:14px}.nav button.active{background:#d8c68d19;border-left-color:#d8b974;color:#e4d099}.nav button:hover{background:#ffffff0b}.nav svg{width:21px;height:21px;flex-shrink:0}.divider{border-top:1px solid #ffffff22;margin:22px 10px 12px}.sidebar .foot{margin-top:auto;font-size:11px;padding:35px 10px 0;z-index:1;color:#9bb2a8}.main{padding:25px 30px 30px;min-width:0}.utility{display:flex;align-items:center;gap:14px;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:26px}.utility .tools{display:flex;align-items:center;gap:15px}.utility input{width:230px;padding:9px;border:1px solid var(--line);border-radius:6px;background:#fff}.avatar{border-radius:50%;background:#0c4b42;color:#fff;display:inline-grid;place-items:center;width:34px;height:34px}.intro{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:0 0 24px}.intro p{margin-top:6px;font-size:13px;color:var(--muted)}.badge{font-size:11px;border-radius:4px;padding:5px 9px;background:#eee3cc;color:#735727;white-space:nowrap}.badge.green{background:#e1efe4;color:#246246}.badge.red{background:#f7e1de;color:#8b3930}.panel{background:white;border:1px solid var(--line);border-radius:9px;padding:22px;box-shadow:var(--shadow)}.grid2{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.grid3{display:grid;grid-template-columns:1fr 1.25fr .66fr;gap:20px}.row{display:flex;gap:12px;align-items:center}.between{justify-content:space-between}.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.tabs button{padding:9px 18px;background:#fafaf8}.tabs button.active{background:var(--green);color:#fff}.list{display:flex;flex-direction:column;gap:5px}.list button{text-align:left;border:0;border-bottom:1px solid #eeece6;display:flex;gap:16px;align-items:center;padding:16px 12px}.list button.selected{background:linear-gradient(100deg,#f4ead3,#fffaf0)}.list button small{display:block;margin-top:6px}.list .time{margin-left:auto;font-size:12px}.detail{display:flex;flex-direction:column;gap:18px}.detail .primary{width:100%}.notice{padding:15px;background:#f5efe2;border:1px solid #e9dfca;border-radius:6px;font-size:12px;line-height:1.65}.subpanel{background:#fbfaf7;padding:18px;border:1px solid var(--line);border-radius:7px}.steps{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:24px;gap:10px}.steps span{font-size:11px}.steps b{display:block;width:26px;height:26px;border-radius:50%;background:#e5ece6;text-align:center;line-height:26px;margin-bottom:5px}.steps .current b{background:var(--green);color:#fff}.calendar-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:16px 0}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.calendar span{font-size:11px;text-align:center;padding:6px}.calendar button{padding:10px 3px;border:0;background:#f1f5f0;border-radius:3px}.calendar button.active{background:var(--green);color:white}.calendar button.booked{box-shadow:inset 0 -3px var(--gold)}.slots{display:flex;flex-direction:column;gap:10px;margin-top:18px}.slots button{display:flex;justify-content:space-between}.slots button.active{background:var(--green);color:white}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;margin:14px 0}.field input,.field select,.field textarea{padding:10px;border:1px solid var(--line);border-radius:5px;width:100%;background:white}.confirmation{margin-top:22px;display:flex;justify-content:space-between;align-items:center;gap:16px}.recordings{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.recording{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.recording .info{padding:17px}.recording h3{margin-bottom:9px}.recording small{display:block;margin-bottom:8px}.recording button{width:100%;margin-top:14px}.thumb{height:170px;background:#073b36;padding:12px;position:relative;overflow:hidden}.thumb .duration{position:absolute;bottom:17px;right:14px;background:#142b2ddd;color:white;font-size:10px;padding:4px}.mini-map{background:#f8f7f2;border-radius:3px;padding:10px;height:100%;color:#17483d;overflow:hidden}.mini-map h3{font-size:9px}.mini-bars{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:12px}.mini-bars i{height:12px;background:#b9dfc4;border-radius:2px}.mini-bars i:nth-child(3n){background:#9ec9e7}.mini-bars i:nth-child(4n){background:#ecd187}.empty{padding:45px;text-align:center;color:var(--muted)}.room-mode{background:radial-gradient(ellipse at bottom,#16443c,#0c2522);color:#e3ebe5;min-height:100vh}.room-mode .top{border:0;height:82px;background:transparent}.room-mode .workspace{min-height:calc(100vh - 82px)}.room-mode .sidebar{background:#092c2588;border-right:1px solid #a4b79d14;padding-top:30px}.room-mode .main{padding:5px 18px 15px 12px;display:flex;flex-direction:column}.room-mode .intro,.room-mode .utility{display:none}.participants{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}.participant{height:185px;border-radius:8px;position:relative;overflow:hidden;background:linear-gradient(140deg,#477469,#1b4037);border:1px solid #7c9f8566}.participant.speaking{outline:2px solid #62b78b}.participant .photo{position:absolute;inset:0;background-image:url('/assets/referencia-sala.png');background-size:450% 450%;background-position:16% 12%}.participant:nth-child(2) .photo{background-position:45% 12%}.participant:nth-child(3) .photo{background-position:73% 12%}.participant:nth-child(4) .photo{background-position:100% 12%}.participant .name{position:absolute;bottom:8px;left:8px;padding:5px 8px;border-radius:4px;background:#092821ba;font-size:12px;color:white}.participant .initial{display:grid;place-items:center;height:100%;font-size:34px;color:#d3c399}.room-layout{display:grid;grid-template-columns:minmax(450px,1fr) 290px;gap:12px;flex:1}.screen{padding:18px 20px;background:#f6f4ec;border:8px solid #e9e7dc;border-radius:10px;color:#163b35;min-height:365px}.share-label{font-size:11px;display:inline-block;background:#17684e;color:white;padding:5px 9px;border-radius:4px;margin:-12px 0 16px -8px}.reservation-map{margin-top:18px;border:1px solid #e5e2d9;border-radius:7px;overflow:hidden}.map-row{display:grid;grid-template-columns:120px repeat(7,1fr);height:48px;border-bottom:1px solid #e7e5de;position:relative;align-items:center}.map-row>span{font-size:11px;padding-left:12px}.map-row .cell{height:100%;border-left:1px solid #e8e5dc}.bar{position:absolute;height:26px;left:22%;width:38%;background:#b5dcb6;border-radius:4px;font-size:10px;text-align:center;line-height:26px}.map-row:nth-child(3n) .bar{left:36%;width:53%;background:#a7cfe7}.map-row:nth-child(4n) .bar{left:32%;background:#e9b6b4}.map-row:nth-child(5n) .bar{left:18%;width:72%;background:#f2d991}.chat-panel{display:flex;flex-direction:column;background:#091e1edd;border:1px solid #59706544;border-radius:9px;padding:17px}.chat-panel h3{border-bottom:1px solid #ffffff12;padding-bottom:19px}.messages{flex:1;min-height:220px;max-height:390px;overflow:auto;padding:16px 0}.chat-message{display:flex;gap:10px;margin-bottom:18px}.chat-message .avatar{flex-shrink:0;background:#c5a15d;width:30px;height:30px;font-size:12px}.chat-message:nth-child(2) .avatar{background:#8889de}.chat-message p{background:#25383b;padding:10px;border-radius:7px;font-size:12px;margin-top:6px;color:#dfe9e8}.chat-message small{color:#a8b9b2;font-size:10px}.chat-panel form{display:flex;gap:5px}.chat-panel input{width:100%;min-width:0;background:none;border:1px solid #ffffff30;border-radius:6px;color:white;padding:12px;font-size:12px}.chat-panel button{background:#12332e;color:white;border:1px solid #ffffff30;padding:8px}.dock{margin:12px auto 0;display:flex;gap:17px;align-items:center;padding:8px 35px;border:1px solid #78908033;background:#21403b88;border-radius:50px;box-shadow:0 5px 30px #0003}.dock button{border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:4px;color:#d6e3dc;font-size:10px;min-width:54px}.dock button .circle{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#0c2b27}.dock button.on .circle{background:#4cbf6b;color:white}.dock button.danger .circle{background:#e84d48;width:70px}.dock svg{width:21px;height:21px}.room-caption{text-align:center;font-size:10px;color:#99b3a6;margin:9px}.record-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#e2b75e;margin-right:7px}.top .room-title{font-size:18px;font-weight:bold}.top small{display:block;margin-top:5px;color:#c3c9b9}.room-state{margin-left:auto;font-size:12px;color:#d2cbaa}.room-state select{background:#14352f;color:#dedbc7;border:1px solid #6c7e6544;padding:7px;border-radius:5px}.status-strip{padding:9px 14px;background:#ecf0e8;border:1px solid #dbe4d9;border-radius:5px;font-size:12px;margin-bottom:16px}.room-mode .status-strip{background:#31554855;color:#dacb9d;border-color:#d3bc771f;margin:0 0 9px}dialog{border:1px solid var(--line);border-radius:10px;padding:28px;width:min(500px,90vw);color:#173f37;background:#faf9f5;box-shadow:0 20px 100px #001b2d44}dialog::backdrop{background:#051e2788}dialog p{margin:15px 0}#meetingToast{position:fixed;bottom:22px;right:22px;padding:15px 22px;background:#c6a76c;color:#102e25;box-shadow:var(--shadow);z-index:10;border-radius:7px;display:none;max-width:380px}.mobile-menu{display:none}.calendar button.blank{background:transparent;pointer-events:none}.external-link{font-size:11px;color:var(--green)}@media(min-width:1500px){.participant{height:215px}.screen{min-height:430px}}@media(max-width:1100px){.grid3{grid-template-columns:1fr 1fr}.grid3>.detail{grid-column:1/-1}.room-layout{grid-template-columns:1fr 245px}.participant{height:140px}.workspace{grid-template-columns:160px 1fr}.sidebar{padding:24px 7px}.sidebar .brand{font-size:20px}.main{padding:20px}.recordings{gap:12px}.dock{gap:8px}.top .subbrand{display:none}}@media(max-width:760px){.top{padding:15px;gap:12px;height:70px}.top .brand{font-size:26px}.top .environment{font-size:8px;letter-spacing:1px}.workspace{grid-template-columns:1fr}.sidebar{display:none}.main{padding:18px 14px}.mobile-menu{display:flex;gap:5px;overflow:auto;padding:9px;background:#0d3931}.mobile-menu button{background:transparent;color:#eee2c6;border:0;white-space:nowrap;font-size:12px;padding:9px}.mobile-menu button.active{background:#ffffff14}.utility .tools input{display:none}.utility{gap:5px}.utility .tools small{display:none}.intro{align-items:flex-start}.intro h1{font-size:23px}.intro>.badge{max-width:115px;white-space:normal}.grid2,.grid3{grid-template-columns:1fr}.recordings{grid-template-columns:1fr}.thumb{height:200px}.participants{grid-template-columns:repeat(2,1fr)}.participant{height:130px}.room-mode .top .brand{font-size:19px}.room-title{max-width:210px}.top .room-title{font-size:12px}.top small{font-size:10px}.room-state{max-width:140px;font-size:10px}.room-state select{max-width:130px;font-size:10px}.room-layout{grid-template-columns:1fr}.screen{min-height:320px;padding:12px 8px;border-width:5px;overflow:auto}.reservation-map{min-width:420px}.screen h2{font-size:18px}.chat-panel{min-height:200px}.messages{max-height:180px;min-height:100px}.dock{position:sticky;bottom:8px;gap:9px;padding:10px 12px;max-width:100%;overflow:auto;justify-content:flex-start;border-radius:28px;background:#173e36f5}.dock button{min-width:45px;font-size:8px}.dock button .circle{width:35px;height:35px}.dock button.danger .circle{width:49px}.confirmation{flex-wrap:wrap}.steps{gap:5px}.steps span{font-size:10px}.room-mode .main{padding:8px}.map-row{grid-template-columns:90px repeat(7,1fr)}.room-mode .top{height:80px;padding:10px}.room-mode .mobile-menu{display:flex}.tabs button{font-size:12px}}

.room-layout.chat-closed{grid-template-columns:1fr}.brand{display:block;width:185px;height:62px;background-image:url('/meetings-assets/reference.png');background-size:1421px 889px;background-position:-18px -13px;color:transparent;font-size:0;flex-shrink:0}.brand b,.brand:before{display:none}.sidebar .brand{width:145px;height:46px;background-size:1113px 696px;background-position:-13px -10px}.top .brand{font-size:0}.sidebar .brand{font-size:0}@media(max-width:760px){.top .brand,.room-mode .top .brand{width:125px;height:45px;background-size:970px 607px;background-position:-12px -9px;font-size:0}}
svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}.list button>svg{width:24px;height:24px}.primary svg{margin-right:7px}.room-layout{align-items:stretch}.list .time{min-width:92px;text-align:right}
@media(min-width:1000px){.room-mode .participant{height:160px}.room-mode .map-row{height:42px}.room-mode .dock{position:sticky;bottom:8px}.room-mode .screen{min-height:390px}.room-mode .main{padding-bottom:8px}}

.access-panel { max-width: 460px; margin: 5vh auto; }
.access-panel .field { margin: 1rem 0; }
.access-panel #loginMessage { margin-top: 0.75rem; }

.room-content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.room-mode .top .brand {
  display: flex;
  align-items: center;
  background: none;
  font: 700 clamp(22px, 2.5vw, 34px) Georgia, serif;
}
.room-content [hidden] { display: none !important; }
.room-content .participants {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: 34vh;
  overflow: auto;
  padding: 2px;
}
.room-content .participant { height: auto; aspect-ratio: 2.65 / 1; min-height: 93px; }
.room-content .participant video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-content .participant video.camera-off { opacity: 0; }
.room-content .participant .name { max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-content .room-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 290px); }
.room-content .room-layout.chat-closed { grid-template-columns: minmax(0, 1fr); }
.room-mode .room-stage { display: flex; flex-direction: column; gap: 16px; min-height: 390px; min-width: 0; }
#liveStatus { color: #465c50; font-size: 0.8rem; }
#roomStandby { display: grid; flex: 1; justify-items: center; align-content: center; gap: 16px; text-align: center; }
#screenVideo { flex: 1; width: 100%; min-height: 0; max-height: 61vh; border-radius: 6px; object-fit: contain; background: #102e29; }
.room-content .chat-panel { min-width: 0; }
.room-content .chat-panel h3 { border: 0; padding: 0; }
.room-content .chat-panel .messages { overflow-wrap: anywhere; }
.room-mode .room-content .dock { position: static; margin-inline: auto; max-width: 100%; flex-wrap: wrap; justify-content: center; }
.room-content .dock button:disabled { opacity: 0.45; cursor: default; }
.room-people-list { margin: 14px 0; padding-left: 1.5rem; }
.room-people-list li + li { margin-top: 0.4rem; }

@media (max-width: 760px) {
  .room-content .participants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-content .room-layout { grid-template-columns: minmax(0, 1fr); }
  .room-mode .room-stage { min-height: 270px; }
}
#inviteForm, #editForm, #inviteResult { margin: 1rem 0; }
#inviteResult .row { flex-wrap: wrap; }
