/* This tool's own component styles. The shared Kynship app surface (liquid glass on the backgrounds,
   Poppins titles, Geist body, floating top bar, sun/moon toggle, tables and fields) is
   static/kynship-app.css: keep that file identical across tools and do not edit it here. */

/* ── Notices and settings (forms: one labelled field per value) ───────── */
.notice-error { border-color: color-mix(in srgb, var(--rose) 40%, var(--line)); background: color-mix(in srgb, var(--rose) 7%, var(--panel)); }
.text-err { color: var(--rose); }
.hint { font-size: 12.5px; color: var(--fg-dim); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-lg { font-size: 15px; padding: 11px 20px; min-height: 44px; border-radius: var(--r-md); }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.settings-tabs { display: flex; align-items: center; gap: 12px; padding: 10px 6px 0; }
.settings-tabs-title { font-size: 13px; font-weight: 600; color: var(--fg-dim); }
.settings-tabs .seg { flex-wrap: wrap; }
.settings-tabs .seg-opt { min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 640px) { .settings-tabs-title { display: none; } }
.th-row { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--fill-2); align-items: start; }
.th-row:first-child { border-top: 0; padding-top: 4px; }
.th-text .hint { margin-top: 3px; }
.unit-input { display: flex; align-items: center; gap: 8px; }
.unit-input input { font: inherit; font-size: 15px; color: var(--fg); background: var(--field); border: 1px solid var(--line);
                    border-radius: var(--r-md); padding: 9px 12px; min-height: 44px; width: 100%; text-align: right; font-variant-numeric: tabular-nums; }
.unit-input input:focus-visible, .ch-input:focus-visible { outline: 2px solid var(--grn); outline-offset: 1px; }
.unit-input input[aria-invalid="true"], .ch-input[aria-invalid="true"] { border-color: var(--rose); }
.unit-input span { font-size: 13px; color: var(--fg-dim); white-space: nowrap; min-width: 4.5rem; }
.always { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.always li::before { content: "·"; color: var(--fg-faint); margin-right: 8px; }
.brand-cell { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; }
.brand-logo { width: 28px; height: 28px; border-radius: var(--r-sm); object-fit: contain; background: var(--fill); flex-shrink: 0; }
.ch-input { width: 100%; min-width: 12rem; min-height: 44px; }
@media (max-width: 640px) { .th-row { grid-template-columns: 1fr; } }

/* ── Seedings ─────────────────────────────────────────────────────────── */
.crumbs { font-size: 13px; color: var(--fg-dim); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--fg-dim); } .crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { color: var(--fg-faint); }
.section { margin-top: 32px; }
.empty { padding: 32px 24px; text-align: center; }
.wz-form { display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fld > span, .fld-legend { font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.fld small { font-size: 12.5px; color: var(--fg-dim); line-height: 1.45; }
.fld :is(input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea) {
  font: inherit; font-size: 15px; color: var(--fg); background: var(--field); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px 12px; min-height: 44px; width: 100%; }
.fld textarea { line-height: 1.5; resize: vertical; }
.fld :is(input, select, textarea):focus-visible { outline: 2px solid var(--grn); outline-offset: 1px; }
.fld [aria-invalid="true"] { border-color: var(--rose); }
.src { font-style: normal; font-weight: 500; font-size: 12px; color: var(--fg-dim); background: var(--fill); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.choice label { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; min-height: 44px; border-radius: var(--r-md);
                border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 14px; }
.choice label[hidden] { display: none; }
.choice label:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.choice b { display: block; font-weight: 600; } .choice small { display: block; color: var(--fg-dim); font-size: 12.5px; }
.brand-choice { max-height: 22rem; overflow-y: auto; padding: 2px; }
.btn-danger { background: var(--rose); border-color: var(--rose); color: #fff; }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: 8px; border-top: 1px solid var(--fill-2); }
.row:first-child { border-top: 0; }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 10px 14px 18px; min-height: 56px; color: var(--fg); }
.row-link:hover b { text-decoration: underline; text-underline-offset: 3px; }
.row-menu { position: relative; }
.st-app :is(.section, .panel, .row, .page-head):has(.row-menu[open]) { position: relative; z-index: 30; }
.row-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--fg-dim); cursor: pointer; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:hover, .row-menu[open] summary { background: var(--fill-2); color: var(--fg); }
.row-menu summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.row-menu .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 170px; padding: 4px; display: flex; flex-direction: column;
                  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); }
.row-menu .menu a { display: block; padding: 10px 12px; font-size: 14px; color: var(--fg); border-radius: var(--r-sm); }
.row-menu .menu a:hover { background: var(--fill); }
.row-menu .menu .is-danger { color: var(--rose); }
.stages { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 18px; margin: 0 0 16px; font-size: 13.5px; color: var(--fg-faint); }
.stages li { display: inline-flex; align-items: center; gap: 8px; }
.stages .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.stages .is-done { color: var(--fg-dim); } .stages .is-done .dot { background: currentColor; }
.stages .is-current { color: var(--fg); font-weight: 600; } .stages .is-current .dot { background: var(--grn); border-color: var(--grn); }
.next { padding: 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.next p { font-size: 15px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 16px; }
.stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--fg-dim); }
