/* The colored perimeter and the neutral track have independent, concentric radii. */
.kd-grants {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.kd-grant {
  --grant-color: #f28c28;
  display: inline-grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 0;
  line-height: 1;
}
.kd-grant.live { --grant-color: #2f6fed; }
.kd-capsule {
  display: block;
  width: 18px;
  height: 54px;
}
.kd-capsule > svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}
.kd-tour-ring { display: none; pointer-events: none; }
body.touring:has(.kd-capsule-frame) [data-tour-live] .kd-tour-ring {
  display: inline;
  stroke: #bc9854;
}
.kd-capsule-ring { stroke: transparent; }
.kd-capsule-core { fill: #d6d8de; stroke: #c3c5c8; }
.kd-grant[data-given=true] .kd-capsule-ring,
.kd-compact .kd-grant[aria-pressed=mixed] .kd-capsule-ring { stroke: var(--grant-color); }
.kd-grant[data-received=true] .kd-capsule-core {
  fill: var(--grant-color);
  stroke: var(--grant-color);
}

.kd-grant:focus-visible { outline: 2px dashed currentColor; outline-offset: 2px; }
.kd-grant-label { font: 550 10px/1 var(--font-body); white-space: nowrap; color: var(--ink-2); }
.kd-labeled { gap: 12px; }
.kd-labeled .kd-grant { width: 48px; }
.kd-labeled .kd-capsule { height: 48px; }
.kd-compact { gap: 0; }
.kd-compact .kd-grant { width: 22px; height: 54px; }

#main:has(> .kd-directory) { container-type: inline-size; }
:root[data-theme=kitaakblue] #main:has(> .kd-directory) {
  background: radial-gradient(ellipse at 12% 30%,#f7f7f7 0%,transparent 64%),
    linear-gradient(120deg,#e5e5e7 0%,#efeff0 55%,#e3e3e6 100%);
}
.kd-directory {
  --dir-line: var(--line);
  --dir-surface: var(--panel-2);
  max-width: 1080px;
  box-sizing: border-box;
  padding-block: 24px 38px;
}
[data-theme=kitaakblue] .kd-directory { --dir-line: #63a4d6; --dir-surface: #f0f1f2; }
.kd-directory h1,.kd-directory h3 { font-family: var(--font-body); font-stretch: normal; font-weight: 600; }
.kd-directory h1 { font-size: 30px; line-height: 1.17; margin: 4px 0 15px; }
.kd-directory .eyebrow { color: var(--ink-2); font: 500 10px/1.2 var(--font-body); letter-spacing: .11em; }
.kd-directory #cq {
  box-sizing: border-box; display:block; width:100%; max-width:460px;
  min-height:32px; height:32px; padding:3px 12px; border:1px solid var(--dir-line);
  border-radius:14px; background:var(--panel); font:400 15px var(--font-body);
}
.kd-directory .section-head { margin: 28px 0 14px; align-items: baseline; flex-wrap: wrap; }
.kd-directory h3 { font-size:21px; margin:0; }
.kd-directory #ccount { font-size:12px; color:var(--ink-2); }
.kd-directory .contact-row {
  grid-template-columns:44px minmax(0,1fr) auto; gap:12px; min-height:108px;
  padding:12px 8px; box-sizing:border-box;
}
.kd-person .kd-face,.kd-person-info .nm,.kd-person-info .kd-notes { padding:0; border:0; background:transparent; text-align:start; }
.kd-directory .avatar { border:1px solid var(--dir-line); background:var(--panel-2); color:var(--ink); }
.kd-directory .contact-row .nm { font-size:15px; line-height:1.35; font-weight:620; }
.kd-directory .contact-row .sub { font-size:12px; line-height:1.45; overflow-wrap:anywhere; }
.kd-person-info .kd-notes { margin-top:4px; padding:2px 7px; border-radius:8px; font-size:11px; }
.kd-notes:hover, .kd-person-info .nm:hover { text-decoration:underline; }
.kd-directory .contact-row .acts { display:flex; align-items:center; gap:4px; }
.kd-person .acts > .kd-grants { margin-right:12px; }
.kd-action {
  display:grid; place-items:center; box-sizing:border-box; width:44px; height:44px;
  background:transparent; border:0; border-radius:50%; color:var(--ink-2);
}
.kd-action:hover,.kd-action:focus-visible { background:var(--panel); color:var(--ink); }
.kd-directory .kd-lobby {
  min-height:62px; background:var(--dir-surface); border-radius:15px;
  padding:8px; row-gap:0;
}
.kd-lobby .avatar { width:44px; height:44px; font-size:15px; }
.kd-open { border:1px solid var(--dir-line); border-radius:99px; padding:6px 13px; font:550 13px var(--font-body); }
.kd-open:hover { background:var(--panel); }
.kd-pin { color:var(--rust); }
.kd-note-input { box-sizing:border-box; width:100%; resize:vertical; }
.kd-group-list { display:grid; gap:6px; }
.kd-undo { color:inherit; text-decoration:underline; }

.composer:has(> .kd-compact) { align-items:center; gap:6px; }
.composer:has(> .kd-compact) > textarea { min-width:0; }
.composer .vmode-btn {
  width:44px; height:46px; padding:4px 1px; border-radius:10px; border:1px solid var(--line);
  background:var(--panel); box-shadow:none; justify-content:space-between; align-items:center;
}
[data-theme=kitaakblue] .composer .vmode-btn { border-color:#66a8d7; background:#f6f7f8; }
.composer .vmode-btn .vm-l { color:var(--ink); font:700 7px/1 var(--font-body); letter-spacing:.025em; }
.composer .vmode-btn .vm-dot {
  width:14px; height:18px; display:flex; align-items:flex-end; justify-content:center;
  box-sizing:border-box; padding:2px; border-radius:9px; background:#c9cbd0; box-shadow:none;
}
.composer .vmode-btn .vm-dot::after {
  content:''; display:block; width:10px; height:10px; border-radius:50%; background:#20211f;
}
.composer .vmode-btn.live .vm-dot { align-items:flex-start; }
.composer .vmode-btn.live .vm-dot::after { background:#1f9d55; }
.composer .vmode-btn.live .vm-live { color:var(--ink); }

@container (max-width: 660px) {
  .kd-directory .kd-person { grid-template-columns:44px minmax(0,1fr); gap:6px 10px; padding:12px 6px; }
  .kd-directory .kd-person .acts { grid-column:1/-1; justify-self:end; }
  .kd-directory .kd-action { width:34px; height:36px; }
  .kd-labeled { gap:2px; }
  .kd-person .acts > .kd-grants { margin-right:4px; }
}
@container (max-width: 410px) {
  .kd-directory .section-head { align-items:flex-start; flex-direction:column; gap:4px; }
  .kd-directory .kd-person .acts { gap:1px; }
  .kd-directory .kd-person .kd-action { width:31px; }
  .kd-directory .kd-labeled .kd-grant { width:42px; }
}
@media (max-width:600px) {
  .composer:has(> .kd-compact) { padding-inline:6px; gap:4px; }
  .composer:has(> .kd-compact) > textarea { flex:1 1 0; }
}

.tour-hl.kd-capsule-frame { visibility: hidden; }

/* One stationary caption panel between the page and the music player. */
body.touring #root.demo-root {
  overflow: clip;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
body.touring #root.demo-root.has-call {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}
#root > .tour-pop {
  position: relative;
  inset: auto;
  transform: none;
  animation: none;
  transition: none;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  justify-self: center;
  box-sizing: border-box;
  width: min(760px, calc(100% - 24px));
  height: min(172px, 31vh);
  margin: 8px 0;
  padding: 10px 16px;
  min-width: 0;
  min-height: 0;
}
#root > .tour-pop .tp-text {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#root > .tour-pop .tp-hint { margin-top: 4px; }
@media (max-width: 600px) {
  #root > .tour-pop { height: min(186px, 32vh); }
}
@media (max-height: 460px) {
  #root > .tour-pop {
    grid-template-areas: "who hint" "title title" "caption caption";
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: min(104px, 36vh);
    column-gap: 8px;
    margin: 4px 0;
    padding: 5px 12px;
  }
  #root > .tour-pop .tp-who { grid-area: who; font-size: 10px; }
  #root > .tour-pop .tp-title { grid-area: title; font-size: 15px; }
  #root > .tour-pop .tp-hint { grid-area: hint; margin: 0; font-size: 10px; }
  #root > .tour-pop .tp-text { grid-area: caption; }
}
