/* Minimal mockups of system and app screens in the docs: grey bars stand in
   for everything around the part to look for, which is drawn and outlined.
   Ported from the KeyMagic app's setup guide illustrations. */
.ill {
  --ill-window: #ffffff;
  --ill-pane: #f4f4f5;
  --ill-bar: #ececee;
  --ill-separator: #dcdce0;
  --ill-text: #18181b;
  --ill-text-2: #6b6b73;
  --ill-text-3: #a1a1aa;
  --ill-ph: #c9c9cf;
  --ill-accent: #0a84ff;
  --ill-accent-soft: rgba(10, 132, 255, 0.12);
  position: relative;
  margin: 1.5rem 0 0.5rem;
  max-width: 620px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ill-separator);
  background: radial-gradient(120% 140% at 100% 0%, var(--ill-accent-soft), transparent 60%), var(--ill-pane);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ill-text);
  -webkit-user-select: none;
  user-select: none;
}
.ill-tall { height: 260px; }
.ill-caption {
  max-width: 620px;
  margin: 0 0 1.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #52525b);
}
.ill * { box-sizing: border-box; }
.ill-ph { display: inline-block; height: 8px; border-radius: 4px; background: var(--ill-ph); opacity: 0.7; flex: none; }
.ill-ph.icon { height: 14px; }
.ill-ph.block { display: block; }
.ill-spacer { flex: 1; }
.ill-logo { width: 16px; height: 16px; flex: none; }
.ill-focus { position: relative; box-shadow: 0 0 0 2px var(--ill-accent); border-radius: 6px; }

