:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-dark: #0c1528;
  --text: #10213d;
  --text-soft: #4f5f78;
  --line: #dde5f1;
  --primary: #2457f5;
  --primary-strong: #1544d8;
  --app-safe-top: env(safe-area-inset-top, 0px);
  --app-header-height: 92px;
  --app-overlay-top: calc(var(--app-safe-top) + var(--app-header-height));
}

/* 2026-02-15 header + mypage notification refresh */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6ebf2;
  backdrop-filter: none;
  box-shadow: none;
}

/* gngnet-style header skin (functionality unchanged) */
.site-header.site-header--gng {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 120;
}

.page-home .site-header {
  background: transparent;
  border-bottom: 0;
}

.page-home .site-header.site-header--gng {
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
}

.page-home .site-header.is-scrolled {
  background: rgba(7, 16, 34, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}

.page-home .site-header.site-header--gng.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 90px;
  gap: 20px;
}

.header-inner.header-inner--gng {
  height: 86px;
  gap: 16px;
}

.brand-text {
  display: none;
}

.site-header--gng .brand-text {
  display: inline;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .88rem;
  color: var(--text);
}

.site-header .brand-logo {
  height: 56px;
}

.site-header--gng .brand-logo {
  height: 44px;
}

.site-header .menu-link-icon {
  display: none;
}

.site-header .site-nav {
  flex: 1;
  justify-content: center;
  gap: 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (min-width: 861px) {
  .site-header--gng .site-nav {
    justify-content: flex-start;
    gap: 26px;
  }

  .site-header--gng .site-nav .menu-level {
    gap: 22px;
  }
}

.site-header .site-nav .menu-level {
  gap: 20px;
}

.site-header .site-nav .menu-item > a {
  padding: 8px 0;
  border-radius: 0;
  color: #3d424a;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 861px) {
  .site-header--gng .site-nav .menu-item > a {
    padding: 10px 0;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text);
  }
}

.page-home .site-header .site-nav .menu-item > a {
  color: rgba(255, 255, 255, .92);
}

.site-header .site-nav .menu-item:hover > a {
  background: transparent;
  color: #161a22;
}

.page-home .site-header .site-nav .menu-item:hover > a {
  color: #fff;
}

.site-header .site-nav .menu-level-2,
.site-header .site-nav .menu-level-3,
.site-header .site-nav .menu-level-4 {
  min-width: 220px;
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  background: #050608;
  box-shadow: 0 18px 32px rgba(0, 0, 0, .32);
}

.site-header .site-nav .menu-level-2 .menu-item > a,
.site-header .site-nav .menu-level-3 .menu-item > a,
.site-header .site-nav .menu-level-4 .menu-item > a {
  padding: 10px 8px;
  color: rgba(255, 255, 255, .92);
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.35;
}

.site-header .site-nav .menu-level-2 .menu-item > a:hover,
.site-header .site-nav .menu-level-3 .menu-item > a:hover,
.site-header .site-nav .menu-level-4 .menu-item > a:hover {
  background: rgba(255, 255, 255, .08);
}

.header-actions {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 12px;
}

.site-header--gng .header-actions {
  gap: 10px;
}

.site-header--gng .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: .88rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .04em;
}

.site-header--gng .header-cta:hover {
  border-color: var(--primary);
}

.page-home .site-header--gng:not(.is-scrolled) .header-cta {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .14);
  color: rgba(255, 255, 255, .92);
}

.header-actions .auth-link,
.header-actions .logout .auth-link {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: #1f2229;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
}

.header-actions .auth-link:hover,
.header-actions .logout .auth-link:hover {
  background: #151820;
  border: 0;
}

.menu-toggle {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.site-header--gng .menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.page-home .site-header--gng:not(.is-scrolled) .menu-toggle {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .14);
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #2d3138;
}

.site-header--gng .menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

.page-home .site-header--gng:not(.is-scrolled) .menu-toggle span {
  background: rgba(255, 255, 255, .92);
}

.page-home .menu-toggle span {
  background: #fff;
}

.mypage-notify-section {
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: #fff;
  padding: 16px 18px;
}

.mypage-notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mypage-notify-head h2 {
  margin: 0;
  font-size: 1.02rem;
  color: #1e3555;
}

.mypage-notify-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.mypage-notify-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #d5dfed;
  background: #f5f8fd;
  color: #17345a;
}

.mypage-notify-btn .bi {
.mypage-quick-request-form {
  display: grid;
  gap: 8px;
}

.mypage-quick-request-form label {
  color: #2f4a73;
  font-size: .82rem;
  font-weight: 700;
}
  font-size: 1rem;
}

.mypage-notify-label {
  font-size: .88rem;
  color: #4c6283;
  font-weight: 600;
}

.mypage-notify-panel {
  right: 0;
  top: calc(100% + 10px);
}

@media (max-width: 860px) {
  .site-header .main-nav .menu-item > a {
    font-size: .98rem;
    font-weight: 600;
  }

  .site-header .main-nav .menu-level-2 .menu-item > a,
  .site-header .main-nav .menu-level-3 .menu-item > a,
  .site-header .main-nav .menu-level-4 .menu-item > a {
    font-size: .9rem;
  }

  .header-actions .auth-link,
  .header-actions .logout .auth-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: .85rem;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f3f6fc 0%, #f7f9fd 55%, #eef3fa 100%);
  line-height: 1.65;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #2457f5;
  outline-offset: 2px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 16, 34, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(7, 17, 36, .24);
  transition: background .24s ease, border-color .24s ease, backdrop-filter .24s ease, box-shadow .24s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 16, 34, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f82ff;
  box-shadow: 0 0 12px #3f82ff;
}

.main-nav,
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 20, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 39;
}

.menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

.main-nav .menu-level,
.site-nav .menu-level {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 6px;
}

.main-nav .menu-item,
.site-nav .menu-item {
  position: relative;
}

.main-nav .menu-item > a,
.site-nav .menu-item > a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 13px;
  transition: color .2s ease, background .2s ease;
}

.main-nav .menu-item:hover > a,
.site-nav .menu-item:hover > a {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.main-nav .menu-level-2,
.main-nav .menu-level-3,
.main-nav .menu-level-4,
.site-nav .menu-level-2,
.site-nav .menu-level-3,
.site-nav .menu-level-4 {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(8, 18, 38, 0.96);
  padding: 8px;
}

.main-nav .menu-level-3,
.main-nav .menu-level-4,
.site-nav .menu-level-3,
.site-nav .menu-level-4 {
  left: calc(100% - 1px);
  top: 0;
  margin-left: 0;
}

.main-nav .menu-item:hover > .menu-level-2,
.main-nav .menu-item:hover > .menu-level-3,
.main-nav .menu-item:hover > .menu-level-4,
.main-nav .menu-item:focus-within > .menu-level-2,
.main-nav .menu-item:focus-within > .menu-level-3,
.main-nav .menu-item:focus-within > .menu-level-4,
.site-nav .menu-item:hover > .menu-level-2,
.site-nav .menu-item:hover > .menu-level-3,
.site-nav .menu-item:hover > .menu-level-4,
.site-nav .menu-item:focus-within > .menu-level-2,
.site-nav .menu-item:focus-within > .menu-level-3,
.site-nav .menu-item:focus-within > .menu-level-4 {
  display: flex;
}

.main-nav .menu-level-2 .menu-item > a,
.main-nav .menu-level-3 .menu-item > a,
.main-nav .menu-level-4 .menu-item > a,
.site-nav .menu-level-2 .menu-item > a,
.site-nav .menu-level-3 .menu-item > a,
.site-nav .menu-level-4 .menu-item > a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.main-nav .menu-level-2 .menu-item > a:hover,
.main-nav .menu-level-3 .menu-item > a:hover,
.main-nav .menu-level-4 .menu-item > a:hover,
.site-nav .menu-level-2 .menu-item > a:hover,
.site-nav .menu-level-3 .menu-item > a:hover,
.site-nav .menu-level-4 .menu-item > a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.main-nav a,
.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .2s ease;
}

.main-nav a:hover,
.site-nav a:hover { color: #fff; }

.main-nav .admin-link,
.site-nav .admin-link {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font: inherit;
}

.main-nav .logout,
.site-nav .logout { margin: 0; }

.flash-error,
.flash-success {
  padding: 10px 12px;
  border-radius: 10px;
  margin: 0 0 12px;
}

.flash-error {
  border: 1px solid #f3b4b4;
  background: #fff4f4;
  color: #8a1f1f;
}

.flash-success {
  border: 1px solid #bde7cc;
  background: #f4fff8;
  color: #1c6a3f;
}

.toast-root {
  position: fixed;
  top: calc(var(--app-overlay-top) + 8px);
  right: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 36px));
}

.toast {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 14px 26px rgba(15, 31, 66, 0.16);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .24s ease, transform .24s ease;
}

.toast.is-hide {
  opacity: 0;
  transform: translateY(-6px);
}

.toast-success { border-color: #bde7cc; }
.toast-error { border-color: #f3b4b4; }
.toast-warning { border-color: #f3d6a3; }
.toast-info { border-color: #b9d1ff; }

main.container { padding-bottom: 56px; }

.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 560px;
  margin-top: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(58, 108, 255, .65), transparent 38%),
    radial-gradient(circle at 85% 25%, rgba(55, 211, 255, .34), transparent 30%),
    linear-gradient(120deg, #0c1630 0%, #0f2248 52%, #162c55 100%);
  box-shadow: 0 28px 60px rgba(20, 38, 84, 0.28);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 45, .15), rgba(8, 16, 30, .62));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 88px 72px;
  color: #f4f7ff;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: .83rem;
  letter-spacing: .28em;
  color: rgba(244, 247, 255, .82);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.2;
}

.hero-content p {
  margin: 18px 0 0;
  color: rgba(232, 238, 255, .9);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
}

.btn-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-strong); }

.btn-light {
  background: #fff;
  border: 1px solid #cfd9e9;
  color: #294067;
}

.btn-light:hover {
  background: #f4f8ff;
  border-color: #b7c8e2;
}

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

.btn-submit-post {
  min-width: 126px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2a63ff 0%, #1e46c8 100%);
  box-shadow: 0 10px 20px rgba(27, 73, 201, 0.24);
}

.btn-submit-post:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(27, 73, 201, 0.3);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d6dfec;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
}

textarea { min-height: 140px; resize: vertical; }

.upload-dropzone {
  margin-top: 8px;
  border: 1px dashed #b8c8e3;
  border-radius: 10px;
  background: #f8fbff;
  color: var(--text-soft);
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.upload-dropzone.is-dragover {
  border-color: var(--primary);
  background: #eef4ff;
}

.upload-file-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.upload-file-list li {
  border: 1px solid #e4ebf6;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font-size: .9rem;
}

.post-inline-media {
  margin: 0 0 14px;
}

.post-inline-media img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dbe5f1;
}

.post-media-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #dbe5f1;
  margin: 0 0 14px;
}

.post-media-track {
  display: flex;
  transition: transform .3s ease;
}

.post-media-slide {
  min-width: 100%;
}

.post-media-slide img {
  width: 100%;
  display: block;
}

.post-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(8, 18, 38, .65);
  color: #fff;
  cursor: pointer;
}

.post-media-nav.prev { left: 10px; }
.post-media-nav.next { right: 10px; }

.home-main-slider {
  --home-slider-height: 78vh;
  --home-slider-overlay-opacity: .42;
  --home-slider-text-color: #ffffff;
  --home-slider-text-font: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  margin-top: 20px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid #d8e3f1;
  background: #0c1730;
  min-height: clamp(420px, var(--home-slider-height), 860px);
}

.home-main-slider--boxed {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.home-main-slider--compact {
  width: min(980px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.home-main-slider--banner .home-main-slide {
  min-height: clamp(320px, calc(var(--home-slider-height) - 120px), 740px);
}

.home-main-slider--banner .home-main-slide-caption {
  background: linear-gradient(180deg, rgba(8, 17, 36, .15), rgba(8, 17, 36, .92));
}

.home-main-slider--cover .home-main-slide {
  min-height: clamp(420px, var(--home-slider-height), 860px);
}

.home-main-slider--banner .home-main-slide-media img,
.home-main-slider--banner .home-main-slide-media video {
  object-fit: contain;
  background: #0a142a;
}

.home-main-slider-track {
  display: flex;
  transition: transform .4s ease;
}

.home-main-slide {
  min-width: 100%;
  position: relative;
  min-height: clamp(420px, var(--home-slider-height), 860px);
}

.home-main-slide-media,
.home-main-slide-media img,
.home-main-slide-media video,
.home-main-slide-media iframe {
  width: 100%;
  height: 100%;
}

.home-main-slide-media img,
.home-main-slide-media video,
.home-main-slide-media iframe {
  object-fit: cover;
  border: 0;
}

.home-main-slide-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(130deg, #1a2f55, #153f87 55%, #1f5ec0);
}

.home-main-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  color: var(--home-slider-text-color);
  font-family: var(--home-slider-text-font);
  text-shadow: 0 2px 14px rgba(7, 15, 31, .45);
  background: linear-gradient(180deg, rgba(8, 17, 36, 0), rgba(8, 17, 36, .85));
}

.home-main-slide-caption h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.home-main-slide-caption p {
  margin: 0 0 14px;
  color: var(--home-slider-text-color);
  opacity: .92;
}

.home-main-slide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .64);
  color: var(--home-slider-text-color);
  text-decoration: none;
  background: rgba(8, 17, 34, .24);
}

.home-main-slider-nav {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
}

.home-main-slider-nav button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(6, 14, 30, .5);
  color: #fff;
}

.home-main-slider-admin {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(7, 16, 33, .6);
  font-size: .82rem;
}

.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(12, 28, 56, .05);
}

.board-title {
  margin: 0;
  font-size: 1.08rem;
  color: #17345f;
}

.board-toolbar-main {
  display: grid;
  gap: 4px;
}

.board-summary {
  margin: 0;
  font-size: .84rem;
  color: #667e9f;
}

.board-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.board-write-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #2b56c4;
  background: linear-gradient(135deg, #4b68ff 0%, #3350cf 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(36, 72, 178, .24);
}

.board-write-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(36, 72, 178, .3);
}

.post-comments {
  margin-top: 22px;
  border-top: 1px solid #e3ebf7;
  padding-top: 18px;
}

.post-comments h3 {
  margin: 0 0 12px;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.comment-item {
  border: 1px solid #deE7f4;
  border-radius: 10px;
  background: #f9fbff;
  padding: 12px;
}

.comment-meta {
  color: #5d7292;
  font-size: .86rem;
  margin-bottom: 6px;
}

.comment-content {
  color: #1a2f4e;
}

.comment-files {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-image-link {
  display: block;
  width: 94px;
  height: 94px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d8e3f0;
  background: #fff;
}

.comment-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment-form {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
}

.board-empty {
  border: 1px dashed #cfdced;
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  text-align: center;
  color: var(--text-soft);
}

.board-list-table {
  border: 1px solid #d9e3f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(13, 29, 56, .04);
}

.board-list-table table {
  width: 100%;
  border-collapse: collapse;
}

.board-list-table th,
.board-list-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f8;
  text-align: left;
}

.board-list-table th {
  background: #f8fbff;
  font-size: 0.84rem;
  color: #5f7597;
}

.board-list-table tbody tr:hover {
  background: #f9fbff;
}

.board-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.board-row-actions form {
  margin: 0;
}

.board-list-table .btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: .84rem;
  white-space: nowrap;
}

.board-row-actions-placeholder {
  color: #93a5bf;
}

.post-link {
  color: #173d7b;
  text-decoration: none;
  font-weight: 600;
}

.post-link:hover {
  text-decoration: underline;
}

.post-meta {
  margin-top: 6px;
  color: #6b7f9d;
  font-size: 0.86rem;
}

.post-badge {
  display: inline-block;
  margin-right: 6px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2156bb;
  border: 1px solid #cfe0ff;
  padding: 1px 7px;
  font-size: 0.74rem;
}

.post-attach {
  margin-left: 6px;
  color: #4f6ea7;
}

.board-list-cards {
  display: none;
}

.post-card {
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 16px rgba(14, 30, 57, .04);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-card {
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.youtube-gallery-grid,
.event-list,
.webzine-list {
  display: grid;
  gap: 12px;
}

.youtube-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.youtube-gallery-card,
.event-item,
.webzine-item {
  border: 1px solid #d9e4f2;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 16px rgba(14, 30, 57, .04);
}

.webzine-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
}

.webzine-thumb {
  border: 1px solid #d8e2f1;
  border-radius: 10px;
  overflow: hidden;
  min-height: 130px;
  display: grid;
  place-items: center;
  background: #f7fbff;
}

.webzine-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .72rem;
  background: #eff5ff;
  color: #1f52b3;
  border: 1px solid #c6dafc;
  margin-bottom: 8px;
}

.board-schedule-calendar {
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.simple-list-type {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: #fff;
}

.simple-list-type li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #edf2f8;
}

.simple-list-type li:last-child {
  border-bottom: 0;
}

.gallery-thumb {
  display: block;
  background: #e9eef6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #7183a0;
  font-size: 0.8rem;
}

.gallery-body {
  padding: 10px 12px;
}

.post-view-card {
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.post-view-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.post-view-body {
  margin-top: 14px;
  color: #1d3255;
  line-height: 1.8;
}

.post-attachments {
  margin-top: 20px;
  border-top: 1px solid #e5edf7;
  padding-top: 14px;
}

.post-attachments h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.post-attachments ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .board-toolbar {
    align-items: flex-start;
    padding: 12px;
  }
  .board-toolbar-actions {
    width: 100%;
  }
  .board-write-btn {
    width: 100%;
  }
  .board-list-table { display: none; }
  .board-list-cards {
    display: grid;
    gap: 10px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .youtube-gallery-grid { grid-template-columns: 1fr; }
  .webzine-item { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.section { margin-top: 66px; }

.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 4px 0 8px;
  line-height: 1.3;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
}

.section-head p {
  margin: 0;
  color: var(--text-soft);
}

.eyebrow {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .2em;
  color: #687c9f;
  font-weight: 700;
}

.feature-grid,
.service-grid,
.portfolio-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(15, 26, 52, 0.05);
}

.feature-card h3,
.portfolio-card h3,
.service-item h3 { margin: 0 0 8px; }

.feature-card p,
.portfolio-card p,
.service-item p { margin: 0; color: var(--text-soft); }

.dark-panel {
  background: var(--surface-dark);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: 34px;
  color: #fff;
}

.dark-panel .section-head p,
.dark-panel .eyebrow,
.dark-panel .service-item p { color: rgba(228, 236, 255, .82); }

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-item {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, .03);
}

