:root {
  color-scheme: light;
  font-family: "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #192e29;
  background: #eef3f0;
  --green: #146449;
  --green-dark: #133e33;
  --muted: #4c655c;
  --border: #d6e3db;
  --mint: #e6f2eb;
  --paper: #fbfcfa;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2776a0; outline-offset: 3px; }
.stamp {
  display: flex; align-items: center; justify-content: center; min-height: 37px;
  background: #f7e9c6; color: #664717; font-size: 13px; font-weight: 750; letter-spacing: .035em;
}
.browser-bar {
  display: flex; align-items: center; justify-content: space-between; min-height: 47px;
  padding: 0 20px; background: #fff; border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700;
}
.browser-bar .dots { font-size: 21px; line-height: 1; color: var(--muted); }
.wrap { width: min(100% - 36px, 780px); margin-inline: auto; }
.form-hero { background: var(--green-dark); color: #fff; padding: 26px 0 25px; }
.form-hero h1 { font-size: clamp(29px, 7vw, 36px); letter-spacing: -.025em; line-height: 1.4; }
.eyeline { color: #c4e6d7; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.form-hero .summary { color: #e0f0e7; font-size: 14px; margin-top: 7px; }
.deadline {
  display: inline-flex; align-items: center; min-height: 27px; background: #285a4b;
  border: 1px solid #437867; padding: 2px 10px; border-radius: 20px;
  margin-top: 14px; color: #fff; font-size: 12px; font-weight: 700;
}
input, textarea, select { width: 100%; min-width: 0; }
.form-main { padding: 16px 0 125px; }
.tabs {
  display: flex; gap: 6px; padding: 4px; background: #e1eae5; border-radius: 12px; margin-bottom: 13px;
}
.tabs a {
  flex: 1; text-align: center; padding: 8px 4px; color: #245443;
  border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 700;
}
.tabs a:first-child { background: #fff; box-shadow: 0 1px 2px #143c2e1a; }
.edit-help { font-size: 13px; color: var(--muted); margin-bottom: 17px; line-height: 1.7; }
.field-section {
  background: var(--paper); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px; margin: 0 0 14px; min-width: 0; scroll-margin-top: 12px;
}
.field-section h2 { font-size: 19px; margin: 0 0 11px; }
.field-grid { display: grid; gap: 15px; }
.field-row { min-width: 0; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 5px; }
.label-row > label:first-child { font-size: 14px; font-weight: 750; }
.clear { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.clear input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.field-row input:not([type="checkbox"]), .field-row select, .field-row textarea {
  display: block; border: 1px solid #c5d6cc; border-radius: 8px; min-height: 43px;
  padding: 8px 11px; color: #1d332b; background: #fff; font-size: 16px;
}
.field-row input:disabled, .field-row select:disabled, .field-row textarea:disabled { opacity: .65; background: #e8eeea; }
.field-row input::placeholder, .field-row textarea::placeholder { color: #596d63; opacity: 1; }
.field-row textarea { resize: vertical; }
.field-hint, .field-error, .form-error { font-size: 12px; margin-top: 5px; line-height: 1.5; }
.field-hint { color: var(--muted); }
.field-error, .form-error { color: #a22825; }
.form-error { margin: 0 0 10px; font-weight: 700; }
.form-footer {
  position: fixed; z-index: 1; inset: auto 0 0; background: #fbfcfaf7;
  border-top: 1px solid var(--border); padding: 10px 0 max(12px, env(safe-area-inset-bottom));
}
.form-footer p { text-align: center; margin-top: 5px; color: var(--muted); font-size: 11px; }
.primary-button, .secondary-button {
  display: inline-flex; width: 100%; min-height: 44px; align-items: center; justify-content: center;
  padding: 9px 14px; border-radius: 9px; text-decoration: none; font-weight: 750; font-size: 15px;
}
.primary-button { color: #fff; background: var(--green); border: 1px solid var(--green); }
.secondary-button { color: var(--green); background: #fff; border: 1px solid #abd0bd; }
.state-wrap { padding: 34px 0 26px; }
.state-panel {
  border: 1px solid var(--border); border-radius: 17px; padding: 24px;
  background: #fff; box-shadow: 0 9px 28px #173b2810;
}
.state-mark {
  display: grid; place-items: center; min-height: 46px; width: 46px; border-radius: 13px;
  background: var(--mint); color: var(--green); font-weight: 800; font-size: 25px; margin-bottom: 14px;
}
.state-mark.warn { background: #fff0cb; color: #75500f; }
.state-panel h2 { font-size: 25px; line-height: 1.35; }
.state-detail { font-size: 14px; margin: 10px 0 16px; line-height: 1.75; color: var(--muted); }
.state-panel .secondary-button { margin-top: 8px; }
.state-panel ol { padding-left: 20px; line-height: 1.8; font-size: 14px; margin: 14px 0 17px; }
.state-panel .small { color: var(--muted); font-size: 12px; margin-top: 7px; }
#copy-status { color: var(--green); font-size: 13px; }
.desktop-page {
  min-height: 100vh; background: radial-gradient(ellipse at 78% 18%, #d7e7dc, transparent 55%), #ebf1ed;
  padding: 28px;
}
.desktop-page > .stamp, .board > .stamp { width: max-content; border-radius: 8px; padding: 0 12px; }
.desktop-window {
  max-width: 1050px; margin: 20px auto 0; background: var(--paper); border: 1px solid #bfd0c5;
  border-radius: 17px; overflow: hidden; box-shadow: 0 22px 50px #153e2925;
}
.desktop-chrome {
  padding: 10px 16px; display: flex; gap: 16px; align-items: center;
  background: #f4f7f4; border-bottom: 1px solid var(--border); font-size: 13px;
}
.controls { display: flex; gap: 6px; }
.controls i { background: #adbdb4; border-radius: 100%; width: 9px; height: 9px; }
.address { background: #fff; border: 1px solid var(--border); border-radius: 6px; flex: 1; padding: 4px 12px; color: var(--muted); }
.desktop-content { display: grid; grid-template-columns: 1fr 1fr; min-height: 465px; }
.desktop-content .intro {
  display: grid; align-content: center; padding: 52px; background: var(--green-dark); color: #fff;
}
.desktop-content .intro h1 { font-size: 38px; line-height: 1.45; }
.desktop-content .intro p:not(.eyeline) { color: #e0f0e7; line-height: 1.75; margin-top: 12px; font-size: 15px; }
.desktop-content .login-area { display: grid; place-items: center; padding: 34px; }
.desktop-content .login-area > div { width: min(100%, 352px); }
.desktop-foot { border-top: 1px solid var(--border); padding: 13px 20px; color: var(--muted); font-size: 13px; }

.board { width: min(100% - 52px, 1110px); margin: 25px auto; }
.board > h1 { font-size: 32px; margin: 10px 0 5px; }
.board > p { font-size: 15px; color: var(--muted); margin: 0 0 17px; }
.chat {
  border: 1px solid #c2d4d1; border-radius: 15px; background: #e2edf1; min-width: 0;
  overflow: hidden;
}
.chat-top {
  padding: 11px 15px; background: #f7fbfb; display: flex; align-items: center; gap: 9px;
  border-bottom: 1px solid #c9d9da; font-weight: 750; color: #294b4a; font-size: 14px;
}
.chat-top span { background: #d6e8e5; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; }
.chat-inner { padding: 12px 14px 14px; display: grid; gap: 8px; }
.chat-time { color: #456169; text-align: center; font-size: 11px; margin-bottom: 2px; }
.chat-composer { background: #f7fbfb; color: #4b666a; font-size: 12px; padding: 10px 15px; border-top: 1px solid #c9d9da; }
.entry-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 13px; align-items: start; }
.success-grid { display: grid; grid-template-columns: minmax(245px, .46fr) 1fr; gap: 16px; align-items: start; }
.panel-label { font-size: 13px; font-weight: 750; margin: 0 0 7px; color: #294e41; }
.mock-phone { display: block; border: 1px solid #c2d4d1; border-radius: 15px; width: 100%; height: 495px; background: #eef3f0; }
.bubble-text { width: max-content; max-width: 100%; padding: 7px 11px; border-radius: 0 9px 9px 9px; background: #fff; font-size: 13px; font-weight: 750; }
.mock-tap { justify-self: end; color: #295b48; background: #e9f7ed; border-radius: 8px; padding: 5px 9px; font-size: 12px; }
.flex-carousel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.flex-bubble { background: #fff; border-radius: 10px; overflow: hidden; min-width: 0; }
.flex-box { display: flex; min-width: 0; }
.flex-box > * { min-width: 0; }
.flex-vertical { flex-direction: column; }
.flex-text { line-height: 1.48; overflow-wrap: anywhere; }
.flex-separator { height: 1px; }
.flex-button { min-height: 31px; display: grid; place-items: center; text-align: center; border-radius: 6px; font-size: 12px; font-weight: 750; }
.chat-caption { color: #3e5c60; font-size: 12px; margin-top: 2px; }
@media (min-width: 640px) {
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-section { padding: 20px; }
  .field-row.wide { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .desktop-content, .entry-grid, .success-grid { grid-template-columns: 1fr; }
  .desktop-page { padding: 15px; }
  .desktop-content .intro { padding: 25px; }
  .desktop-content .intro h1 { font-size: 29px; }
  .desktop-content .login-area { padding: 20px; }
}
.form-footer .form-error { color: #a22825; font-size: 13px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a22825 !important; }
.login-view { max-width: 920px; margin: 32px auto; }
.login-view .login-area h1 { font-size: 25px; line-height: 1.35; }
.login-view .desktop-content { min-height: 365px; }
@media (max-width: 620px) {
  .login-view { margin: 20px auto; }
  .login-view .login-area { padding: 26px; }
}
.state-panel h2[tabindex="-1"]:focus-visible, .login-area h2[tabindex="-1"]:focus-visible { outline: none; }
