:root {
  --rc-brand: #0f3d91;
  --rc-brand-strong: #0a2a66;
  --rc-bg: #f6eef1;
  --rc-surface: #ffffff;
  --rc-text: #1a1a1a;
  --rc-text-muted: #6b6b6b;
  --rc-border: #e5e5e5;
  --rc-danger: #d6336c;
  --rc-radius: 12px;
  --rc-font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

body {
  margin: 0;
  background: var(--rc-bg);
  color: var(--rc-text);
  font-family: var(--rc-font-family);
}

.rc-workflow {
  background: var(--rc-surface);
  color: var(--rc-text);
  font-family: var(--rc-font-family);
  padding: 16px;
}

.rc-workflow-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.rc-workflow-guidance {
  font-size: 13px;
  color: var(--rc-text-muted);
  margin: 0 0 12px;
  line-height: 1.6;
}

.rc-workflow-status {
  font-size: 13px;
  color: var(--rc-text-muted);
  margin: 0 0 12px;
}

.rc-workflow-status[aria-live="assertive"] {
  color: var(--rc-danger);
}

.rc-image-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.rc-image-item {
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  padding: 6px;
}

.rc-image-preview {
  display: block;
  height: auto;
  max-width: 100%;
  border-radius: var(--rc-radius);
}

.rc-button {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--rc-brand);
  color: var(--rc-surface);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 0;
  margin-top: 8px;
  cursor: pointer;
}

.rc-button:active {
  background: var(--rc-brand-strong);
}

.rc-button:disabled {
  background: var(--rc-border);
  color: var(--rc-text-muted);
  cursor: not-allowed;
}

.rc-alert {
  color: var(--rc-danger);
  font-size: 13px;
  padding: 16px;
  text-align: center;
}

:root[data-theme="placeholder-tenant"] {
  --rc-brand: #1a7f5a;
  --rc-brand-strong: #0f5c40;
  --rc-bg: #f5f2e8;
  --rc-surface: #ffffff;
  --rc-text: #1a1a1a;
  --rc-text-muted: #5c5c5c;
  --rc-border: #ddd6c4;
  --rc-danger: #c62828;
  --rc-radius: 16px;
  --rc-font-family: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
}

.rc-screen-section {
  padding: 16px;
  margin: 12px 0;
  background: var(--rc-surface);
  border-radius: var(--rc-radius);
  overflow-wrap: anywhere;
}

.rc-screen-section h2 {
  font-size: 18px;
}
.rc-screen-section ul {
  padding-left: 20px;
}
.rc-screen-section li {
  margin-bottom: 16px;
}
.rc-screen-section button {
  min-height: 44px;
  margin: 4px;
}
.rc-screen-section p {
  line-height: 1.6;
}

.rc-list-header,
.rc-list-header * {
  box-sizing: border-box;
}

.rc-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -16px -16px 0;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

.rc-list-logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--rc-brand);
  letter-spacing: 0.02em;
}

.rc-list-placeholder-tag {
  display: inline-block;
  font-size: 11px;
  color: #b45300;
  background: #fff3e0;
  border: 1px solid #ffd699;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.rc-list-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #444;
}

.rc-list-header[hidden] {
  display: none;
}

.rc-list-header-actions button {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.rc-list-info-menu {
  position: relative;
}

.rc-list-info-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}

.rc-list-info-menu summary::-webkit-details-marker {
  display: none;
}

.rc-list-info-menu nav {
  position: absolute;
  z-index: 1;
  right: 0;
  width: 188px;
  padding: 8px;
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px #0002;
}

.rc-list-info-menu button {
  display: block;
  width: 100%;
  padding: 9px 8px;
  text-align: left;
}

.rc-list-icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-right: 4px;
}

.rc-list-hamburger {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rc-list-hamburger span {
  display: block;
  height: 2px;
  background: #333;
  border-radius: 1px;
}

@media (max-width: 359px) {
  .rc-list-logo {
    font-size: 18px;
  }

  .rc-list-header-actions {
    gap: 8px;
  }
}

.rc-camera-preview {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.rc-workflow [hidden] {
  display: none;
}

.rc-stg-shell {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--rc-bg);
  overflow-wrap: anywhere;
}

.rc-stg-shell [hidden] {
  display: none;
}

.rc-stg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
  background: var(--rc-surface);
  border-bottom: 1px solid var(--rc-border);
}

.rc-stg-brand {
  color: var(--rc-brand);
  font-size: 20px;
  font-weight: 700;
}

.rc-stg-content {
  padding: 24px 20px;
}

.rc-stg-content h1 {
  margin: 0 0 20px;
  font-size: 21px;
  line-height: 1.5;
}

.rc-stg-back,
.rc-stg-history-link {
  min-height: 44px;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--rc-brand);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.rc-stg-card {
  display: block;
  width: 100%;
  padding: 24px 20px;
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  background: var(--rc-surface);
  color: var(--rc-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 3px 12px #00000008;
}

.rc-stg-campaign-image {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 20px;
  background: var(--rc-surface);
}

.rc-stg-campaign-image > * {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.rc-stg-campaign-image img {
  object-fit: contain;
}

.rc-stg-campaign-image > span {
  display: grid;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
  color: var(--rc-text-muted);
  font-size: 14px;
  text-align: center;
  background: var(--rc-bg);
  border-radius: var(--rc-radius);
}

.rc-stg-card-title {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
}

.rc-stg-description {
  display: block;
  color: var(--rc-text-muted);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.rc-stg-content > .rc-button {
  margin-top: 32px;
}

.rc-stg-shell .rc-workflow,
.rc-stg-shell .rc-screen-section {
  margin: 20px;
  padding: 20px;
  border-radius: var(--rc-radius);
}

.rc-stg-shell .rc-screen-section ul {
  list-style: none;
  padding: 0;
}

.rc-stg-shell .rc-screen-section li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rc-border);
}
