:root {
  --paper: #F5F1E6;
  --paper-card: #FBF8F0;
  --white: #FFFFFF;
  --ink: #2A2723;
  --ink-sub: #5B554C;
  --rule: #CFC6B4;
  --rule-strong: #8C8170;
  --leaf: #2F5D3A;
  --leaf-dark: #234A2D;
  --leaf-pale: #E3ECDD;
  --shu: #A0452E;
  --info: #2F5B7A;
  --info-pale: #E6EEF2;
  --recording: #B3261E;
  --recording-dark: #8C1D18;
  --recording-pale: #FCEEEE;
  --danger: #B42318;
  --danger-pale: #FFF3F1;
  --focus: #005FCC;
  --warning: #B26A00;
  --warning-ink: #5F3B00;
  --warning-pale: #FFF7DF;
  --muted-rule: #B8C1BA;
  --info-rule: #A9BED0;
  --backdrop: rgb(42 39 35 / 45%);
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; margin: 0; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, .link-button {
  min-height: 48px; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 10px 16px;
  color: var(--ink); background: var(--paper-card); font-weight: 700; line-height: 1.35; cursor: pointer;
}
button:hover:not(:disabled), .link-button:hover { background: var(--leaf-pale); }
button:disabled { cursor: not-allowed; opacity: .58; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.button-primary { border-color: var(--leaf); color: var(--white); background: var(--leaf); }
.button-primary:hover:not(:disabled) { background: var(--leaf-dark); }
.button-danger { border-color: var(--danger); color: var(--white); background: var(--danger); }
.button-block { display: block; width: 100%; }
.app-shell { width: min(100%, 720px); margin: 0 auto; padding: 16px; }
.app-header { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); }
.app-header__brand, .app-header__back { color: var(--ink); font-weight: 700; text-decoration: none; }
.app-header__brand { display: inline-flex; align-items: center; min-height: 44px; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif; font-size: 22px; }
.app-header__brand rt { font-size: 11px; }
.app-header__back { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 8px 12px; background: var(--paper-card); }
.app-header__back:hover { background: var(--leaf-pale); }
.app-header__coop { min-width: 0; margin-left: auto; overflow-wrap: anywhere; color: var(--ink-sub); font-size: 17px; font-weight: 700; text-align: right; }
.app-header__logout { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; font-size: 18px; }
.test-mode-banner { margin-bottom: 16px; border-left: 4px solid var(--info); padding: 8px 12px; color: var(--info); background: var(--info-pale); font-size: 17px; font-weight: 700; }
.page-title { margin: 8px 0; font-size: 28px; line-height: 1.35; }
.page-title[tabindex="-1"]:focus, .section-title[tabindex="-1"]:focus { outline: none; }
.login-page .page-title, .home-title { font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif; }
.section-title { margin: 24px 0 8px; font-size: 22px; line-height: 1.4; }
.lead, .help-text, .field-help { color: var(--ink-sub); }
.lead { margin: 0 0 24px; }
.help-text, .field-help { margin: 8px 0 0; font-size: 17px; }
.card { border: 1px solid var(--rule); border-radius: 6px; padding: 16px; background: var(--paper-card); }
.action-card { width: 100%; min-height: 112px; border: 1px solid var(--leaf); border-radius: 6px; padding: 16px; color: var(--white); background: var(--leaf); text-align: left; }
.action-card:hover:not(:disabled) { background: var(--leaf-dark); }
.action-card__title, .action-card__description { display: block; }
.action-card__title { margin-bottom: 4px; font-weight: 700; }
.action-card__description { font-size: 17px; font-weight: 400; }
.action-list { display: grid; gap: 16px; }
.secondary-action + .secondary-action { margin-top: 12px; }
.secondary-action + .action-list { margin-top: 16px; }
.home-talk { margin: 8px 0 24px; }
.talk-crop-list { display: grid; gap: 12px; }
.talk-crop-button { width: 100%; min-height: 64px; border: 2px solid var(--leaf); color: var(--leaf); font-size: 20px; }
.crop-card { display: grid; gap: 8px; margin: 12px 0; }
.crop-card h2, .crop-card p { margin: 0; }
.small-link { display: inline-block; min-height: 44px; padding: 8px 0; color: var(--leaf); font-weight: 700; }
.voice-recorder { display: grid; justify-items: center; gap: 10px; margin: 24px 0; text-align: center; }
.voice-recorder__start { width: 96px; height: 96px; min-height: 96px; border: 0; border-radius: 50%; color: var(--white); background: var(--recording); font-size: 20px; font-weight: 700; }
.voice-recorder__start:hover:not(:disabled), .voice-recorder__start:focus-visible:not(:disabled) { color: var(--white); background: var(--recording-dark); }
.voice-recorder__stop { width: min(100%, 320px); border: 2px solid var(--recording); color: var(--recording); background: var(--paper-card); font-size: 20px; }
.voice-recorder__stop:hover:not(:disabled), .voice-recorder__stop:focus-visible:not(:disabled) { color: var(--recording); background: var(--recording-pale); }
.voice-recorder__start.is-disabled { opacity: .45; cursor: not-allowed; }
.voice-recorder__start.is-disabled:hover { color: var(--white); background: var(--recording); }
.voice-recorder__elapsed { margin: 0; color: var(--recording); font-size: 22px; font-weight: 700; }
.voice-recorder__elapsed::before { content: '● '; }
.talk-dock { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 12px; margin: 24px -16px 0; border-top: 1px solid var(--rule-strong); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); }
.talk-dock__guide { flex: 1 1 0; min-width: 0; margin: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.talk-dock .voice-recorder--compact { flex: 0 0 auto; display: grid; justify-items: end; gap: 4px; margin: 0; text-align: right; }
.talk-dock .voice-recorder--compact .voice-recorder__start { width: 72px; height: 72px; min-height: 72px; flex: 0 0 72px; }
.talk-dock .voice-recorder--compact .voice-recorder__stop { width: auto; min-width: 144px; }
.talk-dock .voice-recorder--compact .voice-recorder__elapsed { font-size: 20px; }
.talk-dock .voice-recorder--compact .status-message { margin: 0; max-width: 280px; font-size: 17px; text-align: left; }
.talk-dock__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.talk-dock__actions button { min-width: 0; }
.talk-dock--stopped { display: grid; }
.talk-dock--stopped .voice-recorder--compact { width: 100%; justify-items: start; text-align: left; }
.talk-dock--recording .voice-recorder--compact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; width: 100%; text-align: left; }
.talk-dock--recording .voice-recorder--compact > [aria-live] { grid-column: 1 / -1; }
.talk-dock--recording .voice-recorder__elapsed { grid-column: 1; justify-self: start; }
.talk-dock--recording .voice-recorder__stop { grid-column: 2; justify-self: end; }
.talk-selection-summary { margin: 16px 0; border-bottom: 1px solid var(--rule); padding-bottom: 12px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.talk-hints h2 { margin: 0; font-size: 17px; font-weight: 700; }
.talk-hints p { margin: 0; font-size: 17px; }
.talk-more-hours { margin: 8px 0; }
.talk-not-today { margin-bottom: 16px; }
.talk-more-hours + p { margin-top: 16px; }
.recent-records { margin-top: 24px; }
.recent-records__list { display: grid; gap: 12px; }
.recent-records__card { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.recent-records__card:hover { background: var(--leaf-pale); }
.recent-records__crop { font-size: 18px; }
.recent-records__summary, .recent-records__meta { margin: 0; }
.recent-records__summary { overflow: hidden; font-size: 17px; white-space: nowrap; text-overflow: ellipsis; }
.recent-records__meta { color: var(--ink-sub); font-size: 17px; font-variant-numeric: tabular-nums; }
.recent-records__meta .status-badge { margin: 0; }
.recent-records__all { display: flex; min-height: 44px; align-items: center; justify-content: center; margin-top: 12px; text-decoration: none; }
.secondary-action { margin-top: 24px; }
.logout-bottom { width: 100%; margin-top: 32px; }
.home-footer { margin-top: 24px; }

.question-list { display: grid; gap: 8px; }
.question-card { display: block; color: inherit; text-decoration: none; }
.question-card__text { display: -webkit-box; font-size: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.question-card__keys, .question-card__answers { margin: 8px 0 0; font-size: 17px; }
.question-card .status-badge { display: inline-block; margin-top: 8px; }
.question-notice { display: block; }
.question-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.question-tabs button { flex: 1; }
.question-close { margin-top: 24px; }
.question-answer-card { display: block; color: inherit; text-decoration: none; margin-bottom: 8px; }
.home-footer__link { display: flex; width: 100%; align-items: center; justify-content: center; text-decoration: none; }
.login-scene { min-height: 100dvh; padding: 16px; background-color: var(--paper); background-image: var(--scene-image, none); background-position: center bottom; background-size: cover; }
.login-page { width: min(100%, 480px); margin: 16px auto 0; padding: 0; }
.login-page__brand { margin: 0 0 8px; font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif; font-size: 28px; line-height: 1.35; }
.login-page__brand rt { font-size: 14px; }
.login-page .card { margin-top: 16px; }
.guest-login { display: grid; gap: 16px; }
.guest-login .section-title { margin: 0; }
.guest-login .lead { margin: 0; }
.guest-login .help-text { margin: 0; }
.guest-login .status-message { margin: 0; }
.form-stack { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; }
.text-input { width: 100%; min-height: 48px; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 10px 12px; color: var(--ink); background: var(--paper-card); }
.password-row { display: flex; align-items: stretch; gap: 8px; }
.password-row .text-input { min-width: 0; }
.password-toggle { flex: 0 0 auto; min-height: 48px; padding: 8px 12px; font-size: 18px; }
.status-message { margin: 16px 0; border-left: 4px solid var(--info); padding: 12px; color: var(--info); background: var(--info-pale); }
.status-message--error { border-color: var(--danger); color: var(--danger); background: var(--danger-pale); }
.status-message--success { border-color: var(--leaf); color: var(--leaf); background: var(--leaf-pale); }
.input-error { margin: 0; color: var(--danger); font-size: 17px; font-weight: 700; }
.login-actions { display: grid; gap: 8px; }
.confirm-dialog { width: min(100%, 480px); border: 0; border-radius: 8px; padding: 0; color: var(--ink); background: transparent; }
.confirm-dialog::backdrop { background: var(--backdrop); }
.dialog-card { border: 1px solid var(--rule); border-radius: 8px; padding: 24px 16px 16px; background: var(--paper-card); }
.dialog-card h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.4; }
.dialog-card p { margin: 0 0 24px; }
.dialog-actions { display: grid; gap: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 16px 0 24px; padding: 0; list-style: none; }
.progress-steps li { border-bottom: 4px solid var(--muted-rule); padding: 4px 2px 8px; color: var(--ink-sub); font-size: 16px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.progress-steps .is-current { border-color: var(--leaf); color: var(--leaf); }
.progress-current { margin: -16px 0 24px; font-size: 18px; font-weight: 700; }
.record-form { display: grid; gap: 20px; }
.record-actions { display: grid; gap: 8px; margin-top: 8px; }
.record-actions--split { grid-template-columns: 1fr; }
.select-input { width: 100%; min-height: 48px; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 10px 12px; color: var(--ink); background: var(--paper-card); }
.text-area { width: 100%; min-height: 160px; resize: vertical; }
.character-count { margin: 0; color: var(--ink-sub); font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.inline-card { margin: 0; }
.info-card { border-left: 4px solid var(--info); padding: 12px; color: var(--info); background: var(--info-pale); }
.warning-card { border-left: 4px solid var(--warning); padding: 12px; color: var(--warning-ink); background: var(--warning-pale); }
.notice-card { display: grid; gap: 12px; border: 1px solid var(--rule); border-radius: 6px; padding: 16px; background: var(--paper-card); }
.speech-controls { display: grid; gap: 8px; }
.speech-button { position: relative; }
.recording-dot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: var(--danger); }
.interim-text { min-height: 48px; margin: 0; border: 1px solid var(--info-rule); border-radius: 6px; padding: 10px 12px; color: var(--info); background: var(--info-pale); white-space: pre-wrap; }
.original-details { border: 1px solid var(--rule); border-radius: 6px; padding: 0 16px; background: var(--paper-card); }
.original-details summary { min-height: 48px; padding: 12px 0; font-weight: 700; cursor: pointer; }
.original-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.repeat-fields { display: grid; gap: 12px; }
.selection-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.talk-start-hours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.talk-start-hours .selection-chip { min-width: 0; padding-inline: 4px; }
.selection-chip { min-height: 44px; border-radius: 6px; padding: 8px 14px; font-size: 18px; }
.selection-chip.is-selected { border: 2px solid var(--leaf); background: var(--leaf-pale); color: var(--leaf); }
.selection-chips--small .selection-chip { min-height: 40px; padding: 6px 12px; font-size: 17px; }
.repeat-row { display: grid; gap: 8px; }
.summary-card { display: grid; gap: 4px; }
.summary-card h2 { margin: 0; font-size: 18px; }
.summary-card p { margin: 0; overflow-wrap: anywhere; }
.suggestion-card { display: grid; gap: 12px; border: 2px solid var(--leaf); border-radius: 6px; padding: 16px; background: var(--leaf-pale); }
.ask-form { display: grid; gap: 20px; }
.ask-result { display: grid; gap: 16px; margin-top: 32px; }
.coverage-card { border-left: 4px solid var(--leaf); padding: 12px; background: var(--leaf-pale); }
.coverage-card--partial { border-color: var(--warning); color: var(--warning-ink); background: var(--warning-pale); }
.coverage-card--none { border-color: var(--rule-strong); color: var(--ink-sub); background: var(--paper); }
.coverage-card h3, .coverage-card p { margin: 0; }
.coverage-card p { margin-top: 4px; }
.answer-card { white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-result__asked { display: grid; gap: 8px; }
.ask-result__asked p { margin: 0; overflow-wrap: anywhere; }
.ask-result__asked button { justify-self: start; }
.answer-card { font-size: 20px; line-height: 1.7; }
.record-evidence { display: grid; gap: 12px; }
.record-evidence__card { display: grid; gap: 8px; }
.record-evidence__card h3, .record-evidence__card p { margin: 0; }
.record-evidence__more { display: grid; gap: 12px; }
.basics-card { margin: 16px 0; border: 1px dashed var(--rule-strong); border-radius: 6px; padding: 16px; background: var(--paper); overflow-wrap: anywhere; }
.basics-card h3 { margin: 0; font-size: 18px; }
.basics-card__help { margin: 8px 0 0; color: var(--ink-sub); font-size: 17px; }
.basics-card__flow { margin: 12px 0; font-size: 18px; line-height: 1.8; }
.basics-card__current { font-weight: 700; }
.basics-card__details summary { cursor: pointer; font-weight: 700; }
.basics-card__details ol { display: grid; gap: 8px; padding-left: 28px; }
.basics-card__detail-current { padding: 4px 8px; background: var(--leaf-pale); }
.basics-card__current-note { display: block; color: var(--leaf); font-size: 17px; font-weight: 700; }
.basics-card__none { margin: 12px 0 0; font-weight: 700; }
.basics-step-list { display: grid; gap: 12px; margin-top: 16px; }
.basics-step-card { display: grid; gap: 12px; }
.basics-step-card__title { margin: 0; font-size: 20px; line-height: 1.4; }
.basics-step-card__text { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.basics-step-card__toggle { width: 100%; }
.kodawari-experience { margin: 0 0 8px; font-size: 17px; }
.kodawari-section { margin-top: 24px; }
.kodawari-section__title { margin: 0; font-size: 22px; line-height: 1.4; }
.kodawari-section__description { margin: 4px 0 12px; font-size: 17px; }
.kodawari-card { display: grid; gap: 8px; margin: 12px 0; overflow-wrap: anywhere; }
.kodawari-card__pattern { margin: 0; font-size: 18px; line-height: 1.5; }
.kodawari-card__line { margin: 0; font-size: 17px; }
.kodawari-card__evidence summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.kodawari-evidence { display: grid; gap: 4px; margin: 8px 0; border: 1px solid var(--rule); border-radius: 6px; padding: 12px; }
.kodawari-evidence p { margin: 0; }
.kodawari-evidence__title { font-weight: 700; }
.kodawari-evidence__heading { margin: 16px 0 4px; font-size: 17px; }
.kodawari-question, .kodawari-ask { display: grid; gap: 8px; border-radius: 12px; padding: 12px; }
.kodawari-question { background: var(--leaf-pale); }
.kodawari-ask { border: 1px solid var(--rule); background: var(--paper-card); }
.kodawari-question__text { margin: 0; font-size: 18px; font-weight: 700; }
.kodawari-question__choices { display: grid; gap: 8px; }
.kodawari-choice { width: 100%; min-height: 48px; background: var(--paper-card); }
.kodawari-answered { display: grid; gap: 4px; }
.kodawari-answered p { margin: 0; }
.kodawari-answered__text { font-size: 18px; font-weight: 700; }
.weather-card { display: grid; gap: 4px; }
.weather-card p { margin: 0; }
.work-when-picker { display: grid; gap: 12px; margin-top: 8px; }
.work-when-picker .field { gap: 8px; }
.when-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.when-summary p { margin: 0; font-weight: 700; }
.button-small { min-height: 44px; padding: 6px 12px; font-size: 17px; }
.app-shell summary { min-height: 44px; padding: 10px 0; line-height: 1.35; cursor: pointer; }
.work-weather-card { overflow-wrap: anywhere; }
.work-weather-card > p { margin: 0; }
.work-weather-hourly { display: grid; gap: 6px; margin-top: 8px; }
.work-weather-hourly summary { cursor: pointer; font-weight: 700; }
.work-weather-hourly p { margin: 0; overflow-wrap: anywhere; }
.weather-attribution { color: var(--ink-sub); font-size: 15px; line-height: 1.5; }
.work-weather-details { display: grid; gap: 8px; }
.work-weather-details summary { cursor: pointer; font-weight: 700; }
.check-summary { font-size: 20px; line-height: 1.65; }
.check-weather, .detail-meta { font-size: 18px; overflow-wrap: anywhere; }
.check-question { display: grid; gap: 12px; background: var(--leaf-pale); }
.check-question__text { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.6; }
.home-task-list { display: grid; gap: 12px; margin: 16px 0; }
.home-task-processing { margin: 0; color: var(--ink-sub); font-size: 17px; }
.home-scene-band { height: 64px; margin: 0 0 8px; border-radius: 6px; background-color: var(--paper); background-image: var(--scene-image, none); background-position: center 60%; background-size: cover; }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-action { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--rule-strong); color: var(--ink); background: var(--paper-card); }
.home-actions .home-action { min-height: 64px; font-size: 20px; }
.home-more { margin-top: 16px; border: 1px solid var(--rule); border-radius: 6px; padding: 0 16px; background: var(--paper-card); }
.home-more summary { min-height: 48px; padding: 12px 0; font-size: 20px; font-weight: 700; cursor: pointer; }
.home-more__actions { display: grid; gap: 8px; padding: 0 0 16px; }
.reflection-card { display: grid; gap: 12px; }
.tab-list, .record-list, .person-list, .farm-list { display: grid; gap: 12px; }
.tab-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.calendar-controls { display: flex; justify-content: space-between; gap: 8px; }
.calendar-controls button { min-width: 0; padding: 10px 12px; }
.calendar { width: 100%; margin-top: 16px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekdays { margin-bottom: 4px; color: var(--ink-sub); font-size: 16px; font-weight: 700; text-align: center; }
.calendar-day { position: relative; min-width: 0; min-height: 44px; border-radius: 8px; padding: 4px; font-size: 18px; }
.calendar-day--blank { min-height: 44px; }
.calendar-day--has-records { border-color: var(--leaf); background: var(--leaf-pale); }
.calendar-day.is-selected { outline: 3px solid var(--focus); outline-offset: 1px; }
.calendar-day__count { position: absolute; right: 3px; bottom: 1px; color: var(--leaf); font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; }
.record-list { display: block; margin-top: 24px; border-top: 1px solid var(--rule); }
.record-list__card { display: grid; gap: 6px; min-height: 48px; border-bottom: 1px solid var(--rule); padding: 12px 0; color: var(--ink); text-decoration: none; }
.record-list__card { position: relative; padding-right: 32px; }
.record-list__card::after { position: absolute; top: 50%; right: 8px; color: var(--ink-sub); content: '›'; font-size: 28px; line-height: 1; transform: translateY(-50%); }
.record-list__card:hover { background: var(--leaf-pale); }
.record-list__card h2, .record-list__card p, .person-card h2, .person-card p, .farm-card h3, .farm-card p, .detail-card h2, .detail-card p { margin: 0; }
.record-list__title-row { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.record-list__crop { min-width: 0; font-size: 20px; line-height: 1.4; }
.record-list__work { color: var(--ink-sub); font-size: 17px; font-weight: 400; }
.record-list__summary { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 18px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.record-list__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-sub); font-size: 17px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.record-status { display: inline-block; flex: 0 0 auto; width: fit-content; border: 1.5px solid var(--ink-sub); border-radius: 3px; padding: 1px 6px; color: var(--ink-sub); font-size: 17px; font-weight: 700; line-height: 1.35; }
.record-status--confirmed { border-color: var(--shu); color: var(--shu); transform: rotate(-3deg); }
.record-status--draft { border: 0; padding: 1px 0; }
.record-status--processing { border-color: var(--ink-sub); color: var(--ink-sub); }
.record-status--failed { border-color: var(--danger); color: var(--danger); }
.status-badge { display: inline-block; width: fit-content; margin: 4px 0; border: 1px solid var(--leaf); border-radius: 6px; padding: 2px 10px; color: var(--leaf); background: var(--leaf-pale); font-size: 17px; font-weight: 700; }
.status-badge--draft { border-color: var(--warning); color: var(--warning-ink); background: var(--warning-pale); }
.detail-card { display: grid; gap: 8px; margin-top: 16px; overflow-wrap: anywhere; }
.detail-card h2 { font-size: 22px; line-height: 1.4; }
.detail-actions { margin-top: 24px; }
.detail-actions__delete { margin-top: 16px; }
.photo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.photo-preview { display: grid; min-height: 120px; padding: 4px; overflow: hidden; text-align: center; }
.photo-preview img { width: 100%; height: 100px; object-fit: cover; }
.photo-preview span { font-size: 17px; }
.photo-dialog { width: min(100% - 32px, 720px); border: 0; border-radius: 8px; padding: 0; background: transparent; }
.photo-dialog::backdrop { background: var(--backdrop); }
.photo-dialog__image { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.append-card { display: grid; gap: 16px; margin-top: 16px; }
.persons-layout { display: grid; gap: 24px; }
.person-card, .farm-card { display: grid; gap: 8px; }
.person-card__experience, .person-card__me { color: var(--ink-sub); font-size: 17px; }
.person-list { margin-top: 16px; }
.farms-section { margin-top: 24px; }
@media (min-width: 768px) {
  .record-actions--split { grid-template-columns: 1fr 1fr; }
  .app-shell--detail { width: min(100%, 960px); }
  .persons-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .farms-section { margin-top: 0; }
}
@media (min-width: 768px) {
  .app-shell { padding: 24px; }
  .app-header { margin-bottom: 16px; }
  .action-list { grid-template-columns: repeat(3, 1fr); }
  .secondary-action { width: calc((100% - 32px) / 3); }
  .logout-bottom { display: none; }
  .login-page { margin-top: 64px; }
}
@media (max-width: 767px) {
  .app-header--with-back .app-header__brand { display: none; }
  .app-header--home { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; }
  .app-header--home .app-header__coop { overflow-wrap: anywhere; }
  .app-header--home .app-header__logout { padding: 8px; font-size: 17px; }
}
@media (max-width: 599px) {
  .login-scene { padding-top: 0; background-image: none; }
  .login-scene::before { content: ""; display: block; height: 176px; margin: 0 -16px; background-image: var(--scene-image, none); background-position: center 72%; background-size: cover; }
  .login-page { margin-top: -40px; }
}
@media (max-width: 479px) {
  .password-row { flex-wrap: wrap; }
  .password-row .text-input { flex-basis: 100%; }
  .password-toggle { width: 100%; }
  .app-header--with-back { flex-wrap: wrap; }
  .app-header__back { white-space: nowrap; }
  .app-header--with-back .app-header__coop { order: 3; width: 100%; margin-left: 0; text-align: left; }
}
