@font-face {
  font-family: Noto;
  src: url("/assets/thai-regular.ttf") format("truetype");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fcf9f1;
  color: #3d2717;
  font:
    16px/1.65 Noto,
    "Noto Sans Thai",
    sans-serif;
}
header {
  height: 80px;
  border-bottom: 1px solid #d9c9a9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.brand {
  font-weight: 700;
  font-size: 25px;
  color: inherit;
  text-decoration: none;
}
.brand span {
  font-size: 16px;
  color: #6b5138;
  margin-left: 16px;
}
.workspace {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: calc(100vh - 80px);
}
nav {
  padding: 32px 20px;
  border-right: 1px solid #d9c9a9;
}
nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  margin-bottom: 8px;
}
nav [aria-current] {
  background: #503217;
  color: #fff;
}
nav p,
.note {
  font-size: 14px;
  color: #6b5138;
}
main {
  padding: 36px;
  min-width: 0;
  max-width: 1500px;
  width: 100%;
}
h1 {
  font-size: 30px;
  line-height: 1.4;
  margin: 0 0 8px;
}
h2 {
  font-size: 24px;
}
h3 {
  margin-top: 32px;
}
p {
  max-width: 72ch;
}
.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
button,
input,
select {
  font: inherit;
  border-radius: 6px;
  min-height: 44px;
}
button {
  cursor: pointer;
  border: 1px solid #503217;
  background: #503217;
  color: #fff;
  padding: 9px 16px;
}
button:hover {
  filter: brightness(1.12);
}
button.secondary {
  background: transparent;
  color: #503217;
  border-color: #9e8663;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
input,
select {
  padding: 9px 12px;
  border: 1px solid #9e8663;
  background: #fff;
  color: inherit;
  max-width: 100%;
}
input::placeholder {
  color: #75614b;
}
:focus-visible {
  outline: 3px solid #b17815;
  outline-offset: 3px;
}
::selection {
  background: #ead29a;
  color: #3d2717;
}
#filters {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 28px 0;
}
label {
  display: grid;
  gap: 6px;
}
#filters label:first-child {
  flex: 1;
}
.table-wrap {
  overflow: auto;
  border-top: 2px solid #b68832;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
td,
th {
  padding: 16px 12px;
  border-bottom: 1px solid #dfd3ba;
  vertical-align: top;
}
th {
  font-weight: 600;
  background: #f3ead7;
}
td small {
  display: block;
  color: #6b5138;
}
td button {
  background: none;
  border: 0;
  color: #503217;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#paging {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}
#detail {
  border-top: 2px solid #b68832;
  margin-top: 36px;
  padding-top: 24px;
}
dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 24px;
}
dt {
  color: #6b5138;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
#message {
  color: #6b5138;
}
a {
  color: #684507;
  text-underline-offset: 4px;
}
#access {
  max-width: 600px;
  padding: 40px 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  header {
    padding: 0 20px;
  }
  .workspace {
    display: block;
  }
  nav {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid #d9c9a9;
    overflow: auto;
  }
  nav p {
    display: none;
  }
  nav button {
    white-space: nowrap;
    width: auto;
    margin: 0;
  }
  main {
    padding: 24px 16px;
  }
  .title-row {
    align-items: start;
    flex-wrap: wrap;
  }
  #filters {
    align-items: stretch;
    flex-direction: column;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  dd {
    margin-bottom: 14px;
  }
  h1 {
    font-size: 27px;
  }
}

#login-form,#setup-form{display:grid;gap:18px;max-width:420px;margin-top:24px}

nav a{display:block;padding:12px 16px;margin-bottom:8px;border:1px solid #583821;border-radius:6px;color:#482d1c;text-decoration:none;}nav a[aria-current="page"]{background:#482d1c;color:#fff;}

#address-panel{margin-top:32px;padding:24px;border:1px solid #d9c9a9;}#address-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}#address-form label{display:flex;flex-direction:column;}#google-address{padding:16px;background:#fff;border-left:3px solid #b68c48;}@media(max-width:640px){#address-form{grid-template-columns:1fr;}}
/* Office user administration reuses the established cream/gold workspace. */
#editor,#invitation,#confirm-panel{margin-top:2rem;padding:1.5rem;border:1px solid #d9c9ad;background:#fffdf8}
#edit-form{max-width:760px}#edit-form label,#invitation label{display:block;margin:1rem 0}#edit-form input:not([type=checkbox]),#edit-form select,#invite-url{width:100%;box-sizing:border-box}#edit-form .check-line{display:flex;align-items:center;gap:.7rem}#edit-form input[type=checkbox]{width:1.15rem;height:1.15rem;accent-color:#503217}#edit-form fieldset{border:1px solid #d9c9ad;margin:1.5rem 0;padding:1rem}#edit-form legend{padding:0 .5rem}#rows td:last-child button{margin:0 .7rem .4rem 0}#rows pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.85rem;max-width:40ch}.actions{display:flex;gap:1rem;flex-wrap:wrap}button:disabled{cursor:not-allowed;opacity:.55}::selection{background:#f3e6c5;color:#3d2717}input{caret-color:#503217}
