/* Utter — "try it right here": an HTML model of the Today screen and the speech balloon. Loaded only on the Utter page. */
.ut {
  --ut-paper: #f8f5fa; --ut-side: #f1ebf4; --ut-surface: #fff; --ut-wash: #efe8f2; --ut-wash2: #e6dcea; --ut-ink: #231a26; --ut-soft: #6c6070; --ut-faint: #9e92a2;
  --ut-rule: rgba(35,26,38,.09); --ut-berry: #a3195f; --ut-added: rgba(249,83,198,.16); --ut-ok: #2c8a60; --ut-mag: #f953c6; --ut-ber: #b91d73;
  height: 640px; display: grid; grid-template-columns: 210px minmax(0, 1fr); background: var(--ut-paper); color: var(--ut-ink); font-family: var(--font); text-align: left;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ut {
  --ut-paper: #140e16; --ut-side: #1a121c; --ut-surface: #1e1621; --ut-wash: #2a2030; --ut-wash2: #352940; --ut-ink: #f4eef5; --ut-soft: #b3a5b7; --ut-faint: #76687b;
  --ut-rule: rgba(255,255,255,.09); --ut-berry: #f58bd3; --ut-added: rgba(249,83,198,.22); --ut-ok: #62cf97; } }
:root[data-theme="dark"] .ut {
  --ut-paper: #140e16; --ut-side: #1a121c; --ut-surface: #1e1621; --ut-wash: #2a2030; --ut-wash2: #352940; --ut-ink: #f4eef5; --ut-soft: #b3a5b7; --ut-faint: #76687b;
  --ut-rule: rgba(255,255,255,.09); --ut-berry: #f58bd3; --ut-added: rgba(249,83,198,.22); --ut-ok: #62cf97; }
.ut button, .ut input { font: inherit; color: inherit; }
.ut [hidden] { display: none !important; }

.ut-side { background: var(--ut-side); border-right: 1px solid var(--ut-rule); display: flex; flex-direction: column; padding: 16px 10px 12px; min-height: 0; }
.ut-side .lights { padding-left: 8px; margin-bottom: 18px; }
.ut-brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 500; padding: 0 8px; margin-bottom: 14px; }
.ut-logo { width: 24px; height: 24px; border-radius: 7px 7px 7px 2px; background: linear-gradient(135deg, var(--ut-mag), var(--ut-ber)); position: relative; box-shadow: 0 2px 6px rgba(185,29,115,.35); }
.ut-logo::after { content: ""; position: absolute; left: 10.5px; top: 5px; width: 3px; height: 11px; border-radius: 2px; background: #fff; }
.ut-nav { display: grid; gap: 2px; }
.ut-nv { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-size: 13px; color: var(--ut-soft) !important; text-align: left; }
.ut-nv:hover { background: var(--ut-wash); }
.ut-nv[aria-current="true"] { background: var(--ut-wash2); color: var(--ut-ink) !important; }
.ut-nv .ic { width: 14px; text-align: center; font-size: 12px; }
.ut-nv .n { margin-left: auto; font-size: 11.5px; color: var(--ut-soft); }
.ut-status { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--ut-wash); font-size: 12px; }
.ut-status b { display: block; font-size: 12.5px; }
.ut-status small { color: var(--ut-soft); font-size: 11.5px; }
.ut-status .d { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--ut-ok); }
.ut-status .d.live { background: var(--ut-mag); animation: ut-pulse 1s ease-in-out infinite; }
@keyframes ut-pulse { 50% { transform: scale(1.6); opacity: .6; } }
.ut-key { display: inline-block; padding: 1px 6px; border-radius: 5px; background: var(--ut-surface); box-shadow: 0 0 0 1px var(--ut-rule), 0 1px 0 var(--ut-rule); font-size: 11px; font-weight: 600; color: var(--ut-ink); line-height: 1.5; white-space: nowrap; }

.ut-main { position: relative; display: grid; grid-template-rows: 46px minmax(0, 1fr); min-height: 0; overflow: hidden; }
.ut-bar { display: flex; align-items: center; padding: 0 22px; border-bottom: 1px solid var(--ut-rule); }
.ut-bar b { font-size: 14px; color: var(--ut-soft); }
.ut-scroll { overflow-y: auto; min-height: 0; outline: none; }
.ut-page { max-width: 680px; margin: 0 auto; padding: 26px 40px 30px; }
.ut-eye { font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ut-faint); margin: 0 0 8px; }
.ut-sent { font-family: var(--font); font-size: 27px; font-weight: 300; letter-spacing: -.01em; line-height: 1.28; margin: 0 0 8px; color: var(--ut-soft); text-wrap: pretty; }
.ut-sent b { font-weight: 500; color: var(--ut-ink); }
.ut-hint { margin: 0 0 22px; font-size: 12.5px; color: var(--ut-soft); line-height: 1.5; }
.ut-hint.small { font-size: 11.5px; color: var(--ut-faint); margin: -14px 0 22px; }
.ut-try { position: relative; min-height: 118px; padding: 16px 20px 46px; border-radius: 14px; background: var(--ut-surface); box-shadow: 0 0 0 1px var(--ut-rule); margin-bottom: 28px; cursor: text; outline: none; transition: box-shadow .2s; }
.ut-try:focus, .ut-try.on { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ut-mag) 60%, transparent), 0 0 0 4px color-mix(in srgb, var(--ut-mag) 16%, transparent); }
.ut-try .txt { font-size: 16px; line-height: 1.5; white-space: normal; }
.ut-try .ph { color: var(--ut-faint); }
.ut-try.on .ph { display: none; }
.ut-try .ph small { display: block; font-size: 12px; margin-top: 2px; }
.ut-caret { display: inline-block; width: 2px; height: 1.15em; vertical-align: -3px; margin-left: 1px; background: var(--ut-berry); animation: ut-blink 1s steps(1) infinite; }
.ut-try:not(:focus):not(.on) .ut-caret { opacity: .35; animation: none; }
@keyframes ut-blink { 50% { opacity: 0; } }
.ut-try .tools { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 8px; align-items: center; }
.ut-hold { border: 0; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: #fff !important; background: linear-gradient(135deg, var(--ut-mag), var(--ut-ber)); box-shadow: 0 3px 10px rgba(185,29,115,.3); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ut-hold.down { transform: scale(.96); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ut-mag) 25%, transparent); }
.ut-link { border: 0; background: none; padding: 2px 4px; cursor: pointer; font-size: 12.5px; color: var(--ut-berry) !important; font-weight: 500; }
.ut-dh { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--ut-rule); padding-bottom: 10px; margin-bottom: 4px; }
.ut-day { font-size: 19px; font-weight: 300; margin: 0; }
.ut-day small { font-size: 11.5px; color: var(--ut-faint); margin-left: 6px; font-weight: 400; }
.ut-page > .ut-day { margin: 26px 0 12px; }
.ut-q { padding: 16px 0; border-bottom: 1px solid var(--ut-rule); }
.ut-q .h { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ut-soft); }
.ut-q .h b { color: var(--ut-ink); font-weight: 600; }
.ut-app { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; color: #fff; font-size: 9px; font-weight: 700; flex: none; }
.ut-q p { margin: 8px 0 8px; font-size: 17px; line-height: 1.45; }
.ut-q p.mono, .ut-row p.mono { font-family: var(--font-mono); font-size: 14.5px; }
.ut-q s { color: var(--ut-faint); text-decoration-color: var(--ut-berry); }
.ut-q ins { text-decoration: none; background: var(--ut-added); border-radius: 3px; padding: 0 1px; }
.ut-q .f { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 11.5px; color: var(--ut-faint); }
.ut-wave { display: inline-flex; align-items: center; gap: 1.5px; height: 14px; width: 112px; }
.ut-wave i { flex: 1; background: var(--ut-faint); border-radius: 1px; min-height: 2px; }
.ut-chg { border: 0; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 500; cursor: pointer; background: var(--ut-wash); color: var(--ut-soft) !important; }
.ut-chg[aria-pressed="true"] { background: var(--ut-added); color: var(--ut-berry) !important; }

.ut-search input { width: 100%; box-sizing: border-box; height: 32px; border: 0; border-radius: 8px; padding: 0 12px; background: var(--ut-surface); box-shadow: 0 0 0 1px var(--ut-rule); font-size: 13px; }
.ut-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ut-rule); align-items: start; }
.ut-row time { font-size: 11.5px; color: var(--ut-faint); text-align: right; padding-top: 3px; }
.ut-row p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; }
.ut-row small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ut-soft); }
.ut-row .ut-wave { width: 84px; }
.ut-empty { color: var(--ut-faint); font-size: 13px; }
.ut-add { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--ut-surface); box-shadow: 0 0 0 1px var(--ut-rule); margin-bottom: 20px; }
.ut-add > span { color: var(--ut-faint); }
.ut-add input { flex: 1; min-width: 0; border: 0; background: none; height: 30px; font-size: 13px; outline: none; }
.ut-add em { font-style: normal; font-size: 11px; color: var(--ut-faint); border-left: 1px solid var(--ut-rule); padding-left: 8px; white-space: nowrap; }
.ut-add button { border: 0; border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 13px; color: #fff !important; background: linear-gradient(135deg, var(--ut-mag), var(--ut-ber)); cursor: pointer; }
.ut-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 26px; }
.ut-wchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--ut-wash); font-size: 13px; }
.ut-wchip em { font-style: normal; font-size: 12px; color: var(--ut-faint); }
.ut-wchip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--ut-faint) !important; line-height: 1; }
.ut-wchip button:hover { background: var(--ut-wash2); color: var(--ut-ink) !important; }
.ut-set { font-size: 16px; font-weight: 500; margin: 6px 0 2px; }
.ut-card { border-radius: 12px; background: var(--ut-wash); box-shadow: inset 0 0 0 1px var(--ut-rule); padding: 4px 14px; margin-bottom: 26px; font-size: 13px; }
.ut-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ut-rule); }
.ut-line:last-child { border-bottom: 0; }
.ut-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--ut-wash2); }
.ut-seg button { border: 0; background: none; padding: 4px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; color: var(--ut-soft) !important; white-space: nowrap; }
.ut-seg button[aria-checked="true"] { background: var(--ut-surface); color: var(--ut-ink) !important; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ut-seg button:disabled { cursor: default; }
.ut-say { margin: 8px 0 10px; font-size: 12px; color: var(--ut-faint); }
.ut-say i { color: var(--ut-soft); }
.ut-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.ut-mode { display: grid; align-content: start; gap: 6px; text-align: left; border: 0; border-radius: 10px; padding: 10px 12px; background: var(--ut-surface); box-shadow: 0 0 0 1px var(--ut-rule); cursor: pointer; font-size: 12.5px; }
.ut-mode b::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ut-faint); margin-right: 7px; vertical-align: -1px; }
.ut-mode.on { box-shadow: 0 0 0 1.5px var(--ut-ber); }
.ut-mode.on b::before { box-shadow: inset 0 0 0 3.5px var(--ut-mag); }
.ut-mode span { line-height: 1.4; }
.ut-mode span.mono { font-family: var(--font-mono); font-size: 11.5px; }
.ut-mode small { font-size: 10.5px; color: var(--ut-faint); line-height: 1.35; }
.ut-tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ut-rule); font-size: 13px; }
.ut-tog.dis span { color: var(--ut-faint); }
.ut-tog button { width: 30px; height: 18px; padding: 0; border: 0; border-radius: 9px; background: #c9c0cc; position: relative; cursor: pointer; flex: none; }
.ut-tog button::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s; }
.ut-tog button[aria-checked="true"] { background: var(--ut-ber); }
.ut-tog button[aria-checked="true"]::after { transform: translateX(12px); }
.ut-tog button:disabled { opacity: .45; cursor: default; }

