:root { color-scheme: light; --ink: #202f35; --muted: #627074; --paper: #f6f5f1; --line: #e0e3de; --accent: #cf4e33; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #277878; outline-offset: 5px; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.shell { max-width: 1080px; margin: auto; padding: max(30px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left)); }
.header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 18px; }
.brand-logo { display: block; width: 152px; height: auto; flex-shrink: 0; }
.brand-caption { font-size: 10px; line-height: 1.5; letter-spacing: 1.5px; font-weight: 650; border-left: 1px solid #c8cfca; padding-left: 18px; }
.help-link { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; }
.help-link .icon { width: 18px; height: 18px; }
.account-menu { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 12px; text-align: right; }
#account-label { white-space: pre-line; overflow-wrap: anywhere; max-width: 210px; }
.logout-button { border: 1px solid #b6c5bc; border-radius: 8px; background: transparent; color: var(--ink); padding: 10px; min-height: 44px; flex-shrink: 0; }
.login-screen { max-width: 480px; padding-top: 32px; }
.login-dot { color: var(--accent); }
.login-help { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.session-help { margin: 20px 0; }
button:disabled { opacity: .65; cursor: wait; }
input[readonly] { background: #eef1eb; }
main { padding-top: 28px; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.welcome { position: relative; background: #213d40; color: #fffdf6; border-radius: 22px; padding: 36px; overflow: hidden; min-height: 470px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 2px; margin: 0 0 20px; }
.welcome .eyebrow { color: #b7c9c4; position: relative; z-index: 1; }
h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 650; line-height: 1.12; letter-spacing: -1.8px; margin: 0 0 18px; }
h1:focus { outline: none; }
.welcome h1 { position: relative; z-index: 1; font-size: clamp(40px, 4.8vw, 55px); }
.welcome h1 > span { color: #f29879; }
.welcome-copy { color: #c7d5d1; font-size: 15px; line-height: 1.7; position: relative; z-index: 1; }
.welcome-bottom { position: absolute; bottom: 30px; left: 36px; font-size: 11px; color: #c7d5d1; display: flex; gap: 10px; align-items: center; z-index: 1; }
.welcome-rule { width: 22px; height: 1px; background: #dc997f; }
.welcome-art { position: absolute; width: 220px; height: 220px; right: -28px; bottom: 8px; border: 1px solid #527071; border-radius: 50%; transform: rotate(-14deg); }
.welcome-art::before { content: ""; position: absolute; inset: 22px; border: 1px solid #527071; border-radius: 50%; }
.art-sheet { position: absolute; top: 26px; left: 47px; width: 112px; height: 145px; background: #e4e9de; border-radius: 10px; padding: 24px 16px; box-shadow: 12px 12px 0 #345457; }
.art-sheet > span { display: block; height: 5px; background: #a5b7ac; margin: 10px 0; border-radius: 8px; }
.art-sheet > span:nth-child(2) { width: 60%; }
.art-check { position: absolute; bottom: -5px; right: -16px; background: #e89a7d; color: #213d40; width: 53px; height: 53px; border-radius: 50%; display: grid; place-items: center; border: 5px solid #213d40; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 18px; gap: 12px; }
h2 { font-size: 20px; letter-spacing: -.5px; margin: 0; font-weight: 650; }
.section-heading > span { font-size: 9px; letter-spacing: 1.2px; color: var(--muted); }
.service-card { display: flex; align-items: center; gap: 18px; padding: 24px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fffefa; margin-bottom: 14px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.service-card:last-child { margin-bottom: 0; }
.service-card:hover { transform: translateY(-2px); border-color: #9daea7; box-shadow: 0 8px 20px #203d4009; }
.service-icon { width: 52px; height: 56px; display: grid; place-items: center; border-radius: 14px; flex-shrink: 0; background: #f9e7db; color: #9a522f; }
.employee-card .service-icon { background: #e4ece3; color: #436645; }
.inquiry-card .service-icon { background: #e7ebf4; color: #546689; }
.report-card .service-icon { background: #efe8f3; color: #6b4f7d; }
.service-copy { flex: 1; min-width: 0; }
.card-tag { font-size: 9px; font-weight: 600; letter-spacing: 1.2px; color: var(--muted); }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -.4px; line-height: 1.25; margin: 5px 0 7px; }
.card-description { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; }
.card-arrow { width: 18px; color: #667673; }
.quick-guide { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 34px; padding: 25px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guide-label { font-size: 9px; letter-spacing: 1.2px; font-weight: 650; color: var(--muted); line-height: 1.7; }
.quick-guide p { font-size: 12px; display: flex; align-items: center; gap: 10px; margin: 0; }
.step-number { font-size: 11px; color: #6b7771; background: #e9ece5; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 24px; color: var(--muted); font-size: 11px; }
.footer-divider { color: #b9c3ba; margin: 0 9px; }
.form-screen { max-width: 640px; margin: 0 auto 32px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 22px; color: var(--muted); font-size: 13px; padding: 0; border: 0; background: none; }
.form-screen .eyebrow { color: var(--accent); margin-bottom: 12px; }
.form-intro { color: var(--muted); margin: 0 0 28px; }
form { background: #fffefa; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
legend { font-weight: 650; font-size: 16px; padding: 0; margin-bottom: 16px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 550; margin-bottom: 18px; }
fieldset > label:last-child, .field-grid label:last-child { margin-bottom: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.field-grid label { margin: 0; }
.photo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin: 12px 0; }
.photo-previews figure { position: relative; margin: 0; min-width: 0; }
.photo-view { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; }
.photo-view img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; }
.photo-previews figcaption { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
/* No padding: a click on the dialog element itself is a click on the backdrop. */
.photo-viewer { max-width: min(80vw, 900px); max-height: 80vh; padding: 0; border: 0; border-radius: 12px; overflow: hidden; }
.photo-viewer::backdrop { background: rgba(0, 0, 0, .7); cursor: pointer; }
.photo-viewer p { margin: 0; padding: 8px 12px; }
.photo-viewer img { display: block; max-width: 100%; max-height: calc(80vh - 40px); margin: 0 auto; }
.employee-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.employee-box summary { cursor: pointer; font-weight: 550; min-height: 28px; }
.employee-box[open] summary { margin-bottom: 14px; }
.employee-pick { display: inline-flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; width: calc(100% - 1.5em); margin: 0; font-size: inherit; vertical-align: middle; }
.employee-check { width: 18px; height: 18px; accent-color: #23554b; flex-shrink: 0; }
.optional { display: inline; font-size: 11px; font-weight: 400; color: var(--muted); }
input:not([type="radio"]):not([type="checkbox"]), select, textarea { width: 100%; min-width: 0; background: #fff; border: 1px solid #cbd3cb; color: var(--ink); border-radius: 8px; padding: 12px; min-height: 46px; font-size: 16px; }
input::placeholder, textarea::placeholder { color: #737d7e; font-size: 14px; }
textarea { resize: vertical; }
.field-hint { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.65; margin: 0 0 14px; }
label .field-hint { margin-bottom: 0; }
.type-options { display: flex; gap: 12px; }
.type-options label { flex: 1; position: relative; margin: 0; }
.type-options input { position: absolute; top: 19px; left: 15px; accent-color: #23554b; }
.type-options span { border: 1px solid #cbd3cb; border-radius: 10px; padding: 15px 12px 15px 39px; background: #fff; }
.type-options input:checked + span { background: #edf3ec; border-color: #66836d; color: #2d5844; }
.upload-label { background: #f4f6f1; border: 1px dashed #9cae9e; border-radius: 12px; padding: 18px; }
.upload-label input { padding: 8px; background: transparent; border: 0; font-size: 12px; }
input::file-selector-button { background: white; border: 1px solid #bbc8bb; border-radius: 6px; padding: 9px; margin-right: 8px; cursor: pointer; color: #304b3b; }
.primary-button { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; background: #254c45; color: #fff; border: 0; border-radius: 10px; font-size: 14px; font-weight: 550; }
.primary-button:hover { background: #1a3c35; }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.review-actions .primary-button { width: auto; min-height: 42px; padding: 10px 20px; }
.review-actions .secondary-button { background: transparent; color: #254c45; border: 1px solid #254c45; }
.review-actions .secondary-button:hover { background: #e8efed; }
.review-details { margin: 24px 0; padding: 24px; background: #fffefa; border: 1px solid var(--line); border-radius: 16px; }
.review-details dt { font-size: 12px; color: var(--muted); margin-top: 18px; }
.review-details dt:first-child { margin-top: 0; }
.review-details dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { padding: 16px; border: 1px solid #e3cfaa; border-radius: 10px; background: #fbf2e3; color: #725223; font-size: 13px; }
.notice strong { display: block; margin-bottom: 4px; }
.saved-notice { border-color: #bcd3bd; background: #eef4ee; color: #2f5233; }
@media (max-width: 760px) {
  .header { flex-wrap: wrap; gap: 16px; }
  .brand-logo { width: 120px; }
  .shell { max-width: 540px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); padding-top: max(22px, env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px)); }
  .header { padding-bottom: 20px; }
  .brand { gap: 12px; }
  .brand-caption { padding-left: 12px; font-size: 8px; }
  .account-menu { gap: 7px; font-size: 10px; }
  #account-label { max-width: 100px; }
  .logout-button { font-size: 11px; padding: 8px; }
  .help-link { font-size: 11px; gap: 6px; }
  .home-grid { grid-template-columns: 1fr; gap: 26px; }
  .welcome { min-height: 265px; padding: 26px; border-radius: 18px; }
  .welcome .eyebrow { font-size: 9px; letter-spacing: 1.6px; margin-bottom: 17px; }
  .welcome h1 { font-size: 39px; }
  .welcome-copy { font-size: 13px; margin-bottom: 25px; max-width: 220px; }
  .welcome-bottom { left: 26px; bottom: 22px; font-size: 10px; }
  .welcome-art { width: 160px; height: 160px; right: -38px; bottom: 29px; opacity: .65; }
  .art-sheet { width: 78px; height: 110px; top: 20px; left: 39px; padding: 15px 12px; }
  .art-check { width: 43px; height: 43px; }
  .section-heading { margin-top: 0; margin-bottom: 14px; }
  .service-card { padding: 19px 16px; gap: 14px; margin-bottom: 12px; }
  .service-icon { width: 46px; height: 50px; }
  h3 { font-size: 19px; }
  h3 br { display: none; }
  .card-tag { font-size: 8px; }
  .card-description { font-size: 12px; }
  .quick-guide { flex-direction: column; align-items: flex-start; gap: 13px; margin-top: 26px; padding: 20px 0; }
  .guide-label br { display: none; }
  .guide-label { margin-bottom: 2px; }
  footer { font-size: 10px; padding-top: 20px; flex-wrap: wrap; }
  .field-grid { grid-template-columns: 1fr; }
  form { padding: 20px; }
  .form-screen h1 { font-size: 33px; letter-spacing: -1px; }
}
@media (max-width: 360px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .service-card { gap: 10px; padding: 16px 12px; }
  .service-icon { width: 38px; height: 44px; }
  .card-arrow { width: 15px; }
  h3 { font-size: 17px; }
  .welcome-art { right: -60px; }
  .section-heading > span { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { .service-card { transition: none; } }
