@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --red:        #E9002B;
  --red-dark:   #C40024;
  --text-1:     #191F28;
  --text-2:     #6B7684;
  --text-3:     #B0B8C1;
  --bg-surface: #F7F8FA;
  --border:     #E5E8EB;
  --nav-gray:   #9AA1AF;
  --ease-out:    cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.1, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  background: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 0 40px;
}

#app {
  width: 402px;
  height: 874px;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 44px;
  box-shadow:
    0 0 0 10px #1c1c1e,
    0 0 0 11px #3a3a3c;
  position: relative;
}

.status-bar {
  flex-shrink: 0;
  height: 50px;
  padding: 0 22px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}

.sb-time {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-1);
}

.sb-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sb-signal { width: 19px; height: 13px; color: var(--text-1); margin-right: 1px; }

.sb-network {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

.sb-battery { display: flex; align-items: center; margin-left: 2px; }

.sb-battery-body {
  width: 28px;
  height: 14px;
  border: 1.6px solid rgba(0,0,0,0.35);
  border-radius: 4px;
  padding: 1.5px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sb-battery-fill {
  position: absolute;
  left: 1.5px; top: 1.5px; bottom: 1.5px;
  background: var(--text-1);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.sb-battery-pct {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  color: white;
  mix-blend-mode: difference;
  letter-spacing: -0.2px;
}

.sb-battery-cap {
  width: 2px;
  height: 6px;
  background: rgba(0,0,0,0.35);
  border-radius: 0 1.5px 1.5px 0;
}

.header {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: white;
  position: relative;
  z-index: 10;
}

.hdr-logo {
  display: flex;
  align-items: center;
  height: 56px;
}

.hdr-logo img {
  height: 22px;
  object-fit: contain;
  transform: translateY(-2px);
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hdr-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  padding: 6px 2px;
  transition: opacity 300ms ease;
  position: relative;
}

.hdr-btn:active { opacity: 0.4; }

.alarm-dot {
  position: absolute;
  top: 4px;
  right: -3px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid white;
  display: none;
}
.alarm-dot.visible { display: block; }

.hdr-avatar {
  width: 30px;
  height: 30px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
  pointer-events: none;
}

.content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.content::-webkit-scrollbar { display: none; }

.greeting {
  padding: 0 4px;
}

.greeting-text {
  font-size: 24px;
  line-height: 1.45;
  color: var(--text-1);
  letter-spacing: -0.5px;
  font-weight: 500;
}

.greeting-text strong {
  font-size: 26px;
  font-weight: 800;
}

.card-red {
  background: var(--red);
  border-radius: 16px;
  padding: 22px 18px 18px;
  user-select: none;
}

.card-red-text h2 {
  color: white;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.card-red-text p {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.1px;
}

.card-red-imgs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.img-box {
  flex: 1;
  height: 86px;
  background: rgba(0,0,0,0.14);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 4px;
  font-family: inherit;
  transition: background 300ms ease, transform 300ms var(--ease-out);
}

.img-box:active {
  background: rgba(0,0,0,0.22);
  transform: scale(0.96);
}

.img-box span {
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-align: center;
  line-height: 1.3;
  word-break: keep-all;
}

.card-row {
  display: flex;
  gap: 10px;
}

.card-white {
  flex: 1;
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 18px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
  transition: transform 320ms var(--ease-out), box-shadow 320ms ease;
  will-change: transform;
}

.card-white:active {
  transform: scale(0.983);
}

.card-white strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

.card-white span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.5;
  letter-spacing: -0.1px;
}

.notice-card {
  background: var(--bg-surface);
  border-radius: 14px;
  overflow: hidden;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 12px;
}

.notice-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

.notice-more {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  padding: 2px 0;
  transition: opacity 300ms ease;
}

.notice-more:active { opacity: 0.4; }

.notice-list {
  list-style: none;
}

.notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 300ms ease;
  gap: 12px;
}

.notice-item:active { background: var(--border); }

.notice-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.notice-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-date {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: -0.1px;
}

.notice-chevron { flex-shrink: 0; }

.bottom-nav {
  flex-shrink: 0;
  height: 64px;
  display: flex;
  background: white;
  border-top: 1px solid var(--border);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--nav-gray);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.2px;
  padding: 0;
  transition: color 340ms ease, transform 300ms var(--ease-spring);
}

.nav-item:active { transform: scale(0.96); }
.nav-item.active  { color: var(--red); }

.nav-icon {
  display: block;
  width: auto;
  height: 20px;
  transition: transform 340ms var(--ease-spring);
}

.nav-item[data-tab="mailbox"] .nav-icon { height: 17px; }
.nav-item[data-tab="support"]  .nav-icon { height: 22px; }
.nav-item.active .nav-icon { transform: scale(1.03); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  18%  { transform: translateX(-5px); }
  36%  { transform: translateX(5px); }
  54%  { transform: translateX(-3px); }
  72%  { transform: translateX(3px); }
}

.shake-input { animation: shake 0.32s ease; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  transition: background 380ms ease;
}

.modal-overlay.active {
  background: rgba(0, 0, 0, 0.45);
  pointer-events: all;
}

.modal-sheet {
  width: 100%;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 12px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(100%);
  transition: transform 380ms var(--ease-out);
  touch-action: none;
  user-select: none;
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 24px;
}

.modal-icon-svg {
  margin-bottom: 16px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-align: center;
}

.modal-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: -0.2px;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.modal-list {
  width: 100%;
  list-style: none;
  background: var(--bg-surface);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.modal-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-list-item:last-child {
  border-bottom: none;
}

.modal-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.2px;
}

.modal-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

.modal-btn {
  width: 100%;
  height: 54px;
  background: var(--red);
  border: none;
  border-radius: 14px;
  color: white;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: background 300ms ease, transform 300ms var(--ease-spring);
}

.modal-btn:active {
  background: var(--red-dark);
  transform: scale(0.98);
}

.modal-sheet--noti {
  align-items: stretch;
  padding: 12px 0 36px;
  max-height: 78%;
}

.noti-sheet-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--border);
}

