#cleanbot_page,
#cleanbot_page * {
  box-sizing: border-box;
}

#cleanbot_page {
  --cleanbot-space-1: 4px;
  --cleanbot-space-2: 8px;
  --cleanbot-space-3: 12px;
  --cleanbot-space-4: 16px;
  --cleanbot-space-5: 20px;
  --cleanbot-space-6: 24px;
  --cleanbot-space-8: 32px;
  --cleanbot-space-10: 40px;
  --cleanbot-space-12: 48px;
  --cleanbot-space-16: 64px;
  --cleanbot-radius-sm: 12px;
  --cleanbot-radius-md: 16px;
  --cleanbot-radius-lg: 24px;
  --cleanbot-background: #f9fdff;

  min-width: 320px;
  color: var(--hf-color-text);
  background: var(--hf-color-page);
  font-family:
    나눔고딕,
    NanumGothic,
    "Nanum Gothic",
    맑은고딕,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[data-hf-theme="dark"] #cleanbot_page {
  --cleanbot-background: var(--hf-color-surface-soft);
}

.cleanbot-width {
  width: min(
    var(--hf-wide-max-width),
    calc(100% - var(--hf-site-inline-space))
  );
  margin-right: auto;
  margin-left: auto;
}

.cleanbot-hero {
  background: var(--cleanbot-background);
  border-bottom: 1px solid var(--hf-color-line);
}

.cleanbot-hero-inner {
  max-width: var(--hf-wide-max-width);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}

.cleanbot-hero-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  padding: 6px;
  background: var(--hf-color-primary-soft-hover);
  border: 1px solid var(--hf-color-line);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(30, 63, 80, 0.08);
}

.cleanbot-hero-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.cleanbot-hero-kicker,
.cleanbot-section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--hf-color-primary-text);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.cleanbot-hero-kicker {
  margin-top: var(--cleanbot-space-6);
}

