:root {
  color-scheme: light;
  --bg: #eef1ee;
  --surface: #fffefd;
  --surface-soft: #f8f7f2;
  --ink: #182324;
  --muted: #657173;
  --line: #d7d0bf;
  --line-strong: #b99d67;
  --teal: #216258;
  --blue: #334d73;
  --rose: #9b4659;
  --gold: #9f7937;
  --green-soft: #e3f0ea;
  --blue-soft: #e8edf5;
  --rose-soft: #fae9ec;
  --gold-soft: #f7efdc;
  --shadow: 0 18px 50px rgba(24, 35, 36, 0.1), 0 2px 8px rgba(24, 35, 36, 0.04);
  --shadow-strong: 0 28px 80px rgba(24, 35, 36, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(145deg, rgba(24, 35, 36, 0.08), transparent 340px),
    linear-gradient(180deg, rgba(185, 157, 103, 0.12), transparent 260px),
    var(--bg);
  color: var(--ink);
  font-family:
    "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 46px;
  border: 1px solid rgba(185, 157, 103, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, #243232, #121d1e);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  box-shadow: 0 10px 24px rgba(24, 35, 36, 0.16);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

button.secondary {
  background: linear-gradient(180deg, #2a7669, #1d564e);
  border-color: rgba(216, 196, 153, 0.44);
}

button:hover:not(:disabled),
.admin-link:hover,
.admin-mini-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(24, 35, 36, 0.18);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

select,
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(185, 157, 103, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfaf7);
  color: var(--ink);
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

select:focus,
input:focus {
  outline: 2px solid rgba(185, 157, 103, 0.26);
  outline-offset: 2px;
  border-color: var(--line-strong);
}

.app-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 16px 14px 42px;
}

.top-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 196, 153, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(115deg, #111b1d, #203231 58%, #4c3d2b);
  color: #fff;
  box-shadow: var(--shadow-strong);
  padding: 18px;
  margin-bottom: 14px;
}

.top-band::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 196, 153, 0.78), transparent);
}

.top-band .eyebrow {
  color: #d8c499;
}

.top-band h1 {
  color: #fffdf8;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.brand-row,
.board-head,
.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #b8cad0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.date-badge,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.date-badge {
  border: 1px solid rgba(216, 196, 153, 0.46);
  background: rgba(255, 253, 248, 0.12);
  color: #f4e7c8;
}

.top-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.admin-mini-link {
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(216, 196, 153, 0.34);
  background: rgba(255, 253, 248, 0.1);
  color: #f4e7c8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.workspace {
  display: grid;
  gap: 14px;
}

.input-panel,
.summary-panel,
.monthly-panel,
.logic-panel,
.result-card {
  border: 1px solid rgba(185, 157, 103, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 254, 253, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.input-panel {
  display: grid;
  gap: 12px;
  padding: 17px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.point-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(185, 157, 103, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 247, 242, 0.78), rgba(255, 255, 255, 0.72)),
    var(--surface-soft);
  padding: 12px;
}

.point-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.admin-link {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(185, 157, 103, 0.34);
  background: linear-gradient(180deg, #fffefd, #f5f1e7);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(24, 35, 36, 0.08);
}

.point-status {
  border-radius: 8px;
  border: 1px solid rgba(185, 157, 103, 0.22);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  padding: 10px;
}

.point-status[data-tone="good"] {
  background: var(--green-soft);
  color: var(--teal);
}

.point-status[data-tone="care"] {
  background: var(--rose-soft);
  color: var(--rose);
}

.date-grid {
  display: grid;
  grid-template-columns: minmax(106px, 1.2fr) minmax(76px, 0.9fr) minmax(76px, 0.9fr);
  gap: 8px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

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

.birth-meta div {
  min-width: 0;
  border: 1px solid rgba(185, 157, 103, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefd, #f6f4ee);
  padding: 9px 10px;
}

.birth-meta div:nth-child(3),
.birth-meta div:nth-child(6) {
  grid-column: 1 / -1;
}

.birth-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.birth-meta strong {
  display: block;
  margin-top: 4px;
  color: #152323;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.message {
  display: none;
  margin: 0;
  border-radius: 8px;
  background: var(--rose-soft);
  color: #7b3340;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  padding: 10px;
}

.message.show {
  display: block;
}

.board-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(211, 184, 149, 0.58);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 4%, rgba(147, 169, 105, 0.18), transparent 160px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 248, 239, 0.9));
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(89, 61, 30, 0.08);
  padding: 16px;
}

.board-panel::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -26px;
  width: 210px;
  height: 170px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 28% 70%, rgba(115, 154, 84, 0.28) 0 18%, transparent 19%),
    radial-gradient(ellipse at 42% 48%, rgba(147, 169, 105, 0.26) 0 16%, transparent 17%),
    radial-gradient(ellipse at 58% 30%, rgba(115, 154, 84, 0.24) 0 15%, transparent 16%),
    linear-gradient(145deg, transparent 45%, rgba(115, 154, 84, 0.32) 46% 48%, transparent 49%);
  opacity: 0.9;
  pointer-events: none;
}

