/* ============================================================
   ระบบหลังบ้าน (Admin)
   ============================================================ */

:root {
  /* โทนสีอ้างอิงจากโลโก้ Peacock Property (teal #356a6e) */
  --a-bg:      #f2f6f6;
  --a-card:    #ffffff;
  --a-side:    #10292b;
  --a-side-2:  #1b3f42;
  --a-brand:   #356a6e;
  --a-brand-d: #275457;
  --a-ink:     #17272a;
  --a-ink-2:   #4a6467;
  --a-ink-3:   #869a9c;
  --a-line:    #e1eaea;

  --a-ok:      #128a5b;
  --a-ok-bg:   #e3f5ec;
  --a-warn:    #b3781c;
  --a-warn-bg: #fdf2de;
  --a-danger:  #c23a2b;
  --a-danger-bg:#fbe9e7;
  --a-info:    #2a56c6;
  --a-info-bg: #e7ecfc;

  --a-radius:  12px;
  --a-shadow:  0 1px 3px rgba(15, 35, 50, .07), 0 4px 12px rgba(15, 35, 50, .05);

  --a-font:    'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a-display: 'Kanit', var(--a-font);
}

*, *::before, *::after { box-sizing: border-box; }

body.admin {
  margin: 0; font-family: var(--a-font); font-size: 15px; line-height: 1.7;
  color: var(--a-ink); background: var(--a-bg);
}

h1, h2, h3, h4 { font-family: var(--a-display); font-weight: 600; margin: 0 0 .55em; line-height: 1.35; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p  { margin: 0 0 1em; }
a  { color: var(--a-brand); text-decoration: none; }
a:hover { color: var(--a-brand-d); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.muted { color: var(--a-ink-3); }
.small { font-size: .86rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------------- โครงหน้า ---------------- */
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.admin-side {
  background: var(--a-side); color: rgba(255, 255, 255, .74);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .side-brand {
  display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .09); color: #fff;
}
.admin-side .side-brand span { font-size: 1.5rem; }
/* โลโก้นกยูงบนแถบข้าง — ตัวโลโก้เป็น teal เข้ม จะจมหายบนพื้นเข้ม
   จึงกลับเป็นสีขาวด้วย filter (โลโก้เป็นสีเดียวอยู่แล้ว ผลลัพธ์จึงคมดี) */
.admin-side .side-brand .side-logo {
  width: 38px; height: 38px; flex: none; object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.admin-side .side-brand strong { font-family: var(--a-display); font-size: 1rem; display: block; line-height: 1.3; }
.admin-side .side-brand small { font-size: .72rem; color: rgba(255, 255, 255, .5); }

.side-nav { padding: 14px 12px; flex: 1; }
.side-nav .side-label {
  font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255, 255, 255, .38); padding: 14px 10px 6px;
}
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px;
  color: rgba(255, 255, 255, .76); font-size: .93rem; margin-bottom: 2px; transition: background .15s, color .15s;
}
.side-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-nav a.active { background: var(--a-brand); color: #fff; font-weight: 500; }
.side-nav a .ico { width: 20px; text-align: center; font-size: 1.05rem; }
.side-nav a .pill {
  margin-left: auto; background: rgba(255, 255, 255, .16); color: #fff;
  font-size: .72rem; padding: 1px 8px; border-radius: 999px;
}
.side-nav a.active .pill { background: rgba(255, 255, 255, .28); }

.side-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: .85rem; }
.side-foot a { color: rgba(255, 255, 255, .62); display: block; padding: 6px 8px; border-radius: 8px; }
.side-foot a:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.admin-main { min-width: 0; display: flex; flex-direction: column; }

.admin-top {
  background: #fff; border-bottom: 1px solid var(--a-line);
  padding: 0 26px; min-height: 62px; display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.admin-top h1 { margin: 0; font-size: 1.15rem; }
.admin-top .spacer { margin-left: auto; }
/* สลับภาษาไทย/อังกฤษของหลังบ้าน */
.admin-lang {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--a-line); border-radius: 999px; padding: 3px 8px 3px 9px;
}
.admin-lang .ico { display: inline-flex; color: var(--a-ink-3); margin-right: 3px; }
.admin-lang a {
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  color: var(--a-ink-3); padding: 3px 7px; border-radius: 999px; line-height: 1.4;
  transition: background .15s, color .15s;
}
.admin-lang a:hover { color: var(--a-brand); background: var(--a-bg); }
.admin-lang a.active { background: var(--a-brand); color: #fff; }
.admin-lang a:focus-visible { outline: 2px solid var(--a-brand); outline-offset: 1px; }

/* ฟอร์มประกาศ */
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.map-tools .small { align-self: center; }
.map-picker { height: 320px; border-radius: 10px; border: 1px solid var(--a-line); }
.soft-rule { border: 0; border-top: 1px solid var(--a-line); margin: 22px 0 16px; }
.switch-box { width: 20px; height: 20px; }
.card-body.amenity-list { max-height: 340px; overflow-y: auto; }

/* หน้าผู้ติดต่อ */
.lead-message {
  white-space: pre-line; background: var(--a-bg);
  border: 1px solid var(--a-line); border-radius: 10px; padding: 14px;
}
.lead-snippet { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data tr.is-new { background: #f1f8f6; }
select.select-sm { padding: 6px 10px; font-size: .85rem; }

.admin-user { display: flex; align-items: center; gap: 9px; font-size: .9rem; }
.admin-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--a-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: .9rem;
}

.admin-body { padding: 24px 26px 60px; flex: 1; }
.admin-body > .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-body > .page-head p { margin: 0; color: var(--a-ink-3); font-size: .9rem; }

.side-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--a-line);
  background: #fff; border-radius: 9px; cursor: pointer; font-size: 1.1rem;
}

/* ---------------- การ์ด ---------------- */
.card {
  background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius);
  box-shadow: var(--a-shadow); margin-bottom: 20px;
}
.card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--a-line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }

