:root {
  color-scheme: light;
  --page: #f5f8f6;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --surface-strong: #e5ede9;
  --ink: #142521;
  --ink-soft: #5f716c;
  --ink-faint: #7f8f8a;
  --forest: #12352f;
  --forest-2: #1d4840;
  --accent: #f26522;
  --accent-strong: #c84408;
  --accent-soft: #fff0e8;
  --line: #d3ded9;
  --line-strong: #b9cbc4;
  --success: #216b55;
  --success-soft: #e7f4ed;
  --warning: #94610f;
  --warning-soft: #fff4d6;
  --danger: #a33b3b;
  --danger-soft: #fbecec;
  --shadow: 0 22px 60px rgba(19, 53, 47, 0.11);
  --radius: 8px;
  --header-height: 74px;
  --font: "Avenir Next", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #101816;
  --surface: #16231f;
  --surface-soft: #1b2c27;
  --surface-strong: #233730;
  --ink: #edf4f1;
  --ink-soft: #b5c3be;
  --ink-faint: #93a59f;
  --forest: #d9ebe5;
  --forest-2: #bcd4cc;
  --accent: #ff7a3d;
  --accent-strong: #c84408;
  --accent-soft: #3e281f;
  --line: #30433d;
  --line-strong: #49625a;
  --success: #68c5a2;
  --success-soft: #173b30;
  --warning: #edc16a;
  --warning-soft: #3a311d;
  --danger: #f08d8d;
  --danger-soft: #402525;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--surface);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100dvh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1240px, calc(100% - 48px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  font-size: 22px;
  line-height: 1.15;
}

