/* AI Companion task block (PhoneCallAITaskView.swift): sizes in px = pt. */
.ai-task { display: flex; flex-direction: column; align-items: stretch; padding: 16px; min-width: 0; }
/* inside a card row that is already inset 16 px (.card > .row + .row) — only the vertical inset */
.card > .row + .row > .ai-task { padding: 16px 0; }
.ait-title { font-size: 17px; font-weight: 600; line-height: 21px; color: var(--label); }
.ait-hint { font-size: 13px; line-height: 16px; color: var(--label); margin-top: 4px; }

/* task field: 84 high, text inset 16 left / 11 top */
.ait-box { position: relative; height: 84px; margin-top: 12px; border-radius: var(--r-m); border: 1px solid var(--card-border); background: var(--text-bg); cursor: text; }
.ait-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(66, 112, 192, .25); }
.ait-text { position: absolute; inset: 0 30px 0 0; width: calc(100% - 30px); height: 100%; resize: none; border: 0; outline: 0; background: transparent; padding: 10px 0 10px 15px; font-size: 15px; line-height: 19px; color: var(--label); overflow-y: auto; }
.ait-placeholder { position: absolute; top: 10px; left: 15px; right: 34px; font-size: 15px; line-height: 19px; color: var(--placeholder); pointer-events: none; user-select: none; }
.ait-clear { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--tertiary-label); display: flex; align-items: center; justify-content: center; }
.ait-clear:hover { color: var(--secondary-label); }

/* Start, progress, "● Ready to call" / "ⓘ You can add hints during the call." */
.ait-start-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 26px; min-width: 0; }
.ait-start { min-width: 96px; }
.ait-progress { width: 16px; height: 16px; }
.ait-spacer { flex: 1; }
.ait-status { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--label); }
.ait-status-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ait-status svg.ic { width: 15px; height: 15px; }
.ait-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--green); flex: none; }
.ait-error { font-size: 12px; line-height: 15px; color: var(--red); margin-top: 4px; }

/* Additional Information: accent at 6 %, corner l */
.ait-panel { margin-top: 12px; border-radius: var(--r-l); background: rgba(66, 112, 192, .06); padding: 16px; }
.ait-panel-head { display: flex; align-items: center; gap: 12px; height: 22px; margin-bottom: 14px; }
.ait-panel-icon { width: 22px; display: flex; justify-content: center; color: var(--accent); flex: none; }
.ait-panel-icon svg.ic { width: 20px; height: 20px; }
.ait-panel-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ait-panel-close { width: 22px; height: 22px; margin-right: -4px; border: 0; padding: 0; border-radius: 5px; background: none; color: var(--label); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ait-panel-close:hover { background: var(--hover-fill); }
.ait-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ait-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ait-caption { font-size: 13px; font-weight: 500; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ait-input-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ait-input { flex: 1; min-width: 0; height: 30px; border-radius: 6px; border: 1px solid var(--card-border); background: var(--text-bg); padding: 0 8px; font-size: 14px; outline: none; }
.ait-input::placeholder { color: var(--placeholder); }
.ait-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(66, 112, 192, .25); }
.ait-calendar { width: 24px; height: 24px; flex: none; border: 0; padding: 0; border-radius: 5px; background: none; color: var(--label); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ait-calendar:hover, .ait-calendar.open { background: var(--hover-fill); }
.ait-actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.ait-save { min-width: 96px; }
.ait-link { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer; }
.ait-link:hover { text-decoration: underline; }

/* date popover (NSDatePicker .clockAndCalendar, calendar part) */
.ait-cal { position: fixed; z-index: 55; background: var(--window-bg); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 8px; width: 196px; }
.ait-cal-head { display: flex; align-items: center; justify-content: space-between; height: 22px; padding: 0 2px 0 4px; margin-bottom: 4px; }
.ait-cal-month { font-size: 13px; font-weight: 600; }
.ait-cal-nav { display: flex; align-items: center; gap: 2px; }
.ait-cal-nav button { width: 18px; height: 18px; border: 0; padding: 0; border-radius: 4px; background: none; color: var(--label); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ait-cal-nav button:hover { background: var(--hover-fill); }
.ait-cal-nav .ait-cal-today::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.ait-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.ait-cal-wd { height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--secondary-label); }
.ait-cal-day { height: 24px; border: 0; padding: 0; border-radius: 12px; background: none; font-size: 12px; color: var(--label); cursor: pointer; font-variant-numeric: tabular-nums; }
.ait-cal-day:hover { background: var(--hover-fill); }
.ait-cal-day.other { color: var(--tertiary-label); }
.ait-cal-day.today { color: var(--red); font-weight: 600; }
.ait-cal-day.sel { background: var(--accent); color: #fff; font-weight: 600; }
.ait-cal-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (max-width: 600px) {
    .ait-fields { grid-template-columns: minmax(0, 1fr); }
}
