:root { color-scheme: light; --blue: #1677ff; --ink: #142c48; --muted: #5e6f84; --line: #dce4ee; --surface: #f3f6fa; --red: #c62828; font: 16px/1.6 "Segoe UI", "Microsoft YaHei", "Noto Sans Thai", sans-serif; color: var(--ink); background: var(--surface); }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
[hidden] { display: none !important; }
a { color: #0861cd; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, .button { min-height: 44px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
button:hover, .button:hover { border-color: var(--blue); background: #f0f6ff; }
button.primary { border-color: #0861cd; background: #0861cd; color: #fff; }
button.primary:hover { background: #064fa9; }
button:disabled { opacity: .6; cursor: wait; }
:is(a, button, input, select):focus-visible { outline: 3px solid #1677ff; outline-offset: 3px; }
input, select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #aebed0; border-radius: 8px; background: #fff; color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--red); }
label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field { margin: 0 0 20px; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; font-size: 18px; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.login-shell { display: grid; min-height: 100dvh; place-items: center; padding: 32px 20px; }
.login-card { width: min(100%, 470px); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 14px; padding: 36px 38px; box-shadow: 0 12px 40px #142c480a; }
.login-card h1 { margin: 32px 0 6px; font-size: 28px; line-height: 1.3; letter-spacing: -.5px; }
.intro { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.login-card .primary { width: 100%; }
.password-input { display: flex; gap: 8px; }
.password-input input { min-width: 0; }
.password-input button { flex: none; padding: 8px 12px; font-size: 13px; }
.message { margin: 16px 0; border: 1px solid #ffccc7; border-radius: 8px; padding: 10px 12px; background: #fff2f0; color: var(--red); font-size: 14px; overflow-wrap: anywhere; }
.message.success { background: #f6ffed; color: #276410; border-color: #b7df9b; }
.login-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.language { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.language label { font-size: 13px; margin: 0; }
.language select { width: auto; min-height: 36px; padding: 4px 8px; font-size: 13px; }
.accounts-shell { max-width: 1180px; margin: 0 auto; padding: 28px; }
.accounts-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.accounts-header nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.accounts-header nav select { width: auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 20px 0; }
.page-heading h1 { margin: 0; font-size: 28px; }
.page-heading p { margin: 5px 0 0; color: var(--muted); }
.table-panel { overflow-x: auto; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { font-size: 13px; background: #f8fafc; color: var(--muted); }
th, td { padding: 16px 20px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td { font-size: 14px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 5px; font-size: 13px; background: #f0f6ff; color: #0861cd; }
.badge.disabled { background: #fff2f0; color: var(--red); }
dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 28px; color: var(--ink); }
dialog::backdrop { background: #142c4870; }
dialog h2 { margin: 0 0 22px; font-size: 23px; }
dialog .actions { justify-content: flex-end; margin-top: 24px; }
.empty { text-align: center; color: var(--muted); padding: 40px; }
@media (max-width: 600px) { .login-card { padding: 28px 24px; } .accounts-shell { padding: 20px 16px; } .accounts-header, .page-heading { align-items: flex-start; flex-direction: column; } th, td { padding: 12px; } }