/* The balloon at the caret */
.ut-balloon { position: absolute; z-index: 10; display: flex; align-items: flex-start; gap: 9px; min-width: 120px; padding: 11px 16px 12px 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--ut-surface) 96%, transparent); color: var(--ut-ink); font-size: 15px; line-height: 1.38; pointer-events: none;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--ut-mag) 70%, transparent), 0 10px 30px rgba(80,20,60,.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: ut-pop .22s var(--ease); --tail: 30px; }
@keyframes ut-pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.ut-balloon::after { content: ""; position: absolute; left: calc(var(--tail) - 8px); bottom: -8px; width: 14px; height: 14px; background: inherit; transform: rotate(45deg);
  box-shadow: 1.5px 1.5px 0 0 color-mix(in srgb, var(--ut-mag) 70%, transparent); border-bottom-right-radius: 3px; }
.ut-balloon.below::after { bottom: auto; top: -8px; box-shadow: -1.5px -1.5px 0 0 color-mix(in srgb, var(--ut-mag) 70%, transparent); border-radius: 3px 0 0 0; }
.ut-balloon .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--ut-ber); transform: scale(calc(.8 + var(--lvl, .2) * .9)); transition: transform .12s; }
.ut-balloon .said:empty::before { content: "Listening…"; color: var(--ut-faint); }
.ut-balloon .think { display: none; gap: 4px; align-self: flex-end; margin-left: 6px; padding-bottom: 4px; }
.ut-balloon .think i { width: 5px; height: 5px; border-radius: 50%; background: var(--ut-mag); animation: ut-dots 1s infinite; }
.ut-balloon .think i:nth-child(2) { animation-delay: .15s; } .ut-balloon .think i:nth-child(3) { animation-delay: .3s; }
@keyframes ut-dots { 50% { opacity: .25; } }
.ut-balloon.think .think { display: inline-flex; }
.ut-balloon.think .dot { background: color-mix(in srgb, var(--ut-mag) 45%, transparent); transform: none; }
.ut-balloon.think .said { color: var(--ut-soft); }
.ut-balloon.nothing { color: var(--ut-faint); }
.ut-balloon.nothing .dot { background: var(--ut-faint); transform: none; }
.ut-ok { position: absolute; z-index: 9; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--ut-ok); box-shadow: 0 2px 6px rgba(0,0,0,.25); animation: ut-pop .25s var(--ease); }

