* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f3f0;
  color: #1c1c1a;
}
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 20px;
}
.lang-toggle {
  display: flex;
  border: 1px solid #1c1c1a;
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #1c1c1a;
}
.lang-toggle button.active {
  background: #1c1c1a;
  color: #fff;
}
h1 { font-size: 22px; font-weight: 600; margin: 0 0 20px; }
.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.search-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}
.search-row button {
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  background: #1c1c1a;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.msg {
  padding: 14px 16px;
  border-radius: 8px;
  background: #fdecea;
  color: #7a1f1f;
  font-size: 14px;
  margin-bottom: 16px;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.eta {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.eta strong { color: #1c1c1a; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative;
  padding: 0 0 22px 28px;
  font-size: 14px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  bottom: -22px;
  width: 1px;
  background: #e5e5e5;
}
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: #1c9963; }
.timeline li.current { font-weight: 600; }
.timeline li.current::before { background: #1c9963; box-shadow: 0 0 0 3px rgba(28,153,99,0.2); }
.gls-raw {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}
.delayed-banner {
  background: #fdecea;
  color: #7a1f1f;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.details-toggle {
  margin-top: 16px;
  background: none;
  border: none;
  color: #1c6f47;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.history-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.h-timeline-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}
.h-timeline {
  display: flex;
  align-items: flex-start;
  min-width: min-content;
}
.h-step {
  position: relative;
  flex: 0 0 110px;
  text-align: center;
  padding-top: 16px;
}
.h-step::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #ddd;
  z-index: 1;
}
.h-step.done::before {
  background: #1c9963;
}
.h-step:first-child::before {
  display: none;
}
.h-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ddd;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.h-step.done .h-dot {
  background: #1c9963;
}
.h-step.current .h-dot {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 3px rgba(28, 153, 99, 0.2);
}
.h-label {
  font-size: 12px;
  color: #333;
  line-height: 1.3;
  padding: 0 6px;
}
.h-step.current .h-label {
  font-weight: 600;
}
.h-date {
  font-size: 11px;
  color: #999;
  margin-top: 3px;
}
.beta-tag {
  position: fixed;
  bottom: 12px;
  right: 16px;
  font-size: 11px;
  color: #999;
  text-align: right;
  max-width: 320px;
  line-height: 1.5;
}
.beta-tag a {
  color: #999;
}
.disclaimer {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 480px;
}

/* --- admin --- */
.admin-grid { display: grid; gap: 12px; }
.admin-grid label { font-size: 13px; color: #555; display: block; margin-bottom: 4px; }
.admin-grid input, .admin-grid select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.admin-form { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; }
th { color: #666; font-weight: 500; }
button.link-btn { background: none; border: none; color: #1c6f47; cursor: pointer; font-size: 13px; padding: 0; }
button.danger { color: #a32d2d; }

.courier-btn { display: inline-block; margin: 14px 0 4px; padding: 10px 16px; border: 1.5px solid #1c1c1a; border-radius: 999px;
  color: #1c1c1a; font-weight: 600; font-size: 14px; text-decoration: none; }
.courier-btn:hover { background: #1c1c1a; color: #fff; }