/* ---------------- สถิติ ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat {
  background: var(--a-card); border: 1px solid var(--a-line); border-radius: var(--a-radius);
  padding: 18px 20px; box-shadow: var(--a-shadow); position: relative; overflow: hidden;
}
.stat .stat-icon {
  position: absolute; right: 14px; top: 14px; font-size: 1.6rem; opacity: .28;
}
.stat .stat-label { font-size: .84rem; color: var(--a-ink-3); }
.stat .stat-value { font-family: var(--a-display); font-size: 1.85rem; font-weight: 600; line-height: 1.25; }
.stat .stat-foot { font-size: .8rem; color: var(--a-ink-3); }
.stat.accent-ok     { border-left: 3px solid var(--a-ok); }
.stat.accent-info   { border-left: 3px solid var(--a-info); }
.stat.accent-warn   { border-left: 3px solid var(--a-warn); }
.stat.accent-danger { border-left: 3px solid var(--a-danger); }

/* ---------------- ตาราง ---------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
table.data th {
  font-size: .78rem; font-weight: 600; color: var(--a-ink-3); text-transform: uppercase;
  letter-spacing: .04em; background: #f8fafc; white-space: nowrap;
}
table.data tbody tr:hover { background: #f8fbfd; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data .thumb { width: 62px; height: 46px; border-radius: 7px; object-fit: cover; background: #e3eaef; }
table.data td.actions { white-space: nowrap; text-align: right; }

/* ---------------- ปุ่ม ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 17px; border-radius: 9px; border: 1px solid transparent;
  font-family: var(--a-font); font-size: .92rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--a-brand); color: #fff; }
.btn-primary:hover { background: var(--a-brand-d); color: #fff; }
.btn-outline { background: #fff; border-color: var(--a-line); color: var(--a-ink-2); }
.btn-outline:hover { border-color: var(--a-brand); color: var(--a-brand); }
.btn-ghost { background: transparent; color: var(--a-ink-2); }
.btn-ghost:hover { background: #eef3f7; }
.btn-danger { background: var(--a-danger); color: #fff; }
.btn-danger:hover { background: #a32f22; color: #fff; }
.btn-success { background: var(--a-ok); color: #fff; }
.btn-success:hover { background: #0e7049; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .84rem; border-radius: 7px; }
.btn-icon { padding: 6px 9px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-group { display: inline-flex; gap: 6px; }

/* ---------------- ป้ายสถานะ ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.tag-ok     { background: var(--a-ok-bg);     color: var(--a-ok); }
.tag-warn   { background: var(--a-warn-bg);   color: var(--a-warn); }
.tag-info   { background: var(--a-info-bg);   color: var(--a-info); }
.tag-muted  { background: #eceff2;            color: var(--a-ink-3); }
.tag-draft  { background: var(--a-danger-bg); color: var(--a-danger); }

/* ---------------- ฟอร์ม ---------------- */
.field { margin-bottom: 18px; }
.field > label, .field-label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--a-ink-2); margin-bottom: 6px;
}
.field .req { color: var(--a-danger); }
input[type="text"], input[type="number"], input[type="email"], input[type="tel"],
input[type="password"], input[type="date"], input[type="search"], input[type="url"],
select, textarea {
  width: 100%; padding: 10px 12px; font-family: var(--a-font); font-size: .94rem; color: var(--a-ink);
  background: #fff; border: 1px solid var(--a-line); border-radius: 9px; appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238598a8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--a-brand); box-shadow: 0 0 0 3px rgba(26, 127, 179, .14);
}
input::placeholder, textarea::placeholder { color: #a7b6c2; }
.field-hint { font-size: .8rem; color: var(--a-ink-3); margin-top: 5px; }
.field-error { font-size: .8rem; color: var(--a-danger); margin-top: 5px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--a-danger); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 14px; }