/* Bars along the edge of the screen */
.ill-menubar, .ill-topbar, .ill-taskbar {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
}
.ill-menubar { top: 0; height: 28px; background: var(--ill-bar); border-bottom: 1px solid var(--ill-separator); }
.ill-topbar { top: 0; height: 28px; background: #1d1d1f; }
.ill-topbar .ill-ph { background: #fff; opacity: 0.25; }
.ill-taskbar { bottom: 0; height: 38px; background: var(--ill-bar); border-top: 1px solid var(--ill-separator); }
.ill-input-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 18px; border-radius: 4px;
  background: var(--ill-text); color: var(--ill-window); font-size: 11px; font-weight: 700;
}
.ill-input-icon.small { width: 18px; height: 15px; font-size: 10px; }
.ill-input-text { padding: 2px 8px; font-weight: 600; }
.ill-pill { border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: #fff; }

/* Menus, flyouts and windows */
.ill-menu, .ill-flyout, .ill-window, .ill-sheet {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  padding: 6px; border-radius: 10px; background: var(--ill-window);
  border: 1px solid var(--ill-separator); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.ill-menu-macos { top: 34px; right: 92px; width: 210px; }
.ill-menu-linux { top: 34px; right: 40px; width: 230px; border-radius: 14px; }
.ill-flyout { bottom: 46px; right: 60px; width: 260px; padding: 10px; }
.ill-flyout-title { display: flex; align-items: center; gap: 4px; font-weight: 600; margin-bottom: 6px; }
.ill-flyout-title .ill-key:first-child { margin-left: 6px; }
.ill-key {
  display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 600;
  border: 1px solid var(--ill-separator); border-bottom-width: 2px; background: var(--ill-window); color: var(--ill-text-2);
}
.ill-menu-item { display: flex; align-items: center; gap: 8px; min-height: 26px; padding: 3px 8px; }
.ill-menu-item.ill-focus { background: var(--ill-accent-soft); font-weight: 600; }
.ill-menu-sep { height: 1px; margin: 3px 6px; background: var(--ill-separator); }
.ill-check { width: 12px; text-align: center; color: var(--ill-text-2); }
.ill-trail { margin-left: auto; color: var(--ill-text-2); display: inline-flex; }
.ill-lang { font-size: 11px; font-weight: 600; color: var(--ill-text-2); width: 30px; }
.ill-two { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ill-sub { font-size: 11px; color: var(--ill-text-2); }
.ill-menu-item.ill-focus .ill-sub { color: var(--ill-accent); }
.ill-tray { width: 18px; height: 18px; }
.ill-sys { width: 14px; height: 14px; flex: none; color: var(--ill-text-2); }
.ill-topbar .ill-sys { color: #fff; }
.ill-appname { font-weight: 700; }
.ill-menu-word { color: var(--ill-text-2); }
.ill-clock { font-size: 11px; white-space: nowrap; }
.ill-topbar .ill-clock, .ill-activities { color: #fff; font-size: 11px; }
.ill-activities { font-weight: 600; }
.ill-clock-two { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-size: 10px; }
.ill-start { display: grid; grid-template-columns: 7px 7px; gap: 1px; flex: none; }
.ill-start i { width: 7px; height: 7px; border-radius: 1px; background: var(--ill-accent); }
.ill-searchbox {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; width: 110px; padding: 0 8px;
  border-radius: 999px; background: var(--ill-window); border: 1px solid var(--ill-separator);
  color: var(--ill-text-2); font-size: 11px; flex: none;
}
.ill-searchbox .ill-sys { width: 12px; height: 12px; }
.ill-muted { color: var(--ill-text-3); }

/* Windows with a title bar */
.ill-window { padding: 0; gap: 0; overflow: hidden; }
.ill-titlebar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-bottom: 1px solid var(--ill-separator); background: var(--ill-bar); }
.ill-lights { display: inline-flex; gap: 6px; }
.ill-lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--ill-ph); }
.ill-wintitle { font-weight: 600; }
.ill-winbtns { margin-left: auto; display: inline-flex; gap: 14px; color: var(--ill-text-2); font-size: 11px; }
.ill-body { display: flex; flex: 1; min-height: 0; }
.ill-side { width: 120px; flex: none; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; background: var(--ill-bar); border-right: 1px solid var(--ill-separator); }
.ill-side .on { height: 18px; border-radius: 5px; background: var(--ill-accent-soft); display: flex; align-items: center; padding: 0 6px; font-weight: 600; font-size: 11px; color: var(--ill-text); }
.ill-main { flex: 1; min-width: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ill-heading { font-size: 14px; font-weight: 700; }
.ill-section { font-size: 11px; font-weight: 600; color: var(--ill-text-2); margin-top: 2px; }
.ill-card { border: 1px solid var(--ill-separator); border-radius: 8px; background: var(--ill-window); display: flex; flex-direction: column; }
.ill-row { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 10px; }
.ill-row + .ill-row { border-top: 1px solid var(--ill-separator); }
.ill-row .ill-value { color: var(--ill-text-2); }
.ill-btn {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 6px;
  border: 1px solid var(--ill-separator); background: var(--ill-window); font-weight: 500; white-space: nowrap; flex: none;
}
.ill-btn.primary { background: var(--ill-accent); border-color: var(--ill-accent); color: #fff; }
.ill-btn.ill-focus { box-shadow: 0 0 0 2px var(--ill-accent), 0 0 0 4px var(--ill-accent-soft); }
.ill-field {
  display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px;
  border: 1px solid var(--ill-separator); background: var(--ill-window); color: var(--ill-text);
}
.ill-x { margin-left: auto; color: var(--ill-text-3); }
.ill-appicon { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.ill-id { color: var(--ill-text-3); font-size: 11px; }

/* macOS Add Input Source sheet */
.ill-sheet { padding: 12px; gap: 8px; border-radius: 12px; }
.ill-sheet-cols { display: flex; gap: 8px; flex: 1; min-height: 0; }
.ill-list { border: 1px solid var(--ill-separator); border-radius: 6px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.ill-list .ill-menu-item { min-height: 22px; padding: 2px 6px; }
.ill-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Windows Properties dialog */
.ill-tabs { display: flex; gap: 14px; padding: 8px 12px 0; border-bottom: 1px solid var(--ill-separator); font-size: 11px; color: var(--ill-text-2); }
.ill-tabs span { padding-bottom: 6px; }
.ill-tabs .on { color: var(--ill-text); font-weight: 600; border-bottom: 2px solid var(--ill-accent); }
.ill-table { border: 1px solid var(--ill-separator); display: flex; flex-direction: column; font-size: 11px; }
.ill-table .ill-tr { display: grid; grid-template-columns: 1.6fr 1fr 1.6fr; gap: 8px; padding: 4px 8px; }
.ill-table .ill-th { color: var(--ill-text-2); border-bottom: 1px solid var(--ill-separator); }

@media (max-width: 560px) {
  .ill { font-size: 11px; }
  .ill-hide-narrow { display: none !important; }
  .ill-menu-macos { right: 12px; }
  .ill-flyout { right: 12px; }
  .ill-menu-linux { right: 12px; }
  .ill-side { display: none; }
}

/* Several small screens in a row, numbered in order */
.ill-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 1.5rem 0 0.5rem; max-width: 860px; }
.ill-strip .ill { margin: 0; height: 240px; max-width: none; font-size: 10.5px; }
.ill-stepwrap { position: relative; min-width: 0; }
.ill-no {
  position: absolute; left: -7px; top: -7px; z-index: 2; box-shadow: 0 0 0 2px var(--bg-color, #fafafa); width: 20px; height: 20px; border-radius: 50%;
  background: #0a84ff; color: #fff; font-weight: 700; font-size: 11px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  display: flex; align-items: center; justify-content: center;
}
.ill-strip .ill-window { left: 8px; right: 8px; top: 8px; bottom: 8px; }
.ill-strip .ill-main { padding: 8px 10px; gap: 6px; }
.ill-strip .ill-heading { font-size: 12px; }
.ill-strip .ill-row { min-height: 26px; padding: 3px 8px; }
.ill-strip .ill-btn { height: 20px; padding: 0 8px; }
.ill-sel { background: var(--ill-accent); color: #fff; border-radius: 5px; padding: 3px 6px; font-weight: 600; }
.ill-selgrey { background: var(--ill-bar); border-radius: 4px; padding: 3px 6px; }
.ill-toggle { width: 22px; height: 12px; border-radius: 999px; background: var(--ill-accent); flex: none; margin-left: auto; }
.ill-pm { display: flex; gap: 10px; padding: 4px 8px; border-top: 1px solid var(--ill-separator); font-size: 13px; color: var(--ill-text-2); margin-top: auto; }
.ill-pm span { width: 18px; text-align: center; }
.ill-keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; padding: 4px; border-radius: 4px; background: var(--ill-bar); }
.ill-keys i { height: 7px; border-radius: 2px; background: var(--ill-window); }
.ill-input-a { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 13px; border-radius: 3px; background: var(--ill-ph); font-size: 9px; font-weight: 700; color: var(--ill-text); }
@media (max-width: 760px) {
  .ill-strip { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
}
