/* 보관함 새 화면 (2026-10-14, PROPOSAL) — app.js renderArchiveScene 이 그리는 arc2-* 판. 입력 화면 · 결과 화면 모두 같은 모양.
   결과 뒤 계정 보관 카드(account-save.css)와 같은 말: 평평한 타일 #131c2f + 머리카락 테두리, 글 #f3f5fa · #aab4c5 · #96a2b7,
   금 #d5b681 은 행동(계정으로 옮기기 · 지금 보는 결과)과 머리 글자에만, 유리 느낌(반투명 + 윗빛)은 단추에만. 들어오는 연출 없음.
   목록은 애플 「묶은 목록」: 한 판 안에 줄, 줄 사이 머리카락 선은 글 시작점부터. 도장 = 그 결과의 일주 한자. */
html body #archiveScene.arc2 {
  --arc2-tile: #131c2f;
  --arc2-t1: #f3f5fa;
  --arc2-t2: #aab4c5;
  --arc2-t3: #96a2b7;
  --arc2-gold: #d5b681;
  --arc2-line: rgba(235, 241, 255, .12);
  --arc2-hanja: -apple-system, BlinkMacSystemFont, "PingFang TC", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Noto Sans KR", "Malgun Gothic", sans-serif;
  box-sizing: border-box;
  width: 100%;
  max-width: 672px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--s-font, "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif);
  color: var(--arc2-t1);
  text-align: left;
}
html body #archiveScene.arc2 .arc2-sheet {
  box-sizing: border-box;
  padding: 22px 16px 14px;
  border-radius: 24px;
  background: var(--arc2-tile);
  box-shadow: inset 0 0 0 .5px rgba(235, 241, 255, .16);
}
html body #archiveScene.arc2 :is(h2, h3, p) { font-family: inherit; }

/* 머리 */
html body #archiveScene.arc2 .arc2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 4px; }
html body #archiveScene.arc2 .arc2-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1.3; color: var(--arc2-gold); }
html body #archiveScene.arc2 .arc2-head h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: var(--arc2-t1); word-break: keep-all; text-wrap: balance; }

/* 단추 공통 — 반투명 + 윗빛(유리 느낌), 44px 안팎 */
html body #archiveScene.arc2 :is(.arc2-close, .arc2-icon-btn, .arc2-pill, .arc2-text-btn, .arc2-open) {
  -webkit-appearance: none; appearance: none;
  margin: 0; border: 0; font: inherit; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
html body #archiveScene.arc2 :is(.arc2-close, .arc2-icon-btn, .arc2-pill, .arc2-text-btn, .arc2-open):focus-visible { outline: 2px solid var(--arc2-gold); outline-offset: 2px; }
html body #archiveScene.arc2 .arc2-ic { display: block; width: 20px; height: 20px; flex: 0 0 auto; }
html body #archiveScene.arc2 .arc2-close {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 40px; height: 40px; margin: -6px -6px 0 0; padding: 0; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16);
  color: #c9d1de;
}
html body #archiveScene.arc2 .arc2-close .arc2-ic { width: 18px; height: 18px; }
html body #archiveScene.arc2 .arc2-icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: transparent; color: var(--arc2-t2);
}
html body #archiveScene.arc2 .arc2-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 .5px rgba(235, 241, 255, .24);
  color: #dfe5ef; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
}
html body #archiveScene.arc2 .arc2-pill.is-gold {
  background: linear-gradient(180deg, rgba(213, 182, 129, .2), rgba(213, 182, 129, .1));
  box-shadow: inset 0 0 0 .5px rgba(213, 182, 129, .55);
  color: #ecd29b;
}
html body #archiveScene.arc2 .arc2-pill .acct-mark { width: 18px; height: 18px; flex: 0 0 auto; }
html body #archiveScene.arc2 .arc2-pill.arc2-provider { min-height: 44px; }
html body #archiveScene.arc2 .arc2-pill.arc2-provider[data-provider="kakao"] { background: #FEE500; box-shadow: none; color: rgba(0, 0, 0, .85); }