.cleanbot-hero h1 {
  max-width: 720px;
  margin: var(--cleanbot-space-3) 0 0;
  color: var(--hf-color-text-strong);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.cleanbot-hero p {
  max-width: 560px;
  margin: var(--cleanbot-space-5) 0 0;
  color: var(--hf-color-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.cleanbot-hero-health {
  display: inline-flex;
  align-items: center;
  gap: var(--cleanbot-space-2);
  margin-top: var(--cleanbot-space-5);
  color: var(--hf-color-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.cleanbot-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--hf-color-muted-light);
  border-radius: 50%;
}

.cleanbot-hero-health.is-active {
  color: var(--hf-color-success);
}

.cleanbot-hero-health.is-active .cleanbot-status-dot {
  background: var(--hf-color-success);
}

.cleanbot-content {
  max-width: var(--hf-wide-max-width);
  padding-top: var(--cleanbot-space-12);
  padding-bottom: 96px;
}

.cleanbot-content > section + section {
  margin-top: 72px;
}

.cleanbot-personal-notice h2,
.cleanbot-work-intro h2,
.cleanbot-activity-heading h2 {
  margin: var(--cleanbot-space-2) 0 0;
  color: var(--hf-color-text-strong);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.cleanbot-personal-notice {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--cleanbot-space-5);
  padding: var(--cleanbot-space-6);
  background: var(--cleanbot-background);
  border: 1px solid var(--hf-color-primary-border);
  border-radius: var(--cleanbot-radius-lg);
}

.cleanbot-personal-notice-icon {
  width: 64px;
  height: 64px;
  padding: 5px;
  background: var(--hf-color-primary-soft-hover);
  border: 1px solid var(--hf-color-primary-border);
  border-radius: var(--cleanbot-radius-md);
}

.cleanbot-personal-notice-icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 11px;
  object-fit: cover;
}

.cleanbot-personal-notice h2 {
  font-size: 20px;
}

.cleanbot-personal-action {
  margin: var(--cleanbot-space-3) 0 0;
  color: var(--hf-color-text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.cleanbot-personal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cleanbot-space-4) var(--cleanbot-space-8);
  margin: var(--cleanbot-space-5) 0 0;
  padding-top: var(--cleanbot-space-4);
  border-top: 1px solid rgba(var(--hf-color-primary-rgb), 0.18);
}

.cleanbot-personal-meta div {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--cleanbot-space-1);
}

.cleanbot-personal-meta dt {
  color: var(--hf-color-muted);
  font-size: 10px;
  font-weight: 700;
}

.cleanbot-personal-meta dd {
  margin: 0;
  color: var(--hf-color-text-strong);
  font-size: 12px;
  font-weight: 800;
}

/* Keep today's real activity attached to the patrol status, without turning it into a dashboard. */
.cleanbot-hero-today {
  margin-top: 6px;
  color: var(--hf-color-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cleanbot-hero-today strong {
  color: var(--hf-color-text);
  font-size: inherit;
  font-weight: 800;
  letter-spacing: inherit;
}

.cleanbot-hero-today-separator {
  margin: 0 5px;
  color: var(--hf-color-muted-light);
}

/* Keep the accepted HOW IT WORKS concept: one connected process, not three cards. */
.cleanbot-work-section {
  padding: var(--cleanbot-space-16) 0;
  border-bottom: 1px solid var(--hf-color-line);
}

.cleanbot-work-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 9vw, 160px);
  align-items: start;
}

.cleanbot-work-intro {
  padding-top: 2px;
}

.cleanbot-work-intro h2 {
  max-width: 260px;
  margin-top: var(--cleanbot-space-3);
  font-size: 26px;
  word-break: keep-all;
}

.cleanbot-work-intro p {
  max-width: 300px;
  margin: var(--cleanbot-space-4) 0 0;
  color: var(--hf-color-muted);
  font-size: 12px;
  line-height: 1.75;
  word-break: keep-all;
}

.cleanbot-flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.cleanbot-flow-track::before {
  content: "";
  position: absolute;
  top: 34px;
  right: 16.666%;
  left: 16.666%;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--hf-color-primary-border),
    var(--hf-color-line)
  );
}

.cleanbot-flow-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 0;
  text-align: center;
}

.cleanbot-flow-step + .cleanbot-flow-step {
  margin-top: 0;
}

.cleanbot-flow-node {
  position: relative;
  width: 52px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cleanbot-flow-number {
  position: absolute;
  top: -2px;
  right: 0;
  z-index: 2;
  min-width: 24px;
  padding: 2px 4px;
  color: var(--hf-color-primary-text);
  font-size: 8px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
}

.cleanbot-flow-icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hf-color-primary-text);
  background: var(--hf-color-primary-soft);
  border: 1px solid var(--hf-color-primary-border);
  border-radius: 50%;
  font-size: 17px;
}

.cleanbot-flow-copy {
  min-width: 0;
  padding: var(--cleanbot-space-3) 0 0;
}

