/* 연어모임 라운지 스타일
   구조·디테일: legacy/index.html 원본 그대로 (tools/port-legacy.mjs 로 생성)
   색: 포스터 팔레트(틸 #306078, 웜 그레이 #A09898, 차콜 #504848)로 변환
   ※ 직접 고칠 내용은 이 파일 아래쪽 "포스터 장식" 구역(style-extra.css)에 둔다. */

    /* =========================================================================
       THEME: 20. Botanical Sage
       Olive-sand neutral (#f8f7f7), botanical olive (#306078), warm greenhouse vibe
       ========================================================================= */
    :root {
      --bg: #f8f7f7;
      --surface: #fcfcfc;
      --surface-elevated: #ffffff;
      --surface-tint: #f2f1f1;
      --surface-glass: rgba(252, 252, 252, 0.92);
      --text: #232020;
      --muted: #376d87;
      --line: #dad6d6;
      --line-strong: #c1bbbb;
      --primary: #306078;
      --primary-hover: #234a5d;
      --primary-soft: #f3f2f2;
      --primary-border: #a1cbde;
      --accent-sand: #dedbdb;
      --danger: #b84a39;
      --success: #2d6681;
      --warning: #9c6b21;
      --radius-card: 16px;
      --radius-input: 12px;
      --radius-btn: 12px;
      --shadow-soft: 0 4px 16px rgba(42, 38, 38, 0.05);
      --shadow-hover: 0 8px 24px rgba(42, 38, 38, 0.09);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
    }

    * { box-sizing: border-box; }
    html { -webkit-text-size-adjust: 100%; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
      background-color: var(--bg);
      background-image: radial-gradient(rgba(40, 90, 113, 0.06) 1px, transparent 1px);
      background-size: 20px 20px;
      color: var(--text);
      line-height: 1.5;
    }

    button, input, textarea { font: inherit; }
    button { border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }

    .app {
      width: min(100%, 840px);
      min-height: 100vh;
      margin: 0 auto;
      background: var(--surface);
      border-left: 1px solid var(--line);
      border-right: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      box-shadow: 0 0 40px rgba(42, 38, 38, 0.04);
    }

    /* 상단 헤더 */
    .topbar {
      position: sticky;
      top: 0;
      z-index: 30;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 60px;
      padding: 0 18px;
      background: var(--surface-glass);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(14px);
    }

    .topbar-left, .topbar-right {
      display: flex;
      align-items: center;
      gap: 4px;
      min-width: 48px;
    }

    .topbar-title {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      font-size: 17px;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--text);
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .topbar-title::before {
      content: "";
      font-size: 15px;
    }

    .icon-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 999px;
      background: transparent;
      color: var(--text);
      transition: background 0.15s ease;
    }
    .icon-button:hover { background: var(--surface-tint); }
    .icon-button:active { background: var(--accent-sand); }

    .hamburger, .back-icon, .close-icon, .refresh-icon {
      position: relative;
      display: block;
      width: 20px;
      height: 20px;
    }
    .hamburger::before, .hamburger::after, .hamburger span {
      content: "";
      position: absolute;
      left: 2px;
      width: 16px;
      height: 2px;
      border-radius: 99px;
      background: currentColor;
    }
    .hamburger::before { top: 4px; }
    .hamburger span { top: 9px; }
    .hamburger::after { top: 14px; }

    .back-icon::before {
      content: "";
      position: absolute;
      left: 6px;
      top: 4px;
      width: 10px;
      height: 10px;
      border-left: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(45deg);
    }

    .close-icon::before, .close-icon::after {
      content: "";
      position: absolute;
      left: 4px;
      top: 9px;
      width: 14px;
      height: 2px;
      border-radius: 99px;
      background: currentColor;
    }
    .close-icon::before { transform: rotate(45deg); }
    .close-icon::after { transform: rotate(-45deg); }

    .refresh-icon::before {
      content: "↻";
      position: absolute;
      inset: -2px 0 0;
      font-size: 21px;
      line-height: 20px;
      text-align: center;
    }

    /* 상단 탭 */
    .nav-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      background: var(--surface);
      border-bottom: 1px solid var(--line);
      padding: 0 18px;
    }

    .nav-tab {
      position: relative;
      height: 50px;
      background: transparent;
      color: var(--muted);
      font-size: 14.5px;
      font-weight: 700;
      transition: color 0.15s ease;
    }
    .nav-tab:hover { color: var(--text); }
    .nav-tab.active {
      color: var(--primary);
      font-weight: 800;
    }
    .nav-tab.active::after {
      content: "";
      position: absolute;
      left: 24px;
      right: 24px;
      bottom: 0;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: var(--primary);
    }

    .view { display: none; flex: 1; }
    .view.active { display: block; }

    .page-body {
      padding: 22px 18px calc(40px + var(--safe-bottom));
    }

    /* 입장(회원가입/로그인) 카드 */
    .auth-card {
      max-width: 440px;
      margin: 28px auto 0;
      padding: 28px 24px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: var(--surface-elevated);
      box-shadow: var(--shadow-soft);
    }

    .auth-badge {
      display: inline-block;
      padding: 4px 10px;
      margin-bottom: 12px;
      border-radius: 99px;
      background: var(--primary-soft);
      color: var(--primary);
      font-size: 12px;
      font-weight: 800;
    }

    .auth-title {
      margin: 0 0 8px;
      font-size: 21px;
      font-weight: 850;
      letter-spacing: -0.02em;
      color: var(--text);
    }

    .auth-desc {
      margin: 0 0 22px;
      font-size: 13.5px;
      line-height: 1.6;
      color: var(--muted);
    }

    /* 1. 참가자 둘러보기 */
    .directory-header {
      padding: 18px 18px 14px;
      background: var(--surface-tint);
      border-bottom: 1px solid var(--line);
    }

    .directory-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .directory-title {
      margin: 0;
      font-size: 17px;
      font-weight: 800;
      color: var(--text);
    }

    .badge-count {
      padding: 4px 11px;
      border-radius: 999px;
      background: var(--primary);
      color: #ffffff;
      font-size: 12.5px;
      font-weight: 750;
    }

    .search-input {
      width: 100%;
      height: 44px;
      padding: 0 15px;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius-input);
      background: var(--surface-elevated);
      color: var(--text);
      font-size: 14px;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .search-input::placeholder { color: #6a99af; }
    .search-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(40, 90, 113, 0.14);
    }

    .member-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
      gap: 14px;
      padding: 18px 18px calc(40px + var(--safe-bottom));
    }

    .member-card {
      display: flex;
      flex-direction: column;
      gap: 11px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius-card);
      background: var(--surface-elevated);
      box-shadow: var(--shadow-soft);
      cursor: pointer;
      transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    }
    .member-card:hover {
      border-color: var(--primary-border);
      box-shadow: var(--shadow-hover);
      transform: translateY(-2px);
    }

    .member-card.is-mine {
      border: 1.5px solid var(--primary);
      background: #fcfbfb;
    }

    .member-card-top {
      display: flex;
      align-items: center;
      gap: 11px;
    }

    .avatar {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: var(--primary-soft);
      border: 1px solid var(--primary-border);
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }

    .member-name {
      font-size: 15.5px;
      font-weight: 800;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .mine-pill {
      padding: 2px 7px;
      border-radius: 99px;
      background: var(--primary);
      color: #ffffff;
      font-size: 10.5px;
      font-weight: 750;
    }

    .member-sub {
      font-size: 13px;
      color: var(--muted);
      margin-top: 2px;
    }

    .member-answer {
      margin: 0;
      font-size: 14px;
      line-height: 1.55;
      color: #383333;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      word-break: keep-all;
    }

    .tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: auto;
    }

    .tag {
      padding: 4px 9px;
      border-radius: 8px;
      background: var(--surface-tint);
      border: 1px solid var(--line);
      color: #2e5b70;
      font-size: 11.5px;
      font-weight: 700;
    }

    .empty-state {
      grid-column: 1 / -1;
      padding: 64px 16px;
      text-align: center;
      color: var(--muted);
      font-size: 14.5px;
    }

    /* 닉네임 배너 */
    .nickname-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 18px;
      margin-bottom: 22px;
      border: 1px solid var(--primary-border);
      border-radius: var(--radius-card);
      background: var(--primary-soft);
    }

    .nickname-label {
      font-size: 12px;
      font-weight: 750;
      color: var(--primary);
      margin-bottom: 3px;
    }

    .nickname-value {
      font-size: 18.5px;
      font-weight: 850;
      color: var(--text);
      letter-spacing: -0.02em;
    }

    .reroll-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      height: 38px;
      padding: 0 14px;
      border-radius: 10px;
      background: var(--surface-elevated);
      color: var(--primary);
      border: 1px solid var(--primary-border);
      font-size: 13px;
      font-weight: 750;
      white-space: nowrap;
      transition: background 0.15s ease;
    }
    .reroll-btn:hover { background: #fafafa; }

    .form-stack {
      display: grid;
      gap: 18px;
    }

    .field {
      display: grid;
      gap: 7px;
    }

    .field label {
      color: var(--text);
      font-size: 14px;
      font-weight: 800;
    }

    input[type="text"], input[type="password"], textarea {
      width: 100%;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius-input);
      background: var(--surface-elevated);
      color: var(--text);
      font-size: 15px;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    input[type="text"], input[type="password"] {
      height: 46px;
      padding: 0 14px;
    }

    textarea {
      min-height: 108px;
      padding: 13px 14px;
      line-height: 1.55;
      resize: vertical;
    }

    input:focus, textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(40, 90, 113, 0.14);
    }

    /* 16개 카드 선택 그리드 */
    .cards-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .cards-count {
      font-size: 13px;
      font-weight: 750;
      color: var(--primary);
    }

    .select-card-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 9px;
    }

    .select-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 70px;
      padding: 10px 8px;
      border: 1.5px solid var(--line);
      border-radius: 13px;
      background: var(--surface-elevated);
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      text-align: center;
      user-select: none;
      transition: all 0.15s ease;
    }
    .select-card:hover {
      border-color: var(--primary-border);
      background: #fcfcfc;
      color: var(--text);
    }
    .select-card.selected {
      border-color: var(--primary);
      background: var(--primary-soft);
      color: var(--primary);
      font-weight: 800;
      box-shadow: 0 2px 8px rgba(40, 90, 113, 0.12);
    }

    .button-row {
      display: flex;
      gap: 8px;
      margin-top: 24px;
    }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 0 18px;
      border-radius: var(--radius-btn);
      background: var(--primary);
      color: #ffffff;
      font-size: 15px;
      font-weight: 750;
      transition: background 0.15s ease, transform 0.1s ease;
    }
    .button:hover { background: var(--primary-hover); }
    .button:active { transform: translateY(1px); }
    .button.secondary {
      background: var(--surface-tint);
      color: var(--text);
      border: 1px solid var(--line);
    }
    .button.secondary:hover { background: var(--accent-sand); }
    .button.danger { background: var(--danger); color: #ffffff; }
    .button.flex { flex: 1; }

    /* 상세 보기 */
    .profile-detail {
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 24px 20px;
      background: var(--surface-elevated);
      box-shadow: var(--shadow-soft);
    }

    .profile-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
    }

    .profile-name {
      margin: 0;
      font-size: 20px;
      font-weight: 850;
      color: var(--text);
    }

    .profile-date {
      margin: 4px 0 0;
      font-size: 12.5px;
      color: var(--muted);
    }

    .detail-section {
      margin-top: 20px;
    }

    .detail-label {
      font-size: 12px;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 6px;
      letter-spacing: 0.01em;
    }

    .detail-value {
      font-size: 15px;
      line-height: 1.65;
      color: var(--text);
      white-space: pre-wrap;
      word-break: keep-all;
    }

    .session-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 11px 15px;
      margin-bottom: 16px;
      border-radius: 12px;
      background: var(--surface-tint);
      border: 1px solid var(--line);
      font-size: 13px;
      color: var(--muted);
    }
    .session-bar strong { color: var(--text); }

    .logout-link {
      background: none;
      color: var(--primary);
      font-size: 12.5px;
      font-weight: 750;
      text-decoration: underline;
    }

    /* 토스트 및 설정 패널 */
    .toast {
      position: fixed;
      left: 50%;
      bottom: calc(28px + var(--safe-bottom));
      z-index: 100;
      width: calc(100% - 32px);
      max-width: 460px;
      padding: 13px 16px;
      border-radius: 14px;
      background: rgba(35, 32, 32, 0.94);
      color: #fcfcfc;
      font-size: 14px;
      font-weight: 700;
      text-align: center;
      transform: translateX(-50%);
      opacity: 0;
      pointer-events: none;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
      transition: opacity 0.18s ease, transform 0.18s ease;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
    .toast.success { background: rgba(45, 102, 129, 0.96); }
    .toast.error { background: rgba(184, 74, 57, 0.96); }
    .toast.warning { background: rgba(156, 107, 33, 0.96); }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: none;
      background: rgba(25, 23, 23, 0.42);
      backdrop-filter: blur(2px);
    }
    .modal-backdrop.open { display: block; }

    .settings-panel {
      position: fixed;
      top: 0;
      right: 0;
      z-index: 90;
      width: min(440px, 90vw);
      height: 100vh;
      display: flex;
      flex-direction: column;
      background: var(--surface);
      border-left: 1px solid var(--line);
      box-shadow: -20px 0 40px rgba(25, 23, 23, 0.15);
      transform: translateX(100%);
      transition: transform 0.22s ease;
    }
    .settings-panel.open { transform: translateX(0); }

    .settings-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 58px;
      padding: 0 18px;
      border-bottom: 1px solid var(--line);
    }
    .settings-title { font-size: 16.5px; font-weight: 850; }
    .settings-body {
      flex: 1;
      overflow-y: auto;
      padding: 18px 18px calc(22px + var(--safe-bottom));
    }
    .settings-actions { display: grid; gap: 8px; margin-top: 20px; }
    .settings-actions .button { width: 100%; min-height: 44px; font-size: 14px; }

    .drawer-menu {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-bottom: 18px;
      padding: 4px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--surface-tint);
    }
    .drawer-menu-button {
      min-height: 38px;
      border-radius: 9px;
      background: transparent;
      color: var(--muted);
      font-size: 13.5px;
      font-weight: 750;
    }
    .drawer-menu-button.active {
      background: var(--surface-elevated);
      color: var(--text);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .help-title { margin: 16px 0 8px; font-size: 14.5px; font-weight: 850; }
    .help-title:first-child { margin-top: 0; }
    .code-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 8px;
    }
    .code-label { color: var(--muted); font-size: 12px; font-weight: 700; }
    .copy-button {
      min-height: 32px;
      padding: 0 12px;
      border-radius: 8px;
      background: var(--primary-soft);
      color: var(--primary);
      border: 1px solid var(--primary-border);
      font-size: 12px;
      font-weight: 800;
    }
    .code-block {
      overflow: auto;
      max-height: 44vh;
      margin: 8px 0 0;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #1e1c1c;
      color: #f6f5f5;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 11.5px;
      line-height: 1.55;
      white-space: pre;
    }

    .hidden { display: none !important; }

    @media (max-width: 640px) {
      .app { border: 0; }
      .member-grid { grid-template-columns: 1fr; }
      .select-card-grid { grid-template-columns: repeat(2, 1fr); }
      .settings-panel {
        top: auto; bottom: 0; width: 100%; height: auto;
        max-height: calc(100vh - 46px);
        border-radius: 20px 20px 0 0;
        border-left: 0;
        transform: translateY(100%);
      }
      .settings-panel.open { transform: translateY(0); }
    }
  