.section-head.inline {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.text-link {
  color: #334f96;
  text-decoration: none;
  font-weight: 600;
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta-band {
  border-radius: 20px;
  background: linear-gradient(120deg, #132c5c 0%, #1b3e82 52%, #2254ad 100%);
  color: #f5f8ff;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-band p { margin: 8px 0 0; color: rgba(245, 248, 255, .88); }

.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-modern {
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(10, 14, 26, .24), rgba(9, 14, 25, .68)),
    radial-gradient(circle at 82% 18%, rgba(245, 182, 63, .26), transparent 26%),
    linear-gradient(120deg, #192741 0%, #213b69 42%, #31528e 100%);
}

.section-services-dark {
  background: #070f1d;
  border-radius: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 60px max(20px, calc((100vw - 1180px) / 2));
}

.section-services-dark .section-head,
.section-services-dark .eyebrow,
.section-services-dark h2,
.section-services-dark p { color: #f2f6ff; }

.service-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-strip-card {
  min-height: 230px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f5f8ff;
  background: linear-gradient(150deg, rgba(18, 31, 58, .4), rgba(6, 9, 18, .88));
}

.service-strip-card h3 { margin: 0 0 8px; }
.service-strip-card p { margin: 0; color: rgba(233, 239, 255, .86); font-size: .92rem; }

.card-a { background: linear-gradient(145deg, rgba(20, 38, 68, .2), rgba(4, 8, 17, .92)); }
.card-b { background: linear-gradient(145deg, rgba(37, 58, 98, .2), rgba(4, 8, 17, .92)); }
.card-c { background: linear-gradient(145deg, rgba(18, 75, 97, .2), rgba(4, 8, 17, .92)); }
.card-d { background: linear-gradient(145deg, rgba(70, 55, 105, .2), rgba(4, 8, 17, .92)); }

.showcase-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 16px;
}

.showcase-text-card,
.showcase-image-card {
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
}

.showcase-text-card {
  padding: 30px;
  background: #f0f3f9;
  border: 1px solid #dbe4f3;
}

.showcase-text-card p { color: var(--text-soft); }

.showcase-image-card {
  position: relative;
  background:
    radial-gradient(circle at 72% 22%, rgba(149, 205, 255, .34), transparent 28%),
    linear-gradient(140deg, #1f3558, #0d1628 58%, #1b2f4e);
}

.showcase-badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .42);
  color: #fff;
  padding: 8px 14px;
  font-size: .74rem;
  letter-spacing: .1em;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.stats-section { margin-top: 76px; }

.stats-pill {
  margin: 18px auto 0;
  background: linear-gradient(145deg, #f7f9fc, #eceff6 55%, #f8f9fb);
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  padding: 16px 22px;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats-pill article {
  text-align: center;
  padding: 8px 4px;
}

.stats-pill strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.stats-pill span {
  display: block;
  margin-top: 6px;
  color: #5f7090;
  font-size: .9rem;
}

.portfolio-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-stack-grid .portfolio-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f6f8ff;
  border-color: rgba(255, 255, 255, .1);
}

.stack-one { background: linear-gradient(145deg, #1c3157, #0e182a); }
.stack-two { background: linear-gradient(145deg, #24486f, #112033); }
.stack-three { background: linear-gradient(145deg, #273864, #111b2f); }

.portfolio-stack-grid .portfolio-card p { color: rgba(238, 242, 255, .85); }

.partners-section { margin-top: 74px; }

.partner-chips {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.partner-chips span {
  border: 1px solid #d9e3f3;
  border-radius: 10px;
  background: #fff;
  min-height: 44px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #54688a;
  font-size: .82rem;
}

.media-banner {
  margin-top: 70px;
  border-radius: 18px;
  padding: 28px;
  color: #eef3ff;
  background:
    linear-gradient(130deg, rgba(22, 34, 60, .94), rgba(17, 49, 102, .88)),
    linear-gradient(145deg, #112347, #1f3767);
}

.media-copy p { color: rgba(238, 243, 255, .88); }

.map-split {
  border-radius: 0;
  overflow: hidden;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.map-pane {
  min-height: 320px;
  background:
    linear-gradient(130deg, rgba(243, 247, 255, .86), rgba(237, 243, 251, .96)),
    repeating-linear-gradient(90deg, rgba(170, 184, 206, .26), rgba(170, 184, 206, .26) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, rgba(170, 184, 206, .24), rgba(170, 184, 206, .24) 1px, transparent 1px, transparent 60px);
}

.location-pane {
  background: #11306a;
  color: #f6f9ff;
  min-height: 320px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-pane .eyebrow,
.location-pane p { color: rgba(241, 246, 255, .86); }

.form-band {
  margin-top: 0;
  border-radius: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 56px max(20px, calc((100vw - 1180px) / 2));
  background: #efefef;
  color: #111e36;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: start;
}

.form-band p,
.form-band .eyebrow { color: #5d708e; }

.contact-form {
  background: #fff;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd9e9;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.contact-form textarea {
  min-height: 116px;
  resize: vertical;
}

.page-surface {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 12px 28px rgba(16, 30, 62, 0.06);
}

.page-surface h1 { margin-top: 4px; }

.page-body { color: var(--text-soft); }

.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(71, 115, 255, .22), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(91, 232, 255, .16), transparent 26%),
    linear-gradient(150deg, #edf3ff 0%, #f7faff 48%, #eef4fb 100%);
}

.auth-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 0;
  position: relative;
}

.auth-home-link {
  position: absolute;
  top: 14px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #cddcf2;
  background: rgba(255, 255, 255, .92);
  color: #214f9a;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(21, 58, 120, .12);
}

.auth-home-link:hover,
.auth-home-link:focus-visible {
  color: #173d7b;
  border-color: #a8c0e8;
  background: #fff;
}

.auth-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #d6e2f2;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 56px rgba(18, 40, 78, .12);
}

.auth-card-wide {
  width: min(1080px, 100%);
}

.auth-card-start {
  width: min(620px, 100%);
  grid-template-columns: 1fr;
}

.auth-start-wrap {
  padding: clamp(22px, 5vw, 38px);
}

.auth-brand {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: #2457f5;
  letter-spacing: .02em;
}

.auth-social-grid {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.auth-social {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-social-apple { background: #17181d; }
.auth-social-kakao { background: #f6e55f; color: #1b1d24; }
.auth-social-facebook { background: #3c72d7; }

.auth-stepper {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.auth-stepper li {
  border: 1px solid #dde4f2;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #7890b4;
  background: #f7faff;
}

.auth-stepper li span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #dce6f5;
  color: #5f789f;
  display: inline-grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 700;
}

.auth-stepper li strong {
  font-size: .84rem;
  font-weight: 700;
}

.auth-stepper li.is-active {
  border-color: #46c988;
  background: #f5fff9;
  color: #123f30;
}

.auth-stepper li.is-active span,
.auth-stepper li.is-done span {
  background: #38b977;
  color: #fff;
}

.auth-stepper li.is-done {
  border-color: #b9e8cf;
  background: #f6fff9;
  color: #1f5d46;
}

.auth-step-panel {
  margin-top: 12px;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}

.auth-step-panel h3 {
  margin: 0;
  font-size: 1.06rem;
}

.auth-step-panel > p {
  margin: 8px 0 12px;
  color: #60779a;
  font-size: .9rem;
}

.auth-terms-box {
  border: 1px solid #e0e8f4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.auth-term-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #edf2f8;
  font-size: .92rem;
  color: #2b456d;
}

.auth-term-item:last-child {
  border-bottom: 0;
}

.auth-term-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2457f5;
}

.auth-term-item-all {
  align-items: flex-start;
  background: #f8fbff;
}

.auth-term-item-all strong {
  display: block;
  color: #16396f;
  font-size: .95rem;
}

.auth-term-item-all span {
  display: block;
  color: #647c9f;
  font-size: .82rem;
  margin-top: 2px;
}

.auth-hero {
  background:
    linear-gradient(165deg, rgba(9, 25, 54, .94), rgba(18, 56, 118, .92)),
    radial-gradient(circle at 76% 18%, rgba(104, 188, 255, .3), transparent 34%);
  color: #fff;
  padding: clamp(30px, 4.2vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-kicker {
  margin: 0;
  font-size: .76rem;
  letter-spacing: .2em;
  color: rgba(232, 240, 255, .82);
}

.auth-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.25;
}

.auth-copy {
  margin: 18px 0 0;
  color: rgba(231, 239, 255, .88);
}

.auth-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.auth-points li {
  font-size: .92rem;
  color: rgba(236, 242, 255, .9);
}

.auth-points li::before {
  content: '•';
  margin-right: 8px;
  color: #8cc5ff;
}

.auth-form-wrap {
  padding: clamp(24px, 3.8vw, 40px);
}

.auth-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.auth-sub {
  margin: 8px 0 0;
  color: #60779a;
}

.auth-form {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.auth-form label {
  font-size: .88rem;
  font-weight: 600;
  color: #20385f;
}

.auth-grid {
  display: grid;
  gap: 10px;
}

.auth-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-checks {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #526b90;
  font-size: .88rem;
}

.auth-checks label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
}

.auth-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-actions .btn {
  min-height: 42px;
}

.auth-phone-verify {
  margin-top: 8px;
  padding: 12px;
  border: 1px dashed #cddbef;
  border-radius: 12px;
  background: #f7faff;
}

.auth-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-phone-row-code {
  margin-top: 8px;
}

.auth-phone-row-code input {
  width: 180px;
}

.auth-phone-hint {
  color: #54709a;
  font-size: .84rem;
}

.auth-phone-status {
  margin: 8px 0 0;
  font-size: .9rem;
  color: #4d678e;
}

.auth-phone-status.is-success {
  color: #1b7a4b;
  font-weight: 700;
}

.auth-phone-status.is-error {
  color: #9a2c2c;
  font-weight: 700;
}

.auth-phone-status.is-pending {
  color: #3b5f9f;
}

.home-interactive-strip {
  padding-top: 22px;
}

.home-interactive-head {
  margin-bottom: 14px;
}

.home-interactive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  perspective: 900px;
}

.home-interactive-card {
  border: 1px solid #d9e3f1;
  border-radius: 16px;
  background: #fff;
  padding: 20px;
  transition: transform .22s ease, box-shadow .22s ease;
  box-shadow: 0 10px 26px rgba(12, 30, 60, .06);
  transform-style: preserve-3d;
}

.home-interactive-card h4 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: #143466;
}

.home-interactive-card p {
  margin: 0;
  color: #5d7292;
}

.home-interactive-card a {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #cbdaf3;
  text-decoration: none;
  color: #1e4ba2;
  font-weight: 600;
}

.home-interactive-card:hover {
  box-shadow: 0 20px 32px rgba(14, 38, 73, .14);
}

.js-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  margin-top: 54px;
  background: #f5f8ff;
  color: #0f1f3d;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  padding: 42px 0 26px;
}

.footer-grid h3,
.footer-grid h4 { margin: 0 0 10px; color: #fff; }

.footer-grid p { margin: 0 0 8px; color: rgba(220, 230, 251, 0.85); }

.footer-grid ul { margin: 0; padding-left: 0; list-style: none; }

.footer-grid li { margin-bottom: 6px; }

.footer-grid a { text-decoration: none; color: rgba(220, 230, 251, 0.86); }

.footer-copy {
  padding: 14px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(220, 230, 251, 0.74);
}

@media (max-width: 1024px) {
  .service-strip-grid,
  .portfolio-stack-grid,
  .partner-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-split,
  .map-split,
  .form-band { grid-template-columns: 1fr; }
  .stats-pill { border-radius: 20px; grid-template-columns: 1fr; }
  .feature-grid,
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card,
  .auth-card-wide {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
    border-radius: 16px;
  }
  .home-interactive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-inner { height: 76px; padding: 0; }
  .toast-root {
    top: 78px;
    right: 10px;
    width: calc(100% - 20px);
  }
  .hero-content { padding: 58px 24px; }
  .section-services-dark,
  .form-band {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 40px 20px;
  }
  .feature-grid,
  .service-strip-grid,
  .service-grid,
  .portfolio-grid,
  .portfolio-stack-grid,
  .partner-chips,
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band,
  .form-band { flex-direction: column; align-items: flex-start; }
  .section-head.inline { align-items: flex-start; flex-direction: column; }
  .auth-shell {
    width: calc(100% - 24px);
    min-height: auto;
    padding: 20px 0 28px;
  }
  .auth-hero {
    display: none;
  }
  .auth-form-wrap {
    padding: 20px;
  }
  .auth-grid-2 {
    grid-template-columns: 1fr;
  }
  .auth-actions .btn {
    flex: 1 1 calc(50% - 8px);
  }
  .auth-stepper {
    grid-template-columns: 1fr;
  }
  .auth-start-wrap .auth-social-grid {
    gap: 7px;
  }
  .auth-start-wrap .auth-social {
    min-height: 44px;
  }
  .auth-phone-row-code input {
    width: 100%;
  }
  .mypage-shell {
    width: calc(100% - 16px);
    margin: 12px auto 96px;
  }
  .mypage-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .mypage-grid {
    grid-template-columns: 1fr;
  }
  .mypage-request-history li {
    flex-direction: column;
    align-items: flex-start;
  }
}

.gw-flex { display: flex; }
.gw-flex-btw { display: flex; justify-content: space-between; align-items: center; }
.gw-gap-10 { gap: 10px; }
.gw-TC { text-align: center; }
.gw-mb-30 { margin-bottom: 30px; }

.gw-sec {
  padding: 82px 0;
}

.gw-pb-0 { padding-bottom: 0; }

.gw-sec-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* --- Home main overhaul (below hero) --- */
.page-home {
  background: var(--bg);
}

.page-home .home-2026 {
  position: relative;
  isolation: isolate;
}

/* Ambient motion layer (token-based, no hard-coded palette) */
.page-home .home-2026::before,
.page-home .home-2026::after {
  content: "";
  position: absolute;
  inset: -140px;
  pointer-events: none;
  z-index: -1;
  opacity: .65;
  filter: blur(22px);
  transform: translate3d(0, 0, 0);
}

.page-home .home-2026::before {
  background:
    radial-gradient(420px 340px at 18% 22%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 68%),
    radial-gradient(520px 420px at 82% 32%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%);
  animation: homeAmbientDriftA 14s ease-in-out infinite;
}

.page-home .home-2026::after {
  background:
    radial-gradient(520px 420px at 30% 86%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 72%),
    radial-gradient(380px 320px at 86% 82%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 70%);
  animation: homeAmbientDriftB 18s ease-in-out infinite;
}

@keyframes homeAmbientDriftA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -10px, 0) scale(1.04); }
}

@keyframes homeAmbientDriftB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-16px, 12px, 0) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-2026::before,
  .page-home .home-2026::after {
    animation: none;
    filter: none;
  }
}

/* Card surface polish */
@supports (background: color-mix(in srgb, white 90%, black)) {
  .page-home .home-2026 .gw-list-item,
  .page-home .home-2026 .gw-news-card,
  .page-home .home-2026 .home-stat-card,
  .page-home .home-2026 .home-trust-card,
  .page-home .home-2026 .home-process-card,
  .page-home .home-2026 .home-inquiry-panel {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 92%, var(--primary) 8%),
      var(--surface)
    );
  }
}

.page-home .home-2026 .gw-list-item,
.page-home .home-2026 .gw-news-card,
.page-home .home-2026 .home-stat-card,
.page-home .home-2026 .home-trust-card,
.page-home .home-2026 .home-process-card,
.page-home .home-2026 .home-inquiry-panel {
  position: relative;
  overflow: hidden;
}

.page-home .home-2026 .gw-news-card-link,
.page-home .home-2026 .home-inquiry-submit {
  will-change: transform;
}

.page-home .home-2026 .gw-news-card-link::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto -40%;
  height: 160px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--primary) 14%, transparent),
    transparent
  );
  transform: translate3d(-20%, 0, 0) rotate(8deg);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.page-home .home-2026 .gw-news-card:hover .gw-news-card-link::after,
.page-home .home-2026 .gw-news-card:focus-within .gw-news-card-link::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-2026 .gw-news-card-link::after {
    display: none;
  }
}

.page-home .home-2026 .gw-sec {
  padding: clamp(72px, 7vw, 112px) 0;
}

.page-home .home-2026 .gw-sec.gw-pb-0 {
  padding-bottom: clamp(42px, 4.5vw, 72px);
}

.page-home .home-2026 .gw-sec-container {
  width: min(1200px, calc(100% - 40px));
}

.page-home .home-2026 .home-section-head {
  max-width: 860px;
  margin: 0 auto 26px;
}

.page-home .home-2026 .home-section-head--center {
  text-align: center;
}

.page-home .home-2026 .gw-sec-sub-title {
  margin: 0;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .84rem;
  color: var(--text-soft);
}

.page-home .home-2026 .gw-sec-sub-title span {
  display: inline-block;
}

.page-home .home-2026 .gw-sec-title {
  margin: 12px 0 0;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-home .home-2026 .home-section-lead {
  margin: 12px auto 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 1.02rem;
}

/* 2026 stats (count-up) */
.page-home .home-2026 .home-stats-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-home .home-2026 .home-stat-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 22px;
  text-align: left;
}

.page-home .home-2026 .home-stat-title {
  margin: 0;
  color: var(--text-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
}

.page-home .home-2026 .home-stat-value {
  margin: 12px 0 0;
  font-size: clamp(2.2rem, 4.2vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 900;
  color: var(--text);
}

.page-home .home-2026 .home-stat-meta {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .page-home .home-2026 .home-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026 inquiry form */
.page-home .home-2026 .home-inquiry-shell {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  align-items: start;
}

.page-home .home-2026 .home-inquiry-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 22px;
}

.page-home .home-2026 .home-inquiry-panel-title {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-home .home-2026 .home-inquiry-panel-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.6;
}

.page-home .home-2026 .home-inquiry-contact {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .home-2026 .home-inquiry-contact dt {
  color: var(--text-soft);
  font-size: .86rem;
  margin: 0;
}

.page-home .home-2026 .home-inquiry-contact dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
}

.page-home .home-2026 .home-inquiry-note {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: .92rem;
}

.page-home .home-2026 .home-inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-home .home-2026 .home-inquiry-advanced {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
}

.page-home .home-2026 .home-inquiry-advanced-summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding: 14px 16px;
  color: var(--text);
}

.page-home .home-2026 .home-inquiry-advanced-summary::-webkit-details-marker {
  display: none;
}

.page-home .home-2026 .home-inquiry-advanced-summary strong {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.page-home .home-2026 .home-inquiry-advanced-summary span {
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 600;
}

.page-home .home-2026 .home-inquiry-advanced[open] .home-inquiry-advanced-summary {
  border-bottom: 1px solid var(--line);
}

.page-home .home-2026 .home-inquiry-steps {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.page-home .home-2026 .home-inquiry-step {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 16px;
}

.page-home .home-2026 .home-inquiry-step-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.page-home .home-2026 .home-inquiry-step-title small {
  color: var(--text-soft);
  font-weight: 600;
  margin-left: 8px;
  font-size: .86em;
}

.page-home .home-2026 .home-inquiry-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-home .home-2026 .home-inquiry-label {
  display: block;
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: .86rem;
}

.page-home .home-2026 .home-inquiry-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.page-home .home-2026 .home-inquiry-choice {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: transform .18s ease, border-color .18s ease;
}

.page-home .home-2026 .home-inquiry-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.page-home .home-2026 .home-inquiry-choice span {
  color: var(--text);
  font-weight: 700;
  font-size: .93rem;
}

.page-home .home-2026 .home-inquiry-choice:hover,
.page-home .home-2026 .home-inquiry-choice:focus-within {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.page-home .home-2026 .home-inquiry-field {
  margin-bottom: 12px;
}

.page-home .home-2026 .home-inquiry-field--message {
  grid-column: 1 / -1;
}

.page-home .home-2026 #gw-theme08-main-inquiry .gw-input,
.page-home .home-2026 #gw-theme08-main-inquiry .gw-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

.page-home .home-2026 #gw-theme08-main-inquiry .gw-textarea {
  min-height: 180px;
  resize: vertical;
}

.page-home .home-2026 #gw-theme08-main-inquiry .gw-input::placeholder,
.page-home .home-2026 #gw-theme08-main-inquiry .gw-textarea::placeholder {
  color: var(--text-soft);
}

.page-home .home-2026 .home-inquiry-submit {
  width: 100%;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.page-home .home-2026 .home-inquiry-submit:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

.page-home .home-2026 .home-inquiry-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .page-home .home-2026 .home-inquiry-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-home .home-2026 .home-inquiry-grid {
    grid-template-columns: 1fr;
  }

  .page-home .home-2026 .home-inquiry-mini-grid {
    grid-template-columns: 1fr;
  }

  .page-home .home-2026 .home-inquiry-advanced-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .page-home .home-2026 .home-inquiry-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-2026 .home-inquiry-choice {
    padding: 10px;
    gap: 8px;
  }

  .page-home .home-2026 .home-inquiry-choice span {
    font-size: .9rem;
  }
}

.page-home #gw-theme08-main-service,
.page-home #gw-theme08-main-process,
.page-home #gw-theme08-main-business,
.page-home #gw-home-interactive-strip,
.page-home #gw-theme08-main-about,
.page-home #gw-theme08-main-news,
.page-home #gw-theme08-main-gallery,
.page-home #gw-theme08-main-partners,
.page-home #gw-theme08-main-video,
.page-home #gw-theme08-main-location,
.page-home #gw-theme08-main-inquiry,
.page-home #gw-theme08-main-quick {
  scroll-margin-top: calc(var(--app-overlay-top) + 64px);
}

.page-home #gw-home-conversion-bar {
  scroll-margin-top: calc(var(--app-overlay-top) + 16px);
}

.page-home #gw-theme08-main-service,
.page-home #gw-theme08-main-process,
.page-home #gw-theme08-main-business,
.page-home #gw-home-interactive-strip,
.page-home #gw-theme08-main-about,
.page-home #gw-theme08-main-news,
.page-home #gw-theme08-main-gallery,
.page-home #gw-theme08-main-partners,
.page-home #gw-theme08-main-video,
.page-home #gw-theme08-main-location,
.page-home #gw-theme08-main-inquiry,
.page-home #gw-theme08-main-quick {
  background: var(--surface);
}

/* Background rhythm: alternate sections to create visual gaps without layout changes */
.page-home #gw-theme08-main-process,
.page-home #gw-home-interactive-strip,
.page-home #gw-theme08-main-gallery,
.page-home #gw-theme08-main-video,
.page-home #gw-theme08-main-inquiry {
  background: var(--bg);
}

.page-home .home-conversion-bar {
  position: sticky;
  top: var(--app-overlay-top);
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-home .home-conversion-bar.is-floating {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.page-home .home-conversion-bar.is-floating.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-conversion-bar.is-floating {
    transform: none;
    transition: none;
  }
}

.page-home .home-conversion-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.page-home .home-conversion-bar-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: .95rem;
}

.page-home .home-conversion-bar-copy strong {
  color: var(--text);
  font-weight: 700;
  margin-right: 8px;
}

.page-home .home-conversion-bar .gw-slide-btn-container {
  margin-top: 0;
}

@media (max-width: 680px) {
  .page-home .home-conversion-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-home .home-conversion-bar-copy {
    font-size: .92rem;
  }

  .page-home .home-conversion-bar-copy strong {
    margin-right: 0;
  }

  .page-home .home-conversion-bar-copy-text {
    display: none;
  }

  .page-home .home-conversion-bar .gw-slide-btn-container {
    width: 100%;
  }

  .page-home .home-conversion-bar .gw-slide-btn-container .gw-btn01 {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }
}

.page-home .gw-sec {
  padding: 86px 0;
}

.page-home .gw-sec-sub-title {
  color: var(--text-soft);
}

.page-home .gw-sec-title {
  color: var(--text);
}

.page-home .gw-service-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.page-home .gw-list-item {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  min-height: 216px;
}

.page-home .gw-list-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/themes/default-seo/assets/sub-visual-default.svg');
  background-repeat: no-repeat;
  background-position: right -120px top -90px;
  background-size: 440px auto;
  opacity: .16;
}

.page-home .gw-list-item::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 92px;
  height: 92px;
  background-image: url('/themes/default-seo/assets/logo-websoft.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: .08;
  pointer-events: none;
}

.page-home .gw-thumb-box {
  position: relative;
  padding: 24px;
  justify-content: flex-start;
}

.page-home .home-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  margin: 0 0 14px;
}

.page-home .home-service-icon img {
  width: 26px;
  height: 26px;
  display: block;
}

.page-home .gw-thumb-box h4 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
  color: var(--text);
}

.page-home .gw-thumb-box p {
  color: var(--text-soft);
}

.page-home .gw-business-item {
  background: var(--surface);
  border-color: var(--line);
}

.page-home .gw-img-box {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
}

.page-home .gw-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .gw-news-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 20px;
}

.page-home .gw-news-card p {
  color: var(--text-soft);
}

.page-home .gw-news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-home .gw-news-card-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 16px;
}

/* Fallback reveal (only when JS explicitly enables it) */
.page-home.home-reveal-ready .home-2026 [data-home-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.page-home.home-reveal-ready .home-2026 [data-home-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-home.home-reveal-ready .home-2026 [data-home-reveal],
  .page-home.home-reveal-ready .home-2026 [data-home-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.page-home .home-trust-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-home .home-trust-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
}

.page-home .home-trust-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.page-home .home-trust-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .page-home .home-trust-grid {
    grid-template-columns: 1fr;
  }
}

.page-home .home-card-media {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: var(--surface);
  aspect-ratio: 16 / 9;
  background-image: url('/themes/default-seo/assets/sub-visual-default.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.page-home .home-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-card-media.is-compact img {
  height: 100%;
}

.page-home .home-card-media.is-compact {
  aspect-ratio: 3 / 2;
}

.page-home .home-card-media.is-compact {
  background-size: 520px auto;
  background-position: right -160px top -120px;
}

@media (max-width: 680px) {
  .page-home .home-2026 .gw-sec { padding: 56px 0; }
  .page-home .gw-sec-container { width: calc(100% - 28px); }

  .page-home .gw-sec-title { font-size: clamp(1.35rem, 5.2vw, 1.75rem); }
  .page-home .gw-sec-sub-title { letter-spacing: .12em; }

  .page-home .gw-thumb-box { padding: 18px; }
  .page-home .gw-list-item { min-height: 176px; }

  .page-home .gw-news-card { padding: 16px; }
  .page-home .gw-business-item { padding: 20px; }

  .page-home .home-interactive-grid { grid-template-columns: 1fr; }
  .page-home .home-interactive-card { padding: 16px; }
  .page-home .home-interactive-card a { width: 100%; justify-content: center; }

  .page-home .gw-slide-btn-container { width: 100%; }
  .page-home .gw-slide-btn-container .gw-btn01 { flex: 1 1 0; min-width: 0; }
}

/* 2026 quick CTA band */
.page-home .home-2026 .gw-quick-con {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.page-home .home-2026 .gw-quick-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 22px;
  align-items: center;
}

.page-home .home-2026 .gw-quick-item .gw-tit {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text);
}

.page-home .home-2026 .gw-quick-item .gw-txt {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .page-home .home-2026 .gw-quick-con {
    grid-template-columns: 1fr;
  }
}

/* 2026 process cards */
.page-home .home-2026 .home-process-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.page-home .home-2026 .home-process-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 20px;
}

.page-home .home-2026 .home-process-card strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--text);
  font-weight: 800;
}

.page-home .home-2026 .home-process-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .page-home .home-2026 .home-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-home .home-2026 .home-process-grid {
    grid-template-columns: 1fr;
  }
}

/* Home gaps + micro-interactions (no new colors/shadows) */
.page-home .gw-sec + .gw-sec {
  margin-top: 18px;
}

.page-home .gw-list-item,
.page-home .gw-news-card,
.page-home .gw-quick-item,
.page-home .home-process-card,
.page-home .gw-gallery-item,
.page-home .gw-partner-logo-row span,
.page-home .gw-partner-banner li {
  transition: transform .18s ease, border-color .18s ease;
}

.page-home .gw-list-item:hover,
.page-home .gw-list-item:focus-within,
.page-home .gw-news-card:hover,
.page-home .gw-news-card:focus-within,
.page-home .gw-quick-item:hover,
.page-home .gw-quick-item:focus-within,
.page-home .home-process-card:hover,
.page-home .home-process-card:focus-within,
.page-home .gw-gallery-item:hover,
.page-home .gw-gallery-item:focus-within,
.page-home .gw-partner-logo-row span:hover,
.page-home .gw-partner-logo-row span:focus-within,
.page-home .gw-partner-banner li:hover,
.page-home .gw-partner-banner li:focus-within {
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* Interactive strip cards: align to theme tokens (avoid mixed palette) */
.page-home .home-interactive-card {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.page-home .home-interactive-card h4 {
  color: var(--text);
}

.page-home .home-interactive-card p {
  color: var(--text-soft);
}

.page-home .home-interactive-card a {
  border-color: var(--line);
  color: var(--text);
}

.page-home .gw-news-card a,
.page-home .gw-quick-item a,
.page-home .gw-list-item a,
.page-home .home-interactive-card a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page-home #gw-theme08-main-business .gw-txt,
.page-home #gw-theme08-main-business .gw-business-item .gw-txt {
  color: var(--text-soft);
}

.page-home #gw-theme08-main-about dl {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}

.page-home #gw-theme08-main-about dl::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/themes/default-seo/assets/sub-visual-default.svg');
  background-repeat: no-repeat;
  background-position: right -120px top -120px;
  background-size: 420px auto;
  opacity: .12;
}

.page-home #gw-theme08-main-about dt,
.page-home #gw-theme08-main-about .gw-txt {
  color: var(--text-soft);
}

.page-home #gw-theme08-main-about .gw-counter-box span {
  position: relative;
  color: var(--text);
}

.page-home .gw-gallery-item,
.page-home .gw-partner-logo-row span {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text-soft);
  position: relative;
  overflow: hidden;
}

.page-home .gw-gallery-item::before,
.page-home .gw-partner-logo-row span::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/themes/default-seo/assets/sub-visual-default.svg');
  background-repeat: no-repeat;
  background-position: right -130px top -120px;
  background-size: 420px auto;
  opacity: .08;
}

.page-home .gw-partner-banner li {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.page-home .gw-partner-banner li::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/themes/default-seo/assets/sub-visual-default.svg');
  background-repeat: no-repeat;
  background-position: right -160px top -120px;
  background-size: 520px auto;
  opacity: .10;
}

.page-home .gw-partner-banner a {
  position: relative;
}

.page-home .gw-partner-banner p {
  color: var(--text-soft);
}

.page-home .video-container {
  border-color: var(--line);
  background: var(--surface);
}

.page-home #gw-theme08-main-location {
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.page-home .gw-map {
  background: var(--surface);
  background-image: url('/themes/default-seo/assets/sub-visual-default.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.page-home #gw-theme08-main-location .gw-right {
  background: var(--surface);
  color: var(--text);
  border-left: 1px solid var(--line);
}

.page-home .gw-location-list {
  color: var(--text-soft);
}

.page-home #gw-theme08-main-inquiry {
  background: var(--surface);
}

.page-home .gw-input,
.page-home .gw-textarea-item textarea {
  border-color: var(--line);
  background: var(--surface);
  border-radius: 12px;
}

.page-home .gw-quick-item {
  border-color: var(--line);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.page-home .gw-quick-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/themes/default-seo/assets/sub-visual-default.svg');
  background-repeat: no-repeat;
  background-position: right -180px top -160px;
  background-size: 520px auto;
  opacity: .08;
}

.page-home .gw-quick-item .gw-txt {
  color: var(--text-soft);
}

@media (max-width: 1024px) {
  .page-home .gw-service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-home .gw-service-list {
    grid-template-columns: 1fr;
  }

  .page-home .gw-list-item::after {
    width: 74px;
    height: 74px;
    opacity: .06;
  }
}

.page-home .home-process-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-home .home-process-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.page-home .home-process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/themes/default-seo/assets/sub-visual-default.svg');
  background-repeat: no-repeat;
  background-position: right -160px top -130px;
  background-size: 520px auto;
  opacity: .08;
}

.page-home .home-process-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.page-home .home-process-card strong {
  position: relative;
  display: block;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.page-home .home-process-card p {
  position: relative;
  margin: 0;
  color: var(--text-soft);
}

@media (max-width: 1024px) {
  .page-home .home-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-home .home-process-grid {
    grid-template-columns: 1fr;
  }
}

.gw-sec-sub-title {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .14em;
  color: #56729a;
  font-weight: 700;
  text-transform: uppercase;
}

.gw-sec-title {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 2.7vw, 2.35rem);
  line-height: 1.28;
  color: #0f2040;
}

.gw-main-btn01 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #1b57c8;
  background: #1b57c8;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.gw-main-btn01.gw-fff {
  background: #fff;
  color: #183f87;
}

#gw-theme-main-visual {
  margin-top: 24px;
  border-radius: 22px;
  overflow: hidden;
  min-height: 620px;
  position: relative;
}

.gw-main-visual-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 14, 28, .18), rgba(5, 10, 21, .68)),
    radial-gradient(circle at 82% 16%, rgba(255, 191, 73, .35), transparent 29%),
    linear-gradient(120deg, #132846 0%, #1f3d6d 45%, #274b87 100%);
}

.gw-main-visual-text-con {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 82px 72px;
  max-width: 760px;
}

.gw-main-visual-text01 span {
  display: inline-block;
  font-size: .82rem;
  letter-spacing: .2em;
  color: rgba(242, 247, 255, .84);
}

.gw-progress-container {
  margin-top: 14px;
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, .26);
}

.gw-progress-bar {
  display: block;
  width: 40%;
  height: 100%;
  background: #fff;
}

.gw-bottom-container { margin-top: 26px; }

.gw-main-visual-text02 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.16;
  font-weight: 700;
}

.gw-main-visual-text03 {
  margin-top: 14px;
  color: rgba(240, 246, 255, .9);
  font-size: 1.06rem;
}

.gw-slide-btn-container { margin-top: 30px; }

.gw-btn01 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-decoration: none;
}

.scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .9);
}

.gw-arrow { font-size: 1.1rem; }

.gw-service-list {
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.gw-list-item {
  min-height: 218px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(150deg, rgba(13, 27, 51, .42), rgba(7, 11, 21, .94));
  color: #f3f7ff;
}

.gw-item-inner,
.gw-thumb-box {
  height: 100%;
}

.gw-thumb-box {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gw-thumb-box h4 { margin: 0 0 8px; }
.gw-thumb-box p { margin: 0; color: rgba(235, 241, 255, .84); font-size: .92rem; }

.gw-business-list {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 14px;
}

.gw-business-item {
  border: 1px solid #dce6f3;
  background: #f7f9fd;
  border-radius: 16px;
  padding: 30px;
}

.gw-business-item .gw-tit { margin: 8px 0; font-size: 1.4rem; font-weight: 700; }
.gw-business-item .gw-txt { margin: 0 0 18px; color: #5a6f91; }

.gw-img-box {
  min-height: 310px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(140deg, #1f3558, #0d1628 58%, #1b2f4e);
  display: grid;
  place-items: center;
}

#gw-theme08-main-about .gw-content {
  margin-top: 24px;
  gap: 12px;
}

#gw-theme08-main-about dl {
  flex: 1;
  margin: 0;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 999px;
  padding: 18px 12px;
}

#gw-theme08-main-about dt {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b7f9f;
}

.gw-counter-box span {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

#gw-theme08-main-about .gw-txt { color: #5e7191; font-size: .9rem; }

.gw-news-container {
  display: grid;
  grid-template-columns: .28fr .72fr;
  gap: 16px;
}

.gw-news-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gw-news-card {
  min-height: 180px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dbe4f1;
  padding: 18px;
}

.gw-news-card h4 { margin: 0 0 8px; }
.gw-news-card p { margin: 0; color: #5f7291; }

.gw-gallery-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gw-gallery-item {
  border: 1px solid #d7e2f2;
  border-radius: 10px;
  background: #fff;
  min-height: 54px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #5c6f90;
}

.gw-partner-logo-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gw-partner-logo-row span {
  min-height: 44px;
  border: 1px solid #d8e2f0;
  background: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #5b6f91;
  font-size: .82rem;
  font-weight: 700;
}

.gw-partner-banner {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.gw-partner-banner li {
  flex: 1;
  border-radius: 14px;
  background: linear-gradient(130deg, rgba(22, 34, 60, .94), rgba(17, 49, 102, .88));
  color: #eef3ff;
}

.gw-partner-banner a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 22px;
}

.gw-partner-banner h4 { margin: 0 0 8px; }
.gw-partner-banner p { margin: 0; color: rgba(238, 243, 255, .88); }

.video-container {
  margin-top: 16px;
  height: min(560px, 56vw);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dce5f2;
  background: #0e1c36;
}

#gw-theme08-main-location {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#gw-theme08-main-location .gw-left,
#gw-theme08-main-location .gw-right { min-height: 340px; }

.gw-map {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(130deg, rgba(243, 247, 255, .86), rgba(237, 243, 251, .96)),
    repeating-linear-gradient(90deg, rgba(170, 184, 206, .26), rgba(170, 184, 206, .26) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, rgba(170, 184, 206, .24), rgba(170, 184, 206, .24) 1px, transparent 1px, transparent 60px);
}

#gw-theme08-main-location .gw-right {
  background: #11306a;
  color: #f6f9ff;
  display: grid;
  place-items: center;
}

#gw-theme08-main-location .gw-text-container {
  width: min(460px, calc(100% - 40px));
}

.gw-location-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(241, 246, 255, .88);
}

#gw-theme08-main-inquiry {
  background: #efefef;
  margin-top: 0;
}

.gw-title-container { margin-bottom: 20px; }

.gw-input-container { gap: 10px; }

