:root {
  --ink: #17212f;
  --muted: #637083;
  --line: #dce3ec;
  --surface: #ffffff;
  --soft: #f5f8fc;
  --brand: #146c94;
  --brand-dark: #0d4f70;
  --danger: #b42318;
  --success: #067647;
  --radius: 14px;
  font-family: Inter, "Noto Sans Thai", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; line-height: 1.55; }
a { color: var(--brand-dark); }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: #102a43; color: white; box-shadow: 0 2px 10px rgb(16 42 67 / 15%); }
.header-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 48px; height: 48px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 16px; }
nav > a:not(.button) { color: #d9e7f5; text-decoration: none; font-size: .93rem; }
main.container { padding-top: 38px; padding-bottom: 52px; }
.site-footer { color: #5f6b7a; background: #eaf0f6; font-size: .88rem; padding: 20px 0; }
.page-heading, .form-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1, .form-heading h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.04em; }
.eyebrow { margin: 0 0 3px; color: var(--brand); font-weight: 800; font-size: .73rem; letter-spacing: .12em; }
.muted, .section-help { margin: 3px 0 0; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 15px; border: 1px solid var(--brand); border-radius: 9px; background: var(--brand); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.button:hover, .button:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); }
.button-small { min-height: 34px; padding: 5px 11px; font-size: .86rem; }
.button-secondary { background: white; color: var(--brand-dark); }
.button-secondary:hover, .button-secondary:focus-visible { background: #eaf7fc; }
.button-quiet { background: transparent; color: var(--muted); border-color: transparent; }
.button-quiet:hover, .button-quiet:focus-visible { background: #e9eef4; color: var(--ink); border-color: #e9eef4; }
.alert { padding: 13px 16px; margin: 0 0 22px; border: 1px solid; border-radius: 10px; font-weight: 600; }
.alert-success { color: #075c38; background: #ecfdf3; border-color: #abefc6; }
.alert-error { color: #991b1b; background: #fff1f2; border-color: #fecdd3; }
.search-form { padding: 18px; margin-bottom: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.search-form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9rem; }
.search-controls { display: flex; gap: 9px; }
.search-controls input { flex: 1; }
input, select { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #b9c5d3; border-radius: 8px; background: white; color: var(--ink); font: inherit; }
input:focus, select:focus { border-color: var(--brand); outline: 3px solid rgb(20 108 148 / 18%); }
select:disabled { color: #8996a5; background: #f0f3f7; cursor: not-allowed; }
.result-count { color: var(--muted); font-size: .9rem; margin: 16px 0 10px; }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.store-card { display: flex; flex-direction: column; padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 11px rgb(37 62 89 / 4%); }
.store-card-header { display: flex; justify-content: space-between; gap: 10px; }
.store-card h2 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.store-card-header a { display: inline-block; margin-top: 5px; font-size: .92rem; }
.tag { height: max-content; padding: 2px 7px; border-radius: 100px; background: #edf3f8; color: #536577; font: 700 .74rem/1.35 monospace; }
.store-details { margin: 17px 0; }
.store-details div + div { margin-top: 11px; }
.store-details dt { color: var(--muted); font-size: .77rem; font-weight: 700; }
.store-details dd { margin: 1px 0 0; font-size: .93rem; overflow-wrap: anywhere; }
.card-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-top: auto; }
.card-actions form { margin: 0 0 0 auto; }
.text-link { font-size: .88rem; font-weight: 700; }
.delete-button { padding: 0; color: var(--danger); border: 0; background: transparent; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.empty-state { padding: 52px 20px; border: 1px dashed #b7c3d0; border-radius: var(--radius); text-align: center; background: #fbfdff; }
.empty-state h2 { margin: 0; font-size: 1.25rem; }.empty-state p { margin: 8px 0 18px; color: var(--muted); }
.pagination { justify-content: center; margin-top: 27px; color: var(--muted); font-size: .9rem; }.pagination a { font-weight: 700; }
.back-link { margin-bottom: 22px; font-size: .9rem; font-weight: 700; }.back-link a { text-decoration: none; }
.form-heading { display: block; margin-bottom: 21px; }
.store-form { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 17px rgb(37 62 89 / 5%); }
.form-section { padding: 25px; border-bottom: 1px solid var(--line); }.form-section h2 { margin: 0 0 4px; font-size: 1.12rem; }.section-help { font-size: .9rem; margin-bottom: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 17px; }.field-full { grid-column: 1 / -1; }.field label { display: block; margin-bottom: 6px; font-size: .92rem; font-weight: 700; }.field small { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; }.required { color: var(--danger); }.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 19px 25px; background: #fbfcfe; }

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1120px); }.header-row { min-height: 61px; }.header-row nav > a:not(.button) { display: none; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }.page-heading .button { width: 100%; }.search-controls { flex-wrap: wrap; }.search-controls input { flex-basis: 100%; }.search-controls .button { flex: 1; }.store-grid, .form-grid { grid-template-columns: 1fr; }.form-section { padding: 20px 16px; }.form-actions { padding: 16px; }.field-full { grid-column: auto; }.card-actions form { margin-left: 0; }.store-card { padding: 16px; }
}