:root{--bg:#f1f0f0;--surface:#faf9f9;--surface-elevated:#ffffff;--text:#262222;--muted:#6a6060;--line:#ccdce4;--line-strong:#99b9c8;--primary:#2b596d;--primary-hover:#322d2d;--primary-soft:#f3f1f1;--primary-border:#b6cfdb;--radius-input:8px;--radius-btn:8px}
[hidden]{display:none!important} body{background:var(--bg);background-image:none;font-family:"DM Sans","Noto Sans KR",sans-serif;line-height:1.6} .app{max-width:46rem;min-height:100dvh;box-shadow:0 0 4rem #332f2f10}.topbar{height:calc(3.75rem + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);background:rgba(250, 249, 249,.96)} .topbar-title{font-size:.94rem;letter-spacing:-.03em}.topbar-title:before{content:"";width:.5rem;height:.5rem;background:#55879e;border-radius:50%}.icon-button{width:44px;height:44px}.page-body{padding:0 max(1.5rem,env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1.5rem,env(safe-area-inset-left))}.auth-card{max-width:28rem;margin:0 auto;border:0;border-radius:0;box-shadow:none;background:transparent;padding:clamp(2rem,7vh,4rem) 0 0}.eyebrow,.survey-meta{display:flex;align-items:center;gap:.55rem;color:#34677f;font-size:.64rem;letter-spacing:.12em;font-weight:700}.brand-dot{height:.5rem;width:.5rem;background:#598ca4;border-radius:50%}.eyebrow-end{margin-left:auto;color:#817575;font-size:.58rem}.auth-copy{margin:clamp(3rem,9vh,5rem) 0 2.6rem}.kicker{color:#366c85;font-size:.75rem;font-weight:700;margin:0 0 1rem;letter-spacing:.03em}.auth-title,.survey-step h1{font-size:clamp(1.9rem,7vw,2.65rem);line-height:1.3;letter-spacing:-.065em;font-weight:600;margin:0}.auth-desc,.step-desc{font-size:.94rem;line-height:1.8;color:var(--muted);margin:1rem 0 0;word-break:keep-all}.field{gap:.45rem}.field label,.cards-header{font-weight:700;font-size:.85rem}.field-help{margin:0 0 .35rem;font-size:.78rem;color:var(--muted)} input[type=text],input[type=password],textarea{font-size:1rem;border-radius:8px;border:1px solid #adc7d3;background:#ffffff}input[type=text],input[type=password]{height:3.5rem;padding:0 1rem}textarea{min-height:10rem}input:focus-visible,textarea:focus-visible,button:focus-visible{outline:3px solid #5d94ae;outline-offset:3px}.password-wrap{position:relative}.password-wrap input{padding-right:5rem}.text-button{background:none;color:#306076;font-size:.8rem;font-weight:700;text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:0 .15rem}.show-password{position:absolute;right:.9rem;top:50%;transform:translateY(-50%)}.inline-error{color:#aa352b;font-size:.8rem;min-height:1.4em;margin:.6rem 0}.security-note{font-size:.75rem;line-height:1.6;color:var(--muted);margin:.7rem 0 0}.button.primary-action{display:flex;justify-content:space-between;width:100%;min-height:3.5rem;padding:0 1.15rem;font-size:.92rem;border-radius:8px}.primary-action span{font-size:1.2rem}.auth-back,.survey-back{margin-top:.45rem}.auth-footer{border-top:1px solid var(--line);margin-top:3rem;padding-top:1rem;color:var(--muted);font-size:.8rem;display:flex;align-items:center;gap:.6rem}.survey-shell{max-width:28rem;margin:0 auto;padding-top:2rem}.survey-meta{justify-content:space-between}.survey-progress{display:flex;justify-content:space-between;margin-top:2.5rem;color:#4f7e94;font-size:.7rem;font-weight:700}.progress-track{height:2px;background:#d2e1e8;margin-top:.65rem}.progress-track span{display:block;height:100%;width:25%;background:#376e88;transition:width .2s}.survey-step{padding-top:clamp(2.4rem,7vh,4.5rem);min-height:20rem}.survey-step .field,.survey-step .nickname-box,.survey-step .cards-header{margin-top:2.5rem}.survey-step h1:focus{outline:none}.nickname-box{padding:1.3rem;background:#f6f5f5;border:1px solid #c7dce5;border-radius:10px}.nickname-value{font-size:1.25rem}.reroll-btn{min-height:44px;background:#fbfbfb}.optional{font-weight:400;color:#756a6a;margin-left:.3rem}.select-card-grid{grid-template-columns:repeat(2,1fr);gap:.5rem;margin-top:.75rem}.select-card{min-height:3.5rem;border-width:1px;border-radius:8px}.select-card.selected{box-shadow:inset 0 0 0 1px var(--primary)}.survey-actions{margin-top:2rem}.survey-account{border-top:1px solid var(--line);margin-top:3rem;padding-top:1rem;font-size:.75rem;color:var(--muted)}.directory-header{padding:2rem 1.5rem 1.25rem;background:transparent}.member-grid{padding:1.5rem}.member-card{box-shadow:none;border-radius:10px}.nav-tab.active:after{height:2px}.toast{font-size:.85rem}.auth-card .field input::placeholder,textarea::placeholder{color:#827676}@media (max-width:360px){.page-body{padding-left:1.1rem;padding-right:1.1rem}.eyebrow-end{display:none}.auth-title,.survey-step h1{font-size:1.85rem}.nickname-box{align-items:flex-start;flex-wrap:wrap}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}


/* 입력과 행동에 집중하는 화면 */
:root{--bg:#ffffff;--surface:#ffffff;--surface-elevated:#ffffff;--text:#221f1f;--muted:#386f88;--line:#f3f2f2;--line-strong:#cadbe2;--primary:#3c88ac;--primary-hover:#31708c;--primary-soft:#fafafa;--primary-border:#d0e5ee}
body,.app{background:#ffffff;background-image:none} .app{max-width:46rem;border:0;box-shadow:none}.topbar{background:#ffffff;border-bottom:0}.topbar-title:before{display:none}.topbar-title{font-weight:700}.nav-tabs{border-bottom:1px solid #f9f9f9}.nav-tab.active{color:#221f1f}.nav-tab.active:after{height:2px;background:#221f1f}
.page-body{padding-left:max(1.5rem,env(safe-area-inset-left));padding-right:max(1.5rem,env(safe-area-inset-right))}.auth-card,.survey-shell{max-width:29rem}.auth-card{padding:0;min-height:calc(100dvh - 3.75rem - env(safe-area-inset-top) - 2rem - env(safe-area-inset-bottom));display:flex;flex-direction:column}.auth-copy{margin:clamp(2.25rem,6vh,4rem) 0 2.5rem}.auth-title,.survey-step h1{font-size:clamp(1.5rem,5.9vw,1.75rem);line-height:1.4;letter-spacing:-.045em;font-weight:700;color:#221f1f}.auth-desc,.step-desc{margin-top:.75rem;font-size:.9375rem;line-height:1.65;color:#386f88;letter-spacing:-.025em}.field{gap:.5rem}.field label,.cards-header{font-size:.875rem;color:#346880;font-weight:600}.field-help{font-size:.875rem;color:#386f88}.field input[type=text],.field input[type=password],.field textarea{background:#f9f9f9;border:1px solid transparent;border-radius:12px;color:#221f1f;font-size:1rem}.field input[type=text],.field input[type=password]{height:3.5rem}.field input:focus,.field textarea:focus{background:#ffffff;border-color:#3c88ac}.field input::placeholder,.field textarea::placeholder{color:#6092aa}.inline-error:empty{display:none}.inline-error{margin:.75rem 0 0}.security-note{color:#386f88;font-size:.8125rem}.auth-card form{display:flex;flex-direction:column;flex:1}.auth-card .primary-action{margin-top:2rem}.button.primary-action{justify-content:center;min-height:3.5rem;border-radius:12px;font-size:1rem;font-weight:700;background:#3c88ac;letter-spacing:-.02em}.button.primary-action:hover{background:#31708c}.text-button{color:#346880;text-decoration:none;font-size:.875rem;font-weight:600}.auth-back,.survey-back{align-self:flex-start}.auth-footer{border:0;margin:0;padding:1.25rem 0 0;justify-content:center;color:#386f88;font-size:.875rem;gap:.45rem}.auth-footer .text-button{color:#3c88ac}.survey-shell{padding-top:1.5rem}.survey-progress{margin:0 0 .5rem;justify-content:flex-end;font-size:.8125rem;color:#386f88}.progress-track{margin:0;height:3px;background:#f9f9f9}.progress-track span{background:#3c88ac}.survey-step{padding-top:2.5rem;min-height:19rem}.survey-step .field,.survey-step .nickname-box,.survey-step .cards-header{margin-top:2rem}.nickname-box{padding:1.2rem 0;border:0;border-top:1px solid #f3f2f2;border-bottom:1px solid #f3f2f2;border-radius:0;background:none}.nickname-value{font-size:1.25rem;font-weight:700}.reroll-btn{background:#f9f9f9;border:0;color:#2c586c;border-radius:9px;min-height:44px}.select-card{background:#f9f9f9;border:1px solid transparent;border-radius:10px;color:#2c586c;min-height:3.5rem}.select-card.selected{background:#fafafa;border-color:#3c88ac;color:#31708c;box-shadow:none}.survey-actions{margin-top:2rem;display:flex;flex-direction:column}.survey-account{display:flex;justify-content:space-between;align-items:center;border:0;margin-top:2rem;padding-top:0;color:#386f88}.directory-header{background:#ffffff}.badge-count{background:#fafafa;color:#3c88ac}.member-card{box-shadow:none}.search-input{background:#f9f9f9;border:0}.topbar-title{color:#221f1f}
@media (max-width:360px){.page-body{padding-left:1.25rem;padding-right:1.25rem}.auth-title,.survey-step h1{font-size:1.5rem}.nickname-box{align-items:center;flex-wrap:nowrap}}


/* Paper zine: quiet paper, ink and restrained print details */
:root{--bg:#f0efef;--surface:#f9f8f8;--surface-elevated:#fdfdfd;--surface-tint:#f4f3f3;--text:#2b2727;--muted:#645a5a;--line:#afc8d4;--line-strong:#968b8b;--primary:#2e5b70;--primary-hover:#383232;--primary-soft:#f3f2f2;--primary-border:#98b9c8}
body{background:#f0efef;color:var(--text)} .app{background:var(--surface);box-shadow:0 0 3rem rgba(49, 44, 44,.055)}
.topbar{background:var(--surface);border-bottom:1px dashed var(--line)}.topbar-title{color:var(--text);font-family:"DM Sans","Noto Sans KR",sans-serif;font-size:.9rem;letter-spacing:-.025em}
.nav-tabs{background:var(--surface);border-bottom:1px dashed var(--line)}.nav-tab{color:#685f5f}.nav-tab.active{color:var(--text)}.nav-tab.active:after{background:var(--primary);height:2px}
.auth-title,.survey-step h1{font-family:"DM Sans","Noto Sans KR",sans-serif;color:var(--text);font-weight:700;letter-spacing:-.055em;line-height:1.48;word-break:keep-all}.auth-desc,.step-desc,.field-help{color:var(--muted)}
.field label,.cards-header{color:#504949}.field input[type=text],.field input[type=password],.field textarea,.search-input{background:#fdfdfd;border:1px solid #b0c9d4;border-radius:4px;color:var(--text);box-shadow:none}.field input:focus,.field textarea:focus,.search-input:focus{background:#fefefe;border-color:var(--primary);box-shadow:0 0 0 2px rgba(46, 91, 112,.12)}
.button.primary-action,.button{background:var(--primary);color:#fdfdfd;border-radius:5px}.button.primary-action:hover,.button:hover{background:var(--primary-hover)}.button.secondary{background:#f6f5f5;color:var(--text);border:1px solid var(--line)}.text-button{color:#316279}.auth-footer{border-top:1px dashed var(--line);color:var(--muted);margin-top:1rem}.auth-footer .text-button{color:var(--primary)}
.survey-progress{color:var(--muted);font-variant-numeric:tabular-nums}.progress-track{background:#e0dddd}.progress-track span{background:var(--primary)}.nickname-box{border-color:var(--line);border-top-style:dashed;border-bottom-style:dashed}.nickname-value{font-family:"DM Sans","Noto Sans KR",sans-serif;letter-spacing:-.04em}.reroll-btn{background:#f4f3f3;border:1px solid #b1cad5;border-radius:4px;color:var(--text)}
.select-card{background:#fdfdfd;border:1px dashed #9abac8;border-radius:4px;color:#2f5d72}.select-card.selected{background:var(--primary-soft);border:1px solid var(--primary);color:#2b5569;box-shadow:inset 0 0 0 1px var(--primary)}
.directory-header{background:var(--surface)}.directory-title,.profile-name{font-family:"DM Sans","Noto Sans KR",sans-serif;letter-spacing:-.04em}.badge-count{background:var(--primary-soft);color:var(--primary)}.member-card,.profile-detail{background:#fdfdfd;border:1px dashed #a7c2cf;border-radius:5px;box-shadow:none}.member-card:hover{border-color:var(--primary);box-shadow:none;transform:none}.member-card.is-mine{background:#f8f7f7;border:1px solid var(--primary)}.tag{background:#f5f4f4;border:1px solid #c6d8e0;border-radius:3px;color:#2e5b70}.avatar{background:#f4f3f3;border-color:#b6ceda;color:var(--primary);border-radius:4px}.profile-header{border-bottom:1px dashed var(--line)}.detail-label{color:var(--primary)}
.settings-panel{background:var(--surface)}.settings-head{border-bottom:1px dashed var(--line)}.toast{background:#393333;color:#fdfdfd}.survey-account{color:var(--muted)}


/* Welcome: a small editorial page, with the form as its central column. */
#authView .page-body{padding-bottom:max(1.5rem,env(safe-area-inset-bottom))}
#authView .auth-card{max-width:27rem;min-height:calc(100dvh - 3.75rem - env(safe-area-inset-top) - max(1.5rem,env(safe-area-inset-bottom)));padding:0;display:flex;flex-direction:column}
#authView .auth-copy{margin:clamp(3rem,9vh,5.25rem) 0 0;padding:0 0 1.8rem;border-bottom:1px solid #3b3535}
#authView .auth-title{font-family:"DM Sans","Noto Sans KR",sans-serif;font-size:clamp(1.5rem,6.3vw,1.875rem);line-height:1.48;font-weight:600;letter-spacing:-.055em;color:#2a2626}
#authView .auth-desc{margin:.875rem 0 0;font-size:.875rem;line-height:1.65;letter-spacing:-.02em;color:#665c5c}
#authForm{display:flex;flex:1;flex-direction:column;padding-top:1.75rem}
#authForm .field{gap:.625rem}
#authForm .field label{font-size:.8125rem;line-height:1.4;font-weight:700;color:#2f5d72;letter-spacing:-.01em}
#authForm .field-help{font-size:.8125rem;line-height:1.5;margin:0;color:#695f5f}
#authForm .field input{height:3.5rem;padding:0 .125rem;border:0;border-bottom:1px solid #9a9090;border-radius:0;background:transparent;box-shadow:none;color:#2a2626}
#authForm .field input:focus{border-bottom:2px solid #2d5a6e;background:transparent;box-shadow:none}
#authForm .field input::placeholder{color:#887d7d}
#authForm .password-wrap input{padding-right:4.75rem}
#authForm .show-password{right:0;color:#32637a;font-size:.8125rem}
#authForm .inline-error{margin:.75rem 0 0;font-size:.8125rem;line-height:1.55}
#authForm .primary-action{margin-top:2.25rem;min-height:3.5rem;border:1px solid #2c586c;border-radius:2px;background:#2c586c;color:#fdfdfd;font-size:.9375rem;letter-spacing:-.015em}
#authForm .primary-action:hover{background:#373232}
#authForm .auth-back{margin-top:.5rem;font-size:.8125rem;color:#635959}
#authView .auth-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:2.5rem 0 0;padding:.8rem 0 0;border-top:1px dashed #89aebf;font-size:.8125rem;line-height:1.5;color:#655c5c}
#authView .auth-footer .text-button{font-size:.8125rem;color:#2d596e;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
@media(max-width:360px){#authView .auth-copy{margin-top:2.75rem}#authView .auth-title{font-size:1.5rem}#authView .auth-footer{gap:.5rem}}


#nicknameDialog{width:min(27rem,calc(100% - 2rem));padding:1.5rem;border:1px solid #92b5c5;border-radius:3px;background:#f9f8f8;color:#2b2727;box-shadow:0 1rem 3rem #22222244}
#nicknameDialog::backdrop{background:rgba(29, 27, 27,.48)}
#nicknameDialog h2{margin:0;font-family:"DM Sans","Noto Sans KR",sans-serif;font-size:1.3rem}#nicknameDialog p{font-size:.875rem;color:#645a5a;line-height:1.6}#nicknameDialog .inline-error{color:#a4352c}.nickname-choice{display:flex;align-items:center;justify-content:space-between;border-block:1px dashed #afc8d4;margin:1.5rem 0;padding:.5rem 0}.nickname-choice strong{font-family:"DM Sans","Noto Sans KR",sans-serif;font-size:1.1rem}.nickname-actions{display:flex;gap:.5rem;margin-top:1.5rem}.nickname-actions .button{flex:1;min-height:3rem}.profile-header{flex-wrap:wrap}

.my-empty{text-align:left;width:100%;font:inherit}.my-write{margin-top:.5rem;color:var(--primary);font-size:.875rem;font-weight:700}
.account-strip{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem max(1.5rem,env(safe-area-inset-right)) 1rem max(1.5rem,env(safe-area-inset-left));border-bottom:1px dashed var(--line)}.account-strip>div{display:grid;gap:.15rem;min-width:0}.account-caption{font-size:.75rem;color:var(--muted)}#mainNickname{font-family:"DM Sans","Noto Sans KR",sans-serif;font-size:1rem;overflow-wrap:anywhere}.account-strip .text-button{flex:none;font-size:.8125rem}

/* Authentication interaction: stable geometry, quiet at rest, clear on focus. */
#authView .auth-card{max-width:27rem}
#authView .auth-copy{padding-bottom:1.75rem}
#authView .auth-title{word-break:keep-all;text-wrap:balance}
#authForm{padding-top:1.625rem}
#authForm .field{gap:.5rem}
#authForm .field label{font-size:.8125rem;line-height:1.45}
#authForm .field input[type=text],#authForm .field input[type=password]{display:block;width:100%;height:3.625rem;padding:0 .875rem;border:1px solid transparent;border-bottom-color:#908484;border-radius:3px;background:transparent;color:#2a2626;font-size:1rem;line-height:1.4;outline:none;box-shadow:none;transition:border-color 180ms ease,background-color 180ms ease,box-shadow 180ms ease}
#authForm .field input[type=text]:focus,#authForm .field input[type=password]:focus{border-color:#306076;background:#fdfdfd;box-shadow:0 0 0 2px rgba(48, 96, 118,.13)}
#authForm .field input::placeholder{color:#796e6e;opacity:1}
#authForm .password-wrap input[type=password],#authForm .password-wrap input[type=text]{padding-right:5rem}
#authForm .password-wrap .show-password{right:.5rem;min-width:3.5rem;min-height:2.75rem;padding:0 .5rem;border-radius:3px;text-decoration:none;transition:background-color 140ms ease}
#authForm .password-wrap .show-password:active{background:#f2f1f1}
#authForm .password-wrap .show-password:focus-visible,#authForm .auth-back:focus-visible,#authView .auth-footer button:focus-visible{outline:2px solid #306076;outline-offset:2px}
#authForm .inline-error:not(:empty){margin-top:.625rem;line-height:1.55;color:#a43c31}
#authForm .primary-action{min-height:3.5rem;margin-top:2rem;border-radius:3px;transition:background-color 140ms ease,transform 140ms ease,opacity 140ms ease}
#authForm .primary-action:active:not(:disabled){transform:translateY(1px);background:#332e2e}
#authForm .primary-action:focus-visible{outline:3px solid #72a1b7;outline-offset:3px}
#authForm .primary-action:disabled{cursor:wait;opacity:.64}
#authView .auth-footer .text-button{min-width:2.75rem;text-align:right}
@media (hover:hover){#authForm .password-wrap .show-password:hover{background:#f5f3f3}}
@media (prefers-reduced-motion:reduce){#authForm .field input[type=text],#authForm .field input[type=password],#authForm .primary-action,#authForm .password-wrap .show-password{transition:none}}


#authForm .field #authLoginId{border:2px solid transparent;border-bottom-color:#908484;border-radius:0;transition:border-color 180ms ease,background-color 180ms ease}
#authForm .field #authLoginId:focus{border:2px solid #2c586c;background:transparent;box-shadow:none;outline:none}
@media (prefers-reduced-motion:reduce){#authForm .field #authLoginId{transition:none}}


#authForm .button.primary-action{align-self:flex-end;width:auto;min-width:8.25rem;max-width:100%;min-height:3.25rem;padding-inline:1.5rem;justify-content:center;white-space:normal;line-height:1.35}


#authForm .auth-reveal{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows 260ms ease,opacity 200ms ease,visibility 0s linear 260ms}
#authForm .auth-reveal.is-open{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows 260ms ease,opacity 220ms ease,visibility 0s}
#authForm .auth-reveal-inner{min-height:0;overflow:hidden}
#authForm .auth-reveal-inner>.field{padding-top:1.5rem}
#authForm .field #authLoginId:focus{border-color:#4d7a8e;background:#f7f6f6;box-shadow:none}
@media(prefers-reduced-motion:reduce){#authForm .auth-reveal,#authForm .auth-reveal.is-open{transition:none}}


#authForm .field #authLoginId,#authForm .field #authLoginPw{border:2px solid transparent;border-bottom-color:#908484;border-radius:0;transition:border-color 180ms ease,background-color 180ms ease}
#authForm .field #authLoginId:focus,#authForm .field #authLoginPw:focus{border-color:#4d7a8e;background:#f7f6f6;box-shadow:none;outline:none}
#authView .auth-copy{margin-top:clamp(2.25rem,7vh,4rem);padding-bottom:1.25rem}
#authView .auth-desc{margin-top:.625rem}
#authForm{padding-top:1.25rem}
#authForm .field{gap:.25rem}
#authForm .auth-reveal-inner>.field{padding-top:.875rem}
#authForm .primary-action{margin-top:1.5rem}
@media(prefers-reduced-motion:reduce){#authForm .field #authLoginId,#authForm .field #authLoginPw{transition:none}}


/* The underline and focus frame are independent of the input box. */
#authIdStep .field{position:relative}
#authForm .field #authLoginId,#authForm .field #authLoginId:focus{position:relative;z-index:1;border:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;outline:none}
#authIdStep .field::before,#authIdStep .field::after{content:"";position:absolute;left:0;right:0;bottom:0;pointer-events:none;box-sizing:border-box}
#authIdStep .field::before{height:2px;background:#908484;opacity:1;transition:opacity 160ms ease}
#authIdStep .field::after{height:3.625rem;border:2px solid #4d7a8e;background:#f7f6f6;opacity:0;transition:opacity 160ms ease}
#authIdStep .field:focus-within::before{opacity:0}
#authIdStep .field:focus-within::after{opacity:1}
@media(prefers-reduced-motion:reduce){#authIdStep .field::before,#authIdStep .field::after{transition:none}}


#authForm .button.primary-action.is-next{width:3.5rem;min-width:3.5rem;height:3.25rem;padding:0;display:flex;align-items:center;justify-content:center}
#authForm .button.primary-action.is-next svg{display:block;flex:none}


#authForm .field label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#authForm .field input::placeholder{opacity:1;transition:opacity 120ms ease}
#authForm .field input:focus::placeholder{opacity:0}
@media(prefers-reduced-motion:reduce){#authForm .field input::placeholder{transition:none}}

#authForm .show-password{display:inline-flex;align-items:center;justify-content:center}#authForm .show-password svg{display:block;pointer-events:none}
#authView .auth-copy{border-bottom:0;padding-bottom:0}#authForm{padding-top:2rem}

.directory-active .topbar-title{display:none}.directory-active .topbar-left{min-width:0;flex:1}.top-account{display:flex;align-items:center;gap:.3rem;min-width:0;color:var(--text)}.top-account svg{flex:none}.top-account strong{font-size:.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:8rem}.top-edit,.top-switch{min-height:44px;background:transparent;color:#33667e;font-size:.75rem;padding:0 .25rem;white-space:nowrap}.top-switch{color:#6b6161}.topbar-right{min-width:auto;flex:none}.directory-header{padding:.375rem 1rem 0;background:transparent;border:0}.search-row{display:flex;justify-content:flex-end;align-items:center;gap:.25rem}.search-wrap{width:min(12rem,60vw)}.search-label,.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.search-wrap .search-input{width:100%;height:2.5rem;padding:0 .625rem;border:2px solid transparent;border-bottom-color:#908484;border-radius:0;background:transparent;font-size:.875rem;box-shadow:none;outline:none}.search-wrap .search-input:focus{border-color:#4d7a8e;background:#f7f6f6;box-shadow:none}.search-toggle{width:44px;height:44px;display:grid;place-items:center;background:transparent;color:var(--text);padding:0}.search-toggle:focus-visible,.top-edit:focus-visible,.top-switch:focus-visible{outline:2px solid #306076;outline-offset:1px}.member-grid{padding-top:.5rem}@media(max-width:360px){.top-account strong{max-width:5rem}.topbar{padding-left:.75rem;padding-right:.75rem}.top-account{gap:.15rem}.top-edit,.top-switch{font-size:.7rem;padding:0 .15rem}}


.search-shell{width:44px;height:44px;display:flex;align-items:center;justify-content:flex-end;overflow:hidden;box-sizing:border-box;border:1px solid #c7d9e1;border-radius:50%;background:#f4f3f3;transition:width 260ms cubic-bezier(.2,.7,.2,1),border-radius 260ms ease,background-color 180ms ease,border-color 180ms ease}
.search-shell.is-open{width:min(15rem,calc(100vw - 2rem));border-radius:999px;background:#f7f7f7;border-color:#9cbbc9}
.search-shell .search-input{flex:1;min-width:0;width:0;height:100%;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);font-size:1rem;opacity:0;outline:none;box-shadow:none;transition:opacity 120ms ease,padding 260ms ease}
.search-shell.is-open .search-input{width:auto;padding:0 .75rem;opacity:1;transition:opacity 180ms ease 60ms,padding 260ms ease}
.search-shell .search-input:focus{border:0;background:transparent;box-shadow:none;outline:none}.search-shell:focus-within{border-color:#4d7a8e}.search-shell .search-toggle{flex:0 0 42px;width:42px;height:42px;border:0;background:transparent}.search-shell .search-toggle:focus-visible{outline:2px solid #306076;outline-offset:-4px}
@media(prefers-reduced-motion:reduce){.search-shell,.search-shell .search-input,.search-shell.is-open .search-input{transition:none}}


.search-shell .search-clear{flex:0 0 0;width:0;height:42px;padding:0;overflow:hidden;opacity:0;border:0;background:transparent;color:#386f88;display:grid;place-items:center;transition:flex-basis 260ms ease,opacity 160ms ease}
.search-shell.is-open.has-value .search-clear{flex-basis:40px;width:40px;opacity:1}
.search-shell .search-clear:focus-visible{outline:2px solid #306076;outline-offset:-4px}
@media(prefers-reduced-motion:reduce){.search-shell .search-clear{transition:none}}

.search-shell input[type="search"]::-webkit-search-cancel-button{display:none}.search-shell input[type="search"]::-ms-clear{display:none}
.top-edit{width:44px;min-width:44px;height:44px;display:grid;place-items:center;padding:0}.panel-heading{display:flex;align-items:center;gap:.25rem}.panel-item{width:100%;min-height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 .25rem;background:transparent;border-bottom:1px dashed var(--line);color:var(--text);font-weight:600;text-align:left}.panel-item span{font-size:1.4rem;font-weight:400}.panel-footer{padding:.75rem 1.125rem calc(.75rem + env(safe-area-inset-bottom));border-top:1px dashed var(--line)}.panel-logout{min-height:44px;display:inline-flex;align-items:center;gap:.625rem;background:transparent;color:var(--text);font-size:.875rem;font-weight:600;padding:0}.panel-logout:focus-visible,.panel-item:focus-visible{outline:2px solid #306076;outline-offset:2px}

.question-index{margin:0 0 1rem;color:#387089;font-size:.75rem;font-weight:700;letter-spacing:.02em}.survey-step h1{word-break:keep-all}.survey-step .step-desc{word-break:keep-all}.survey-step .field textarea{min-height:12rem}.member-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.member-card.collectible,.member-card.my-empty{aspect-ratio:2 / 3;min-width:0;position:relative;padding:clamp(.875rem,3.5vw,1.35rem);border:1px solid #afc8d4;background:#fdfdfd;border-radius:3px;box-shadow:2px 3px 0 #cfe1e9;display:flex;flex-direction:column;gap:0}.member-card.collectible.is-mine,.member-card.my-empty{border-color:#538399;background:#f9f8f8}.collectible-top,.collectible-footer{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-size:.7rem;line-height:1.4;color:#376d87}.collectible-top{padding-bottom:.75rem;border-bottom:1px dashed #b2cad6}.collectible-body{flex:1;min-height:0;padding-top:clamp(1rem,5vw,2rem);overflow:hidden}.collectible-index{font-size:.65rem;color:#4e7c91;font-weight:700}.collectible-thought{margin:.75rem 0 0;font-size:clamp(.9rem,3.7vw,1.2rem);line-height:1.55;letter-spacing:-.035em;font-weight:600;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}.collectible-footer{padding-top:.75rem;border-top:1px solid #c6d8e1}.collectible-name{font-size:.8rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-card.my-empty{align-items:flex-start;justify-content:space-between}.my-empty .member-sub{margin:auto 0;color:#376d87}.member-card:focus-visible{outline:3px solid #5d94ae;outline-offset:3px}@media(min-width:700px){.member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:340px){.member-grid{gap:.5rem;padding-inline:1rem}.collectible-thought{-webkit-line-clamp:4}}


.select-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin-top:.75rem}.select-card{aspect-ratio:2 / 3;min-height:0;padding:.5rem;border:1px solid #afc8d4;border-radius:3px;background:#fdfdfd;box-shadow:2px 2px 0 #cfe1e9;overflow-wrap:anywhere;font-size:.8rem}.select-card.selected{border:2px solid #34677f;background:#f3f2f2;color:#2b5569;box-shadow:2px 2px 0 #c7dbe4}.survey-step .cards-header{margin-top:2rem}.member-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr));gap:.75rem}.member-card.member-thought{min-height:0;aspect-ratio:auto;padding:1rem;border:1px dashed #a7c2cf;box-shadow:none}.member-card.member-thought.is-mine{border:1px solid #538399}.thought-label{margin-top:1rem;color:#387089;font-size:.72rem;font-weight:700}.thought-text{margin:.3rem 0 0;line-height:1.55;font-size:.9rem;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

.member-card.my-empty{aspect-ratio:auto;min-height:8rem;box-shadow:none}.member-card.my-empty .member-sub{margin:.75rem 0}

.member-card.member-thought{display:flex;flex-direction:column;align-items:stretch;min-height:11rem;gap:1.5rem;padding:1.25rem}
.member-card.member-thought .thought-text{margin:0;flex:1;color:var(--text);font-size:clamp(1rem,3.8vw,1.2rem);font-weight:600;line-height:1.6;letter-spacing:-.035em;-webkit-line-clamp:4}
.member-card.member-thought .member-name{display:flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:600;color:var(--muted)}
.member-card.member-thought .mine-pill{font-size:.625rem;padding:.1rem .35rem}


.member-card.member-thought,.member-card.member-thought.is-mine{border:1px solid #afc8d4;background:#fdfdfd}
.member-card.my-empty{min-height:11rem;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.625rem;padding:1.25rem;border:1px dashed #94b6c6;background:transparent;border-radius:3px;box-shadow:none;text-align:center;color:#33667e;font-size:.875rem;font-weight:700}
.member-card.my-empty:hover{background:#f6f5f5;border-color:#538399}
.member-card.my-empty svg{display:block;flex:none}


/* Reserve the focus border so text never shifts. */
#surveyView .field textarea{box-sizing:border-box;resize:none;min-height:12rem;border:2px solid #aec8d4;border-radius:2px;background:transparent;box-shadow:none;color:var(--text);outline:none;transition:border-color 160ms ease}
#surveyView .field textarea:focus{border-color:#34677e;background:transparent;box-shadow:none;outline:none}
#authIdStep .field::before{background:#aec8d4}
#authIdStep .field::after{border-color:#34677e;background:transparent}
#authForm .field #authLoginPw{border:2px solid transparent;border-bottom-color:#aec8d4;background:transparent;box-shadow:none}
#authForm .field #authLoginPw:focus{border-color:#34677e;background:transparent;box-shadow:none;outline:none}
@media(prefers-reduced-motion:reduce){#surveyView .field textarea{transition:none}}

#surveyView .field label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.survey-step .cards-header{justify-content:flex-end}

.select-card.asset-card{position:relative;display:block;overflow:hidden;padding:0;background:#ffffff;border:0;border-radius:0;box-shadow:none;color:#111111;aspect-ratio:2/3}.asset-art,.asset-frame{position:absolute;inset:0;display:block;pointer-events:none}.asset-art{background-size:100% 100%;background-position:center;background-repeat:no-repeat}.asset-frame svg{display:block;width:100%;height:100%}.asset-title{position:absolute;left:12%;width:76%;bottom:13%;font-weight:700;font-size:clamp(.65rem,2.7vw,.9rem);line-height:1.2;overflow-wrap:anywhere;text-align:center}.asset-info{position:absolute;bottom:8%;left:10%;width:80%;text-align:center;font-size:clamp(.45rem,1.6vw,.6rem);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-card.asset-card.selected{background:#f7f7f7;outline:3px solid #34677f;outline-offset:2px;border:0;box-shadow:none}.card-asset-message,.card-asset-retry{grid-column:1/-1;font-size:.85rem;color:var(--muted)}


:root{--card-background:#f9f8f8}
.select-card.asset-card,.select-card.asset-card.selected{container-type:inline-size;background:var(--card-background)}
.select-card.asset-card .asset-title{font-size:6.8cqi;line-height:1.24;letter-spacing:-.055em}
.select-card.asset-card .asset-info{font-size:2.25cqi;line-height:1.4;letter-spacing:.08em}


.asset-number{position:absolute;top:7%;left:14%;width:72%;text-align:center;font-size:3.1cqi;font-weight:700;line-height:1.3;letter-spacing:.12em}
.asset-label{position:absolute;bottom:9%;left:12%;width:76%;display:flex;flex-direction:column;align-items:center;gap:1.8cqi;text-align:center}
.select-card.asset-card .asset-label .asset-title{position:static;width:100%;font-size:6.8cqi;line-height:1.24;font-weight:700;overflow-wrap:anywhere}
.asset-category{display:block;max-width:100%;font-size:2.7cqi;line-height:1.35;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


.select-card.asset-card .asset-category{position:absolute;top:7%;left:14%;width:72%;max-width:none;text-align:center;font-size:2.7cqi;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.select-card.asset-card .asset-label .asset-number{position:static;display:block;width:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:3.1cqi;font-weight:700;line-height:1.3;letter-spacing:.12em}


/* Selection cards: readable at the size used in the app. */
#selectCardGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.select-card.asset-card .asset-category{font-size:6cqi;line-height:1.3;letter-spacing:.015em}
.select-card.asset-card .asset-label .asset-number{font-size:5.8cqi;line-height:1.25;letter-spacing:.08em}
.select-card.asset-card .asset-label .asset-title{font-size:8cqi;line-height:1.2;letter-spacing:-.04em}
.select-card.asset-card .asset-label{gap:1.5cqi}
@media (min-width:620px){#selectCardGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}


:root{--card-background:#ffffff}
.select-card.asset-card,.select-card.asset-card.selected{aspect-ratio:3/4;background:var(--card-background);container-type:inline-size}
.asset-card .asset-art{background-size:cover;background-position:center}
.select-card.asset-card .asset-category{position:absolute;top:6.5%;left:8.6667%;width:82.6667%;height:7.5%;display:flex;align-items:center;justify-content:center;font:700 9.333cqi/1.22 Inter,"Noto Sans KR",sans-serif;letter-spacing:0}
.select-card.asset-card .asset-label{position:absolute;inset:0;width:auto;display:block;pointer-events:none}
.select-card.asset-card .asset-label .asset-number{position:absolute;top:71%;left:8.6667%;width:82.6667%;height:7.5%;display:flex;align-items:center;justify-content:center;font:700 6.667cqi/1.2 Inter,ui-monospace,monospace;letter-spacing:0}
.select-card.asset-card .asset-label .asset-title{position:absolute;top:78.5%;left:8.6667%;width:82.6667%;height:15%;display:flex;align-items:center;justify-content:center;font:700 10.667cqi/1.22 Inter,"Noto Sans KR",sans-serif;letter-spacing:0;overflow:hidden;word-break:keep-all}


.select-card.asset-card .asset-category{top:6.5%;left:8.6667%;width:82.6667%;height:7.5%;color:rgba(0, 0, 0,.5);font-size:9.333cqi;line-height:1.2143}
.select-card.asset-card .asset-label .asset-number{top:3.5%;left:5.3333%;width:89.3333%;height:6%;justify-content:flex-start;text-align:left;color:rgba(0, 0, 0,.5);font-size:6.667cqi;line-height:1.2}
.select-card.asset-card .asset-label .asset-title{top:79%;left:8.6667%;width:82.6667%;height:15%;color:#000000;font-size:10.667cqi;line-height:1.21875}


#selectCardGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem}
#selectCardGrid .asset-card{opacity:.55;transition:opacity 160ms ease,outline-color 160ms ease}
#selectCardGrid .asset-card.selected{opacity:1}
@media(prefers-reduced-motion:reduce){#selectCardGrid .asset-card{transition:none}}


#selectCardGrid .asset-card.selected{outline:none;box-shadow:none;border:0}
#selectCardGrid .asset-card:focus-visible{outline:2px solid #34677f;outline-offset:3px}


#selectCardGrid .asset-card.selected{box-shadow:4px 4px 0 #34677f;position:relative;z-index:1}
@media(max-width:360px){#selectCardGrid .asset-card.selected{box-shadow:3px 3px 0 #34677f}}


#selectCardGrid .asset-card{opacity:.2;filter:grayscale(1);transition:opacity 160ms ease,filter 160ms ease}
#selectCardGrid .asset-card.selected{opacity:1;filter:none}
@media(prefers-reduced-motion:reduce){#selectCardGrid .asset-card{transition:none}}

#selectCardGrid .asset-card{transition:none}

#selectCardGrid .asset-card{filter:none}
#selectCardGrid .asset-card .asset-art{filter:grayscale(1)}
#selectCardGrid .asset-card.selected .asset-art{filter:none}
#selectCardGrid .asset-card .asset-art-gray{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;display:none}
#selectCardGrid .asset-card.gray-ready:not(.selected) .asset-art{visibility:hidden}
#selectCardGrid .asset-card.gray-ready:not(.selected) .asset-art-gray{display:block}
