/* The owner's screens (/app/): lists, the roster table, forms, the paste sheet. Colours are the
   custom properties from /theme.css and site.css; touch targets are at least 44px. */

.page.wide { max-width: 44rem; }
.page > * + * { margin-top: 16px; }
.who { font-size: 0.8125rem; opacity: 0.9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 0; text-align: right; }
.linkish { background: none; border: 0; color: inherit; font: inherit; font-size: 0.8125rem; text-decoration: underline; min-height: 44px; padding: 0 8px; cursor: pointer; }

h3 { font-family: var(--display); font-size: 1rem; margin: 20px 0 8px; color: var(--ink); }
.card > h3:first-child { margin-top: 0; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--line); }
.row-link { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; min-height: 48px; text-decoration: none; color: inherit; }
.row-link strong { color: var(--brand); }
.game { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; }
.game > div:first-child { display: flex; flex-direction: column; min-width: 0; flex: 1 1 14rem; }
.row-actions { display: flex; gap: 8px; }

.field { margin-bottom: 12px; }
.hint { margin: 4px 0 0; font-size: 0.875rem; color: var(--ink-soft); }
input[type="text"], input[type="date"], input[type="time"], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8b99a4; border-radius: 6px; background: #fff; font: inherit; font-size: 16px; color: inherit; }
textarea { min-height: 8rem; font-family: ui-monospace, Menlo, monospace; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; padding: 8px 0; min-height: 44px; }
.choice input { flex: none; width: 24px; height: 24px; margin: 0; }
.consent { margin-left: 34px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.btn.small { min-height: 44px; padding: 6px 12px; }
.btn.danger { background: var(--danger); }

.table-wrap { overflow-x: auto; }
table.roster { width: 100%; border-collapse: collapse; }
table.roster th { text-align: left; font-size: 0.8125rem; color: var(--ink-soft); padding: 4px 4px 4px 0; }
table.roster td { padding: 4px 4px 4px 0; vertical-align: top; }
table.roster td.num { width: 4.25rem; }
table.roster td.act { width: 3.25rem; text-align: right; }
table.roster input { min-height: 44px; }
table.roster td.num input { text-align: center; padding: 10px 4px; }
.field-error { margin: 2px 0 0; font-size: 0.875rem; color: var(--danger); }
.preview-table tr.bad td { background: #fbeeec; }

dialog.sheet { width: min(36rem, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 20px; color: var(--ink); }
dialog.sheet::backdrop { background: rgb(0 0 0 / 0.45); }
dialog.sheet > * + * { margin-top: 12px; }

.game > .share { flex: 1 1 100%; padding: 4px 0 8px; }
.share .share-url { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8b99a4; border-radius: 6px; font: inherit; font-size: 16px; margin: 8px 0; }
.row-actions { flex-wrap: wrap; }