/* 계정 줄 */
html body #archiveScene.arc2 .arc2-account {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px;
  margin: 18px 0 0; padding: 12px 12px 12px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 .5px rgba(235, 241, 255, .10);
}
html body #archiveScene.arc2 .arc2-account.is-on { grid-template-columns: auto minmax(0, 1fr) auto; }
html body #archiveScene.arc2 .arc2-account-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #c9d1de;
}
html body #archiveScene.arc2 .arc2-account-mark[data-provider="google"] { background: #fff; }
html body #archiveScene.arc2 .arc2-account-mark[data-provider="kakao"] { background: #FEE500; }
html body #archiveScene.arc2 .arc2-account-mark :is(svg, .acct-mark) { width: 18px; height: 18px; }
html body #archiveScene.arc2 .arc2-account-text { display: grid; gap: 2px; min-width: 0; }
html body #archiveScene.arc2 .arc2-account-text b { overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--arc2-t1); text-overflow: ellipsis; white-space: nowrap; }
html body #archiveScene.arc2 .arc2-account-text small { font-size: 13px; line-height: 1.4; color: var(--arc2-t3); word-break: keep-all; }
html body #archiveScene.arc2 .arc2-account-actions { display: flex; align-items: center; gap: 6px; }

/* 상태 한 줄(옮겼어요 · 지웠어요 …) */
html body #archiveScene.arc2 .arc2-status {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 12px;
  background: rgba(213, 182, 129, .1); box-shadow: inset 0 0 0 .5px rgba(213, 182, 129, .36);
  font-size: 14px; line-height: 1.5; color: var(--arc2-t1); word-break: keep-all;
}
html body #archiveScene.arc2 .arc2-status[hidden] { display: none; }
html body #archiveScene.arc2 .arc2-status[data-tone="caution"] { background: rgba(255, 176, 102, .1); box-shadow: inset 0 0 0 .5px rgba(255, 176, 102, .42); color: #ffdcb8; }

/* 묶음(내 계정 · 이 브라우저) */
html body #archiveScene.arc2 .arc2-group { margin: 22px 0 0; }
html body #archiveScene.arc2 .arc2-group-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 4px; font-size: 15px; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; color: var(--arc2-t1); }
html body #archiveScene.arc2 .arc2-count {
  display: inline-grid; place-items: center; box-sizing: border-box; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: var(--arc2-t2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
html body #archiveScene.arc2 .arc2-group-note { margin: 3px 0 10px; padding: 0 4px; font-size: 13px; line-height: 1.5; color: var(--arc2-t3); word-break: keep-all; }
html body #archiveScene.arc2 .arc2-list {
  list-style: none; margin: 0; padding: 4px; border-radius: 18px;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 .5px rgba(235, 241, 255, .10);
}
html body #archiveScene.arc2 .arc2-empty { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .035); font-size: 14px; line-height: 1.55; color: var(--arc2-t2); word-break: keep-all; }

/* 줄 */
html body #archiveScene.arc2 .arc2-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 2px; margin: 0; padding: 0; }
html body #archiveScene.arc2 .arc2-row + .arc2-row::before { content: ""; position: absolute; top: 0; left: 66px; right: 10px; height: .5px; background: var(--arc2-line); }
html body #archiveScene.arc2 .arc2-open {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px;
  padding: 8px; border-radius: 14px; background: transparent; text-align: left;
}
html body #archiveScene.arc2 .arc2-seal {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: radial-gradient(120% 120% at 28% 18%, #283a62 0%, #16203a 58%, #0f1628 100%);
  box-shadow: inset 0 0 0 .5px rgba(213, 182, 129, .5), 0 1px 0 rgba(255, 255, 255, .04);
  color: #e8cd93; font-family: var(--arc2-hanja); font-size: 17px; font-weight: 500; line-height: 1; letter-spacing: .04em;
}
html body #archiveScene.arc2 .arc2-seal.is-blank { color: var(--arc2-gold); font-size: 15px; letter-spacing: 0; }
html body #archiveScene.arc2 .arc2-main { display: grid; gap: 3px; min-width: 0; }
html body #archiveScene.arc2 .arc2-main b { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--arc2-t1); }
html body #archiveScene.arc2 .arc2-kind { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #archiveScene.arc2 .arc2-sub { overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--arc2-t3); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
html body #archiveScene.arc2 .arc2-now {
  flex: 0 0 auto; padding: 2px 8px; border-radius: 999px;
  background: rgba(213, 182, 129, .14); box-shadow: inset 0 0 0 .5px rgba(213, 182, 129, .55);
  font-size: 11px; font-style: normal; font-weight: 700; line-height: 1.5; letter-spacing: 0; color: #ecd29b;
}
html body #archiveScene.arc2 .arc2-row.is-active .arc2-seal { box-shadow: inset 0 0 0 1px rgba(213, 182, 129, .9), 0 0 0 3px rgba(213, 182, 129, .14); }
html body #archiveScene.arc2 .arc2-actions { display: flex; align-items: center; gap: 0; padding-right: 2px; }
html body #archiveScene.arc2 .arc2-row-foot { grid-column: 1 / -1; padding: 0 8px 10px 66px; }

