/* Gov slice styles (SPEC §13.3): government sign-in buttons, the linked-identity line, 帶入資格, and the admin
   registry-lookup column / identity line. Tokens and base components (.btn, .pill, .notice) come from style.css. */
.gov-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.gov-btn{white-space:normal;text-align:center;line-height:1.4}
.gov-btn svg{flex:none}
.gov-divider{display:flex;align-items:center;gap:12px;margin:18px 0 14px;color:var(--muted);font-size:12px}
.gov-divider::before,.gov-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.gov-note{margin-top:8px;text-align:center}
.gov-notice{margin-top:16px}
.gov-login .gov-notice+.gov-divider{margin-top:14px}
.gov-onboard{margin:4px 0 2px}
.gov-onboard .gov-divider{margin:16px 0 12px}

/* 已連結 / 連結 — under the account buttons (#/login signed in) and across the #/my-stall header */
.gov-account{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.gov-account:empty{display:none}
.gov-account .notice{margin:0}
.seller-stall-head>.gov-account{grid-column:1/-1;margin-top:0;padding-top:14px;border-top:1px dashed var(--line)}
.gov-account-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.gov-account-line>svg{width:16px;height:16px;flex:none}
.gov-account-note{flex:1 1 220px;min-width:0}
.gov-when{flex:none}
.gov-account-line .pill{font-size:12px}

/* 從政府帳號帶入資格 — top of the 資格證明 fieldset */
.gov-import-slot:empty{display:none}
.gov-import{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 16px;padding:12px 14px;border:1px solid #cdd9c4;border-radius:10px;background:var(--pale)}
.gov-import-text{display:flex;gap:10px;align-items:flex-start;min-width:0;flex:1 1 240px}
.gov-import-text svg{width:20px;height:20px;flex:none;margin-top:2px;color:var(--green)}
.gov-import-text strong{display:block;font-size:13px;font-weight:600}
.gov-import-text small{display:block;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}

/* admin: 登記查詢 cell */
.gov-lookup{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:180px;max-width:300px;font-size:12px;line-height:1.6}
.gov-lookup .pill{white-space:nowrap}
.gov-pill-muted{background:#eeeeea;color:#5f655b}
.gov-lookup-list{margin:0;display:grid;gap:1px}
.gov-lookup-list div{display:flex;gap:6px}
.gov-lookup-list dt{flex:none;color:var(--muted)}
.gov-lookup-list dd{margin:0;overflow-wrap:anywhere}
.gov-match{display:flex;align-items:center;gap:5px;font-size:12px}
.gov-match svg{width:14px;height:14px;flex:none}
.gov-match.ok{color:var(--green)}
.gov-match.warn{color:#975321}
.gov-lookup-note{color:#5f655b}
.gov-lookup-meta{color:var(--muted);font-size:11px}
.gov-lookup-link{color:var(--green);text-decoration:underline;text-underline-offset:2px}

/* admin: identity line + 全部重新查詢 */
.gov-admin-farm{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;margin:14px 0 4px;padding:10px 14px;border-radius:8px;background:var(--pale)}
.gov-identity{display:flex;align-items:center;gap:7px;font-size:13px;color:#50634c}
.gov-identity svg{width:16px;height:16px;flex:none}
.gov-identity.ok{color:var(--green);font-weight:500}

@media(max-width:640px){
  .gov-lookup{min-width:150px}
  .gov-admin-farm .btn,.gov-import .btn{width:100%}
  .gov-account-line .btn{width:100%}
}