.noti-sheet-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
}

.btn-read-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
  letter-spacing: -0.1px;
}
.btn-read-all:active { opacity: 0.5; }

.noti-list {
  overflow-y: auto;
  scrollbar-width: none;
}
.noti-list::-webkit-scrollbar { display: none; }

.noti-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-surface);
  position: relative;
  transition: background 300ms ease;
}
.noti-item.unread { background: #FFF8F9; }
.noti-item:active { background: var(--bg-surface); }

.noti-unread-mark {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
}

.noti-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.noti-icon.red   { background: #FFEEF1; color: var(--red); }
.noti-icon.green { background: #E8F8EE; color: #1A9B45; }
.noti-icon.gray  { background: var(--bg-surface); color: var(--text-3); }

.noti-content { flex: 1; min-width: 0; }

.noti-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.noti-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.noti-time {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.noti-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: -0.1px;
  line-height: 1.45;
}

.content-v2 {
  background: var(--bg-surface);
  padding: 20px 20px 32px;
  gap: 0;
}

.greeting-text-v2 {
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-1);
  letter-spacing: -0.4px;
  padding: 4px 0 24px;
}

.card-red-v2 {
  margin-bottom: 24px;
}

.flat-row {
  display: flex;
  align-items: stretch;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.flat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0 4px;
  transition: opacity 300ms ease;
}
.flat-item:active { opacity: 0.5; }

.flat-item strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

.flat-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.4;
  letter-spacing: -0.1px;
}

.flat-divider {
  width: 1px;
  background: var(--border);
  margin: 0 20px;
}

.flat-notice-list {
  list-style: none;
  padding-top: 8px;
}

.flat-notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.flat-notice-item:active .notice-title { color: var(--red); }

@media (max-width: 480px) {
  body { padding: 0; background: white; }
  #app {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

.tab-panels {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.tab-panel {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.tab-panel.active { display: flex; }

.map-area {
  flex-shrink: 0;
  height: 240px;
  background: #E8EDF5;
  position: relative;
  overflow: hidden;
}

.map-my-location {
  position: absolute;
  bottom: 12px; right: 12px;
  z-index: 1000;
  font-size: 11px; font-weight: 700;
  color: #E9002B;
  background: white;
  padding: 6px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  letter-spacing: -0.1px;
  cursor: pointer;
}

.map-search-wrap {
  flex-shrink: 0;
  padding: 12px 16px 10px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1000;
}

.map-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 10px 14px;
}

.map-search-icon {
  flex-shrink: 0;
  color: var(--text-3);
}

.map-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Pretendard', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-1);
  letter-spacing: -0.2px;
  outline: none;
}

.map-search-input::placeholder {
  color: var(--text-3);
}

.map-search-clear {
  flex-shrink: 0;
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-3);
  line-height: 1;
}

.map-search-clear.visible { display: block; }

.po-no-result {
  display: none;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: -0.2px;
}

.po-no-result.visible { display: block; }

.po-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.po-scroll::-webkit-scrollbar { display: none; }

.po-list-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.po-list-title {
  font-size: 15px; font-weight: 700; color: var(--text-1); letter-spacing: -0.3px;
}

.po-count {
  font-size: 13px; font-weight: 500; color: var(--text-3);
}

.po-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bg-surface);
  cursor: pointer;
  transition: background 300ms ease;
  gap: 12px;
}
.po-item:active { background: var(--bg-surface); }

