* { box-sizing: border-box; }
:root { color: #162b3b; background: #f1f4f7; font: 15px system-ui, sans-serif; }
body { margin: 0; display: flex; flex-direction: column; height: 100dvh; }
.bar {
  background: #102b3e;
  color: white;
  padding: 12px clamp(12px, 4vw, 48px);
  display: flex;
  gap: 8px 14px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 3px solid #d9ad55;
}
.workspace-brand { text-decoration: none; font-weight: 750; color: #edc579; text-transform: uppercase; font-size: 17px; letter-spacing: .03em; }
#identity { flex: 1; }
#sync { font-size: 12px; color: #d9e7ee; }
#navigation { display: flex; flex-wrap: wrap; gap: 5px; }
#login, body > main:not(#group-chat, #meetings) {
  width: min(460px, calc(100% - 24px));
  margin: clamp(12px, 8vh, 65px) auto;
  padding: clamp(16px, 5vw, 30px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 40px #102b3e15;
}
h1, h2 { margin: 0; }
label { display: block; margin: 12px 0 5px; }
input, textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #bccbd3;
  border-radius: 6px;
  color: inherit;
  font: inherit;
}
textarea { resize: vertical; }
button {
  background: #116e65;
  border: 0;
  color: white;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 3px solid #9d6c18; outline-offset: 3px; }
body > main:not(#group-chat, #meetings) button { width: 100%; margin-top: 20px; }
body > main:not(#group-chat, #meetings) button.secondary { margin-top: 8px; background: #e8eef3; color: #163347; }
dialog form button[type="submit"], #copy-invite { margin-top: 12px; }
.back-home { display: inline-block; color: #116e65; margin-top: .4rem; }
#message { color: #993434; }
small { color: #526677; }
iframe { display: block; width: 100%; flex: 1; min-height: 0; border: 0; }
[hidden] { display: none !important; }
dialog { width: min(700px, calc(100vw - 24px)); border: 1px solid #bccbd3; border-radius: 12px; padding: 18px; color: inherit; }
dialog::backdrop { background: #102b3e9e; }
dialog header, .section-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.section-row { border-bottom: 1px solid #dce4eb; padding: 6px 0; }
.section-row strong { flex: 1; overflow-wrap: anywhere; }
dialog form, #new-section { margin-top: 10px; }
fieldset { margin: 8px 0; }
fieldset label { display: flex; gap: 8px; align-items: center; }
input[type="checkbox"] { width: auto; }
#history-list { padding-left: 24px; }
#history-list li { margin-block: 6px; }
#history-detail { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #bccbd3; padding: 8px; }
@media (max-width: 600px) { #navigation { width: 100%; } .bar button { font-size: 12px; } }
