:root {
  color-scheme: light;
  --accent: #176b55;
  --accent-ink: #fff;
  --ink: #182722;
  --muted: #62726c;
  --paper: #f5f7f2;
  --surface: #fff;
  --line: #dce5df;
  --warm: #e8a44b;
  --good: #24784c;
  --bad: #a63e38;
  --shadow: 0 14px 36px #19392a12;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  min-width: 320px;
  padding-bottom: 5.2rem;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 86% 0%, #dcebe1 0, transparent 30rem),
    linear-gradient(180deg, #f8faf6 0, var(--paper) 34rem);
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #0c4938; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #e8a44b; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 7vw, 4.65rem); max-width: 13ch; margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.45rem); margin-bottom: .6rem; }
h3 { font-size: 1.25rem; margin-bottom: .45rem; }
.shell { width: min(1120px, 100% - 32px); margin-inline: auto; }
.site-header { position: sticky; z-index: 20; top: 0; background: #f8faf6ed; border-bottom: 1px solid #dce5dfcc; backdrop-filter: blur(12px); }
.header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 12px 12px 12px 3px; font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700; }
.brand-name { max-width: 19ch; font-family: Georgia, serif; font-size: 1rem; font-weight: 700; line-height: 1.1; }
.desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; flex-wrap: wrap; }
.desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .75rem; color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 700; border-radius: 8px; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--accent); background: #e6efe9; }
.header-status { min-height: 34px; display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.status-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: #b94a40; box-shadow: 0 0 0 3px #b94a401c; }
.is-open .status-dot { background: #25834f; box-shadow: 0 0 0 3px #25834f20; }
.notice { padding: .65rem 0; color: #fff; background: #263d33; font-size: .86rem; text-align: center; }
main { min-height: 65vh; }
.hero { position: relative; overflow: hidden; margin: 1.4rem auto 3.25rem; padding: clamp(1.5rem, 6vw, 4.5rem); color: #f8fbf6; background: #163d30; border-radius: 12px 12px 12px 3px; box-shadow: var(--shadow); }
.hero::after { position: absolute; content: ""; width: 24rem; height: 24rem; right: -9rem; bottom: -16rem; border: 1px solid #b6d2c033; border-radius: 50%; box-shadow: 0 0 0 34px #b6d2c018, 0 0 0 68px #b6d2c012; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { margin-bottom: .9rem; color: #b8d8c6; font-size: .77rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { color: #fff; }
.hero-copy { max-width: 58ch; margin-bottom: 1.5rem; color: #d9e7dd; font-size: clamp(1rem, 2vw, 1.15rem); }
.hero-actions, .button-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .65rem 1rem; color: var(--accent-ink); background: var(--accent); border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-weight: 800; line-height: 1.25; }
.button:hover { color: var(--accent-ink); filter: brightness(.92); }
.button.light { color: #163d30; background: #f4cb82; }
.button.outline { color: var(--ink); background: transparent; border-color: var(--line); }
.button.small { min-height: 40px; padding: .45rem .7rem; font-size: .88rem; }
.button.full { width: 100%; }
.button:disabled { opacity: .6; cursor: not-allowed; }
.hero-status { margin-top: 1.8rem; display: inline-flex; align-items: center; gap: .65rem; padding: .7rem .85rem; color: #f3f6ef; background: #ffffff10; border: 1px solid #ffffff25; border-radius: 8px; }
.hero-status .header-status { color: #f3f6ef; border-color: #ffffff3d; }
.hero-note { display: block; margin-top: .2rem; color: #c7d7cc; font-size: .85rem; }
.section { margin: 3rem auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head p { max-width: 55ch; margin-bottom: 0; color: var(--muted); }
.kicker { margin-bottom: .35rem; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-group { margin: 1.5rem 0 2rem; }
.service-group h3 { margin-bottom: .8rem; font-size: 1.2rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.service-card, .panel, .application-card, .offer-card, .faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.service-card { min-height: 180px; display: flex; flex-direction: column; padding: 1rem; }
.service-card p { margin-bottom: 1rem; color: var(--muted); font-size: .92rem; }
.service-card .service-foot { display: flex; align-items: end; justify-content: space-between; gap: .5rem; margin-top: auto; }
.price { color: var(--accent); font-weight: 900; white-space: nowrap; }
.subtle { color: var(--muted); font-size: .9rem; }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.offer-card { padding: 1.1rem; border-left: 4px solid var(--warm); }
.offer-badge { display: inline-block; margin-bottom: .55rem; padding: .2rem .5rem; color: #603e0c; background: #fff0d3; border-radius: 4px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-panel { padding: clamp(1.1rem, 3vw, 1.65rem); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.info-panel p:last-child { margin-bottom: 0; }
.shop-data { display: grid; gap: .65rem; margin: 1rem 0; }
.shop-data div { display: grid; grid-template-columns: 105px 1fr; gap: .6rem; }
.shop-data dt { color: var(--muted); font-size: .87rem; }
.shop-data dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.qr-preview { width: min(220px, 100%); aspect-ratio: 1; object-fit: contain; padding: .45rem; background: white; border: 1px solid var(--line); border-radius: 6px; }
.qr-empty { width: 180px; min-height: 110px; display: grid; place-items: center; padding: 1rem; color: var(--muted); background: #f4f6f1; border: 1px dashed #b6c4bb; text-align: center; font-size: .87rem; }
.faq-list { display: grid; gap: .65rem; }
.faq-item { padding: .95rem 1rem; }
.faq-item summary { cursor: pointer; font-weight: 800; }
.faq-item p { margin: .7rem 0 0; color: var(--muted); }
.page-heading { margin: 2rem 0 1.3rem; }
.page-heading h1 { font-size: clamp(2rem, 6vw, 3rem); }
.page-heading p { max-width: 65ch; color: var(--muted); }
.panel { padding: clamp(1rem, 3vw, 1.5rem); }
.panel + .panel { margin-top: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: .87rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: .65rem .75rem; color: var(--ink); background: #fff; border: 1px solid #bdcbc2; border-radius: 6px; }
.field textarea { min-height: 100px; resize: vertical; }
.field input[type="checkbox"], .field input[type="radio"] { width: 20px; min-height: 20px; accent-color: var(--accent); }
.check-row, .radio-row { display: flex; align-items: center; gap: .55rem; min-height: 44px; }
.check-row label, .radio-row label { font-weight: 600; }
.help { color: var(--muted); font-size: .8rem; }
.error { margin: 1rem 0; padding: .8rem 1rem; color: #6d211d; background: #fce9e5; border: 1px solid #efc1b9; border-radius: 7px; }
.success { margin: 1rem 0; padding: .8rem 1rem; color: #174e32; background: #e2f2e7; border: 1px solid #b7d9c0; border-radius: 7px; }
.application-list { display: grid; gap: .8rem; }
.application-card { padding: 1rem; }
.application-top { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.application-code { font-size: .8rem; color: var(--muted); font-weight: 800; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: .2rem .55rem; border-radius: 99px; color: #5b470e; background: #fff0cf; font-size: .78rem; font-weight: 800; }
.chip.green { color: #185936; background: #e0f1e4; }
.chip.red { color: #812c27; background: #fbe5e2; }
.application-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .6rem 0; color: var(--muted); font-size: .85rem; }
.remarks { margin-top: .75rem; padding: .65rem .8rem; background: #f4f6f1; border-left: 3px solid var(--warm); font-size: .9rem; white-space: pre-wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { color: #40564b; background: #eef4ef; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.stat { min-height: 90px; padding: .85rem; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.stat strong { display: block; color: var(--accent); font-family: Georgia, serif; font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .8rem; }
.manage-card { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(120px, .7fr) minmax(160px, 1fr) minmax(190px, 1.3fr); gap: .75rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.manage-card:last-child { border-bottom: 0; }
.manage-actions { display: grid; gap: .4rem; }
.empty-state { padding: 2rem 1rem; color: var(--muted); text-align: center; }
.site-footer { margin-top: 3rem; padding: 1.5rem 0 2.5rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .86rem; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
dialog { width: min(440px, calc(100% - 28px)); max-height: 90vh; padding: 1.3rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 80px #10281e44; }
dialog::backdrop { background: #10251dcc; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.close-button { width: 44px; height: 44px; color: var(--ink); background: #edf2ed; border: 0; border-radius: 6px; font-size: 1.25rem; }
.mobile-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); min-height: 60px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -7px 22px #19392a0d; }
.mobile-nav a { min-height: 58px; display: grid; place-content: center; justify-items: center; gap: .1rem; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 800; }
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav button { min-height: 58px; display: grid; place-content: center; justify-items: center; gap: .1rem; color: var(--muted); background: transparent; border: 0; font-size: .72rem; font-weight: 800; }
.mobile-nav button .nav-icon { font-family: Georgia, serif; font-size: 1.15rem; line-height: 1; }
.mobile-nav .nav-icon { font-family: Georgia, serif; font-size: 1.15rem; line-height: 1; }
.nowrap { white-space: nowrap; }
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .mobile-nav { display: none; }
}
@media (max-width: 920px) {
  .desktop-nav a { padding-inline: .5rem; font-size: .82rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manage-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 560px); }
  .header-row { min-height: 64px; }
  .desktop-nav { display: none; }
  .brand-name { max-width: 15ch; font-size: .9rem; }
  .header-status { min-height: 38px; padding-inline: .5rem; font-size: .66rem; }
  .hero { margin: .8rem auto 2.5rem; border-radius: 9px 9px 9px 2px; }
  .hero h1 { max-width: 12ch; }
  .hero-status { align-items: start; flex-direction: column; }
  .section { margin-block: 2.4rem; }
  .section-head { align-items: start; flex-direction: column; }
  .service-grid, .offers, .info-grid, .form-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .service-card { min-height: 160px; }
  .shop-data div { grid-template-columns: 88px 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manage-card { grid-template-columns: 1fr; }
  .application-top { flex-direction: column; }
  .site-footer .shell { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
.print-highlight { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; padding: clamp(1.2rem, 3vw, 2rem); background: #e7f0e9; border: 1px solid #c8d9cd; border-left: 5px solid var(--accent); border-radius: 8px; }
.print-highlight > div:first-child { max-width: 62ch; }
.print-highlight p:last-of-type { color: var(--muted); }
.print-highlight-rate { min-width: 190px; display: grid; gap: .25rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.print-highlight-rate strong { color: var(--accent); font-family: Georgia, serif; font-size: 1.8rem; }
.print-highlight-rate small { font-family: inherit; font-size: .9rem; }
.print-highlight-rate span:last-child { color: var(--muted); font-size: .8rem; }
.quote-panel { align-self: start; position: sticky; top: 90px; }
.quote-lines { display: grid; gap: .7rem; margin: 1.2rem 0; }
.quote-lines > div { display: flex; justify-content: space-between; gap: .8rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.quote-lines dt { color: var(--muted); }
.quote-lines dd { margin: 0; font-weight: 800; white-space: nowrap; }
.quote-lines .quote-total { padding-top: .2rem; border-bottom: 0; color: var(--accent); font-size: 1.2rem; font-weight: 900; }
.payment-choice { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 7px; }
.payment-choice legend { padding-inline: .35rem; font-weight: 800; }
.print-payment-panel { padding: 1rem; background: #f5f8f4; border: 1px solid var(--line); border-radius: 7px; }
.print-payment-panel .form-grid { margin-top: 1rem; }
.chat-layout { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.6fr); align-items: start; gap: 1rem; }
.thread-list { display: grid; gap: .4rem; }
.thread-link { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem; color: var(--ink); text-decoration: none; border: 1px solid transparent; border-radius: 6px; }
.thread-link:hover, .thread-link.selected { color: var(--accent); background: #edf4ee; border-color: var(--line); }
.thread-link small { display: block; color: var(--muted); }
.nav-badge { display: inline-flex; align-items: center; min-height: 22px; padding: .1rem .45rem; color: #fff; background: var(--bad); border-radius: 99px; font-size: .72rem; white-space: nowrap; }
.chat-panel { min-width: 0; }
.chat-messages { display: grid; gap: .7rem; max-height: 60vh; overflow-y: auto; margin-bottom: 1rem; padding: .2rem; }
.chat-message { max-width: 88%; padding: .8rem; background: #f2f5f1; border: 1px solid var(--line); border-radius: 7px; overflow-wrap: anywhere; }
.chat-message.from-staff { justify-self: end; background: #e8f2eb; border-color: #cadfd0; }
.chat-message p { margin: .35rem 0; white-space: pre-wrap; }
.chat-meta { color: var(--muted); font-size: .76rem; font-weight: 700; }
.chat-composer { padding-top: .9rem; border-top: 1px solid var(--line); }
.print-work-card { grid-template-columns: minmax(145px, 1fr) minmax(140px, .8fr) minmax(160px, 1fr) minmax(190px, 1.2fr); }
.danger-button { color: var(--bad) !important; border-color: #e5c4c0 !important; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.mobile-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .print-highlight { grid-template-columns: 1fr; }
  .print-highlight-rate { width: 100%; }
  .chat-layout { grid-template-columns: 1fr; }
  .thread-list { display: flex; flex-wrap: wrap; }
  .thread-list h2 { width: 100%; }
  .thread-link { flex: 1 1 180px; }
  .quote-panel { position: static; }
}