:root {
  --ink: #1f2933;
  --muted: #667085;
  --line: #d9e2ec;
  --page: #f4f7f9;
  --panel: #ffffff;
  --brand: #0f6b7a;
  --bad: #a52828;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding-bottom: 72px;
  font-family: "Microsoft JhengHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}
.company-identity {
  display: grid;
  gap: 10px;
  padding: 14px 12px 0;
  background: #fff;
}
.company-brand {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}
.company-logo-wrap {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}
.company-logo {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
}
.company-eyebrow {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.company-brand h1 {
  margin: 0;
  color: #102a43;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}
.business-items-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 14px 14px;
  background: #2478a6;
  color: #fff;
  border-top: 3px solid #64a83a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.business-items-text strong {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;
}
.business-items-text strong::before,
.business-items-text strong::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}
.business-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
}
.business-list li {
  position: relative;
  padding-left: 14px;
}
.business-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e8f3fb;
}
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
h1 { margin: 0; font-size: 20px; letter-spacing: 0; }
h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: 0; }
main { display: grid; gap: 12px; padding: 12px; }
.panel {
  display: grid;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
select, input, textarea, button {
  width: 100%;
  min-height: 44px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: #fff;
}
input[type="file"] {
  background: #fff;
}
textarea { min-height: 78px; resize: vertical; }
button { color: var(--ink); }
button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; word-break: break-all; }
.facility-list { display: grid; gap: 12px; }
.facility-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdfe;
}
.facility-card h3 { margin: 0; font-size: 16px; letter-spacing: 0; }
.facility-meta { color: var(--muted); font-size: 13px; }
.supplement-note {
  margin: 0;
  padding: 10px;
  border: 1px solid #f0d48a;
  border-radius: 7px;
  background: #fff9e8;
  color: #704b00;
  line-height: 1.5;
  white-space: pre-wrap;
}
.design-reference {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #c9e3ea;
  border-radius: 8px;
  background: #f2fbfd;
  color: #173f49;
}
.design-reference strong {
  line-height: 1.45;
}
.design-table-wrap {
  overflow-x: auto;
}
.design-reference table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.design-reference th,
.design-reference td {
  padding: 7px 8px;
  border: 1px solid #cfe0e6;
  text-align: left;
  white-space: nowrap;
}
.design-reference th {
  background: #e1f3f7;
  font-weight: 700;
}
.check-status {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f5ed;
  color: #17603b;
  font-weight: 700;
}
.check-status.bad {
  background: #fff1f1;
  color: var(--bad);
}
.mobile-slot-list {
  display: grid;
  gap: 10px;
}
.mobile-slot {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.photo-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.photo-preview-thumb {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.photo-preview-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.photo-preview-thumb span {
  display: block;
  padding: 6px 4px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.photo-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 52px 12px 20px;
  background: rgba(10, 18, 24, 0.88);
}
.photo-preview-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.photo-preview-modal button {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.notice {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 76px;
  z-index: 10;
  padding: 12px;
  border-radius: 8px;
  background: #eef9f2;
  color: #14533c;
  border: 1px solid #b8d8c8;
}
.notice.error { background: #fff1f1; color: var(--bad); border-color: #efb5b5; }
.hidden { display: none; }
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  min-height: 56px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
}
.bottom-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}
@media (min-width: 720px) {
  .company-identity {
    padding: 20px 20px 0;
  }
  .company-brand {
    grid-template-columns: 104px 1fr;
  }
  .company-logo-wrap,
  .company-logo {
    width: 104px;
    height: 104px;
  }
  .company-brand h1 {
    font-size: 30px;
  }
  .company-eyebrow {
    font-size: 15px;
  }
  .business-items-text {
    grid-template-columns: auto 1fr;
    gap: 28px;
    padding: 14px 34px;
    border-top-width: 4px;
  }
  .business-items-text strong {
    display: block;
    font-size: 32px;
    letter-spacing: 6px;
    padding-right: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.42);
  }
  .business-items-text strong::before,
  .business-items-text strong::after { display: none; }
  .business-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 25px;
    gap: 5px 42px;
  }
  .business-list li {
    padding-left: 22px;
  }
  .business-list li::before {
    width: 7px;
    height: 7px;
  }
}