.gw-input-list {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.gw-input-item,
.gw-textarea-item { margin-bottom: 10px; }

.gw-input,
.gw-textarea-item textarea {
  width: 100%;
  border: 1px solid #cfd9e9;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}

.gw-textarea-item textarea { min-height: 122px; resize: vertical; }

.gw-btn-container { text-align: center; margin-top: 10px; }

.gw-quick-con {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gw-quick-item {
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dbe4f1;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.gw-quick-item .gw-tit { margin: 0 0 10px; font-size: 1.1rem; }
.gw-quick-item .gw-txt { margin: 0; color: #5a6f90; }

.gw-sub-visual {
  margin-top: 24px;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, #172a49, #244277 48%, #2e5496);
  color: #fff;
  display: grid;
  place-items: center;
}

.gw-sub-inner h1 {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.gw-sub-surface { margin-top: 20px; }

.site-footer {
  margin-top: 54px;
  background: #f5f8ff;
  color: #0f1f3d;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}

#ft_wr { padding: 34px 0 18px; }

#ft_link {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

#ft_link a { color: rgba(223, 232, 251, .9); text-decoration: none; }

.ft-bottom-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

#ft-logo { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }

.ft_info p {
  margin: 0 0 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(222, 231, 248, .86);
}

.ft-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  gap: 10px;
}

#ft_copy { color: rgba(220, 230, 251, 0.78); }

.family-site-container {
  position: relative;
}

#family-site-toggle {
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  padding: 0 14px;
}

.family-site-list {
  margin: 6px 0 0;
  padding: 8px;
  list-style: none;
  position: absolute;
  right: 0;
  bottom: 44px;
  min-width: 180px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: #0f1f3f;
  display: none;
}

.family-site-list.is-open { display: block; }

.family-site-list a {
  display: block;
  padding: 7px 8px;
  color: rgba(229, 236, 255, .92);
  text-decoration: none;
}

.ft-quick-container {
  --ft-quick-fab-size: 44px;
  --ft-quick-fab-icon-size: 18px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 90;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.ft-quick-container li {
  position: relative;
}

.ft-quick-fab-btn,
.ft-quick-fab-link {
  width: var(--ft-quick-fab-size);
  height: var(--ft-quick-fab-size);
  border: 1px solid #1e4ea9;
  border-radius: 999px;
  background: #1b57c8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(8, 20, 46, .35);
  padding: 0;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.ft-quick-fab-link {
  border: 1px solid #355ca4;
  background: #14336d;
}

.ft-quick-fab-btn i,
.ft-quick-fab-link i {
  font-size: var(--ft-quick-fab-icon-size);
  line-height: 1;
}

.ft-quick-fab-image {
  width: var(--ft-quick-fab-icon-size);
  height: var(--ft-quick-fab-icon-size);
  object-fit: contain;
  display: block;
}

.ft-quick-fab-btn:hover,
.ft-quick-fab-btn:focus-visible,
.ft-quick-fab-link:hover,
.ft-quick-fab-link:focus-visible {
  transform: translateY(-2px);
}

.ft-quick-container [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 20, 46, .92);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}

.ft-quick-container [data-tooltip]:hover::after,
.ft-quick-container [data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-2px);
}

@media (max-width: 1024px) {
  .gw-service-list,
  .gw-gallery-grid,
  .gw-partner-logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gw-news-container,
  .gw-business-list,
  #gw-theme08-main-location,
  .gw-quick-con { grid-template-columns: 1fr; }
  .gw-news-cards { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .gw-main-visual-text-con { padding: 56px 24px; }
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav,
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, calc(100% - 54px));
    background: #0f1b33;
    z-index: 41;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 72px 18px 18px;
    transform: translateX(100%);
    transition: transform .24s ease;
    overflow-y: auto;
  }
  .main-nav.is-open,
  .site-nav.is-open {
    transform: translateX(0);
  }
  .main-nav .menu-level,
  .site-nav .menu-level {
    flex-direction: column;
    gap: 8px;
  }
  .main-nav .menu-level-2,
  .main-nav .menu-level-3,
  .main-nav .menu-level-4,
  .site-nav .menu-level-2,
  .site-nav .menu-level-3,
  .site-nav .menu-level-4 {
    position: static;
    display: flex;
    margin: 6px 0 0;
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .1);
  }
  .gw-service-list,
  .gw-gallery-grid,
  .gw-partner-logo-row { grid-template-columns: 1fr; }
  .gw-input-container,
  #gw-theme08-main-about .gw-content,
  .gw-partner-banner,
  .ft-bottom,
  .gw-quick-item { flex-direction: column; align-items: flex-start; }
  .family-site-list {
    right: auto;
    left: 0;
  }
  .home-main-slide {
    min-height: 340px;
  }
}

/* --- Home/Header redesign overrides --- */
.page-home main.container {
  width: 100%;
  max-width: none;
  padding-bottom: 0;
}

.page-home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}

.page-home .header-inner {
  height: 96px;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.main-nav {
  flex: 1;
  justify-content: center;
}

.main-nav .menu-level {
  justify-content: center;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 4px;
}

.notify-center {
  position: relative;
}

.profile-center {
  position: relative;
}

.profile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(420px, calc(100vw - 24px));
  border-radius: 12px;
  border: 1px solid #d7e3f3;
  background: #fff;
  box-shadow: 0 18px 36px rgba(12, 28, 58, .18);
  padding: 10px;
  z-index: 90;
}

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Respect HTML `hidden` attribute inside the profile card.
   Without this, `.profile-panel-body { display: grid; }` can override and show all tabs. */
.profile-panel [hidden] {
  display: none !important;
}

.profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-panel-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.profile-panel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f1f6ff;
  border: 1px solid #d7e3f3;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #17355f;
  font-weight: 800;
}

.profile-panel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-panel-usertext {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-panel-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #6d81a0;
  font-size: .76rem;
  font-weight: 800;
  margin-top: 2px;
}

.profile-panel-social span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-panel-social i {
  color: #17355f;
  opacity: .85;
}

.profile-panel-social strong {
  color: #17355f;
  font-weight: 900;
}

.profile-panel-usertext strong {
  color: #17355f;
  font-size: .98rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-panel-usertext small {
  color: #5776a6;
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-panel-close {
  border: 1px solid #d3deee;
  background: #f7faff;
  color: #3c5e90;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.profile-tab {
  border: 1px solid #d3deee;
  background: #f7faff;
  color: #3c5e90;
  border-radius: 10px;
  min-height: 42px;
  font: inherit;
  cursor: pointer;
  font-weight: 700;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 6px;
  flex-wrap: wrap;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
}

.profile-tab[aria-label] {
  min-width: 44px;
}

.profile-tab.is-active {
  background: #17355f;
  color: #fff;
  border-color: rgba(23, 53, 95, .55);
}

.profile-tab i {
  font-size: .92rem;
  line-height: 1;
}

.profile-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-style: normal;
  font-size: .7rem;
  line-height: 18px;
  border: 1px solid rgba(255, 255, 255, .6);
}

.profile-panel-body {
  display: grid;
  gap: 10px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-stat {
  border: 1px solid #e0e9f5;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  display: grid;
  gap: 8px;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.profile-stat:hover {
  transform: translateY(-1px);
  border-color: #d7e3f3;
  box-shadow: 0 14px 26px rgba(12, 28, 58, .12);
}

.profile-stat:focus-within {
  box-shadow: 0 0 0 4px rgba(22, 103, 234, .14);
}

.profile-stat-title {
  display: flex;
  justify-content: center;
}

.profile-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #dbe6f3;
  background: #f7faff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #17355f;
}

.profile-stat-icon i {
  font-size: 1.05rem;
}

.profile-stat-value {
  display: grid;
  gap: 2px;
}

.profile-stat-value strong {
  color: #17355f;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.15;
}

.profile-stat-value small {
  color: #8aa0c2;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.1;
}

.profile-stat-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-2px);
  width: max-content;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d7e3f4;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 30px rgba(12, 28, 58, .16);
  color: #22375a;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity .12s ease, transform .12s ease;
}

.profile-stat-tip-title {
  font-weight: 900;
  font-size: .86rem;
  color: #17355f;
}

.profile-stat-tip-desc {
  margin-top: 4px;
  font-size: .78rem;
  color: #5776a6;
  font-weight: 800;
  line-height: 1.35;
}

.profile-stat:hover .profile-stat-tip,
.profile-stat:focus-within .profile-stat-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.profile-stat-tip strong {
  color: #17355f;
  font-weight: 900;
}

.profile-note-thumb {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d7e3f3;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #17355f;
  font-weight: 800;
}

.profile-note-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-pager-label {
  font-size: .78rem;
  color: #6d81a0;
  font-weight: 800;
  min-width: 64px;
  text-align: center;
}

.profile-links {
  display: grid;
  gap: 6px;
}

.profile-link {
  border: 1px solid #e0e9f5;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fafcff;
  text-decoration: none;
  color: #17355f;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.profile-link button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  cursor: pointer;
}

.profile-list {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
}

.profile-item {
  border: 1px solid #e0e9f5;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fafcff;
  text-decoration: none;
  color: #17355f;
  display: grid;
  gap: 2px;
}

.profile-item.has-thumb {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
}

.profile-item.profile-note-item.has-thumb {
  align-items: start;
}

.profile-note-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-note-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-note-preview {
  color: #6d81a0;
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-note-date {
  color: #8aa0c2;
  font-size: .74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-note-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 6px;
  background: #ef4444;
  color: #fff;
  font-style: normal;
  font-size: .7rem;
  line-height: 18px;
}

.profile-cart-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d7e3f3;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-cart-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-cart-text strong,
.profile-cart-text small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-item strong {
  font-weight: 800;
}

.profile-item small {
  color: #6d81a0;
  font-size: .76rem;
}

.profile-empty {
  margin: 0;
  color: #6d81a0;
  font-size: .84rem;
  text-align: center;
  padding: 10px 0;
}

.profile-more {
  border: 1px solid #d3deee;
  background: #f7faff;
  color: #3c5e90;
  border-radius: 10px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.profile-action {
  border: 1px solid #d3deee;
  background: #f7faff;
  color: #3c5e90;
  border-radius: 10px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  gap: 8px;
  cursor: pointer;
  font: inherit;
}

.profile-message-field {
  display: grid;
  gap: 6px;
  color: #1f3558;
  font-weight: 700;
}

.profile-message-input,
.profile-message-textarea {
  width: 100%;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: #223552;
}

.profile-message-textarea {
  resize: vertical;
  min-height: 92px;
}

.profile-message-results {
  display: grid;
  gap: 8px;
}

.profile-message-result {
  border: 1px solid #e0e9f5;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafcff;
  color: #17355f;
  font: inherit;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-message-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d7e3f3;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.profile-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-message-result-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-message-result-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-message-result-text small {
  font-weight: 700;
  color: #6d81a0;
  font-size: .8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-message-empty {
  margin: 0;
  color: #6d81a0;
  font-size: .86rem;
  text-align: center;
  padding: 8px 0;
}

.profile-message-selected {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  background: #f7faff;
  padding: 10px 12px;
  color: #1f3558;
}

.profile-message-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.profile-message-emoji {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.profile-message-emoji-btn {
  border: 1px solid #dbe6f3;
  background: #fff;
  color: #1f3558;
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.profile-message-emoji-btn:hover {
  background: #f7faff;
}

.profile-message-attach {
  display: flex;
  gap: 8px;
  align-items: center;
}

.profile-message-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-message-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-message-attach-meta {
  margin-top: 10px;
  border: 1px dashed #dbe6f3;
  border-radius: 12px;
  background: #fafcff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-message-attach-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #d7e3f3;
  background: #fff;
  flex: 0 0 auto;
}

.profile-message-attach-text {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.profile-message-attach-text strong {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-message-attach-text small {
  color: #6d81a0;
  font-size: .82rem;
  font-weight: 700;
}

.profile-cart-total {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
  color: #17355f;
}

@media (max-width: 860px) {
  .profile-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 84px;
    width: auto;
    max-height: calc(100vh - 108px);
    overflow: auto;
  }
}

.notify-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.notify-count {
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-style: normal;
  font-size: .7rem;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, .4);
}

.notify-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(360px, calc(100vw - 24px));
  border-radius: 12px;
  border: 1px solid #d7e3f3;
  background: #fff;
  box-shadow: 0 18px 36px rgba(12, 28, 58, .18);
  padding: 10px;
  z-index: 80;
}

.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.notify-head strong {
  color: #17355f;
}

.notify-clear {
  border: 1px solid #d3deee;
  background: #f7faff;
  color: #3c5e90;
  border-radius: 8px;
  min-height: 30px;
  padding: 0 10px;
  font: inherit;
  cursor: pointer;
}

.notify-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.notify-item {
  border: 1px solid #e0e9f5;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fafcff;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.notify-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e0e9f5;
  background: #fff;
  flex: 0 0 auto;
}

.notify-item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.notify-item-title {
  display: block;
  margin-bottom: 2px;
  color: #123464;
  font-size: .85rem;
}

.notify-item p {
  margin: 0;
  color: #183760;
  font-size: .9rem;
}

.notify-item span {
  margin-top: 4px;
  display: block;
  color: #6b809f;
  font-size: .76rem;
}

.notify-item-success { border-color: #cdebd8; background: #f5fff8; }
.notify-item-error { border-color: #f2c8c8; background: #fff8f8; }
.notify-item-warning { border-color: #f0dfbe; background: #fffbf2; }

.notify-empty {
  margin: 12px 0 2px;
  color: #607796;
  font-size: .88rem;
}

.mypage-shell {
  width: min(980px, calc(100% - 24px));
  margin: 24px auto 120px;
  display: grid;
  gap: 14px;
}

.mypage-shell.mypage-mini-shell {
  width: min(1200px, calc(100% - 24px));
}

.mypage-header-card {
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mypage-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mypage-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5c8fff 0%, #3072ef 100%);
  color: #fff;
  font-weight: 700;
}

.mypage-user h1 {
  margin: 0;
  font-size: 1.3rem;
}

.mypage-user p {
  margin: 2px 0 0;
  color: #687f9f;
}

.mypage-point-chip {
  border-radius: 999px;
  background: #ffa62a;
  color: #fff;
  font-weight: 700;
  padding: 7px 14px;
}

.mypage-point-chip strong {
  margin-left: 4px;
}

.mypage-balance-card {
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #1b69f2 0%, #0d56df 100%);
}

.mypage-balance-card p {
  margin: 0;
  opacity: .9;
}

.mypage-balance-card strong {
  margin-top: 8px;
  display: block;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
}

.mypage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mypage-feature {
  border: 1px solid #dbe6f3;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.mypage-feature h3 {
  margin: 0 0 8px;
}

.mypage-feature p {
  margin: 0;
  color: #5f7697;
}

.mypage-feature span,
.mypage-feature a {
  margin-top: 10px;
  display: inline-flex;
  color: #2457f5;
  font-weight: 600;
  text-decoration: none;
}

.mypage-request-box,
.mypage-request-history {
  border: 1px solid #dce6f2;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.mypage-request-box h2,
.mypage-request-history h2 {
  margin: 0 0 12px;
  font-size: 1.14rem;
}

.mypage-request-form {
  display: grid;
  gap: 10px;
}

.mypage-request-history ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.mypage-request-history li {
  border: 1px solid #e3ebf6;
  border-radius: 12px;
  background: #fbfdff;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.mypage-request-history strong {
  font-size: .98rem;
}

.mypage-request-history p {
  margin: 4px 0 0;
  color: #667f9f;
  font-size: .86rem;
}

.mypage-status {
  align-self: center;
  border-radius: 999px;
  border: 1px solid #cddcf3;
  color: #2755a1;
  background: #eef4ff;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 9px;
}

.mypage-empty {
  margin: 0;
  color: #5e7698;
}

.mypage-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid #d8e2ef;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 55;
}

.mypage-bottom-nav a {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #98a7bf;
  font-weight: 600;
}

.mypage-bottom-nav a.is-active {
  color: #1f62e8;
}

/* legacy bottom appbar disabled (replaced by current header navigation) */
.mypage-bottom-nav {
  display: none !important;
}

.header-cta {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: .84rem;
  background: rgba(255, 255, 255, .1);
}

.auth-link {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .84rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.auth-link:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .42);
}

.auth-register {
  background: linear-gradient(135deg, #3c6eff 0%, #2b52d3 100%);
  border-color: rgba(91, 131, 255, .86);
}

.auth-register:hover {
  background: linear-gradient(135deg, #4a79ff 0%, #315be0 100%);
}

.logout .auth-link {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.page-home .home-main-slider {
  margin-top: 0;
  border-radius: 0;
  border: 0;
  min-height: clamp(420px, var(--home-slider-height), 860px);
}

.home-main-slider-track,
.home-main-slide,
.home-main-slide-media,
.home-main-slide-media img,
.home-main-slide-media video,
.home-main-slide-media iframe {
  min-height: clamp(420px, var(--home-slider-height), 860px);
}

.home-main-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 16, 35, calc(var(--home-slider-overlay-opacity) * .72)) 0%, rgba(8, 16, 35, calc(var(--home-slider-overlay-opacity) * .56)) 42%, rgba(8, 16, 35, calc(var(--home-slider-overlay-opacity) * .42)) 72%, rgba(8, 16, 35, calc(var(--home-slider-overlay-opacity) * .3)) 100%),
    linear-gradient(180deg, rgba(8, 16, 35, calc(var(--home-slider-overlay-opacity) * .36)), rgba(8, 16, 35, calc(var(--home-slider-overlay-opacity) * .66)));
}

.home-main-slide-caption {
  z-index: 2;
  max-width: 760px;
  left: 84px;
  right: auto;
  bottom: 180px;
  padding: 18px 22px;
  border-radius: 14px;
  backdrop-filter: blur(2px);
  background: linear-gradient(120deg, rgba(7, 17, 36, .36), rgba(7, 17, 36, .18));
}

.home-main-slide-kicker {
  margin: 0 0 24px;
  color: var(--home-slider-text-color);
  opacity: .88;
  font-size: 2rem;
  font-weight: 700;
}

.home-main-slide-caption h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 1.22;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(7, 18, 36, .52);
}

.home-main-slide-caption p {
  margin: 22px 0 0;
  color: rgba(248, 251, 255, .96);
  opacity: .78;
  font-size: 1.65rem;
  text-shadow: 0 1px 10px rgba(7, 18, 36, .45);
}

.home-main-slider-nav {
  z-index: 3;
  left: 84px;
  right: auto;
  top: auto;
  bottom: 108px;
  align-items: center;
  gap: 14px;
}

.home-main-slider-nav button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 1.2rem;
}

.home-main-slider-counter {
  color: rgba(255, 255, 255, .9);
  font-size: 1.03rem;
}

.home-main-slider-counter strong {
  font-weight: 700;
}

.home-main-slider-counter em {
  opacity: .45;
  font-style: normal;
  margin: 0 8px;
}

.home-main-slider-progress {
  position: absolute;
  z-index: 3;
  left: 84px;
  bottom: 84px;
  width: min(260px, calc(100vw - 100px));
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .32);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset;
}

.home-main-slider-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #39b4ff 0%, #2f79ff 100%);
}

/* --- YouTube skin --- */
.youtube-embed-wrap {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d8e3f0;
  background: #0b1427;
  aspect-ratio: 16 / 9;
}

.youtube-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- Schedule modal on frontend --- */
.ux-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
}

.ux-modal.is-open {
  display: block;
}

.ux-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 30, .62);
}

.ux-modal-dialog {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dce6f2;
  box-shadow: 0 20px 50px rgba(10, 22, 45, .35);
}

.ux-modal-head {
  padding: 14px 16px;
  border-bottom: 1px solid #e5edf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ux-modal-head h3 {
  margin: 0;
}

.ux-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #4d6283;
}

.ux-modal-body {
  padding: 14px 16px 16px;
}

.ux-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .brand-text {
    display: none;
  }
  .header-actions .admin-link,
  .header-actions .logout .admin-link {
    display: inline-flex;
  }
  .notify-center {
    display: none;
  }
  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: .82rem;
  }
  .home-main-slide-caption {
    left: 24px;
    right: 24px;
    bottom: 160px;
    max-width: none;
    padding: 12px 14px;
  }
  .home-main-slide-kicker {
    font-size: 1rem;
    margin-bottom: 14px;
  }
  .home-main-slide-caption h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }
  .home-main-slide-caption p {
    font-size: clamp(1rem, 4.3vw, 1.25rem);
    margin-top: 10px;
  }
  .home-main-slider-nav {
    left: 24px;
    bottom: 96px;
  }
  .home-main-slider-progress {
    left: 24px;
    bottom: 70px;
    width: calc(100vw - 48px);
  }
}

/* --- Sub banner redesign (board/sub page) --- */
.sub-hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  margin-top: 0;
}

.sub-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.sub-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 19, 37, .35) 0%, rgba(8, 17, 33, .62) 52%, rgba(8, 17, 33, .78) 100%),
    linear-gradient(90deg, rgba(9, 19, 37, .74) 0%, rgba(9, 19, 37, .38) 46%, rgba(9, 19, 37, .56) 100%);
}

.sub-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 44px;
  color: #fff;
}

.sub-hero-breadcrumb {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .79rem;
  color: rgba(231, 238, 250, .78);
}

.sub-hero-breadcrumb a {
  text-decoration: none;
  color: rgba(241, 245, 255, .86);
}

.sub-hero-breadcrumb strong {
  color: #fff;
  font-weight: 600;
}

.sub-hero-title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.2;
  font-weight: 800;
}

.sub-hero-sub {
  margin: 8px 0 0;
  color: rgba(230, 237, 252, .8);
  font-size: .92rem;
}

.gw-sub-surface {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  margin-top: -42px;
  border-radius: 16px;
  border: 1px solid #dde6f2;
  box-shadow: 0 16px 36px rgba(10, 22, 45, .1);
  background: #fff;
  position: relative;
  z-index: 4;
}

.page-sub {
  background: #eff0f2;
}

.page-sub main.container {
  width: 100%;
  max-width: none;
  padding-bottom: 42px;
}

