/* voicetask.app/try/ — the parser demo. Only what site.css doesn't have: the input side of the stage,
   the card chips the app shows (due, repeat, priority, project, person, reminder) and the page's states.
   Colours are the app's roles (app/src/ui/tokens.js). */

.try-hero .hero-head { max-width: 820px; }
.try-crumbs { margin: 0 0 18px; font-size: .875rem; color: var(--ink-3); }
.try-crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--outline); text-underline-offset: 3px; }
.try-hero h1 { font-size: clamp(2.375rem, 5.2vw, 4.25rem); }

/* Input: the "said" half of the stage */
.try { margin-top: clamp(40px, 5vw, 56px); }
.try-in { display: flex; flex-direction: column; }
.try-in .stage-status { margin-bottom: 14px; }
.try-text { display: block; width: 100%; min-height: 12.5em; flex: 1; resize: vertical; margin: 0; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  font-family: var(--said); font-style: italic; font-size: 1.25rem; line-height: 1.42; letter-spacing: -.006em; color: var(--ink); }
.try-text:lang(ja), .try-text:lang(ar), .try-text:lang(hi) { font-family: var(--sans); font-style: normal; font-size: 1.0625rem; }
.try-text::placeholder { color: var(--ink-3); }
.try-text:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.try-text:disabled { color: var(--ink-3); background: var(--panel); }
.try-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.try-len { color: var(--ink-3); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.try-go { appearance: none; border: 0; cursor: pointer; padding: 12px 22px; border-radius: 999px; background: var(--primary); color: var(--on-primary);
  font: 600 .9375rem/1.2 var(--sans); transition: opacity .15s; }
.try-go:hover { opacity: .88; }
.try-go:disabled { cursor: default; opacity: .45; }
.try-fine { margin-top: 12px; color: var(--ink-3); font-size: .8125rem; line-height: 1.5; text-wrap: pretty; }
.try-left { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.try-rest { margin-top: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.try-rest[hidden] { display: none; }
.try-rest b { color: var(--ink); font-weight: 600; }
.try-rest .stores { justify-content: flex-start; margin-top: 14px; gap: 10px; }
.try-rest .store { height: 46px; padding: 0 16px 0 12px; font-size: .9375rem; }

/* Output: the "filed" half */
.try-out .cards { min-height: 0; flex: 0 1 auto; margin-bottom: 16px; }
.try-tag { display: inline-block; margin-inline-end: 8px; padding: 1px 8px; border-radius: 6px; background: var(--panel); color: var(--ink-2); font-size: .75rem; font-weight: 600; }
.try-tag[hidden] { display: none; }
.try-out .card > div { min-width: 0; }
.try-out .card b { overflow-wrap: anywhere; }
.card .det { display: block; margin-top: 3px; color: var(--ink-2); font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.chips .chip { margin-top: 0; }
.chip-info { background: var(--pc); color: var(--on-pc); }
.chip-neutral { background: var(--panel); color: var(--ink-2); }
.chip-warn { background: #FEF3C7; color: #92400E; }
.chip-danger { background: #FEE2E2; color: #991B1B; }
.ring-urgent { border-color: #C52020; } .ring-high { border-color: #E2530A; }
.ring-note, .ring-project { border: 0; color: var(--live); } .ring-note svg, .ring-project svg { width: 24px; height: 24px; }
.card.is-note { background: var(--wash); }
.try-msg { margin: -4px 0 16px; color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.try-msg[hidden] { display: none; }
.try-keep { display: block; margin-top: auto; text-decoration: none; }
.try-keep:hover { opacity: .88; }
.try.is-live .cards { opacity: .45; transition: opacity .2s; }

/* Examples: the language bar of the home stage, reused */
.try-bar { gap: 4px; }
.try-bar-label { padding: 6px 10px 6px 4px; font-size: .875rem; color: var(--ink-3); font-weight: 500; }
.try-bar button:disabled { cursor: default; opacity: .5; }
.try-note { max-width: 760px; margin: 18px auto 0; text-align: center; text-wrap: balance; }

/* Below the tool */
.try-how .rows { max-width: 920px; margin-top: 32px; }
.try-how .rows > div { grid-template-columns: minmax(0, 15em) minmax(0, 1fr); }
.try-how .said { font-family: var(--said); font-style: italic; font-size: 1.06em; color: var(--ink); }
.try-diff { max-width: 920px; }
.try-diff p { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; max-width: 46em; text-wrap: pretty; }
.try-diff h2 + p { margin-top: 18px; }

@media (max-width: 760px) {
  .try-text { min-height: 9em; font-size: 1.125rem; }
  /* One column: the examples sit right under the box they fill, before the result. */
  .try-in { order: 0; border-bottom: 0; }
  .try-bar { order: 1; padding: 0 14px 16px; border-top: 0; border-bottom: 1px solid var(--line); background: var(--wash); }
  .try-out { order: 2; }
  .try-bar-label { width: 100%; padding: 0 6px 2px; }
}
@media (max-width: 480px) {
  .try-how .rows > div { grid-template-columns: minmax(0, 1fr); }
  .try-row { flex-wrap: wrap; }
  .try-go { flex: 1; }
}
