/* 360AOR Meet — corporate blue and white. */
:root {
  --navy: #0b3d91; --blue: #1f6feb; --blue-50: #eef4ff; --blue-100: #dbe7fd;
  --ink: #1b2533; --muted: #5b6b80; --line: #d9e1ec; --bg: #f5f7fb; --white: #fff;
  --ok: #1a7f37; --warn: #9a6700; --bad: #c62828;
  --radius: 6px; --shadow: 0 1px 2px rgba(16, 37, 77, .06), 0 2px 8px rgba(16, 37, 77, .05);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

/* top bar */
.topbar { background: var(--navy); color: #fff; }
.topbar .inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; color: #fff; text-decoration: none; }
.brand img { height: 28px; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { color: #dce7fb; text-decoration: none; padding: 8px 12px; border-radius: 4px; }
.topbar nav a[aria-current="page"], .topbar nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar .who { font-size: .9rem; color: #dce7fb; display: flex; gap: 12px; align-items: center; }

/* hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, #12489f 100%); color: #fff; text-align: center; padding: 48px 24px 56px; }
.hero h1 { font-size: 2rem; font-weight: 600; }
.hero p { color: #dce7fb; margin: 0 0 24px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

main.page { max-width: 1200px; margin: 0 auto; padding: 24px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 20px; }
.card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card header h2 { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 4px; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--blue); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--blue); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: .85rem; }
.btn.lg { padding: 12px 22px; font-size: 1.05rem; }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], input[type=search], input[type=time], select, textarea {
  width: 100%; padding: 9px 10px; border: 1px solid #b9c6d8; border-radius: 4px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.error { color: var(--bad); font-weight: 600; min-height: 1.2em; }

/* lists & tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.list li:last-child { border-bottom: 0; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--blue-100); color: var(--navy); }
.pill.live { background: #ffe1e1; color: var(--bad); }
.pill.ok { background: #dcf3e2; color: var(--ok); }
.pill.warn { background: #fff1c2; color: var(--warn); }
mark { background: #fff1a8; padding: 0 1px; }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: #fff; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
progress { width: 100%; height: 10px; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* calendar */
.cal { width: 100%; table-layout: fixed; }
.cal th { text-align: center; }
.cal td { height: 92px; border: 1px solid var(--line); padding: 4px; font-size: .8rem; }
.cal td.other { background: #fafbfd; color: #a3b0c2; }
.cal td.today { background: var(--blue-50); }
.cal .d { font-weight: 600; }
.cal a.ev { display: block; margin-top: 3px; padding: 2px 4px; border-radius: 3px; background: var(--blue-100); color: var(--navy); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* dialogs */
dialog { border: 1px solid var(--line); border-radius: 8px; padding: 0; max-width: 560px; width: calc(100% - 32px); box-shadow: 0 12px 40px rgba(16,37,77,.25); }
dialog::backdrop { background: rgba(11, 30, 64, .45); }
dialog .d-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
dialog .d-body { padding: 16px 20px; }
dialog .d-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* toast */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; box-shadow: var(--shadow); font-size: .92rem; }
.toast.bad { background: var(--bad); }

/* centered auth/public pages */
.center-wrap { min-height: calc(100vh - 56px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; }
.center-card { width: 100%; max-width: 440px; }
.center-card.wide { max-width: 760px; }

/* transcript */
.transcript { max-height: 520px; overflow: auto; }
.seg { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.seg time { color: var(--muted); font-variant-numeric: tabular-nums; cursor: pointer; }
.seg b { color: var(--navy); }
.action-item { display: grid; grid-template-columns: 24px 2fr 1fr 1fr 32px; gap: 8px; align-items: center; margin-bottom: 6px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.slot-grid button.selected { background: var(--navy); color: #fff; }
.toolbar { display: flex; gap: 8px; flex: 0 0 auto !important; min-width: 0 !important; flex-wrap: wrap; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