/* 아래(불러오기 · 모두 지우기) */
html body #archiveScene.arc2 .arc2-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  margin: 18px 0 0; padding: 8px 0 0; border-top: .5px solid var(--arc2-line);
}
html body #archiveScene.arc2 .arc2-text-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border-radius: 12px;
  background: none; color: var(--arc2-t2); font-size: 14px; font-weight: 600;
}
html body #archiveScene.arc2 .arc2-text-btn .arc2-ic { width: 18px; height: 18px; }
html body #archiveScene.arc2 .arc2-text-btn.is-danger { color: #e3a097; }
html body #archiveScene.arc2 .arc2-note { margin: 6px 0 0; padding: 0 8px; font-size: 13px; line-height: 1.55; color: #8590a4; word-break: keep-all; }

@media (hover: hover) {
  html body #archiveScene.arc2 .arc2-close:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .1)); color: var(--arc2-t1); }
  html body #archiveScene.arc2 .arc2-open:hover { background: rgba(255, 255, 255, .05); }
  html body #archiveScene.arc2 .arc2-icon-btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)); color: var(--arc2-t1); }
  html body #archiveScene.arc2 .arc2-icon-btn.arc2-delete:hover { color: #ffaaa0; }
  html body #archiveScene.arc2 .arc2-pill:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .07)); }
  html body #archiveScene.arc2 .arc2-pill.is-gold:hover { background: linear-gradient(180deg, rgba(213, 182, 129, .28), rgba(213, 182, 129, .15)); }
  html body #archiveScene.arc2 .arc2-pill.arc2-provider[data-provider="kakao"]:hover { background: #F4DC00; }
  html body #archiveScene.arc2 .arc2-text-btn:hover { color: var(--arc2-t1); }
  html body #archiveScene.arc2 .arc2-text-btn.is-danger:hover { color: #ffb4ab; }
}
html body #archiveScene.arc2 :is(.arc2-open, .arc2-icon-btn, .arc2-pill, .arc2-text-btn, .arc2-close):active { opacity: .78; }

