/* Account collection: one capability per tile, one responsive grid. */
#account .acct-workspace { max-width:1280px; margin:0 auto; --acct-muted:var(--text-3); }
#account .acct-page-head { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:4px 0 24px; }
#account .acct-eyebrow,#account .acct-card-kicker,#account .acct-page-mark { font:500 10px/1.6 ui-monospace,monospace; letter-spacing:1.2px; color:var(--acct-muted); }
#account .acct-page-head h1 { margin:8px 0; color:var(--text-main); font-size:28px; font-weight:700; letter-spacing:-.8px; }
#account .acct-page-head p { margin:0; color:var(--acct-muted); font-size:14px; line-height:1.7; }
#account .acct-page-mark { text-align:right; flex-shrink:0; padding-left:24px; border-left:1px solid var(--card-border); }
#account .acct-tile-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; align-items:stretch; }
#account .acct-tile,#account .acct-bento-completeness,#account .acct-bento-status { display:flex; flex-direction:column; align-items:stretch; gap:12px; min-width:0; min-height:202px; margin:0; padding:22px; border:1px solid var(--card-border); border-radius:18px; background:var(--surface); color:var(--text-main); text-align:left; font:inherit; box-sizing:border-box; }
#account .acct-span-2,#account .acct-ticket { grid-column:span 2; }
#account .acct-card-kicker,#account .acct-tile-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#account .acct-card-kicker i,#account .acct-tile-head > i { font-size:16px; }
#account .acct-tile-head > i { color:var(--brand-blue); }
#account .acct-tile h2,#account .acct-bento-completeness h2 { margin:0; color:var(--text-main); font-size:17px; font-weight:600; line-height:1.5; }
#account .acct-tile-hint,#account .acct-bento-status-detail { color:var(--acct-muted); font-size:13px; line-height:1.7; margin:0; overflow-wrap:anywhere; }
#account .acct-action,#account .acct-bento-status { cursor:pointer; transition:border-color .18s,background .18s; }
#account .acct-action:hover,#account .acct-bento-status:hover { border-color:var(--brand-blue); background:var(--surface-muted); }
#account .acct-tile-icon,#account .acct-bento-status-icon { display:grid; place-items:center; flex-shrink:0; width:40px; height:40px; border-radius:13px; color:var(--brand-blue); background:var(--brand-blue-tint-08); font-size:21px; }
#account .acct-bento-status-value { color:var(--text-main); font-size:17px; font-weight:600; line-height:1.5; }
#account .acct-bento-status-detail { max-width:100%; }
#account .acct-password-dots { font-size:19px; letter-spacing:3px; line-height:1; }
#account .acct-phone-card .acct-bento-status-icon,#account .acct-operate-card .acct-tile-icon { background:var(--surface-muted); color:var(--text-main); }
#account .acct-cert-card .acct-tile-icon { border-radius:50%; }
#account .acct-tile .el-select { width:100%; }
#account .acct-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
#account .acct-field { display:flex; flex-direction:column; gap:8px; min-width:0; }
#account .acct-field label { color:var(--text-3); font-size:13px; line-height:1.5; }
#account .acct-tile .el-input__inner { height:44px; line-height:44px; background:var(--surface-muted); color:var(--text-main); border:1px solid var(--card-border); border-radius:10px; font-size:14px; }
#account .acct-tile .el-input__inner:focus { border-color:var(--brand-blue); }
#account .acct-tile .el-input__suffix { display:flex; align-items:center; }
#account .acct-field .el-form-item__label { float:none; }
#account .acct-profile-card .acct-fields,#account .acct-address-card .acct-fields { margin-top:auto; }
#account .acct-switch-control { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:auto; min-height:44px; }
#account .acct-notice-card { background:var(--surface-muted); }
#account .acct-notice-card h2 { max-width:16em; }
#account .acct-save-card { background:var(--brand-blue-tint-06); }
#account .acct-save-card .btn-save { display:flex; justify-content:space-between; align-items:center; min-height:44px; width:100%; margin:auto 0 0; border-radius:10px; font-size:14px; }
#account .acct-save-card .btn-save > span { display:flex; justify-content:space-between; align-items:center; width:100%; gap:12px; }
#account .acct-custom-card .custom-form { width:100%; }
#account .acct-oauth-item .el-button { margin-top:auto; min-height:44px; border-radius:10px; }
#account .acct-oauth-item > span:last-child { margin-top:auto; }
/* The horizontal account pass is a single tile, with one security-center entry. */
#account .acct-ticket { position:relative; display:flex; min-width:0; min-height:242px; border:1px solid var(--card-border); border-radius:18px; background:var(--surface); overflow:hidden; }
#account .acct-ticket-main { display:flex; flex-direction:column; min-width:0; flex:1; padding:22px; }
#account .acct-ticket-mast { display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--brand-blue); font:600 10px/1.5 ui-monospace,monospace; letter-spacing:1px; }
#account .acct-ticket-mast > span:first-child { display:flex; align-items:center; gap:6px; }
#account .acct-ticket-mast i { font-size:18px; }
#account .acct-ticket-mast > span:last-child { color:var(--acct-muted); font-size:9px; }
#account .acct-ticket-identity { display:flex; align-items:center; gap:16px; margin:24px 0 12px; }
#account .acct-ticket-avatar { width:56px; height:56px; display:grid; place-items:center; overflow:hidden; flex-shrink:0; border-radius:16px; color:#fff; background:var(--brand-blue); font-size:28px; font-weight:700; }
#account .acct-ticket-avatar img { width:100%; height:100%; object-fit:cover; }
#account .acct-ticket-info { min-width:0; }
#account .acct-ticket-caption { color:var(--acct-muted); font-size:12px; }
#account .acct-ticket-name { margin:4px 0; color:var(--text-main); font-size:25px; font-weight:700; line-height:1.3; overflow-wrap:anywhere; }
#account .acct-ticket-level { display:inline-block; padding:2px 6px; border:1px solid var(--card-border); border-radius:5px; font-size:12px; }
#account .acct-ticket-meta { color:var(--acct-muted); font-size:13px; overflow-wrap:anywhere; line-height:1.6; }
#account .acct-ticket-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:20px; font:500 11px/1.5 ui-monospace,monospace; letter-spacing:1px; color:var(--acct-muted); }
#account .acct-barcode { width:86px; height:24px; opacity:.65; background:repeating-linear-gradient(90deg,var(--text-main) 0 1px,transparent 1px 3px,var(--text-main) 3px 6px,transparent 6px 8px,var(--text-main) 8px 10px,transparent 10px 13px); }
#account .acct-ticket-stub { width:100px; flex-shrink:0; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:16px; padding:22px 12px; border-left:1px dashed var(--card-border); background:var(--surface-muted); color:var(--brand-blue); text-decoration:none; text-align:center; font-size:13px; box-sizing:border-box; transition:background .18s; }
#account .acct-ticket-stub > i:first-of-type { display:grid; place-items:center; width:44px; height:44px; background:var(--brand-blue-tint-08); border-radius:50%; font-size:24px; }
#account .acct-ticket-stub-label { color:var(--acct-muted); font:500 9px/1.5 ui-monospace,monospace; letter-spacing:1px; }
#account .acct-ticket-stub:hover { background:var(--brand-blue-tint-08); }
#account .acct-ticket-notch { position:absolute; right:90px; width:20px; height:20px; background:var(--bg-color); border:1px solid var(--card-border); border-radius:50%; z-index:1; pointer-events:none; box-sizing:border-box; }
#account .acct-ticket-notch.top { top:-11px; }
#account .acct-ticket-notch.bottom { bottom:-11px; }
/* The progress tile describes profile details, not a security score. */
#account .acct-bento-completeness { justify-content:space-between; }
#account .acct-progress-title { display:flex; flex-direction:column; gap:8px; }
#account .acct-progress-title h2 { font-size:16px; }
#account .acct-progress-title strong { color:var(--brand-blue); font-size:44px; font-weight:500; font-variant-numeric:tabular-nums; line-height:1.1; letter-spacing:-1px; }
#account .acct-progress-title small { font-size:17px; margin-left:4px; }
#account .acct-bento-completeness-bar { height:5px; flex-shrink:0; border-radius:5px; background:var(--card-border); overflow:hidden; }
#account .acct-bento-completeness-fill { height:100%; background:var(--brand-blue); border-radius:5px; }
#account .acct-progress-footer { color:var(--acct-muted); font-size:12px; line-height:1.7; }
/* Activity is an expandable tile; its controls appear inside the same card. */
#account .acct-log-panel,#account .acct-msg-panel { display:block; min-height:0; margin-top:16px; padding:0; overflow:hidden; }
#account .acct-disclosure { display:flex; align-items:center; gap:16px; min-height:96px; padding:22px; cursor:pointer; list-style:none; }
#account .acct-disclosure::-webkit-details-marker { display:none; }
#account .acct-disclosure > span:nth-child(2) { flex:1; min-width:0; }
#account .acct-disclosure strong { display:block; color:var(--text-main); font-size:17px; line-height:1.5; margin-top:4px; }
#account .acct-disclosure > i { color:var(--text-3); transition:transform .18s; }
#account details[open] > .acct-disclosure > i { transform:rotate(180deg); }
#account details[open] > .acct-disclosure { border-bottom:1px solid var(--divider); }
#account .acct-disclosure:hover { background:var(--surface-muted); }
#account .acct-log-section,#account .acct-msg-panel > .searchbar,#account .acct-msg-panel > .content_table { padding:22px; }
#account .acct-log-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
#account .acct-log-search { max-width:300px; width:100%; }
#account .acct-log-count { font-size:13px; font-weight:500; color:var(--brand-blue); padding:4px 8px; background:var(--brand-blue-tint-08); border-radius:6px; }
#account .acct-log-table-wrap { width:100%; }
#account .acct-log-table { width:100%; border-collapse:collapse; table-layout:fixed; color:var(--text-main); font-size:13px; line-height:1.7; }
#account .acct-log-table th,#account .acct-log-table td { padding:14px 12px; text-align:left; border-bottom:1px solid var(--divider); overflow-wrap:anywhere; }
#account .acct-log-table th { background:var(--surface-muted); font-weight:500; color:var(--text-3); }
#account .acct-log-table th:first-child { width:70px; }
#account .acct-log-table th:nth-child(3) { width:160px; }
#account .acct-log-table th:last-child { width:140px; }
#account .acct-log-pager { margin-top:20px; }
#account .acct-log-error { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; color:var(--danger); font-size:13px; }
#account .acct-log-error button { min-height:44px; padding:0 16px; border:1px solid var(--card-border); border-radius:10px; background:var(--surface); color:var(--text-main); font:inherit; cursor:pointer; }
#account button:focus-visible,#account summary:focus-visible,#account [role='button']:focus-visible,#account a:focus-visible { outline:2px solid var(--brand-blue); outline-offset:3px; }
@media (max-width:1120px) {
  #account .acct-tile-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #account .acct-ticket-mast > span:last-child { display:none; }
  #account .acct-page-mark { display:none; }
}
@media (max-width:820px) {
  #account .acct-tile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #account .acct-ticket-mast > span:last-child { display:block; }
  #account .acct-tile,#account .acct-bento-completeness,#account .acct-bento-status { padding:20px; min-height:190px; }
  #account .acct-progress-title { flex-direction:row; align-items:center; }
  #account .acct-msg-panel .msg-search { flex-direction:column; align-items:stretch; gap:16px; }
  #account .acct-msg-panel .msgsearch-right { flex-wrap:wrap; gap:8px; }
}
@media (max-width:520px) {
  #account .acct-page-head h1 { font-size:25px; }
  #account .acct-page-head p { font-size:13px; }
  #account .acct-tile-grid { gap:12px; }
  #account .acct-tile,#account .acct-bento-completeness,#account .acct-bento-status { grid-column:1 / -1; min-height:0; padding:20px; }
  #account .acct-ticket { grid-column:1 / -1; min-height:230px; }
  #account .acct-ticket-main { padding:20px; }
  #account .acct-ticket-stub { width:82px; padding:20px 8px; }
  #account .acct-ticket-notch { right:72px; }
  #account .acct-ticket-mast > span:last-child { display:none; }
  #account .acct-ticket-avatar { width:44px; height:44px; border-radius:13px; }
  #account .acct-ticket-identity { gap:12px; }
  #account .acct-ticket-name { font-size:22px; }
  #account .acct-fields { grid-template-columns:minmax(0,1fr); }
  #account .acct-bento-status,#account .acct-action { display:grid; grid-template-columns:40px minmax(0,1fr); align-items:center; gap:8px 14px; }
  #account .acct-action > .acct-card-kicker,#account .acct-bento-status > .acct-card-kicker { grid-column:1 / -1; }
  #account .acct-action > .acct-tile-icon,#account .acct-bento-status-icon { grid-column:1; grid-row:2 / 5; }
  #account .acct-action h2,#account .acct-action > .acct-tile-hint,#account .acct-action > .acct-password-dots,#account .acct-bento-status-value,#account .acct-bento-status-detail { grid-column:2; }
  #account .acct-log-panel,#account .acct-msg-panel { padding:0; }
  #account .acct-log-toolbar { flex-direction:column; align-items:stretch; }
  #account .acct-log-search { max-width:none; }
  #account .acct-disclosure,#account .acct-log-section { padding:18px; }
  #account .acct-log-table thead { display:none; }
  #account .acct-log-table,#account .acct-log-table tbody,#account .acct-log-table tr,#account .acct-log-table td { display:block; width:100%; }
  #account .acct-log-table tr { padding:12px 0; border-bottom:1px solid var(--card-border); }
  #account .acct-log-table td { padding:5px 0; border:0; }
  #account .acct-log-table td::before { content:attr(data-label); display:inline-block; color:var(--text-3); min-width:72px; margin-right:8px; }
  #account .acct-log-empty::before { display:none; }
}
@media (prefers-reduced-motion:reduce) { #account *,#account *::before,#account *::after { transition:none !important; } }
