/* Olympus public portal. Same palette as the dashboard (mockup A): one accent (orange); grays carry the rest. */
:root {
  --bg: #f4f5f6; --panel: #ffffff; --line: #e1e4e8; --ink: #15181c; --ink2: #4a525c; --ink3: #7d8792;
  --track: #e9ecef; --accent: #d9822b; --ok: #2f9e62; --bad: #d1453b; --hover: #f7f8f9;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0f1113; --panel: #171a1d; --line: #262b30; --ink: #e8ebee; --ink2: #aab2bb; --ink3: #6f7882;
  --track: #252a2f; --accent: #e8913a; --ok: #3fb67a; --bad: #ef5a4f; --hover: #1d2125; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 "IBM Plex Sans", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { font-weight: 600; font-size: 16px; letter-spacing: .02em; display: flex; gap: 10px; align-items: center; }
.brand .logo { width: 28px; height: 28px; display: block; }

.wrap { max-width: 640px; margin: 0 auto; padding: 36px 16px 56px; }
h1 { margin: 0 0 20px; font-size: 26px; font-weight: 600; }
h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink2); }

.actions { display: grid; gap: 10px; }
.action { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.action:hover { border-color: var(--accent); transform: translateY(-1px); }
.action:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.action .ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ink) 6%, var(--panel)); border: 1px solid var(--line); color: var(--accent); }
.action .ico img { width: 26px; height: 26px; object-fit: contain; display: block; }
.action .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.action .t { flex: 1; min-width: 0; font-weight: 500; font-size: 16px; }

.btn { display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding: 7px 18px; border-radius: 999px; background: var(--accent); color: #fff;
  font: inherit; font-weight: 500; border: 1px solid var(--accent); cursor: pointer; white-space: nowrap; }
.btn.ghost { background: none; color: var(--ink2); border-color: var(--line); }
.action:hover .btn.ghost { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .6; cursor: default; }

.status { margin-top: 32px; }
.statusrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding-right: 17px; }   /* 17px = the row's 16px padding + 1px border, so Admin lines up with Open, Join, and Send */
.status ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.btn.small { padding: 4px 14px; font-size: 14px; }
.btn.small:hover { border-color: var(--accent); color: var(--accent); }
.status li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--track); }
.status .dot.up { background: var(--ok); } .status .dot.down { background: var(--bad); }

dialog { padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 64px rgb(0 0 0 / .35); }
dialog::backdrop { background: rgb(8 10 12 / .6); }
.dlg { padding: 22px; display: grid; gap: 14px; }
.dlg h2 { font-size: 18px; color: var(--ink); }
.field { display: grid; gap: 6px; }
.field span { color: var(--ink2); font-size: 13px; }
input, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; }
textarea { resize: vertical; }
.row { display: flex; gap: 10px; }
.msg { margin: 0; color: var(--ink2); }
.msg.bad { color: var(--bad); } .msg.ok { color: var(--ok); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.topnav { display: flex; gap: 2px; }
.topnav a { padding: 6px 14px; border-radius: 999px; color: var(--ink2); }
.topnav a:hover { background: var(--hover); }
.topnav a[aria-current="page"] { background: var(--ink); color: var(--panel); }

.doc { max-width: 720px; }
.doc h2 { margin: 32px 0 12px; font-size: 18px; color: var(--ink); }
.doc h2:first-of-type { margin-top: 0; }
.doc section + section { margin-top: 36px; }
.doc section h2 { margin-top: 0; }
.doc p, .doc ol, .doc ul { margin: 0 0 12px; color: var(--ink2); }
.doc ol { padding-left: 22px; } .doc li { margin-bottom: 6px; }
.doc b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }
.doc section[id] { scroll-margin-top: 16px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
summary { padding: 12px 16px; cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg); transition: transform .15s; flex: none; margin-right: 4px; }
details[open] > summary::after { transform: rotate(-135deg); }
summary:hover { background: var(--hover); border-radius: 10px; }
.doc details > :not(summary) { margin-left: 16px; margin-right: 16px; }
.doc details > :last-child { margin-bottom: 16px; }