.brand-copy small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.text-button,
.primary-button,
.secondary-button,
.danger-button {
  min-height: 44px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.icon-button:active,
.text-button:active,
.primary-button:active,
.secondary-button:active,
.danger-button:active,
.entry-card:active,
.category-card:active {
  transform: translateY(1px) scale(0.99);
}

.icon-button {
  width: 44px;
  padding: 0;
  border-color: var(--line);
  background: var(--surface);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.text-button {
  padding: 0 16px;
  border-color: var(--line);
  background: var(--surface);
}

.text-button:hover,
.text-button:focus-visible {
  border-color: var(--forest-2);
}

.primary-button {
  min-height: 48px;
  padding: 0 20px;
  background: var(--accent-strong);
  color: #fffaf7;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--accent);
  color: #17231f;
}

.secondary-button {
  min-height: 48px;
  padding: 0 20px;
  border-color: var(--line-strong);
  background: var(--surface);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--forest-2);
  background: var(--surface-soft);
}

.danger-button {
  min-height: 42px;
  padding: 0 16px;
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  background: var(--danger-soft);
  color: var(--danger);
}

.button-wide {
  width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 3px;
}

.account-button {
  max-width: 250px;
}

.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.account-name {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-main {
  width: min(1240px, calc(100% - 48px));
  min-height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 32px 0 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 590px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.hero h1 {
  max-width: 560px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.hero-lead small {
  display: block;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.entry-card {
  min-height: 154px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 7px 14px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.entry-card:hover,
.entry-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(20, 67, 57, 0.1);
}

.entry-card-primary {
  border-top: 4px solid var(--accent);
}

.entry-icon {
  grid-row: 1 / span 3;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.entry-card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}

.entry-card h2 small {
  display: block;
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.entry-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.entry-arrow {
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.page-main-wide {
  width: min(1240px, calc(100% - 48px));
}

.page-head {
  margin-bottom: 28px;
}

.back-link {
  min-height: 40px;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 700;
}

.back-link:hover {
  color: var(--accent-strong);
}

.page-head h1 {
  margin-bottom: 8px;
  font-size: 38px;
  line-height: 1.18;
}

.page-head p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.english-line,
.bilingual small {
  display: block;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.form-surface,
.auth-gate,
.detail-surface,
.list-surface,
.schedule-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(20, 67, 57, 0.06);
}

.form-surface {
  overflow: hidden;
  border-top: 4px solid var(--accent);
}

.form-section {
  padding: 30px;
}

.form-section + .form-section {
  border-top: 1px solid var(--line);
}

.section-title {
  margin-bottom: 22px;
}

.section-title h2 {
  margin-bottom: 5px;
  font-size: 24px;
  line-height: 1.3;
}

.section-title p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.segment-button {
  min-height: 66px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
}

.segment-button + .segment-button {
  border-left: 1px solid var(--line-strong);
}

.segment-button.is-active {
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.segment-copy {
  text-align: left;
}

.segment-copy small {
  display: block;
  color: var(--ink-faint);
  font-size: 11px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-grid .field-full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;
}

.field label,
.field-label {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.required-mark {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field input,
.field select {
  min-height: 50px;
  padding: 0 14px;
}

.field textarea {
  min-height: 144px;
  padding: 13px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.field-help,
.field-error {
  margin: 0;
  font-size: 12px;
}

.field-help {
  color: var(--ink-soft);
}

.field-error {
  color: var(--danger);
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  min-height: 106px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 12px;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.category-card.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 4px 0 0 var(--accent);
}

.category-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--forest-2);
}

.category-card.is-active .category-icon {
  background: var(--surface);
  color: var(--accent-strong);
}

.category-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
}

.category-card span,
.category-card small {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.category-card small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.upload-box {
  min-height: 128px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  text-align: center;
}

.upload-box:hover,
.upload-box:focus-within {
  border-color: var(--accent);
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-weight: 800;
}

.upload-box p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.file-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.file-item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 11px;
  background: var(--surface);
}

.file-thumb {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-soft);
}

.file-icon {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--forest-2);
}

.file-copy {
  min-width: 0;
}

.file-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.file-copy small {
  color: var(--ink-soft);
  font-size: 11px;
}

.remove-file {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--danger);
}

.remove-file:hover {
  background: var(--danger-soft);
}

.consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent-strong);
}

.consent-row label {
  color: var(--ink-soft);
  font-size: 13px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.form-message {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.form-message.is-visible {
  display: block;
}

.auth-gate {
  max-width: 720px;
  margin: 64px auto;
  padding: 44px;
  text-align: center;
  border-top: 4px solid var(--accent);
}

.auth-gate-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.auth-gate h1,
.auth-gate h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.auth-gate p {
  max-width: 500px;
  margin: 0 auto 24px;
  color: var(--ink-soft);
}

.activity-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 24px;
}

.schedule-surface {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  padding: 24px;
}

.schedule-surface h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.schedule-surface > p {
  color: var(--ink-soft);
  font-size: 13px;
}

.public-event-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.public-event {
  padding: 15px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-soft);
}

.public-event time {
  display: block;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.public-event strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}

.public-event small {
  color: var(--ink-soft);
  font-size: 11px;
}

.empty-compact {
  padding: 24px 12px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 13px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.slot-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 750;
}

.slot-button:hover:not(:disabled) {
  border-color: var(--accent);
}

.slot-button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.slot-button:disabled {
  text-decoration: line-through;
}

.list-surface {
  overflow: hidden;
}

.list-toolbar {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.filter-tab {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.filter-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(20, 67, 57, 0.08);
}

.submission-list {
  display: grid;
}

.submission-row {
  width: 100%;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.submission-row:last-child {
  border-bottom: 0;
}

.submission-row:hover {
  background: var(--surface-soft);
}

.submission-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.submission-copy {
  min-width: 0;
}

.submission-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.submission-copy small {
  color: var(--ink-soft);
  font-size: 12px;
}

.submission-meta {
  min-width: 140px;
  text-align: right;
}

.submission-meta time {
  display: block;
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 11px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.status-active,
.status-pending {
  border-color: color-mix(in srgb, var(--warning) 30%, var(--line));
  background: var(--warning-soft);
  color: var(--warning);
}

.status-complete {
  border-color: color-mix(in srgb, var(--success) 30%, var(--line));
  background: var(--success-soft);
  color: var(--success);
}

.empty-state {
  padding: 70px 24px;
  text-align: center;
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.empty-state h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 24px;
}

.detail-surface {
  overflow: hidden;
}

.detail-block {
  padding: 24px;
}

.detail-block + .detail-block {
  border-top: 1px solid var(--line);
}

.detail-block h2 {
  margin-bottom: 16px;
  font-size: 20px;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.summary-item {
  min-width: 0;
}

.summary-item span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
}

.summary-item strong,
.summary-item p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.summary-full {
  grid-column: 1 / -1;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  bottom: 2px;
  left: 11px;
  width: 1px;
  background: var(--line);
}

.timeline-item strong {
  display: block;
  font-size: 14px;
}

.timeline-item p {
  margin: 3px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.timeline-item time {
  color: var(--ink-faint);
  font-size: 10px;
}

.reply-list {
  display: grid;
  gap: 10px;
}

.reply-item {
  padding: 15px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
}

.reply-item p {
  margin-bottom: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.reply-item small {
  color: var(--ink-soft);
  font-size: 10px;
}

.attachment-links {
  display: grid;
  gap: 8px;
}

.attachment-link {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.attachment-link:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.detail-side {
  position: sticky;
  top: calc(var(--header-height) + 22px);
}

.logout-row {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

dialog {
  width: min(470px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(12, 28, 24, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dialog-content {
  padding: 28px;
  border-top: 4px solid var(--accent);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dialog-head h2 {
  margin-bottom: 5px;
  font-size: 25px;
}

.dialog-head p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.dialog-close {
  flex: 0 0 auto;
}

.google-button {
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 800;
}

.google-button:hover,
.google-button:focus-visible {
  border-color: var(--accent);
  background: var(--surface-soft);
}

.google-mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.google-mark svg {
  width: 17px;
  height: 17px;
  display: block;
}

.dialog-note {
  margin: 14px 0 0;
  color: var(--ink-faint);
  text-align: center;
  font-size: 11px;
}

.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(390px, calc(100% - 40px));
  display: grid;
  gap: 10px;
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  animation: toast-in 180ms ease-out both;
}

.toast-error {
  border-left-color: var(--danger);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading-view {
  width: min(1120px, calc(100% - 48px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 24px;
}

.loading-brand,
.loading-lines span,
.skeleton-block {
  background: linear-gradient(90deg, var(--surface-soft), var(--surface-strong), var(--surface-soft));
  background-size: 200% 100%;
  animation: skeleton 1.25s ease-in-out infinite;
}

.loading-brand {
  width: 160px;
  height: 46px;
  border-radius: var(--radius);
}

.loading-lines {
  display: grid;
  gap: 10px;
}

.loading-lines span {
  width: min(620px, 100%);
  height: 18px;
  border-radius: 4px;
}

.loading-lines span:nth-child(2) {
  width: min(460px, 82%);
}

.loading-lines span:nth-child(3) {
  width: min(320px, 60%);
}

@keyframes skeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.error-page {
  max-width: 680px;
  margin: 90px auto;
  text-align: center;
}

.error-page h1 {
  margin-bottom: 8px;
  font-size: 34px;
}

.error-page p {
  margin-bottom: 22px;
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    width: 100%;
    max-height: 430px;
  }

  .activity-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .schedule-surface,
  .detail-side {
    position: static;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 66px;
  }

  .header-inner,
  .home-main,
  .page-main,
  .page-main-wide,
  .loading-view {
    width: min(100% - 28px, 1240px);
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small,
  .account-name {
    display: none;
  }

  .text-button.account-button {
    width: 44px;
    padding: 0;
  }

  .home-main {
    align-items: start;
    padding: 28px 0 40px;
  }

  .hero {
    gap: 24px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .entry-grid,
  .field-grid,
  .category-grid,
  .detail-summary {
    grid-template-columns: 1fr;
  }

  .entry-card {
    min-height: 132px;
  }

  .hero-visual {
    aspect-ratio: 4 / 3;
  }

  .page-main {
    padding: 28px 0 60px;
  }

  .page-head h1 {
    font-size: 31px;
  }

  .form-section,
  .detail-block {
    padding: 22px 18px;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .segment-button + .segment-button {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .field-grid .field-full,
  .summary-full {
    grid-column: auto;
  }

  .slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .submission-row {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    padding: 17px 14px;
  }

  .submission-meta {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .submission-row > svg:last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions > * {
    width: 100%;
  }

  .auth-gate {
    margin: 36px auto;
    padding: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header {
    background: var(--surface);
  }
}