.page-content-surface {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.board-content-surface {
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 0;
}

.page-sub .page-content-surface {
  margin: 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* code 모드 페이지: 내부 HTML이 직접 레이아웃 제어 */
.page-sub .page-content-surface.page-content--code {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-sub .board-content-surface {
  margin-top: 24px;
  padding: 0;
}

.page-sub .page-content-surface,
.page-sub .board-content-surface {
  position: relative;
  z-index: 4;
}

.page-sub .gw-sub-surface {
  margin-top: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

@media (max-width: 860px) {
  .header-inner {
    height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    justify-content: normal;
  }
  .main-nav {
    flex: none;
    width: min(320px, calc(100% - 54px));
    transform: translateX(105%) !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .main-nav.is-open {
    transform: translateX(0) !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav .menu-level {
    width: 100%;
  }
  .main-nav .menu-item {
    width: 100%;
  }
  .main-nav .menu-item > a {
    display: block;
    width: 100%;
    padding: 10px 6px;
  }
  .main-nav .menu-level-2,
  .main-nav .menu-level-3,
  .main-nav .menu-level-4 {
    display: none !important;
  }
  .menu-toggle {
    margin-left: 0;
    order: 0;
    justify-self: end;
  }
  .header-actions {
    display: inline-flex !important;
    gap: 6px;
    justify-self: start;
    margin-left: 4px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .header-actions .header-cta,
  .header-actions .notify-center {
    display: none;
  }
  .header-actions .admin-link,
  .header-actions .logout .admin-link {
    display: inline-flex;
    min-height: 34px;
    padding: 0 10px;
    font-size: .8rem;
    border-radius: 999px;
  }
  .sub-hero {
    min-height: 236px;
  }
  .sub-hero-inner {
    min-height: 236px;
    padding-bottom: 28px;
  }
  .sub-hero-breadcrumb {
    font-size: .73rem;
    margin-bottom: 10px;
  }
  .sub-hero-title {
    font-size: 2rem;
  }
  .gw-sub-surface {
    width: calc(100% - 24px);
    margin-top: 0;
    border-radius: 0;
  }
  .page-content-surface,
  .board-content-surface {
    width: calc(100% - 24px);
  }
  .page-sub .board-content-surface {
    margin-top: 16px;
  }
  .ft-quick-container {
    --ft-quick-fab-size: 40px;
    --ft-quick-fab-icon-size: 16px;
    right: 12px;
    bottom: 12px;
  }
}

/* 2026 Auth + MyPage layout refinements */
.auth-card-register {
  width: min(980px, 100%);
  grid-template-columns: 1fr;
}

.auth-register-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.auth-brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d7e1f0;
  padding: 5px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-form .auth-field input,
.auth-form input,
.auth-form select,
.auth-form textarea {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #ccd9ec;
  background: #f8fbff;
  padding: 11px 13px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.auth-form .auth-field input:focus,
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: #6f96ea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 87, 245, .12);
}

.auth-register-form {
  margin-top: 18px;
}

.auth-register-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #e7eef8;
}

.auth-register-step-actions,
.auth-register-link-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-register-step-actions .btn,
.auth-register-link-actions .btn {
  min-width: 88px;
}

.auth-step-panel {
  padding: 16px;
  border: 1px solid #e4ecf8;
  border-radius: 14px;
  background: #fcfeff;
}

.auth-phone-row-code input {
  border-radius: 10px;
}

.auth-dealer-join {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #d7e4f6;
}

.auth-dealer-join h4 {
  margin: 0 0 8px;
  font-size: .95rem;
  color: #2f4f80;
}

#auth-dealer-extra {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

#auth-business-docs {
  margin-top: 4px;
  display: grid;
  gap: 8px;
}


.mypage-shell-app {
  width: min(1080px, calc(100% - 24px));
  gap: 14px;
}

.mypage-overview-card {
  border: 1px solid #e6eaf0;
  border-radius: 18px;
  background: #fff;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.mypage-overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mypage-overview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dfe8f6;
  background: #fff;
  color: #597291;
  font-size: .84rem;
}

.mypage-exp-card {
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #fbfcff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.mypage-exp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mypage-exp-head strong {
  color: #1f2939;
  font-size: .92rem;
}

.mypage-exp-head span {
  color: #6f38d8;
  font-weight: 800;
  font-size: .86rem;
}

.mypage-exp-track {
  height: 10px;
  border-radius: 999px;
  background: #e9edf3;
  overflow: hidden;
}

.mypage-exp-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8e57f7 0%, #5f8fff 100%);
}

.mypage-exp-card p {
  margin: 0;
  color: #6f7888;
  font-size: .82rem;
}

.mypage-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mypage-overview-stats article {
  border: 1px solid #dce7f6;
  background: #fff;
  border-radius: 12px;
  padding: 11px;
  display: grid;
  gap: 2px;
}

.mypage-overview-stats small {
  color: #7b91ad;
  font-size: .76rem;
}

.mypage-overview-stats strong {
  color: #1f3b66;
  font-size: 1.02rem;
}

.mypage-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mypage-shortcut {
  border: 1px solid #dde7f4;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  min-height: 86px;
  text-decoration: none;
  display: grid;
  gap: 4px;
  align-content: center;
}

.mypage-shortcut strong {
  color: #1f3862;
  font-size: .95rem;
}

.mypage-shortcut span {
  color: #6e84a3;
  font-size: .82rem;
}

.mypage-shortcut:hover {
  border-color: #c8d8f1;
  background: #f8fbff;
}

.mypage-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 12px;
}

.mypage-side-stack {
  display: grid;
  gap: 12px;
}

.mypage-links-card {
  border: 1px solid #dce6f2;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.mypage-links-card a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 0 14px;
  border-bottom: 1px solid #ebf0f8;
}

.mypage-links-card a:last-child {
  border-bottom: 0;
}

.mypage-links-card span {
  color: #415b7f;
  font-weight: 600;
}

.mypage-links-card a:hover {
  background: #f7fbff;
}

.mypage-links-card strong {
  color: #1f62e8;
  font-size: .86rem;
}

.mypage-status-summary {
  border: 1px solid #dce6f3;
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.mypage-status-summary h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #2a446a;
}

.mypage-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border-bottom: 1px solid #ebf1f9;
  color: #4f6686;
}

.mypage-status-row:last-child {
  border-bottom: 0;
}

.mypage-status-row strong {
  color: #1e4ea2;
}

.mypage-status.status-received {
  color: #2458a7;
  background: #eef4ff;
  border-color: #c9d9f4;
}

.mypage-status.status-in_progress {
  color: #7f5a16;
  background: #fff8e9;
  border-color: #f2ddb1;
}

.mypage-status.status-completed {
  color: #176940;
  background: #edfbf3;
  border-color: #bee7cd;
}

.mypage-status.status-rejected {
  color: #8f2c2c;
  background: #fff3f3;
  border-color: #efc3c3;
}

.mypage-request-history ul li {
  align-items: center;
}

@media (max-width: 960px) {
  .mypage-overview-stats,
  .mypage-shortcuts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mypage-workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  :root {
    --app-header-height: 76px;
  }

  .header-inner {
    height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    justify-content: normal;
  }

  .menu-toggle {
    display: inline-flex !important;
    margin-left: 0;
    order: 0;
    justify-self: end;
  }

  .main-nav {
    position: fixed !important;
    top: calc(var(--app-safe-top) + var(--app-header-height));
    right: 0;
    bottom: 0;
    left: auto;
    flex: none;
    width: min(360px, 88vw);
    max-width: 100%;
    padding: 12px;
    border-radius: 0;
    border: 0;
    border-left: 1px solid #dce6f3;
    background: #fff;
    box-shadow: -12px 0 28px rgba(10, 24, 46, .18);
    transform: translateX(105%) !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    z-index: 130;
  }

  .main-nav.is-open {
    transform: translateX(0) !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav .menu-level {
    width: 100%;
  }

  .main-nav .menu-item {
    width: 100%;
  }

  .main-nav .menu-item > a {
    display: block;
    width: 100%;
    padding: 10px 6px;
  }

  .main-nav .menu-level-2,
  .main-nav .menu-level-3,
  .main-nav .menu-level-4 {
    display: none !important;
  }

  .menu-backdrop {
    top: calc(var(--app-safe-top) + var(--app-header-height));
    z-index: 125;
  }

  .header-actions {
    display: inline-flex !important;
    gap: 6px;
    justify-self: start;
    margin-left: 4px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .header-actions .header-cta,
  .header-actions .notify-center {
    display: none !important;
  }

  .header-actions .admin-link,
  .header-actions .logout .admin-link {
    display: inline-flex;
    min-height: 34px;
    padding: 0 10px;
    font-size: .8rem;
    border-radius: 999px;
  }

  .notify-panel {
    position: fixed;
    top: calc(var(--app-overlay-top) + 8px);
    right: 10px;
    left: 10px;
    width: auto;
    max-height: min(72vh, calc(100vh - var(--app-overlay-top) - 18px));
    z-index: 210;
  }
}

@media (min-width: 1025px) {
  .menu-toggle {
    display: none !important;
  }

  .menu-backdrop {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .auth-register-wrap {
    max-width: 100%;
  }

  .auth-register-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-register-step-actions,
  .auth-register-link-actions {
    width: 100%;
  }

  .auth-register-step-actions .btn,
  .auth-register-link-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .auth-step-panel {
    padding: 14px;
  }

  .auth-brand-logo {
    width: 38px;
    height: 38px;
  }

  .mypage-shell-app {
    width: calc(100% - 14px);
  }

  .mypage-overview-stats,
  .mypage-shortcuts-grid {
    grid-template-columns: 1fr;
  }

  .mypage-links-card a {
    min-height: 50px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    z-index: 44;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .12);
  }

  .main-nav {
    width: min(360px, 86vw) !important;
    height: 100dvh;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 56px 14px 26px !important;
    border-left: 1px solid rgba(255, 255, 255, .16);
    border-radius: 0;
    background: linear-gradient(180deg, #0a1630 0%, #0c1b39 58%, #0c1830 100%);
    box-shadow: -16px 0 40px rgba(2, 7, 20, .46);
    transform: translateX(105%) !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0) !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav .menu-level {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
  }

  .main-nav .menu-item {
    width: 100%;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .main-nav .menu-item > a {
    display: block;
    width: 100%;
    padding: 12px 42px 12px 10px;
    border-radius: 10px;
    color: rgba(243, 248, 255, .96);
    font-size: .95rem;
    font-weight: 600;
  }

  .main-nav .menu-item > a:hover {
    background: rgba(255, 255, 255, .1);
  }

  .main-nav .menu-item-toggle {
    position: absolute;
    top: 8px;
    right: 2px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, .84);
    cursor: pointer;
  }

  .main-nav .menu-item-toggle::before {
    content: '⌄';
    font-size: 14px;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
  }

  .main-nav .menu-item.is-open > .menu-item-toggle::before {
    content: '⌃';
  }

  .main-nav .menu-level-2,
  .main-nav .menu-level-3,
  .main-nav .menu-level-4 {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 0 0 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    display: block !important;
    max-height: 0;
    overflow: hidden;
    opacity: .98;
    transition: max-height .25s ease;
  }

  .main-nav .menu-item.is-open > .menu-level-2,
  .main-nav .menu-item.is-open > .menu-level-3,
  .main-nav .menu-item.is-open > .menu-level-4 {
    max-height: 520px;
    padding-bottom: 8px !important;
  }

  .main-nav .menu-level-2 .menu-item,
  .main-nav .menu-level-3 .menu-item,
  .main-nav .menu-level-4 .menu-item {
    border-bottom: 0;
  }

  .main-nav .menu-level-2 .menu-item > a,
  .main-nav .menu-level-3 .menu-item > a,
  .main-nav .menu-level-4 .menu-item > a {
    padding: 9px 36px 9px 10px;
    font-size: .88rem;
    color: rgba(220, 232, 250, .9);
  }

  .header-actions {
    display: none !important;
  }

  .main-nav.is-open + .header-actions {
    display: inline-flex !important;
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 43;
    gap: 6px;
    background: rgba(6, 14, 30, .82);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 5px;
  }

  .main-nav.is-open + .header-actions .notify-center,
  .main-nav.is-open + .header-actions .header-cta {
    display: none !important;
  }

  .main-nav.is-open + .header-actions .admin-link,
  .main-nav.is-open + .header-actions .logout .admin-link {
    display: inline-flex;
    min-height: 34px;
    padding: 0 11px;
    font-size: .8rem;
    border-radius: 999px;
  }
}

@media (max-width: 430px) {
  .main-nav {
    padding: calc(50px + env(safe-area-inset-top)) 12px 20px !important;
  }
}

/* 2026 final visual finish */
.site-header {
  box-shadow: 0 12px 28px rgba(7, 17, 36, .26);
}

.site-header .admin-link,
.site-header .header-cta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-card-register {
  border-radius: 20px;
}

.auth-stepper li {
  min-height: 44px;
}

.auth-stepper li strong {
  font-size: .86rem;
}

.auth-register-actions {
  gap: 12px;
}

.auth-register-step-actions .btn,
.auth-register-link-actions .btn {
  min-height: 44px;
  padding-left: 16px;
  padding-right: 16px;
}

.mypage-shell-app {
  margin-top: 18px;
  margin-bottom: 36px;
}

.mypage-overview-card,
.mypage-request-box,
.mypage-request-history,
.mypage-status-summary,
.mypage-links-card {
  box-shadow: 0 10px 26px rgba(18, 45, 95, .06);
}

.mypage-overview-card {
  padding: 20px;
}

.mypage-user h1 {
  letter-spacing: -0.01em;
}

.mypage-shortcut {
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mypage-shortcut:hover {
  transform: translateY(-1px);
}

.mypage-request-form .btn {
  min-height: 46px;
}

.mypage-request-form .btn[disabled] {
  opacity: .7;
  cursor: not-allowed;
}

.comment-form .btn[disabled],
.contact-form .btn[disabled],
.home-inquiry-form .gw-main-btn01[disabled] {
  opacity: .7;
  cursor: not-allowed;
  pointer-events: none;
}

.board-reaction-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.board-reaction-row .btn.is-active {
  border-color: #c9b6ff;
  background: #f5efff;
  color: #5b2fc8;
}

.home-inquiry-form .gw-main-btn01.is-loading {
  filter: saturate(.85);
}

.mypage-request-history li {
  align-items: center;
}

.mypage-request-history li > div {
  min-width: 0;
}

.mypage-request-history strong {
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.mypage-bottom-nav {
  position: static;
  border: 1px solid #dce6f2;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.mypage-bottom-nav a {
  min-height: 50px;
}

@media (max-width: 980px) {
  .header-inner {
    gap: 10px;
  }

  .brand-logo {
    height: 40px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .auth-stepper li {
    min-height: 42px;
  }

  .auth-register-step-actions,
  .auth-register-link-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .auth-register-link-actions {
    grid-template-columns: 1fr;
  }

  .mypage-overview-card {
    padding: 16px;
  }

  .mypage-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    z-index: 55;
  }

  .mypage-shell-app {
    margin-bottom: 92px;
  }
}

/* 2026 layout refinement pass */
section[id] {
  scroll-margin-top: 96px;
}

img,
video,
iframe {
  max-width: 100%;
}

.container,
.gw-sec-container,
.page-content-surface,
.board-content-surface {
  width: min(1180px, calc(100% - 40px));
}

.gw-sec {
  padding: 88px 0;
}

.board-content-surface,
.page-content-surface {
  margin-top: 24px;
}

.board-toolbar {
  padding: 14px;
}

.board-toolbar-actions form {
  margin: 0;
}

.board-toolbar-actions .btn,
.board-toolbar-actions .board-write-btn {
  min-height: 40px;
}

.board-action-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.board-form-submit-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.board-write-page-toolbar {
  margin-bottom: 12px;
}

.board-list-cards,
.post-card,
.post-view-card,
.board-write-surface .contact-form,
.board-view-surface .post-view-card {
  overflow-wrap: anywhere;
}

.home-inquiry-form {
  display: grid;
  gap: 10px;
}

.home-inquiry-form .gw-input-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-inquiry-form .gw-input-list {
  flex: 1 1 340px;
}

.home-inquiry-form .gw-input,
.home-inquiry-form textarea {
  min-height: 44px;
}

.home-inquiry-form .gw-textarea-item textarea {
  min-height: 144px;
}

.home-inquiry-form .gw-btn-container {
  margin-top: 6px;
}

.home-inquiry-form .gw-main-btn01 {
  min-width: 180px;
}

.mypage-workspace-grid {
  align-items: start;
}

.mypage-request-box,
.mypage-request-history,
.mypage-links-card,
.mypage-status-summary {
  border-radius: 16px;
}

@media (max-width: 1200px) {
  .container,
  .gw-sec-container,
  .page-content-surface,
  .board-content-surface {
    width: calc(100% - 32px);
  }

  .gw-sec {
    padding: 76px 0;
  }
}

@media (max-width: 860px) {
  section[id] {
    scroll-margin-top: 82px;
  }

  .container,
  .gw-sec-container,
  .page-content-surface,
  .board-content-surface {
    width: calc(100% - 24px);
  }

  .gw-sec {
    padding: 62px 0;
  }

  .board-toolbar {
    gap: 10px;
  }

  .board-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .home-inquiry-form .gw-input-list {
    flex-basis: 100%;
  }

  .home-inquiry-form .gw-main-btn01 {
    width: 100%;
  }

  .mypage-overview-meta span {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .board-toolbar-actions {
    justify-content: stretch;
  }

  .board-toolbar-actions .btn,
  .board-toolbar-actions .board-write-btn {
    width: 100%;
  }
}

/* 2026 responsive stabilization pass */
body {
  overflow-x: hidden;
}

.sub-hero-breadcrumb,
.sub-hero-title,
.sub-hero-sub,
.board-title,
.post-link,
.post-view-head h2,
.page-body,
.mypage-request-history strong,
.mypage-request-history p,
.gw-sec-title,
.gw-main-visual-text02,
.gw-main-visual-text03 {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.page-body img,
.page-body table,
.post-view-body img,
.post-view-body table {
  max-width: 100%;
}

.page-body table,
.post-view-body table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}

.header-actions {
  flex-wrap: nowrap;
  row-gap: 0;
}

.header-actions .admin-link,
.header-actions .header-cta {
  white-space: nowrap;
}

.board-list-table {
  overflow-x: auto;
}

.board-list-table table {
  min-width: 720px;
}

.board-write-surface,
.board-write-surface .contact-form {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.board-write-surface .contact-form > * {
  max-width: 100%;
  min-width: 0;
}

.board-write-surface .contact-form iframe,
.board-write-surface .contact-form .tox,
.board-write-surface .contact-form .tox-tinymce,
.board-write-surface .contact-form .ck-editor,
.board-write-surface .contact-form .toastui-editor-defaultUI,
.board-write-surface .contact-form .se2_input_area,
.board-write-surface .contact-form .se2_iframe {
  max-width: 100% !important;
}

.board-write-surface .contact-form .tox,
.board-write-surface .contact-form .tox-tinymce,
.board-write-surface .contact-form .ck-editor {
  width: 100% !important;
}

.board-write-surface .upload-dropzone,
.board-write-surface .upload-file-list li {
  overflow-wrap: anywhere;
}

.post-view-card,
.board-write-surface .contact-form,
.page-surface,
.mypage-overview-card,
.mypage-request-box,
.mypage-request-history {
  box-sizing: border-box;
}

.gw-input-list .gw-input,
.gw-input-list textarea,
.contact-form input,
.contact-form textarea,
.auth-form input,
.auth-form textarea,
.auth-form select {
  min-height: 44px;
}

@media (max-width: 1140px) {
  .header-inner {
    gap: 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .main-nav {
    padding: 6px 10px;
    min-width: 0;
  }

  .main-nav .menu-level {
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav .menu-level::-webkit-scrollbar {
    display: none;
  }

  .main-nav .menu-item > a {
    padding: 8px 10px;
    font-size: .89rem;
    white-space: nowrap;
  }

  .gw-main-visual-text-con,
  .hero-content {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 980px) {
  .header-actions {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .sub-hero-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .sub-hero-breadcrumb {
    display: block;
    line-height: 1.45;
  }

  .sub-hero-breadcrumb span {
    display: inline-block;
  }

  .board-toolbar {
    padding: 12px;
  }

  .board-toolbar-main,
  .board-toolbar-actions {
    width: 100%;
  }

  .board-toolbar-actions {
    justify-content: flex-end;
  }

  .gw-main-visual-text-con,
  .hero-content {
    padding-left: 28px;
    padding-right: 28px;
  }

  .gw-main-visual-text02 {
    font-size: clamp(1.7rem, 5.6vw, 2.5rem);
  }

  .page-surface {
    padding: 20px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 72px;
  }

  .brand-text {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sub-hero {
    min-height: 220px;
  }

  .sub-hero-inner {
    min-height: 220px;
  }

  .sub-hero-title {
    font-size: clamp(1.5rem, 6vw, 1.95rem);
  }

  .page-surface,
  .post-view-card,
  .board-write-surface .contact-form {
    border-radius: 14px;
    padding: 14px;
  }

  .contact-form > div[style*="justify-content:flex-end"] {
    flex-direction: column;
    align-items: stretch !important;
  }

  .contact-form > div[style*="justify-content:flex-end"] .btn {
    width: 100%;
  }

  .board-form-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .board-form-submit-row .btn,
  .board-action-group .btn,
  .board-action-group .board-write-btn {
    width: 100%;
  }

  .board-list-table table {
    min-width: 640px;
  }

  .gw-main-visual,
  #gw-theme-main-visual {
    border-radius: 16px;
    margin-top: 14px;
  }

  .gw-main-visual-text-con,
  .hero-content {
    max-width: none;
    padding: 42px 20px;
  }

  .gw-slide-btn-container,
  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .gw-slide-btn-container .gw-btn01,
  .hero-actions .btn,
  .cta-actions .btn,
  .home-inquiry-form .gw-main-btn01 {
    width: 100%;
  }

  .gw-quick-con,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ft_info p {
    display: grid;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .toast-root {
    top: 74px;
    right: 8px;
    width: calc(100% - 16px);
  }

  .board-toolbar-actions .btn,
  .board-toolbar-actions .board-write-btn,
  .comment-actions .btn,
  .auth-actions .btn,
  .mypage-request-form .btn {
    width: 100%;
  }

  .board-list-table table {
    min-width: 560px;
  }

  .sub-hero-breadcrumb {
    font-size: .72rem;
  }

  .sub-hero-sub {
    font-size: .86rem;
  }

  .page-surface {
    margin-top: 18px;
    padding: 12px;
  }

  .auth-shell {
    width: calc(100% - 16px);
    padding-top: 12px;
    padding-bottom: 20px;
  }
}

body.is-modal-open {
  overflow: hidden;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  -webkit-tap-highlight-color: transparent;
}

.mypage-request-history ul {
  display: grid;
  gap: 10px;
}

.mypage-request-history li {
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dfe8f5;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.mypage-history-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mypage-history-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2a5cb8;
  border: 1px solid #cfdef6;
  font-size: .74rem;
  font-weight: 700;
}

.mypage-history-date {
  color: #788cab;
  font-size: .78rem;
}

.mypage-history-item .mypage-status {
  margin-left: auto;
}

.mypage-history-card-main {
  min-width: 0;
  flex: 1 1 auto;
}

.mypage-history-preview {
  margin-top: 6px;
  color: #5f6f85;
}

.mypage-history-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mypage-history-actions .btn {
  min-height: 38px;
  border-radius: 10px;
}

.mypage-history-actions .btn.btn-light {
  border-color: #d4e0f1;
  background: #f8fbff;
}

.mypage-purchased-themes {
  border: 1px solid #dce6f3;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(18, 45, 95, .06);
}

.mypage-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mypage-block-head h2 {
  margin: 0;
  color: #213b63;
  font-size: 1.02rem;
}

.mypage-block-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d8e3f3;
  color: #516b8e;
  font-size: .8rem;
}

.mypage-theme-applied-current {
  margin: 0 0 10px;
  font-size: .83rem;
  color: #405d84;
}

.mypage-theme-applied-current strong {
  color: #1c3f73;
}

.mypage-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mypage-theme-card {
  border: 1px solid #dce7f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.mypage-owned-theme-card {
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: stretch;
  gap: 10px;
}

.mypage-owned-theme-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mypage-owned-theme-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mypage-owned-theme-thumb {
  border-radius: 12px;
  border: 1px solid #dce7f4;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.mypage-owned-theme-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mypage-theme-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mypage-theme-top strong {
  color: #223f67;
  font-size: .95rem;
}

.mypage-theme-slug {
  margin: 0;
  color: #6f84a3;
  font-size: .78rem;
}

.mypage-theme-meta {
  display: grid;
  gap: 4px;
}

.mypage-theme-meta span {
  color: #425c80;
  font-size: .8rem;
}

.mypage-theme-action-form {
  display: flex;
  justify-content: flex-end;
}

.mypage-theme-action-form .btn {
  min-height: 36px;
}

.mypage-social-panel {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.mypage-social-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mypage-social-search input {
  border: 1px solid #dce7f4;
  border-radius: 12px;
  min-height: 42px;
  padding: 0 12px;
  font-size: .92rem;
  outline: none;
}

.mypage-social-search input:focus {
  border-color: #8fb0e9;
  box-shadow: 0 0 0 3px rgba(143, 176, 233, .25);
}

.mypage-social-results {
  border: 1px solid #dce7f4;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

.mypage-social-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mypage-social-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.mypage-social-card-head {
  display: grid;
  gap: 2px;
}

.mypage-social-card-head strong {
  color: #223f67;
}

.mypage-social-card-head small {
  color: #6f84a3;
  font-weight: 700;
}

.mypage-social-subhead {
  margin: 6px 0 4px;
}

.mypage-social-subhead strong {
  color: #4a6488;
  font-size: .82rem;
}

.mypage-social-list,
.mypage-social-requests {
  display: grid;
  gap: 8px;
}

.mypage-social-item {
  border: 1px solid #e2e9f4;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.mypage-social-item-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mypage-social-item-main strong {
  color: #223f67;
  font-size: .92rem;
}

.mypage-social-item-main small {
  color: #6f84a3;
  font-size: .78rem;
  font-weight: 700;
}

.mypage-social-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.mypage-social-dot.is-online {
  background: #1f53ab;
}

.mypage-social-dot.is-offline {
  background: #6f84a3;
}

.mypage-social-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mypage-social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .mypage-social-grid-2 {
    grid-template-columns: 1fr;
  }

  .mypage-social-search {
    grid-template-columns: 1fr;
  }

  .mypage-social-search .btn {
    width: 100%;
  }
}

.theme-shop-shell {
  display: grid;
  gap: 14px;
}

.theme-shop-hero {
  border: 1px solid #d8e5f8;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 58%, #ffffff 100%);
  box-shadow: 0 14px 36px rgba(18, 47, 97, .08);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}

.theme-shop-hero-main {
  display: grid;
  gap: 8px;
}

.theme-shop-hero-main h1 {
  margin: 0;
  color: #1d3f72;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-shop-hero-main > p {
  margin: 0;
  color: #4d6587;
  line-height: 1.55;
}

.theme-shop-notice {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #244f91;
  font-size: .86rem;
  background: #eef4ff;
  border: 1px solid #d3e0f6;
  border-radius: 999px;
  padding: 7px 11px;
}

.theme-shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.theme-shop-point,
.theme-shop-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}

.theme-shop-point {
  background: #133c74;
  color: #fff;
  border: 1px solid #0f3262;
}

.theme-shop-trust {
  background: #fff;
  color: #245486;
  border: 1px solid #d6e2f2;
}

.theme-shop-cart-trigger {
  gap: 6px;
}

.theme-shop-cart-trigger em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #1d4f92;
  color: #fff;
  font-style: normal;
  font-size: .74rem;
  padding: 0 6px;
}

.theme-shop-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.theme-shop-summary article {
  border: 1px solid #d9e5f7;
  border-radius: 14px;
  background: #fff;
  min-height: 86px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
}

.theme-shop-summary small {
  color: #627998;
  font-size: .75rem;
  font-weight: 600;
}

.theme-shop-summary strong {
  color: #1b4174;
  font-size: 1.2rem;
  font-weight: 800;
}

.theme-shop-toolbar {
  border: 1px solid #dbe6f6;
  border-radius: 14px;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 1.8fr minmax(140px, .6fr);
  gap: 8px;
  align-items: center;
}

.theme-shop-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d4e2f5;
  border-radius: 11px;
  background: #fff;
  min-height: 46px;
  padding: 0 12px;
  color: #50709c;
}

.theme-shop-control-label {
  color: #4f6890;
  font-size: .79rem;
  font-weight: 700;
  white-space: nowrap;
}

.theme-shop-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #223d62;
}

.theme-shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.theme-chip {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid #d1dff2;
  background: #fff;
  color: #3a5f92;
  padding: 0 12px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-chip:hover {
  border-color: #acc5e8;
  background: #f2f7ff;
}

.theme-chip.is-active {
  background: #1f4f92;
  border-color: #1f4f92;
  color: #fff;
}

.theme-shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-shop-sort select {
  flex: 1;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #cfddf2;
  background: #fff;
  color: #2a4e7f;
}

.theme-shop-search:focus-within,
.theme-shop-sort select:focus,
.theme-chip:focus-visible,
.theme-shop-actions .btn:focus-visible,
.theme-shop-detail-box summary:focus-visible,
.theme-shop-checkout-box summary:focus-visible {
  outline: 0;
  border-color: #7ea6e8;
  box-shadow: 0 0 0 3px rgba(31, 111, 229, .16);
}

.theme-shop-filter-result {
  margin: 8px 2px 0;
  color: #607a9c;
  font-size: .82rem;
}

.theme-shop-grid-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-shop-card {
  border: 1px solid #dce7f4;
  border-radius: 16px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(17, 42, 86, .06);
  transition: transform .16s ease, box-shadow .2s ease;
}

.theme-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(14, 39, 82, .12);
}

.theme-shop-card.is-selected {
  border-color: #8fb0de;
  box-shadow: 0 0 0 3px rgba(46, 112, 204, .12), 0 16px 30px rgba(14, 39, 82, .12);
}

.theme-shop-cover {
  min-height: 116px;
  padding: 12px;
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2457a8 0%, #1f6fe5 55%, #5d8de9 100%);
}

.theme-shop-cover.has-image {
  background: #0f2b52;
}

.theme-shop-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
}

.theme-shop-cover.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 28, 57, .12), rgba(10, 28, 57, .72));
}

.theme-shop-cover > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: rgba(255,255,255,.18);
}

.theme-shop-badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.theme-shop-badges em {
  margin: 0;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: .73rem;
  font-weight: 700;
}

.theme-shop-badges .badge-owned { background: #e8fff3; color: #1c7a4f; }
.theme-shop-badges .badge-affordable { background: #fff2cf; color: #8a5b00; }
.theme-shop-badges .badge-cheap { background: #efeaff; color: #5a3ea6; }

.theme-shop-product-top,
.theme-shop-card .mypage-theme-slug,
.theme-shop-card .mypage-history-preview,
.theme-shop-card .theme-shop-actions {
  padding-left: 12px;
  padding-right: 12px;
}

.theme-shop-product-top {
  margin-top: 10px;
}

.theme-shop-product-top strong {
  color: #1f3f6a;
}

.theme-shop-price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  color: #426088;
  font-size: .76rem;
}

.theme-shop-price b {
  color: #123b73;
  font-size: 1rem;
}

.theme-shop-card .mypage-theme-slug {
  margin: 0;
  color: #5f789a;
  font-size: .78rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.theme-shop-card .mypage-history-preview {
  margin: 0;
  color: #536a89;
  font-size: .84rem;
  line-height: 1.5;
}

.theme-shop-actions {
  margin-top: 2px;
  padding-bottom: 12px;
  display: grid;
  gap: 8px;
}

.theme-shop-actions .btn {
  min-height: 40px;
  border-radius: 10px;
}

.theme-shop-detail {
  margin-top: 16px;
  border: 1px solid #d9e5f5;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 14px;
}

.theme-shop-detail-head {
  display: grid;
  gap: 6px;
}

.theme-shop-detail-path {
  margin: 0;
  color: #8da2be;
  font-size: .78rem;
}

.theme-shop-detail-head h2 {
  margin: 0;
  color: #172f53;
  font-size: clamp(1.05rem, 1.5vw, 1.42rem);
  letter-spacing: -0.01em;
}

.theme-shop-detail-rating {
  margin: 0;
  color: #6b7f99;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.theme-shop-detail-rating i {
  color: #f5b400;
}

.theme-shop-detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.08fr);
  gap: 14px;
}

.theme-shop-detail-preview-wrap {
  display: grid;
  gap: 8px;
}

.theme-shop-detail-preview {
  min-height: 260px;
  border: 1px solid #dce8f6;
  border-radius: 14px;
  background: #f7faff;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #6f86a5;
  font-size: .86rem;
  text-align: center;
  padding: 10px;
}

.theme-shop-detail-preview img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.theme-shop-detail-guide {
  min-height: 40px;
  border-radius: 10px;
}

.theme-shop-detail-summary {
  display: grid;
  gap: 10px;
}

.theme-shop-detail-specs,
.theme-shop-detail-order {
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  background: #fbfdff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.theme-shop-detail-specs h3,
.theme-shop-detail-order h3 {
  margin: 0;
  color: #23497c;
  font-size: .93rem;
}

.theme-shop-summary-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  overflow: hidden;
}

.theme-shop-summary-tabs button {
  border: 0;
  border-right: 1px solid #dbe6f4;
  background: #f8fbff;
  color: #58779f;
  min-height: 40px;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-shop-summary-tabs button:last-child {
  border-right: 0;
}

.theme-shop-summary-tabs button.is-active {
  background: #fff;
  color: #1d4b89;
  box-shadow: inset 0 -2px 0 #2866c4;
}

.theme-shop-detail-specs[hidden],
.theme-shop-detail-order[hidden] {
  display: none !important;
}

.theme-shop-detail-specs dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.theme-shop-detail-specs dl > div {
  border: 1px solid #e0e9f6;
  border-radius: 10px;
  background: #fff;
  min-height: 60px;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 4px;
}

.theme-shop-detail-specs dt {
  margin: 0;
  color: #7690b2;
  font-size: .75rem;
}

.theme-shop-detail-specs dd {
  margin: 0;
  color: #284972;
  font-size: .82rem;
  word-break: break-word;
}

.theme-shop-order-option {
  border: 1px solid #d8e5f6;
  border-radius: 11px;
  background: #fff;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.theme-shop-order-option label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #294a73;
  font-size: .84rem;
  font-weight: 700;
}

.theme-shop-order-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-shop-order-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #d3e1f3;
  border-radius: 8px;
  background: #fff;
  color: #355b8f;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
}

.theme-shop-order-qty strong {
  min-width: 24px;
  text-align: center;
  color: #203f67;
  font-size: .9rem;
}

.theme-shop-total {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #425f87;
  font-size: .86rem;
}

.theme-shop-total strong {
  color: #12407a;
  font-size: 1.16rem;
}

.theme-shop-order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-shop-order-actions .btn {
  min-height: 42px;
  border-radius: 10px;
}

.theme-shop-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.theme-shop-detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  border-radius: 999px;
  border: 1px solid #d8e4f4;
  background: #f5f9ff;
  color: #5878a1;
  font-size: .78rem;
  padding: 0 10px;
}

.theme-shop-detail-meta-actions {
  display: flex;
  justify-content: flex-end;
}

.theme-shop-detail-meta-actions .btn {
  min-height: 36px;
}

.theme-shop-detail-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  overflow: hidden;
}

.theme-shop-detail-tabs button {
  border: 0;
  border-right: 1px solid #dbe6f4;
  background: #f8fbff;
  color: #58779f;
  min-height: 42px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-shop-detail-tabs button:last-child {
  border-right: 0;
}

.theme-shop-detail-tabs button.is-active {
  background: #fff;
  color: #1d4b89;
  box-shadow: inset 0 -2px 0 #2866c4;
}

.theme-shop-detail-panel {
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.theme-shop-detail-panel[hidden] {
  display: none !important;
}

.theme-shop-detail-panel h3 {
  margin: 0;
  color: #254a79;
  font-size: .94rem;
}

.theme-shop-detail-panel p {
  margin: 0;
  color: #4f6787;
  font-size: .86rem;
  line-height: 1.65;
}

.theme-shop-info-detail {
  color: #4f6787;
  font-size: .86rem;
  line-height: 1.65;
  white-space: pre-line;
}

.theme-shop-detail-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.theme-shop-empty-note {
  border: 1px dashed #d6e3f6;
  border-radius: 10px;
  background: #f9fbff;
  padding: 12px;
}

.theme-shop-write-form {
  margin-top: 10px;
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #f9fbff;
  padding: 10px;
  display: grid;
  gap: 9px;
}

.theme-shop-write-form label {
  display: grid;
  gap: 6px;
  color: #3e5d84;
  font-size: .8rem;
  font-weight: 700;
}

.theme-shop-write-form input,
.theme-shop-write-form select,
.theme-shop-write-form textarea {
  width: 100%;
  border: 1px solid #ccdaef;
  border-radius: 9px;
  min-height: 38px;
  padding: 8px 10px;
  background: #fff;
  color: #203f65;
}

.theme-shop-write-form textarea {
  min-height: 84px;
  resize: vertical;
}

.theme-shop-write-form input:focus,
.theme-shop-write-form select:focus,
.theme-shop-write-form textarea:focus {
  outline: 0;
  border-color: #86aae3;
  box-shadow: 0 0 0 3px rgba(45, 111, 203, .14);
}

.theme-shop-check-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  color: #4f6687 !important;
  font-weight: 600 !important;
}

.theme-shop-check-inline input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
}

.theme-shop-post-item {
  border: 1px solid #dce7f5;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.theme-shop-post-item + .theme-shop-post-item {
  margin-top: 8px;
}

.theme-shop-cart-list {
  display: grid;
  gap: 8px;
}

.theme-shop-cart-item {
  border: 1px solid #dce7f5;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.theme-shop-cart-item-main {
  display: grid;
  gap: 4px;
}

.theme-shop-cart-item-main strong {
  color: #24486f;
  font-size: .9rem;
}

.theme-shop-cart-item-main p,
.theme-shop-cart-item-main span {
  margin: 0;
  color: #5c7597;
  font-size: .8rem;
}

.theme-shop-cart-item-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.theme-shop-cart-footer {
  margin-top: 8px;
  border-top: 1px solid #dbe6f4;
  padding-top: 10px;
  display: grid;
  gap: 8px;
}

.theme-shop-cart-footer p {
  margin: 0;
  color: #355987;
  font-size: .9rem;
  font-weight: 700;
}

.theme-shop-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.theme-shop-post-top strong {
  color: #24486f;
  font-size: .84rem;
}

.theme-shop-post-top span {
  color: #6a82a0;
  font-size: .76rem;
}

.theme-shop-post-rating {
  margin: 0;
  color: #f0b114 !important;
  font-size: .86rem !important;
  letter-spacing: .02em;
}

.theme-shop-post-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5b7495 !important;
  font-size: .77rem !important;
}

.theme-shop-post-meta em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid #dae6f7;
  padding: 0 8px;
  background: #f7fbff;
}

.theme-shop-post-meta .is-waiting,
.theme-shop-post-meta .is-answered {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-weight: 700;
}

.theme-shop-post-meta .is-waiting {
  background: #fff5de;
  color: #8b6409;
}

.theme-shop-post-meta .is-answered {
  background: #e9f7ee;
  color: #1b6f46;
}

.theme-shop-post-answer {
  border: 1px solid #d8e6f7;
  border-radius: 10px;
  background: #f6faff;
  padding: 8px;
  display: grid;
  gap: 4px;
}

.theme-shop-post-answer strong {
  color: #244b7a;
  font-size: .78rem;
}

.theme-shop-post-answer p {
  margin: 0;
  color: #4c6688;
  font-size: .82rem;
  line-height: 1.6;
}

.theme-shop-license-dialog,
.theme-shop-write-dialog {
  width: min(620px, calc(100% - 24px));
}

.theme-shop-license-body {
  display: grid;
  gap: 10px;
}

.theme-shop-license-body p {
  margin: 0;
  color: #587195;
  font-size: .86rem;
  line-height: 1.7;
}

.theme-shop-mobile-buybar {
  display: none;
}

.theme-shop-detail-box,
.theme-shop-checkout-box {
  border: 1px solid #d9e5f5;
  border-radius: 11px;
  background: #f9fbff;
  overflow: hidden;
}

.theme-shop-detail-box summary,
.theme-shop-checkout-box summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  color: #2f5588;
  font-size: .82rem;
  font-weight: 700;
}

.theme-shop-detail-box summary::-webkit-details-marker,
.theme-shop-checkout-box summary::-webkit-details-marker {
  display: none;
}

.theme-shop-detail-box p {
  margin: 0;
  padding: 0 11px 10px;
}

.theme-shop-checkout-form {
  display: grid;
  gap: 8px;
  padding: 2px 11px 11px;
}

.theme-shop-purchase-dialog {
  width: min(840px, calc(100% - 24px));
}

.theme-shop-purchase-body {
  gap: 12px;
}

.theme-shop-stepper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.theme-shop-step {
  border: 1px solid #d6e2f4;
  border-radius: 12px;
  background: #fff;
  color: #5e7595;
  font-size: .84rem;
  font-weight: 700;
  text-align: center;
  padding: 9px 10px;
  cursor: default;
}

.theme-shop-step.is-active {
  border-color: #8eb0df;
  background: #eef5ff;
  color: #1e4d8b;
}

.theme-shop-purchase-summary,
.theme-shop-purchase-fields {
  border: 1px solid #dbe6f4;
  border-radius: 14px;
  background: #fbfdff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.theme-shop-purchase-summary h4,
.theme-shop-purchase-fields h4 {
  margin: 0;
  color: #23497c;
  font-size: .94rem;
}

.theme-shop-purchase-summary-card {
  border: 1px solid #d7e4f5;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.theme-shop-purchase-name {
  margin: 0;
  color: #1f3f69;
  font-size: 1rem;
  font-weight: 800;
}

.theme-shop-purchase-slug {
  margin: 0;
  color: #607999;
  font-size: .82rem;
}

.theme-shop-purchase-price {
  margin: 0;
  color: #14417a;
  font-size: 1.08rem;
  font-weight: 800;
}

.theme-shop-purchase-description {
  margin: 0;
  color: #526985;
  font-size: .85rem;
  line-height: 1.55;
}

.theme-shop-purchase-form {
  display: grid;
  gap: 12px;
}

.theme-shop-checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.theme-shop-checkout-form input,
.theme-shop-checkout-form textarea,
.theme-shop-purchase-form input,
.theme-shop-purchase-form textarea,
.theme-shop-purchase-form select {
  width: 100%;
  border: 1px solid #ccdaef;
  border-radius: 9px;
  min-height: 38px;
  padding: 8px 10px;
  background: #fff;
  color: #203f65;
}

.theme-shop-checkout-form textarea {
  min-height: 70px;
  resize: vertical;
}

.theme-shop-purchase-form textarea {
  min-height: 84px;
  resize: vertical;
}

.theme-shop-checkout-form input:focus,
.theme-shop-checkout-form textarea:focus,
.theme-shop-purchase-form input:focus,
.theme-shop-purchase-form textarea:focus,
.theme-shop-purchase-form select:focus {
  outline: 0;
  border-color: #86aae3;
  box-shadow: 0 0 0 3px rgba(45, 111, 203, .14);
}

.theme-shop-agree {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: #4c6281;
  font-size: .81rem;
}

@media (max-width: 1180px) {
  .theme-shop-grid-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .theme-shop-hero {
    grid-template-columns: 1fr;
  }

  .theme-shop-toolbar {
    grid-template-columns: 1fr;
  }

  .theme-shop-sort {
    align-items: center;
  }
}

@media (max-width: 720px) {
  .theme-shop-grid-masonry,
  .theme-shop-checkout-grid {
    grid-template-columns: 1fr;
  }

  .theme-shop-summary {
    grid-template-columns: 1fr 1fr;
  }

  .theme-shop-detail-grid {
    grid-template-columns: 1fr;
  }

  .theme-shop-detail-specs dl {
    grid-template-columns: 1fr;
  }

  .theme-shop-toolbar {
    padding: 10px 8px;
  }

  .theme-shop-sort {
    gap: 8px;
  }

  .theme-shop-control-label {
    min-width: 36px;
    text-align: left;
  }

  .theme-shop-step {
    font-size: .79rem;
    padding: 8px 8px;
  }

  .theme-shop-detail-tabs {
    grid-template-columns: 1fr;
  }

  .theme-shop-summary-tabs {
    grid-template-columns: 1fr;
  }

  .theme-shop-summary-tabs button {
    border-right: 0;
    border-bottom: 1px solid #dbe6f4;
  }

  .theme-shop-summary-tabs button:last-child {
    border-bottom: 0;
  }

  .theme-shop-detail-tabs button {
    border-right: 0;
    border-bottom: 1px solid #dbe6f4;
  }

  .theme-shop-detail-tabs button:last-child {
    border-bottom: 0;
  }

  .theme-shop-detail {
    padding-bottom: 86px;
  }

  .theme-shop-mobile-buybar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    border: 1px solid #d4e2f5;
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgba(16, 38, 77, .16);
    padding: 8px;
  }

  .theme-shop-mobile-buybar-main {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 0;
  }

  .theme-shop-mobile-buybar-main p {
    margin: 0;
    color: #4f6d95;
    font-size: .77rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .theme-shop-mobile-buybar-main strong {
    color: #14427c;
    font-size: .99rem;
    line-height: 1.2;
  }

  .theme-shop-mobile-buybar .btn {
    min-height: 42px;
    border-radius: 10px;
    padding: 0 14px;
    white-space: nowrap;
  }
}

/* Theme shop 2026 polish */
.theme-shop-hero {
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 42%, #eef5ff 100%);
}

.theme-shop-hero-main h1 {
  font-size: clamp(1.32rem, 1.9vw, 1.72rem);
  letter-spacing: -0.02em;
}

.theme-shop-hero-main > p {
  max-width: 760px;
  font-size: .99rem;
  color: #4b6386;
}

.theme-shop-summary article {
  min-height: 94px;
  border-radius: 16px;
}

.theme-shop-toolbar {
  position: sticky;
  top: 68px;
  z-index: 25;
  border-radius: 16px;
  background: rgba(248, 251, 255, .94);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(18, 43, 86, .08);
}

.theme-shop-search-clear {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #eff4fc;
  color: #4a6792;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-shop-search-clear:hover,
.theme-shop-search-clear:focus-visible {
  background: #dfeafb;
  outline: 0;
}

.theme-chip {
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.theme-chip-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ebf2fc;
  color: #33598d;
  font-size: .71rem;
  font-style: normal;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-chip.is-active .theme-chip-count {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.theme-shop-sort {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
}

.theme-shop-reset {
  min-height: 38px;
  border: 1px solid #cfdcf1;
  border-radius: 10px;
  background: #fff;
  color: #3f628f;
  font-size: .8rem;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
}

.theme-shop-reset:hover,
.theme-shop-reset:focus-visible {
  border-color: #9eb9e3;
  background: #f0f6ff;
  outline: 0;
}

.theme-shop-filter-result {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f4f8ff;
  border: 1px solid #d8e5f7;
  color: #3d5f8c;
  font-weight: 600;
}

.theme-shop-grid-masonry {
  gap: 14px;
}

.theme-shop-card {
  border-radius: 18px;
  border: 1px solid #d7e4f5;
}

.theme-shop-cover {
  min-height: 132px;
}

.theme-shop-product-top strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.theme-shop-price b {
  font-size: 1.08rem;
}

.theme-shop-card .mypage-history-preview {
  min-height: 44px;
}

.theme-shop-actions {
  gap: 10px;
}

.theme-shop-detail-box summary,
.theme-shop-checkout-box summary {
  min-height: 42px;
}

.theme-shop-checkout-form {
  gap: 10px;
  padding-bottom: 12px;
}

@media (max-width: 980px) {
  .theme-shop-toolbar {
    top: 62px;
  }
}

@media (max-width: 720px) {
  .theme-shop-toolbar {
    position: static;
    backdrop-filter: none;
    box-shadow: none;
  }

  .theme-shop-sort {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .theme-shop-reset {
    min-width: 66px;
    padding: 0 9px;
  }

  .theme-shop-cover {
    min-height: 122px;
  }

  .theme-shop-purchase-dialog {
    width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 12px;
}

/* App-like behavior on the messages page */
.mypage-shell-app {
  min-height: calc(100vh - 120px);
}

.message-app-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
}

.messages-shell {
  padding-bottom: 64px;
}

.message-mobile-nav {
  display: none;
}

.message-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.message-page-head-title h2 {
  margin: 0;
  color: #213b63;
  font-size: 1.02rem;
}

.message-page-head-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.message-page-head-actions .btn {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 12px;
}

.message-page-head-actions .btn.is-active,
.message-page-head-actions .btn[aria-pressed="true"] {
  border-color: #8fb0de;
  background: #eef5ff;
  color: #1d58ad;
}

.message-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d8e3f3;
  color: #516b8e;
  font-size: .8rem;
}

.message-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dbe6f5;
  background: #f5f8ff;
  color: #4a6287;
  font-size: .78rem;
  font-weight: 700;
}

.message-friends-search {
  margin-bottom: 10px;
}

.message-friends-search input[type="search"] {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #d7e3f3;
  padding: 0 12px;
  background: #fff;
}

.message-self-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #d7e3f3;
  border-radius: 14px;
  text-decoration: none;
  background: #fff;
  color: #223f67;
}

.message-self-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #d7e3f3;
  background: #f8fbff;
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
}

.message-self-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-self-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.message-self-main strong {
  font-size: .95rem;
  color: #17355f;
}

.message-self-main small {
  color: #6a80a0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-self-main small.is-empty {
  opacity: .75;
}

.message-friends-list {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.message-friend-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.message-friend-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d7e3f3;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: #223f67;
}

.message-friend-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d7e3f3;
  background: #f8fbff;
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
}

.message-friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-friend-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.message-friend-main strong {
  font-size: .94rem;
  color: #17355f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-friend-status {
  font-size: .82rem;
  color: #7a8da8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-friend-status.is-empty {
  opacity: .75;
}

.message-fav-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #d7e3f3;
  background: #fff;
  color: #9a5c25;
  cursor: pointer;
}