.po-item-left { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }

.po-name-row { display: flex; align-items: center; gap: 8px; }
.po-name { font-size: 16px; font-weight: 700; color: var(--text-1); letter-spacing: -0.3px; }

.po-badge {
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px;
  flex-shrink: 0;
}
.po-badge.open   { background: #E8F8EE; color: #1A9B45; }
.po-badge.closed { background: var(--bg-surface); color: var(--text-3); }

.po-addr  { font-size: 13px; font-weight: 400; color: var(--text-2); letter-spacing: -0.1px; }
.po-hours { font-size: 12px; font-weight: 400; color: var(--text-3); letter-spacing: -0.1px; }

.po-dist {
  font-size: 13px; font-weight: 600; color: var(--text-3);
  flex-shrink: 0; padding-top: 3px;
}

.mb-tabs {
  flex-shrink: 0;
  display: flex;
  border-bottom: 1.5px solid var(--border);
  background: white;
}

.mb-tab {
  flex: 1;
  height: 46px;
  border: none; background: none;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text-3); letter-spacing: -0.2px;
  cursor: pointer;
  position: relative;
  transition: color 340ms ease;
}
.mb-tab.active { color: var(--text-1); }
.mb-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1.5px; left: 0; right: 0;
  height: 2px; background: var(--red);
}

.mb-scroll {
  flex: 1; overflow-y: auto;
  scrollbar-width: none;
}
.mb-scroll::-webkit-scrollbar { display: none; }

.mb-list { display: none; flex-direction: column; }
.mb-list.active { display: flex; }

.mail-item {
  border-bottom: 1px solid var(--bg-surface);
  background: white;
  cursor: pointer;
}

.mail-head {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 0;
}

.mail-type {
  font-size: 15px; font-weight: 600; color: var(--text-1);
  letter-spacing: -0.2px;
  min-width: 72px;
}

.mail-tracking {
  flex: 1;
  font-size: 13px; font-weight: 400; color: var(--text-2);
  letter-spacing: 0.3px;
}

.mail-status {
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.2px;
  flex-shrink: 0;
  margin-right: 10px;
}
.mail-status.delivering { color: var(--red); }
.mail-status.delivered  { color: #1A9B45; }

.mail-chevron {
  color: var(--text-3);
  transition: transform 300ms var(--ease-out);
  flex-shrink: 0;
}
.mail-item.open .mail-chevron { transform: rotate(90deg); }

.mail-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 620ms var(--ease-out);
  background: var(--bg-surface);
}
.mail-item.open .mail-body { max-height: 600px; }

.mail-body-inner {
  padding: 20px 20px 4px;
}

.stages { display: flex; flex-direction: column; }

.stage {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-bottom: 18px;
}
.stage:last-child { padding-bottom: 0; }

.stage-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.stage-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 3px;
  flex-shrink: 0;
}
.stage-dot.done    { background: var(--text-3); }
.stage-dot.current { background: var(--red); width: 12px; height: 12px; margin-top: 2px; box-shadow: 0 0 0 3px rgba(233,0,43,0.15); }
.stage-dot.pending { border: 2px solid var(--border); background: white; }

.stage-line {
  width: 1.5px;
  flex: 1;
  min-height: 10px;
  background: var(--border);
  margin-top: 4px;
}
.stage:last-child .stage-line { display: none; }

