/* Account layer — builds on the existing .modal / .modal-card / .chipbtn styles */

.acct-btn{
  margin-left:1.4rem;background:var(--panel,#fff);border:1px solid var(--line,#ddd);
  border-radius:10px;padding:.45rem .8rem;font-size:.85rem;font-weight:600;cursor:pointer;
  color:var(--fg,#1f2427);display:inline-flex;align-items:center;gap:.35rem;white-space:nowrap;
}
.acct-btn:hover{background:#eef4f0}

.acct-warn{background:#fff7e6;border:1px solid #f0d68a;color:#7a5c11;
  border-radius:8px;padding:.5rem .6rem;font-size:.78rem;line-height:1.35;margin:.2rem 0 .4rem}
.acct-form{display:flex;flex-direction:column;gap:.6rem;margin-top:.4rem}
.af-row{display:flex;flex-direction:column;gap:.25rem;font-size:.8rem;color:var(--muted,#667)}
.af-row input{
  padding:.55rem .65rem;border:1px solid var(--line,#ddd);border-radius:8px;
  background:var(--panel,#fff);color:var(--fg,#1f2427);font-size:1rem;
}
.af-row input:focus{outline:2px solid var(--accent,#1f7a53);outline-offset:1px}
.af-error{color:#c0392b;font-size:.82rem;min-height:1em}
.acct-alt{display:flex;justify-content:space-between;margin-top:.7rem;font-size:.8rem}
.acct-alt a{color:var(--accent,#1f7a53);text-decoration:none}
.acct-alt a:hover{text-decoration:underline}

.files-tabs{display:flex;gap:.4rem;margin:.4rem 0 .8rem}
.files-list{display:flex;flex-direction:column;gap:.5rem;max-height:58vh;overflow:auto}
.files-empty{color:var(--muted,#667);text-align:center;padding:1.4rem;font-size:.9rem}
.file-item{
  display:flex;align-items:center;gap:.7rem;padding:.5rem;border:1px solid var(--line,#eee);
  border-radius:10px;background:var(--panel,#fff);
}
.fi-thumb{width:46px;height:60px;flex:0 0 46px;display:flex;align-items:center;justify-content:center;
  background:#f6f4ef;border-radius:5px;overflow:hidden}
.fi-thumb img{max-width:100%;max-height:100%}
.fi-noimg{font-size:1.4rem}
.fi-main{flex:1;min-width:0}
.fi-name{font-weight:600;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fi-meta{font-size:.72rem;color:var(--muted,#667)}
.fi-acts{display:flex;gap:.35rem;flex-wrap:wrap;justify-content:flex-end}
.fi-acts button{
  border:1px solid var(--line,#ddd);background:var(--panel,#fff);color:var(--fg,#1f2427);
  border-radius:7px;padding:.3rem .55rem;font-size:.75rem;cursor:pointer;
}
.fi-acts button:hover{background:#eef4f0}
.fi-acts button.danger,.pf-actions .danger{border-color:#e3b7b0;color:#c0392b}
.fi-acts button.danger:hover,.pf-actions .danger:hover{background:#fbeeec}

.profile-body{display:flex;flex-direction:column;gap:.6rem;margin-top:.3rem}
.pf-line{display:flex;justify-content:space-between;gap:1rem;font-size:.88rem;border-bottom:1px solid var(--line,#eee);padding-bottom:.4rem}
.pf-line b{color:var(--muted,#667);font-weight:600}
.pf-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}