.message-fav-btn.is-active {
  background: #fff2e7;
  border-color: #f6ddc5;
}

.message-chat-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.message-chat-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d7e3f3;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: #223f67;
  align-items: center;
}

.message-chat-link.is-active {
  border-color: #8fb0de;
  background: #eef5ff;
}

.message-chat-link .message-chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #d7e3f3;
  background: #f8fbff;
}

.message-chat-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.message-chat-main strong {
  font-size: .95rem;
  color: #17355f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-chat-preview {
  font-size: .82rem;
  color: #7a8da8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-chat-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.message-chat-meta time {
  font-size: .78rem;
  color: #7a8da8;
}

.message-unread-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff2e7;
  border: 1px solid #f6ddc5;
  color: #9a5c25;
  font-size: .78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.message-mobile-back {
  display: none;
}

/* Chat profile modal (messages) */
.chat-profile-dialog {
  max-width: 520px;
}

.chat-profile-body {
  border-radius: 16px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .86)), var(--chat-profile-bg, none);
  background-size: cover;
  background-position: center;
}

.chat-profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.chat-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 900;
}

.chat-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-profile-text {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.chat-profile-text strong {
  font-size: 1.1rem;
}

.chat-profile-text p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-profile-dday {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.chat-profile-dday article {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, .06);
  display: grid;
  gap: 6px;
}

.chat-profile-dday small {
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
  letter-spacing: .02em;
}

.chat-profile-dday strong {
  font-size: 1.25rem;
}

.chat-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-profile-actions .btn {
  min-height: 40px;
  border-radius: 12px;
}

.mypage-shell-app [data-message-section="dm"],
.mypage-shell-app [data-message-section="realtime"] {
  min-height: 0;
}

.message-peer-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.message-peer-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d7e3f3;
  border-radius: 12px;
  text-decoration: none;
  color: #223f67;
  background: #f8fbff;
  align-items: center;
}

.message-peer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #d7e3f3;
  background: #fff;
  display: grid;
  place-items: center;
  color: #2a4d86;
  font-weight: 800;
  overflow: hidden;
}

.message-peer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-peer-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.message-peer-link strong {
  font-size: .92rem;
}

.message-peer-link span {
  font-size: .8rem;
  color: #6a80a0;
}

.message-peer-link em {
  font-style: normal;
  justify-self: end;
  font-size: .75rem;
  color: #1d58ad;
  border: 1px solid #cddcf4;
  border-radius: 999px;
  padding: 2px 8px;
}

.message-peer-link.is-active {
  border-color: #8fb0de;
  background: #eef5ff;
}

.message-thread {
  min-height: 320px;
  max-height: 540px;
  overflow-y: auto;
  border: 1px solid #d7e3f3;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-chat-head {
  border: 1px solid #d7e3f3;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.message-chat-peer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.message-chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid #d7e3f3;
  background: #f8fbff;
  display: grid;
  place-items: center;
  color: #2a4d86;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}

.message-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-chat-peer-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.message-chat-peer-text strong {
  font-size: .95rem;
  color: #17355f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-chat-peer-text small {
  color: #6a80a0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-chat-actions {
  display: inline-flex;
  gap: 8px;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.message-row.is-me {
  justify-content: flex-end;
}

.message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #d7e3f3;
  background: #fff;
  display: grid;
  place-items: center;
  color: #2a4d86;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .message-layout {
    grid-template-columns: 1fr;
  }

  .message-peer-list {
    order: 1;
  }

  .message-thread-area {
    order: 2;
  }

  .message-thread {
    max-height: 56vh;
  }

  .messages-shell {
    padding-bottom: 84px;
  }

  .message-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid #e6edf6;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px 10px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .message-mobile-nav a {
    text-decoration: none;
    color: #6a80a0;
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 6px 0;
    border-radius: 12px;
  }

  .message-mobile-nav a i {
    font-size: 1.1rem;
  }

  .message-mobile-nav a span {
    font-size: .75rem;
    font-weight: 800;
  }

  .message-mobile-nav a.is-active {
    background: #f5f8ff;
    color: #1d58ad;
  }

  /* Mobile depth: list -> room */
  [data-message-section="dm"] .message-layout {
    position: relative;
    overflow: hidden;
  }

  [data-message-section="dm"] .message-peer-list,
  [data-message-section="dm"] .message-thread-area {
    transition: transform .22s ease, opacity .22s ease;
    will-change: transform;
  }

  [data-message-section="dm"][data-room-open="0"] .message-thread-area {
    position: absolute;
    inset: 0;
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none;
  }

  [data-message-section="dm"][data-room-open="1"] .message-peer-list {
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    opacity: 0;
    pointer-events: none;
  }

  [data-message-section="dm"][data-room-open="1"] .message-thread-area {
    transform: translateX(0);
  }

  .message-mobile-back {
    display: inline-flex;
    min-width: 40px;
    justify-content: center;
  }
}

/* Messenger-like composer: keep input visible while scrolling messages */
.message-thread-area {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
}

.message-thread-area .message-send-form {
  position: sticky;
  bottom: 0;
  background: #fff;
  border: 1px solid #d7e3f3;
  border-radius: 12px;
  padding: 10px;
}

.message-compose-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.message-file-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #d7e3f3;
  border-radius: 999px;
  background: #f8fbff;
  color: #223f67;
  cursor: pointer;
}

.message-send-form input[type="file"] {
  max-width: 100%;
}

.message-file-meta {
  margin: 6px 0 0;
  font-size: .82rem;
  color: #6a80a0;
}

.message-attachment {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  text-decoration: none;
  color: #1d58ad;
  margin-top: 6px;
}

.message-attachment.image img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #dde7f5;
}

.message-bubble {
  max-width: min(86%, 620px);
  border-radius: 18px;
  padding: 8px 10px;
  display: grid;
  gap: 4px;
  position: relative;
}

.message-bubble.is-new {
  animation: messagePop .32s ease;
}

@keyframes messagePop {
  from {
    transform: translateY(4px);
    opacity: .4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.message-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-bubble time {
  font-size: .72rem;
  color: #6d83a2;
}

.message-bubble.is-me {
  justify-self: end;
  background: #e8f1ff;
  border: 1px solid #c7d9f5;
  border-bottom-right-radius: 8px;
}

.message-bubble.is-peer {
  justify-self: start;
  background: #fff;
  border: 1px solid #dde7f5;
  border-bottom-left-radius: 8px;
}

.message-bubble.is-me::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: 10px;
  width: 0;
  height: 0;
  border-left: 6px solid #c7d9f5;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.message-bubble.is-peer::after {
  content: '';
  position: absolute;
  left: -6px;
  bottom: 10px;
  width: 0;
  height: 0;
  border-right: 6px solid #dde7f5;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.message-start-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.message-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.message-actions-row form {
  margin: 0;
}

.message-send-form textarea {
  min-height: 72px;
}

.message-start-form .ts-wrapper,
.message-start-form .ts-control {
  min-height: 42px;
  border-radius: 10px;
}

.message-start-form .ts-control {
  border-color: #d3dfef;
}

.message-start-form .ts-dropdown {
  border-color: #d3dfef;
  border-radius: 10px;
}

.dealer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dealer-market-head-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.dealer-market-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.dealer-market-status-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dealer-market-tab {
  border: 1px solid #d1dff2;
  background: #fff;
  color: #3d5f92;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: .8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dealer-market-tab span {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #edf3fc;
  color: #436a9f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  padding: 0 5px;
}

.dealer-market-tab.is-active {
  border-color: #1f4f92;
  background: #1f2633;
  color: #fff;
}

.dealer-market-tab.is-active span {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.dealer-market-search-row {
  display: inline-grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 8px;
  width: min(520px, 100%);
}

  .dealer-market-table,
  .dealer-sales-table {
    min-width: 100%;
  }

  .dealer-market-table thead,
  .dealer-sales-table thead {
    display: none;
  }

  .dealer-market-table tbody,
  .dealer-sales-table tbody {
    display: grid;
    gap: 10px;
    padding: 8px;
  }

  .dealer-market-table tr,
  .dealer-sales-table tr {
    display: grid;
    gap: 6px;
    border: 1px solid #dbe6f4;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
  }

  .dealer-market-table td,
  .dealer-sales-table td {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    padding: 0;
    border: 0;
    white-space: normal;
    align-items: start;
  }

  .dealer-market-table td::before,
  .dealer-sales-table td::before {
    content: attr(data-label);
    color: #637a9b;
    font-size: .76rem;
    font-weight: 700;
    padding-top: 2px;
  }

  .dealer-market-table td[data-label="관리"] .btn {
    width: 100%;
  }

  .dealer-market-table td[colspan],
  .dealer-sales-table td[colspan] {
    display: block;
    padding: 8px 0;
    text-align: center;
  }

  .dealer-market-table td[colspan]::before,
  .dealer-sales-table td[colspan]::before {
    content: none;
  }

.dealer-market-search-row input[type="search"] {
  min-height: 40px;
  border: 1px solid #cfddf2;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #213c63;
}

.dealer-market-search-row .btn {
  min-height: 40px;
  min-width: 72px;
}

.dealer-market-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dealer-market-product-card {
  border: 1px solid #dce7f4;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(17, 42, 86, .06);
  display: grid;
  grid-template-rows: auto 1fr;
}

.dealer-market-product-cover {
  position: relative;
  min-height: 152px;
  background: linear-gradient(135deg, #2457a8 0%, #1f6fe5 55%, #5d8de9 100%);
  display: grid;
  place-items: center;
}

.dealer-market-product-cover.has-image {
  background: #0f2b52;
}

.dealer-market-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.dealer-market-product-cover.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 28, 57, .08), rgba(10, 28, 57, .58));
}

.dealer-market-product-status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
}

.dealer-market-product-status.is-active {
  background: #e8fff3;
  color: #1c7a4f;
  border: 1px solid #bde7cf;
}

.dealer-market-product-status.is-inactive {
  background: #f2f5fa;
  color: #637896;
  border: 1px solid #d7e1ef;
}

.dealer-market-product-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.dealer-market-product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dealer-market-product-top strong {
  color: #223f67;
  font-size: .95rem;
}

.dealer-market-product-price {
  color: #123b73;
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}

.dealer-market-product-desc {
  margin: 0;
  color: #536a89;
  font-size: .84rem;
  line-height: 1.5;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dealer-market-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dealer-market-product-meta span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d8e3f3;
  padding: 0 8px;
  color: #556f93;
  font-size: .74rem;
}

.dealer-market-product-actions {
  margin-top: 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dealer-market-product-actions .btn {
  min-height: 38px;
}

@media (max-width: 1280px) {
  .dealer-market-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dealer-market-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dealer-market-product-actions {
    grid-template-columns: 1fr;
  }
}

.dealer-market-table-wrap {
  border-radius: 12px;
}

.dealer-market-table {
  min-width: 980px;
}

.dealer-market-item-cell {
  min-width: 230px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.dealer-market-thumb-placeholder {
  width: 56px;
  height: 46px;
  border-radius: 8px;
  border: 1px dashed #bed1eb;
  background: #f5f9ff;
  color: #6c84a7;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
}

.dealer-market-edit-btn {
  min-height: 34px;
}

.dealer-market-modal .mypage-app-modal-dialog {
  width: min(1080px, calc(100% - 24px));
}

.dealer-market-form {
  display: grid;
  gap: 12px;
}

.dealer-market-form-section {
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.dealer-market-form-section h4 {
  margin: 0;
  color: #264a7d;
  font-size: .92rem;
}

.dealer-market-grid {
  display: grid;
  gap: 8px;
}

.dealer-market-grid.one {
  grid-template-columns: 1fr;
}

.dealer-market-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dealer-market-file-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 10px;
}

.dealer-market-preview-box {
  border: 1px solid #d9e5f5;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.dealer-market-preview-box > strong {
  display: block;
  margin-bottom: 8px;
  color: #3a5f95;
  font-size: .82rem;
}

.dealer-market-preview-box .admin-thumb {
  width: 100%;
  max-height: 220px;
  margin-top: 0;
}

.dealer-market-actions {
  border-top: 1px solid #e0e9f6;
  padding-top: 10px;
}

.mypage-app-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease;
}

.mypage-app-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mypage-app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 30, .52);
}

.mypage-app-modal-dialog {
  position: relative;
  width: min(920px, calc(100% - 28px));
  max-height: min(90vh, 860px);
  margin: 4vh auto 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e6f5;
  box-shadow: 0 26px 64px rgba(13, 27, 53, .26);
}

.mypage-app-modal-head {
  min-height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9eff8;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.mypage-app-modal-head h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #1f3558;
}

.mypage-app-modal-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mypage-app-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d8e2f0;
  background: #fff;
  color: #2f4668;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.mypage-app-modal-body {
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 10px;
  min-height: min(60vh, 540px);
}

.mypage-app-modal-meta,
.mypage-app-modal-updated {
  margin: 0;
  color: #6f839f;
  font-size: .82rem;
}

.mypage-app-modal-body h4 {
  margin: 0;
  color: #1f3556;
}

.mypage-app-modal-content {
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  background: #f9fbff;
  padding: 12px;
  color: #223552;
  white-space: pre-wrap;
  line-height: 1.68;
}

.mypage-app-modal-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mypage-app-modal-actions .btn {
  min-height: 42px;
  border-radius: 11px;
}

/* --- Global lightbox (notes + messages) --- */
.wwebsoft-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.wwebsoft-lightbox.is-open {
  display: block;
}

