/* 구글 로그인·연결: 로그인 화면, 연결 화면(connect 레이아웃), 관리 > 구글 연결 */

/* 구글 버튼: 흰 바탕 + G, 큰 글씨 */
.btn--google { background: var(--surface); border-color: var(--line); color: var(--text); gap: 12px; }
.btn--google:hover { border-color: var(--accent); color: var(--text); }
.g-icon { width: 24px; height: 24px; flex: none; }
.chip--accent { background: var(--accent-soft); color: var(--accent-strong); }

/* 로그인 화면 */
.login-google { gap: 12px; }
.login-google__hint { text-align: center; line-height: 1.5; }
.login-password { margin-top: 20px; }
.login-password > summary {
  cursor: pointer; list-style: none; text-align: center; color: var(--text-3); font-size: 16px;
  min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.login-password > summary::-webkit-details-marker { display: none; }
.login-password > summary::after { content: "⌄"; font-size: 18px; line-height: 1; transform: translateY(-3px); }
.login-password[open] > summary::after { content: "⌃"; transform: translateY(3px); }
.login-password > .card { margin-top: 8px; }

/* 앱 안 브라우저 탈출 */
.inapp { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--warn-soft); }
.inapp__title { margin: 0; font-weight: 700; font-size: 19px; color: var(--warn); }
.inapp p { margin: 0; }

/* 연결 화면 */
.link-card { gap: 16px; }
.link-card h2 { text-wrap: balance; }
.link-who { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 8px 0; }
.link-who h2, .link-who p { margin: 0; }
.link-center { text-align: center; margin: 0; }
.link-group { margin: 18px 0 6px; font-size: 15px; font-weight: 700; color: var(--text-3); }
.link-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.link-name {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: 19px; font-weight: 500;
}
a.link-name:hover, a.link-name:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.link-name small { font-size: 15px; color: var(--text-3); font-weight: 400; }
.link-name.is-done { opacity: .5; }
.link-notice { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong); overflow-wrap: anywhere; }
.link-wait { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-weight: 500; text-align: center; }
.link-dots { display: inline-flex; gap: 4px; }
.link-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .3; animation: link-blink 1.2s infinite; }
.link-dots i:nth-child(2) { animation-delay: .2s; }
.link-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes link-blink { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .link-dots i { animation: none; opacity: .8; } }
.link-done { width: 72px; height: 72px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 38px; font-weight: 700; }
.link-todo { margin: 0; padding: 0; list-style: none; counter-reset: todo; display: grid; gap: 10px; }
.link-todo li { counter-increment: todo; display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.link-todo li::before { content: counter(todo); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; }
.link-todo span { color: var(--text-2); font-size: 16px; }
.link-company { justify-content: space-between; }
.link-company small { color: var(--text-3); font-size: 15px; }

/* 구글 프로필 사진 */
.avatar--google { background: #E8F0FE; color: #1A56DB; }

/* 관리 > 구글 연결 */
.glink-summary { display: flex; flex-direction: column; gap: 10px; }
.glink-summary p { margin: 0; }
.glink-progress { margin: 0 0 4px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.glink-progress .marker { font-size: 34px; }
.glink-ways { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--text-2); }
.glink-ways b { margin-right: 6px; color: var(--text); }
.glink-filter { margin-top: 20px; }
.glink-requests .row { gap: 14px; align-items: center; flex-wrap: wrap; }
.glink-decide { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.glink-decide .select { min-height: 40px; width: auto; max-width: 220px; }
.glink-empty { margin: 8px 0 0; }
.glink-row { display: grid; grid-template-columns: minmax(130px, 1fr) 100px minmax(220px, 2fr) 130px; gap: 12px; align-items: center; }
.glink-row > * { min-width: 0; }
.glink-row__person { display: flex; flex-direction: column; }
.glink-row__google { display: flex; align-items: center; gap: 10px; }
.glink-row__google > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.glink-row__act { display: flex; justify-content: flex-end; }
.glink-link { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.glink-link .input { flex: 1 1 200px; min-height: 40px; font-size: 14px; }
@media (max-width: 760px) {
  .glink-row { grid-template-columns: 1fr auto; }
  .glink-row__google { grid-column: 1 / -1; }
  .glink-row__act { grid-column: 1 / -1; justify-content: flex-start; }
}

/* 관리자 QR 화면 (회의실 화면에 띄운다) */
.glink-qr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.glink-qr > .card { margin-top: 0; }
.glink-qr__code { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.glink-qr__svg { width: min(100%, 360px); background: #fff; padding: 12px; border-radius: var(--radius); }
.glink-qr__svg svg { width: 100%; height: auto; display: block; }
.glink-qr__left { margin: 0; font-size: 20px; }
.glink-steps { text-align: left; margin: 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: 18px; }
@media (max-width: 900px) { .glink-qr { grid-template-columns: 1fr; } }