/* 폰: 계정 줄의 단추는 글 아래로(이메일이 잘리지 않게). 로그인 전 연결 단추 둘은 600 미만에서 글 아래 두 칸으로 */
@media (max-width: 479px) {
  html body #archiveScene.arc2 .arc2-account.is-on { grid-template-columns: auto minmax(0, 1fr); }
  html body #archiveScene.arc2 .arc2-account.is-on .arc2-account-actions { grid-column: 2; margin: -2px 0 0 -12px; }
}
@media (max-width: 599px) {
  html body #archiveScene.arc2 .arc2-account:not(.is-on) { grid-template-columns: minmax(0, 1fr); }
  html body #archiveScene.arc2 .arc2-account:not(.is-on) .arc2-account-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
@media (min-width: 600px) {
  html body #archiveScene.arc2 .arc2-sheet { padding: 28px 24px 18px; border-radius: 28px; }
  html body #archiveScene.arc2 .arc2-head h2 { font-size: 26px; }
  html body #archiveScene.arc2 .arc2-row-foot { padding-left: 66px; }
}
/* 같은 흐름의 「저장한 결과 불러오기」 창(보관함이 비었을 때 「저장한 결과」로 연다) — 옛 명조 · 각진 칸을 같은 결로.
   카카오 칸의 노랑은 auth-kakao.css 그대로(여기서는 카카오 칸 배경을 건드리지 않는다) */
html body dialog#archiveEntryDialog.archive-entry-dialog {
  box-sizing: border-box; width: min(420px, calc(100vw - 32px)); max-width: none;
  border: 0; border-radius: 24px; background: #131c2f;
  box-shadow: inset 0 0 0 .5px rgba(235, 241, 255, .16), 0 24px 60px rgba(0, 0, 0, .5);
  color: #f3f5fa;
  font-family: var(--s-font, "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif);
}
html body dialog#archiveEntryDialog.archive-entry-dialog::backdrop { background: rgba(4, 8, 16, .62); }
html body dialog#archiveEntryDialog .archive-entry-panel { gap: 10px; padding: 24px 20px 20px; }
html body dialog#archiveEntryDialog .archive-entry-panel h3 { margin: 0 44px 0 0; font-family: inherit; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: #f3f5fa; word-break: keep-all; }
html body dialog#archiveEntryDialog .archive-entry-lede { margin: 0 0 6px; font-size: 14px; line-height: 1.55; color: #aab4c5; word-break: keep-all; }
html body dialog#archiveEntryDialog .archive-entry-close {
  top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); color: #c9d1de; font-size: 20px; line-height: 1; cursor: pointer;
}
html body dialog#archiveEntryDialog .archive-entry-options { gap: 8px; }
html body dialog#archiveEntryDialog .archive-entry-option {
  min-height: 60px; padding: 11px 16px; border: 0; border-radius: 16px;
  box-shadow: inset 0 0 0 .5px rgba(235, 241, 255, .16); font-family: inherit; color: #f3f5fa;
}
html body dialog#archiveEntryDialog .archive-entry-option:not([data-auth-provider="kakao"]) { background: rgba(255, 255, 255, .05); }
html body dialog#archiveEntryDialog .archive-entry-option[data-auth-provider="kakao"] { box-shadow: none; }
html body dialog#archiveEntryDialog .aeo-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: #f3f5fa; }
html body dialog#archiveEntryDialog .aeo-title .acct-mark { width: 18px; height: 18px; flex: 0 0 auto; }
html body dialog#archiveEntryDialog .aeo-desc { font-size: 13px; line-height: 1.45; color: #96a2b7; }
html body dialog#archiveEntryDialog .archive-entry-option:focus-visible,
html body dialog#archiveEntryDialog .archive-entry-close:focus-visible { outline: 2px solid #d5b681; outline-offset: 2px; }
@media (hover: hover) {
  html body dialog#archiveEntryDialog .archive-entry-option:not([data-auth-provider="kakao"]):hover { background: rgba(255, 255, 255, .09); }
  html body dialog#archiveEntryDialog .archive-entry-close:hover { color: #f3f5fa; }
}

@media (prefers-reduced-motion: reduce) {
  html body #archiveScene.arc2 :is(.arc2-close, .arc2-icon-btn, .arc2-pill, .arc2-text-btn, .arc2-open) { transition: none; }
}
@media (forced-colors: active) {
  html body #archiveScene.arc2 :is(.arc2-sheet, .arc2-list, .arc2-account, .arc2-status, .arc2-seal) { border: 1px solid CanvasText; }
  html body #archiveScene.arc2 :is(.arc2-close, .arc2-icon-btn, .arc2-pill, .arc2-text-btn) { border: 1px solid ButtonText; color: ButtonText; background: Canvas; }
}

