/* Ìzí Meeting, refined to the Ìzí design language shared with Ìzí Studio and Connect CMS 2. Look only: nothing here
   changes what a button does. Loaded last, by izi-meeting.html only, so the old Connect CMS screens are untouched.
   One pill height (27px), one type scale, mono only for small labels, and Ìzí's quiet shadows and motion. */
body.iz-mode {
  --izr-pill: 27px;
  --izr-ease: cubic-bezier(.2, .8, .2, 1);
  --izr-shadow: 0 6px 24px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .03);
  --izr-lift: 0 12px 40px rgba(0, 0, 0, .10), 0 2px 4px rgba(0, 0, 0, .04);
  font-size: 12px; line-height: 16px;
}

/* ---- the top bar: name in the sans face like every Ìzí app, the motto as a small mono label ---------------------- */
body.iz-mode h1 { font: 600 15px/18px var(--izi-font) !important; letter-spacing: 0 !important; text-transform: none !important; }
body.iz-mode h1 + small.iz-mono, body.iz-mode .iz-mono { font: 500 9px/12px var(--izi-mono) !important; letter-spacing: .6px !important; text-transform: uppercase; }
body.iz-mode .iz-who { font: 500 12px/16px var(--izi-font); }

/* ---- headings: page title, card titles, the numbered discs ------------------------------------------------------ */
body.iz-mode h2 { font-family: var(--izi-font); font-weight: 600; font-size: 19px; line-height: 24px; letter-spacing: 0; }
body.iz-mode .iz-pagehead h2 { font-size: 24px; line-height: 30px; letter-spacing: -.01em; }
body.iz-mode dialog h2, body.iz-mode dialog .h2 { font-size: 18px; line-height: 24px; }
body.iz-mode .iz-step { width: 26px; height: 26px; font: 600 13px/1 var(--izi-font); }

/* ---- body text: Ìzí reads at 12px; notes are quieter, never larger ------------------------------------------------ */
body.iz-mode p, body.iz-mode .p { font-size: 12px; line-height: 16px; }
body.iz-mode .iz-soft, body.iz-mode small.iz-soft { font-size: 12px; line-height: 17px; }
body.iz-mode span:not([class]), body.iz-mode label > span, body.iz-mode .iz-lbl { font-size: 12px; line-height: 16px; }
body.iz-mode b { font-weight: 600; }

/* ---- small labels: the one mono style ---------------------------------------------------------------------------- */
body.iz-mode .iz-label, body.iz-mode label:not(:has(input[type=checkbox])) { font: 500 11px/14px var(--izi-mono); letter-spacing: .6px; text-transform: uppercase; }
body.iz-mode .iz-card-no, body.iz-mode .iz-card-btn small { font: 500 10px/13px var(--izi-mono); letter-spacing: .6px; }
body.iz-mode .iz-card-btn b { font: 600 14px/20px var(--izi-font); }
body.iz-mode .iz-badge, body.iz-mode .iz-pill { font: 600 10px/12px var(--izi-mono); letter-spacing: .6px; }