.wwebsoft-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 30, .72);
}

.wwebsoft-lightbox-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border-radius: 16px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  padding: 12px;
}

.wwebsoft-lightbox-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
}

.wwebsoft-lightbox-close:hover {
  background: rgba(255, 255, 255, .12);
}

.wwebsoft-lightbox-image {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.wwebsoft-lightbox-caption {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .85);
  font-size: .92rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Sent success modal (interactive) --- */
.sent-success-modal .mypage-app-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  min-height: min(42vh, 380px);
}

.sent-success-modal .mypage-app-modal-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: min(62vh, 520px);
  margin: 10vh auto 0;
}

.sent-success {
  position: relative;
  width: 92px;
  height: 92px;
}

.sent-success-icon {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 1px solid var(--line);
  color: var(--primary);
}

.sent-success-icon i {
  font-size: 2.6rem;
  line-height: 1;
}

.sent-success-message {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.sent-success-sparkles {
  position: absolute;
  inset: -18px;
  pointer-events: none;
}

.sent-success-sparkles::before,
.sent-success-sparkles::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  opacity: 0;
}

@keyframes sentPop {
  0% { transform: scale(0.78); opacity: 0; }
  55% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes sentSpark {
  0% { transform: scale(0.65); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes sentText {
  0% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.sent-success-modal.is-celebrate .sent-success-icon {
  animation: sentPop .55s cubic-bezier(.2, .9, .2, 1) both;
}

.sent-success-modal.is-celebrate .sent-success-message {
  animation: sentText .38s ease both;
  animation-delay: .08s;
}

.sent-success-modal.is-celebrate .sent-success-sparkles::before {
  border: 2px dashed var(--primary);
  animation: sentSpark .78s ease-out both;
  animation-delay: .08s;
}

.sent-success-modal.is-celebrate .sent-success-sparkles::after {
  border: 2px solid var(--primary);
  opacity: .45;
  animation: sentSpark .9s ease-out both;
  animation-delay: .14s;
}

@media (prefers-reduced-motion: reduce) {
  .sent-success-modal.is-celebrate .sent-success-icon,
  .sent-success-modal.is-celebrate .sent-success-message,
  .sent-success-modal.is-celebrate .sent-success-sparkles::before,
  .sent-success-modal.is-celebrate .sent-success-sparkles::after {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .sent-success-modal .mypage-app-modal-dialog {
    width: 100%;
    max-height: 70vh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
}

/* --- Notes (/notes) mobile UX: one-pane list/detail --- */
.notes-shell .notes-message-layout {
  grid-template-columns: minmax(260px, 360px) 1fr;
}

.notes-shell .notes-back-btn {
  margin-left: auto;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
}

/* Notes group dropdown (details/summary) */
.notes-shell .notes-message-list details.notes-group {
  display: block;
}

.notes-shell .notes-message-list details.notes-group > summary {
  list-style: none;
  cursor: pointer;
}

.notes-shell .notes-message-list details.notes-group > summary::-webkit-details-marker {
  display: none;
}

.notes-shell .notes-message-list details.notes-group > summary::marker {
  content: '';
}

.notes-shell .notes-group-items {
  padding-left: 14px;
}

.notes-shell .notes-group-items ul.message-chat-items {
  max-height: 440px;
  overflow-y: auto;
  padding-right: 6px;
}

@media (max-width: 900px) {
  .notes-shell .notes-message-layout {
    grid-template-columns: 1fr;
  }

  .notes-shell .notes-message-list,
  .notes-shell .notes-message-view {
    grid-column: 1;
    grid-row: 1;
    transition: transform .22s ease, opacity .22s ease;
    will-change: transform, opacity;
  }

  .notes-shell[data-note-open="0"] .notes-message-list {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .notes-shell[data-note-open="0"] .notes-message-view {
    transform: translateX(10%);
    opacity: 0;
    pointer-events: none;
  }

  .notes-shell[data-note-open="1"] .notes-message-list {
    transform: translateX(-10%);
    opacity: 0;
    pointer-events: none;
  }

  .notes-shell[data-note-open="1"] .notes-message-view {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  @media (prefers-reduced-motion: reduce) {
    .notes-shell .notes-message-list,
    .notes-shell .notes-message-view {
      transition: none !important;
    }
  }

  .notes-shell .notes-message-view {
    min-height: auto;
  }

  .notes-shell .notes-message-head {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    padding-top: 6px;
  }
}

.mypage-request-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mypage-request-list .mypage-history-item {
  border: 1px solid #d9e5f5;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  display: grid;
  gap: 10px;
}

.mypage-request-title {
  color: #1f3558;
  font-size: 1rem;
}

.mypage-request-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mypage-request-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d7e3f4;
  background: #f2f7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mypage-request-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mypage-view-attachments {
  display: grid;
  gap: 8px;
}

.mypage-view-attachments h5 {
  margin: 0;
  color: #29466d;
  font-size: .9rem;
}

.mypage-edit-attachments-block {
  display: grid;
  gap: 8px;
}

.mypage-edit-attachments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mypage-edit-attachment-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid #d9e5f5;
  border-radius: 10px;
  background: #fbfdff;
}

.mypage-edit-attachment-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.mypage-edit-attachment-caption {
  color: #607a9f;
  font-size: .75rem;
}

.mypage-edit-attachment-item.is-delete {
  border-color: #f0b8b8;
  background: #fff5f5;
}

.mypage-edit-attachment-item.is-delete .mypage-request-thumb {
  opacity: .45;
}

.mypage-edit-attachment-item.is-delete .mypage-edit-attachment-caption {
  color: #c04545;
  font-weight: 700;
}

.mypage-image-modal-dialog {
  width: min(980px, calc(100% - 28px));
}

.mypage-image-modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 700px);
  background: #f8fbff;
}

.mypage-image-modal-body img {
  max-width: 100%;
  max-height: min(66vh, 660px);
  border-radius: 12px;
  border: 1px solid #dbe6f5;
  background: #fff;
}

/* ════════════════════════════════════════════════════════════
   앱 바 도크 — 모바일 전용 하단 내비게이션
   ════════════════════════════════════════════════════════════ */
:root {
  --acd-bar-h: 60px;
  --acd-accent: #0055cc;
}

.app-control-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  display: none;            /* 모바일에서만 flex */
  align-items: stretch;
  height: calc(var(--acd-bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.09);
  overflow: visible;        /* center FAB 위로 돌출 허용 */
}

/* 각 아이템 공통 */
.acd-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #9097a4;
  padding: 10px 2px 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease;
  position: relative;
}

.acd-item > i {
  font-size: 1.26rem;
  line-height: 1;
}

.acd-label {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.acd-item.is-active {
  color: var(--acd-accent);
}

.acd-item:active {
  opacity: 0.7;
}

/* 활성 인디케이터 점 */
.acd-item.is-active::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acd-accent);
}

/* 중앙 FAB 아이템 */
.acd-item--center {
  padding-top: 0;
  padding-bottom: 6px;
  justify-content: flex-end;
}

.acd-item--center::before {
  display: none; /* 중앙 아이템은 인디케이터 점 없음 */
}

.acd-center-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0055cc 0%, #3a85ff 100%);
  color: #fff;
  font-size: 1.36rem;
  border: 3px solid #fff;
  box-shadow:
    0 4px 18px rgba(0, 85, 204, 0.44),
    0 2px 6px rgba(0, 0, 0, 0.14);
  transform: translateY(-14px);
  transition:
    transform 0.24s cubic-bezier(0.32, 1.08, 0.52, 0.98),
    box-shadow 0.24s ease;
  flex-shrink: 0;
}

.acd-item--center .acd-label {
  color: var(--acd-accent);
  margin-top: -4px;
  font-weight: 700;
}

.acd-item--center:active .acd-center-fab {
  transform: translateY(-14px) scale(0.88);
  box-shadow: 0 2px 8px rgba(0, 85, 204, 0.28);
}

.acd-item--center.is-active .acd-center-fab {
  box-shadow:
    0 6px 24px rgba(0, 85, 204, 0.60),
    0 3px 8px rgba(0, 0, 0, 0.16);
}

/* 하위 호환: 레거시 .app-control-btn */
.app-control-btn {
  display: none;
}

.app-loading-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 240;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.app-loading-bar > span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #1f6fe5, #62a0ff);
  transform: translateX(-110%);
}

.app-loading-bar.is-active > span {
  animation: appLoadingRun 1.2s ease-in-out infinite;
}

@keyframes appLoadingRun {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

@media (max-width: 860px) {
  .mypage-shell-app {
    margin-top: 10px;
    margin-bottom: 96px;
  }

  .app-control-dock {
    display: flex;
  }

  .ft-quick-container {
    display: none;
  }

  .mypage-overview-card,
  .mypage-request-box,
  .mypage-request-history,
  .mypage-links-card,
  .mypage-status-summary {
    border-radius: 18px;
  }

  .mypage-request-history li {
    padding: 11px;
    border-radius: 14px;
  }

  .mypage-purchased-themes {
    border-radius: 16px;
    padding: 12px;
  }

  .mypage-theme-grid {
    grid-template-columns: 1fr;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .dealer-form-grid {
    grid-template-columns: 1fr;
  }

  .dealer-market-search-row,
  .dealer-market-grid.two,
  .dealer-market-file-layout {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .mypage-history-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mypage-history-actions .btn {
    width: 100%;
  }

  .mypage-app-modal-dialog {
    width: 100%;
    max-height: 92vh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    transform: translateY(100%);
    transition: transform .22s ease;
  }

  .mypage-app-modal-body {
    min-height: min(66vh, 620px);
  }

  .mypage-request-thumb {
    width: 64px;
    height: 64px;
  }

  .mypage-app-modal.is-open .mypage-app-modal-dialog {
    transform: translateY(0);
  }

  .mypage-app-modal-head {
    min-height: 58px;
    padding-top: 8px;
  }

  .mypage-app-modal-head::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #d3deec;
    transform: translateX(-50%);
  }

  .mypage-app-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mypage-app-modal-actions .btn {
    width: 100%;
  }

  .mypage-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    z-index: 70;
    box-shadow: 0 -10px 24px rgba(9, 22, 43, .14);
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }
}

/* 2026-02-15 final header/app install override */
.site-header {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.page-sub .site-header {
  background: #ffffff !important;
}

.page-sub .site-header .main-nav,
.page-sub .site-header .main-nav .menu-level {
  border: 0 !important;
  background: transparent !important;
}

.page-sub .site-header .main-nav .menu-item > a,
.page-sub .site-header .main-nav > a {
  color: #202631 !important;
  text-shadow: none !important;
}

.page-home .site-header {
  border-bottom: 0 !important;
}

.page-home .site-header.is-scrolled {
  border-bottom: 0 !important;
}

.header-actions {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 8px !important;
}

.header-actions .auth-link,
.header-actions .logout .auth-link {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .32) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-actions .auth-link span,
.header-actions .logout .auth-link span {
  display: none !important;
}

.header-actions .profile-chip {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-sub .header-actions .profile-chip {
  border-color: #d2dbe8;
  background: #fff;
}

.page-sub .header-actions .auth-link,
.page-sub .header-actions .logout .auth-link {
  border-color: #d2dbe8 !important;
  background: #fff !important;
  color: #1e2430 !important;
}

.header-actions .auth-link .icon,
.header-actions .logout .auth-link .icon,
.notify-btn .icon {
  margin: 0 !important;
  font-size: 1rem;
}

.notify-center {
  position: relative;
}

.notify-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.page-sub .notify-btn {
  border-color: #d2dbe8;
  background: #fff;
  color: #1e2430;
}

@media (min-width: 861px) {
  .header-actions {
    gap: 10px !important;
  }

  .header-actions .auth-link,
  .header-actions .logout .auth-link,
  .header-actions .profile-chip,
  .notify-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border-width: 1px;
    box-shadow: 0 8px 18px rgba(7, 20, 43, .2);
  }

  .header-actions .auth-link,
  .header-actions .logout .auth-link,
  .notify-btn {
    background: rgba(255, 255, 255, .16) !important;
    border-color: rgba(255, 255, 255, .42) !important;
  }

  .page-sub .header-actions .auth-link,
  .page-sub .header-actions .logout .auth-link,
  .page-sub .notify-btn {
    background: #fff !important;
    border-color: #c8d5e8 !important;
    color: #111827 !important;
    box-shadow: 0 8px 16px rgba(15, 31, 66, .12);
  }

  .header-actions .auth-link .icon,
  .header-actions .logout .auth-link .icon,
  .notify-btn .icon {
    font-size: 1.08rem;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
  }

  .header-actions .auth-link:hover,
  .header-actions .logout .auth-link:hover,
  .notify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(7, 20, 43, .26);
  }

  .header-actions .auth-link:focus-visible,
  .header-actions .logout .auth-link:focus-visible,
  .notify-btn:focus-visible,
  .header-actions .profile-chip:focus-visible {
    outline: 2px solid #4f8dff;
    outline-offset: 2px;
  }

  .ft-quick-container {
    --ft-quick-fab-size: 46px;
    --ft-quick-fab-icon-size: 20px;
  }

  .ft-quick-fab-btn,
  .ft-quick-fab-link {
    box-shadow: 0 12px 24px rgba(8, 20, 46, .38);
  }

  .ft-quick-fab-btn i,
  .ft-quick-fab-link i,
  .ft-quick-fab-image {
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
  }

  .main-nav .menu-item-toggle,
  .site-nav .menu-item-toggle {
    display: none !important;
  }

  .main-nav .menu-level-1 > .menu-item,
  .site-nav .menu-level-1 > .menu-item {
    position: relative;
  }

  #main-nav .menu-level-1 > .menu-item.has-children::after,
  #site-nav .menu-level-1 > .menu-item.has-children::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
  }

  .main-nav .menu-level-1 > .menu-item > a,
  .site-nav .menu-level-1 > .menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
  }

  .main-nav .menu-level-1 > .menu-item.has-children > a::after,
  .site-nav .menu-level-1 > .menu-item.has-children > a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .78;
    transition: transform .18s ease, opacity .18s ease;
  }

  #main-nav .menu-level-1 > .menu-item:hover > a,
  #main-nav .menu-level-1 > .menu-item:focus-within > a,
  #site-nav .menu-level-1 > .menu-item:hover > a,
  #site-nav .menu-level-1 > .menu-item:focus-within > a {
    background: rgba(255, 255, 255, .28) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
    transform: translateY(-1px);
  }

  .page-sub #main-nav .menu-level-1 > .menu-item:hover > a,
  .page-sub #main-nav .menu-level-1 > .menu-item:focus-within > a,
  .page-sub #site-nav .menu-level-1 > .menu-item:hover > a,
  .page-sub #site-nav .menu-level-1 > .menu-item:focus-within > a {
    background: #e8f0ff !important;
    color: #184acb !important;
    box-shadow: inset 0 0 0 1px #c9d9f9;
  }

  .main-nav .menu-level-1 > .menu-item.has-children:hover > a::after,
  .main-nav .menu-level-1 > .menu-item.has-children:focus-within > a::after,
  .site-nav .menu-level-1 > .menu-item.has-children:hover > a::after,
  .site-nav .menu-level-1 > .menu-item.has-children:focus-within > a::after {
    transform: translateY(0) rotate(225deg);
    opacity: 1;
  }

  #main-nav .menu-level-1 > .menu-item > .menu-level-2,
  #site-nav .menu-level-1 > .menu-item > .menu-level-2 {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #d6e1f0 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    box-shadow: 0 16px 34px rgba(11, 27, 56, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(.98);
    transform-origin: top left;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 140;
  }

  #main-nav .menu-level-1 > .menu-item > .menu-level-2::before { display: none; }
  #site-nav .menu-level-1 > .menu-item > .menu-level-2::before { display: none; }

  #main-nav .menu-level-1 > .menu-item:hover > .menu-level-2,
  #main-nav .menu-level-1 > .menu-item:focus-within > .menu-level-2,
  #site-nav .menu-level-1 > .menu-item:hover > .menu-level-2,
  #site-nav .menu-level-1 > .menu-item:focus-within > .menu-level-2 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  #main-nav .menu-level-2 .menu-item > a,
  #site-nav .menu-level-2 .menu-item > a {
    display: flex;
    align-items: center;
    min-height: 40px;
    border-radius: 10px;
    color: #1d2a3e !important;
    font-size: .93rem;
    font-weight: 600;
    padding: 0 11px;
    background: transparent !important;
    transition: background .16s ease, color .16s ease, transform .16s ease;
  }

  #main-nav .menu-level-2 .menu-item > a:hover,
  #main-nav .menu-level-2 .menu-item > a:focus-visible,
  #site-nav .menu-level-2 .menu-item > a:hover,
  #site-nav .menu-level-2 .menu-item > a:focus-visible {
    background: #eff5ff !important;
    color: #1a4fd8 !important;
    transform: translateX(2px);
  }
}

.notify-count {
  position: absolute;
  right: -2px;
  top: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-style: normal;
  font-size: .65rem;
  line-height: 16px;
  text-align: center;
  padding: 0 3px;
}

.notify-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(340px, calc(100vw - 24px));
  max-height: min(66vh, calc(100vh - var(--app-overlay-top) - 22px));
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #d7e3f3;
  background: #fff;
  box-shadow: 0 18px 36px rgba(12, 28, 58, .18);
  padding: 10px;
  z-index: 80;
}

.app-install-prompt {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(16px);
  opacity: 0;
  width: min(340px, calc(100% - 40px));
  border: 1px solid #d7e3f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 31, 66, .2);
  padding: 14px 16px;
  z-index: 1090;
  transition: transform .22s ease, opacity .22s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-install-prompt.is-open {
  transform: translateY(0);
  opacity: 1;
}

.app-install-prompt p {
  margin: 0;
  color: #1e3555;
  font-size: .86rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  /* 모바일 .app-control-dock (bottom: ~12px + 높이 ~56px) 위로 올려서 겹침 방지 */
  .app-install-prompt {
    bottom: calc(76px + env(safe-area-inset-bottom));
    right: 12px;
    left: 12px;
    width: auto;
    border-radius: 14px;
  }
}

.app-install-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .header-actions .auth-link,
  .header-actions .logout .auth-link,
  .notify-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
}

/* 2026-02-15 additional UX overrides */
.site-header {
  position: fixed !important;
  top: var(--app-safe-top);
  left: 0;
  right: 0;
  z-index: 120;
}

main.container {
  padding-top: var(--app-overlay-top);
}

.page-home main.container {
  padding-top: 0;
}

.main-nav,
.site-nav,
.main-nav.is-open,
.site-nav.is-open,
.site-header .main-nav,
.site-header .site-nav {
  box-shadow: none !important;
}

.home-main-slider,
.page-home .home-main-slider {
  --home-slider-height: 58vh !important;
  min-height: clamp(300px, 58vh, 620px) !important;
}

.home-main-slider-track,
.home-main-slide,
.home-main-slide-media,
.home-main-slide-media img,
.home-main-slide-media video,
.home-main-slide-media iframe {
  min-height: clamp(300px, 58vh, 620px) !important;
}

.ft-quick-fab-link,
.ft-quick-fab-btn {
  border: 0;
  box-shadow: 0 10px 22px rgba(19, 63, 200, .34);
}

.ft-quick-fab-link {
  background: linear-gradient(135deg, #2457f5, #133fc8);
}

.message-head-actions {
  display: inline-flex;
}

.message-compose-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.message-file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d3dfef;
  border-radius: 10px;
  background: #fff;
  color: #35527a;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
}

#message-attachment {
  max-width: 240px;
  font-size: .8rem;
}

.message-file-meta {
  margin: 0;
  font-size: .78rem;
  color: #58749b;
}

.message-emoji-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.emoji-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid #d3dfef;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  line-height: 1;
}

.message-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.message-attachment.file {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #d4e0f2;
  background: #fff;
  color: #2f4f79;
  font-size: .8rem;
}

.message-attachment.image {
  margin-top: 2px;
}

.message-attachment.image img {
  display: block;
  max-width: min(260px, 100%);
  max-height: 220px;
  border-radius: 10px;
  border: 1px solid #dbe6f6;
  object-fit: cover;
}

.message-inline-form {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dbe6f6;
  background: #fff;
}

.message-inline-form .hint {
  color: #5f7393;
  font-size: .85rem;
}

@media (max-width: 860px) {
  main.container {
    padding-top: 78px;
  }

  .ft-quick-fab-link,
  .ft-quick-fab-btn {
    box-shadow: 0 8px 18px rgba(19, 63, 200, .3);
  }

  .message-compose-tools {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #message-attachment {
    max-width: 100%;
  }
}

/* 2026-02-16 theme shop responsive stabilization */
.theme-shop-shell {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
}

.theme-shop-shell .theme-shop-main,
.theme-shop-shell .theme-shop-side,
.theme-shop-shell .theme-shop-detail-body,
.theme-shop-shell .theme-shop-detail-panel,
.theme-shop-shell .theme-shop-detail-overview,
.theme-shop-shell .theme-shop-detail-info,
.theme-shop-shell .theme-shop-detail-media {
  min-width: 0;
}

