:root {
  color-scheme: light;
  font-family: "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  color: #182922;
  background: #f6f8f5;
  font-size: 16px;
  --ink: #192b23;
  --muted: #64726b;
  --green: #234c3c;
  --green-dark: #183a2e;
  --line: #e2e9e3;
  --pale: #edf3ef;
  --white: #fff;
  --shadow: 0 3px 12px #22392c05;
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0; min-width: 320px; line-height: 1.55 }
button, input, textarea, select { font: inherit }
button { cursor: pointer; color: inherit }
button:disabled { opacity: .45; cursor: default }
a { color: var(--green) }
:focus-visible { outline: 3px solid #6b9e84; outline-offset: 2px }
:focus:not(:focus-visible) { outline: none }
[hidden] { display: none !important }
h1, h2, h3, h4, p { margin: 0 }
small { font-size: .8125rem }
.icon { --icon-size: 1.25rem; display: inline-block; flex: 0 0 var(--icon-size); width: var(--icon-size); height: var(--icon-size);
  background-color: currentColor; mask: url("/icons.png") no-repeat calc(-1 * var(--i) * var(--icon-size)) 0 /
  calc(32 * var(--icon-size)) var(--icon-size); vertical-align: -.22em; }
.sage { --tint: #e5efe8; --tone: #426b53; --point: #669478 }
.blue { --tint: #e9f0f8; --tone: #476a8b; --point: #7194bc }
.rose { --tint: #f6eaf0; --tone: #995670; --point: #c3849d }
.amber { --tint: #f8f0e0; --tone: #8e642b; --point: #bd944b }
.violet { --tint: #efeaf6; --tone: #714f95; --point: #a383c1 }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .6rem; background: white; }
.skip:focus { top: 1rem }
.loading { color: var(--muted); display: grid; min-height: 60vh; place-items: center }
.loading.page-loading { min-height: 12rem }
.app-shell { min-height: 100vh; --sidebar-width: 15rem }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; gap: .73rem; align-items: center; color: var(--ink); }
.sidebar .brand { min-height: 5rem; margin: 0 1.45rem; border-bottom: 1px solid var(--line) }
.brand-mark { display: grid; flex: 0 0 2.55rem; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: 12px;
  background: #234b3a; color: #d9cba3; box-shadow: inset 0 0 0 1px #3e604d; }
.brand-mark .icon { --icon-size: 1.34rem }
.brand-word { display: flex; flex-direction: column; font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-size: 1.225rem; line-height: 1.17; letter-spacing: -.025em; white-space: nowrap; }
.brand-word small { margin-top: .26rem; font-family: "Noto Sans CJK JP", sans-serif; font-size: .67rem; font-weight: 500; letter-spacing: .09em; color: #65736b; }
.nav-groups { padding: .85rem .9rem 1rem; overflow-y: auto }
.nav-group + .nav-group { margin-top: 1.38rem }
.nav-group p { color: #75837a; font-size: .75rem; font-weight: 650; letter-spacing: .045em; margin: .2rem .63rem .47rem }
.nav-item { display: flex; align-items: center; gap: .69rem; width: 100%; min-height: 2.7rem; padding: .5rem .66rem;
  margin-bottom: .2rem; border: 0; text-align: left; border-radius: 8px; background: transparent; color: #43564c; font-size: .895rem; font-weight: 550; }
.nav-item .icon { color: #60766a; --icon-size: 1.09rem }
.nav-item:hover { background: #f3f6f2 }
.nav-item.selected { background: #e7f0e9; color: #285441; font-weight: 730 }
.nav-item.selected .icon { color: #285441 }
.nav-count { margin-left: auto; min-width: 1.45rem; text-align: center; color: #38624f; border-radius: 11px; background: #e6eee9; font-size: .72rem }
.sidebar-foot { margin-top: auto; padding: .7rem 1rem 1rem }
.sidebar-account { display: flex; align-items: center; gap: .62rem; padding: .88rem .22rem .14rem; border-top: 1px solid var(--line); }
.sidebar-account span:nth-child(2) { min-width: 0; display: grid; flex: 1; }
.sidebar-account strong { font-size: .87rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.sidebar-account small { color: var(--muted); font-size: .75rem; }
.sidebar-account .icon-btn { border: 0; }
.app-body { margin-left: var(--sidebar-width); }
.topbar { min-height: 4.15rem; display: flex; align-items: center; justify-content: space-between; padding: .5rem 2.05rem; border-bottom: 1px solid var(--line); background: #fff; }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: .74rem; font-size: .875rem; }
.topbar-left { min-width: 0; }
.topbar-left strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-section, .topbar-slash { color: var(--muted) }
.topbar-slash { color: #b3beb6; }
.topbar-actions { flex: 0 0 auto; gap: .78rem; }
.demo-pill { display: inline-flex; align-items: center; gap: .42rem; background: #eef4ef; color: #3d6950; border: 1px solid #deebe1;
  padding: .26rem .63rem; border-radius: 20px; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.demo-pill i, .active-dot, .notice-info i { width: .38rem; height: .38rem; border-radius: 50%; background: #719978; flex: 0 0 auto; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2.3rem;
  height: 2.3rem; padding: 0; color: #536b5d; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.icon-btn:hover { background: #eef4ef; }
.topbell { border-color: transparent; }
.topbell i { position: absolute; right: .44rem; top: .36rem; border: 1px solid white; width: .44rem; height: .44rem; background: #b5864a; border-radius: 50%; }
.top-account { border: 0; background: transparent; padding: 0; border-radius: 50%; display: flex; }
.mobile-menu, .mobile-tabs, .sidebar-backdrop { display: none }
.main-content { padding: 1.65rem 2.05rem 2.65rem; max-width: 110rem; margin-inline: auto }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.3rem; }
.page-heading h1 { font-size: clamp(1.55rem, 2.1vw, 2.06rem); line-height: 1.33; font-weight: 740; letter-spacing: -.027em; }
.page-subtitle { color: var(--muted); display: flex; align-items: center; gap: .42rem; font-size: .875rem; margin-top: .42rem; }
.page-subtitle .icon { --icon-size: 1.02rem; color: #6c8375; }
.heading-actions, .page-tools, .inline-actions, .filter-row { display: flex; gap: .58rem; align-items: center; flex-wrap: wrap; }
.heading-actions { justify-content: flex-end; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: .46rem; border-radius: 8px; padding: .57rem .88rem; min-height: 2.6rem;
  font-size: .875rem; font-weight: 650; white-space: nowrap; line-height: 1.3; }
.btn .icon { --icon-size: 1rem }
.btn.primary { border: 1px solid var(--green); color: #fff; background: var(--green); box-shadow: 0 2px 3px #183b2913; }
.btn.primary:hover:not(:disabled) { background: #183b2c; border-color: #183b2c; }
.btn.secondary { background: white; border: 1px solid #dbe5dd; color: #354b3e; }
.btn.secondary:hover:not(:disabled) { border-color: #a8bfae; background: #f4f7f4; }
.btn.danger-soft { border: 1px solid #ecd7d9; background: #fff7f7; color: #9c4050; }
.btn.danger-soft:hover { background: #f8e7e9; }
.link-btn { color: #345f49; background: transparent; border: 0; padding: .17rem 0; font-size: .875rem; font-weight: 680; text-align: left; line-height: 1.42; }
.link-btn:hover { color: #194832; text-decoration: underline; }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr .9fr .9fr; color: #fff;
  background: linear-gradient(110deg, #163b2e, #254e3d 61%, #2b5443); border-radius: 14px; padding: 1.35rem 1.65rem;
  box-shadow: 0 5px 16px #2646351b; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .44; background:
  repeating-radial-gradient(ellipse at 111% 154%, transparent 0 32px, #dae2bf25 33px 34px, transparent 35px 59px);
  mask-image: linear-gradient(90deg, transparent 54%, #000); }
.hero-metric { display: flex; flex-direction: column; align-items: flex-start; gap: .18rem; padding: .3rem .9rem .35rem 1.4rem;
  position: relative; z-index: 1; border: 0; border-left: 1px solid #d4e5dd26; background: transparent; text-align: left; color: inherit; min-width: 0; }
.hero-metric.first { border-left: 0; padding-left: 0; }
.hero-metric:hover .hero-label { text-decoration: underline; text-underline-offset: .2em; }
.hero-label { display: flex; align-items: center; gap: .4rem; color: #e4eee7; font-size: .875rem; font-weight: 620; white-space: nowrap; }
.hero-label .icon { --icon-size: 1.06rem; color: #c3d9ca; }
.hero-metric strong { margin-top: .2rem; font-family: "Noto Sans CJK JP", "Hiragino Sans", system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.3vw, 2.02rem); font-weight: 700; letter-spacing: -.042em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.hero-metric.first strong { font-size: clamp(1.6rem, 3.05vw, 2.6rem); }
.hero-metric small { margin-top: .2rem; color: #c5d9cb; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 1rem 0 1.17rem; }
.metric-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { display: grid; justify-items: start; gap: .28rem; text-align: left; width: 100%; min-width: 0; padding: .92rem 1.05rem .86rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
button.metric:hover { border-color: #9db6a5; }
.metric-title { display: flex; align-items: center; gap: .58rem; font-size: .875rem; font-weight: 670; color: #475b50; }
.metric-icon { display: grid; place-items: center; width: 2.08rem; height: 2.08rem; border-radius: 8px; background: var(--tint); color: var(--tone); }
.metric-icon .icon { --icon-size: 1.12rem; }
.metric-value { font-size: clamp(1.35rem, 2.1vw, 1.85rem); font-weight: 735; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1.32; overflow-wrap: anywhere; }
.metric-value small { color: #607269; margin-left: .28rem; font-weight: 650; font-size: .88rem; }
.metric-detail { font-size: .79rem; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.82fr) minmax(16rem, 1fr); gap: 1rem; align-items: start; }
.dashboard-main, .dashboard-side, .page-stack { display: grid; gap: 1rem; min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; overflow: hidden; box-shadow: var(--shadow); }
.panel-heading { padding: .94rem 1.09rem; display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.panel-heading h2 { display: flex; align-items: center; gap: .53rem; font-size: 1.035rem; font-weight: 750; }
.panel-heading h2 .icon { --icon-size: 1.1rem; color: #50715f; }
.panel-heading p { margin-top: .15rem; font-size: .8125rem; color: var(--muted); }
.count-label { display: inline-flex; background: #eef3ef; color: #4d6c5a; font-size: .76rem; font-weight: 680; padding: .19rem .56rem; border-radius: 13px; white-space: nowrap; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
th { font-size: .8125rem; font-weight: 680; color: #5b6e62; background: #f4f7f4; border-top: 1px solid #e9efe9; white-space: nowrap; }
th, td { padding: .66rem .9rem; border-bottom: 1px solid #ecf0ec; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 1.1rem; }
tbody tr:last-child td { border-bottom: 0; }
tr[data-action] { cursor: pointer }
tr[data-action]:hover { background: #f8faf8; }
td .link-btn { color: #203d30; }
td .link-btn:hover { color: #386f52; }
.table-sub, .time-cell small { display: block; color: var(--muted); margin-top: .075rem; font-size: .765rem; }
.time-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.time-cell strong, .amount-cell { font-weight: 685; }
.amount-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sales-table th, .sales-table td { white-space: nowrap; }
.code-cell { color: #557364; font-weight: 620; white-space: nowrap; }
.avatar { background: var(--tint); color: var(--tone); display: inline-grid; place-items: center; width: 2.09rem; height: 2.09rem;
  flex: 0 0 2.09rem; border-radius: 50%; font-size: .83rem; font-weight: 700; }
.cast-tag { display: inline-flex; align-items: center; gap: .33rem; padding: .18rem .56rem; border-radius: 12px;
  background: var(--tint); color: var(--tone); font-size: .79rem; font-weight: 680; white-space: nowrap; }
.cast-tag span { width: .39rem; height: .39rem; border-radius: 50%; background: var(--point); }
.status { display: inline-flex; align-items: center; gap: .34rem; border-radius: 18px; background: #edf0ec; color: #56635b; padding: .19rem .52rem;
  font-size: .77rem; font-weight: 700; white-space: nowrap; }
.status > span { height: .34rem; width: .34rem; border-radius: 50%; background: currentColor; opacity: .78; }
.status.booked, .status.confirmed { background: #e7f1eb; color: #34684c; }
.status.completed { background: #edf0ed; color: #5c6a61; }
.status.active, .status.requested, .status.neutral { background: #faf1df; color: #855d21; }
.status.cancelled, .status.reversed, .status.declined { background: #fae9e9; color: #994656; }
.active-list, .notice-list { padding: 0 .95rem .55rem; }
.active-row, .notice-row { display: flex; align-items: center; width: 100%; gap: .54rem; border: 0; border-top: 1px solid #ebefec; background: transparent; text-align: left; padding: .71rem .14rem; }
.active-row:hover, .notice-row:hover { background: #f7faf7; }
.active-info, .notice-info { display: grid; min-width: 0; flex: 1; }
.active-info strong, .notice-info strong { font-weight: 725; font-size: .87rem; display: flex; align-items: center; gap: .38rem; }
.active-info small, .notice-info small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .765rem; }
.active-time { display: grid; justify-items: end; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.active-time small { color: var(--muted); font-size: .71rem; }
.active-time strong { display: flex; align-items: center; gap: .37rem; font-size: 1.05rem; }
.active-dot { background: #b99054; }
.notice-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: 8px;
  color: #43745a; background: #e9f2eb; }
.notice-icon .icon { --icon-size: 1.03rem; }
.notice-icon.due, .notice-icon.extended { color: #815d30; background: #f9f0de; }
.notice-icon.booking, .notice-icon.booking_changed { color: #4e6c90; background: #eaf0f8; }
.notice-row time { color: var(--muted); font-size: .75rem; white-space: nowrap; align-self: flex-start; padding-top: .04rem; }
.shift-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; padding: 0 1rem .9rem; }
.shift-row { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 8px; padding: .6rem; background: #fff; text-align: left; min-width: 0; }
button.shift-row:hover { border-color: #96b2a0; }
.shift-row strong, .shift-row small { display: block; }
.shift-row strong { font-size: .88rem; }
.shift-row small { color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { display: grid; justify-items: center; gap: .55rem; text-align: center; color: var(--muted); padding: 1.4rem .8rem 1.6rem; font-size: .88rem; }
.empty-icon { display: grid; place-items: center; color: #638473; border-radius: 50%; background: #edf3ef; height: 2.3rem; width: 2.3rem; }
.empty-icon .icon { --icon-size: 1.07rem; }
.page-tools { margin-bottom: 1rem; }
.filter-row { padding: .05rem 1.08rem .95rem; }
.filter-field { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
input:not([type="checkbox"]):not([type="file"]), select, textarea { color: var(--ink); min-height: 2.55rem; border: 1px solid #d8e3da;
  background: #fff; padding: .48rem .65rem; border-radius: 8px; outline-offset: 1px; max-width: 100%; }
select { appearance: none; padding-right: 2rem; background:
  linear-gradient(45deg, transparent 49%, #5c7164 50%) calc(100% - 13px) 50% / 5px 5px no-repeat,
  linear-gradient(135deg, #5c7164 50%, transparent 51%) calc(100% - 8px) 50% / 5px 5px no-repeat, white; }
input[type="checkbox"] { accent-color: var(--green); width: 1.08rem; height: 1.08rem; margin: 0; vertical-align: middle; }
select:disabled, input:disabled { background-color: #f4f6f4 !important; opacity: .65; }
input::placeholder, textarea::placeholder { color: #7d8b82; }
.filter-select { font-size: .875rem; }
.search-field { display: flex; align-items: center; gap: .5rem; padding-left: .63rem; border-radius: 8px; border: 1px solid #d8e3da; color: #547160; min-width: min(21rem, 100%); }
.search-field input[type="search"] { flex: 1; min-width: 0; border: 0; }
.segment { display: inline-flex; max-width: 100%; overflow-x: auto; padding: .22rem; border-radius: 9px; border: 1px solid #e0e7e0; background: #eef3ee; }
.segment button { white-space: nowrap; border-radius: 6px; border: 0; color: #627466; background: transparent; padding: .4rem .66rem; font-size: .865rem; font-weight: 670; }
.segment button[aria-pressed="true"] { background: #fff; color: #2e5a44; box-shadow: 0 1px 4px #213f2c19; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; padding: 1rem; }
.calendar-toolbar h2 { font-size: 1.15rem; text-align: center; font-variant-numeric: tabular-nums; line-height: 1.4; }
.calendar-turn, .calendar-tools { display: flex; align-items: center; gap: .43rem; flex-wrap: wrap; }
.calendar-turn .btn { padding-inline: .6rem; }
.calendar-legend { padding: 0 1rem .8rem; display: flex; align-items: center; flex-wrap: wrap; gap: .36rem; }
.legend-shift { margin-left: .3rem; color: #5c7365; font-size: .81rem; }
.legend-shift .icon { --icon-size: .93rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.calendar-weekday { background: #f1f6f1; color: #5a7162; font-weight: 680; font-size: .875rem; text-align: center; padding: .55rem; border-bottom: 1px solid var(--line); }
.calendar-weekday.week-5, .calendar-cell.saturday .day-number { color: #4c729a; }
.calendar-weekday.week-6, .calendar-cell.sunday .day-number { color: #9e566a; }
.calendar-cell { min-height: 6.3rem; padding: .32rem; border-right: 1px solid #e7eee7; border-bottom: 1px solid #e7eee7; min-width: 0; }
.calendar-grid.week .calendar-cell { min-height: 17rem; }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell.muted-day { background: #fafbf9; color: #748279; }
.calendar-cell.is-today { background: #f2f8f3; }
.day-number { border: 0; background: transparent; color: inherit; border-radius: 50%; width: 1.75rem; height: 1.75rem;
  font-size: .85rem; font-weight: 700; padding: 0; }
.day-number:hover { background: #e6efe7; }
.is-today .day-number { background: var(--green) !important; color: white !important; }
.week-label { display: none; }
.calendar-events { display: grid; gap: .2rem; }
.calendar-event { display: flex; align-items: center; gap: .27rem; min-width: 0; border: 0; border-left: 3px solid var(--point);
  color: var(--tone); background: var(--tint); padding: .18rem .28rem; border-radius: 4px; text-align: left; font-size: .755rem; }
.calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event.cancelled-event { opacity: .58; text-decoration: line-through; }
.calendar-events .link-btn, .shift-marker { font-size: .73rem; }
.shift-marker { display: flex; align-items: center; gap: .18rem; color: #617e6b; background: none; border: 0; padding: .16rem .2rem; width: fit-content; white-space: nowrap; }
.shift-marker .icon { --icon-size: .77rem; }
.calendar-day { display: grid; grid-template-columns: minmax(0, 2fr) minmax(13rem, 1fr); gap: 1rem; border-top: 1px solid var(--line); }
.calendar-day h3 { padding: .68rem 1rem; font-size: 1rem; }
.calendar-day .shift-list { grid-template-columns: 1fr; }
.person-cell { display: inline-flex; align-items: center; gap: .5rem; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.split-summary { display: flex; gap: 1rem 1.45rem; flex-wrap: wrap; color: var(--muted); margin: .3rem 0 1rem; font-size: .875rem; }
.split-summary strong { color: var(--ink); margin-left: .27rem; }
.action-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--line); padding: .75rem 1.1rem; }
.action-footer strong, .action-footer small { display: block; }
.action-footer small { color: var(--muted); }
.rank-medal { font-size: .92rem; font-weight: 760; display: grid; place-items: center; width: 1.94rem; height: 1.94rem; border-radius: 50%; background: #eef3ee; }
.rank-medal.rank-1 { background: #f7e8c5; color: #7d551e; }
.rank-medal.rank-2 { background: #e7edf0; color: #456071; }
.rank-medal.rank-3 { background: #f4e9e3; color: #8e5a3f; }
.rank-own { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rank-own-value { display: grid; padding: .25rem 1.12rem 1rem; color: #466858; }
.rank-own-value strong { color: var(--ink); font-size: 2.4rem; }
.rank-own-value small { font-size: 1rem; }
.setting-facts { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: .6rem 1rem; padding: 0 1.1rem 1rem; margin: 0; font-size: .9rem; }
.setting-facts dt { color: var(--muted); }
.setting-facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.chip { display: inline-block; padding: .24rem .55rem; margin: .1rem; background: #e8f1ea; color: #426d54; border-radius: 9px; font-size: .85rem; }
.diary-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: .7rem; padding: .1rem 1.1rem 1rem; }
.diary-card { display: grid; grid-template-columns: 4rem 1fr; align-items: center; gap: .7rem; text-align: left; padding: .66rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.diary-card:hover { border-color: #9bb7a6; }
.diary-card img, .diary-placeholder { width: 4rem; height: 4rem; object-fit: cover; border-radius: 8px; }
.diary-placeholder { display: grid; place-items: center; background: #e9f2eb; color: #597e65; }
.diary-card small { display: block; max-width: 100%; word-break: break-word; color: var(--muted); }
dialog { width: min(46rem, calc(100% - 2rem)); max-height: calc(100dvh - 3rem); padding: 0; border: 1px solid #dce6de;
  border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 20px 90px #152e2660; overflow: auto; }
dialog.narrow { width: min(33rem, calc(100% - 2rem)); }
dialog.wide-dialog { width: min(63rem, calc(100% - 2rem)); }
dialog::backdrop { background: #122a21a0; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .92rem 1.18rem; border-bottom: 1px solid var(--line); background: white; }
.dialog-head h2 { font-size: 1.17rem; }
.dialog-body { padding: 1.04rem 1.18rem 1.15rem; }
.dialog-footer { display: flex; flex-wrap: wrap; gap: .52rem; justify-content: flex-end; align-items: center; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.dialog-footer.wrap { justify-content: flex-start; }
.dialog-form { display: grid; gap: .8rem; }
.card-check-list { display: grid; gap: .65rem; }
.card-check-row { display: grid; gap: .45rem; min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 8px; }
.card-check-row p { margin: 0; }
.dialog-form .dialog-footer { margin-top: .1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .72rem; }
.dialog-form label:not(.check-field):not(.file-input), .login-form label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .24rem .4rem; font-size: .875rem; color: #3c5547; font-weight: 620; }
.dialog-form label input:not([type="checkbox"]), .dialog-form label select, .dialog-form label textarea, .login-form label input { grid-column: 1 / -1; width: 100%; }
.dialog-form textarea { min-height: 4.1rem; resize: vertical; }
.dialog-form label.wide { grid-column: 1 / -1; }
.required { color: #8d4b3b; background: #faeee7; padding: .09rem .34rem; font-size: .71rem; border-radius: 4px; }
.check-field { display: flex; align-items: center; gap: .5rem; font-size: .88rem; cursor: pointer; min-height: 1.7rem; }
.form-heading { font-size: 1rem; font-weight: 750; margin: .72rem 0 .34rem; }
.dialog-form .form-heading { margin-bottom: -.45rem; }
.form-context { font-size: .9rem; font-weight: 660; color: var(--muted); }
.form-error { padding: .48rem .65rem; border-radius: 6px; background: #fcecee; color: #8f3443; font-size: .875rem; }
.info-box { display: flex; align-items: start; gap: .45rem; padding: .63rem .72rem; border-radius: 7px; background: #edf4f0; color: #426750; font-size: .88rem; }
.info-box .icon { margin-top: .1rem; --icon-size: 1rem; }
.info-box.warning { background: #fbf1df; color: #835b29; }
.paste-warnings { display: grid; gap: .35rem; }
.review-message { color: #835b29; font-size: .875rem; margin-bottom: .28rem; }
.booking-total { padding: .64rem .78rem; border-radius: 7px; background: #eef4ef; display: flex; gap: .6rem 1rem; flex-wrap: wrap; font-size: .875rem; color: #486857; align-items: center; }
.booking-total strong { color: #1d4834; font-size: 1.16rem; margin-left: .2rem; font-variant-numeric: tabular-nums; }
.source-details { border-radius: 7px; border: 1px solid var(--line); padding: .6rem .72rem; margin-block: .32rem; font-size: .875rem; }
.source-details summary { color: #456451; font-weight: 670; cursor: pointer; }
.source-details[open] summary { margin-bottom: .56rem; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font: inherit; }
.source-details pre, .notice-text { padding: .65rem; border-radius: 6px; background: #f2f6f2; font-size: .875rem; }
.booking-intro { display: flex; align-items: start; justify-content: space-between; gap: .66rem; padding-bottom: .82rem; }
.booking-intro h3 { font-size: 1.3rem; margin: .1rem 0 .25rem; }
.booking-intro small { color: var(--muted); }
.time-tile { display: grid; grid-template-columns: 1fr 1fr; padding: .67rem; border-radius: 9px; background: #edf4ef; margin-bottom: .72rem; }
.time-tile div { display: grid; justify-items: center; }
.time-tile div + div { border-left: 1px solid #cadbd1; }
.time-tile small { color: #557362; }
.time-tile strong { color: #264c38; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1rem; margin: .27rem 0 .7rem; }
.detail-grid > div { border-bottom: 1px solid #ebf0eb; padding: .27rem .18rem .52rem; }
.detail-grid dt { font-size: .79rem; font-weight: 670; color: var(--muted); }
.detail-grid dd { margin: .13rem 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .9rem; }
.muted { color: var(--muted); font-size: .875rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; }
.nested-panel { border: 1px solid var(--line); border-radius: 8px; padding: .56rem .68rem; margin: .4rem 0; }
.nested-panel h4 { font-size: .9rem; }
.nested-panel h4 small { color: var(--muted); margin-left: .5rem; }
.line-list > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .875rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.choice-grid { display: flex; flex-wrap: wrap; gap: .4rem; padding: .15rem 0; }
.choice-grid label { display: flex !important; align-items: center; gap: .4rem; padding: .35rem .56rem; border: 1px solid var(--line); border-radius: 7px; background: #f5f8f5; }
.choice-display { white-space: normal; }
.signature-pad { border: 1px solid #bfcec4; border-radius: 8px; overflow: hidden; background: linear-gradient(transparent 76%, #e5ece6 76%, #e5ece6 77%, transparent 77%); }
.signature-pad canvas { width: 100%; height: 9rem; display: block; cursor: crosshair; touch-action: none; }
.signature-view img { max-width: 100%; max-height: 10rem; border: 1px solid var(--line); border-radius: 8px; }
.diary-upload { display: grid; align-items: center; justify-items: start; gap: .44rem; }
#diary-photo { display: grid; place-items: center; min-height: 6rem; width: 100%; border: 1px dashed #bad0c0; border-radius: 8px; background: #f4f8f4; color: #6c8878; }
#diary-photo img, .diary-preview img { max-width: 100%; max-height: 17rem; border-radius: 7px; object-fit: contain; }
.file-input { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem 0; font-size: .875rem; color: #426750; }
.diary-preview { padding: .65rem; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.diary-preview h3 { margin-bottom: .48rem; }
.trend { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .26rem; padding: .8rem .25rem; }
.trend > div { display: flex; flex-direction: column; align-items: center; justify-content: end; font-size: .72rem; color: var(--muted); gap: .18rem; min-width: 0; }
.trend-bar { width: min(2rem, 70%); height: calc(var(--value) * 1.2px); min-height: 1px; border-radius: 4px 4px 0 0; background: #6b9d82; }
#toast { position: fixed; bottom: 1.22rem; right: 1.22rem; z-index: 20; color: #fff; background: #244e3b; padding: .64rem .9rem; border-radius: 8px; box-shadow: 0 5px 16px #1d302650; max-width: min(30rem, calc(100vw - 2.4rem)); font-size: .9rem; }
#toast.error { background: #893c4b; }
.login-layout { min-height: 100dvh; display: grid; grid-template-columns: 46% 54%; background: #f8faf7; }
.login-side { position: relative; overflow: hidden; background: linear-gradient(140deg, #12352a, #29503f 80%); color: #fff; }
.login-side::before { content: ""; position: absolute; inset: 0; opacity: .5; background: repeating-radial-gradient(ellipse at 130% 98%, transparent 0 55px, #b5c8a640 56px 57px, transparent 59px 82px); }
.login-side-content { position: relative; display: flex; flex-direction: column; gap: 2rem; min-height: 100%; padding: clamp(1.25rem, 4vw, 3.5rem); }
.login-side .brand { color: white; }
.login-side .brand-word small { color: #c1d3c7; }
.login-side .brand-mark { background: #426c53; border: 1px solid #60806b; box-shadow: none; }
.login-intro { margin-block: auto; padding-bottom: 2.5rem; }
.login-intro h1 { font-family: Georgia, serif; font-weight: 500; font-size: clamp(3rem, 6.3vw, 7rem); line-height: .93; letter-spacing: -.055em; margin: 1.2rem 0; }
.login-intro h1 span { color: #c6b17a; }
.login-intro p { font-size: .92rem; color: #d2e3d8; }
.login-divider { width: 2.9rem; background: #ccb988; height: 1px; margin: 1.35rem 0 .9rem; }
.login-main { display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(100%, 26rem); margin-block: 1rem; }
.login-card h2 { font-size: 1.8rem; line-height: 1.2; margin: .55rem 0 .35rem; }
.login-symbol { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: #e7efe8; color: #547760; }
.login-caption { font-size: .9rem; color: var(--muted); }
.demo-logins { margin: 1.1rem 0; padding: .9rem .82rem; background: #eef4ee; border: 1px solid #e0eae0; border-radius: 10px; }
.demo-logins p { font-size: .85rem; color: #4f6d5c; font-weight: 700; margin-bottom: .55rem; }
.demo-logins > div { display: flex; flex-wrap: wrap; gap: .42rem; }
.demo-logins .btn { flex: 1; }
.login-form { display: grid; gap: .64rem; margin: .96rem 0; }
.login-form input { min-height: 2.7rem; }
.login-terms { margin-top: .95rem; font-size: .82rem; color: #5b7262; }
.login-terms p { margin-top: .35rem; }
.login-terms summary { cursor: pointer; }
@media (max-width: 1120px) {
  .app-shell { --sidebar-width: 12.6rem; }
  .sidebar .brand { margin-inline: .85rem; }
  .topbar, .main-content { padding-inline: 1.27rem; }
  .hero { padding-inline: 1.2rem; }
  .hero-metric { padding-left: .78rem; }
  .metric { padding-inline: .72rem; }
  th, td { padding-inline: .57rem; }
}
@media (max-width: 890px) {
  .app-shell { --sidebar-width: 15rem; }
  .sidebar { transform: translateX(-100%); transition: transform .18s ease; }
  .app-body { margin-left: 0; }
  .menu-open .sidebar { transform: none; }
  .menu-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: #19312880; z-index: 4; }
  .mobile-menu { display: inline-flex; }
  .topbar { min-height: 3.65rem; }
  .main-content { padding-bottom: 6rem; }
  .mobile-tabs { position: fixed; display: flex; justify-content: space-around; align-items: center; z-index: 3; inset: auto 0 0;
    background: #fff; border-top: 1px solid var(--line); padding: .25rem .45rem calc(.24rem + env(safe-area-inset-bottom)); }
  .mobile-tabs .nav-item { display: grid; justify-items: center; align-content: center; gap: .17rem; width: min(5.8rem, 20%); font-size: .78rem; min-height: 2.8rem; padding: .27rem; margin: 0; }
  .mobile-tabs .icon { --icon-size: 1.12rem; }
  #toast { bottom: calc(3.7rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 610px) {
  .topbar { align-items: center; padding-inline: .78rem; }
  .main-content { padding: .9rem .77rem 5.3rem; }
  .page-heading { align-items: start; flex-direction: column; gap: .62rem; margin-bottom: .85rem; }
  .heading-actions { justify-content: flex-start; }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .78rem .95rem; row-gap: .25rem; }
  .hero-metric { padding: .45rem 0 .45rem .72rem; }
  .hero-metric:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hero-metric:nth-child(-n+2) { border-bottom: 1px solid #d4e5dd26; }
  .hero-metric strong { font-size: 1.48rem; }
  .hero-metric.first strong { font-size: 1.65rem; }
  .hero::after { mask-image: none; opacity: .3; }
  .metric-grid, .metric-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .58rem; margin-block: .7rem .9rem; }
  .metric { padding: .65rem .68rem; }
  .metric-title { gap: .38rem; font-size: .835rem; }
  .metric-icon { width: 1.8rem; height: 1.8rem; flex: 0 0 1.8rem; }
  .metric-icon .icon { --icon-size: 1rem; }
  .metric-value { font-size: 1.42rem; }
  .dashboard-grid, .analysis-grid, .calendar-day { grid-template-columns: 1fr; gap: .75rem; }
  .dashboard-main, .dashboard-side { display: contents; }
  .dashboard-main > .panel:nth-child(2) { order: 2; }
  .panel-heading { padding: .7rem .65rem; }
  .panel-heading h2 { font-size: .97rem; gap: .26rem; }
  .panel-heading .link-btn { font-size: .79rem; }
  th:first-child, td:first-child { padding-left: .52rem; }
  th, td { padding: .58rem .4rem; }
  .compact-table .cast-cell { white-space: nowrap; }
  .booking-table th, .booking-table td { white-space: nowrap; }
  .table-sub { white-space: normal; }
  .active-list, .notice-list { padding-inline: .62rem; }
  .shift-list { padding-inline: .63rem; }
  .calendar-toolbar { display: grid; grid-template-columns: 1fr; padding: .7rem; text-align: left; }
  .calendar-toolbar h2 { grid-row: 1; text-align: left; }
  .calendar-turn, .calendar-tools { gap: .32rem; }
  .calendar-turn .btn { min-height: 2.3rem; }
  .calendar-legend { padding-inline: .7rem; }
  .calendar-cell { min-height: 4.6rem; padding: .16rem; }
  .calendar-grid.month .calendar-event { border-left-width: 2px; padding: .16rem; font-size: .69rem; }
  .calendar-grid.month .calendar-event span { display: none; }
  .calendar-grid.month .shift-marker { font-size: .65rem; padding-left: 0; }
  .calendar-grid.month .shift-marker .icon { display: none; }
  .calendar-grid.week { grid-template-columns: 1fr; }
  .calendar-grid.week .calendar-weekday { display: none; }
  .calendar-grid.week .calendar-cell { min-height: unset; border-right: 0; padding: .34rem .52rem; }
  .calendar-grid.week .week-label { display: inline-block; margin-left: .4rem; font-size: .8rem; }
  .calendar-grid.week .calendar-events { grid-template-columns: repeat(auto-fit, minmax(7rem, max-content)); padding-bottom: .26rem; }
  .filter-field { flex-wrap: wrap; }
  .customers-table th, .customers-table td { white-space: nowrap; }
  .rank-own { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .rank-own-value strong { font-size: 1.65rem; }
  .setting-facts { grid-template-columns: 1fr 1fr; padding-inline: .7rem; }
  dialog, dialog.narrow, dialog.wide-dialog { margin: auto 0 0; inset: auto 0 0; max-width: 100vw; width: 100%; max-height: 90dvh; border-radius: 14px 14px 0 0; }
  .dialog-head { padding: .74rem .79rem; }
  .dialog-body { padding: .78rem .8rem calc(1rem + env(safe-area-inset-bottom)); }
  .form-grid { gap: .54rem; }
  .dialog-form input, .dialog-form select, .dialog-form textarea, .login-form input { font-size: 1rem; }
  .login-layout { grid-template-columns: 1fr; }
  .login-side-content { padding: .9rem 1rem; }
  .login-intro { display: none; }
  .login-main { padding: .7rem 1rem 1rem; }
  .login-card { margin-block: .6rem; }
}
@media (max-width: 370px) {
  .topbar-section, .topbar-slash { display: none; }
  .hero-metric strong, .hero-metric.first strong { font-size: 1.35rem; }
  .hero-label { font-size: .8rem; }
  .metric-title { font-size: .78rem; }
  .metric-value { font-size: 1.23rem; }
  .compact-table .cast-cell, .compact-table th:nth-child(3):not(:last-child) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.work-overview { margin: 0 0 1rem }
.work-overview-grid, .cast-todo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .44rem; padding: 0 1.08rem .83rem }
.work-overview-item, .cast-todo-grid > div { display: flex; justify-content: space-between; align-items: center; gap: .34rem; min-width: 0;
  text-align: left; color: var(--ink); background: #f7f9f6; border: 1px solid #e7eee7; border-radius: 8px; padding: .39rem .58rem; }
.work-overview-item:hover { border-color: #99b2a3; background: #eef5ef }
.work-overview-item > span { font-weight: 650; font-size: .81rem }
.work-overview-item > strong { white-space: nowrap; color: #315d47; font-size: 1.06rem; font-variant-numeric: tabular-nums }
.work-overview-item > strong small { margin-left: .15rem }
.work-overview-item > span small, .cast-todo-grid small { display: block; color: #68766d; font-size: .745rem }
.work-overview-more > summary { min-height: 2.75rem; padding: .64rem 0; margin: 0 1.08rem; border-top: 1px solid var(--line);
  color: #315d47; cursor: pointer; font-size: .84rem; font-weight: 650; }
.cast-todo-grid > div { align-items: start; flex-direction: column }
.cast-todo-grid .link-btn { padding: .08rem 0 }
.availability-toolbar > strong { font-size: 1.05rem }
.availability-legend { display: flex; gap: .36rem; flex-wrap: wrap; padding: 0 .95rem .75rem }
.slot-state { display: inline-block; padding: .24rem .52rem; border-radius: 7px; background: #eef1ee; color: #53685a; font-size: .79rem; white-space: nowrap }
.slot-state.empty, .slot-cell.empty { background: #e6f1e9; color: #316346 }
.slot-state.partial, .slot-cell.partial { background: #e9f1f9; color: #365b82 }
.slot-state.full, .slot-cell.full { background: #f9e9e9; color: #934053 }
.slot-state.off, .slot-cell.off { background: #edf0ee; color: #5b6760 }
.slot-state.missing, .slot-cell.missing { background: #faf4e7; color: #815e2b }
.availability-scroll { overflow: auto; border-top: 1px solid var(--line); max-height: 29rem }
.availability-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0 }
.availability-table th, .availability-table td { border-right: 1px solid #e9efe9; white-space: nowrap }
.availability-table thead th { position: sticky; top: 0; z-index: 1; padding: 0; background: #f1f6f1 }
.availability-table tbody th { position: sticky; left: 0; z-index: 1; background: #fff; padding: .42rem .72rem; border-top: 0 }
.availability-table thead th:first-child { left: 0; z-index: 2; padding: .3rem .72rem }
.availability-table thead button { color: inherit; background: transparent; border: 0; font-size: .82rem; width: 100%; padding: .38rem; }
.availability-table thead button:hover { background: var(--pale) }
.availability-table thead button small { display: block; font-size: .72rem }
.availability-table td { min-width: 7.25rem; padding: .26rem; }
.slot-cell { display: flex; flex-direction: column; align-items: flex-start; width: 100%; gap: .12rem; min-height: 3rem;
  padding: .37rem .44rem; border: 1px solid #1e392911; border-radius: 6px; font-size: .77rem; }
.slot-cell:hover { border-color: currentColor }
.slot-cell small { font-size: .72rem }
.availability-search, .goal-trends { margin-top: 1rem }
.standalone-form { padding: .05rem 1.05rem .9rem }
.standalone-form > form { margin-top: .45rem }
.work-table th, .work-table td { white-space: nowrap }
.work-table .table-sub { max-width: 19rem; white-space: normal }
.work-priority, .safety-tag { display: inline-flex; align-items: center; gap: .27rem; border-radius: 12px; padding: .21rem .51rem;
  margin: .12rem .15rem .12rem 0; font-size: .77rem; font-weight: 700; white-space: nowrap; background: #edf2ed; color: #506756; }
.work-priority.urgent, .safety-tag.store, .safety-tag.cast { background: #fae7e9; color: #964253 }
.work-priority.review, .safety-tag.warning { background: #fcf0da; color: #805820 }
.safety-tag .icon { --icon-size: .78rem }
.safety-banner, #booking-safety { padding: .44rem .62rem; border: 1px solid #eadabc; border-radius: 8px; background: #fffbef; color: #735525; margin-bottom: .55rem }
.safety-banner p, #booking-safety p { font-size: .84rem; margin-top: .2rem }
.customer-flags { margin-top: .21rem }
.history-list small { display: block; color: var(--muted) }
.talk-list { padding: 0 1.07rem 1rem; display: grid; gap: .42rem }
.talk-message { padding: .57rem .66rem; background: #f4f8f4; border: 1px solid var(--line); border-radius: 8px }
.talk-message > div { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem }
.talk-message small { color: var(--muted) }
.talk-message p { margin-top: .15rem }
.goal-card { display: grid; gap: .27rem; color: var(--muted); padding: 0 1.12rem 1rem; font-size: .87rem }
.goal-card strong { color: var(--green); font-size: 1.9rem; font-variant-numeric: tabular-nums }
.goal-card progress { width: 100%; height: .75rem; accent-color: #41815d }
.goal-trend { margin: 0 1rem .46rem }
.changes-table td:not(:first-child) { min-width: 9rem; overflow-wrap: anywhere }
.emergency-btn { border: 1px solid #f0c8d0; background: #fff2f4; color: #983c50; }
.emergency-btn:hover { background: #fce2e7 }
.topbar .emergency-btn { min-height: 2.12rem; padding: .37rem .55rem }
.sos-status { display: grid; gap: .1rem; padding: .68rem .77rem; border: 1px solid #edd4d8; background: #fff2f4; border-radius: 8px; color: #803d48;
  margin-bottom: .55rem; }
.sos-status small { color: #875762 }
@media (max-width: 720px) {
  .work-overview-grid, .cast-todo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: .65rem; }
  .work-overview-more > summary { margin-inline: .65rem; }
  .availability-toolbar > strong { grid-row: 1 }
  .availability-table tbody th { padding-inline: .35rem }
  .availability-table tbody th .avatar { width: 1.6rem; height: 1.6rem; flex-basis: 1.6rem }
}
@media (max-width: 480px) {
  .topbar-section, .topbar-slash { display: none }
  .topbar-left, .topbar-actions { gap: .35rem }
  .topbar .emergency-btn .icon { --icon-size: .86rem }
  .sos-status + .inline-actions { margin-bottom: .45rem }
  .changes-table td:not(:first-child) { min-width: 6rem }
}

.community-tabs { display: flex; margin: 0 0 1rem; }
.community-filters { align-items: center; flex-wrap: wrap; gap: .5rem; padding-inline: 0; }
.community-filters input[name="area"] { max-width: 13rem; }
.community-feed { width: min(100%, 52rem); display: grid; gap: .8rem; }
.community-card { display: grid; gap: .65rem; padding: .95rem 1.1rem; }
.community-card h2 { font-size: 1rem; margin: 0; }
.community-identity { display: flex; align-items: center; gap: .62rem; min-width: 0; }
.community-identity div { display: grid; min-width: 0; }
.community-identity strong { font-size: .95rem; overflow-wrap: anywhere; }
.community-identity small { color: #607565; font-size: .76rem; }
.community-avatar { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; flex: 0 0 2.35rem; border-radius: 50%; object-fit: cover; background: #e5efe8; }
.community-avatar-letter { color: #3e624d; font-size: .9rem; font-weight: 750; }
.community-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; margin: 0; }
.community-text .link-btn { font: inherit; line-height: 1.2; padding: 0 .08rem; color: #28714e; }
.community-text .link-btn:hover { text-decoration: underline; }
.community-actions { display: flex; flex-wrap: wrap; gap: .34rem; align-items: center; }
.community-reaction { min-height: 2.1rem; display: inline-flex; gap: .25rem; align-items: center; border: 1px solid transparent;
  border-radius: .45rem; background: transparent; color: #4c6255; padding: .25rem .4rem; font-size: .83rem; cursor: pointer; }
.community-reaction:hover, .community-reaction[aria-pressed="true"] { background: #e7f2ea; color: #25573c; border-color: #e0ebe2; }
.community-reaction .icon { --icon-size: 1rem; }
.community-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; overflow: hidden; border-radius: .65rem; }
.community-gallery.single { grid-template-columns: 1fr; }
.community-gallery img, .community-gallery video { display: block; max-width: 100%; width: 100%; height: auto; max-height: 23rem; object-fit: contain; background: #edf3ee; border-radius: .5rem; }
.community-gallery video { min-height: 9rem; }
.community-note-title, .community-question-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.community-note-title .link-btn { font-size: 1.04rem; font-weight: 750; }
.community-attachments { border: 1px solid #dbe6dc; border-radius: .5rem; padding: .45rem .65rem; }
.community-attachments label { display: inline-flex; gap: .3rem; align-items: center; margin: .22rem .55rem .22rem 0; }
.community-upload { display: flex !important; gap: .45rem; flex-wrap: wrap; align-items: center; padding: .45rem .65rem; background: #eef4ef; border-radius: .5rem; }
.community-upload input[type="file"] { width: 100%; padding: .25rem 0; }
.community-detail { display: grid; gap: .6rem; }
.community-comment { padding: .65rem 0; border-top: 1px solid #e2e9e3; display: grid; gap: .4rem; }
.community-comment.reply { margin-left: 1.35rem; padding-left: .6rem; border-left: 2px solid #e2e9e3; }
.screening-panel-body { padding: .25rem 1rem 1rem; }
.screening-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.screening-warning { background: #f9e9e5; color: #913e32; }
.analytics-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin: .25rem 0 1rem; }
.analytics-filter label { display: grid; gap: .25rem; color: #455c50; font-size: .875rem; }
.analytics-filter fieldset { display: flex; flex-wrap: wrap; gap: .65rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.analytics-filter [hidden] { display: none; }
.analytics-filter .muted { align-self: center; margin-inline-start: auto; }
.analytics-types { margin: 0; }
.analytics-types .segment { flex-wrap: wrap; }
.analytics-panel-note { padding: .25rem 1rem .9rem; }
.analytics-change { white-space: nowrap; }
.analytics-change.up { color: #255e44; font-weight: 650; }
.analytics-change.down { color: #943f37; font-weight: 650; }
.analytics-own-rank { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .7rem 1rem; border-radius: .55rem; background: #eaf3ed; }
.analytics-own-rank strong { font-size: 1.35rem; }
.analytics-overview { display: grid; grid-template-columns: minmax(10.5rem, .85fr) minmax(0, 2fr); gap: .85rem; }
.analytics-rate-card { text-align: center; padding: .9rem; background: #eef5f0; border-radius: .65rem; }
.analytics-rate-card h3, .analytics-compare h3, .analytics-ranks h3 { margin: 0 0 .5rem; font-size: 1rem; }
.analytics-rate-card p { margin: .55rem 0 .15rem; }
.analytics-ring { display: grid; place-items: center; width: 8.5rem; aspect-ratio: 1; margin: .65rem auto; border-radius: 50%;
  background: conic-gradient(#3d8060 0 var(--share), #d2e4d7 var(--share) 100%); }
.analytics-rate-value { display: grid; place-items: center; width: 6.9rem; aspect-ratio: 1; padding: .32rem; border: 0; border-radius: 50%;
  background: #f9fcfa; color: #273d31; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 750; cursor: pointer; }
.analytics-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.analytics-stat { display: grid; text-align: left; gap: .25rem; padding: .65rem; background: #f7faf8; border: 1px solid #dce8df;
  border-radius: .55rem; cursor: pointer; }
.analytics-stat:hover { background: #eaf3ed; }
.analytics-stat span { color: #455c50; font-size: .875rem; }
.analytics-stat strong { color: #2a513c; font-size: 1.12rem; }
.analytics-compare, .analytics-ranks { margin-block: 1rem; }
.analytics-bar { overflow: hidden; height: .65rem; border-radius: 10px; background: #b3cabe; }
.analytics-bar span { display: block; height: 100%; background: #40795e; }
.analytics-bar-labels { display: flex; justify-content: space-between; gap: .5rem; color: #3e564a; font-size: .875rem; padding-block: .3rem; }
.analytics-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.analytics-chart { min-width: 0; margin: 0; padding: .6rem; background: #f3f8f4; border-radius: .55rem; }
.analytics-chart figcaption { font-size: .95rem; font-weight: 650; }
.analytics-chart canvas { display: block; width: 100%; height: 180px; }
.analytics-setting { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; border: 1px solid #dce8df; border-radius: .5rem; }
@media (max-width: 640px) {
  .analytics-overview, .analytics-charts { grid-template-columns: minmax(0, 1fr); }
  .analytics-filter .muted { margin-inline-start: 0; }
}
@media (max-width: 890px) {
  .mobile-tabs.with-community .nav-item { position: relative; width: min(5.8rem, 16.6%); }
  .mobile-community-unread { position: absolute; top: .23rem; left: calc(50% + .39rem); width: .44rem; height: .44rem; border-radius: 50%; background: #a74637; }
}
@media (max-width: 520px) {
  .community-card { padding: .8rem; }
  .community-filters input[name="area"] { max-width: 9rem; }
  .community-gallery img, .community-gallery video { max-height: 18rem; }
}