.checkbox, .radio { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: .92rem; margin-bottom: 6px; }
.checkbox input, .radio input { width: 17px; height: 17px; accent-color: var(--a-brand); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; background: #f8fafc; border: 1px solid var(--a-line); border-radius: 9px; margin-bottom: 10px;
}
.switch-row .label b { display: block; font-size: .92rem; }
.switch-row .label span { font-size: .8rem; color: var(--a-ink-3); }

.form-actions {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 16px 20px; background: #f8fafc; border-top: 1px solid var(--a-line);
  border-radius: 0 0 var(--a-radius) var(--a-radius); position: sticky; bottom: 0;
}

/* ---------------- Alert ---------------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: var(--a-ok-bg);     border-color: #bce5d3; color: #0d6742; }
.alert-error   { background: var(--a-danger-bg); border-color: #f2c8c2; color: #92291d; }
.alert-info    { background: var(--a-info-bg);   border-color: #ccd8f7; color: #22429c; }
.alert-warning { background: var(--a-warn-bg);   border-color: #f0dcb0; color: #7f550f; }
.alert ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }

/* ---------------- อัปโหลดรูป ---------------- */
.dropzone {
  border: 2px dashed #c3d3de; border-radius: var(--a-radius); background: #f8fbfd;
  padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--a-brand); background: #eef7fc; }
