.account-search-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}
.top .account-search-actions button {
  font-size: 11px;
  padding: 5px 8px;
  border-color: #eadde0;
  color: #975565;
}
.top #accountButton {
  min-height: 34px;
  font-size: 12px;
}
.top #accountButton.icon-button {
  width: 34px;
  padding: 7px;
}
#accountDialog {
  width: min(470px, calc(100% - 24px));
  max-height: 90dvh;
  border: 0;
  border-radius: 22px;
  padding: 32px;
  overflow: auto;
  box-shadow: 0 18px 80px #392c3540;
  color: #30272a;
}
#accountDialog::backdrop {
  background: #33252e70;
  backdrop-filter: blur(3px);
}
#accountClose {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f6f2f1;
  color: #8c7e7b;
  font-size: 18px;
}
#accountDialog h2 {
  margin: 16px 0;
  font-size: 29px;
  line-height: 1.4;
  letter-spacing: -1px;
}
.account-logo {
  width: 125px;
  height: auto;
  margin: 9px 0;
}
.account-intro {
  font-size: 14px;
  color: #817478;
  line-height: 1.8;
}
.account-news {
  font-size: 13px;
  line-height: 1.8;
  padding: 13px;
  background: #fff3f5;
  border-radius: 12px;
  color: #9a5262;
  margin: 19px 0;
}
.account-note {
  font-size: 12px;
  line-height: 1.7;
  color: #99878d;
}
#oauthButtons {
  display: grid;
  gap: 10px;
}
.oauth-button {
  position: relative;
  width: 100%;
  min-height: 48px;
  border: 1px solid #ded9d9;
  border-radius: 12px;
  background: white;
  font-weight: 700;
}
.oauth-button .oauth-symbol {
  position: absolute;
  left: 18px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.1;
}
.oauth-google .oauth-symbol {
  color: #4285f4;
}
.oauth-naver {
  background: #03c75a;
  border-color: #03c75a;
  color: #fff;
}
.oauth-kakao {
  background: #fee500;
  border-color: #fee500;
  color: #382124;
}
.oauth-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.account-secondary {
  display: block;
  width: 100%;
  min-height: 42px;
  background: white;
  border: 0;
  color: #8a787f;
  font-size: 12px;
  margin-top: 14px;
}
#accountStatus {
  font-size: 12px;
  line-height: 1.7;
  color: #a34660;
  margin: 14px 0 0;
}
#accountStatus:empty {
  display: none;
}
.account-step {
  font-size: 12px;
  color: #c24f6b;
  background: #fff0f3;
  padding: 6px 10px;
  border-radius: 20px;
}
#preferencesForm fieldset {
  padding: 0;
  border: 0;
  margin: 23px 0;
}
#preferencesForm legend {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
#preferencesForm small {
  font-size: 11px;
  font-weight: 400;
  color: #a1848c;
  margin-left: 5px;
}
.preference-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preference-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  border: 1px solid #e7dde0;
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}
.preference-chip:has(input:checked) {
  background: #fff0f4;
  border-color: #ed99ac;
  color: #a93150;
}
.preference-chip input {
  accent-color: #e34859;
  width: 15px;
  height: 15px;
  margin: 0;
}
.news-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.news-choice input {
  accent-color: #e34859;
  width: 17px;
  height: 17px;
}
.account-submit {
  width: 100%;
  min-height: 46px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
}
.account-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.account-menu {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.account-menu button {
  min-height: 46px;
  border: 1px solid #eee2e7;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  padding: 12px;
  font-size: 14px;
}
.account-menu button:hover {
  background: #fff4f7;
}
.saved-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eee3e7;
  padding: 10px 0;
}
.saved-search-row > button {
  min-height: 40px;
  background: white;
  border: 0;
  text-align: left;
}
.saved-search-row > button:first-child {
  flex: 1;
  font-size: 14px;
}
.saved-search-row > button:last-child {
  font-size: 11px;
  color: #a38891;
}
#searchSaveForm label {
  display: grid;
  gap: 10px;
  font-size: 13px;
}
#searchSaveName {
  width: 100%;
  padding: 12px;
  border: 1px solid #e1d8dc;
  border-radius: 10px;
  font-size: 16px;
}
@media (max-width: 600px) {
  #accountDialog {
    padding: 25px 22px;
    max-height: 88dvh;
  }
  #accountDialog h2 {
    font-size: 25px;
  }
  .top .account-search-actions button {
    min-height: 30px;
  }
  .top #accountButton {
    min-height: 34px;
  }
  .account-intro {
    font-size: 13px;
  }
  .account-news {
    font-size: 12px;
  }
  .preference-chip {
    min-height: 42px;
  }
}

#accountDialog {
  max-width: 470px;
}
#accountDialog .preference-chip {
  margin: 0;
}
#accountDialog .news-choice {
  margin: 12px 0;
}
#preferencesForm fieldset {
  margin: 18px 0;
}
.account-submit {
  position: relative;
}

