body.is-webview .top-header,
body.is-webview .ad-container,
body.is-webview .oh-post-card,
body.is-webview .footer-sitemap,
body.is-webview .site-footer {
  display: none !important;
}

body.is-webview .app-container {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.oh-webview-disclaimer {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.oh-webview-disclaimer p {
  margin: 0 0 0.35rem 0;
}

.intro-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.intro-image-wrapper {
  flex: 0 0 176px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-image {
  width: 176px;
  height: 176px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  display: block;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.intro-text {
  flex: 1;
  min-width: 0;
}

.intro-text p {
  color: var(--text-muted);
  font-size: 0.96rem;
  word-break: keep-all;
}

.oh-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.oh-col-12 {
  grid-column: span 12;
  min-width: 0;
}

.oh-col-11 {
  grid-column: span 11;
  min-width: 0;
}

.oh-col-10 {
  grid-column: span 10;
  min-width: 0;
}

.oh-col-9 {
  grid-column: span 9;
  min-width: 0;
}

.oh-col-8 {
  grid-column: span 8;
  min-width: 0;
}

.oh-col-7 {
  grid-column: span 7;
  min-width: 0;
}

.oh-col-6 {
  grid-column: span 6;
  min-width: 0;
}

.oh-col-5 {
  grid-column: span 5;
  min-width: 0;
}

.oh-col-4 {
  grid-column: span 4;
  min-width: 0;
}

.oh-col-3 {
  grid-column: span 3;
  min-width: 0;
}

.oh-col-2 {
  grid-column: span 2;
  min-width: 0;
}

.oh-col-1 {
  grid-column: span 1;
  min-width: 0;
}

.oh-col-md-12 {
  grid-column: span 12;
  min-width: 0;
}

.oh-col-md-11 {
  grid-column: span 11;
  min-width: 0;
}

.oh-col-md-10 {
  grid-column: span 10;
  min-width: 0;
}

.oh-col-md-9 {
  grid-column: span 9;
  min-width: 0;
}

.oh-col-md-8 {
  grid-column: span 8;
  min-width: 0;
}

.oh-col-md-7 {
  grid-column: span 7;
  min-width: 0;
}

.oh-col-md-6 {
  grid-column: span 6;
  min-width: 0;
}

.oh-col-md-5 {
  grid-column: span 5;
  min-width: 0;
}

.oh-col-md-4 {
  grid-column: span 4;
  min-width: 0;
}

.oh-col-md-3 {
  grid-column: span 3;
  min-width: 0;
}

.oh-col-md-2 {
  grid-column: span 2;
  min-width: 0;
}

.oh-col-md-1 {
  grid-column: span 1;
  min-width: 0;
}

.oh-row > [class*="oh-col-"] > label:not(.oh-radio-item):not(.risk-check-item):not(.check-item):not(.heat-check-inline) {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.oh-input,
.oh-select,
.oh-card input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="file"]):not([type="color"]):not(.audio-db-input),
.oh-card select,
.oh-card textarea,
.oh-row input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="file"]):not([type="color"]):not(.audio-db-input),
.oh-row select,
.oh-row textarea {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.56rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--input-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
}

.oh-alert select,
.oh-alert input:not([type="radio"]):not([type="checkbox"]) {
  width: auto;
  display: inline-block;
  padding: 0.36rem 0.65rem;
  vertical-align: middle;
}

.oh-input:focus,
.oh-select:focus,
.oh-card input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="file"]):not([type="color"]):focus,
.oh-card select:focus,
.oh-card textarea:focus,
.oh-row input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="file"]):not([type="color"]):focus,
.oh-row select:focus,
.oh-row textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.oh-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.oh-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 1rem 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.oh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.6rem;
}

.oh-tab-btn {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.oh-tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.oh-tab-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.oh-tab-pane {
  display: none;
}

.oh-tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.oh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
}

.oh-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.oh-btn-primary {
  background: var(--primary-color);
  color: #ffffff;
}

.oh-btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  color: #ffffff;
}

.oh-btn-secondary {
  background: var(--secondary-color);
  color: #ffffff;
}

.oh-btn-secondary:hover:not(:disabled) {
  background: var(--secondary-hover);
  color: #ffffff;
}

.oh-btn-outline {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-main);
}

.oh-btn-outline:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.oh-btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.oh-btn-danger:hover:not(:disabled) {
  background: #dc2626;
}

.oh-btn-sm {
  padding: 0.42rem 0.8rem;
  font-size: 0.85rem;
}

