@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap");
@import url("/static/account-bar.css");

:root { --paper: #f7f8f2; --surface: #fff; --ink: #163d2b; --muted: #626e65; --green: #26754a; --line: #dde5dd; --pale: #f0f5ef; --danger: #a82d39; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.65 "Noto Sans Thai", system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #97b65b; outline-offset: 3px; }
.site-header { min-height: 68px; padding: 12px max(24px, calc((100vw - 1180px) / 2)); background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 700; letter-spacing: -.7px; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; position: relative; width: 36px; height: 36px; border-radius: 9px; color: white; background: var(--green); letter-spacing: -2px; font-size: 23px; padding-right: 5px; }
.brand-icon span { position: absolute; color: #d6ee9b; right: 3px; top: 5px; }
.brand small { font-size: 12px; letter-spacing: -.2px; }
.back-link { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.button { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 17px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; text-align: center; line-height: 1.5; }
.button:hover { background: var(--pale); }
.button.primary { background: var(--green); color: #fff; border-color: var(--green); }
.button.primary:hover { background: #1d603b; }
.button.danger { color: var(--danger); border-color: #e8bdc3; background: #fff; }
.button.danger:hover { background: #fff1f2; }
.button.danger-solid { color: #fff; background: var(--danger); border-color: var(--danger); }
.text-button { border: 0; background: transparent; padding: 10px 0; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #bdcdbf; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 400; }
.field textarea { min-height: 110px; resize: vertical; }
.field small, .help { font-weight: 400; color: var(--muted); font-size: 13px; margin: 0; }
.notice { margin: 12px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.notice:empty { display: none; }
.notice[data-kind="error"] { color: var(--danger); }
.notice[data-kind="success"] { color: #206641; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 65px; }
.password-toggle { position: absolute; right: 8px; top: 5px; padding: 7px 8px; border: 0; background: transparent; color: var(--green); font-size: 13px; }
.account-main { max-width: 490px; margin: 48px auto; padding: 0 20px; }
.account-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.account-card h1 { font-size: 27px; line-height: 1.4; margin: 0 0 8px; letter-spacing: -.6px; }
.account-card > p { margin: 0 0 24px; color: var(--muted); }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--pale); border-radius: 10px; margin: 0 0 24px; }
.account-tabs button { min-height: 42px; border: 0; background: transparent; border-radius: 7px; color: var(--muted); }
.account-tabs button[aria-selected="true"] { background: white; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px #163d2b14; }
.account-form { display: grid; gap: 17px; }
.account-form > .primary { margin-top: 3px; }
.account-footnote { color: var(--muted); font-size: 13px; text-align: center; margin-top: 20px; }
.account-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; }
.account-details div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
.account-details dt { color: var(--muted); }
.account-details dd { margin: 0; overflow-wrap: anywhere; text-align: right; }
.account-actions { display: grid; gap: 10px; }
.loading-note { color: var(--muted); padding: 28px 0; text-align: center; }
.callout { padding: 13px 16px; background: var(--pale); border-radius: 9px; font-size: 13px; margin: 0 0 20px; }
@media (max-width: 600px) {
  .site-header { min-height: 60px; padding: 12px 16px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-icon { width: 32px; height: 32px; font-size: 21px; }
  .brand-icon span { top: 3px; }
  .brand small { font-size: 10px; }
  .account-main { margin: 28px auto; padding: 0 16px; }
  .account-card { padding: 24px 20px; }
  .account-card h1 { font-size: 24px; }
}
