:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  color: #392c23;
  background: #faf7f2;
  --accent: #994312;
  --line: #e9ded1;
  --layout: 820px;
}
* { box-sizing: border-box }
body { margin: 0; min-width: 280px; min-height: 100vh }
button,input,select,textarea { font: inherit }
a,button { -webkit-tap-highlight-color: transparent; touch-action: manipulation }
a { color: inherit; text-decoration: none }
button { cursor: pointer; color: inherit }
button:disabled { cursor: wait }
:where(a,button,input,select,textarea):focus-visible { outline: 3px solid #9e430f; outline-offset: 3px }
h1,h2,h3,p { margin: 0 }
.ui-icon { flex: none; vertical-align: middle }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 10; padding: 10px 16px; background: white }
.skip-link:focus { top: 4px }
.site-header { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(106deg,#ff9e29 0%,#ffad3c 64%,#ffc466 100%); color: #39250f }
.site-header::after { content: ""; position: absolute; z-index: -1; inset: 0 0 0 52%; pointer-events: none; opacity: .46; background: repeating-radial-gradient(ellipse 94% 280% at 100% -185%,transparent 0 14px,#fff4ce99 14.5px 15.3px,transparent 15.8px 28px) }
.header-inner { width: min(var(--layout),100%); padding: 9px 24px; margin: auto; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; min-height: 76px }
.brand { grid-column: 2; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 44px; white-space: nowrap; text-align: center }
.brand span { font-size: 1.125rem; line-height: 1.3; font-weight: 550; color: #624017 }
.brand strong { font-size: 1.3125rem; line-height: 1.25; letter-spacing: .025em; font-weight: 700 }
.font-switch { grid-column: 3; justify-self: end; padding: 8px 13px; min-height: 40px; border: 1px solid #97612199; border-radius: 22px; background: #ffdaa2; color: #513415; font-size: .88rem; font-weight: 600; white-space: nowrap }
.font-switch[aria-pressed="true"] { background: #fff0cf; color: #563414 }
#content { outline: none }
.test-notice { padding: 7px 12px; background: #fff3dc; color: #694413; font-size: .875rem; line-height: 1.5; text-align: center }
.home-page { width: min(var(--layout),calc(100% - 48px)); margin: 22px auto 0; padding-bottom: max(20px,env(safe-area-inset-bottom)) }
.notice-strip { display: flex; align-items: center; gap: 16px; background: #fff; padding: 4px 19px; border: 1px solid var(--line); border-radius: 11px }
.notice-strip a { display: inline-flex; align-items: center; min-height: 44px }
.notice-label { gap: 8px; color: var(--accent); flex-shrink: 0 }
.notice-label strong { font-size: 1rem; font-weight: 700 }
.notice-latest { position: relative; min-width: 0; gap: 8px; flex: 1; padding-left: 17px; font-size: .96rem }
.notice-latest::before { content: ""; height: 17px; width: 1px; position: absolute; left: 0; background: #e7ddd1 }
.notice-headline { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.notice-all { color: #78573a; font-size: .88rem; flex-shrink: 0 }
.portal-section { padding: 0; margin-top: 24px }
.section-title { display: flex; align-items: center; gap: 9px; font-size: 1.11rem; font-weight: 720; line-height: 1.5; margin: 0 0 15px }
.section-title::before { content: ""; display: block; width: 4px; height: 17px; background: #e67f1d; border-radius: 2px }
.tile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px }
.local-tiles { grid-auto-rows: 1fr; gap: 12px }
.primary-entry { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 16px 20px; border: 1px solid var(--card-border); border-radius: 13px; background: var(--card-fill); color: #332b25 }
.primary-entry.suggestion { --card-fill: #fff3e9; --card-border: #efd7bd; --card-ink: #914818; --button-fill: #ffe0bd }
.primary-entry.issue { --card-fill: #edf5ef; --card-border: #cfe1d5; --card-ink: #2e614c; --button-fill: #d7eade }
.primary-entry.booking { --card-fill: #fff6df; --card-border: #ebdbb1; --card-ink: #7a5314; --button-fill: #f7e5ae }
.primary-entry.progress { --card-fill: #eff4f7; --card-border: #d2dfe5; --card-ink: #385d70; --button-fill: #dce9ef }
.entry-heading { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 6px }
.entry-heading strong { font-size: 1.28rem; font-weight: 700; line-height: 1.4 }
.entry-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--button-fill); color: var(--card-ink) }
.primary-entry small { margin: 3px 0 12px; color: #574e46; font-size: 1rem; line-height: 1.5 }
.action-label { margin-top: auto; padding: 3px 12px; border-radius: 7px; background: var(--button-fill); color: var(--card-ink); font-size: .94rem; font-weight: 650; line-height: 1.5 }
.service-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 77px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 11px; background: white; color: #3c3229; line-height: 1.4; font-size: 1.1rem; font-weight: 620 }
.service-tile .ui-icon { color: var(--ink); stroke-width: 1.8 }
.insurance { --tint: #e5f1e9; --ink: #3d7860 }
.social { --tint: #e6eff5; --ink: #466c85 }
.retirement { --tint: #f0e9f2; --ink: #795b7d }
.gft { --tint: #fcebdc; --ink: #a65b29 }
.outside-section .service-tile .ui-icon { box-sizing: content-box; width: 25px; height: 25px; padding: 8px; border-radius: 11px; color: var(--service-ink,var(--ink)); background: var(--service-wash,var(--tint)) }
.outside-section .service-tile { text-align: left; overflow-wrap: anywhere }
.service-link-tile { --tint: #e5f1e9; --ink: #3d7860 }
.service-qr-tile { --tint: #fcebdc; --ink: #a65b29 }
.mini-entry { position: relative; display: grid; min-width: 0 }
.mini-entry .mini-caption { display: block; margin-top: 2px; font-size: .76rem; font-weight: 450; color: #756758 }
.mini-entry wx-open-launch-weapp { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 11px; pointer-events: none; visibility: hidden }
.mini-entry[data-ready] wx-open-launch-weapp { visibility: visible; pointer-events: auto }
.mini-entry[data-ready] > :first-child { pointer-events: none }
.mini-entry:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 11px }
.mini-entry[hidden],[data-mini-retry][hidden],[data-mini-status]:empty { display: none }
.outside-empty { grid-column: 1 / -1; color: #675b4f; padding: 6px 0 }
.showing-service-qr { overflow: hidden }
.service-qr-dialog { width: min(360px,calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 21px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: white; color: #392c23; box-shadow: 0 12px 50px #27190f30; overscroll-behavior: contain }
.service-qr-dialog::backdrop { background: #221a15a6 }
.service-qr-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px }
.service-qr-dialog h2 { margin: 0; font-size: 1.25rem; line-height: 1.45; overflow-wrap: anywhere }
.service-qr-dialog [data-close-qr] { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -5px -5px -5px 0; border: 0; border-radius: 50%; background: #faf5ef; color: #69574a }
.qr-image-area { display: grid; place-items: center; min-height: 150px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white }
.qr-image-area img { display: block; width: 100%; max-height: 49vh; object-fit: contain; -webkit-touch-callout: default }
.qr-image-state { display: grid; justify-items: center; gap: 12px; color: #68594c }
.qr-image-area [hidden] { display: none }
.qr-service-hint { margin-top: 15px; padding: 11px 13px; border-radius: 8px; background: #fff2df; color: #624321; font-size: 1rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere }
.prototype-note { color: #786d60; margin: 21px 0 0; text-align: center; font-size: .8rem }
@media(hover:hover) {
  .service-tile:hover { filter: brightness(.975) }
  .primary-entry:hover { border-color: var(--card-ink) }
  .font-switch:hover { border-color: #75440e }
  .notice-strip a:hover { text-decoration: underline; text-underline-offset: 3px }
}
.back-link { display: inline-flex; align-items: center; gap: 7px; color: #805630; font-size: .94rem; min-height: 44px }
.basic-screen { width: min(calc(100% - 40px),630px); margin: 20px auto 40px }
.panel-card { background: white; border: 1px solid var(--line); border-radius: 9px; padding: clamp(20px,4vw,32px); margin-top: 10px }
.panel-card h1 { margin: .85rem 0 .55rem; font-size: 1.65rem; line-height: 1.45 }
.panel-card p { color: #61564a; font-size: 1rem; line-height: 1.8; margin: .7rem 0 }
.panel-card ol { margin: 1rem 0; padding-left: 1.45rem; line-height: 1.85 }
.panel-card li { padding-left: .15rem; margin: .4rem 0 }
.primary-button,.secondary-button { display: inline-flex; gap: 7px; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: white; padding: 9px 16px; min-height: 46px; font-weight: 650 }
.secondary-button { color: #674b36; background: white; border-color: #dccbb8 }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px }
.panel-card .local-note { background: #fff2dc; color: #755636; padding: 11px 14px; border-radius: 7px; font-size: .9rem }
.modal-icon,.outside-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 8px }
.modal-icon { color: var(--accent); background: #ffeacc }
.outside-icon { color: var(--ink); background: var(--tint) }
html.large-text { font-size: 19px }
@media(max-width:650px) {
  .header-inner { padding: 7px 12px; min-height: 66px }
  .brand span { font-size: 1.0625rem }
  .brand strong { font-size: 1.1875rem }
  .font-switch { font-size: .8rem; padding: 6px 9px }
  .home-page { width: calc(100% - 20px); margin: 11px auto 0 }
  .notice-strip { gap: 9px; padding: 0 11px; border-radius: 9px }
  .notice-label { gap: 5px }.notice-label strong { font-size: .94rem }.notice-label .ui-icon { width: 18px }
  .notice-latest { font-size: .89rem; padding-left: 9px; gap: 5px }.notice-all { font-size: .84rem }
  .portal-section { margin-top: 20px }
  .section-title { font-size: 1.1rem; margin-bottom: 10px }
  .primary-entry { padding: 12px 14px }
  .entry-heading strong { font-size: 1.14rem }.entry-icon { width: 28px; height: 28px; border-radius: 8px }.entry-icon .ui-icon { width: 19px; height: 19px }
  .primary-entry small { font-size: .94rem; margin-bottom: 10px }
  .action-label { font-size: .9rem; padding: 3px 10px }
  .tile-grid { gap: 8px }.service-tile { min-height: 66px; padding: 12px 13px; gap: 5px; font-size: 1.02rem }
  .outside-section .service-tile .ui-icon { width: 21px; height: 21px; padding: 6px; border-radius: 9px }
  .prototype-note { margin-top: 18px }
  .basic-screen { width: calc(100% - 28px); margin: 10px auto 28px }
  .large-text .notice-label { gap: 3px }.large-text .notice-strip { gap: 6px }
}
@media(max-width:350px) {
  .home-page { width: calc(100% - 16px) }.service-tile { padding-inline: 10px }.primary-entry { padding-inline: 11px }
  .header-inner { padding-inline: 8px }
  .brand strong { letter-spacing: .01em }
  .notice-strip { padding-inline: 8px; gap: 6px }.notice-label { gap: 3px }
  .entry-heading { gap: 3px }.entry-icon { width: 25px; height: 25px }
  .large-text .outside-section .service-tile { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px }
  .large-text .outside-section .service-tile .ui-icon { order: -1; width: 18px; height: 18px; padding: 4px }
}
@media(max-width:314px) {
  .header-inner { padding-inline: 3px }
  .brand span { font-size: 1rem }
}
