:root {
  --page: #f3f6fb;
  --surface: #fff;
  --ink: #20304a;
  --muted: #67758c;
  --blue: #3068d7;
  --line: #e0e7f2;
  --soft-blue: #edf4ff;
  --radius: 12px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: 100%; max-width: 1560px; margin: 20px auto; padding: 0 20px; }
[hidden] { display: none !important; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
h1 { font-size: 24px; line-height: 1.35; margin: 0 0 4px; }
.page-header p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.75; }
h2 { font-size: 16px; margin: 0; }
.card { padding: 18px 20px; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 28px #21375806; }
.lookup-tip { padding: 10px 13px; margin-bottom: 14px; border-left: 4px solid var(--blue); border-radius: 6px; background: var(--soft-blue); color: #244d88; }
.lookup-tip strong { font-size: 15px; }
.lookup-tip p { font-size: 13px; line-height: 1.6; margin: 4px 0 0; }
label { display: block; font-size: 14px; font-weight: 600; }
textarea { display: block; width: 100%; height: 120px; min-height: 112px; margin-top: 8px; padding: 12px; border: 1px solid #cfd9e8; border-radius: 9px; background: white; color: var(--ink); font: 14px/1.6 Consolas, ui-monospace, monospace; resize: vertical; }
textarea:focus { outline: 2px solid #a9c7ff; border-color: #5c87dc; }
button, a { -webkit-tap-highlight-color: transparent; }
button { padding: 9px 12px; border: 1px solid #cfd9e8; border-radius: 9px; background: white; color: #284875; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
button:hover:not(:disabled) { background: #f1f5fd; }
button:focus-visible, a:focus-visible, input:focus-visible, .table-scroll:focus-visible { outline: 2px solid #5c87dc; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--blue); border-color: var(--blue); color: white; }
button.primary:hover:not(:disabled) { background: #245ac5; }
button.quiet { border-color: transparent; color: var(--muted); }
.hint { margin: 7px 0; font-size: 12px; font-weight: 400; line-height: 1.75; color: var(--muted); }
.batch-toolbar, .result-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result-header { flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.batch-toolbar .actions { gap: 10px; }
#progress { color: var(--muted); font-size: 12px; white-space: nowrap; }
#notice { font-size: 13px; color: var(--muted); margin: 8px 0 0; line-height: 1.65; }
#notice:empty, #storageStatus:empty { display: none; }
.copy-hint { margin-top: 7px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 880px; table-layout: fixed; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
th, td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
td { vertical-align: top; }
.select-col { width: 32px; }
.account-col, .status-col { width: 22%; }
.password-col { width: 76px; }
.secret-col { width: 82px; }
input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); cursor: pointer; vertical-align: middle; }
.mail-address { display: block; padding: 2px 0; margin-bottom: 5px; max-width: 100%; border: 0; border-radius: 4px; background: transparent; text-align: left; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; font-weight: 500; }
.mail-url { display: block; color: var(--blue); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
button.small { padding: 5px 8px; font-size: 12px; }
.password-copy { border-style: dashed; color: #32745f; font-family: Consolas, monospace; }
.totp-button { border-radius: 18px; background: #edf3ff; border-color: #d8e5ff; color: var(--blue); min-width: 62px; font-family: Consolas, monospace; }
.otp-hint { font-size: 11px; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 20px; background: #edf3ff; color: #3269d4; font-size: 12px; line-height: 1.5; }
.badge.success { background: #e9f7f0; color: #207650; }
.badge.error { background: #fff0f0; color: #ae3540; }
.badge.muted { background: #f0f2f6; color: var(--muted); }
.error { color: #ae3540; }
#copyText { height: 88px; min-height: 72px; }
footer { margin: 24px 0 12px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.75; }
footer p { margin: 8px 0; }
.remember-control { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 400; cursor: pointer; }
@media (max-width: 650px) {
  main { margin: 14px auto; padding: 0 12px; }
  h1 { font-size: 20px; }
  .page-header p { max-width: 245px; }
  .card { padding: 14px; }
  textarea { height: 140px; }
  .batch-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .result-header { align-items: flex-start; }
  .result-header .actions { row-gap: 7px; }
  .result-header .actions button { padding: 8px 9px; font-size: 12px; }
  footer { text-align: left; }
  .remember-control { align-items: flex-start; }
  .remember-control input { flex-shrink: 0; margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