.stage-info { flex: 1; padding-bottom: 4px; }
.stage-label {
  font-size: 14px; font-weight: 600;
  color: var(--text-2); letter-spacing: -0.2px;
}
.stage-label.current { color: var(--text-1); }
.stage-label.pending  { color: var(--text-3); font-weight: 500; }
.stage-time {
  font-size: 12px; color: var(--text-3);
  margin-top: 2px; letter-spacing: -0.1px;
}

.btn-detail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 46px;
  margin-top: 16px;
  margin-bottom: 16px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  color: var(--text-2); letter-spacing: -0.2px;
  cursor: button;
  transition: background 300ms ease, border-color 300ms ease;
}
.btn-detail-link:active { background: var(--bg-surface); border-color: var(--text-3); }

.detail-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  transform: translateX(100%);
  transition: transform 380ms var(--ease-out);
  z-index: 20;
}
.detail-panel.open { transform: translateX(0); }

.dp-header {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.dp-back {
  background: none; border: none; padding: 8px; margin: -8px;
  cursor: pointer; color: var(--text-1);
  display: flex; align-items: center;
  transition: opacity 300ms ease;
  position: relative; z-index: 1;
}
.dp-back:active { opacity: 0.4; }
.dp-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 16px; font-weight: 700; color: var(--text-1); letter-spacing: -0.3px;
}

.dp-scroll {
  flex: 1; overflow-y: auto;
  padding: 20px 20px 40px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: none;
}
.dp-scroll::-webkit-scrollbar { display: none; }

.dp-tracking-card {
  background: white; border-radius: 14px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.dp-tracking-num {
  font-size: 20px; font-weight: 700; color: var(--text-1);
  letter-spacing: 0.5px;
}
.dp-tracking-type {
  font-size: 13px; font-weight: 500; color: var(--text-2);
}

.dp-info-card {
  background: white; border-radius: 14px;
  overflow: hidden;
}
.dp-info-row {
  display: flex; align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--bg-surface);
  gap: 12px;
}
.dp-info-row:last-child { border-bottom: none; }
.dp-info-key { font-size: 13px; font-weight: 500; color: var(--text-3); min-width: 60px; }
.dp-info-val { font-size: 13px; font-weight: 600; color: var(--text-1); letter-spacing: -0.1px; }

@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tracking-result-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  animation: fadeInSlideUp 0.35s ease-out;
}

.dp-stages-card {
  background: white; border-radius: 14px;
  padding: 18px;
}
.dp-stages-title {
  font-size: 13px; font-weight: 700; color: var(--text-2);
  margin-bottom: 18px; letter-spacing: -0.1px;
}

.mypage-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  padding-bottom: 32px;
}
.mypage-scroll::-webkit-scrollbar { display: none; }

.my-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 20px 20px;
  background: white;
}

.my-avatar-lg {
  width: 60px;
  height: 60px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.my-profile-info { flex: 1; }

.my-profile-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.my-profile-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: -0.1px;
}

.my-profile-edit {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.1px;
  transition: background 300ms ease;
}
.my-profile-edit:active { background: var(--bg-surface); }

.my-menu-group {
  background: white;
  overflow: hidden;
}

.my-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: white;
  border: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 300ms ease;
  text-align: left;
}
.my-menu-item:active { background: var(--bg-surface); }

.my-menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.my-menu-label {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: -0.2px;
}

.my-menu-sep {
  height: 1px;
  background: var(--bg-surface);
  margin: 0 20px;
}

.my-menu-chevron {
  color: var(--text-3);
  flex-shrink: 0;
}

.my-logout-btn {
  display: block;
  width: 100%;
  height: 52px;
  background: white;
  border: none;
  border-top: 1px solid var(--bg-surface);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  letter-spacing: -0.2px;
  margin-top: 20px;
  transition: color 300ms ease, background 300ms ease;
}
.my-logout-btn:active { background: #FFF0F2; color: var(--red); }

.modal-sheet--tracking {
  align-items: stretch;
  padding: 12px 0 0;
  max-height: 88%;
  overflow: hidden;
}

.tracking-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 44px;
  scrollbar-width: none;
}
.tracking-scroll::-webkit-scrollbar { display: none; }

