* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eeeeee;
  color: #1d1d1f;
  font-family: Arial, "Noto Sans KR", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#root {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(100vw, 375px);
  min-height: 812px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.app-screen {
  display: flex;
  flex-direction: column;
}

.screen-content {
  flex: 1;
  padding: 44px 16px 92px;
  overflow-y: auto;
}

.app-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.app-logo.compact {
  margin-bottom: 22px;
}

.logo-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #000000;
  color: #ffffff;
}

.app-logo.compact .logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  line-height: 1.05;
}

.splash-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-center {
  transform: translateY(-34px);
  text-align: center;
}

.splash-center h1 {
  margin: 22px 0 0;
  font-size: 24px;
}

.splash-footer {
  position: absolute;
  bottom: 66px;
  left: 0;
  right: 0;
  display: grid;
  gap: 14px;
  text-align: center;
}

.splash-footer span {
  color: #d4d4d4;
  font-size: 18px;
}

.splash-footer strong {
  font-size: 24px;
}

.login-screen {
  padding: 100px 24px 24px;
  background: linear-gradient(#eeeeee 0 27%, #ffffff 27% 100%);
  border-radius: 0 0 0 0;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 56px;
  padding: 4px;
  border-radius: 28px;
  background: #d0d0d0;
}

.login-tabs button {
  border: 0;
  border-radius: 25px;
  background: transparent;
  font-weight: 700;
}

.login-tabs .active {
  background: #000000;
  color: #ffffff;
}

.login-panel {
  margin: 66px -24px 0;
  padding: 24px;
  border-radius: 28px 28px 0 0;
  background: #ffffff;
}

.login-panel label {
  height: 64px;
  display: grid;
  grid-template-columns: 1fr 36px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 1px solid #d5d5d5;
  border-radius: 14px;
}

.login-panel span {
  position: absolute;
  width: 120px;
  height: 10px;
  overflow: hidden;
  color: transparent;
  background: #cfcfcf;
  border-radius: 10px;
}

.login-panel input {
  width: 100%;
  border: 0;
  outline: 0;
}

.login-panel strong {
  font-size: 32px;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(#262626, #000000);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.primary-button:disabled {
  opacity: 0.35;
}

.login-continue {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  width: auto;
}

.tab-row,
.product-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 -16px 36px;
  border-bottom: 1px solid #ededed;
}

.tab-row button,
.product-tabs button {
  height: 54px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #65707e;
  font-weight: 700;
}

.tab-row .active,
.product-tabs .active {
  border-color: #606a78;
  color: #1d1d1f;
}

.search-card {
  padding: 30px 14px 24px;
  border: 1px solid #d8d8d8;
  border-radius: 16px;
}

.dimension-form {
  display: grid;
  gap: 26px;
  margin-bottom: 30px;
}

.dimension-row {
  display: grid;
  grid-template-columns: 62px 1fr 28px;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.dimension-row input {
  min-width: 0;
  height: 34px;
  border: 1px solid #aeb7c0;
  border-radius: 6px;
  background: #eef2f5;
  padding: 0 10px;
}

.dimension-row em {
  font-style: normal;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 8px 18px 14px;
  border-radius: 26px 26px 0 0;
  background: #dedede;
}

.nav-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 0;
  color: #5d6876;
  background: transparent;
}

.nav-button.active {
  color: #000000;
}

.top-bar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 34px;
}

.top-bar button,
.icon-back {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
}

.top-bar h2 {
  margin: 0;
  text-align: center;
  font-size: 20px;
}

.dimension-summary {
  padding: 18px 20px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: #eeeeee;
}

.dimension-summary span {
  font-weight: 700;
}

.dimension-summary div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.dimension-summary strong {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  background: #ffffff;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 102px 102px;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.result-actions button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #eeeeee;
  font-weight: 700;
}

.result-actions button:first-of-type {
  background: #2c2c2c;
  color: #ffffff;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 64px 64px 74px;
  gap: 8px;
  margin: 0 0 20px;
}

.filter-panel select,
.filter-panel button {
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: #eeeeee;
  color: #4d4d4d;
  font-size: 12px;
  font-weight: 700;
}

.filter-panel button.active {
  background: #303030;
  color: #ffffff;
}

.filter-panel .ghost {
  background: #f7f7f7;
  color: #888888;
}

.product-list {
  display: grid;
  gap: 0;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid #d1d1d1;
}

.product-card[title="상품 페이지 열기"],
.masonry-grid article[title="상품 페이지 열기"] {
  cursor: pointer;
}

.product-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}

.product-meta span {
  padding: 12px 8px;
  border-radius: 999px;
  background: #eeeeee;
  font-weight: 700;
}

.product-copy h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.product-copy p {
  margin: 0;
  font-weight: 700;
}

.fit-badge {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 12px;
  font-weight: 700;
}