.dropzone .icon { font-size: 2.2rem; display: block; margin-bottom: 6px; }
.dropzone b { font-family: var(--a-display); }
.dropzone input[type="file"] { display: none; }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.image-item {
  position: relative; border: 1px solid var(--a-line); border-radius: 10px; overflow: hidden; background: #fff;
}
.image-item.is-cover { border-color: var(--a-brand); box-shadow: 0 0 0 2px rgba(26, 127, 179, .2); }
.image-item .ph { aspect-ratio: 4 / 3; background: #e3eaef; }
.image-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.image-item .bar { display: flex; gap: 5px; padding: 7px; background: #fff; }
.image-item .bar .btn { flex: 1; padding: 5px 6px; font-size: .78rem; }
.image-cover-flag {
  position: absolute; top: 7px; left: 7px; background: var(--a-brand); color: #fff;
  font-size: .72rem; padding: 2px 9px; border-radius: 999px; font-weight: 600;
}
.image-item .drag-handle {
  position: absolute; top: 7px; right: 7px; background: rgba(13, 34, 51, .7); color: #fff;
  width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  cursor: grab; font-size: .85rem;
}
.image-item.dragging { opacity: .45; }

/* ---------------- กราฟ ---------------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--a-brand); transition: fill .15s; }
.chart .bar:hover { fill: var(--a-brand-d); }
.chart .grid-line { stroke: var(--a-line); stroke-width: 1; }
.chart .axis-text { font-size: 10px; fill: var(--a-ink-3); font-family: var(--a-font); }
.chart .area { fill: rgba(26, 127, 179, .14); }
.chart .line { fill: none; stroke: var(--a-brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: #fff; stroke: var(--a-brand); stroke-width: 2; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--a-ink-2); }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 6px; }

.bar-list { display: grid; gap: 12px; }
.bar-list .row { display: grid; grid-template-columns: 132px 1fr 54px; align-items: center; gap: 12px; font-size: .88rem; }
.bar-list .track { background: #eef2f5; border-radius: 999px; height: 9px; overflow: hidden; }
.bar-list .fill { background: var(--a-brand); height: 100%; border-radius: 999px; }
.bar-list .val { text-align: right; color: var(--a-ink-3); font-size: .84rem; }

/* ---------------- แถบตัวกรอง ---------------- */
.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: end;
  padding: 16px 20px; border-bottom: 1px solid var(--a-line); background: #fafcfd;
  border-radius: var(--a-radius) var(--a-radius) 0 0;
}
.toolbar .field { margin: 0; }
.toolbar input, .toolbar select { min-width: 150px; }
.toolbar .grow { flex: 1; min-width: 200px; }

/* ---------------- Pagination ---------------- */
.pager { display: flex; justify-content: center; gap: 6px; padding: 18px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 11px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--a-line); color: var(--a-ink-2); font-size: .89rem;
}
.pager a:hover { border-color: var(--a-brand); color: var(--a-brand); }
.pager .current { background: var(--a-brand); border-color: var(--a-brand); color: #fff; font-weight: 600; }
.pager .gap { border: none; background: none; }

/* ---------------- Empty ---------------- */
.empty-state { text-align: center; padding: 56px 24px; color: var(--a-ink-3); }
.empty-state .emoji { font-size: 2.8rem; display: block; margin-bottom: 10px; }
.empty-state h3 { color: var(--a-ink-2); }

/* ---------------- หน้า Login ---------------- */
body.login-page {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px;
  background: linear-gradient(140deg, #0e2325, #2a585c 55%, #4f8b8e);
}
.login-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 16px;
  padding: 34px 30px; box-shadow: 0 20px 50px rgba(6, 22, 34, .34);
}
.login-card .logo { text-align: center; margin-bottom: 22px; }
.login-card .logo span { font-size: 2.4rem; display: block; }
.login-card .logo strong { font-family: var(--a-display); font-size: 1.15rem; display: block; }
.login-card .logo small { color: var(--a-ink-3); }
.login-hint {
  margin-top: 18px; padding: 11px 14px; background: #f5f8fa; border-radius: 9px;
  font-size: .82rem; color: var(--a-ink-3); text-align: center;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 60;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .admin-side.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .side-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .admin-body { padding: 18px 16px 50px; }
  .admin-top { padding: 0 16px; }
  .side-backdrop {
    position: fixed; inset: 0; background: rgba(9, 22, 32, .5); z-index: 55; display: none;
  }
  .side-backdrop.show { display: block; }
}

/* ============================================================
   ระบบไอคอน SVG (แทนอีโมจิ)
   ============================================================ */
.ic { display: inline-block; vertical-align: -.15em; flex: none; stroke: currentColor; }
a .ic, button .ic, label .ic { pointer-events: none; }

.admin-side .side-brand span { display: inline-flex; color: #fff; font-size: 0; }
.side-nav a .ico { display: inline-flex; align-items: center; justify-content: center; }
.stat .stat-icon { display: inline-flex; color: var(--a-brand); opacity: .3; font-size: 0; }
.stat.accent-ok .stat-icon     { color: var(--a-ok); }
.stat.accent-warn .stat-icon   { color: var(--a-warn); }
.stat.accent-danger .stat-icon { color: var(--a-danger); }
.empty-state .emoji { display: flex; justify-content: center; margin-bottom: 12px; color: var(--a-ink-3); opacity: .55; }
/* โลโก้เต็มบนหน้าเข้าสู่ระบบ — วางบนการ์ดสีขาว ใช้สีจริงได้เลย */
.login-card .logo .logo-mark {
  display: block; width: auto; height: 108px; margin: 0 auto 12px;
  object-fit: contain;
}

/* สลับภาษาบนหน้าเข้าสู่ระบบ / ตั้งค่าครั้งแรก */
.login-card .login-lang {
  display: flex; justify-content: center; gap: 4px; margin: 0 0 18px;
}
.login-card .login-lang a {
  font-size: .76rem; font-weight: 600; letter-spacing: .04em;
  color: var(--a-ink-3); padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--a-line); transition: background .15s, color .15s, border-color .15s;
}
.login-card .login-lang a:hover { color: var(--a-brand); border-color: var(--a-brand); }
.login-card .login-lang a.active { background: var(--a-brand); border-color: var(--a-brand); color: #fff; }
.card-head h3 .ic { vertical-align: -.2em; color: var(--a-brand); margin-right: 4px; }
.alert { display: flex; align-items: flex-start; gap: 9px; }
.alert .ic { margin-top: 2px; }
.bar-list .row .ic { color: var(--a-ink-3); margin-right: 5px; vertical-align: -.2em; }
.dropzone .icon { display: flex; justify-content: center; margin-bottom: 8px; color: var(--a-brand); }
.image-item .drag-handle .ic { color: #fff; }
.field > label .ic, .field-label .ic { color: var(--a-ink-3); vertical-align: -.2em; margin-right: 3px; }
.side-toggle { align-items: center; justify-content: center; }
.tag .ic { vertical-align: -.15em; margin-right: 2px; }

/* ตัวเลือกไอคอนในหน้าสิ่งอำนวยความสะดวก */
.icon-cell { display: flex; align-items: center; gap: 8px; }
.icon-cell select { min-width: 132px; padding-right: 30px; }
.icon-preview {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--a-info-bg); color: var(--a-brand);
}
.icon-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--a-line); background: #fff; color: var(--a-ink-2);
}
.icon-chip:hover { border-color: var(--a-brand); color: var(--a-brand); }
