/* sos closure page */
.container {
  min-height: 100vh;
  background: #F5F5F7;
  padding: 12px;
  box-sizing: border-box;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, #FFF7E8, #FDE7C7);
}
.hero.ok{background:linear-gradient(135deg,#F5FFF8,#FFF8F1)}
.hero.warn{background:linear-gradient(135deg,#FFF8EA,#FFFDF8)}
.hero.alert{background:linear-gradient(135deg,#FFF1F1,#FFF8F1)}

.hero-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1D1D1F;
}

.hero-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #7C5A25;
}

.hero-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 499.5px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,.86);
}

.hero-badge.ok { color: #34C759; }
.hero-badge.warn { color: #FF9500; }
.hero-badge.alert { color: #D94B55; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.summary-card,
.section {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
}

.summary-card {
  padding: 10px 9px;
}

.summary-label {
  display: block;
  font-size: 11px;
  color: #9AA0A6;
}

.summary-value {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
}

.summary-value.ok { color: #34C759; }
.summary-value.warn { color: #FF9500; }
.summary-value.alert { color: #D94B55; }

.section {
  margin-top: 8px;
  padding: 11px 10px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1D1D1F;
}

.section-link {
  font-size: 11px;
  color: #4A90D9;
}

.info-list {
  margin-top: 7px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 0.5px solid #EEF2F6;
}

.info-row:first-child { border-top: none; padding-top: 0; }
.info-row.notes { align-items: flex-start; }

.info-label {
  flex-shrink: 0;
  font-size: 11.5px;
  color: #9AA0A6;
}

.info-value {
  flex: 1;
  text-align: right;
  font-size: 12px;
  line-height: 1.6;
  color: #374151;
  word-break: break-all;
}

.contact-card {
  padding: 8px 0;
  border-top: 0.5px solid #EEF2F6;
}

.contact-card:first-child {
  border-top: none;
  padding-top: 7px;
}

.contact-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1D1D1F;
}

.contact-meta {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #6B7280;
}

.alert-list {
  margin-top: 7px;
}

.alert-item {
  padding: 9px 0;
  border-top: 0.5px solid #EEF2F6;
}

.alert-item:first-child {
  border-top: none;
  padding-top: 7px;
}

.alert-item.warn .alert-title {
  color: #D97706;
}

.alert-item.alert .alert-title {
  color: #E11D48;
}

.alert-item.ok .alert-title {
  color: #16A34A;
}

.alert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.alert-title {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #1D1D1F;
}

.alert-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #9AA0A6;
}

.alert-desc {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #6B7280;
}

.timeline {
  margin-top: 7px;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 0 0 10px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child .timeline-body {
  padding-bottom: 0;
}

.timeline-item:last-child .timeline-body::after {
  display: none;
}

.timeline-marker {
  position: relative;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 50%;
  background: #4A90D9;
  box-shadow: 0 0 0 3px rgba(74,144,217,0.12);
}
.timeline-marker.ok{background:#24A26B;box-shadow:0 0 0 3px rgba(36,162,107,.12)}
.timeline-marker.warn{background:#D9826B;box-shadow:0 0 0 3px rgba(217,130,107,.14)}
.timeline-marker.alert{background:#D94B55;box-shadow:0 0 0 3px rgba(217,75,85,.14)}

.closure-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:9px;
}
.closure-actions button{
  height:38px;
  line-height:38px;
  border-radius:499.5px;
  background:#D9826B;
  color:#fff;
  font-size:12.5px;
  font-weight:900;
}
.closure-actions button.light{
  background:#FFF4EA;
  color:#5A3B31;
}
.closure-actions button::after{border:0}

.timeline-body {
  position: relative;
  flex: 1;
  padding-bottom: 10px;
}

.timeline-body::after {
  content: '';
  position: absolute;
  left: -13px;
  top: 13px;
  bottom: -3px;
  width: 1px;
  background: #DCE7F5;
}

.timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.timeline-title {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
  color: #1D1D1F;
}

.timeline-time {
  flex-shrink: 0;
  font-size: 11px;
  color: #9AA0A6;
}

.timeline-desc {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #6B7280;
}

.empty-mini {
  margin-top: 7px;
  padding: 12px 0 4px;
  text-align: center;
}

.empty-mini-text {
  font-size: 11.5px;
  color: #86868B;
}

.actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.primary-btn,
.ghost-btn {
  flex: 1;
  height: 42px;
  line-height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.primary-btn {
  background: #4A90D9;
  color: #FFFFFF;
}

.ghost-btn {
  background: #FFFFFF;
  color: #4A90D9;
  border: 1px solid rgba(74,144,217,0.18);
}

.primary-btn::after,
.ghost-btn::after {
  border: none;
}

.bind-actions {
  display: flex;
  gap: 7px;
  margin-top: 7px;
}

.bind-btn {
  flex: 1;
  height: 40px;
  line-height: 40px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.bind-btn.share {
  background: rgba(255,182,77,0.18);
  color: #D97706;
}

.bind-btn.copy {
  background: #FFFFFF;
  color: #5A67D8;
  border: 1px solid rgba(90,103,216,0.14);
}

.bind-btn::after {
  border: none;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #1D1D1F;
}

.empty-link {
  margin-top: 9px;
  font-size: 12px;
  color: #4A90D9;
}


.primary-btn{background:#24A26B!important;color:#fff!important;border-radius:499.5px}
.ghost-btn{background:#F1F6FA!important;color:#172033!important;border:0!important;border-radius:499.5px}
.bind-btn{border-radius:499.5px;font-weight:900}
.bind-btn.share{background:#24A26B;color:#fff}
.bind-btn.copy{background:#F1F6FA;color:#172033;border:0}
.empty-link{color:#24A26B}