.oh-btn-lg {
  padding: 0.88rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.oh-btn-block {
  width: 100%;
}

.oh-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.oh-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.oh-badge-good {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.oh-badge-caution {
  background: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.oh-badge-warn {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.oh-badge-info {
  background: rgba(37, 99, 235, 0.14);
  color: var(--primary-color);
}

.oh-badge-neutral {
  background: var(--border-color);
  color: var(--text-muted);
}

.oh-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.oh-kpi {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.oh-kpi-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.oh-kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  word-break: keep-all;
}

.oh-kpi-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.oh-alert {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
  background: rgba(37, 99, 235, 0.08);
  color: var(--text-main);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  word-break: keep-all;
}

.oh-alert-warn {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.09);
}

.oh-alert-good {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.09);
}

.oh-alert-caution {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.oh-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  text-align: center;
  background: var(--bg-color);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.oh-dropzone:hover,
.oh-dropzone.dragover {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.oh-radio-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.oh-radio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.15s, background-color 0.15s;
}

.oh-radio-item:hover {
  border-color: var(--primary-color);
}

.oh-radio-item input {
  margin-top: 0.22rem;
  flex-shrink: 0;
}

.oh-card,
.oh-row>*,
.oh-kpi-grid>*,
.oh-tab-pane,
.oh-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.oh-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}

.oh-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.oh-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.oh-table-wrap::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.45);
  border-radius: 999px;
}

.oh-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.9rem;
}

.oh-table:has(tr > :nth-child(4)) {
  min-width: 640px;
}

.oh-table:has(tr > :nth-child(5)) {
  min-width: 780px;
}

.oh-table:has(tr > :nth-child(6)) {
  min-width: 920px;
}

.oh-table:has(tr > :nth-child(7)) {
  min-width: 1060px;
}

.oh-table:has(tr > :nth-child(8)) {
  min-width: 1180px;
}

.oh-table:has(tr > :nth-child(10)) {
  min-width: 1340px;
}

.oh-table:has(tr > :nth-child(12)) {
  min-width: 1560px;
}

.oh-table.oh-table-wide {
  min-width: 1280px;
}

.oh-table.oh-table-xwide {
  min-width: 1520px;
}

.oh-table th {
  background: var(--bg-color);
  color: var(--text-main);
  font-weight: 700;
  padding: 0.65rem 0.8rem;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.oh-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  word-break: keep-all;
}

.oh-table .oh-btn {
  white-space: nowrap;
}

.oh-guide th,
.ref-tables-grid th,
.ref-tables-grid td:first-child {
  white-space: nowrap;
}

.oh-post-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  margin-top: 1.5rem;
}

.oh-post-card img {
  width: 168px;
  height: auto;
  aspect-ratio: 844 / 409;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.oh-guide {
  margin-top: 1.5rem;
}

.oh-guide h3 {
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 0.85rem;
}

.oh-guide h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1rem 0 0.45rem 0;
  color: var(--text-main);
}

.oh-guide p,
.oh-guide li {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  word-break: keep-all;
}

.oh-guide ul,
.oh-guide ol {
  padding-left: 1.35rem;
  margin-bottom: 0.75rem;
}

.oh-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.oh-modal-backdrop.open {
  display: flex;
}

.oh-modal {
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

:root[data-theme="dark"] .footer-sitemap {
  background-color: #0b1220;
}

:root[data-theme="dark"] .site-footer {
  background-color: #0f172a;
}

:root[data-theme="dark"] .oh-guide td[style*="background"],
:root[data-theme="dark"] .ref-tables-grid td[style*="background"] {
  color: #0f172a;
}

@media (max-width: 768px) {
  .app-container {
    padding: 1rem 0.85rem;
  }

  .intro-section {
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 1.15rem;
    gap: 1rem;
  }

  .intro-image-wrapper {
    flex: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.045) 0%, rgba(148, 163, 184, 0.06) 100%);
  }

  :root[data-theme="dark"] .intro-image-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(15, 23, 42, 0.45) 100%);
  }

  .intro-image {
    width: min(60vw, 210px);
    height: auto;
    max-height: 210px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
    background: #ffffff;
  }

  .intro-text {
    width: 100%;
  }

  .oh-card,
  .card {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-lg);
  }

  [class*="oh-col-md-"] {
    grid-column: span 12;
  }

  .oh-col-6 {
    grid-column: span 6;
  }

  .oh-row {
    gap: 0.75rem;
  }

  .oh-post-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.05rem;
    gap: 0.85rem;
  }

  .oh-post-card img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
  }

  .oh-table {
    font-size: 0.85rem;
  }

  .oh-table th,
  .oh-table td {
    padding: 0.54rem 0.68rem;
  }

  .oh-table td strong {
    white-space: nowrap;
  }

  .oh-badge {
    padding: 0.18rem 0.48rem;
    font-size: 0.74rem;
  }

  .oh-guide table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.report-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.22);
  margin-top: 1.25rem;
  margin-bottom: 0;
}

[data-theme="dark"] .report-action-bar {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.28);
}

ins.adsbygoogle[data-ad-format="auto"]:not(.adsbygoogle-pending):not([data-ad-status="unfilled"]) {
  min-height: 250px;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
  min-height: 0 !important;
}

.ad-container:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

@media print {

  .top-header,
  .footer-sitemap,
  .site-footer,
  .oh-post-card,
  .report-action-bar,
  #themeToggle,
  .ad-container,
  ins.adsbygoogle,
  .adsbygoogle-pending,
  .google-auto-placed,
  .adsbygoogle-noablate,
  iframe[id^="google_ads_iframe"],
  div[id^="aswift_"] {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
