:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #1a1a1a;
  --muted: #666666;
  --line: #d8d8d8;
  --accent: #e60012;
  --accent-dark: #b8000e;
  --nav: #1a1a1a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  background: var(--panel);
  border-bottom: 3px solid var(--accent);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 96px;
  width: auto;
  max-width: 440px;
  object-fit: contain;
}

.cache {
  display: grid;
  gap: 2px;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.cache strong {
  color: var(--ink);
  font-size: 13px;
}

.cache em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 78px);
}

.sidebar {
  padding: 22px 18px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.side-section + .side-section {
  margin-top: 26px;
}

.side-section h2 {
  margin: 0 0 10px;
  font-size: 14px;
}

.area-list {
  display: grid;
  gap: 0;
}

.area-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 6px;
  border-bottom: 1px solid #e5e5e5;
  color: var(--muted);
  font-size: 13px;
}

.area-list a.active,
.area-list a:hover {
  color: var(--ink);
  background: #f7f7f7;
}

.area-list a.active {
  padding-left: 8px;
  border-left: 3px solid var(--accent);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.area-list b {
  min-width: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: right;
}

.content {
  width: 100%;
  max-width: 1280px;
  padding: 28px;
}

.section-head,
.detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  padding-left: 12px;
  border-left: 5px solid var(--accent);
  line-height: 1.2;
}

.status-tabs {
  display: flex;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.status-tabs a {
  padding: 8px 2px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-tabs a.active {
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
}

.count-line {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.therapist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  border-top: 1px solid var(--line);
}

.therapist-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.row-photo {
  display: block;
  width: 300px;
  height: 380px;
  overflow: hidden;
}

.row-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-photo span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  font-size: 28px;
  font-weight: 700;
}

.row-body {
  min-width: 0;
}

.row-head {
  margin: 0;
  font-size: 18px;
}

.row-head a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.row-head strong {
  color: var(--ink);
  font-weight: 800;
}

.row-status {
  margin-left: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.row-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.row-summary {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.empty {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.empty p {
  margin: 0;
  color: var(--muted);
}

.detail-layout {
  padding: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 22px;
  align-items: stretch;
}

.detail-photo {
  display: grid;
  min-height: 420px;
  overflow: hidden;
  place-items: center;
  background: #f0f0f0;
  border: 1px solid var(--line);
  color: var(--nav);
  font-size: 36px;
  font-weight: 800;
}

.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-main,
.info-grid article {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.detail-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  line-height: 1.2;
}

.lead-area {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.detail-status {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.lead {
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.7;
}

.summary {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}

.detail-facts {
  display: grid;
  gap: 0;
  margin: 12px 0;
}

.detail-facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  min-width: 0;
  margin: 0;
  font-size: 13px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.links a,
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.links a:hover,
.back-link:hover {
  background: var(--accent);
  color: #ffffff;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.info-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  padding-left: 10px;
  border-left: 4px solid var(--accent);
  line-height: 1.2;
}

.review-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.review-list li {
  padding: 12px;
  border: 1px solid var(--line);
}

.review-list span {
  color: var(--muted);
  font-size: 12px;
}

.review-list strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.review-list p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    padding: 12px 16px;
    flex-direction: column;
  }

  .brand-logo {
    height: 72px;
    max-width: 320px;
  }

  .cache {
    min-width: 0;
    text-align: left;
  }

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }

  .content,
  .detail-layout {
    padding: 16px;
  }

  .section-head,
  .detail-title,
  .detail-hero,
  .info-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .status-tabs {
    width: 100%;
  }

  .status-tabs a {
    flex: 1;
  }

  .therapist-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .therapist-row {
    grid-template-columns: 150px 1fr;
  }

  .row-photo {
    width: 150px;
    height: 190px;
  }

  .detail-photo {
    min-height: 320px;
  }
}
