.phase-home {
  min-height: 100%;
  background: linear-gradient(180deg, #91a8e4 0%, #c5d1ed 42%, #edf3fb 100%);
  color: #101828;
}

.home-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 78px;
  padding: 28px 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #91a8e4;
}

.home-top-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 500;
}

.home-top-icon,
.home-capsule {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-top-icon {
  left: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #14213d;
}

.home-top-icon svg {
  width: 23px;
  height: 23px;
}

.home-capsule {
  display: none !important;
  right: 8px;
  height: 38px;
  min-width: 112px;
  padding: 0 12px;
  gap: 11px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .72);
  color: #111827;
}

.home-capsule .dots {
  display: flex;
  gap: 4px;
}

.home-capsule .dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.home-capsule .minus {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.home-capsule .divider {
  width: 1px;
  height: 18px;
  background: rgba(17, 24, 39, .22);
}

.home-scroll {
  height: calc(100% - 78px);
  overflow-y: auto;
  padding: 14px 16px 30px;
  -webkit-overflow-scrolling: touch;
}

.hero-banner {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #cfe9ff;
  box-shadow: 0 10px 18px rgba(30, 56, 109, .18);
}

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

.hero-dot {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #333;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55);
}

.notice-bar {
  min-height: 56px;
  margin-top: 24px;
  padding: 11px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  display: grid;
  grid-template-columns: 32px 1fr auto 16px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.notice-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1683ff;
}

.notice-icon svg {
  width: 24px;
  height: 24px;
}

.notice-copy {
  min-width: 0;
}

.notice-copy span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-copy span {
  color: #1f3556;
  font-size: 13px;
  line-height: 1.35;
}

.notice-more {
  color: #111827;
  font-size: 14px;
  white-space: nowrap;
}

.notice-arrow {
  width: 16px;
  height: 16px;
  color: #111827;
}

.quick-entry-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-entry {
  height: 68px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111827;
  font: inherit;
  cursor: pointer;
}

.quick-entry strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.quick-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 -10px 16px rgba(255, 255, 255, .22);
}

.quick-icon svg {
  width: 24px;
  height: 24px;
}

.quick-icon.ai { background: linear-gradient(145deg, #1677ff, #60b5ff); }
.quick-icon.study { background: linear-gradient(145deg, #08c18e, #11d0b4); }

.feature-board {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.08fr .9fr .9fr;
  grid-template-rows: 122px 90px;
  gap: 14px;
}

.feature-card,
.tool-item {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.quick-entry,
.feature-card:not(.is-disabled),
.tool-item:not(.is-disabled) {
  border: 2px dashed #ef4444;
}

.feature-card.is-disabled,
.tool-item.is-disabled,
.notice-bar.is-disabled {
  cursor: default;
  pointer-events: none;
}

.feature-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset;
}

.feature-card:active,
.tool-item:active,
.quick-entry:active,
.notice-bar:active {
  opacity: .78;
}

.fault-card {
  grid-row: 1 / 3;
  padding: 18px 12px 12px;
}

.card-title {
  position: absolute;
  top: 18px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: block;
  text-align: center;
  color: #111827;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 500;
}

.fault-visual {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 84px;
  border-radius: 10px;
  background: #dbe9f3;
}

.error-box {
  position: absolute;
  left: 13px;
  top: 23px;
  width: 84px;
  height: 50px;
  transform: rotate(5deg);
  border-radius: 8px;
  background: #3199cf;
  color: #fff;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
  padding-top: 8px;
  box-shadow: 0 6px 12px rgba(49, 153, 207, .18);
}

.alert-dot {
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #f05345;
  color: #fff;
  font-size: 32px;
  line-height: 43px;
  text-align: center;
  font-weight: 800;
}

.mini-card {
  padding: 15px 9px 8px;
}

.mini-card .card-title {
  top: 17px;
  font-size: 15px;
}

.diagram-card .card-title { color: #e78b00; }
.case-card .card-title { color: #2449ba; }

.truck-visual {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 10px;
  height: 45px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, #8ba7bb 0 25%, transparent 25% 100%),
    linear-gradient(90deg, transparent 0 22%, #f1f6fa 22% 100%);
}

.truck-visual::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 12px;
  width: 44px;
  height: 24px;
  border-radius: 8px;
  background: #b5c9d9;
}

.truck-visual::after {
  content: '';
  position: absolute;
  left: 5px;
  bottom: 4px;
  width: 70px;
  height: 5px;
  border-radius: 999px;
  background: #9fb4c5;
}

.truck-visual.warning::before {
  left: 34px;
}

.truck-visual.warning::after {
  left: 20px;
}

.truck-visual.warning {
  background:
    radial-gradient(circle at 10px 15px, #ef4f43 0 7px, transparent 8px),
    linear-gradient(90deg, #8ba7bb 0 25%, transparent 25% 100%),
    linear-gradient(90deg, transparent 0 22%, #f1f6fa 22% 100%);
}

.wide-card {
  grid-column: 2 / 4;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
}

.wide-icon {
  width: 58px;
  height: 58px;
  margin-top: 10px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #7a8794;
  background: linear-gradient(145deg, #f7f7f4, #e8ecef);
}

.wide-icon svg {
  width: 34px;
  height: 34px;
}

.wide-copy strong,
.wide-copy em {
  display: block;
  font-style: normal;
}

.wide-copy strong {
  margin-top: 1px;
  color: #d33232;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
}

.tool-panel {
  margin-top: 27px;
  padding: 20px 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 16px;
}

.tool-item {
  min-height: 88px;
  padding: 0 4px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 -14px 20px rgba(255, 255, 255, .22);
}

.tool-icon svg {
  width: 29px;
  height: 29px;
}

.tool-item strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 400;
}

.tool-item.important .tool-icon {
  box-shadow:
    inset 0 -14px 20px rgba(255, 255, 255, .22),
    0 8px 14px rgba(24, 119, 255, .12);
}

.tool-icon.blue { background: linear-gradient(145deg, #3c73ff, #8ad5ed); }
.tool-icon.green { background: linear-gradient(145deg, #08c18e, #11d0b4); }
.tool-icon.orange { background: linear-gradient(145deg, #ff5b25, #ffad54); }
.tool-icon.yellow { background: linear-gradient(145deg, #ffb500, #ffd44f); }
.tool-icon.red { background: linear-gradient(145deg, #ff6234, #ff9d60); }
.tool-icon.teal { background: linear-gradient(145deg, #00bfa8, #17d5b8); }

@media (max-width: 360px) {
  .home-scroll {
    padding-left: 12px;
    padding-right: 12px;
  }

  .feature-board {
    gap: 10px;
  }

  .card-title {
    font-size: 17px;
  }

  .mini-card .card-title,
  .tool-item strong {
    font-size: 14px;
  }
}