.preference-category-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.preference-category-icon .ui-icon {
  width: 17px;
  height: 17px;
}
.account-search-actions[hidden],.account-menu button[hidden]{display:none}

#connectedProviderList{display:grid;gap:8px}.connected-provider-row{display:flex;align-items:center;gap:11px;padding:11px 12px;border:1px solid #eee7e3;border-radius:12px;background:#fff}.provider-mark{width:34px;height:34px;display:inline-grid;place-items:center;flex-shrink:0;border-radius:10px;font:bold 22px Arial,sans-serif}.provider-google{color:#4285f4;background:#f2f6fd}.provider-naver{color:#fff;background:#03c75a}.provider-kakao{color:#3b2921;background:#fee500}.provider-info{flex:1;display:grid;gap:4px}.provider-info strong{font-size:13px}.provider-info small{font-size:11px;color:#9a8b83}.disconnect-provider{padding:7px 9px;border:1px solid #e6ddd7;border-radius:8px;background:#fff;font-size:11px;color:#786b63}#withdrawMembership{display:block;margin:10px 2px 20px auto;padding:4px 0;background:transparent;border:0;font-size:11px;color:#9b8d86;text-decoration:underline;text-underline-offset:3px}.account-icon-menu{display:flex;align-items:center;gap:10px}.account-icon-menu>span{display:inline-flex;color:#b5828f}.account-confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.account-confirm-actions button{min-height:40px;padding:9px 15px;border:1px solid #ded5ce;border-radius:9px;background:#fff}.account-confirm-actions .danger-action{color:#fff;background:#d8425a;border-color:#d8425a}.account-confirm-actions button:disabled{opacity:.45;cursor:not-allowed}.withdraw-confirm-label{line-height:1.7}.withdraw-confirm-label input{width:100%;padding:10px;border:1px solid #ded5ce;border-radius:8px}


.account-legal-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;margin:22px 0 3px;font-size:12px;color:#9a8b84}.account-legal-links a{display:inline-block;color:#87766f;text-decoration:none;padding:8px 0;text-underline-offset:3px}.account-legal-links a:first-child{font-weight:700;color:#66544d}.account-legal-links a:hover{text-decoration:underline}.account-legal-links a:focus-visible{outline:2px solid #df7289;outline-offset:3px}

#legalDialog{width:min(720px,calc(100% - 24px));max-width:720px;max-height:86dvh;padding:0;border:0;border-radius:18px;background:white;color:#302a27;box-shadow:0 15px 60px #0003;overflow:hidden}#legalDialog[open]{display:flex;flex-direction:column}#legalDialog::backdrop{background:#211c1966}.legal-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;padding:17px 20px;border-bottom:1px solid #eee5df;background:#fff}.legal-dialog-head h2{font-size:19px;margin:0}#legalClose{width:36px;height:36px;flex:0 0 36px;padding:0;border:0;border-radius:50%;background:#f5f2ef;color:#776a63;font-size:18px}#legalContent{min-height:0;padding:2px 22px 24px;overflow-y:auto;overscroll-behavior:contain;line-height:1.8;font-size:14px;scrollbar-width:thin;touch-action:pan-y}#legalContent h2{font-size:17px;margin:24px 0 10px}#legalContent p{margin:12px 0}#legalContent a{color:#ad3a51;text-underline-offset:3px}#legalContent .effective-date{padding:10px 12px;background:#faf6f3;border-radius:8px;font-size:12px;color:#87766f}#legalContent table{display:block;overflow-x:auto;border-collapse:collapse;width:100%;font-size:12px}#legalContent th,#legalContent td{min-width:105px;padding:9px;border:1px solid #e6ded8;text-align:left;vertical-align:top}#legalContent th{background:#faf8f6}#legalContent button{min-height:40px;border:1px solid #ded5ce;border-radius:8px;padding:8px 13px;background:#fff}@media(max-width:600px){#legalDialog{inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:90dvh;border-radius:20px 20px 0 0}.legal-dialog-head{padding:15px 16px}#legalContent{padding:0 17px calc(22px + env(safe-area-inset-bottom));font-size:13px}}

#accountDialog .account-welcome-title{font-size:clamp(20px,4.5vw,25px);line-height:1.5;word-break:keep-all;letter-spacing:-.6px}.account-coverage{font-size:11px;line-height:1.6;color:#9a8b84;margin:0 0 17px}

#accountDialog .account-welcome-tagline{display:block;white-space:nowrap;font-size:clamp(11px,3.5vw,16px);font-weight:500;letter-spacing:-.35px;line-height:1.7;margin-top:3px}#accountDialog .account-welcome-tagline strong{font-weight:900;color:#e34859;letter-spacing:-.3px}
