:root {
  --blue: #2387E8; --sky: #D9EEFF; --green: #36A852; --green-d: #2A8A3F; --bg: #F4F8FC; --text: #1F2937; --muted: #6B7686;
  --line: #E3E9F1; --gray: #E9EEF4; --warn: #F4B740; --danger: #E75B5B; --ok: #38A66A; --card: rgba(255,255,255,.92);
  --shadow: 0 6px 22px rgba(31,55,90,.10); --shadow-s: 0 2px 8px rgba(31,55,90,.08); --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Sarabun', 'Kanit', system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; }
h1, h2, h3, h4, .k { font-family: 'Kanit', 'Sarabun', sans-serif; }
h2 { font-size: 22px; margin: 0 0 4px; } h3 { font-size: 17px; margin: 0; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; }
.spacer { flex: 1; }

/* ---------- buttons / inputs ---------- */
.btn { border: 0; border-radius: 11px; padding: 9px 16px; background: var(--gray); cursor: pointer; font-family: 'Kanit', sans-serif; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; transition: transform .08s, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(.96); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 3px 0 #1A6DBF; }
.btn.green { background: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green-d); }
.btn.danger { background: var(--danger); color: #fff; box-shadow: 0 3px 0 #C04242; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.input, select.input, textarea.input { width: 100%; border: 1px solid #D3DCE7; border-radius: 10px; padding: 9px 12px; background: #fff; outline: none; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,135,232,.15); }
label.f { display: block; margin-bottom: 10px; } label.f > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.chk { display: inline-flex; align-items: center; gap: 6px; margin: 3px 12px 3px 0; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; background: var(--gray); font-size: 12.5px; font-weight: 600; }
.chip.ok { background: #DDF3E5; color: #1E7A45; } .chip.warn { background: #FFF1D3; color: #9A6A00; } .chip.bad { background: #FDE2E2; color: #B03A3A; }
.chip.info { background: #DCEBFC; color: #1A5FA8; } .chip.gray { background: #ECEFF3; color: #5D6775; }
.chip button { border: 0; background: none; cursor: pointer; padding: 0 0 0 2px; color: inherit; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: rgba(255,255,255,.96); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; z-index: 30; }
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.logo b { font-family: 'Kanit'; font-size: 24px; font-weight: 800; color: var(--green); letter-spacing: -.5px; line-height: 1; }
.logo small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); font-family: 'Kanit'; font-weight: 500; }
.nav a .ic { width: 28px; height: 28px; display: grid; place-items: center; font-size: 18px; border-radius: 8px; background: var(--bg); }
.nav a:hover { background: var(--bg); }
.nav a.on { background: linear-gradient(180deg, #4FC160, var(--green)); color: #fff; box-shadow: 0 3px 0 var(--green-d); }
.nav a.on .ic { background: rgba(255,255,255,.22); }
.nav .sep { font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 14px 12px 4px; text-transform: uppercase; letter-spacing: .5px; }
.nav .badge { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, #E9F8EC, #DDF0FF); font-family: 'Kanit'; font-weight: 600; color: var(--green-d); font-size: 14px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 22px; background: rgba(244,248,252,.86); backdrop-filter: blur(10px); }
.bell.burger { display: none; }
.search { flex: 1; max-width: 620px; position: relative; }
.search input { width: 100%; padding: 11px 70px 11px 42px; border-radius: 999px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-s); outline: none; }
.search input:focus { border-color: var(--blue); }
.search .lens { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--blue); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; background: var(--gray); border-radius: 6px; padding: 2px 7px; color: var(--muted); }
.results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 6px; max-height: 420px; overflow: auto; }
.results .it { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.results .it:hover, .results .it.sel { background: var(--bg); }
.bell { position: relative; width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; font-size: 19px; box-shadow: var(--shadow-s); }
.bell i { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px; }
.me { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; box-shadow: var(--shadow-s); position: relative; }
.me .av { width: 36px; height: 40px; border-radius: 10px; background: var(--sky); overflow: hidden; display: grid; place-items: end center; }
.me .av svg { width: 30px; height: auto; }
.me b { font-family: 'Kanit'; font-size: 14px; display: block; line-height: 1.1; } .me small { color: var(--muted); font-size: 12px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 12px; box-shadow: var(--shadow); min-width: 200px; padding: 6px; z-index: 40; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--text); border: 0; background: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.page { padding: 6px 22px 40px; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 300px; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .ttl { position: relative; padding: 26px 30px; max-width: 470px; }
.hero .ttl .hi { display: inline-block; background: rgba(255,255,255,.88); border-radius: 999px; padding: 4px 14px; font-family: 'Kanit'; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.hero h1 { margin: 0; font-size: 46px; line-height: 1.02; font-weight: 800; color: #fff; letter-spacing: -.5px;
  text-shadow: 0 3px 0 #1A6DBF, 2px 0 0 #1A6DBF, -2px 0 0 #1A6DBF, 0 -2px 0 #1A6DBF, 0 6px 14px rgba(0,0,0,.25); }
.hero h1 span { display: block; font-size: 26px; }
.hero h1 em { font-style: normal; color: #B8F27A; text-shadow: 0 3px 0 #1E6B2D, 2px 0 0 #1E6B2D, -2px 0 0 #1E6B2D, 0 -2px 0 #1E6B2D, 0 6px 14px rgba(0,0,0,.25); }
.hero .slogan { display: inline-block; margin-top: 12px; background: #1F3A64; color: #fff; border-radius: 10px; padding: 6px 14px; font-family: 'Kanit'; font-weight: 600; }
.hero .sub { margin-top: 10px; color: #0F2A4A; font-weight: 600; background: rgba(255,255,255,.75); display: inline-block; padding: 3px 10px; border-radius: 8px; }
.hero .tools { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.hero.night h1 { text-shadow: 0 3px 0 #0B1B3A, 2px 0 0 #0B1B3A, -2px 0 0 #0B1B3A, 0 -2px 0 #0B1B3A; }

/* ---------- widgets ---------- */
.widgets { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.w { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; border: 1px solid rgba(255,255,255,.8); min-width: 0; }
.w.c12 { grid-column: span 12; } .w.c8 { grid-column: span 8; } .w.c6 { grid-column: span 6; } .w.c4 { grid-column: span 4; }
.w-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.w-h .wi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 17px; background: var(--bg); }
.w-h a, .w-h button.link { margin-left: auto; font-size: 13.5px; font-weight: 600; border: 0; background: none; color: var(--blue); cursor: pointer; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 14px; border: 1px solid var(--line); }
.stat .si { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: #fff; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.stat b { font-family: 'Kanit'; font-size: 26px; display: block; line-height: 1; } .stat small { color: var(--muted); font-weight: 600; }
.list .li { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.list .li:last-child { border-bottom: 0; }
.num { min-width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: 'Kanit'; }
.empty { text-align: center; color: var(--muted); padding: 18px 8px; }

/* ---------- app tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.tiles.dense { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px 10px; text-align: center; cursor: pointer;
  transition: transform .12s, box-shadow .12s; user-select: none; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile .name { font-family: 'Kanit'; font-weight: 500; font-size: 13.5px; line-height: 1.2; margin-top: 8px; min-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ico { width: 58px; height: 58px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; font-size: 30px; position: relative;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.16), inset 0 3px 0 rgba(255,255,255,.35), 0 4px 10px rgba(0,0,0,.12); }
.ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.ico.s { width: 38px; height: 38px; border-radius: 11px; font-size: 20px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.16); } .ico.s img { border-radius: 11px; }
.tile .star { position: absolute; top: 6px; right: 6px; border: 0; background: none; cursor: pointer; font-size: 16px; opacity: .25; padding: 2px; }
.tile .star.on, .tile:hover .star { opacity: 1; }
.tile .st { position: absolute; top: 6px; left: 6px; font-size: 10.5px; padding: 1px 7px; }
.tile.locked { background: #F1F3F6; cursor: default; }
.tile.locked .ico { filter: grayscale(1); opacity: .45; } .tile.locked .name { color: #9AA3AF; }
.tile.locked:hover { transform: none; box-shadow: none; }
.tile.locked .req { margin-top: 6px; }
.tile.maint .ico { filter: grayscale(.6); opacity: .7; }
.tile.drag { opacity: .4; } .tile.over { outline: 2px dashed var(--blue); }
.editing .tile { cursor: grab; animation: wob .35s infinite alternate; } @keyframes wob { from { transform: rotate(-.6deg); } to { transform: rotate(.6deg); } }
.cathead { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-family: 'Kanit'; font-weight: 600; }
.cathead i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* hub cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 14px; display: flex; gap: 12px; position: relative; box-shadow: var(--shadow-s); }
.card .body { min-width: 0; flex: 1; }
.card h4 { margin: 0 0 3px; font-size: 16px; } .card p { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.card.locked { background: #F3F5F8; } .card.locked .ico { filter: grayscale(1); opacity: .45; } .card.locked h4 { color: #8A94A3; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-family: 'Kanit'; font-size: 14px; }
.pill.on { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- tables / admin ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 16px; }
.tabs a { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--text); font-family: 'Kanit'; font-weight: 500; }
.tabs a.on { background: var(--text); color: #fff; border-color: var(--text); }
.tablewrap { overflow-x: auto; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
th { background: #F7F9FC; font-family: 'Kanit'; font-weight: 600; font-size: 13px; color: #4A5565; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: #FAFCFF; }
tr.dim td { color: #9AA3AF; }
.handle { cursor: grab; color: #9AA3AF; font-size: 18px; }
.panel { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 18px; box-shadow: var(--shadow-s); margin-bottom: 16px; }
.profile { display: flex; gap: 18px; align-items: center; }
.profile .big { width: 84px; height: 110px; background: var(--sky); border-radius: 16px; display: grid; place-items: end center; overflow: hidden; flex: none; }
.danger-zone { border: 2px solid #F6C5C5; background: #FFF8F8; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.steps span { background: var(--gray); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.steps span.on { background: var(--blue); color: #fff; }
.prog { height: 8px; background: var(--gray); border-radius: 99px; overflow: hidden; } .prog i { display: block; height: 100%; background: var(--ok); }
.note-box { background: #FFF8E6; border: 1px solid #F8E0A6; border-radius: 12px; padding: 10px 14px; font-size: 14px; }

/* ---------- modal / toast / login ---------- */
.modal { position: fixed; inset: 0; background: rgba(15,30,50,.45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal .box { background: #fff; border-radius: 18px; width: min(680px, 100%); max-height: 92vh; overflow: auto; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal .box.wide { width: min(920px, 100%); }
.modal .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; position: sticky; bottom: -20px; background: #fff; padding: 10px 0 0; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #1F2937; color: #fff; padding: 11px 20px; border-radius: 12px; z-index: 200; box-shadow: var(--shadow); max-width: 90vw; }
.toast.err { background: var(--danger); }
.login { min-height: 100vh; position: relative; display: grid; place-items: center; padding: 16px; overflow: hidden; }
.login > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.login .box { position: relative; background: rgba(255,255,255,.95); border-radius: 22px; padding: 28px; width: min(400px, 100%); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.login h1 { margin: 0; font-size: 30px; color: var(--green); font-weight: 800; }

@media (max-width: 1100px) { .w.c8, .w.c6, .w.c4 { grid-column: span 12; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 260px; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .bell.burger { display: grid; }
  .top { padding: 10px 16px; } .page { padding: 4px 16px 30px; }
  .me .who, .search kbd { display: none; }
  .hero { min-height: 250px; } .hero h1 { font-size: 32px; } .hero h1 span { font-size: 20px; } .hero .ttl { padding: 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
@media print {
  .side, .top, .noprint, .tabs { display: none !important; } .shell { display: block; } .page { padding: 0; }
  .panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------- voxel world look (v2) ---------- */
.world { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.world svg { width: 100%; height: 100%; display: block; }
.shell { position: relative; z-index: 1; }
.side { background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-right: 0; box-shadow: 4px 0 24px rgba(31,55,90,.10); border-radius: 0 24px 24px 0; }
.top { background: transparent; backdrop-filter: none; }
.w, .panel { background: rgba(255,255,255,.90); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.95); }
.tablewrap { background: rgba(255,255,255,.95); }
.page > h2, .page > .row h2, .page > .muted, .page > .row .muted, .page > a.small { text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.page > h2, .page > .row > div > h2 { background: rgba(255,255,255,.85); display: inline-block; padding: 4px 14px; border-radius: 12px; }
.page > .row > div > .muted, .page > .muted { background: rgba(255,255,255,.75); display: inline-block; padding: 2px 10px; border-radius: 8px; margin-top: 4px; }
.ico.lib { box-shadow: inset 0 -5px 0 rgba(0,0,0,.07), inset 0 2px 0 rgba(255,255,255,.7), 0 4px 10px rgba(31,55,90,.10); }
.ico.lib svg { filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
.ico.img { background: #fff; }
.tile { background: rgba(255,255,255,.96); }
.tile .ico { width: 64px; height: 64px; }
.tiles.dense .ico { width: 50px; height: 50px; }
.stat .si { box-shadow: inset 0 -4px 0 rgba(0,0,0,.06); }
.stat .si svg { filter: drop-shadow(0 2px 2px rgba(0,0,0,.18)); }
.pv-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 18px; }
.pv-btn .ico { width: 72px; height: 72px; } .pv-btn:hover .ico { outline: 3px solid var(--blue); outline-offset: 2px; }
.swatch { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 52vh; overflow: auto; padding: 2px; }
.pick.emo { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); }
.pk { border: 2px solid transparent; background: #F7F9FC; border-radius: 14px; padding: 8px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.pk:hover { border-color: #B9D8F7; background: #fff; } .pk.on { border-color: var(--blue); background: #EAF4FE; }
.pk span { line-height: 1.15; text-align: center; }
.catbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.catc { --cc: #475569; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; border-radius: 14px; background: #fff; border: 2px solid #E3E9F1; cursor: pointer; font-family: 'Kanit'; position: relative; }
.catc .cg { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 16%, #fff); }
.catc small { background: var(--gray); border-radius: 99px; padding: 0 8px; font-weight: 600; color: var(--muted); }
.catc.on { border-color: var(--cc); background: color-mix(in srgb, var(--cc) 8%, #fff); }
.catc .ced { border: 0; background: none; cursor: pointer; opacity: .35; padding: 2px; } .catc:hover .ced { opacity: 1; }
.catc.drag { opacity: .4; }
.catsec { --cc: #475569; margin-bottom: 6px; }
.catsec .cathead { margin: 16px 0 10px; font-size: 16px; padding: 6px 12px 6px 6px; border-radius: 14px; background: color-mix(in srgb, var(--cc) 10%, #fff); border-left: 5px solid var(--cc); }
.catsec .cathead .cg { width: 34px; height: 34px; display: grid; place-items: center; }
.catsec .cathead small { margin-left: 6px; color: var(--muted); font-weight: 600; }
.catsec:first-child .cathead { margin-top: 0; }
.seg { display: inline-flex; background: var(--gray); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 10px; border-radius: 8px; cursor: pointer; font-family: 'Kanit'; font-size: 13px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-s); }
.dock { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.dock-h { display: flex; align-items: center; gap: 10px; padding-right: 14px; border-right: 1px solid var(--line); flex: none; }
.dock-h b { display: block; color: var(--blue); } .dock-h small { color: var(--muted); }
.dock-row { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding: 4px 2px; scrollbar-width: thin; }
.dock-it { border: 0; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px 8px; min-width: 104px; max-width: 104px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: 'Kanit'; font-size: 13px; color: var(--text); transition: transform .12s; }
.dock-it:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dock-it span { line-height: 1.15; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dock-it .ico { width: 54px; height: 54px; }
.dock-it.more { justify-content: center; }
.hero { border: 3px solid rgba(255,255,255,.9); }
.hero.photo .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero { min-height: 340px; }
.hero-prev { border-radius: 16px; overflow: hidden; height: 180px; position: relative; border: 1px solid var(--line); }
.hero-prev svg, .hero-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .side { border-radius: 0; }
  .dock { flex-direction: column; align-items: stretch; } .dock-h { border-right: 0; padding: 0; }
  .hero { min-height: 280px; }
}
.row > .ico, .li > .ico, .card > .ico, .it > .ico { margin: 0; flex: none; }
.chip { white-space: nowrap; }
.panel.danger-zone { background: #FFF8F8; border: 2px solid #F6C5C5; }