.cleanbot-flow-copy h3 {
  margin: 0;
  color: var(--hf-color-text-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.cleanbot-flow-copy p {
  margin: 6px 0 0;
  color: var(--hf-color-muted);
  font-size: 11.5px;
  line-height: 1.65;
  word-break: keep-all;
}

/* Recent activity is a single calm log surface. Typography and dividers carry the hierarchy. */
.cleanbot-activity-heading {
  margin-bottom: var(--cleanbot-space-5);
}

.cleanbot-activity-heading h2 {
  margin-top: var(--cleanbot-space-2);
}

.cleanbot-activity-heading p {
  margin: var(--cleanbot-space-2) 0 0;
  color: var(--hf-color-muted);
  font-size: 11px;
  line-height: 1.6;
}

.cleanbot-activity-list {
  overflow: hidden;
  background: var(--hf-color-surface-elevated);
  border: 1px solid var(--hf-color-line);
  border-radius: var(--cleanbot-radius-md);
}

.cleanbot-activity-list-heading,
.cleanbot-activity-row {
  display: grid;
  gap: var(--cleanbot-space-5);
  align-items: center;
  padding-right: var(--cleanbot-space-6);
  padding-left: var(--cleanbot-space-6);
}

.cleanbot-activity-list-heading {
  grid-template-columns: 92px minmax(0, 1fr) 112px 92px;
}

.cleanbot-activity-row {
  grid-template-columns: 92px minmax(0, 1fr) 92px;
}

.cleanbot-activity-list-heading {
  min-height: 40px;
  color: var(--hf-color-muted-light);
  background: var(--hf-color-surface-soft);
  border-bottom: 1px solid var(--hf-color-line);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.cleanbot-activity-list-heading span:nth-last-child(-n + 2) {
  text-align: right;
}

.cleanbot-activity-row {
  min-height: 72px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.cleanbot-activity-row + .cleanbot-activity-row {
  border-top: 1px solid var(--hf-color-line);
}

.cleanbot-activity-continuation {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px var(--cleanbot-space-6) 14px;
  color: var(--hf-color-muted);
  background: linear-gradient(
    180deg,
    var(--hf-color-surface-elevated) 0%,
    var(--hf-color-surface-soft) 100%
  );
  border-top: 1px solid var(--hf-color-line);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-align: center;
}

.cleanbot-activity-continuation-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.cleanbot-activity-continuation-dots > span {
  width: 3px;
  height: 3px;
  display: block;
  background: var(--hf-color-primary);
  border-radius: 50%;
}

.cleanbot-activity-continuation-dots > span:nth-child(2) {
  opacity: 0.55;
  transform: scale(0.85);
}

.cleanbot-activity-continuation-dots > span:nth-child(3) {
  opacity: 0.28;
  transform: scale(0.7);
}

.cleanbot-activity-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  column-gap: var(--cleanbot-space-5);
  align-items: center;
}

.cleanbot-activity-domain {
  color: var(--hf-color-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.cleanbot-activity-copy > strong {
  grid-column: 1;
  grid-row: 1;
  display: block;
  color: var(--hf-color-text-strong);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.cleanbot-activity-meta {
  display: contents;
}

.cleanbot-activity-reason {
  grid-column: 1;
  grid-row: 2;
  display: block;
  margin-top: 5px;
  color: var(--hf-color-muted);
  font-size: 11px;
  line-height: 1.45;
}

.cleanbot-activity-restriction {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  color: var(--hf-color-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
}

.cleanbot-activity-restriction.is-empty {
  color: var(--hf-color-muted-light);
  font-weight: 500;
}

.cleanbot-activity-time {
  justify-self: end;
  color: var(--hf-color-muted-light);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cleanbot-activity-empty {
  margin: 0;
  padding: 36px var(--cleanbot-space-6);
  color: var(--hf-color-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.cleanbot-privacy-note {
  margin: var(--cleanbot-space-3) 0 0;
  color: var(--hf-color-muted-light);
  font-size: 9.5px;
  line-height: 1.55;
  text-align: right;
}

@media (max-width: 768px) {
  .cleanbot-width {
    width: calc(100% - 32px);
  }

  .cleanbot-hero-inner {
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cleanbot-hero-avatar {
    width: 76px;
    height: 76px;
    border-radius: 19px;
  }

  .cleanbot-hero-avatar img {
    border-radius: 13px;
  }

  .cleanbot-hero-kicker {
    margin-top: var(--cleanbot-space-5);
  }

  .cleanbot-hero h1 {
    font-size: 27px;
    line-height: 1.4;
  }

  .cleanbot-hero p {
    margin-top: var(--cleanbot-space-4);
    font-size: 12.5px;
    line-height: 1.75;
  }

  .cleanbot-hero-health {
    margin-top: var(--cleanbot-space-4);
  }

  .cleanbot-hero-today {
    margin-top: 5px;
    font-size: 10.5px;
  }

  .cleanbot-content {
    padding-top: var(--cleanbot-space-8);
    padding-bottom: var(--cleanbot-space-16);
  }

  .cleanbot-content > section + section {
    margin-top: var(--cleanbot-space-12);
  }

  .cleanbot-personal-notice {
    grid-template-columns: 1fr;
    gap: var(--cleanbot-space-4);
    padding: var(--cleanbot-space-5);
  }

  .cleanbot-personal-notice-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--cleanbot-radius-sm);
  }

  .cleanbot-personal-notice h2,
  .cleanbot-work-intro h2,
  .cleanbot-activity-heading h2 {
    font-size: 20px;
  }

  .cleanbot-personal-action {
    font-size: 13px;
  }

  .cleanbot-personal-meta {
    gap: var(--cleanbot-space-3) var(--cleanbot-space-5);
    margin-top: var(--cleanbot-space-4);
  }

  .cleanbot-personal-meta div {
    min-width: calc(50% - 10px);
  }

  .cleanbot-work-section {
    padding: var(--cleanbot-space-8) 0;
  }

  .cleanbot-work-layout {
    grid-template-columns: 1fr;
    gap: var(--cleanbot-space-6);
  }

  .cleanbot-work-intro h2,
  .cleanbot-work-intro p {
    max-width: none;
  }

  .cleanbot-work-intro p {
    margin-top: var(--cleanbot-space-3);
  }

  .cleanbot-flow-track {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .cleanbot-flow-track::before {
    top: 29px;
    right: auto;
    bottom: 29px;
    left: 22px;
    width: 1px;
    height: auto;
    background: linear-gradient(
      to bottom,
      var(--hf-color-primary-border),
      var(--hf-color-line)
    );
  }

  .cleanbot-flow-step {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: var(--cleanbot-space-4);
    align-items: center;
    min-height: 80px;
    padding: var(--cleanbot-space-3) 0;
    text-align: left;
  }

  .cleanbot-flow-step + .cleanbot-flow-step {
    margin-top: var(--cleanbot-space-3);
  }

  .cleanbot-flow-node {
    width: 46px;
    min-height: 62px;
  }

  .cleanbot-flow-icon {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .cleanbot-flow-number {
    right: -1px;
    font-size: 7px;
  }

  .cleanbot-flow-copy {
    padding: var(--cleanbot-space-3) 0;
  }

  .cleanbot-activity-heading {
    margin-bottom: var(--cleanbot-space-4);
  }

  .cleanbot-activity-list-heading {
    display: none;
  }

  .cleanbot-activity-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px var(--cleanbot-space-3);
    align-items: start;
    min-height: 96px;
    padding: var(--cleanbot-space-4);
  }

  .cleanbot-activity-domain {
    grid-column: 1;
    grid-row: 1;
    font-size: 10px;
  }

  .cleanbot-activity-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
  }

  .cleanbot-activity-copy > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cleanbot-activity-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
  }

  .cleanbot-activity-reason {
    min-width: 0;
    flex: 0 1 auto;
    margin-top: 0;
    overflow: hidden;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cleanbot-activity-restriction {
    flex: 0 0 auto;
    color: var(--hf-color-muted);
    font-size: 10px;
    text-align: left;
  }

  .cleanbot-activity-restriction:not(.is-empty)::before {
    margin-right: 6px;
    color: var(--hf-color-muted-light);
    content: "·";
  }

  .cleanbot-activity-restriction.is-empty {
    display: none;
  }

  .cleanbot-activity-time {
    grid-column: 2;
    grid-row: 1;
    font-size: 10px;
  }

  .cleanbot-activity-continuation {
    min-height: 62px;
    padding: 12px var(--cleanbot-space-4) 13px;
    font-size: 10px;
  }

  .cleanbot-privacy-note {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .cleanbot-width {
    width: calc(100% - 24px);
  }

  .cleanbot-hero h1 {
    font-size: 24px;
  }

  .cleanbot-activity-row {
    padding-right: var(--cleanbot-space-3);
    padding-left: var(--cleanbot-space-3);
  }
}
