/* Form controls for the instruments that take input (v22.2.0): downloads,
   research, notes, to-do lists, lookup, site intel, skills, the YouTube
   search. Shared by the web HUD (index.html) and the phone's carrier
   (panel.html), so a control is one control on both faces. */
.wgt-input { width: 100%; box-sizing: border-box; margin: 6px 0; padding: 10px 12px; font: 15px/1.3 var(--sans, -apple-system, system-ui, sans-serif);
  color: #eaffff; background: rgba(110,231,255,.06); border: 1px solid rgba(110,231,255,.28); border-radius: 10px; outline: none; -webkit-appearance: none; appearance: none; }
.wgt-input::placeholder { color: rgba(154,220,255,.45); }
.wgt-input:focus { border-color: #6ee7ff; box-shadow: 0 0 0 2px rgba(110,231,255,.15); }
textarea.wgt-input { min-height: 120px; resize: vertical; line-height: 1.4; }
select.wgt-input { padding-right: 28px; }
.wgt-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.wgt-row > .wgt-input { margin: 0; flex: 1; min-width: 0; }
.wgt-row > .wgt-btn { flex: 1; }
.wgt-row > .wgt-btn.fit { flex: none; }
.wgt-btn.small { padding: 8px 10px; font-size: 12px; }
.wgt-btn.ghost { background: none; }
.wgt-btn.wide { display: block; width: 100%; box-sizing: border-box; margin: 6px 0; }
.wgt-text { font: 14px/1.5 var(--sans, -apple-system, system-ui, sans-serif); color: #d8f4ff; white-space: pre-wrap; word-break: break-word; margin: 8px 0; }
.wgt-text.small { font-size: 12.5px; color: rgba(216,244,255,.85); }
.wgt-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 2px; border-bottom: 1px solid rgba(110,231,255,.08); font: 13.5px/1.35 var(--sans, -apple-system, system-ui, sans-serif); color: #cfeeff; cursor: pointer; }
.wgt-item .t { flex: 1; min-width: 0; }
.wgt-item .t b { display: block; color: #eaffff; font-weight: 600; }
.wgt-item .t small { display: block; color: rgba(154,220,255,.7); font-size: 11px; letter-spacing: .04em; margin-top: 2px; }
.wgt-item .x { background: none; border: none; color: rgba(154,220,255,.6); font-size: 15px; padding: 2px 6px; cursor: pointer; flex: none; }
.wgt-item .tick { font-size: 17px; flex: none; width: 1.3em; text-align: center; }
.wgt-item.done .t { opacity: .5; text-decoration: line-through; }
.wgt-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.wgt-tabs::-webkit-scrollbar { display: none; }
.wgt-tab { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(110,231,255,.3); color: #9adcff; font: 600 11px var(--mono, ui-monospace, monospace); letter-spacing: .12em; cursor: pointer; white-space: nowrap; background: none; }
.wgt-tab.on { background: rgba(110,231,255,.2); color: #eaffff; border-color: #6ee7ff; }
.wgt-thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; background: #000; }
.wgt-badge { font: 600 9px var(--mono, ui-monospace, monospace); letter-spacing: .14em; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(110,231,255,.35); color: #6ee7ff; white-space: nowrap; flex: none; }
.wgt-badge.warn { color: #ffc46b; border-color: rgba(255,196,107,.5); }
.wgt-badge.ok { color: #9dffb0; border-color: rgba(157,255,176,.5); }
.wgt-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font: 12px/1.35 var(--mono, ui-monospace, monospace); color: #cfeeff; margin: 6px 0; word-break: break-word; }
.wgt-kv span:nth-child(odd) { color: rgba(154,220,255,.6); letter-spacing: .14em; font-size: 10px; padding-top: 2px; }
.wgt-section { margin: 14px 0 4px; font: 600 9px var(--mono, ui-monospace, monospace); letter-spacing: .3em; color: #6ee7ff; }
.wgt-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wgt-media { width: 100%; max-height: 38vh; max-height: min(38vh, 320px); border-radius: 8px; background: #000; display: block; margin: 8px 0; object-fit: contain; }
.wgt-status { font: 11px var(--mono, ui-monospace, monospace); letter-spacing: .18em; color: rgba(154,220,255,.75); text-align: center; margin: 8px 0; min-height: 14px; word-break: break-word; }
.wgt-status.bad { color: #ffc46b; }
.wgt-link { color: #6ee7ff; text-decoration: none; border-bottom: 1px solid rgba(110,231,255,.35); }
.wgt-status:empty { display: none; }
/* The selfie instrument (v22.3.0): a square viewfinder, mirrored on the
   glass, the shutter ring over it, and the strip of what has been kept. */
.wgt-finder { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 60vh; border-radius: 12px; overflow: hidden; background: #000; margin: 8px 0; }
.wgt-finder video, .wgt-finder img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* display:block above outranks the UA's [hidden] rule — without this the
   dark video sat over the kept picture and the still read as black. */
.wgt-finder video[hidden], .wgt-finder img[hidden], .wgt-finder .wgt-shutter[hidden] { display: none; }
.wgt-finder video.mirror { transform: scaleX(-1); }
.wgt-shutter { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); width: 66px; height: 66px; border-radius: 50%; border: 4px solid #eaffff; background: rgba(255,255,255,.16); box-shadow: 0 0 0 3px rgba(0,0,0,.4); cursor: pointer; padding: 0; }
.wgt-shutter:active { background: rgba(255,255,255,.6); }
.wgt-strip { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.wgt-strip::-webkit-scrollbar { display: none; }
.wgt-strip:empty { display: none; }
.wgt-strip img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; background: #000; border: 1px solid rgba(110,231,255,.2); cursor: pointer; }
.wgt-strip img.today { border-color: #9dffb0; }
input[type="time"].wgt-input { color-scheme: dark; }
