* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.4;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 1280px; margin: 0 auto; padding: 24px; }

.list-header { margin-bottom: 16px; }
.list-header h1 { font-size: 32px; font-weight: 700; }
.subtitle { color: #666; margin-top: 4px; }

.search {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: inherit;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 20px;
  -webkit-appearance: none;
}
.search:focus { outline: 2px solid #007aff; outline-offset: 1px; }

.verb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px) {
  .verb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .verb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  display: block;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  min-height: 72px;
}
.card-title { font-size: 20px; font-weight: 600; }
.card-sub { color: #666; font-size: 15px; margin-top: 4px; }
.card:active { background: #f5f5f5; }
@media (hover: hover) {
  .card:hover { border-color: #b0b0b0; }
}

.empty { color: #888; padding: 32px; text-align: center; }

.detail-header { margin-bottom: 20px; }
.back {
  display: inline-block;
  padding: 8px 0;
  color: #007aff;
  text-decoration: none;
  font-size: 17px;
}
.detail-header h1 { font-size: 36px; font-weight: 700; margin-top: 8px; }
.detail-header .subtitle { color: #666; margin-top: 4px; font-size: 18px; }

.non-personal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.np-card {
  border: 1px dashed #c0c0c0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  min-height: 72px;
}
.np-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #888;
  font-weight: 600;
}
.np-value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
}
.np-value.placeholder { color: #c0c0c0; font-weight: 400; }
.np-card.revealed { border-style: solid; border-color: #1a1a1a; background: #ffffff; }
.np-card.revealed .np-value { color: #1a1a1a; }

.conj {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.conj th, .conj td {
  border: 1px solid #e0e0e0;
  padding: 12px;
  text-align: center;
  font-size: 16px;
  min-height: 56px;
  vertical-align: middle;
}
.conj thead th {
  background: #f5f5f5;
  font-weight: 600;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.conj tbody th {
  background: #f5f5f5;
  font-weight: 600;
  text-align: left;
  font-size: 14px;
  position: sticky;
  left: 0;
  z-index: 1;
  white-space: nowrap;
}
.conj td.cell {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  background: #fafafa;
}
.conj td.cell .placeholder { color: #c0c0c0; }
.conj td.cell.revealed {
  background: #ffffff;
  color: #1a1a1a;
}
.conj td.empty {
  background: #f0f0f0;
  color: #b0b0b0;
  cursor: default;
}
.conj td.cell.missing.revealed { color: #999; font-style: italic; }

body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

@media (orientation: portrait) {
  .verb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cell, .np-card, .card { -webkit-touch-callout: none; }

@media (max-width: 900px) {
  .conj th, .conj td { padding: 8px; font-size: 14px; }
}