/* ---- every pill one height -------------------------------------------------------------------------------------- */
html body.iz-mode :is(.iz-app, dialog.dialog, .iz-prejoin, .iz-side-body) :is(button, a):is(.iz-btn, .iz-chip, .iz-bb), html body.iz-mode .iz-btn, html body.iz-mode .iz-chip, html body.iz-mode .iz-bb, html body.iz-mode dialog button.quiet {
  height: var(--izr-pill) !important; min-height: var(--izr-pill) !important; padding: 0 12px !important;
  font: 600 12px/16px var(--izi-font) !important; gap: 6px; position: relative;
  transition: transform .1s var(--izr-ease), background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
body.iz-mode .iz-bb svg, body.iz-mode .iz-btn svg, body.iz-mode .iz-chip svg { width: 14px; height: 14px; }
/* A finger needs more than 27px: the press area reaches past the pill without changing how it looks. */
body.iz-mode .iz-btn::before, body.iz-mode .iz-chip::before, body.iz-mode .iz-bb::before { content: ''; position: absolute; inset: -8px -2px; }
body.iz-mode .iz-btn:active, body.iz-mode .iz-chip:active, body.iz-mode .iz-bb:active, body.iz-mode .iz-round:active { transform: scale(.97); }
html body.iz-mode :is(.iz-app, dialog.dialog) button.iz-round, html body.iz-mode .iz-app button.iz-round.iz-hm, html body.iz-mode .iz-round { width: 40px !important; height: 40px !important; min-height: 0 !important; transition: transform .1s var(--izr-ease); }
/* A window's own close and small round buttons stay small. */
html body.iz-mode .iz-app .iz-win-head button.iz-round, html body.iz-mode .iz-round.sm { width: 32px !important; height: 32px !important; }
/* The Schedule button in the top bar turns into a round icon on a phone, as before. */
@media (max-width: 640px) { html body.iz-mode .iz-app button.iz-btn.iz-hm { width: 40px !important; height: 40px !important; padding: 0 !important; } }
body.iz-mode .iz-round svg { width: 16px; height: 16px; }

/* ---- fields ----------------------------------------------------------------------------------------------------- */
html body.iz-mode :is(.iz-app, dialog.dialog, body) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select) {
  height: 36px !important; min-height: 36px !important; font: 400 13px/18px var(--izi-font) !important; padding-top: 0 !important; padding-bottom: 0 !important; border-radius: 12px;
}
html body.iz-mode :is(.iz-app, dialog.dialog, body) textarea { min-height: 72px !important; font: 400 13px/18px var(--izi-font) !important; padding: 8px 12px !important; border-radius: 12px; }
/* On a phone the fields keep 16px writing, so the phone does not zoom in when one is tapped. */
@media (max-width: 900px) { html body.iz-mode :is(.iz-app, dialog.dialog, body) :is(input, select, textarea) { font-size: 16px !important; } }

/* ---- switches: Ìzí's size -------------------------------------------------------------------------------------- */
body.iz-mode .iz-toggle { width: 40px !important; height: 24px !important; }
body.iz-mode .iz-toggle::after { width: 18px !important; height: 18px !important; top: 3px !important; left: 3px !important; }
body.iz-mode .iz-toggle[aria-checked='true']::after { transform: translateX(16px) !important; }

/* ---- surfaces: Ìzí's quiet shadows, and dialogs that rise in -------------------------------------------------- */
body.iz-mode dialog.dialog { box-shadow: var(--izr-lift); animation: izr-rise .22s var(--izr-ease) both; }
@keyframes izr-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
body.iz-mode .iz-card-btn { transition: transform .18s var(--izr-ease), box-shadow .18s ease, border-color .18s ease; }
@media (hover: hover) { body.iz-mode .iz-card-btn:hover { transform: translateY(-2px); box-shadow: var(--izr-lift); } }
@media (prefers-reduced-motion: reduce) {
  body.iz-mode dialog.dialog { animation: none; }
  body.iz-mode .iz-card-btn, body.iz-mode .iz-btn, body.iz-mode .iz-chip, body.iz-mode .iz-bb { transition: none; }
}

/* ---- phones: the page title steps down, as in Connect CMS 2 --------------------------------------------------- */
@media (max-width: 640px) {
  body.iz-mode .iz-pagehead h2 { font-size: 20px; line-height: 26px; }
}
body.iz-mode .iz-pagehead p { color: var(--izi-mute); font-size: 12px; line-height: 16px; margin-top: 2px; }
/* The motto stays on one line, as in Connect CMS 2's top bar. */
body.iz-mode h1 + small.iz-mono { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }

/* Step card summaries in Title Case, as everywhere else in the Ìzí apps ("Who Is Here"). */
html body.iz-mode .iz-card-btn small { text-transform: capitalize !important; }

/* When an Ìzí app cannot open or something goes wrong, the card is an Ìzí card, not Connect CMS's sign-in card with the
   thick coloured top edge (owner, 1 Dec 2026: "looks like the old style of card"). */
.izi-auth .auth-card { border: 1px solid #292A2E; border-top: 1px solid #292A2E; border-radius: 24px; padding: 24px; box-shadow: none; }
.izi-auth .auth-card h1 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.izi-auth .auth-card .error { color: #FF9F94; font-weight: 400; font-size: 14px; line-height: 1.45; margin: 0 0 16px; }
.izi-auth .auth-card .row { display: flex; flex-wrap: wrap; gap: 8px; }
.izi-auth .auth-card button, .izi-auth .auth-card a.button { min-height: 0; height: 27px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 600; box-shadow: none; }
