:root { color-scheme: light; font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif; background: #f5f7f7; color: #172b2d; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { max-width: 1440px; padding: 24px; margin: 0 auto; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.bell { position: relative; min-width: 48px; padding: 8px; }
.badge { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; padding: 2px 5px; border-radius: 12px; background: #ac352b; color: #fff; font-size: 12px; line-height: 20px; }
.brand { font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.brand span { font-size: 14px; color: #527074; margin-left: 8px; }
.panel { background: #fff; border: 1px solid #dde8e9; border-radius: 16px; padding: 32px; box-shadow: 0 8px 24px #183d420a; }
.onboarding { max-width: 640px; margin: 0 auto; }
.onboarding > p { line-height: 1.7; color: #527074; }
.onboarding input[readonly] { background: #eef2f2; color: #516366; }
.acknowledgement { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.acknowledgement input { width: 20px; min-height: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; }
h1 { font-size: 24px; margin: 0 0 24px; }
form { display: grid; gap: 16px; max-width: 480px; }
label { display: grid; gap: 8px; font-weight: 650; }
input { width: 100%; min-height: 48px; border: 1px solid #b8c9cc; border-radius: 8px; padding: 8px 12px; font: inherit; }
select, textarea { width: 100%; border: 1px solid #b8c9cc; border-radius: 8px; padding: 8px 12px; font: inherit; background: #fff; color: inherit; }
select { min-height: 48px; }
textarea { resize: vertical; }
input:focus-visible, button:focus-visible { outline: 3px solid #63b4aa; outline-offset: 2px; }
select:focus-visible, textarea:focus-visible { outline: 3px solid #63b4aa; outline-offset: 2px; }
button { min-height: 48px; border: 0; border-radius: 8px; padding: 8px 16px; background: #155e64; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
button.secondary { background: #eaf2f2; color: #155e64; }
button:disabled { opacity: .5; cursor: wait; }
#message { min-height: 24px; margin: 16px 0 0; }
#facilities { padding: 0; list-style: none; display: grid; gap: 8px; }
#facilities li { padding: 16px; border: 1px solid #dde8e9; border-radius: 8px; }
.memo-panel { border-top: 1px solid #dde8e9; padding-top: 24px; margin-top: 24px; }
.memo-panel h2 { font-size: 20px; margin: 0 0 16px; }
.memo-panel label { margin-bottom: 8px; }
.memo-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.memo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#memo-message { min-height: 24px; }
.notice { margin: 24px 0 0; padding: 16px; background: #f3f8f8; border-radius: 8px; }
.announcement-panel { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid #dde8e9; }
.announcement-panel { background: #fff; border: 1px solid #dde8e9; border-radius: 16px; padding: 24px; }
.announcement-panel h2 { font-size: 20px; margin: 0 0 16px; }
#announcement-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.announcement-item { display: grid; gap: 8px; width: 100%; text-align: left; background: #f3f8f8; color: #172b2d; }
.announcement-item span { font-size: 14px; font-weight: 400; color: #527074; }
#announcement-message { min-height: 24px; }
dialog { width: min(100% - 32px, 560px); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid #dde8e9; border-radius: 16px; padding: 24px; color: #172b2d; }
dialog::backdrop { background: #102d30aa; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#announcement-kind { color: #155e64; font-weight: 700; }
#announcement-title { margin: 24px 0 8px; font-size: 24px; }
#announcement-date { color: #527074; font-size: 14px; }
#announcement-body { white-space: pre-wrap; line-height: 1.7; overflow-wrap: anywhere; }
#announcement-dialog-message { min-height: 24px; }
.portal-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-nav { display: grid; gap: 8px; position: sticky; top: 24px; }
.side-nav button { width: 100%; text-align: left; background: transparent; color: #315457; font-weight: 600; }
.side-nav button[aria-current="page"] { background: #e5f2f0; color: #155e64; }
.portal-content { min-width: 0; }
.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 16px 24px; margin-bottom: 24px; background: #fff; border: 1px solid #dde8e9; border-radius: 16px; }
.toolbar label { min-width: 240px; }
.toolbar p { margin: 0; color: #527074; font-size: 13px; text-align: right; }
#data-message { margin: 0 0 16px; color: #9a342a; }
.view { min-width: 0; }
.surface { background: #fff; border: 1px solid #dde8e9; border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.surface h2 { font-size: 18px; margin: 0 0 16px; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card { min-width: 0; background: #fff; border: 1px solid #dde8e9; border-radius: 12px; padding: 16px; }
.kpi-title { color: #527074; font-size: 14px; font-weight: 650; }
.kpi-value-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.kpi-value-row strong { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; overflow-wrap: anywhere; }
.change-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 4px; background: #eef3f3; color: #4a6265; font-size: 12px; font-weight: 700; white-space: nowrap; }
.change-tag[data-trend="up"] { background: #e3f3eb; color: #176c4a; }
.change-tag[data-trend="down"] { background: #fae8e4; color: #a33c32; }
.kpi-previous { color: #527074; font-size: 13px; }
.revenue-chart { position: relative; min-height: 224px; overflow-x: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; color: #527074; font-size: 12px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.chart-legend i[data-kind="current"] { background: #176c73; }
.chart-legend i[data-kind="previous"] { background: #a9c6c9; }
.chart-legend i[data-kind="occupancy"] { background: #d4843d; border-radius: 50%; }
.chart-groups { display: flex; align-items: stretch; min-width: 480px; height: 208px; gap: 4px; }
.chart-group { flex: 1; min-width: 36px; display: grid; grid-template-rows: 1fr auto; gap: 8px; padding: 0 2px; border-radius: 0; color: #527074; background: transparent; font-size: 12px; font-weight: 500; text-align: center; }
.chart-bars { display: flex; align-items: end; justify-content: center; gap: 3px; height: 176px; border-bottom: 1px solid #d8e3e3; }
.chart-bar { display: block; width: min(45%, 24px); min-height: 0; border-radius: 4px 4px 0 0; }
.chart-bar.current { background: #176c73; }
.chart-bar.previous { background: #a9c6c9; }
.chart-group:hover, .chart-group:focus-visible { background: #eef6f5; }
.occupancy-line { position: absolute; left: 0; top: 48px; width: 100%; min-width: 480px; height: 160px; pointer-events: none; }
.occupancy-line polyline { fill: none; stroke: #d4843d; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
#chart-tooltip, #performance-chart-tooltip { min-height: 48px; margin: 16px 0 0; padding: 8px 16px; border-radius: 8px; background: #eef6f5; font-size: 14px; }
.future-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fiscal-summary .kpi-card { max-width: 360px; }
.fiscal-summary p { margin: 8px 0 0; color: #527074; font-size: 13px; }
.future-summary > div { display: grid; gap: 8px; }
.future-summary span { color: #527074; font-size: 13px; }
.future-summary strong { font-size: 20px; overflow-wrap: anywhere; }
.future-value-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.future-summary .future-previous { color: #527074; font-size: 12px; }
.future-summary .change-tag { justify-self: start; color: #4a6265; }
.future-summary .change-tag[data-trend="up"] { color: #176c4a; }
.future-summary .change-tag[data-trend="down"] { color: #a33c32; }
.future-list { display: grid; gap: 16px; }
.future-month { margin-bottom: 0; }
.comparison-note { margin: 16px 0 0; color: #527074; font-size: 13px; }
.trend-heading, .trend-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: center; }
.trend-heading { padding: 8px 0; color: #527074; font-size: 12px; }
.trend-list { list-style: none; padding: 0; margin: 0; }
.trend-row { padding: 16px 0; border-top: 1px solid #dde8e9; font-size: 13px; }
.trend-row strong, .trend-row span { min-width: 0; overflow-wrap: anywhere; }
.trend-row small { display: none; }
.data-note { margin: 0 0 16px; color: #527074; }
.period-control { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.period-control label { width: min(240px, 100%); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #dde8e9; border-left: 1px solid #dde8e9; background: #fff; margin-bottom: 24px; }
.weekday { padding: 8px; text-align: center; color: #527074; font-size: 13px; font-weight: 700; border-right: 1px solid #dde8e9; border-bottom: 1px solid #dde8e9; }
.calendar-empty { min-height: 88px; border-right: 1px solid #dde8e9; border-bottom: 1px solid #dde8e9; }
.calendar-day { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; min-height: 88px; padding: 8px; border-radius: 0; border-right: 1px solid #dde8e9; border-bottom: 1px solid #dde8e9; background: #fff; color: #172b2d; text-align: left; font-weight: 500; }
.calendar-day[data-selected="true"] { background: #e5f2f0; box-shadow: inset 0 0 0 2px #155e64; }
.calendar-day strong { font-size: 14px; }
.stay-band { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 8px; margin: 0 -8px; background: #cce8e4; color: #155e64; text-align: center; border-radius: 0; font-size: 11px; font-weight: 700; }
.stay-band[data-kind="in"] { border-radius: 16px 0 0 16px; }
.stay-band[data-kind="out"] { border-radius: 0 16px 16px 0; }
.stay-band[data-kind="transition"] { background: #dbe8f4; color: #2d5b85; border-radius: 16px; }
.calendar-extra { color: #527074; font-size: 11px; text-align: center; }
.guest-card { padding: 16px; border: 1px solid #dde8e9; border-radius: 8px; margin-top: 8px; line-height: 1.6; overflow-wrap: anywhere; }
.memo-panel { margin-top: 0; border-top: 1px solid #dde8e9; }
.definition { padding: 16px 0; border-bottom: 1px solid #dde8e9; }
.definition:first-child { padding-top: 0; }
.definition:last-child { border-bottom: 0; padding-bottom: 0; }
.definition h2 { margin-bottom: 8px; }
.definition p { margin: 0; line-height: 1.7; }
.nationality-summary { margin: 0 0 16px; color: #527074; font-size: 14px; }
.nationality-layout { display: flex; align-items: center; gap: 32px; }
.nationality-donut { flex: 0 0 168px; width: 168px; height: 168px; border-radius: 50%; position: relative; }
.nationality-donut::after { content: ""; position: absolute; inset: 40px; border-radius: 50%; background: #fff; }
.nationality-legend { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.nationality-legend li { display: flex; align-items: center; gap: 8px; }
.legend-dot { display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; }
.event-card { padding: 16px 0; border-top: 1px solid #dde8e9; }
.event-card:first-child { border-top: 0; padding-top: 0; }
.event-card strong { display: block; }
.event-card span { display: block; margin-top: 4px; color: #527074; font-size: 13px; }
.event-card p { margin: 8px 0 0; line-height: 1.6; }
.bottom-nav { display: none; }
@media (max-width: 960px) { .portal-layout { grid-template-columns: 184px minmax(0, 1fr); gap: 16px; } .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .future-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  #view-home { display: flex; flex-direction: column; }
  #home-kpis { order: 0; }
  #home-kpis .kpi-card:first-child { order: -2; }
  #home-kpis .kpi-card:nth-child(3) { order: -1; }
  #view-home > .surface:last-of-type { order: 1; }
  #view-home > .fiscal-summary { order: 2; }
  #view-home > .surface:nth-of-type(2) { order: 3; }
  #view-home > .surface:nth-of-type(3) { order: 4; }
  .shell { padding: 16px 16px 88px; }
  .header { margin-bottom: 16px; }
  .brand { font-size: 17px; }
  .brand span { font-size: 12px; margin-left: 4px; }
  #sign-out { min-height: 40px; padding: 8px; font-size: 12px; }
  .panel { padding: 24px 16px; }
  h1 { font-size: 20px; }
  .portal-layout { display: block; }
  .side-nav { display: none; }
  .toolbar { display: block; padding: 16px; margin-bottom: 16px; }
  .toolbar label { min-width: 0; }
  .toolbar p { margin-top: 8px; text-align: left; }
  .surface { padding: 16px; margin-bottom: 16px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .kpi-card { padding: 12px; }
  .kpi-value-row strong { font-size: 20px; }
  .future-summary { gap: 16px 8px; }
  .future-summary strong { font-size: 17px; }
  .trend-heading { display: none; }
  .trend-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; }
  .trend-row > strong { grid-column: 1 / -1; }
  .trend-row small { display: block; color: #527074; font-size: 12px; margin-bottom: 4px; }
  .calendar-empty, .calendar-day { min-height: 64px; }
  .calendar-day { padding: 4px; gap: 4px; }
  .stay-band { padding: 2px; margin: 0 -4px; font-size: 9px; }
  .memo-controls { grid-template-columns: 1fr; }
  .nationality-layout { gap: 16px; }
  .nationality-donut { flex-basis: 120px; width: 120px; height: 120px; }
  .nationality-donut::after { inset: 30px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; gap: 0; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #dde8e9; background: #fff; }
  .bottom-nav button { min-width: 0; min-height: 56px; padding: 4px 2px; border-radius: 0; background: transparent; color: #527074; font-size: 10px; font-weight: 600; }
  .bottom-nav button[aria-current="page"] { color: #155e64; background: #e5f2f0; }
}
