/* 12Nexus Meet: team dashboard. Brand tokens from auth.12nexus.net. */
@font-face { font-family: Almarai; font-weight: 400; font-display: swap; src: url(/fonts/almarai-400.woff2) format("woff2"); }
@font-face { font-family: Almarai; font-weight: 700; font-display: swap; src: url(/fonts/almarai-700.woff2) format("woff2"); }
@font-face { font-family: Almarai; font-weight: 800; font-display: swap; src: url(/fonts/almarai-800.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --blue: #004EF0;
  --blue-dark: #0039B3;
  --navy: #011B35;
  --tint: #EAF0FF;
  --page: #F3F6FF;
  --card: #FFFFFF;
  --field: #F6F8FC;
  --line: #DDE5F2;
  --text: #011B35;
  --muted: #4A5A75;
  --green: #0E8A3E; --green-bg: #E5F6EC;
  --amber: #9A5B00; --amber-bg: #FFF2DB;
  --red: #B42318; --red-bg: #FDECEA;
  --radius: 16px;
  font-family: Almarai, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 15px; line-height: 1.55; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
h1 { font-size: 26px; line-height: 1.25; margin: 0; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 18px 0 6px; }
.muted { color: var(--muted); }
.error { color: var(--red); }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.pre { white-space: pre-wrap; }
.ur { font-family: "Noto Nastaliq Urdu", serif; line-height: 2.1; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; padding: 10px 18px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .55; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--field); }
.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; }
.link.danger { color: var(--red); }
.icon { background: none; border: 0; color: var(--muted); padding: 4px 8px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 17px; }
.brand img { height: 28px; }
.brand span { padding-left: 12px; border-left: 1px solid var(--line); }
.who { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; }
.who form { margin: 0; }
.wrap { max-width: 940px; margin: 0 auto; padding: 28px 20px 60px; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head p { margin: 4px 0 0; }
section { margin-bottom: 30px; }
section > h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.live-h { color: var(--red) !important; }
.day { font-size: 14px; margin: 14px 0 8px; }
.empty { color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; margin: 0; }
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; font-weight: 700; }

.mcard { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 8px; text-decoration: none; color: var(--text); }
.mcard:hover { border-color: #B9C8E6; }
.mtime { width: 76px; flex: none; }
.mtime b, .mtime small, .mmain b, .mmain small { display: block; }
.mtime small, .mmain small { color: var(--muted); font-size: 13px; }
.mmain { flex: 1; min-width: 0; }
.mmain b, .mmain small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.livecard { display: flex; gap: 10px; align-items: center; }
.livecard .mcard { flex: 1; margin: 0; border-color: #F3B4AE; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--field); color: var(--muted); vertical-align: middle; }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.blue { background: var(--tint); color: var(--blue); }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.panel .ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.panel .ph h2 { margin: 0; }
.panel ul { margin: 4px 0; padding-left: 20px; }
.panel li { margin: 3px 0; }
.linkpanel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.copyrow { display: flex; gap: 6px; margin-top: 4px; }
.copyrow input { flex: 1; min-width: 0; background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 14px; }
.guests .link { margin: 8px 14px 0 0; font-size: 14px; }
.chip { display: inline-block; background: var(--tint); border-radius: 8px; padding: 2px 10px; margin: 4px 6px 0 0; font-size: 14px; }
.chip small { color: var(--muted); }
.working { display: flex; gap: 16px; align-items: center; }
.working p { margin: 2px 0 0; }
.spinner { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-panel { border-color: #F3B4AE; background: var(--red-bg); }
.minutes h3:first-of-type { margin-top: 8px; }
.actions-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.actions-t th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.actions-t td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.followup { margin-top: 18px; background: var(--field); border-radius: 12px; padding: 12px 16px; }
.followup summary { font-weight: 700; cursor: pointer; }
.qa { border-top: 1px solid var(--line); padding: 10px 0; }
.qa p { margin: 4px 0 0; }
.askrow { display: flex; gap: 8px; margin-top: 8px; }
.askrow input { flex: 1; min-width: 0; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.transcript { max-height: 560px; overflow: auto; margin-top: 8px; }
.tl { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.tl small { color: var(--muted); }
.tl small b { color: var(--blue); }
.tl.guest small b { color: var(--green); }
.tl p { margin: 2px 0 0; }
.tl .tr { color: var(--muted); font-size: 14px; font-style: italic; }
.play { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--blue); font-size: 11px; margin-top: 2px; }
.play:disabled { opacity: .3; }
.att { list-style: none; padding: 0 !important; }
.footer-actions { text-align: right; }

dialog { border: 0; border-radius: 20px; padding: 0; width: min(640px, calc(100% - 24px)); box-shadow: 0 24px 64px rgba(1,27,53,.3); color: var(--text); }
dialog::backdrop { background: rgba(1,27,53,.45); }
.mform { display: grid; gap: 14px; padding: 24px; max-height: calc(100dvh - 40px); overflow: auto; }
.mform h2 { margin: 0; font-size: 21px; }
.mform label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.mform label .muted { font-weight: 400; }
.mform input:not([type=checkbox]), .mform select, .mform textarea { background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 400; width: 100%; }
.mform input:focus, .mform select:focus, .mform textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 12px; margin: 0; display: grid; gap: 8px; }
legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.guest { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; }
.switch, .check { display: flex !important; align-items: flex-start; gap: 10px !important; font-weight: 700; }
.switch input, .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.switch small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.check { font-weight: 400 !important; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 20; max-width: calc(100% - 32px); }

/* plain server-rendered pages (landing, errors) */
body.plain main.narrow { max-width: 460px; margin: 10vh auto; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
body.plain .logo { height: 34px; }
body.plain h1 { margin: 18px 0 8px; }
.codeform { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin: 18px 0; }
.codeform label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.codeform input { background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 400; }

@media (max-width: 700px) {
  .top { padding: 12px 16px; }
  .who span { display: none; }
  .wrap { padding: 20px 16px 48px; }
  .cols2, .linkpanel { grid-template-columns: 1fr; }
  .cols3 { grid-template-columns: 1fr 1fr; }
  .cols3 label:first-child { grid-column: 1 / -1; }
  .guest { grid-template-columns: 1fr auto; }
  .guest input[data-f="email"] { grid-column: 1; }
  .mcard { padding: 12px 14px; gap: 12px; }
  .mtime { width: 60px; }
  .mside { display: none; }
}
