/* Shared login sheet. Each app sets --hd-* to match its look. */
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/be-vietnam-pro-vietnamese-400-normal.woff2") format("woff2"); font-weight: 400; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/be-vietnam-pro-vietnamese-600-normal.woff2") format("woff2"); font-weight: 600; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/be-vietnam-pro-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/be-vietnam-pro-vietnamese-800-normal.woff2") format("woff2"); font-weight: 800; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/be-vietnam-pro-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

.hd-sheet {
  width: min(400px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--hd-radius, 24px);
  background: var(--hd-bg, #fff); color: var(--hd-text, #222); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  font-family: inherit;
}
.hd-sheet[open] { animation: hd-pop 0.2s ease both; }
.hd-sheet::backdrop { background: rgba(20, 16, 10, 0.45); backdrop-filter: blur(3px); }
@keyframes hd-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.hd-sheet form { padding: 22px; display: grid; gap: 12px; }
.hd-sheet header { display: flex; justify-content: space-between; align-items: center; }
.hd-sheet h2 { margin: 0; font-size: 21px; font-weight: 800; }
.hd-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--hd-muted, #777); cursor: pointer; padding: 0 4px; }
.hd-why { margin: -4px 0 0; color: var(--hd-muted, #777); font-size: 14px; }
.hd-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--hd-field, #f2f2f2); }
.hd-tabs button { border: 0; background: none; padding: 9px; border-radius: 10px; font: inherit; font-weight: 600; color: var(--hd-muted, #777); cursor: pointer; }
.hd-tabs button[aria-selected="true"] { background: var(--hd-bg, #fff); color: var(--hd-text, #222); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.hd-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--hd-muted, #777); }
.hd-field input {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--hd-text, #222); background: var(--hd-field, #f4f4f4);
  border: 2px solid transparent; border-radius: 14px; padding: 11px 13px; outline: none;
}
.hd-field input:focus { border-color: var(--hd-accent, #f80); }
.hd-err { margin: 0; color: #d6402a; font-weight: 600; font-size: 14px; }
.hd-submit {
  border: 0; border-radius: 999px; padding: 13px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  background: var(--hd-accent, #f80); color: var(--hd-accent-ink, #fff); box-shadow: 0 6px 18px var(--hd-shadow, rgba(0, 0, 0, 0.15));
}
.hd-submit:disabled { opacity: 0.6; cursor: progress; }
.hd-note { margin: 0; color: var(--hd-muted, #777); font-size: 12.5px; text-align: center; }

/* account sheet */
.hd-acct { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.hd-body { padding: 22px; display: grid; gap: 14px; }
.hd-body header { display: flex; justify-content: space-between; align-items: center; }
.hd-who { display: grid; padding: 12px 14px; border-radius: 16px; background: var(--hd-field, #f4f4f4); }
.hd-who b { font-size: 17px; }
.hd-who small { color: var(--hd-muted, #777); }
.hd-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hd-btn {
  border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  background: var(--hd-field, #f2f2f2); color: var(--hd-text, #222);
}
.hd-btn:hover { filter: brightness(0.97); }
.hd-btn.danger { background: #d6402a; color: #fff; }
.hd-admin { text-decoration: none; background: var(--hd-accent, #f80); color: var(--hd-accent-ink, #fff); }
.hd-sheet .hd-sub { display: grid; gap: 10px; padding: 14px 0 0; border-top: 1px solid var(--hd-field, #eee); }
.hd-sub h3 { margin: 0; font-size: 15px; }
.hd-danger h3 { color: #d6402a; }
.hd-err.ok { color: #1f9d55; }