.product-thumb {
  min-height: 126px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eeeeee;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.quantity-control {
  display: flex;
  gap: 12px;
  align-items: center;
}

.quantity-control button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #000000;
  border-radius: 8px;
  background: #ffffff;
}

.empty-state {
  margin-top: 60px;
  text-align: center;
  color: #777777;
}

.space-hero {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #d8d8d8;
  border-radius: 16px;
}

.space-hero strong {
  font-size: 17px;
}

.space-hero > span {
  color: #555555;
  font-size: 13px;
  font-weight: 700;
}

.space-recommendation-list {
  display: grid;
  gap: 14px;
}

.space-card {
  padding: 14px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #ffffff;
}

.space-card-head {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.space-card-head span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eeeeee;
  font-size: 12px;
  font-weight: 800;
}

.space-card-head h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.space-card-head p {
  margin: 0;
  color: #555555;
  font-size: 13px;
  font-weight: 700;
}

.space-card-head img {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  background: #eeeeee;
}

.layout-preview {
  display: grid;
  gap: 6px;
}

.layout-boundary {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(34px, 1fr));
  gap: 5px;
  padding: 8px;
  border: 6px solid #d9d9d9;
  background: #ffffff;
  aspect-ratio: 1.35 / 1;
}

.layout-preview.large .layout-boundary {
  min-height: 150px;
}

.layout-preview.small .layout-boundary {
  min-height: 112px;
}

.layout-boundary span,
.layout-boundary em {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 4px;
  border: 1px solid #cfcfcf;
  background: #f9f9f9;
  color: #333333;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.layout-preview small {
  color: #666666;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.space-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.space-stats strong,
.space-stats span {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 12px;
  font-weight: 800;
}

.space-stats strong {
  background: #111111;
  color: #ffffff;
}

.product-screen {
  padding-top: 44px;
}

.compact-bar {
  margin-bottom: 18px;
}

.product-tools {
  display: grid;
  grid-template-columns: 1fr 36px 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.fake-search {
  width: 120px;
  height: 14px;
  border-radius: 999px;
  background: #b8b8b8;
}

.chip-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  overflow-x: auto;
}

.chip-row span {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 9px 14px;
  border-radius: 999px;
  text-align: center;
  background: #eeeeee;
  color: #858585;
  font-weight: 700;
}

.masonry-grid {
  columns: 2;
  column-gap: 12px;
}

.masonry-grid article {
  break-inside: avoid;
  height: 160px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: center;
  justify-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #eeeeee;
  overflow: hidden;
}

.masonry-grid article:nth-child(odd) {
  height: 236px;
}

.masonry-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.masonry-grid strong {
  width: 100%;
  padding: 7px 8px 2px;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
  font-size: 12px;
}

.masonry-grid small {
  width: 100%;
  padding: 0 8px 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #555555;
}

.camera-frame {
  height: 520px;
  margin: 24px 8px 0;
  border: 3px solid #596574;
  position: relative;
}

.camera-frame::before,
.camera-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, transparent 49.8%, #b8b8b8 50%, transparent 50.2%),
    linear-gradient(to top right, transparent 49.8%, #b8b8b8 50%, transparent 50.2%);
}

.upgrade-banner,
.profile-card,
.history-card {
  border-radius: 24px;
  background: #eeeeee;
}

.upgrade-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 126px;
  margin-bottom: 24px;
  font-weight: 800;
  text-align: center;
}

.upgrade-banner strong {
  display: block;
  margin-bottom: 8px;
}

.upgrade-banner span {
  max-width: 230px;
  color: #666666;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.setting-list {
  display: grid;
  gap: 12px;
}

.setting-list button {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: #eeeeee;
  font-weight: 700;
}

.setting-list button span {
  max-width: 172px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  color: #555555;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.28);
}

.setting-modal {
  width: 100%;
  max-width: 320px;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.setting-modal h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.setting-modal p {
  margin: 0 0 18px;
  color: #444444;
  line-height: 1.55;
}

.setting-modal a {
  display: block;
  margin-bottom: 12px;
  color: #111111;
  font-weight: 800;
}

.setting-modal button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  font-weight: 800;
}

.profile-card {
  padding: 22px 28px;
  margin-bottom: 24px;
}

.profile-card span {
  display: block;
  margin-bottom: 10px;
}

.profile-card strong,
.profile-card p {
  display: block;
  margin: 0;
  padding: 8px 18px;
  background: #ffffff;
}

.history-card {
  padding: 24px;
  margin-bottom: 10px;
}

.history-card h3 {
  margin: 0 0 18px;
}

.history-card button {
  width: 100%;
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  padding: 12px 20px;
  border: 0;
  background: #ffffff;
  text-align: left;
}

.signout-button {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #eeeeee;
  color: #6a6a6a;
}