/* 디자인 고침 2(2026-10-28, 감사 ASJ-FE-003): 로그인에서 돌아왔을 때 첫 화면 위에 잠깐 뜨는 한 줄(app.js showAuthReturnToast). 남색 유리 · 금색 없음 */
.asj-toast {
  position: fixed; z-index: 60; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 72px); width: min(420px, calc(100% - 32px)); margin: 0; padding: 14px 18px;
  transform: translateX(-50%); border-radius: 16px; background: rgba(14, 21, 36, .95); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 32px rgba(0, 0, 0, .35);
  color: #f5f5f7; font-size: 14px; line-height: 1.5; text-align: center; word-break: keep-all;
  animation: asj-toast-in .35s cubic-bezier(.2, .8, .2, 1); transition: opacity .5s ease;
}
.asj-toast.is-out { opacity: 0; }
@keyframes asj-toast-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .asj-toast { animation: none; transition: none; } }
@media (forced-colors: active) { .asj-toast { border: 1px solid CanvasText; } }

/* 디자인 고침 3(2026-10-28, 감사 E-3): 「저장한 결과 불러오기」 창 닫기 단추 40 → 44px — 주제 · 조각 · 용어 창 닫기와 같은 크기(자리는 오른쪽 위 모서리에서 같은 거리) */
html body dialog#archiveEntryDialog .archive-entry-close { top: 14px; right: 14px; width: 44px; height: 44px; }
/* 디자인 고침 3(2026-10-28, 감사 I-3): 남의 /r/ 링크가 열리지 않은 화면 — 점선 경고 상자 대신 제목 한 줄 + 까닭 한 줄(app.js restoreServerReportFromPath).
   첫 화면 제목처럼 가운데, 아래 「내 결과는 새로 볼 수 있어요 · 무료로 내 풀이 보기」 줄로 이어진다 */
#result > .r-refuse { display: block; max-width: 30em; margin: 40px auto 28px; padding: 0 8px; border: 0; border-radius: 0; background: none; text-align: center; } /* .notice 는 시험 · 다른 코드가 찾는 이름이라 남기고 그 상자 모양만 지운다 */
#result > .r-refuse .r-refuse-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; color: #f5f5f7; }
#result > .r-refuse .r-refuse-text { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: #a1a1a6; word-break: keep-all; text-wrap: balance; }
/* 디자인 고침 3(감사 I-4 · 후보 R4 AG-27): 「저장한 결과 불러오기」 — 빈 상태 한 줄(app.js openArchiveEntryDialog)은 제목 바로 아래 본문 글, 그 아래 안내 · 연결 단추.
   뒤 가리개는 뒤 화면 글이 비쳐 읽히던 .62 → .75 + 흐림 6px */
html body dialog#archiveEntryDialog .archive-entry-empty { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; color: #e6e9f0; word-break: keep-all; }
html body dialog#archiveEntryDialog.archive-entry-dialog::backdrop { background: rgba(4, 8, 16, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* 디자인 고침 9(2026-10-30, 감사 A-3 · 시안 3 「눌러서 펼치기」): 「계정에 연결하면」 줄 — 로그인 전 연결 단추 둘은 「계정 연결하기」 하나 뒤에 접어 둔다(app.js accountFoldHtml).
   펼치면 결과 끝과 같은 크기의 두 단추(보이는 높이 40 · 누르는 자리 44 = 투명 테 2px + background-clip, 모서리 12 · 같은 폭).
   카카오 노랑은 위 규칙 그대로 — 그 규칙의 :hover 줄임형이 clip 을 테까지 되돌려 놓지 않게 크기 규칙은 그보다 높게 건다(.arc2-sheet) */
html body #archiveScene.arc2 .arc2-sheet .arc2-account[data-fold] .arc2-pill.arc2-provider[data-provider] {
  min-height: 44px; padding: 0 14px; border: 2px solid transparent; background-clip: padding-box; border-radius: 14px; letter-spacing: 0;
}
html body #archiveScene.arc2 .arc2-sheet .arc2-account[data-fold] .arc2-pill.arc2-provider[data-provider] .acct-mark { width: 16px; height: 16px; }
/* 디자인 고침 10(2026-10-30, V13.39 Codex P2): 두 칸은 minmax(0, 1fr) — 1fr(최소 = 글 폭)은 자리를 차지하는 PC 스크롤바가 있는 390–404 창에서
   줄 안쪽이 292 → 277 로 좁아져 구글 140.83 · 카카오 130.94 로 갈라졌다(389px 규칙은 창 폭을 봄). 자리가 넉넉하면 그대로, 모자라면 남은 폭을 반씩 */
