/* 避風網 easyboat — harbour marketplace, not a table clone */
:root {
  --sea-deep: #06202c;
  --sea-teal: #0a4452;
  --ink: #1b2d36;
  --ink-soft: #4d616c;
  --cream: #fffaf3;
  --cream-glass: rgba(255, 250, 243, 0.94);
  --teak: #8b5a2b;
  --teak-deep: #6a401c;
  --brass: #c9a227;
  --brass-soft: #e8d48b;
  --ring: #c73932;
  --ring-deep: #9e2a24;
  --foam: #f4f7f8;
  --line: rgba(107, 64, 28, 0.16);
  --shadow: 0 18px 48px rgba(4, 22, 32, 0.38);
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Noto Sans CJK HK", "Noto Sans CJK TC", "PingFang HK", "Hiragino Sans GB",
    "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: #07303c;
  background-image:
    linear-gradient(180deg, rgba(6, 36, 46, 0.42) 0%, rgba(8, 48, 58, 0.5) 55%, rgba(6, 32, 42, 0.58) 100%),
    url("../image/ocean-bg.png");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a { color: var(--teak-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { border: 0; max-width: 100%; }
input, select, textarea, button { font-family: inherit; color: inherit; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 28px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.column-card {
  width: 100%;
  max-width: 430px;
  background: var(--cream-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

body[data-page="desktop"] .column-card {
  max-width: 1160px;
}

/* —— Hero / harbour banner —— */
.site-hero {
  position: relative;
  overflow: hidden;
  height: 188px;
  background: url("../image/ocean-header.png") center 58% / cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px 0;
  box-sizing: border-box;
}
body[data-page="home"] .site-hero,
body[data-page="desktop"] .site-hero {
  height: 268px;
  background-position: center 52%;
}
body[data-page="desktop"] .site-hero {
  height: 300px;
  background-position: center 46%;
}
.hero-tag {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  margin: 0;
  color: #f7f1df;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 10px rgba(0, 8, 16, 0.75);
  pointer-events: none;
}
.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 16, 26, 0.55) 0%, rgba(6, 16, 26, 0.12) 42%, transparent 68%);
  pointer-events: none;
}
.brand {
  position: relative;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 8, 16, 0.55));
}
.brand img {
  display: block;
  width: 220px;
  height: auto;
}
.online {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 22, 32, 0.55);
  border: 1px solid rgba(232, 212, 139, 0.45);
  color: #f7f1df;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-tools {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(232, 212, 139, 0.45);
  background: rgba(8, 22, 32, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lang-switch button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #f7f1df;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 5px 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.lang-switch button.on {
  background: rgba(232, 212, 139, 0.32);
  color: #fff8e0;
}

.online::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dffa6;
  box-shadow: 0 0 0 3px rgba(125, 255, 166, 0.25);
}