.theme-shop-shell .theme-shop-detail-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1180px) {
  :root {
    --app-header-height: 72px;
  }

  .toast-root {
    top: calc(var(--app-overlay-top) + 6px);
    right: 10px;
    width: calc(100% - 20px);
  }

  .theme-shop-shell {
    width: calc(100% - 24px);
  }

  .theme-shop-shell .theme-shop-toolbar {
    position: static;
    top: auto;
  }

  .theme-shop-shell .theme-shop-grid-masonry,
  .theme-shop-shell .theme-shop-detail-grid {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell:not(.is-detail-page) .theme-shop-workspace {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell:not(.is-detail-page) .theme-shop-side-pane {
    position: static;
    order: 2;
  }

  .theme-shop-shell:not(.is-detail-page) .theme-shop-list-pane {
    order: 1;
  }
}

@media (max-width: 720px) {
  .theme-shop-shell {
    width: calc(100% - 20px);
    margin-top: 12px;
    margin-bottom: 20px;
  }

  .theme-shop-shell .theme-shop-hero-actions,
  .theme-shop-shell .theme-shop-order-actions,
  .theme-shop-shell .theme-shop-cart-item-actions {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-detail-tabs {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-mobile-buybar {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .theme-shop-side-seller-actions {
    grid-template-columns: 1fr;
  }
}

/* 2026-02-16 theme shop full layout revamp */
.theme-shop-shell,
.theme-shop-shell * {
  box-sizing: border-box;
}

.theme-shop-shell .theme-shop-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 14px;
  align-items: start;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-grid-masonry {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-side-pane {
  display: grid;
  gap: 12px;
  position: sticky;
  top: calc(var(--app-overlay-top) + 8px);
  align-self: start;
}

.theme-shop-side-card {
  border: 1px solid #dce6f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 38, 76, .08);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.theme-shop-side-card h3 {
  margin: 0;
  color: #1f426f;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-shop-side-card p {
  margin: 0;
  color: #587398;
  font-size: .82rem;
  line-height: 1.55;
}

.theme-shop-side-seller {
  background: linear-gradient(135deg, #6734df 0%, #5d53e7 42%, #3f74ef 100%);
  border-color: #4f54dc;
}

.theme-shop-side-seller h3,
.theme-shop-side-seller p {
  color: #fff;
}

.theme-shop-side-seller-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.theme-shop-side-seller-actions .btn {
  min-height: 36px;
  border-radius: 10px;
  font-size: .79rem;
}

.theme-shop-side-seller-actions .btn-primary {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.22);
  color: #fff;
}

.theme-shop-side-seller-actions .btn-light {
  background: rgba(255,255,255,.92);
}

.theme-shop-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.theme-shop-side-list li button {
  width: 100%;
  border: 0;
  background: #f7f9fd;
  border-radius: 9px;
  min-height: 32px;
  padding: 0 10px;
  color: #456289;
  font-size: .81rem;
  text-align: left;
  cursor: pointer;
}

.theme-shop-side-list li button:hover {
  background: #edf3ff;
  color: #244e8a;
}

.theme-shop-best-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.theme-shop-best-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.theme-shop-best-list li span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f0f4fb;
  color: #355a8d;
  font-size: .74rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.theme-shop-best-list li a,
.theme-shop-best-list li strong {
  color: #2f4d75;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-shop-best-list li em {
  font-style: normal;
  color: #6d80a0;
  font-size: .73rem;
}

.theme-shop-shell .theme-shop-workspace > * {
  min-width: 0;
}

.theme-shop-shell .theme-shop-detail-hero-compact {
  border: 1px solid #d8e5f8;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 58%, #ffffff 100%);
  box-shadow: 0 14px 36px rgba(18, 47, 97, .08);
}

.theme-shop-shell .theme-shop-detail-hero-main {
  display: grid;
  gap: 8px;
}

.theme-shop-shell .theme-shop-detail-hero-main h1 {
  margin: 0;
  color: #1d3f72;
  font-size: clamp(1.16rem, 1.8vw, 1.48rem);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-shop-shell .theme-shop-detail-hero-main p {
  margin: 0;
  color: #4d6587;
  line-height: 1.55;
}

.theme-shop-shell .theme-shop-list-pane,
.theme-shop-shell .theme-shop-detail-pane {
  margin: 0;
}

.theme-shop-shell .theme-shop-list-pane {
  min-width: 0;
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-list-pane-hidden {
  display: none;
}

.theme-shop-shell.is-detail-page .theme-shop-workspace {
  grid-template-columns: 1fr;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-pane {
  order: 1;
  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane {
  order: 2;
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list {
  border: 1px solid #dbe6f4;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  padding: 12px;
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .mypage-block-head h2 {
  color: #23497c;
}

.theme-shop-demo-preview-card {
  border: 1px solid #dbe6f4;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.theme-shop-demo-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-shop-demo-preview-head h3 {
  margin: 0;
  color: #23497c;
  font-size: .96rem;
}

.theme-shop-demo-frame-wrap {
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fbff;
}

.theme-shop-demo-frame {
  width: 100%;
  height: min(72vh, 780px);
  border: 0;
  display: block;
  background: #fff;
}

@media (max-width: 1024px) {
  .theme-shop-demo-frame {
    height: min(68vh, 680px);
  }
}

@media (max-width: 720px) {
  .theme-shop-demo-frame {
    height: min(62vh, 560px);
  }
}

/* 2026-02-16 theme shop renewal v2 */
.theme-shop-v2 {
  width: min(1220px, calc(100% - 24px));
  gap: 16px;
}

.theme-shop-v2 .theme-shop-hero,
.theme-shop-v2 .theme-shop-detail,
.theme-shop-v2 .theme-shop-list-pane,
.theme-shop-v2 .theme-shop-demo-preview-card,
.theme-shop-v2 .theme-shop-license-dialog,
.theme-shop-v2 .theme-shop-write-dialog,
.theme-shop-v2 .theme-shop-purchase-dialog,
.theme-shop-v2 .theme-shop-cart-dialog {
  border-radius: 18px;
}

.theme-shop-v2 .theme-shop-workspace {
  gap: 16px;
}

.theme-shop-v2 .theme-shop-toolbar {
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.4fr) minmax(220px, .65fr);
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
}

.theme-shop-v2 .theme-shop-search,
.theme-shop-v2 .theme-shop-sort {
  min-height: 44px;
}

.theme-shop-v2 .theme-shop-sort {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.theme-shop-v2 .theme-shop-sort select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}

.theme-shop-v2 .theme-shop-chips {
  padding: 2px;
  border-radius: 12px;
  background: #f6f9ff;
}

.theme-shop-v2 .theme-chip {
  min-height: 36px;
  border-radius: 10px;
}

.theme-shop-v2 .theme-shop-grid-masonry {
  gap: 12px;
}

.theme-shop-v2 .theme-shop-card {
  border-radius: 16px;
  padding: 12px;
}

.theme-shop-v2 .theme-shop-cover {
  border-radius: 12px;
}

.theme-shop-v2 .theme-shop-actions {
  gap: 8px;
}

.theme-shop-v2 .theme-shop-actions .btn,
.theme-shop-v2 .theme-shop-detail-head-actions .btn,
.theme-shop-v2 .theme-shop-order-actions .btn,
.theme-shop-v2 .theme-shop-mobile-buybar .btn,
.theme-shop-v2 .mypage-app-modal-actions .btn {
  min-height: 42px;
}

.theme-shop-v2 .theme-shop-detail {
  padding: 16px;
  gap: 12px;
}

.theme-shop-v2 .theme-shop-detail-head {
  gap: 12px;
}

.theme-shop-v2 .theme-shop-detail-head-main h2 {
  font-size: clamp(1.05rem, 1.4vw, 1.38rem);
}

.theme-shop-v2 .theme-shop-detail-grid {
  gap: 12px;
}

.theme-shop-v2 .theme-shop-detail-preview {
  min-height: 280px;
}

.theme-shop-v2 .theme-shop-summary-tabs,
.theme-shop-v2 .theme-shop-detail-tabs {
  border-radius: 12px;
}

.theme-shop-v2 .theme-shop-summary-tabs button,
.theme-shop-v2 .theme-shop-detail-tabs button {
  min-height: 42px;
}

.theme-shop-v2 .theme-shop-detail-panel {
  border-radius: 12px;
}

.theme-shop-v2 .theme-shop-demo-preview-card {
  padding: 14px;
}

.theme-shop-v2 .theme-shop-demo-frame {
  height: min(72vh, 820px);
}

.theme-shop-v2 .mypage-app-modal-dialog {
  width: min(860px, calc(100% - 20px));
}

.theme-shop-v2 .theme-shop-write-dialog,
.theme-shop-v2 .theme-shop-license-dialog {
  width: min(640px, calc(100% - 20px));
}

@media (max-width: 1280px) {
  .theme-shop-v2 {
    width: calc(100% - 20px);
  }

  .theme-shop-v2 .theme-shop-toolbar {
    grid-template-columns: 1fr;
  }

  .theme-shop-v2 .theme-shop-sort {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .theme-shop-v2 .theme-shop-grid-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-shop-v2 .theme-shop-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .theme-shop-v2 {
    width: calc(100% - 16px);
    gap: 12px;
  }

  .theme-shop-v2 .theme-shop-hero {
    grid-template-columns: 1fr;
  }

  .theme-shop-v2 .theme-shop-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-shop-v2 .theme-shop-chips {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .theme-shop-v2 .theme-chip {
    white-space: nowrap;
  }

  .theme-shop-v2 .theme-shop-detail-head {
    grid-template-columns: 1fr;
  }

  .theme-shop-v2 .theme-shop-detail-head-actions {
    width: 100%;
    justify-content: stretch;
  }

  .theme-shop-v2 .theme-shop-detail-head-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .theme-shop-v2 .theme-shop-demo-frame {
    height: min(68vh, 680px);
  }
}

@media (max-width: 912px) {
  .theme-shop-v2 .theme-shop-detail-head-actions .btn {
    min-height: 40px;
    font-size: .84rem;
  }

  .theme-shop-v2 .theme-shop-detail-tabs button,
  .theme-shop-v2 .theme-shop-summary-tabs button {
    min-height: 40px;
    font-size: .82rem;
  }
}

@media (max-width: 820px) {
  .theme-shop-v2 .theme-shop-summary {
    grid-template-columns: 1fr;
  }

  .theme-shop-v2 .theme-shop-sort {
    grid-template-columns: 1fr;
  }

  .theme-shop-v2 .theme-shop-reset {
    width: 100%;
  }

  .theme-shop-v2 .theme-shop-grid-masonry {
    grid-template-columns: 1fr;
  }

  .theme-shop-v2 .theme-shop-card {
    grid-template-columns: 1fr;
  }

  .theme-shop-v2 .theme-shop-card .theme-shop-product-top,
  .theme-shop-v2 .theme-shop-card .mypage-theme-slug,
  .theme-shop-v2 .theme-shop-card .mypage-history-preview,
  .theme-shop-v2 .theme-shop-card .theme-shop-actions {
    grid-column: auto;
  }

  .theme-shop-v2 .theme-shop-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .theme-shop-v2 .theme-shop-grid-masonry {
    gap: 10px;
  }

  .theme-shop-v2 .theme-shop-card {
    padding: 10px;
  }

  .theme-shop-v2 .theme-shop-chips {
    scroll-snap-type: x proximity;
  }

  .theme-shop-v2 .theme-chip {
    scroll-snap-align: start;
  }
}

@media (max-width: 640px) {
  .theme-shop-v2 {
    width: calc(100% - 10px);
  }

  .theme-shop-v2 .theme-shop-detail,
  .theme-shop-v2 .theme-shop-list-pane,
  .theme-shop-v2 .theme-shop-hero,
  .theme-shop-v2 .theme-shop-demo-preview-card {
    border-radius: 14px;
  }

  .theme-shop-v2 .theme-shop-detail {
    padding: 10px;
  }

  .theme-shop-v2 .theme-shop-summary-tabs button,
  .theme-shop-v2 .theme-shop-detail-tabs button {
    min-height: 40px;
    font-size: .8rem;
  }

  .theme-shop-v2 .theme-shop-mobile-buybar {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .theme-shop-v2 .theme-shop-demo-frame {
    height: min(60vh, 520px);
  }
}

@media (max-width: 430px) {
  .theme-shop-v2 .theme-shop-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .theme-shop-v2 .theme-shop-point,
  .theme-shop-v2 .theme-shop-trust {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .theme-shop-v2 .theme-shop-filter-result {
    font-size: .76rem;
    line-height: 1.45;
  }

  .theme-shop-v2 .theme-shop-mobile-buybar {
    border-radius: 12px;
    padding: 7px;
  }
}

.theme-shop-shell.is-detail-page .theme-shop-detail-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
}

.theme-shop-shell.is-detail-page .theme-shop-grid-masonry {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-shop-shell.is-detail-page .theme-shop-grid-masonry {
  grid-template-columns: 1fr;
  gap: 10px;
}

.theme-shop-shell.is-detail-page .theme-shop-card {
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  align-items: stretch;
  column-gap: 12px;
}

.theme-shop-shell.is-detail-page .theme-shop-card .theme-shop-cover {
  min-height: 100%;
}

.theme-shop-shell.is-detail-page .theme-shop-card .theme-shop-product-top,
.theme-shop-shell.is-detail-page .theme-shop-card .mypage-theme-slug,
.theme-shop-shell.is-detail-page .theme-shop-card .mypage-history-preview,
.theme-shop-shell.is-detail-page .theme-shop-card .theme-shop-actions {
  grid-column: 2;
  min-width: 0;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-grid-masonry {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-card {
  grid-template-columns: 1fr;
  row-gap: 6px;
  border-radius: 14px;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-card .theme-shop-cover {
  min-height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-card .theme-shop-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-card .mypage-history-preview {
  min-height: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-actions .btn {
  min-height: 36px;
  font-size: .82rem;
  border-radius: 9px;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-toolbar {
  gap: 8px;
  padding: 10px;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-chip,
.theme-shop-shell:not(.is-detail-page) .theme-chip {
  min-height: 34px;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-summary article {
  padding: 9px 10px;
}

.theme-shop-shell:not(.is-detail-page) .theme-shop-hero-main > p {
  font-size: .9rem;
}

@media (max-width: 1280px) {
  .theme-shop-shell:not(.is-detail-page) .theme-shop-grid-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .theme-shop-shell:not(.is-detail-page) .theme-shop-grid-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .theme-shop-shell:not(.is-detail-page) .theme-shop-grid-masonry {
    grid-template-columns: 1fr;
  }
}

.theme-shop-shell .theme-shop-card .mypage-theme-slug,
.theme-shop-shell .theme-shop-card .mypage-history-preview,
.theme-shop-shell .theme-shop-price,
.theme-shop-shell .theme-shop-post-item p,
.theme-shop-shell .theme-shop-info-detail {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.theme-shop-shell .theme-shop-detail-pane {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 108px);
  overflow: auto;
}

.theme-shop-shell .theme-shop-detail-pane .theme-shop-summary-tabs {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #fff;
}

.theme-shop-shell .theme-shop-detail-pane .theme-shop-detail-tabs {
  position: sticky;
  top: 52px;
  z-index: 5;
  background: #fff;
}

.theme-shop-shell .theme-shop-detail-pane .theme-shop-detail-panel {
  max-height: clamp(260px, 34vh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
}

.theme-shop-shell .theme-shop-detail-pane #theme-shop-review-list,
.theme-shop-shell .theme-shop-detail-pane #theme-shop-inquiry-list {
  max-height: clamp(150px, 22vh, 280px);
  overflow: auto;
  padding-right: 2px;
}

.theme-shop-shell .theme-shop-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.theme-shop-shell .theme-shop-detail-head-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.theme-shop-shell .theme-shop-detail-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.theme-shop-shell .theme-shop-detail-head-actions .btn {
  min-height: 36px;
  white-space: nowrap;
}

.theme-shop-shell .theme-shop-detail-preview img {
  max-width: 100%;
  height: auto;
}

.theme-shop-shell .theme-shop-cart-trigger {
  border-color: #cbdcf2;
  background: #fff;
  color: #294f7f;
}

.theme-shop-shell .theme-shop-cart-trigger em {
  margin-left: 4px;
  min-width: 18px;
}

@media (max-width: 1280px) {
  .theme-shop-shell .theme-shop-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-shop-shell .theme-shop-detail-pane {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .theme-shop-shell .theme-shop-detail-pane .theme-shop-summary-tabs,
  .theme-shop-shell .theme-shop-detail-pane .theme-shop-detail-tabs {
    position: static;
    top: auto;
  }

  .theme-shop-shell .theme-shop-detail-pane .theme-shop-detail-panel,
  .theme-shop-shell .theme-shop-detail-pane #theme-shop-review-list,
  .theme-shop-shell .theme-shop-detail-pane #theme-shop-inquiry-list {
    max-height: none;
    overflow: visible;
  }

  .theme-shop-shell .theme-shop-grid-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-shop-shell .theme-shop-card {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-card .theme-shop-product-top,
  .theme-shop-shell .theme-shop-card .mypage-theme-slug,
  .theme-shop-shell .theme-shop-card .mypage-history-preview,
  .theme-shop-shell .theme-shop-card .theme-shop-actions {
    grid-column: auto;
  }

  .theme-shop-shell.is-detail-page .theme-shop-grid-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .theme-shop-shell {
    width: calc(100% - 20px);
  }
}

@media (max-width: 1024px) {
  .theme-shop-shell .theme-shop-hero {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-shop-shell .theme-shop-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 8px;
  }

  .theme-shop-shell .theme-shop-sort {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
  }

  .theme-shop-shell .theme-shop-sort select {
    min-width: 0;
    width: 100%;
  }

  .theme-shop-shell .theme-shop-reset {
    min-width: 82px;
    white-space: nowrap;
  }

  .theme-shop-shell .theme-shop-chips {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .theme-shop-shell .theme-chip {
    white-space: nowrap;
  }

  .theme-shop-shell .theme-shop-detail-head {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-detail-head-actions {
    width: 100%;
    justify-content: stretch;
  }

  .theme-shop-shell .theme-shop-detail-head-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .theme-shop-shell .theme-shop-detail-grid {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell.is-detail-page .theme-shop-grid-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-shop-shell .theme-shop-detail-preview {
    min-height: 220px;
  }

  .theme-shop-shell .theme-shop-card .mypage-history-preview {
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }
}

@media (max-width: 860px) {
  .theme-shop-shell .theme-shop-summary {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-sort {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-reset {
    width: 100%;
  }

  .theme-shop-shell .theme-shop-detail-head-actions {
    gap: 6px;
  }

  .theme-shop-shell .theme-shop-detail-tabs button,
  .theme-shop-shell .theme-shop-summary-tabs button {
    min-height: 40px;
    font-size: .8rem;
  }
}

@media (max-width: 720px) {
  .theme-shop-shell {
    width: calc(100% - 14px);
  }

  .theme-shop-shell .theme-shop-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 8px;
  }

  .theme-shop-shell .theme-shop-search {
    min-width: 0;
  }

  .theme-shop-shell .theme-shop-sort {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .theme-shop-shell .theme-shop-chips {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .theme-shop-shell .theme-shop-card {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-actions {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-grid-masonry {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell.is-detail-page .theme-shop-grid-masonry {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-detail-head {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell .theme-shop-detail-head-actions {
    width: 100%;
    justify-content: stretch;
  }

  .theme-shop-shell .theme-shop-detail-head-actions .btn {
    flex: 1 1 0;
  }

  .theme-shop-shell .theme-shop-detail-meta-actions {
    justify-content: stretch;
  }

  .theme-shop-shell .theme-shop-detail-meta-actions .btn {
    width: 100%;
  }

  .theme-shop-shell .theme-shop-mobile-buybar {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .theme-shop-shell {
    width: calc(100% - 10px);
  }

  .theme-shop-shell .theme-shop-detail {
    padding: 10px;
    border-radius: 14px;
    gap: 10px;
  }

  .theme-shop-shell .theme-shop-detail-head-main h2 {
    font-size: 1rem;
  }

  .theme-shop-shell .theme-shop-detail-head-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .theme-shop-shell .theme-shop-detail-head-actions .btn {
    width: 100%;
    min-height: 38px;
  }

  .theme-shop-shell .theme-shop-order-option {
    flex-direction: column;
    align-items: stretch;
  }

  .theme-shop-shell .theme-shop-order-qty {
    justify-content: space-between;
  }

  .theme-shop-shell .theme-shop-detail-tabs button,
  .theme-shop-shell .theme-shop-summary-tabs button {
    font-size: .78rem;
  }

  .theme-shop-shell .theme-shop-mobile-buybar-main strong {
    font-size: .92rem;
  }

  .theme-shop-shell .theme-shop-mobile-buybar .btn {
    min-height: 40px;
    padding: 0 10px;
  }
}

.theme-shop-shell.is-detail-page .theme-shop-toolbar,
.theme-shop-shell.is-detail-page .theme-shop-filter-result,
.theme-shop-shell.is-detail-page .theme-shop-detail-path,
.theme-shop-shell.is-detail-page .theme-shop-detail-rating,
.theme-shop-shell.is-detail-page .theme-shop-detail-tags,
.theme-shop-shell.is-detail-page .theme-shop-detail-meta-actions,
.theme-shop-shell.is-detail-page .theme-shop-detail-tabs,
.theme-shop-shell.is-detail-page .theme-shop-summary-tabs,
.theme-shop-shell.is-detail-page .theme-shop-detail-specs,
.theme-shop-shell.is-detail-page #theme-shop-open-cart,
.theme-shop-shell.is-detail-page [data-theme-detail-panel="review"],
.theme-shop-shell.is-detail-page [data-theme-detail-panel="inquiry"] {
  display: none !important;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-head {
  grid-template-columns: 1fr;
  align-items: start;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-head-actions {
  justify-content: flex-start;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-head-actions .btn {
  min-width: 0;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-summary {
  gap: 10px;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-order {
  display: block;
  margin: 0;
}

.theme-shop-shell.is-detail-page [data-theme-detail-panel="info"] {
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .theme-shop-shell.is-detail-page .theme-shop-detail-grid {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell.is-detail-page .theme-shop-detail-head-actions {
    width: auto;
  }
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-card {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-cover {
  min-height: 96px;
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-badges,
.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .mypage-theme-slug,
.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .mypage-history-preview,
.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-detail-box {
  display: none !important;
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-product-top,
.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-actions {
  grid-column: 2;
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-actions .btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: .82rem;
}

@media (max-width: 640px) {
  .theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-card {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-product-top,
  .theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-actions {
    grid-column: auto;
  }

  .theme-shop-shell.is-detail-page .theme-shop-list-pane.theme-shop-related-list .theme-shop-actions {
    grid-template-columns: 1fr;
  }
}

.theme-shop-demo-viewport-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.theme-shop-demo-viewport-toolbar button {
  border: 1px solid #d6deea;
  background: #fff;
  color: #385b8c;
  border-radius: 999px;
  padding: 0 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-shop-demo-viewport-toolbar button.is-active {
  border-color: #3d6fb3;
  background: #edf3ff;
  color: #1f3f6a;
}

.theme-shop-demo-viewport-size {
  margin-left: auto;
  font-size: .8rem;
  color: #55749b;
  font-weight: 700;
}

.theme-shop-demo-stage {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  transition: max-width .2s ease;
}

.theme-shop-demo-stage[data-demo-viewport-stage="tablet"] {
  max-width: 820px;
}

.theme-shop-demo-stage[data-demo-viewport-stage="mobile"] {
  max-width: 390px;
}

.theme-shop-demo-stage[data-demo-viewport-stage="desktop"] .theme-shop-demo-frame {
  height: min(78vh, 900px);
}

.theme-shop-demo-stage[data-demo-viewport-stage="tablet"] .theme-shop-demo-frame {
  height: min(84vh, 1024px);
}

.theme-shop-demo-stage[data-demo-viewport-stage="mobile"] .theme-shop-demo-frame {
  height: min(78vh, 780px);
}

@media (max-width: 900px) {
  .theme-shop-demo-viewport-size {
    margin-left: 0;
  }

  .theme-shop-demo-stage[data-demo-viewport-stage="tablet"] {
    max-width: 100%;
  }

  .theme-shop-demo-stage[data-demo-viewport-stage="desktop"] .theme-shop-demo-frame {
    height: min(72vh, 760px);
  }

  .theme-shop-demo-stage[data-demo-viewport-stage="tablet"] .theme-shop-demo-frame {
    height: min(74vh, 820px);
  }

  .theme-shop-demo-stage[data-demo-viewport-stage="mobile"] .theme-shop-demo-frame {
    height: min(70vh, 700px);
  }
}

@media (max-width: 480px) {
  .theme-shop-demo-viewport-toolbar {
    gap: 6px;
  }

  .theme-shop-demo-viewport-toolbar button {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
  }

  .theme-shop-demo-stage[data-demo-viewport-stage="mobile"] {
    max-width: 100%;
  }

  .theme-shop-demo-stage[data-demo-viewport-stage="desktop"] .theme-shop-demo-frame,
  .theme-shop-demo-stage[data-demo-viewport-stage="tablet"] .theme-shop-demo-frame,
  .theme-shop-demo-stage[data-demo-viewport-stage="mobile"] .theme-shop-demo-frame {
    height: min(62vh, 560px);
  }
}

/* 2026-02-17 detail page fidelity update */
.theme-shop-shell.is-detail-page .theme-shop-workspace {
  grid-template-columns: 1fr;
  gap: 0;
}

.theme-shop-shell.is-detail-page .theme-shop-list-pane {
  display: none;
}

.theme-shop-shell.is-detail-page .theme-shop-detail {
  margin-top: 0;
  border: 1px solid #e3eaf5;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  gap: 12px;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-head {
  gap: 3px;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-path {
  font-size: .72rem;
  color: #8f9fb5;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-head h2 {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-rating {
  color: #8c99ab;
  font-size: .86rem;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-grid {
  grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.08fr);
  align-items: start;
  gap: 20px;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-preview {
  min-height: 360px;
  border-radius: 8px;
  border: 1px solid #e4eaf4;
  background: #fff;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-preview img {
  min-height: 340px;
  border-radius: 6px;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-guide {
  width: 100%;
  min-height: 40px;
  border-radius: 6px;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-summary {
  gap: 12px;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-specs,
.theme-shop-shell.is-detail-page .theme-shop-detail-order {
  border: 1px solid #e4ebf6;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-specs h3,
.theme-shop-shell.is-detail-page .theme-shop-detail-order h3 {
  font-size: .9rem;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-specs dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-specs dl > div {
  min-height: 58px;
  border-radius: 8px;
}

.theme-shop-shell.is-detail-page .theme-shop-order-actions {
  grid-template-columns: 1fr 1fr auto;
}

.theme-shop-shell.is-detail-page .theme-shop-like-trigger {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-tags {
  gap: 6px;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-tags span {
  min-height: 28px;
  border-radius: 8px;
  border-color: #e2e8f4;
  background: #f7f9fd;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-shop-shell.is-detail-page .theme-shop-social-btn,
.theme-shop-shell.is-detail-page .theme-shop-report-btn {
  height: 28px;
  min-width: 28px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  cursor: pointer;
}

.theme-shop-shell.is-detail-page .theme-shop-social-btn.is-facebook { background: #1f67e0; color: #fff; }
.theme-shop-shell.is-detail-page .theme-shop-social-btn.is-x { background: #111; color: #fff; }
.theme-shop-shell.is-detail-page .theme-shop-social-btn.is-message { background: #7a8494; color: #fff; }

.theme-shop-shell.is-detail-page .theme-shop-report-btn {
  border-radius: 0;
  min-width: auto;
  background: transparent;
  color: #7f8b9d;
  padding: 0 2px;
}

.theme-shop-shell.is-detail-page .theme-shop-seller-more-link {
  color: #8f69bf;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 600;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-tabs {
  display: flex;
  border: 0;
  border-bottom: 1px solid #e4e9f2;
  border-radius: 0;
  overflow: visible;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  min-height: 42px;
  padding: 0 18px;
  color: #677c99;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-tabs button.is-active {
  color: #2d5a98;
  box-shadow: none;
  border-bottom-color: #2d5a98;
}

.theme-shop-shell.is-detail-page .theme-shop-detail-panel {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #edf1f8;
  padding: 14px 2px;
}

.theme-shop-shell.is-detail-page .theme-shop-info-detail {
  color: #3b4f6c;
  font-size: .9rem;
  line-height: 1.72;
  white-space: normal;
}

.theme-shop-shell.is-detail-page .theme-shop-info-detail img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

.theme-shop-shell.is-detail-page .theme-shop-license-inline {
  border-top: 1px solid #e6ebf4;
  padding-top: 12px;
}

.theme-shop-shell.is-detail-page .theme-shop-license-inline summary {
  list-style: none;
  cursor: pointer;
  color: #324d73;
  font-size: .88rem;
  font-weight: 700;
}

.theme-shop-shell.is-detail-page .theme-shop-license-inline summary::-webkit-details-marker {
  display: none;
}

.theme-shop-shell.is-detail-page .theme-shop-license-inline-body {
  margin-top: 8px;
  border: 1px solid #e6ebf4;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.theme-shop-shell.is-detail-page .theme-shop-license-inline-body p {
  margin: 0;
  color: #7a8698;
  font-size: .82rem;
  line-height: 1.7;
}

.theme-shop-shell.is-detail-page .theme-shop-license-inline-body p + p {
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .theme-shop-shell.is-detail-page .theme-shop-detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .theme-shop-shell.is-detail-page .theme-shop-detail-preview {
    min-height: 250px;
  }
}

@media (max-width: 720px) {
  .theme-shop-shell.is-detail-page .theme-shop-detail {
    padding: 10px;
  }

  .theme-shop-shell.is-detail-page .theme-shop-detail-tabs {
    gap: 2px;
  }

  .theme-shop-shell.is-detail-page .theme-shop-detail-tabs button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 4px;
    font-size: .8rem;
  }

  .theme-shop-shell.is-detail-page .theme-shop-detail-specs dl {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell.is-detail-page .theme-shop-order-actions {
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .theme-shop-shell,
  .theme-shop-v2 {
    width: calc(100% - 8px);
  }

  .theme-shop-shell .theme-shop-detail {
    padding: 8px;
    gap: 8px;
  }

  .theme-shop-shell .theme-shop-detail-head-main h2 {
    font-size: .94rem;
  }

  .theme-shop-shell .theme-shop-detail-head-actions {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .theme-shop-shell .theme-shop-detail-head-actions .btn,
  .theme-shop-shell .theme-shop-detail-meta-actions .btn,
  .theme-shop-shell .theme-shop-mobile-buybar .btn {
    min-height: 36px;
    font-size: .77rem;
    padding: 0 8px;
  }

  .theme-shop-shell .theme-shop-detail-meta-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .theme-shop-demo-preview-head {
    gap: 6px;
  }

  .theme-shop-demo-preview-head h3 {
    font-size: .9rem;
  }

  .theme-shop-demo-viewport-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 8px 0 4px;
  }

  .theme-shop-demo-viewport-toolbar button {
    min-height: 32px;
    font-size: .75rem;
    padding: 0 6px;
    gap: 4px;
  }

  .theme-shop-demo-viewport-size {
    grid-column: 1 / -1;
    margin-left: 0;
    font-size: .74rem;
  }

  .theme-shop-demo-stage[data-demo-viewport-stage="desktop"] .theme-shop-demo-frame,
  .theme-shop-demo-stage[data-demo-viewport-stage="tablet"] .theme-shop-demo-frame,
  .theme-shop-demo-stage[data-demo-viewport-stage="mobile"] .theme-shop-demo-frame {
    height: min(56vh, 500px);
  }

  .theme-shop-empty-note {
    padding: 10px;
    font-size: .79rem;
  }
}

/* 2026-02-17 theme-shop list wide layout tune */
body:has(.theme-shop-shell):not(.admin-page) main.container {
  width: min(1280px, calc(100% - 24px));
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) {
  width: min(1280px, 100%);
  max-width: 1280px;
  margin-inline: auto;
  gap: 10px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-content-banner {
  border: 1px solid #d6e4f8;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #edf4ff 55%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(18, 47, 97, .05);
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
  gap: 12px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-main {
  display: grid;
  gap: 8px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e7efff;
  color: #2b548f;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-main h1 {
  margin: 0;
  font-size: 1.1rem;
  color: #18345e;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-main > p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.45;
  color: #476287;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-tags > span,
.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #cfe0f7;
  background: #fff;
  color: #2d568f;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-notice {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #567196;
  font-size: .8rem;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-stats article {
  border: 1px solid #d8e5f8;
  border-radius: 11px;
  min-height: 78px;
  background: #fff;
  display: grid;
  align-content: center;
  justify-items: center;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-stats small {
  color: #65809f;
  font-size: .74rem;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-stats strong {
  color: #1d4277;
  font-size: 1.08rem;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 12px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-list-pane {
  gap: 8px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) #theme-shop-list {
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(17, 44, 89, .04);
  padding: 10px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) #theme-shop-list .mypage-block-head {
  margin-bottom: 8px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  grid-template-areas:
    'search sort'
    'chips chips';
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-search {
  grid-area: search;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border-color: #cfe0f7;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) #theme-shop-search-input {
  font-size: .9rem;
  color: #223f67;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) #theme-shop-search-input::placeholder {
  color: #7e94b2;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-search i {
  color: #5a79a5;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-chips {
  grid-area: chips;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-sort {
  grid-area: sort;
  display: grid;
  grid-template-columns: auto minmax(150px, 190px) auto;
  align-items: center;
  justify-content: end;
  gap: 6px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-sort .theme-shop-control-label {
  margin-right: 2px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-sort select {
  min-width: 0;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) #theme-shop-filter-result {
  margin: 12px 2px 4px;
  padding: 7px 10px;
  border: 1px solid #dce8f7;
  border-radius: 10px;
  background: #f7faff;
  color: #4b698f;
  font-size: .81rem;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-chip {
  min-height: 34px;
  font-size: .78rem;
  padding: 0 11px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-grid-masonry {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 0;
  border-radius: 16px;
  border-color: #d8e4f3;
  box-shadow: 0 8px 18px rgba(16, 38, 76, .08);
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-cover {
  min-height: 180px;
  aspect-ratio: auto;
  overflow: hidden;
  display: grid;
  align-content: stretch;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-cover > span {
  backdrop-filter: blur(1px);
  position: absolute;
  top: 10px;
  left: 10px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-badges {
  position: absolute;
  left: 10px;
  bottom: 10px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-cover-image {
  position: static;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-cover.has-image::after {
  display: none;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-cover.is-image-error {
  background: linear-gradient(135deg, #2457a8 0%, #1f6fe5 55%, #5d8de9 100%);
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-cover.is-image-error .theme-shop-cover-image {
  display: none;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-card-body {
  padding: 13px 13px 0;
  display: grid;
  gap: 7px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-card .theme-shop-product-top,
.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-card .mypage-theme-slug,
.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-card .mypage-history-preview,
.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-card .theme-shop-actions {
  padding-left: 0;
  padding-right: 0;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-card .theme-shop-product-top {
  margin-top: 0;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-card .theme-shop-product-top strong {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.03rem;
  line-height: 1.38;
  min-height: 2.8em;
  color: #172f53;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-card .mypage-theme-slug {
  color: #6d82a0;
  font-size: .82rem;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-maker-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d4e2f6;
  background: #f5f9ff;
  color: #2e568f;
  font-size: .77rem;
  font-weight: 700;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-maker-tag i {
  color: #4a73ae;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-card .mypage-history-preview {
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.5em;
  font-size: .84rem;
  color: #4e6586;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-rating {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .86rem;
  color: #5e7594;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-rating-stars {
  color: #f3b11c;
  letter-spacing: .03em;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-rating strong {
  color: #314e77;
  font-size: .9rem;
  min-width: 2.2em;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-rating-count {
  color: #6d82a0;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-price-row {
  margin-top: 2px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: #112f57;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-price b {
  font-size: clamp(1.38rem, 2.1vw, 1.78rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-price em {
  font-style: normal;
  font-size: .95rem;
  color: #37557f;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-sales {
  color: #6d82a0;
  font-size: .82rem;
  white-space: nowrap;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-actions {
  margin-top: auto;
  padding: 12px 13px 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  font-size: .86rem;
  border-radius: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-actions > :only-child {
  grid-column: 1 / -1;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-side-card {
  border-radius: 12px;
  padding: 10px;
  gap: 8px;
}

.theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-side-card h3 {
  font-size: .9rem;
}

@media (max-width: 1400px) {
  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-grid-masonry {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 1180px) {
  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-content-banner {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-workspace {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      'search'
      'chips'
      'sort';
    gap: 8px;
    padding: 9px;
  }

  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-sort {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-content: stretch;
  }

  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-grid-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:has(.theme-shop-shell):not(.admin-page) main.container {
    width: calc(100% - 12px);
  }

  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-grid-masonry {
    grid-template-columns: 1fr;
  }

  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) #theme-shop-list {
    padding: 8px;
  }

  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-banner-stats {
    grid-template-columns: 1fr 1fr;
  }

  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-sort {
    grid-template-columns: 1fr auto;
    gap: 6px;
  }

  .theme-shop-shell.theme-shop-v2:not(.is-detail-page) .theme-shop-sort .theme-shop-control-label {
    display: none;
  }
}

/* 2026-02-17 dealer market profile layout */
.dealer-market-profile {
  margin-bottom: 12px;
  border: 1px solid #e6eaf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(18, 39, 70, .05);
  overflow: hidden;
}

/* /mypage/points/: prevent grid stretch + compact header */
.mypage-shell-points {
  min-height: auto;
  align-content: start;
}

.dealer-market-profile[aria-label="포인트 헤더"] {
  margin-bottom: 0;
}

.dealer-market-profile[aria-label="포인트 헤더"] .dealer-market-profile-head {
  padding: 28px 20px 16px;
}

.dealer-market-profile[aria-label="포인트 헤더"] + .mypage-points-summary {
  margin-top: 0;
}

.mypage-role-user .dealer-market-profile.dealer-market-mode-user {
  border-color: #dce8f7;
}

.mypage-role-dealer .dealer-market-profile.dealer-market-mode-dealer {
  border-color: #dfe5f4;
}

.dealer-market-profile.user-profile-theme-ocean {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-color: #d3e5fb;
}

.dealer-market-profile.user-profile-theme-violet {
  background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
  border-color: #dfd8fb;
}

.dealer-market-profile.user-profile-theme-forest {
  background: linear-gradient(180deg, #f7fcf7 0%, #ffffff 100%);
  border-color: #d7ead7;
}

.gw-sub-surface.user-profile-theme-ocean {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-color: #d3e5fb;
}

.gw-sub-surface.user-profile-theme-violet {
  background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
  border-color: #dfd8fb;
}

.gw-sub-surface.user-profile-theme-forest {
  background: linear-gradient(180deg, #f7fcf7 0%, #ffffff 100%);
  border-color: #d7ead7;
}

.dealer-market-profile-sticky {
  position: sticky;
  top: 92px;
  z-index: 18;
}

.dealer-market-profile-head {
  padding: 150px 30px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dealer-market-profile-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dealer-market-profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1c63dc 0%, #113f9d 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(17, 66, 150, .28);
  overflow: hidden;
}

.dealer-market-profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dealer-market-profile-text h1 {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 2.15rem;
  line-height: 1.2;
  color: #0f1726;
}

.dealer-market-profile-text p {
  margin: 8px 0 0;
  color: #6d7787;
  font-size: .96rem;
}

.dealer-market-profile-text .dealer-market-profile-mini {
  margin-top: 4px;
  color: #37527d;
  font-size: .78rem;
  font-weight: 700;
}

.dealer-market-level-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  background: #1f2937;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}

.dealer-market-name-verified {
  color: #6fa6f6;
  font-size: 1.15rem;
}

.dealer-market-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dealer-market-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d9e1ee;
  background: #fff;
  color: #415474;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.dealer-market-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: #f7f9fc;
  color: #4a5568;
  font-size: .86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.dealer-market-chip.is-link {
  text-decoration: none;
}

.dealer-market-profile-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  border-bottom: 1px solid #eceff4;
  overflow-x: auto;
  background-color: #ffffff;
}

.dealer-market-profile-tabs a {
  display: inline-flex;
  align-items: center;
  height: 52px;
  color: #2d3340;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.04rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.dealer-market-profile-tabs a.is-active {
  color: #9b4df4;
  border-bottom-color: #9b4df4;
}

.dealer-market-profile-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dealer-market-exp-card {
  margin: 12px 28px 0;
  border: 1px solid #e9edf3;
  border-radius: 12px;
  background: #fbfcff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.dealer-market-exp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dealer-market-exp-head strong {
  color: #1f2939;
  font-size: .9rem;
}

.dealer-market-exp-head span {
  color: #7b41ea;
  font-size: .86rem;
  font-weight: 800;
}

.dealer-market-exp-track {
  height: 10px;
  border-radius: 999px;
  background: #e8edf5;
  overflow: hidden;
}

.dealer-market-exp-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f58f7 0%, #5f8fff 100%);
}

.dealer-market-exp-card p {
  margin: 0;
  color: #6a7384;
  font-size: .81rem;
}

.dealer-market-info-row {
  min-height: 62px;
  border-bottom: 1px solid #eef2f7;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dealer-market-info-row:nth-child(odd) {
  border-right: 1px solid #eef2f7;
}

.dealer-market-info-row span {
  color: #b2b8c3;
  font-weight: 700;
}

.dealer-market-info-row strong {
  color: #1a2232;
  font-weight: 700;
  text-align: right;
}

.dealer-market-info-row strong a {
  color: #1e4d8f;
  text-decoration: none;
}

.dealer-market-banner-actions {
  margin: 14px 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dealer-market-banner-actions .ui-btn {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .83rem;
  text-decoration: none;
}

.dealer-market-banner-actions .ui-btn-primary {
  box-shadow: 0 8px 16px rgba(31, 87, 174, .18);
}

.dealer-market-banner-actions .ui-btn-light {
  border-color: #d2e2f8;
  background: #fff;
  color: #24476f;
}

.dealer-market-banner-actions .ui-btn:hover {
  transform: translateY(-1px);
}

#dealer-theme-list {
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(17, 44, 89, .04);
}

.dealer-market-head-actions .btn {
  min-height: 40px;
  border-radius: 11px;
}

.dealer-market-search-row .ui-input {
  min-height: 42px;
  border-radius: 11px;
}

.dealer-market-search-row .ui-btn {
  min-height: 42px;
  min-width: 76px;
}

.dealer-market-product-card {
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(16, 38, 76, .08);
}

.dealer-market-product-cover {
  min-height: 180px;
}

.dealer-market-product-cover img {
  object-fit: contain;
  object-position: center;
  background: #0f2b52;
}

.dealer-guest-community-grid,
.dealer-guest-theme-grid {
  gap: 12px;
}

.dealer-guest-theme-option {
  display: block;
  cursor: pointer;
  border: 1px solid #dbe5f5;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.dealer-guest-theme-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dealer-guest-theme-option:has(input[type="checkbox"]:checked) {
  border-color: #2e6ad0;
  box-shadow: 0 10px 20px rgba(33, 83, 163, .16);
  transform: translateY(-1px);
}

.dealer-guest-theme-option.is-selected {
  border-color: #2e6ad0;
  box-shadow: 0 10px 20px rgba(33, 83, 163, .16);
  transform: translateY(-1px);
}

.dealer-guest-estimate-box {
  margin-top: 12px;
  border: 1px solid #d8e5f8;
  border-radius: 12px;
  background: #f7fbff;
  padding: 10px 12px;
  display: grid;
  gap: 5px;
}

.dealer-guest-estimate-box p {
  margin: 0;
  color: #3f5d87;
  font-size: .82rem;
}

.dealer-guest-estimate-box strong {
  color: #173a72;
  font-weight: 800;
}

.dealer-guest-estimate-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.dealer-guest-estimate-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e3ebf8;
  padding: 6px 8px;
  color: #35527f;
  font-size: .78rem;
}

.theme-shop-shell.is-detail-page .theme-shop-like-trigger {
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.theme-shop-shell.is-detail-page .theme-shop-like-trigger.is-liked {
  border-color: #f3b7c3;
  background: #fff1f5;
  color: #d22f55;
}

.theme-shop-shell.is-detail-page .theme-shop-like-trigger.is-liked i {
  color: #d22f55;
}

.theme-shop-shell .ui-btn,
.theme-shop-shell .ui-select,
.theme-shop-shell .ui-input,
#dealer-theme-list .ui-btn,
#dealer-theme-list .ui-input {
  font-size: .86rem;
}

@media (max-width: 760px) {
  .dealer-market-profile-sticky {
    position: static;
  }

  .dealer-market-profile-head {
    padding: 18px 16px 14px;
  }

  .dealer-market-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 1.7rem;
  }

  .dealer-market-profile-text h1 {
    font-size: 1.5rem;
  }

  .dealer-market-profile-tabs {
    gap: 14px;
    padding: 0 16px;
  }

  .dealer-market-exp-card {
    margin: 10px 16px 0;
  }

  .dealer-market-profile-tabs a {
    height: 48px;
    font-size: .9rem;
  }

  .dealer-market-profile-info {
    grid-template-columns: 1fr;
  }

  .dealer-market-info-row {
    min-height: 56px;
    padding: 12px 16px;
  }

  .dealer-market-info-row:nth-child(odd) {
    border-right: 0;
  }

  .dealer-market-banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin: 12px 16px 16px;
  }

  .dealer-market-banner-actions .ui-btn {
    width: 100%;
    justify-content: center;
    min-height: 36px;
    padding: 0 8px;
    font-size: .79rem;
  }

  .dealer-guest-community-grid,
  .dealer-guest-theme-grid {
    gap: 10px;
  }
}

.page-sub .site-header {
  background: #fff;
  border-bottom: 1px solid #dce6f4;
  box-shadow: 0 8px 20px rgba(14, 34, 66, .08);
  backdrop-filter: none;
}

.page-sub .site-header .main-nav {
  background: #fff;
  border-color: #d4e0f2;
}

.page-sub .site-header .main-nav .menu-item > a {
  color: #18365d;
}

.page-sub .site-header .main-nav .menu-item:hover > a {
  color: #0f59cc;
  background: #eef4ff;
}

.page-sub .site-header .main-nav .menu-level-2,
.page-sub .site-header .main-nav .menu-level-3,
.page-sub .site-header .main-nav .menu-level-4 {
  min-width: 210px;
  border: 1px solid #d7e3f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(17, 38, 72, .16);
  padding: 8px;
}

.page-sub .site-header .main-nav .menu-level-2 .menu-item > a,
.page-sub .site-header .main-nav .menu-level-3 .menu-item > a,
.page-sub .site-header .main-nav .menu-level-4 .menu-item > a {
  color: #214670;
  border-radius: 8px;
}

.page-sub .site-header .main-nav .menu-level-2 .menu-item > a:hover,
.page-sub .site-header .main-nav .menu-level-3 .menu-item > a:hover,
.page-sub .site-header .main-nav .menu-level-4 .menu-item > a:hover {
  background: #eef4ff;
  color: #0f59cc;
}

.site-header .main-nav .menu-level-2,
.site-header .main-nav .menu-level-3,
.site-header .main-nav .menu-level-4 {
  z-index: 70;
}

.levelup-ceremony-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
}

.levelup-ceremony-overlay.is-open {
  display: flex;
}

.levelup-ceremony-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 233, 120, .22), rgba(5, 10, 30, .76));
  backdrop-filter: blur(3px);
}

.levelup-ceremony-card {
  position: relative;
  width: min(420px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 235, 160, .38);
  background: linear-gradient(180deg, rgba(19, 26, 49, .96), rgba(9, 14, 32, .94));
  box-shadow: 0 32px 70px rgba(1, 4, 13, .56);
  color: #fffbe6;
  text-align: center;
  padding: 24px 18px 18px;
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .34s ease, opacity .34s ease;
  overflow: hidden;
}

.levelup-ceremony-overlay.is-show .levelup-ceremony-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.levelup-kicker {
  margin: 8px 0 4px;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .03em;
  color: #ffef9e;
  text-shadow: 0 0 20px rgba(255, 223, 78, .5);
}

.levelup-ceremony-card h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #f2f5ff;
}

.levelup-message {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
}

.levelup-value {
  margin: 8px 0 14px;
  font-size: clamp(2.4rem, 11vw, 4rem);
  line-height: 1;
  font-weight: 900;
  color: #ffe06f;
  text-shadow: 0 0 24px rgba(255, 223, 113, .36);
}

.levelup-reward-head {
  margin: 0 auto 10px;
  width: calc(100% + 8px);
  max-width: 360px;
  border-top: 1px solid rgba(255, 234, 163, .3);
  border-bottom: 1px solid rgba(255, 234, 163, .3);
  padding: 8px 6px;
  color: #eaf0ff;
  font-size: .92rem;
  font-weight: 800;
}

.levelup-reward-items {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.levelup-reward-item {
  width: 126px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  padding: 10px 8px;
}

.levelup-reward-thumb {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .5);
}

.levelup-reward-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.levelup-reward-thumb span {
  color: #ffe58d;
  font-weight: 900;
  font-size: 1.25rem;
}

.levelup-reward-item strong {
  display: block;
  font-size: .85rem;
  color: #fff8d7;
}

.levelup-close-btn {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  background: rgba(255, 232, 140, .16);
  color: #fff4b2;
  font-weight: 700;
}

.levelup-fireworks {
  position: absolute;
  inset: -12% -6% auto;
  height: 58%;
  pointer-events: none;
}

.levelup-fireworks span {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(255, 238, 160, .26);
  transform: scale(.2);
  opacity: 0;
  animation: levelupBurst 2.2s ease-out infinite;
}

.levelup-fireworks span:nth-child(1) { left: -2%; top: 8%; animation-delay: 0s; }
.levelup-fireworks span:nth-child(2) { left: 24%; top: -6%; animation-delay: .22s; }
.levelup-fireworks span:nth-child(3) { left: 52%; top: 2%; animation-delay: .46s; }
.levelup-fireworks span:nth-child(4) { right: 4%; top: 10%; animation-delay: .7s; }
.levelup-fireworks span:nth-child(5) { left: 18%; top: 18%; animation-delay: .94s; }
.levelup-fireworks span:nth-child(6) { right: 20%; top: 18%; animation-delay: 1.2s; }

.levelup-effect-confetti .levelup-fireworks span {
  border-radius: 4px;
  width: 10px;
  height: 20px;
  border: 0;
  background: linear-gradient(180deg, #ffe68d, #f9b234);
  animation: levelupConfetti 2.4s ease-in-out infinite;
}

.levelup-effect-mixed .levelup-fireworks span:nth-child(odd) {
  border-radius: 4px;
  width: 10px;
  height: 20px;
  border: 0;
  background: linear-gradient(180deg, #ffe68d, #f9b234);
  animation: levelupConfetti 2.4s ease-in-out infinite;
}

.levelup-tier-silver .levelup-kicker,
.levelup-tier-silver .levelup-value { color: #ecf2ff; text-shadow: 0 0 22px rgba(216, 227, 255, .45); }

.levelup-tier-gold .levelup-kicker,
.levelup-tier-gold .levelup-value { color: #ffe281; text-shadow: 0 0 24px rgba(255, 217, 95, .55); }

.levelup-tier-diamond .levelup-kicker,
.levelup-tier-diamond .levelup-value { color: #9ee9ff; text-shadow: 0 0 24px rgba(140, 232, 255, .52); }

@keyframes levelupBurst {
  0% { transform: scale(.12); opacity: 0; }
  15% { opacity: .8; }
  100% { transform: scale(1.08); opacity: 0; }
}

@keyframes levelupConfetti {
  0% { transform: translateY(-40px) rotate(0deg); opacity: 0; }
  12% { opacity: .95; }
  100% { transform: translateY(180px) rotate(420deg); opacity: 0; }
}

.dealer-settlement-v3 {
  display: grid;
  gap: 12px;
}

.dealer-settlement-summary-card {
  border-radius: 16px;
  border: 1px solid #d7e5f8;
  background: linear-gradient(160deg, #f8fbff 0%, #f1f6ff 50%, #f8faff 100%);
  padding: 14px;
  box-shadow: 0 10px 22px rgba(20, 58, 116, .08);
  overflow: hidden;
}

.dealer-settlement-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dealer-settlement-summary-head > div {
  min-width: 0;
}

.dealer-settlement-summary-label {
  margin: 0;
  color: #5a7093;
  font-weight: 700;
  font-size: .84rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dealer-settlement-summary-label i {
  color: #285dc1;
}

.dealer-settlement-summary-card h2 {
  margin: 6px 0 0;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  color: #193a72;
  letter-spacing: -.02em;
}

.dealer-settlement-summary-sub {
  margin: 6px 0 0;
  color: #4e6489;
  font-size: .88rem;
}

.dealer-settlement-summary-switch {
  display: inline-flex;
  border: 1px solid #d7e5f8;
  border-radius: 999px;
  padding: 2px;
  background: #fff;
  flex-shrink: 0;
}

.dealer-settlement-summary-switch button {
  border: 0;
  min-width: 56px;
  min-height: 30px;
  border-radius: 999px;
  background: transparent;
  color: #6b809f;
  font-size: .8rem;
  font-weight: 700;
}

.dealer-settlement-summary-switch button.is-active {
  background: #2f65c7;
  color: #fff;
}

.dealer-settlement-summary-panel {
  margin-top: 10px;
}

.dealer-settlement-summary-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dealer-settlement-summary-kpi {
  border-radius: 12px;
  border: 1px solid #dbe6f7;
  background: #fff;
  padding: 10px 10px 9px;
}

.dealer-settlement-summary-kpi small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5a7397;
  font-size: .76rem;
  font-weight: 700;
}

.dealer-settlement-summary-kpi small i {
  color: #2f63c5;
}

.dealer-settlement-summary-kpi strong {
  display: block;
  margin-top: 3px;
  color: #193a72;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.dealer-settlement-summary-bar {
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  min-height: 14px;
  border: 1px solid #d6e4f8;
  background: #e8f0fe;
}

.dealer-settlement-summary-bar-fill {
  display: block;
  min-width: 0;
  transition: width .2s ease;
}

.dealer-settlement-summary-bar-fill.is-available {
  background: linear-gradient(120deg, #2d70d9 0%, #2a64be 100%);
}

.dealer-settlement-summary-bar-fill.is-pending {
  background: linear-gradient(120deg, #6d4bd7 0%, #8354e2 100%);
}

.dealer-settlement-summary-bar-legend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.dealer-settlement-summary-bar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #37527d;
  font-size: .74rem;
  font-weight: 700;
}

.dealer-settlement-summary-bar-legend span:first-child i {
  color: #2f63c5;
}

.dealer-settlement-summary-bar-legend span:last-child i {
  color: #6d4bd7;
}

.dealer-settlement-summary-meta {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dealer-settlement-summary-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #d1e0f5;
  background: #fff;
  color: #3c5a84;
  font-size: .76rem;
  font-weight: 700;
  padding: 4px 10px;
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
}

.dealer-settlement-summary-meta span i {
  margin-right: 4px;
  color: #2f63c5;
}

.dealer-settlement-summary-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dealer-settlement-summary-actions a {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #d8e5f8;
  background: #fff;
  color: #2a4f84;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  line-height: 1.28;
  text-align: center;
  white-space: normal;
}

.dealer-settlement-summary-actions a:hover {
  border-color: #b7cff3;
  background: #f2f7ff;
}

.dealer-settlement-group-list {
  display: grid;
  gap: 10px;
}

.dealer-settlement-group {
  border-radius: 14px;
  border: 1px solid #d7e4f5;
  background: #fff;
  overflow: hidden;
}

.dealer-settlement-group-head {
  width: 100%;
  border: 0;
  padding: 0 14px;
  min-height: 56px;
  background: linear-gradient(120deg, #2d70d9 0%, #2a64be 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dealer-settlement-group-head--violet {
  background: linear-gradient(120deg, #6d4bd7 0%, #8354e2 100%);
}

.dealer-settlement-group-title {
  font-size: 1.08rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dealer-settlement-group-title i {
  font-size: 1.02rem;
  opacity: .95;
}

.dealer-settlement-group-head strong {
  font-size: .92rem;
}

.dealer-settlement-group-body {
  display: none;
  padding: 10px;
  background: #f8fbff;
  gap: 10px;
  font-size: 1rem;
}

.dealer-settlement-group.is-open .dealer-settlement-group-body {
  display: grid;
}

.dealer-settlement-panel {
  border-radius: 12px;
  border: 1px solid #dce7f7;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.dealer-settlement-item-title {
  margin: 0;
  color: #1a355e;
  font-size: 1.04rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dealer-settlement-item-title i {
  color: #245bc0;
  font-size: .98rem;
}

.dealer-settlement-item-sub {
  margin: 0;
  color: #5f7393;
  font-size: .95rem;
  line-height: 1.48;
}

.dealer-settlement-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dealer-settlement-mini-grid article {
  border-radius: 10px;
  border: 1px solid #e3ebf8;
  background: #fbfdff;
  padding: 8px 10px;
}

.dealer-settlement-mini-grid small {
  display: block;
  color: #637b9d;
  font-size: .82rem;
}

.dealer-settlement-mini-grid strong {
  display: block;
  margin-top: 4px;
  color: #1f3f70;
  font-size: 1.08rem;
}

.dealer-settlement-bank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.dealer-settlement-bank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf2fa;
  padding: 10px 0;
}

.dealer-settlement-bank-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dealer-settlement-bank-item strong {
  display: block;
  color: #243f66;
  font-size: .98rem;
  line-height: 1.35;
}

.dealer-settlement-bank-item strong i {
  color: #2f63c5;
  margin-right: 4px;
}

.dealer-settlement-bank-item p {
  margin: 2px 0 0;
  color: #7085a3;
  font-size: .86rem;
}

.dealer-settlement-bank-item b {
  color: #243f66;
  font-size: 1.04rem;
  white-space: nowrap;
}

.dealer-settlement-bank-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dealer-inline-cancel-form {
  margin: 0;
}

.dealer-pinpad-modal .mypage-app-modal-dialog {
  width: min(360px, calc(100vw - 20px));
}

.dealer-pinpad-display {
  margin: 0;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #d5e3f6;
  background: #f7faff;
  display: grid;
  place-items: center;
  color: #12335d;
  font-size: 1.15rem;
  letter-spacing: .14em;
  font-weight: 800;
}

.dealer-pinpad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dealer-pinpad-grid button {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #d7e4f5;
  background: #fff;
  color: #1f3d66;
  font-size: .96rem;
  font-weight: 700;
}

.dealer-pinpad-actions {
  margin-top: 2px;
}

.dealer-fin-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.dealer-fin-input {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid #d8e5f6;
  background: #fff;
  color: #1f3e68;
  font-size: .95rem;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
}

.dealer-fin-input::placeholder {
  color: #8aa0be;
  font-weight: 500;
}

.dealer-fin-input-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d8e5f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .01em;
  background: #eef4ff;
  color: #2a4e85;
  cursor: pointer;
}

.dealer-fin-input-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.dealer-fin-input-logo span {
  font-size: .76rem;
  font-weight: 800;
}

.dealer-fin-open-btn {
  min-height: 44px;
}

.dealer-fin-modal .mypage-app-modal-dialog {
  width: min(420px, calc(100vw - 20px));
  max-height: min(86vh, 760px);
}

.dealer-fin-modal .mypage-app-modal-head {
  min-height: 58px;
}

.dealer-withdraw-auth-notice {
  margin-top: 8px;
  color: #7a4b14;
  background: #fff6e8;
  border: 1px solid #f2dcba;
  border-radius: 12px;
  padding: 8px 10px;
}

.dealer-withdraw-auth-notice a {
  color: #2f63c5;
  font-weight: 800;
  text-decoration: underline;
}
.dealer-withdraw-preview {
  margin-top: 8px;
  color: #4d668d;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}
.dealer-withdraw-confirm-question {
  margin: 0 0 8px;
  color: #203f73;
  font-weight: 800;
}
.dealer-withdraw-confirm-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.dealer-withdraw-confirm-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #d8e5f8;
  border-radius: 10px;
  background: #f8fbff;
  padding: 9px 10px;
}
.dealer-withdraw-confirm-list li span {
  color: #4c668d;
  font-size: .78rem;
  font-weight: 700;
}
.dealer-withdraw-confirm-list li strong {
  color: #1c3f7b;
  font-size: .9rem;
  font-weight: 800;
}

.dealer-withdraw-pin-missing-modal .mypage-app-modal-dialog {
  max-width: 420px;
}
.dealer-fin-modal .mypage-app-modal-body {
  min-height: 0;
  max-height: none;
}

.dealer-fin-tabbar {
  padding: 0 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid #e6edf9;
  background: #f9fbff;
}

.dealer-fin-tabbar button {
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6c7f9e;
  font-size: .95rem;
  font-weight: 700;
}

.dealer-fin-tabbar button.is-active {
  color: #214c87;
  border-bottom-color: #326ad1;
}

.dealer-fin-body {
  padding: 12px 14px 14px;
  overflow-y: auto;
}

.dealer-fin-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dealer-fin-grid.is-active {
  display: grid;
}

.dealer-fin-item {
  border: 1px solid #e3ebf8;
  border-radius: 12px;
  background: #ffffff;
  min-height: 96px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  padding: 10px 6px 9px;
  color: #22426d;
  text-align: center;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.dealer-fin-item:hover {
  border-color: #bdd2f5;
  background: #f3f8ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(33, 74, 135, .10);
}

.dealer-fin-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .67rem;
  font-weight: 800;
  border: 1px solid transparent;
  overflow: hidden;
}

.dealer-fin-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 3px;
}

.dealer-fin-name {
  display: block;
  font-size: .81rem;
  font-weight: 700;
  line-height: 1.28;
  color: #324f78;
  word-break: keep-all;
}

.dealer-fin-logo--blue {
  background: #e9f1ff;
  color: #2256a3;
  border-color: #cfe0fb;
}

.dealer-fin-logo--sky {
  background: #e8f7ff;
  color: #1f6a8f;
  border-color: #c8ebfb;
}

.dealer-fin-logo--green {
  background: #ebf8ef;
  color: #2b6a3b;
  border-color: #cdeed7;
}

.dealer-fin-logo--gold,
.dealer-fin-logo--yellow {
  background: #fff6d8;
  color: #7a5c13;
  border-color: #f2e2ad;
}

.dealer-fin-logo--red {
  background: #ffeded;
  color: #913434;
  border-color: #f5cccc;
}

.dealer-fin-logo--purple,
.dealer-fin-logo--indigo {
  background: #f2ecff;
  color: #5b4398;
  border-color: #dfd1fb;
}

.dealer-fin-logo--orange {
  background: #fff2e7;
  color: #9a5c25;
  border-color: #f6ddc5;
}

@media (max-width: 760px) {
  .dealer-settlement-summary-card {
    padding: 14px;
  }

  .dealer-settlement-summary-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dealer-settlement-summary-switch {
    align-self: flex-start;
  }

  .dealer-settlement-summary-kpis {
    grid-template-columns: 1fr;
  }

  .dealer-settlement-summary-bar {
    min-height: 12px;
  }

  .dealer-settlement-summary-bar-legend {
    gap: 6px 10px;
  }

  .dealer-settlement-summary-bar-legend span {
    font-size: .72rem;
  }

  .dealer-settlement-summary-actions {
    grid-template-columns: 1fr;
  }

  .dealer-settlement-group-head {
    min-height: 52px;
    padding: 0 12px;
  }

  .dealer-settlement-group-title {
    font-size: 1rem;
  }

  .dealer-settlement-group-head strong {
    font-size: .92rem;
  }

  .dealer-settlement-mini-grid {
    grid-template-columns: 1fr;
  }

  .dealer-fin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .dealer-fin-item {
    min-height: 92px;
  }

  .dealer-fin-name {
    font-size: .78rem;
  }
}

.message-app-tabs {
  margin: 10px 0 12px;
}

.message-app-tabs a {
  white-space: nowrap;
}

.message-layout [data-message-section][hidden] {
  display: none !important;
}