html body #archiveScene.arc2 .arc2-sheet .arc2-account[data-fold] .arc2-account-actions { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; justify-self: start; }
@media (min-width: 600px) { html body #archiveScene.arc2 .arc2-sheet .arc2-account[data-fold] .arc2-account-actions { justify-self: end; } }
/* 좁은 폰(389px 이하): 줄 폭을 반씩 나눠 같은 폭(375 에서 줄 안 277px < 282px). 359px 이하는 위아래 */
@media (max-width: 389px) {
  html body #archiveScene.arc2 .arc2-sheet .arc2-account[data-fold] .arc2-account-actions { display: grid; justify-self: stretch; grid-auto-columns: minmax(0, 1fr); }
  html body #archiveScene.arc2 .arc2-sheet .arc2-account[data-fold] .arc2-pill.arc2-provider[data-provider] { padding: 0 8px; }
}
@media (max-width: 359px) { html body #archiveScene.arc2 .arc2-sheet .arc2-account[data-fold] .arc2-account-actions { grid-auto-flow: row; } }
/* 처음(접힘)은 「계정 연결하기」 하나만 — 보관함 알약과 같은 결(금색 · 노랑 없음), 펼치면 그 단추는 숨는다 */
html body #archiveScene.arc2 .arc2-sheet .arc2-account[data-fold="shut"] .arc2-account-actions,
html body #archiveScene.arc2 .arc2-sheet .arc2-account[data-fold="open"] .acct-fold { display: none !important; }
html body #archiveScene.arc2 .arc2-account .acct-fold {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 44px; margin: 0; padding: 0 14px 0 16px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 .5px rgba(235, 241, 255, .24);
  color: #dfe5ef; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
}
@media (min-width: 600px) { html body #archiveScene.arc2 .arc2-account .acct-fold { justify-self: end; } }
html body #archiveScene.arc2 .arc2-account .acct-fold-chev { width: 16px; height: 16px; flex: 0 0 auto; opacity: .8; }
html body #archiveScene.arc2 .arc2-account .acct-fold:focus-visible { outline: 2px solid var(--arc2-gold); outline-offset: 2px; }
@media (hover: hover) { html body #archiveScene.arc2 .arc2-account .acct-fold:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .07)); } }
/* 「저장한 결과 불러오기」 창(이 기기에 저장한 결과가 없을 때) — 계정 연결이 목적인 창이라 큰 노란 칸 대신 같은 크기의 작은 두 단추를 한 줄로,
   「파일에서 불러오기」는 그 아래 한 줄. 카카오 칸은 auth-kakao.css 의 background 줄임형 !important 가 clip 을 테까지 되돌려 놓아 clip 에 !important */
html body dialog#archiveEntryDialog .archive-entry-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html body dialog#archiveEntryDialog .archive-entry-option[data-auth-provider] {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px;
  border: 2px solid transparent; background-clip: padding-box !important; border-radius: 14px;
}
html body dialog#archiveEntryDialog .archive-entry-option[data-auth-provider]:first-child:nth-last-child(2) { grid-column: 1 / -1; } /* 계정이 하나뿐이면 한 줄 전체 */
html body dialog#archiveEntryDialog .archive-entry-option[data-auth-provider] .aeo-title { gap: 6px; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
html body dialog#archiveEntryDialog .archive-entry-option[data-auth-provider] .aeo-title .acct-mark { width: 16px; height: 16px; }
html body dialog#archiveEntryDialog .archive-entry-option[data-auth-provider] .aeo-desc { display: none; }
html body dialog#archiveEntryDialog #archiveEntryFile { grid-column: 1 / -1; margin-top: 4px; }
@media (forced-colors: active) {
  html body #archiveScene.arc2 .arc2-sheet .arc2-account[data-fold] .arc2-pill.arc2-provider[data-provider] { border-color: ButtonText; }
  html body #archiveScene.arc2 .arc2-account .acct-fold { border: 1px solid ButtonText; color: ButtonText; background: Canvas; }
  html body dialog#archiveEntryDialog .archive-entry-option[data-auth-provider] { border: 2px solid ButtonText !important; }
}