.ticker {
  position: relative;
  z-index: 3;
  height: 38px;
  overflow: hidden;
  background: linear-gradient(180deg, #7a522c 0%, #5a3a1c 100%);
  border-top: 1px solid rgba(232, 212, 139, 0.35);
  border-bottom: 1px solid rgba(40, 22, 8, 0.35);
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0.35em;
  height: 38px;
  white-space: nowrap;
  padding: 0 16px 0 14px;
  animation: marq 32s linear infinite;
  color: #f3e6c8;
  font-size: 13px;
}
.ticker-inner a { color: var(--brass-soft); flex-shrink: 0; }
.ticker-inner .lab {
  color: #fff;
  margin-right: 8px;
  padding-right: 12px;
  border-right: 1px solid rgba(232, 212, 139, 0.35);
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.ticker-inner .tick-sep {
  flex-shrink: 0;
  opacity: 0.75;
  padding: 0 6px;
}
@keyframes marq {
  0% { transform: translateX(0); }
  100% { transform: translateX(-55%); }
}

.loginbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  background: linear-gradient(90deg, #0d4a5c, #156578);
  color: #fff;
  font-size: 13px;
}
.loginbar a {
  color: var(--brass-soft);
  font-weight: 700;
}

.shell {
  padding: 14px 12px 22px;
}

/* —— Home CTAs —— */
.cta-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 2px 2px 12px;
}
.cta-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  padding: 11px 8px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), 0 8px 18px rgba(80, 30, 16, 0.18);
}
.cta-btn:nth-child(1) {
  background: linear-gradient(180deg, #a36c38 0%, var(--teak) 55%, var(--teak-deep) 100%);
}
.cta-btn:nth-child(2),
.cta-btn.ring {
  background: linear-gradient(180deg, #e0564c 0%, var(--ring) 55%, var(--ring-deep) 100%);
}

/* —— Search —— */
.search-dock,
.search-tbl-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: 999px;
  padding: 5px 5px 5px 14px;
  box-shadow: 0 8px 24px rgba(8, 40, 55, 0.16), inset 0 0 0 1px rgba(139, 90, 43, 0.12);
  margin: 0 0 14px;
}
form.search-dock {
  margin: -8px 0 16px;
}
.search-dock input[type="search"],
.search-dock input[type="text"],
.search-tbl input[type="search"],
.search-tbl input[type="text"] {
  flex: 1;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  height: 40px;
  min-width: 0;
  -webkit-appearance: none;
}
.seg {
  display: flex;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #efe6d6;
}
.inp_btn3,
.seg .inp_btn3 {
  height: 40px;
  min-width: 56px;
  padding: 0 12px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  color: var(--teak-deep);
}
.seg .inp_btn3:first-child {
  background: linear-gradient(180deg, #a36c38, var(--teak-deep));
  color: #fff;
}
.seg .inp_btn3:last-child {
  background: transparent;
  color: var(--teak-deep);
}

/* legacy table search still used on desktop until restyle of markup */
.search-tbl { width: 100%; border-collapse: collapse; }
.search-tbl td { padding: 0; vertical-align: middle; }

/* —— Category cards —— */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.cat-card,
.ad-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 124px;
  padding: 12px 8px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(8, 40, 55, 0.1), inset 0 0 0 1px var(--line);
  text-decoration: none !important;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent, var(--teak));
}
.cat-card[data-cat="private"] { --accent: var(--teak); }
.cat-card[data-cat="dealer"] { --accent: var(--brass); }
.cat-card[data-cat="wanted"] { --accent: var(--ring); }
.cat-card[data-cat="parts"] { --accent: #4d6d73; }
.cat-card[data-cat="owner"],
.cat-card[data-cat="forum"] { --accent: #b07a3a; }
.cat-card[data-cat="fuel"] { --accent: #c9a227; }
.cat-card[data-cat="yard"] { --accent: #3d6b6a; }
.cat-card[data-cat="berth"] { --accent: #2a6f8f; }
.cat-card[data-cat="charter"] { --accent: #c45c26; }
.cat-crop {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-image: url("../image/marine-gear.png");
  background-size: 340%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 2px rgba(201, 162, 39, 0.55), 0 4px 10px rgba(0, 0, 0, 0.18);
  margin-bottom: 8px;
}
.crop-binos { background-position: 50% 96%; }
.crop-compass { background-position: 50% 6%; }
.crop-ring { background-position: 96% 4%; }
.crop-prop { background-position: 82% 52%; }
.crop-rope { background-position: 6% 8%; }
.crop-buoy { background-position: 94% 94%; }
.crop-varnish { background-position: 8% 90%; }
.crop-fuel {
  background-image: none;
  background: radial-gradient(circle at 35% 30%, #fff6d0 0%, #e8c547 42%, #8a6a16 100%);
  border-radius: 70% 70% 70% 12%;
  transform: rotate(40deg);
}
.crop-yard {
  background-image: none;
  background: radial-gradient(circle at 32% 28%, #6f9a98 0%, #3d6b6a 55%, #244847 100%);
  border-radius: 18% 18% 42% 42%;
  position: relative;
  transform: rotate(-28deg);
}
.crop-yard::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  width: 9px;
  height: 62%;
  margin-left: -4.5px;
  background: linear-gradient(180deg, #efe3b4, #c9a227 68%, #8a6a16);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(36, 72, 71, 0.45);
}
.crop-yard::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: 8%;
  height: 15px;
  border: 3px solid #efe3b4;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-sizing: border-box;
}

.crop-berth {
  background-image: none;
  background: linear-gradient(180deg, #7ec8e3 0 48%, #2a6f8f 48% 100%);
  border-radius: 50%;
  position: relative;
}
.crop-berth::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14%;
  width: 16px;
  height: 24px;
  margin-left: -8px;
  background: linear-gradient(180deg, #e0564c 0 38%, #fff8e8 38% 68%, #e0564c 68% 100%);
  border-radius: 8px 8px 7px 7px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}
.crop-berth::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 18%;
  height: 7px;
  background: #d8b36a;
  border-radius: 2px;
  box-shadow: 0 4px 0 #c49a4a;
}
.crop-charter {
  background-image: none;
  background: linear-gradient(180deg, #f3d5b8 0 52%, #c45c26 52% 100%);
  border-radius: 50%;
  position: relative;
}
.crop-charter::before {
  content: "";
  position: absolute;
  left: 46%;
  top: 12%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 20px 16px;
  border-color: transparent transparent transparent #fff6ea;
  filter: drop-shadow(-2px 0 0 #8a3d14);
}
.crop-charter::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 16%;
  bottom: 16%;
  height: 8px;
  background: #6b3014;
  border-radius: 0 0 10px 10px;
}
.cat-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.cat-count,
.ico .sub,
.cat-card .sub {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.ad-card {
  background:
    linear-gradient(180deg, rgba(255,250,243,0.94), rgba(255,248,238,0.96)),
    url("../image/marine-gear.png") 50% 20% / 180% no-repeat;
  color: var(--ink);
  justify-content: flex-end;
}
.ad-card .adlab {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teak);
  font-weight: 700;
}
.ad-card .adtxt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.35;
}

/* —— Partner strip (ocean, not a cat-card / not 商戶廣告) —— */
.partner-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none !important;
  color: #f5f0dc;
  background:
    linear-gradient(118deg, #0a4452 0%, #0c5a68 42%, #0a4e5c 72%, #0d3d4c 100%);
  border: 1px solid rgba(201, 162, 39, 0.42);
  box-shadow: 0 8px 22px rgba(6, 32, 42, 0.22), inset 0 1px 0 rgba(255, 248, 235, 0.12);
  position: relative;
  overflow: hidden;
}
.partner-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -36px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.28), transparent 68%);
  pointer-events: none;
}
.partner-card:hover { text-decoration: none !important; filter: brightness(1.06); }
.partner-ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(232, 212, 139, 0.4);
  position: relative;
  z-index: 1;
}
.partner-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 1;
  text-align: left;
}
.partner-lab {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
  font-weight: 700;
}
.partner-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff8e8;
  margin-top: 2px;
}
.partner-sub {
  font-size: 12px;
  color: rgba(245, 240, 220, 0.84);
  margin-top: 2px;
  line-height: 1.4;
}
body[data-page="desktop"] .partner-card {
  margin-bottom: 14px;
  padding: 16px 20px;
  min-height: 72px;
}
body[data-page="desktop"] .partner-title { font-size: 18px; }
body[data-page="desktop"] .partner-sub { font-size: 13px; }

.partner-lead {
  margin: 4px 6px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}
.partner-app {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(8, 40, 55, 0.08);
  margin: 0 0 14px;
}
.partner-app img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(8, 40, 55, 0.16);
  background: #fff;
}
.partner-app-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.partner-app-dev {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}
.btn-store {
  display: block;
  text-align: center;
  background: linear-gradient(180deg, #1a7a8c, #0a4452);
  color: #fff8e8 !important;
  text-decoration: none !important;
  padding: 14px 16px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 4px 0 8px;
  box-shadow: 0 4px 0 rgba(6, 32, 42, 0.28), 0 8px 18px rgba(8, 40, 55, 0.18);
}
.btn-store:hover { filter: brightness(1.08); }
.partner-note { text-align: center; }

.dirbar {
  margin-top: 4px;
  padding: 0;
  background: transparent;
  text-align: center;
}
.inp_slt {
  width: 100%;
  height: 42px;
  font-size: 14px;
  color: var(--ink);
  background: #fff url("../image/marine-gear.png") 96% 8% / 90px no-repeat;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  box-shadow: inset 0 1px 0 #fff;
}

/* —— Footer over water —— */
.site-ftr {
  width: 100%;
  max-width: 430px;
  margin-top: 16px;
  text-align: center;
  color: rgba(255, 248, 235, 0.88);
  text-shadow: 0 1px 8px rgba(0, 16, 24, 0.55);
  padding: 4px 8px 12px;
}
body[data-page="desktop"] .site-ftr { max-width: 1160px; }
.site-ftr a { color: #f3e2b0; }
.site-ftr .nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  font-size: 14px;
  margin-bottom: 10px;
}
.site-ftr .nav a { font-weight: 600; }
.site-ftr .legal {
  font-size: 14px;
  margin: 8px 0;
}
.site-ftr .copy {
  font-size: 11px;
  color: rgba(255, 248, 235, 0.72);
  line-height: 1.6;
  margin: 8px 0 10px;
}
.site-ftr .dim a {
  color: rgba(230, 220, 190, 0.7);
  font-size: 13px;
}
.blink {
  color: var(--brass-soft) !important;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* —— Inner pages —— */
.ptitle {
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  padding: 4px 6px 12px;
  text-align: center;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.ptitle a { color: var(--teak); }

.filter {
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.filter input,
.filter select {
  height: 38px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7cbb8;
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
}
.filter .go,
button.go {
  height: 40px;
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(180deg, #a36c38, var(--teak-deep));
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.list { display: flex; flex-direction: column; gap: 8px; }
.rowitem {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 4px 12px rgba(8, 40, 55, 0.06);
}
a.rowitem:hover { text-decoration: none !important; }
.thumb {
  width: 108px;
  height: 80px;
  object-fit: cover;
  background: #1a3a55;
  border-radius: 10px;
  flex-shrink: 0;
}
.itm-body { min-width: 0; flex: 1; }
.itm-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.itm-meta { font-size: 12px; color: var(--ink-soft); padding-top: 3px; }
.itm-price {
  color: var(--ring);
  font-size: 16px;
  font-weight: 800;
  padding-top: 4px;
  letter-spacing: 0.02em;
}
.itm-tag {
  display: inline-block;
  font-size: 11px;
  background: #f4ead8;
  border: 1px solid #e2d2b4;
  padding: 0 6px;
  margin-left: 4px;
  color: var(--teak-deep);
  border-radius: 999px;
}
.itm-pin {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  vertical-align: 1px;
  background: var(--ring);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 1px rgba(255, 250, 243, 0.7);
}
.itm-svcs { padding-top: 5px; }
.svc-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.svc-chip {
  display: inline-block;
  font-size: 11px;
  background: #e8f3f4;
  border: 1px solid #c3d8dc;
  color: var(--sea-teal);
  padding: 1px 8px;
  border-radius: 999px;
  line-height: 1.6;
}
.svc-chip.more { background: #f4ead8; border-color: #e2d2b4; color: var(--teak-deep); }

.detail-title {
  font-size: 18px;
  font-weight: 800;
  padding: 4px 4px 2px;
  color: var(--ink);
}
.detail-price {
  color: var(--ring);
  font-size: 24px;
  font-weight: 800;
  padding: 0 4px 10px;
}
.hero {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: linear-gradient(180deg, #6ba3d0, #1a3a55);
  display: block;
  border-radius: 12px;
}
.hero.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #d5dde2;
  object-fit: unset;
  height: 160px;
}
.hero.placeholder img {
  width: 120px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}
.hero.placeholder .ph-name {
  color: #4d616c;
  font-weight: 700;
  font-size: 14px;
}
.thumb.real,
.desk-thumb.real { object-fit: cover; }
.thumbs {
  padding: 8px 0;
  white-space: nowrap;
  overflow-x: auto;
}
.thumbs img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  display: inline-block;
  margin-right: 6px;
  border: 2px solid #ddd2c2;
  border-radius: 8px;
  cursor: pointer;
}
.thumbs img.on { border-color: var(--ring); }
.spec {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.spec th {
  width: 28%;
  background: #f6eee2;
  text-align: right;
  padding: 8px 10px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.spec td {
  padding: 8px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.spec tr:last-child th,
.spec tr:last-child td { border-bottom: 0; }
.desc {
  padding: 12px 4px 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
}
.contactbox {
  margin: 4px 0 12px;
  background: #fff6ea;
  border: 1px solid rgba(199, 57, 50, 0.35);
  padding: 12px;
  font-size: 14px;
  border-radius: 14px;
}
.btn-call,
.btn-orange {
  display: block;
  text-align: center;
  background: linear-gradient(180deg, #e0564c, var(--ring-deep));
  color: #fff !important;
  text-decoration: none !important;
  padding: 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}
button.btn-orange { width: auto; display: inline-block; padding: 12px 28px; }

.formtbl { width: 100%; border-collapse: collapse; }
.formtbl th {
  width: 28%;
  text-align: right;
  padding: 8px 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  vertical-align: middle;
}
.formtbl td { padding: 6px 0; }
.formtbl input[type="text"],
.formtbl input[type="password"],
.formtbl input[type="number"],
.formtbl input[type="tel"],
.formtbl select,
.formtbl textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  padding: 8px 10px;
  border: 1px solid #d7cbb8;
  border-radius: 10px;
  height: 42px;
  background: #fff;
}
.formtbl textarea { height: 120px; }
.formtbl tr.photo-row th,
.formtbl tr.yard-svc-row th { vertical-align: top; padding-top: 14px; }
.formtbl tr.yard-extra th { vertical-align: top; padding-top: 12px; }
.svc-check {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 8px;
}
.svc-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7cbb8;
  border-radius: 999px;
  padding: 5px 10px 5px 8px;
  cursor: pointer;
  user-select: none;
}
.svc-opt input { margin: 0; accent-color: var(--sea-teal); }
.maps-addr { margin-bottom: 6px; }
.maps-link {
  display: inline-block;
  color: var(--sea-teal) !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  border: 1px solid #c3d8dc;
  background: #e8f3f4;
  border-radius: 999px;
  padding: 4px 12px;
}
.maps-link:hover { text-decoration: underline !important; }
.spec td .svc-chips { display: flex; }
.photo-hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 8px;
  line-height: 1.5;
}
.photo-picker { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.photo-chip {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a3a55;
  box-shadow: 0 2px 8px rgba(8, 40, 55, 0.08);
  flex-shrink: 0;
}
.photo-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-chip .photo-x {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(106, 64, 28, 0.9);
  color: #fff8e0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.photo-chip .photo-x:hover { background: var(--ring-deep); }
.photo-add {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 72px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed var(--teak);
  color: var(--teak-deep);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  overflow: hidden;
}
.photo-add:hover { background: #fff8ee; }
.photo-add input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 16px;
}
.photo-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-soft);
  min-height: 1em;
}
.hero.real { object-fit: cover; cursor: zoom-in; }
.note { padding: 8px 6px 12px; font-size: 13px; color: var(--ink-soft); line-height: 1.65; }
.err { color: var(--ring); padding: 8px 8px; font-size: 14px; }
.ok { color: #1a7a3a; padding: 8px 8px; font-size: 14px; }
.empty { text-align: center; padding: 36px 10px; color: var(--ink-soft); line-height: 1.7; }
.empty a { color: var(--teak-deep); font-weight: 700; }

.how ol { padding: 4px 8px 12px 28px; font-size: 15px; line-height: 1.8; }
.how li { margin-bottom: 8px; }

/* desktop extras */
.desk-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(90deg, #0c3d4c, #15586a);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 0 8px;
  border-bottom: 1px solid rgba(232, 212, 139, 0.28);
}
.desk-nav a {
  color: var(--brass-soft);
  margin: 0;
  font-weight: 600;
  padding: 11px 11px;
  display: inline-block;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.02em;
}
.desk-nav a:hover {
  color: #fff;
  border-bottom-color: var(--brass);
}
.desk-nav a.nav-mobile {
  color: #dce9f2;
  font-weight: 500;
  margin-left: 6px;
}
.desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.desk-listings {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.desk-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.desk-box h3 {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #6a401c, #8b5a2b);
  color: #fff;
  font-size: 14px;
  padding: 9px 14px;
  letter-spacing: 0.06em;
}
.desk-box h3 a { color: #fff; text-decoration: none; }
.desk-box h3 a:hover { text-decoration: underline; }
.desk-box h3 .more {
  font-size: 12px;
  font-weight: 600;
  color: var(--brass-soft);
  letter-spacing: 0;
}
.desk-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-decoration: none !important;
  color: inherit;
}
.desk-row:last-child { border-bottom: 0; }
a.desk-row:hover {
  background: #fff8ee;
  text-decoration: none !important;
}
.desk-thumb {
  width: 92px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  background: #1a3a55;
  flex-shrink: 0;
}
.desk-row-body { flex: 1; min-width: 0; }
.desk-row-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}
.desk-row-meta {
  font-size: 11px;
  color: var(--ink-soft);
  padding-top: 3px;
}
.desk-row-price {
  color: var(--ring);
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  padding-left: 6px;
}
.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini td { border-bottom: 1px dotted #e4d8c4; padding: 8px 10px; }
.mini tr:last-child td { border-bottom: 0; }
.mini .p { color: var(--ring); font-weight: 800; white-space: nowrap; text-align: right; }
.muted { color: var(--ink-soft); font-size: 12px; }

body[data-page="desktop"] .cat-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
body[data-page="desktop"] .cat-grid > .cat-card {
  grid-column: auto;
}

@media (min-width: 1400px) {
  body[data-page="desktop"]::before,
  body[data-page="desktop"]::after {
    content: "";
    position: fixed;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), inset 0 0 0 3px rgba(201, 162, 39, 0.45);
    background-image: url("../image/marine-gear.png");
    background-repeat: no-repeat;
    background-size: 240%;
    opacity: 0.92;
  }
  body[data-page="desktop"]::before {
    left: 18px;
    bottom: 48px;
    background-position: 92% 10%;
  }
  body[data-page="desktop"]::after {
    right: 18px;
    bottom: 48px;
    background-position: 78% 52%;
  }
}

.pagepad { height: 8px; }

.ico {
  /* leftover class if any old markup remains */
  color: var(--ink);
  text-align: center;
}
.ico a { color: var(--ink) !important; text-decoration: none !important; display: block; }

/* keep old table chrome from leaking if a page is missed */
table.ctt {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  border-collapse: collapse;
  background: transparent;
}

body[data-page="desktop"] .shell { padding: 18px 22px 28px; }
body[data-page="desktop"] .search-dock { margin-top: 0; }
body[data-page="desktop"] .desk-intro .cta-row {
  max-width: 480px;
  margin: 0 auto;
  padding: 2px 0 14px;
}
body[data-page="desktop"] .desk-intro .search-dock {
  max-width: 680px;
  margin: 0 auto 18px;
}
body[data-page="desktop"] .brand img { width: 250px; }
body[data-page="desktop"] .cat-card { min-height: 148px; }
.desk-ad {
  min-height: 68px;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.desk-ad .adtxt { margin-top: 0; font-size: 14px; }
body[data-page="desktop"] .dirbar { margin-top: 14px; }
.filter form > input[name="q"] { margin-bottom: 2px; }

@media (min-width: 1080px) {
  body[data-page="desktop"] .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  body[data-page="desktop"] .cat-grid > .cat-card,
  body[data-page="desktop"] .cat-grid > .cat-card:nth-child(4),
  body[data-page="desktop"] .cat-grid > .cat-card:nth-child(5),
  body[data-page="desktop"] .cat-grid > .cat-card:nth-child(7),
  body[data-page="desktop"] .cat-grid > .cat-card:last-child {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .page { padding: 16px 24px 40px; }
  body:not([data-page="home"]) .column-card { max-width: 1160px; }
  body:not([data-page="home"]) .site-ftr { max-width: 1160px; }
  body[data-page="login"] .column-card,
  body[data-page="register"] .column-card,
  body[data-page="how"] .column-card,
  body[data-page="post"] .column-card {
    max-width: 760px;
  }
  body[data-page="login"] .site-ftr,
  body[data-page="register"] .site-ftr,
  body[data-page="how"] .site-ftr,
  body[data-page="post"] .site-ftr {
    max-width: 760px;
  }
  body:not([data-page="home"]):not([data-page="desktop"]) .site-hero {
    height: 210px;
  }
  body:not([data-page="home"]) .shell {
    padding: 18px 24px 28px;
  }
  .thumb { width: 132px; height: 96px; }
  .filter-grid {
    grid-template-columns: 1fr 1fr 1fr auto;
  }
  .filter .go,
  button.go {
    width: auto;
    min-width: 104px;
    padding: 0 22px;
  }
  .hero { height: 420px; }
}

@media (min-width: 1040px) {
  body[data-page="list"] .list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (min-width: 980px) {
  body[data-page="detail"] #detail:has(.hero) {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "title title"
      "price price"
      "hero spec"
      "thumbs spec"
      "desc contact";
    gap: 8px 24px;
    align-items: start;
  }
  body[data-page="detail"] #detail:has(.hero) .detail-title { grid-area: title; }
  body[data-page="detail"] #detail:has(.hero) .detail-price { grid-area: price; padding-bottom: 4px; }
  body[data-page="detail"] #detail:has(.hero) .hero { grid-area: hero; height: 320px; width: 100%; }
  body[data-page="detail"] #detail:has(.hero) .thumbs { grid-area: thumbs; }
  body[data-page="detail"] #detail:has(.hero) .spec { grid-area: spec; }
  body[data-page="detail"] #detail:has(.hero) .desc { grid-area: desc; padding-top: 8px; }
  body[data-page="detail"] #detail:has(.hero) .contactbox { grid-area: contact; }
}


.home-sec {
  margin: 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #6a401c, #8b5a2b);
  color: #fff;
  font-size: 14px;
  padding: 9px 14px;
  letter-spacing: 0.06em;
  border-radius: 14px 14px 0 0;
}
.home-sec a { color: #fff; text-decoration: none; }
.home-sec a:hover { text-decoration: underline; }
.home-sec .more {
  font-size: 12px;
  font-weight: 600;
  color: var(--brass-soft);
  letter-spacing: 0;
}
.home-sec + .list {
  margin-top: 0;
  border-radius: 0 0 14px 14px;
}
.desk-box-wide { grid-column: 1 / -1; }
#desk-deal-box[hidden] { display: none !important; }
.desk-empty-line {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
#desk-yard:empty::after,
#desk-fuel:empty::after,
#desk-priv:empty::after {
  content: "暫時未有資料";
  display: block;
  text-align: left;
  color: var(--ink-soft);
  padding: 10px 12px;
  font-size: 13px;
}
#desk-deal:empty::after {
  content: "暫未有船行盤";
  display: block;
  text-align: left;
  color: var(--ink-soft);
  padding: 10px 12px;
  font-size: 13px;
}

@media (max-width: 820px) {
  .desk-listings { grid-template-columns: 1fr; }
  .desk-nav { font-size: 13px; }
  .desk-nav a { padding: 9px 8px; }
  body[data-page="desktop"] .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
  body[data-page="desktop"] .cat-grid > .cat-card,
  body[data-page="desktop"] .cat-grid > .cat-card:nth-child(4),
  body[data-page="desktop"] .cat-grid > .cat-card:nth-child(5),
  body[data-page="desktop"] .cat-grid > .cat-card:nth-child(7),
  body[data-page="desktop"] .cat-grid > .cat-card:last-child {
    grid-column: auto;
  }
  body[data-page="desktop"] .desk-intro .search-dock {
    max-width: none;
  }
}

/* —— 海上天氣 / 海事處消息 —— */
.marine-block {
  margin-top: 16px;
}
.marine-loading,
.marine-fail {
  text-align: center;
  color: var(--ink-soft);
  padding: 18px 10px;
  font-size: 14px;
  line-height: 1.7;
}
.marine-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.marine-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 6px 18px rgba(8, 40, 55, 0.08);
}
.marine-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--teak-deep);
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.marine-sub {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.warn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.warn-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1.3;
}
.warn-pill.warn-red {
  background: var(--ring);
  color: #fff;
  box-shadow: 0 2px 0 var(--ring-deep);
}
.warn-pill.warn-amber {
  background: linear-gradient(180deg, #e8c547, var(--brass));
  color: #3a2a08;
  box-shadow: 0 2px 0 #8a6a16;
}
.marine-none {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.marine-tip {
  margin: 8px 0;
  padding: 8px 10px;
  background: #fff1ef;
  border: 1px solid rgba(199, 57, 50, 0.35);
  border-radius: 10px;
  color: var(--ring-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.marine-tc {
  margin: 8px 0;
  padding: 8px 10px;
  background: #fff8ee;
  border-left: 4px solid var(--brass);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.marine-excerpt {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}
.marine-excerpt .lab,
.marine-tc .lab {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teak);
  margin-bottom: 2px;
}
.marine-extra,
.marine-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.marine-days {
  margin: 6px 0 8px;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
}
.marine-days li { margin-bottom: 6px; }
.md-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.md-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px dotted #e4d8c4;
}
.md-item:last-child { border-bottom: 0; }
.md-date {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.md-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--teak-deep);
  line-height: 1.4;
}
.marine-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.marine-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f6eee2;
  border: 1px solid var(--line);
  color: var(--teak-deep) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.03em;
}
.marine-btn:hover { background: #efe2cc; }
.marine-btn-hi {
  background: linear-gradient(180deg, #a36c38, var(--teak-deep));
  color: #fff !important;
  border-color: transparent;
}
.marine-src {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.marine-more {
  text-align: center;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.marine-more a { color: var(--teak-deep); }

body[data-page="desktop"] .marine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
@media (min-width: 900px) {
  body[data-page="news"] .marine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }
}

/* —— Admin 後台 —— */
body[data-page="admin"] .column-card,
body[data-page="admin"] .site-ftr { max-width: 1160px; }
body[data-page="admin"] .site-hero { height: 188px; }
#admin-login { max-width: 480px; margin: 0 auto; padding: 8px 0 16px; }
.admin-ptitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.btn-logout-admin {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(180deg, #e0564c, var(--ring-deep));
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}
.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 4px 0 14px;
}
.admin-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(8, 40, 55, 0.08);
}
.admin-stat .lab {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.admin-stat .n {
  margin-top: 4px;
  font-size: 32px;
  font-weight: 800;
  color: var(--teak-deep);
  letter-spacing: 0.04em;
}
.admin-h {
  margin: 18px 0 8px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--teak-deep);
  font-weight: 800;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.admin-note {
  background: #fff6ea;
  border: 1px solid rgba(139, 90, 43, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 8px;
}
.admin-note a { font-weight: 700; }
.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(8, 40, 55, 0.08);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  background: #f6eee2;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #fffaf3; }
.admin-table a { font-weight: 700; color: var(--teak-deep); }
.site-ftr .admin-dot {
  color: rgba(230, 220, 190, 0.28);
  text-decoration: none !important;
  font-size: 11px;
  padding: 0 4px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.admin-toolbar input[type="search"] {
  flex: 1;
  min-width: 180px;
  height: 40px;
  box-sizing: border-box;
  font-size: 14px;
  padding: 0 12px;
  border: 1px solid #d7cbb8;
  border-radius: 10px;
  background: #fff;
  outline: none;
}
.admin-toolbar input[type="search"]:focus {
  border-color: var(--teak);
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.12);
}
.btn-admin-export {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(180deg, #a36c38, var(--teak-deep));
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}
.btn-admin-export:hover { filter: brightness(1.05); }
.admin-match {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.admin-table td.admin-no {
  width: 2.5em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .admin-toolbar { flex-direction: column; align-items: stretch; }
  .btn-admin-export { width: 100%; }
}

@media (max-width: 640px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-ptitle { flex-direction: column; align-items: stretch; text-align: center; }
}

.forum-meta { font-size: 13px; color: #5a6a72; margin: 4px 0 10px; }
.forum-body { padding: 8px 4px 16px; font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
.forum-replies { margin-top: 8px; }
.forum-reply {
  background: #fff;
  border: 1px solid rgba(42, 111, 143, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 8px 0;
}
.forum-reply .who { font-size: 13px; color: #5a6a72; margin-bottom: 4px; }
.forum-compose textarea { width: 100%; min-height: 90px; }


/* PWA install hint (home only) */
.eb-install {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 12px;
  background: #0a3040;
  color: #f5f0dc;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
}
.eb-install[hidden] { display: none !important; }
.eb-install p { margin: 0; flex: 1; }
.eb-install-x {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #f5f0dc;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  font-family: inherit;
}

.owner-tools {
  margin: 14px 0 8px;
}
.owner-tools .btn-call {
  display: inline-block;
  width: auto;
  padding: 10px 18px;
}