@media (max-width: 480px) { .statusrow { padding-right: 13px; } .action { padding: 12px; gap: 12px; } .action .t { font-size: 15px; } .wrap { padding-top: 24px; } }

.sechead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.sechead h2 { margin: 0; }
.agenda h3 { margin: 18px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink3); }
.agenda h3:first-child { margin-top: 0; }
.agenda .item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.agenda .nm { min-width: 0; overflow-wrap: anywhere; }
.agenda .tag { flex: none; font-size: 12px; color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line)); border-radius: 999px; padding: 1px 9px; }
.agenda .none { color: var(--ink3); }
.note { margin: 0; color: var(--ink3); font-size: 13px; }

/* Calendar grid */
.calwrap { max-width: 1100px; }
.calbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.monthnav { display: flex; align-items: center; gap: 8px; }
.monthnav h1 { margin: 0 6px; font-size: 22px; min-width: 9.5em; text-align: center; }
.iconbtn { background: var(--panel); border: 1px solid var(--line); color: var(--ink2); border-radius: 999px; width: 34px; height: 34px; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.iconbtn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.iconbtn:disabled { opacity: .35; cursor: default; }
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--ink2); border-radius: 999px; padding: 6px 14px; font: inherit; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chip[aria-pressed="false"] { opacity: .55; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.m { background: var(--accent); } .sw.t { background: var(--ink3); }
.chip2.m { --c: var(--accent); } .chip2.t { --c: var(--ink3); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal.busy { opacity: .6; }
.dow { background: var(--panel); color: var(--ink3); font-size: 12px; font-weight: 600; text-align: center; padding: 8px 0; }
.day { background: var(--panel); border: 0; font: inherit; color: inherit; text-align: left; min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; min-width: 0; }
.day:hover { background: var(--hover); }
.day:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: -2px; }
.day.out { background: color-mix(in srgb, var(--bg) 60%, var(--panel)); }
.day.out .n { color: var(--ink3); }
.day.out .chips, .day.out .dots { opacity: .55; }
.day .n { font-size: 13px; font-weight: 500; width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink2); }
.day.today .n { background: var(--accent); color: #fff; font-weight: 600; }
.chips { display: grid; gap: 3px; min-width: 0; }
.chip2 { display: block; font-size: 12px; line-height: 1.25; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: color-mix(in srgb, var(--c) 14%, var(--panel)); border-left: 3px solid var(--c); color: var(--ink); }
.chip2.ok::after { content: " \2713"; color: var(--ok); font-weight: 600; }
.more { font-size: 12px; color: var(--ink3); padding-left: 4px; }
.dots { display: none; gap: 4px; flex-wrap: wrap; }
.dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dots i.m { background: var(--accent); } .dots i.t { background: var(--ink3); }
.unavailable { text-align: center; margin-top: 12px; }
#daybox .dlg { max-height: min(80vh, 640px); overflow: auto; }
#daybox h3 { margin: 12px 0 6px; font-size: 13px; color: var(--ink3); font-weight: 600; }
#daybox h3:first-child { margin-top: 0; }
@media (max-width: 720px) {
  .wrap.calwrap { padding-left: 8px; padding-right: 8px; }
  .calbar { padding: 0 6px; }
  .monthnav h1 { font-size: 18px; min-width: 7.5em; }
  .day { min-height: 58px; padding: 4px; align-items: center; }
  .chips { display: none; }
  .dots { display: flex; justify-content: center; }
  .dow { padding: 6px 0; font-size: 11px; }
}
.adminlink { color: var(--ink2); font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 75px; }
.adminlink svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }   /* 75px = the Open button, so Admin is centered under the button labels */
.adminlink:hover { color: var(--accent); text-decoration: underline; }
