/* src/styles.css */
:root {
  --bg:#0c0c0e;
  --surface:#161618;
  --surface-2:#1d1d20;
  --hair:#262629;
  --t1:#f4f4f6;
  --t2:#8c8c92;
  --t3:#56565c;
  --warn:#e0544d;
  --ok:#5aa97a;
  --pend:#cda64e;
  --radius:20px;
  --pad:22px;
}
[data-theme=light] {
  --bg:#f0f0f2;
  --surface:#ffffff;
  --surface-2:#f6f6f8;
  --hair:#e6e6ea;
  --t1:#101013;
  --t2:#76767d;
  --t3:#a6a6ad;
  --warn:#c8453e;
  --ok:#3f8a60;
  --pend:#b08a2e;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans Thai",
    "Sukhumvit Set",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--t1);
  transition: background .35s ease, color .35s ease;
}
#root {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}
.phone {
  width: 100%;
  max-width: 430px;
  min-width: 0;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 0;
  font-size: 13px;
  color: var(--t2);
  font-weight: 600;
}
.status .right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mode-btn {
  background: none;
  border: none;
  color: var(--t2);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 4px;
  border-radius: 8px;
}
.mode-btn:focus-visible {
  outline: 2px solid var(--t2);
  outline-offset: 2px;
}
.demo-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--pend);
  border: 1px solid color-mix(in srgb, var(--pend) 45%, transparent);
  padding: 2px 7px;
  border-radius: 20px;
}
.role-switch {
  font-size: 11px;
  font-weight: 700;
  color: var(--t1);
  background: var(--surface-2);
  border: 1px solid var(--hair);
  padding: 3px 9px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
}
.warn-alert {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  text-decoration: none;
  background: color-mix(in srgb, var(--warn) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: 16px;
  padding: 15px 16px;
}
.warn-alert .wa-icon {
  font-size: 22px;
  color: var(--warn);
}
.warn-alert .wa-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--t1);
}
.warn-alert .wa-sub {
  font-size: 13px;
  color: var(--warn);
  margin-top: 2px;
  font-weight: 600;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--t1);
}
.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.2px;
  color: var(--t1);
}
.login-brand {
  text-align: center;
  margin: 24px 0 6px;
  color: var(--t1);
}
.login-brand .page {
  font-size: 30px;
}
.screen {
  flex: 1;
  overflow-y: auto;
  padding: 6px 24px 110px;
  -webkit-overflow-scrolling: touch;
}
.screen::-webkit-scrollbar {
  display: none;
}
.eyebrow {
  font-size: 13px;
  color: var(--t2);
  font-weight: 600;
  letter-spacing: .2px;
}
.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 10px 0 4px;
}
h1.page {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.4px;
}
.glyph {
  font-size: 24px;
  color: var(--t2);
}
.hero {
  margin: 18px 0 8px;
}
.hero .num {
  font-size: 128px;
  line-height: .92;
  font-weight: 700;
  letter-spacing: -5px;
}
.hero .num.small {
  font-size: 96px;
  letter-spacing: -3px;
}
.hero .sub {
  font-size: 15px;
  color: var(--t2);
  font-weight: 500;
  margin-top: 6px;
}
.rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin: 20px -24px 6px;
  padding: 0 24px;
}
.rail::-webkit-scrollbar {
  display: none;
}
.tick {
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.tick .lab {
  font-size: 12px;
  color: var(--t2);
}
.tick .dot {
  font-size: 18px;
}
.tick .val {
  font-size: 15px;
  font-weight: 600;
}
.hr {
  height: 1px;
  background: var(--hair);
  margin: 22px 0;
  border: 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 16px;
  margin-top: 4px;
}
.stat .k {
  font-size: 14px;
  color: var(--t2);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat .v {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.stat .v small {
  font-size: 15px;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: 0;
}
.pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.pip.warn {
  background: var(--warn);
}
.pip.ok {
  background: var(--ok);
}
.pip.pend {
  background: var(--pend);
}
.sec-label {
  font-size: 13px;
  color: var(--t2);
  font-weight: 600;
  margin: 26px 0 12px;
  letter-spacing: .2px;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.row:last-child {
  border-bottom: 0;
}
.row .ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.row .main {
  flex: 1;
  min-width: 0;
}
.row .main .l1 {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .main .l2 {
  font-size: 13px;
  color: var(--t2);
  margin-top: 2px;
}
.row .meta {
  font-size: 13px;
  color: var(--t2);
  text-align: right;
  white-space: nowrap;
}
.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .3px;
}
.tag.warn {
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
}
.tag.ok {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  color: var(--ok);
}
.tag.pend {
  background: color-mix(in srgb, var(--pend) 18%, transparent);
  color: var(--pend);
}
.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 14px;
}
.note {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.55;
}
.search {
  width: 100%;
  background: var(--surface);
  color: var(--t1);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 15px;
  outline: none;
  margin-top: 16px;
}
.search:focus {
  border-color: var(--t2);
}
label.f {
  font-size: 13px;
  color: var(--t2);
  font-weight: 600;
  display: block;
  margin: 20px 0 9px;
}
select,
textarea,
input[type=date],
input[type=text],
input[type=email],
input[type=password],
input[type=number] {
  width: 100%;
  background: var(--surface);
  color: var(--t1);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 15px 18px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  line-height: 1.4;
}
select {
  padding-right: 40px;
}
select:focus,
textarea:focus,
input:focus {
  border-color: var(--t2);
}
textarea {
  resize: none;
  min-height: 96px;
  line-height: 1.5;
}
.cta {
  width: 100%;
  margin-top: 26px;
  padding: 17px;
  border: 0;
  border-radius: 16px;
  background: var(--t1);
  color: var(--bg);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.cta:active {
  transform: scale(.99);
}
.cta:disabled {
  opacity: .5;
  cursor: default;
}
.cta.ghost {
  background: var(--surface);
  color: var(--t1);
  border: 1px solid var(--hair);
}
.act-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.act-row a {
  flex: 1;
  display: flex;
}
.act-btn {
  margin-top: 0;
  width: 100%;
  padding: 14px 8px;
  font-size: 14px;
  white-space: nowrap;
}
.compliance-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  background: color-mix(in srgb, var(--pend) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pend) 35%, transparent);
  border-radius: 14px;
  padding: 13px 15px;
}
.compliance-banner .cb-icon {
  font-size: 18px;
  color: var(--pend);
  line-height: 1.3;
}
.compliance-banner .cb-title {
  font-size: 14px;
  font-weight: 700;
}
.compliance-banner .cb-sub {
  font-size: 12.5px;
  color: var(--t2);
  margin-top: 2px;
  line-height: 1.5;
}
.mode-fields {
  min-height: 500px;
}
.seg {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.seg button {
  border: 1px solid var(--hair);
  background: var(--surface);
  color: var(--t2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.seg button[aria-pressed=true] {
  background: var(--t1);
  color: var(--bg);
  border-color: var(--t1);
}
.seg.pts button {
  min-width: 58px;
  justify-content: center;
}
.reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--ok);
}
.tag.reward-tag {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  color: var(--ok);
}
.ok-banner {
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent);
  border-radius: 14px;
  padding: 16px;
  margin-top: 18px;
}
.ok-banner .l1 {
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 4px;
}
.ok-banner a {
  font-weight: 600;
  color: var(--t1);
  text-decoration: underline;
}
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.btn-row button {
  flex: 1;
  padding: 13px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--hair);
}
.btn-row .b-ok {
  background: var(--t1);
  color: var(--bg);
  border: 0;
}
.btn-row .b-no {
  background: var(--surface);
  color: var(--t1);
}
.leave-note {
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--t2);
  margin-top: 10px;
}
.leave-note b {
  color: var(--t1);
}
.monthnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 16px;
}
.monthnav button {
  background: none;
  border: 0;
  color: var(--t1);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 8px;
}
.monthnav button:disabled {
  color: var(--t3);
  cursor: default;
}
.monthnav .m {
  font-size: 15px;
  font-weight: 700;
}
.block-fault .sec-label {
  color: var(--warn);
}
.block-right .sec-label {
  color: var(--ok);
}
.ladder {
  display: flex;
  gap: 6px;
  margin: 14px 0 4px;
}
.step {
  flex: 1;
  text-align: center;
  padding: 11px 4px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
}
.step.on {
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  color: var(--warn);
}
.step.cur {
  outline: 2px solid var(--warn);
  outline-offset: 1px;
}
.step .n {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}
.def {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.def:last-child {
  border-bottom: 0;
}
.def .dk {
  font-size: 13px;
  color: var(--t2);
  flex-shrink: 0;
}
.def .dv {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}
.witness {
  margin-top: 12px;
}
.nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--hair);
  padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
}
.nav a {
  flex: 1;
  background: none;
  border: 0;
  color: var(--t3);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 0;
  border-radius: 10px;
}
.nav a .ni {
  font-size: 19px;
  line-height: 1;
}
.nav a[aria-current=page] {
  color: var(--t1);
}
.nav a:focus-visible {
  outline: 2px solid var(--t2);
  outline-offset: -2px;
}
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 24px;
  text-align: center;
}
.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--hair);
  border-top-color: var(--t1);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.muted {
  color: var(--t2);
  font-size: 14px;
}
.err {
  color: var(--warn);
  font-size: 14px;
}
.back {
  font-size: 14px;
  color: var(--t2);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 6px;
}
@media (prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.nav-brand {
  display: none;
}
@media (min-width:860px) {
  #root {
    align-items: flex-start;
  }
  .phone:has(.nav) {
    max-width: 1080px;
    min-width: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "nav status" "nav screen";
  }
  .phone:has(.nav) .status {
    grid-area: status;
    padding: 24px 36px 0;
  }
  .phone:has(.nav) .status > span:first-child {
    display: none;
  }
  .phone:has(.nav) .screen {
    grid-area: screen;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    padding: 16px 36px 56px;
  }
  .phone:has(.nav) .nav {
    grid-area: nav;
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-top: 0;
    border-right: 1px solid var(--hair);
    padding: 22px 14px;
  }
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 14px 22px;
    color: var(--t1);
  }
  .nav-brand .brand-name {
    font-size: 20px;
  }
  .phone:has(.nav) .nav a {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 13px;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 12px;
  }
  .phone:has(.nav) .nav a .ni {
    font-size: 18px;
  }
  .phone:has(.nav) .nav a[aria-current=page] {
    background: var(--surface-2);
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .hero .num {
    font-size: 104px;
  }
  .phone:has(.nav) .screen:has(.list-grid) {
    max-width: 980px;
  }
  .list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    column-gap: 30px;
  }
  .list-grid .row {
    border-bottom: 1px solid var(--hair);
  }
}
.letter-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 18px 60px;
}
.letter-toolbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.letter-toolbar .cta {
  margin-top: 0;
  width: auto;
  padding: 12px 18px;
  font-size: 14px;
}
.letter {
  background: #ffffff;
  color: #16161a;
  border: 1px solid #e2e2e6;
  border-radius: 10px;
  padding: 54px 48px;
  line-height: 1.9;
  font-size: 15px;
  font-family:
    "Sarabun",
    "TH Sarabun New",
    "IBM Plex Sans Thai",
    -apple-system,
    sans-serif;
}
.letter .lh {
  text-align: center;
  margin-bottom: 8px;
}
.letter .lh .co {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .5px;
}
.letter .lh .co-sub {
  font-size: 12px;
  color: #6a6a70;
}
.letter h2.lt {
  font-size: 21px;
  font-weight: 800;
  text-align: center;
  margin: 22px 0 2px;
  color: #16161a;
}
.letter .lt-sub {
  text-align: center;
  font-size: 13px;
  color: #6a6a70;
  margin-bottom: 18px;
}
.letter .meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
  margin: 16px 0 22px;
}
.letter p {
  margin: 13px 0;
}
.letter .ref {
  padding-left: 14px;
  border-left: 3px solid #16161a;
  margin: 16px 0;
}
.letter .sign {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 28px;
}
.letter .sig .sl {
  border-bottom: 1px dotted #999;
  height: 34px;
}
.letter .sig .cap {
  font-size: 13px;
  color: #555;
  margin-top: 6px;
  text-align: center;
}
.letter .chk {
  font-size: 13px;
  color: #333;
  margin-top: 8px;
}
.letter .seal {
  margin-top: 34px;
  font-size: 12px;
  color: #8a8a90;
}
@media print {
  @page {
    margin: 16mm;
  }
  body {
    background: #fff !important;
    display: block !important;
  }
  .no-print {
    display: none !important;
  }
  .letter-wrap {
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .letter {
    border: 0;
    border-radius: 0;
    padding: 0;
    font-size: 14px;
  }
}
/*# sourceMappingURL=index.css.map */