.tracking-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.tracking-input-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.1px;
  margin-bottom: 6px;
}

.tracking-input-row {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 20px;
  transition: border-color 220ms ease;
}
.tracking-input-row:focus-within { border-bottom-color: var(--red); }

.tracking-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 1.5px;
  outline: none;
  caret-color: var(--red);
  padding: 8px 0;
}
.tracking-input::placeholder {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-3);
}

.tracking-clear {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  transition: opacity 200ms ease;
}
.tracking-clear.visible { display: flex; align-items: center; }
.tracking-clear:active { opacity: 0.5; }

.tracking-search-btn {
  width: 100%;
  height: 54px;
  background: var(--red);
  border: none;
  border-radius: 14px;
  color: white;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: background 300ms ease, transform 300ms var(--ease-spring), opacity 300ms ease;
  margin-bottom: 20px;
}
.tracking-search-btn:disabled {
  background: var(--border);
  cursor: not-allowed;
}
.tracking-search-btn:not(:disabled):active {
  background: var(--red-dark);
  transform: scale(0.98);
}

.tracking-result-card {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 10px;
  animation: fadeUp 320ms var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tracking-result-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.tracking-result-type {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 4px;
}

.tracking-result-status {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
.tracking-result-status.delivering { color: var(--red); }
.tracking-result-status.delivered  { color: #1A9B45; }

.tracking-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 46px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: background 300ms ease;
  animation: fadeUp 320ms var(--ease-out) both;
  animation-delay: 60ms;
}
.tracking-link-btn:active { background: var(--bg-surface); }

.tracking-empty {
  text-align: center;
  padding: 40px 20px;
  animation: fadeInSlideUp 0.35s ease-out;
}

@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tracking-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.tracking-empty-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: -0.1px;
}

.modal-sheet--visit {
  align-items: stretch;
  padding: 12px 24px 40px;
}

.visit-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.visit-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: -0.1px;
  margin-bottom: 22px;
  line-height: 1.5;
}

.visit-date-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.visit-date-chips::-webkit-scrollbar { display: none; }

.visit-date-chip {
  flex-shrink: 0;
  height: 68px;
  min-width: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: white;
  cursor: pointer;
  transition: all 280ms var(--ease-out);
}
.visit-date-chip:active { transform: scale(0.96); }
.visit-date-chip.active {
  border-color: var(--red);
  background: #FFF8F9;
}

.visit-date-chip .chip-day {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: -0.1px;
}
.visit-date-chip.active .chip-day { color: var(--red); }

.visit-date-chip .chip-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.5px;
  line-height: 1;
}
.visit-date-chip.active .chip-num { color: var(--red); }

.visit-action-btn {
  width: 100%;
  height: 54px;
  background: var(--red);
  border: none;
  border-radius: 14px;
  color: white;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: background 300ms ease, transform 300ms var(--ease-spring);
}
.visit-action-btn:disabled {
  background: var(--border);
  cursor: not-allowed;
}
.visit-action-btn:not(:disabled):active {
  background: var(--red-dark);
  transform: scale(0.98);
}

.visit-time-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.visit-time-opt {
  width: 100%;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 20px;
  gap: 3px;
  background: var(--bg-surface);
  border: 1.5px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 280ms var(--ease-out);
}
.visit-time-opt:active { transform: scale(0.99); }
.visit-time-opt.active {
  background: #FFF8F9;
  border-color: var(--red);
}

.visit-time-opt strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}
.visit-time-opt.active strong { color: var(--red); }

.visit-time-opt span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.1px;
}

.visit-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 32px;
  text-align: center;
}

.visit-complete-icon {
  width: 64px;
  height: 64px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(233, 0, 43, 0.25);
}

.visit-complete-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.visit-complete-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.6;
  letter-spacing: -0.2px;
}

.header-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: var(--text-1);
}

.nd-content {
  padding: 24px 20px 40px;
}
.nd-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.4;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.nd-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: -0.1px;
}
.nd-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
  border: none;
}
.nd-body {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.6;
  letter-spacing: -0.2px;
}
.nd-body p {
  margin-bottom: 16px;
}
.nd-body p:last-child {
  margin-bottom: 0;
}

.nl-content {
  padding: 16px 0 40px;
}
.nl-content .notice-list {
  border-top: 1px solid var(--border);
}