/* Under the window: what you'll say, and the mode */
.ut-shelf { max-width: 760px; margin: 16px auto 0; display: grid; gap: 8px; justify-items: center; text-align: center; }
.ut-shelf .row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.ut-shelf .lab { font-size: 13px; color: var(--muted); margin-right: 4px; }
.ut-shelf .chip { font-size: 13.5px; padding: 6px 12px; }
.ut-shelf .said { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--muted); max-width: 640px; }
.ut-shelf .ut-seg { --ut-wash2: color-mix(in srgb, var(--text) 7%, transparent); --ut-surface: var(--card); --ut-ink: var(--text); --ut-soft: var(--muted); }
.ut-shelf .ut-seg button { font-size: 13px; padding: 5px 12px; }

@media (prefers-reduced-motion: reduce) {
  .ut-balloon, .ut-ok, .ut-status .d.live, .ut-caret, .ut-balloon .think i { animation: none !important; }
}
@media (max-width: 900px) { .ut-page { padding: 22px 26px 26px; } .ut-modes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ut { height: 600px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .ut-side { flex-direction: row; align-items: center; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--ut-rule); gap: 8px; overflow-x: auto; }
  .ut-side .lights, .ut-status { display: none; }
  .ut-brand { margin: 0; padding: 0 4px; font-size: 15px; }
  .ut-logo { width: 20px; height: 20px; } .ut-logo::after { left: 8.5px; top: 4px; height: 9px; }
  .ut-nav { display: flex; }
  .ut-nv { padding: 5px 9px; white-space: nowrap; }
  .ut-nv .ic, .ut-nv .n { display: none; }
  .ut-main { grid-template-rows: minmax(0, 1fr); }
  .ut-bar { display: none; }
  .ut-page { padding: 18px 16px 22px; }
  .ut-sent { font-size: 21px; }
  .ut-q p { font-size: 15.5px; }
  .ut-row { grid-template-columns: 52px minmax(0, 1fr); }
  .ut-row .ut-wave { display: none; }
  .ut-add { flex-wrap: wrap; border-radius: 14px; padding: 6px 6px 6px 12px; }
  .ut-add em { border: 0; padding: 0; }
  .ut-balloon { font-size: 14px; }
  .ut-line { flex-wrap: wrap; }
}

/* Page bits the shared system doesn't have: the three modes, the balloon screenshots, the guide link under the FAQ */
.utx-modes { display: grid; grid-template-columns: 64px 1fr; gap: 14px 16px; margin: 6px 0 0; }
.utx-modes dt { font-weight: 700; color: var(--accent-ink); padding-top: 2px; }
.utx-modes dd { margin: 0; display: grid; gap: 4px; }
.utx-modes i { color: var(--muted); font-family: var(--font-serif); font-size: 15.5px; }
.utx-modes span { font-size: 16px; }
.utx-shot { margin: 0; display: grid; gap: 14px; }
.utx-shot img { width: 100%; max-width: 660px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.utx-shot figcaption { color: var(--muted); font-size: 14.5px; text-align: center; }
.utx-guide { margin: 26px 0 0; color: var(--muted); font-size: 15.5px; }
.utx-guide a { color: var(--text); font-weight: 600; }