.board-head {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

.board-panel .eyebrow.light {
  color: var(--gold);
}

.board-panel h2 {
  color: var(--ink);
}

.board-head span {
  min-height: 30px;
  border: 1px solid rgba(211, 184, 149, 0.72);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  padding: 6px 14px;
}

.direction-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: 1 / 1;
}

.direction-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(211, 184, 149, 0.6);
  border-radius: 8px;
  background: linear-gradient(145deg, #fffefd, #f8f3eb);
  padding: 8px 4px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.direction-tile::before {
  content: none;
  display: none;
}

.direction-tile:nth-child(1) {
  background: linear-gradient(145deg, #fff4ee, #fffaf6);
}

.direction-tile:nth-child(1)::before {
  content: "☼";
  color: rgba(239, 122, 46, 0.48);
}

.direction-tile:nth-child(2) {
  background: linear-gradient(145deg, #eef7fd, #fbfdff);
}

.direction-tile:nth-child(2)::before {
  content: "≋";
  color: rgba(58, 114, 164, 0.48);
}

.direction-tile:nth-child(3) {
  background: linear-gradient(145deg, #fff8dc, #fffdf3);
}

.direction-tile:nth-child(3)::before {
  content: "△";
  color: rgba(240, 184, 76, 0.55);
}

.direction-tile:nth-child(4)::before {
  content: "☆";
}

.direction-tile:nth-child(5)::before {
  content: "◎";
  color: rgba(139, 129, 116, 0.46);
}

.direction-tile:nth-child(6)::before {
  content: "◌";
  color: rgba(139, 129, 116, 0.46);
}

.direction-tile:nth-child(7) {
  background: linear-gradient(145deg, #f8eadc, #fffaf4);
}

.direction-tile:nth-child(7)::before {
  content: "☷";
  color: rgba(184, 122, 49, 0.46);
}

.direction-tile:nth-child(8) {
  background: linear-gradient(145deg, #eef8e9, #fbfef9);
}

.direction-tile:nth-child(8)::before {
  content: "♧";
  color: rgba(115, 154, 84, 0.5);
}

.direction-tile:nth-child(9) {
  background: linear-gradient(145deg, #f5eaf8, #fffaff);
}

.direction-tile:nth-child(9)::before {
  content: "✦";
  color: rgba(117, 86, 141, 0.5);
}

.direction-tile.you {
  background: linear-gradient(145deg, #f5eaf8, #fffaff);
  border-color: rgba(217, 142, 165, 0.86);
}

.direction-tile.good {
  background: linear-gradient(145deg, #edf8ea, #fbfef8);
  border-color: rgba(146, 180, 122, 0.8);
}

.direction-tile.care {
  background: linear-gradient(145deg, #fff4e4, #fffdf4);
  border-color: rgba(240, 184, 76, 0.86);
}

.direction-tile.center {
  background: linear-gradient(145deg, #f4eadb, #fff9ef);
  border-color: rgba(221, 204, 180, 0.9);
}

.direction-tile.star-1 {
  background: linear-gradient(145deg, #fffefd, #f8f7f2);
}

.direction-tile.star-2 {
  background: linear-gradient(145deg, #f3e4d4, #fff7ef);
}

.direction-tile.star-3 {
  background: linear-gradient(145deg, #e8f4ff, #f8fcff);
}

.direction-tile.star-4 {
  background: linear-gradient(145deg, #e9f6e4, #fbfef8);
}

.direction-tile.star-5 {
  background: linear-gradient(145deg, #fff8d8, #fffdf1);
}

.direction-tile.star-6 {
  background: linear-gradient(145deg, #f8e7bd, #fff9e8);
}

.direction-tile.star-7 {
  background: linear-gradient(145deg, #ffe8d8, #fff8f1);
}

.direction-tile.star-8 {
  background: linear-gradient(145deg, #f4eadb, #fffaf2);
}

.direction-tile.star-9 {
  background: linear-gradient(145deg, #f0e6f6, #fff9ff);
}

.direction-tile strong {
  position: relative;
  z-index: 1;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Yu Gothic", serif;
  font-size: 34px;
  line-height: 1;
  color: #704015;
}

.direction-tile span {
  position: relative;
  z-index: 1;
  color: #8e4d16;
  font-size: 12px;
  font-weight: 800;
}

.direction-tile small {
  position: relative;
  z-index: 1;
  color: #5a3920;
  font-size: 11px;
  font-weight: 800;
}

.direction-tile.you strong,
.direction-tile.you span,
.direction-tile.you small {
  color: #75568d;
}

.direction-tile.good strong,
.direction-tile.good span,
.direction-tile.good small {
  color: #497d39;
}

.direction-tile.care strong,
.direction-tile.care span,
.direction-tile.care small {
  color: #a95a1d;
}

.direction-tile.center strong,
.direction-tile.center span,
.direction-tile.center small {
  color: #6f6255;
}

.direction-tile.star-1 strong,
.direction-tile.star-1 span,
.direction-tile.star-1 small {
  color: #574233;
}

.direction-tile.star-2 strong,
.direction-tile.star-2 span,
.direction-tile.star-2 small {
  color: #855536;
}

.direction-tile.star-3 strong,
.direction-tile.star-3 span,
.direction-tile.star-3 small {
  color: #3a72a4;
}

.direction-tile.star-4 strong,
.direction-tile.star-4 span,
.direction-tile.star-4 small {
  color: #497d39;
}

.direction-tile.star-5 strong,
.direction-tile.star-5 span,
.direction-tile.star-5 small {
  color: #9b6f16;
}

.direction-tile.star-6 strong,
.direction-tile.star-6 span,
.direction-tile.star-6 small {
  color: #a06612;
}

.direction-tile.star-7 strong,
.direction-tile.star-7 span,
.direction-tile.star-7 small {
  color: #b45d25;
}

.direction-tile.star-8 strong,
.direction-tile.star-8 span,
.direction-tile.star-8 small {
  color: #6f6255;
}

.direction-tile.star-9 strong,
.direction-tile.star-9 span,
.direction-tile.star-9 small {
  color: #75568d;
}

.legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 5px;
}

.dot.you {
  background: #d98ea5;
}

.dot.good {
  background: #92b47a;
}

.dot.care {
  background: #f0b84c;
}

.dot.center {
  background: #ddccb4;
}

.summary-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 17px;
}

.summary-panel h2 {
  font-size: 24px;
}

.summary-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.summary-side {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.save-image-button {
  width: 100%;
}

.chip {
  border: 1px solid rgba(185, 157, 103, 0.24);
  background: var(--blue-soft);
  color: var(--blue);
  max-width: 100%;
  min-height: 34px;
  height: auto;
  white-space: normal;
  text-align: left;
  line-height: 1.45;
  padding-block: 7px;
}

.chip.good {
  background: var(--gold-soft);
  color: var(--gold);
}

.chip.care {
  background: var(--rose-soft);
  color: var(--rose);
}

.chip.you {
  background: var(--green-soft);
  color: var(--teal);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.result-card {
  padding: 15px;
}

.result-card p {
  margin: 0;
  color: #4f6068;
  line-height: 1.85;
}

.admin-logic {
  margin-top: 12px;
  border: 1px solid rgba(185, 157, 103, 0.28);
  border-radius: 8px;
  background: var(--gold-soft);
  color: #765923;
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
}

.admin-logic strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
}

.result-card .card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(185, 157, 103, 0.28);
  background: linear-gradient(180deg, #fffefd, #f6f1e6);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.result-card[data-tone="care"] .card-number {
  color: var(--rose);
  background: var(--rose-soft);
}

.result-card[data-tone="good"] .card-number {
  color: var(--gold);
  background: var(--gold-soft);
}

.monthly-panel {
  margin-top: 14px;
  padding: 17px;
}

.monthly-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.monthly-item {
  border: 1px solid rgba(185, 157, 103, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefd, #f7f6f1);
  padding: 13px;
}

.monthly-item p {
  margin: 0;
  color: #4f6068;
  line-height: 1.75;
}

.logic-panel {
  margin-top: 14px;
  padding: 17px;
}

.logic-badge {
  min-height: 30px;
  border: 1px solid rgba(185, 157, 103, 0.32);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.logic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.logic-item {
  min-width: 0;
  border: 1px solid rgba(185, 157, 103, 0.26);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefd, #f7f6f1);
  padding: 12px;
}

.logic-item h3 {
  margin-bottom: 6px;
  color: var(--ink);
}

.logic-item p {
  margin: 0;
  color: #4f6068;
  font-size: 13px;
  line-height: 1.7;
}

.logic-item code {
  color: var(--gold);
  font-family: Consolas, "Yu Gothic", Meiryo, monospace;
  font-weight: 800;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(18, 29, 30, 0.56);
  padding: 18px;
}

.confirm-dialog {
  width: min(100%, 420px);
  border: 1px solid rgba(185, 157, 103, 0.36);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefd, #f8f6ef);
  box-shadow: 0 22px 70px rgba(32, 48, 56, 0.22);
  padding: 18px;
}

.confirm-dialog p:not(.eyebrow) {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.image-dialog {
  width: min(100%, 620px);
}

.generated-image-preview {
  display: block;
  width: 100%;
  max-height: 56vh;
  border: 1px solid rgba(185, 157, 103, 0.3);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  margin: 0 0 14px;
}

.download-image-link {
  min-height: 46px;
  border: 1px solid rgba(185, 157, 103, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, #243232, #121d1e);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(24, 35, 36, 0.16);
}

.admin-layout,
.admin-tools {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-bar {
  margin-top: 4px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-width: 0;
}

.admin-tools > *,
.admin-grid > * {
  min-width: 0;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.admin-search {
  width: min(100%, 240px);
  max-width: 240px;
  min-width: 0;
}

.admin-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin-top: 12px;
}

.admin-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-table tbody tr {
  cursor: pointer;
}

.admin-table tbody tr:hover {
  background: var(--surface-soft);
}

.log-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.log-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px;
}

.log-item strong,
.log-item span {
  display: block;
}

.log-item strong {
  font-size: 13px;
  line-height: 1.5;
}

.log-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 720px) {
  .app-shell {
    padding: 24px 20px 52px;
  }

  h1 {
    font-size: 46px;
  }

  .workspace {
    grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1fr);
    align-items: start;
  }

  .direction-tile strong {
    font-size: 30px;
  }

  .button-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .birth-meta div:nth-child(3),
  .birth-meta div:nth-child(6) {
    grid-column: auto;
  }

  .summary-panel {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
    align-items: start;
    padding: 20px;
  }

  .summary-panel h2 {
    font-size: 30px;
  }

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

  .result-card.wide {
    grid-column: 1 / -1;
  }

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

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

  .monthly-item.wide {
    grid-column: 1 / -1;
  }

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