:root {
  --bg: #f6f5ef;
  --surface: #fffefa;
  --sidebar: #fdfcf7;
  --text: #263931;
  --muted: #55655e;
  --line: #e4e7dc;
  --accent: #315a47;
  --accent-deep: #224132;
  --soft: #e8efe5;
  --hero: #294936;
  --hero-text: #f9f8eb;
  --rosy: #f3e2dd;
  --sand: #f5ecd9;
  --blue: #e4eef0;
  --radius: 19px;
  --shadow: 0 4px 18px #172b1510;
  font-family: 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
:root[data-theme="peach"] {
  --accent: #8b463c; --accent-deep: #71392e; --soft: #f4e5e0; --hero: #713e34;
  --bg: #fbf5f0; --sidebar: #fffaf7; --line: #eee1da;
}
:root[data-theme="blue"] {
  --accent: #3b5880; --accent-deep: #2c4368; --soft: #e7edf6; --hero: #344b6a;
  --bg: #f4f6f9; --sidebar: #fafcff; --line: #e0e6ee;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }
svg { display: block; flex: none; }
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 8px 14px; background: var(--surface); transform: translateY(-160%); }
.skip:focus { transform: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; padding: 29px 18px 22px; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: inline-flex; gap: 12px; align-items: center; align-self: flex-start; margin: 0 12px 40px; font-family: Georgia, serif; font-size: 31px; font-weight: 700; line-height: 1; letter-spacing: -.055em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: white; }
.brand-sub { display: block; margin-top: 5px; font-family: system-ui, sans-serif; font-size: 12px; letter-spacing: .04em; font-weight: 650; color: var(--muted); }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 47px; padding: 11px 14px; border: 0; border-radius: 11px; background: transparent; font-size: .9rem; font-weight: 650; text-align: left; color: var(--muted); }
.nav-link:hover { background: var(--soft); }
.nav-link[aria-current="page"] { background: var(--soft); color: var(--accent-deep); font-weight: 750; }
#desktop-nav { display: grid; gap: 5px; }
.sidebar-bottom { margin-top: auto; }
.household { border-top: 1px solid var(--line); margin-top: 14px; padding: 17px 3px 0; display: flex; align-items: center; gap: 10px; }
.member-avatar { display: grid; place-items: center; width: 35px; height: 35px; background: var(--rosy); border-radius: 50%; font-family: Georgia, serif; font-size: 1.1rem; }
.household strong, .household small { display: block; }
.household strong { font-size: .83rem; }
.household small { margin-top: 3px; font-size: .75rem; color: var(--muted); }
.shell { margin-left: 224px; }
.topbar { background: var(--sidebar); padding: 12px clamp(22px, 4vw, 58px); min-height: 69px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.header-date { color: var(--muted); font-size: .9rem; font-weight: 650; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.demo-tag, .tag { display: inline-flex; align-items: center; border-radius: 30px; padding: 4px 10px; background: var(--soft); color: var(--accent-deep); font-size: .79rem; white-space: nowrap; }
.demo-tag { background: transparent; border: 1px solid var(--line); }
.mobile-brand, .mobile-nav, .top-settings { display: none !important; }
.primary, .secondary, .plain, .icon-btn, .segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border-radius: 11px; border: 1px solid transparent; padding: 8px 14px; font-size: .88rem; font-weight: 700; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-deep); }
.secondary { background: var(--surface); border-color: var(--line); }
.plain { background: transparent; color: var(--accent); padding-inline: 8px; }
.secondary:hover, .plain:hover, .icon-btn:hover { background: var(--soft); }
.icon-btn { padding: 8px; min-width: 41px; background: var(--surface); border-color: var(--line); }
#screen { max-width: 1350px; margin: auto; padding: 28px clamp(22px, 4vw, 58px) 45px; }
.page-heading { display: flex; gap: 14px; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.25; letter-spacing: -.045em; }
h2 { font-size: 1.13rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
.page-heading p, .muted { color: var(--muted); }
.page-heading p { margin-top: 7px; font-size: .89rem; line-height: 1.55; }
.hero { overflow: hidden; min-height: 255px; border-radius: 23px; background: var(--hero); color: var(--hero-text); display: grid; grid-template-columns: 1.14fr 1fr; }
.hero-copy { min-width: 0; padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-name { font-family: Georgia, serif; font-size: clamp(3.3rem, 6vw, 5.2rem); letter-spacing: -.075em; line-height: .99; }
.hero-age { margin-top: 9px; font-size: .94rem; opacity: .9; }
.hero-next { display: flex; align-items: center; gap: 11px; border: 1px solid #ffffff45; border-radius: 12px; background: #ffffff13; padding: 9px 13px; margin-top: 21px; color: inherit; text-align: left; }
.hero-next:hover { background: #ffffff28; }
.hero-next small, .hero-next strong { display: block; }
.hero-next small { font-size: .72rem; color: #f9f8ebdf; margin-bottom: 3px; }
.hero-next strong { font-size: .88rem; }
.next-date { margin-right: 7px; }
.hero-photo { min-height: 100%; position: relative; }
.hero-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 32%; }
.photo-note { position: absolute; bottom: 9px; right: 9px; border-radius: 20px; padding: 4px 8px; font-size: .72rem; background: #221c18b8; color: white; }
.token { width: 37px; height: 37px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--soft); color: var(--accent-deep); }
.token.food, .token.treat, .token.walk { background: var(--sand); color: #735327; }
.token.poo, .token.event { background: var(--rosy); color: #763e36; }
.token.pee, .token.weight, .token.photo { background: var(--blue); color: #34515c; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.panel { padding: 17px 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel + .panel-section, .panel-section + .panel-section { margin-top: 15px; }
.panel-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 9px; }
.panel-heading .plain { min-height: 33px; white-space: nowrap; }
.list { display: grid; }
.row { border: 0; background: transparent; padding: 10px 0; min-height: 61px; width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
button.row:hover .row-main strong { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.row-main { min-width: 0; flex: 1; }
.row-main strong { display: block; font-size: .91rem; overflow-wrap: anywhere; }
.row-main small { display: block; margin-top: 3px; font-size: .8rem; color: var(--muted); }
.row-time { color: var(--muted); font-size: .79rem; white-space: nowrap; }
.canvas-wrap { position: relative; min-height: 164px; }
canvas { display: block; width: 100%; height: 164px; }
.weight-current { display: flex; gap: 8px; align-items: baseline; }
.weight-current strong { font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.weight-current span { font-size: .84rem; color: var(--muted); }
.recent-photos { margin-top: 15px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.photo-tile { min-width: 0; padding: 0; position: relative; background: var(--soft); border: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.photo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tile:hover img { filter: brightness(.91); }
.photo-tile .photo-note { pointer-events: none; }
.album-block + .album-block { margin-top: 23px; }
.album-block h2 { margin-bottom: 10px; }
.album-switch { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.daily-controls, .calendar-controls { display: flex; gap: 8px; align-items: center; }
.daily-controls { flex-wrap: wrap; }
.calendar-controls { flex-wrap: wrap; justify-content: space-between; margin-bottom: 13px; }
.calendar-controls > div { display: flex; gap: 7px; align-items: center; }
.calendar-controls h2 { min-width: 125px; text-align: center; }
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.weekday { text-align: center; color: var(--muted); font-size: .79rem; padding-bottom: 5px; }
.day-cell { display: flex; align-items: center; flex-direction: column; gap: 4px; min-width: 0; min-height: 55px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 9px; padding: 6px 2px; font-size: .9rem; }
.day-cell:hover, .day-cell[aria-pressed="true"] { background: var(--soft); border-color: var(--accent); }
.day-cell.outside { opacity: .58; }
.day-cell.today > span:first-child { background: var(--accent); color: white; }
.day-cell > span:first-child { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; }
.day-event { max-width: 100%; border-radius: 5px; padding: 2px 4px; background: var(--rosy); color: #653c32; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size: .71rem; }
.agenda { margin-top: 16px; }
.empty { color: var(--muted); padding: 13px 0; font-size: .9rem; line-height: 1.65; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; background: var(--soft); border-radius: 13px; }
.segmented button { min-height: 34px; background: transparent; color: var(--accent-deep); }
.segmented button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); }
.detail-list { display: grid; gap: 9px; }
.detail-list p { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-list span { color: var(--muted); }
dialog { position: fixed; border: 1px solid var(--line); border-radius: 20px; padding: 0; margin: auto; width: min(94vw, 510px); max-height: 89dvh; color: var(--text); background: var(--surface); box-shadow: 0 16px 60px #1626163a; }
dialog::backdrop { background: #17251dc0; }
.modal-content { padding: 19px; }
.modal-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 15px; }
.modal-content form { display: grid; gap: 13px; }
.modal-content label { display: grid; gap: 5px; font-size: .88rem; font-weight: 650; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; min-height: 43px; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: var(--sidebar); color: var(--text); font-size: 1rem; }
textarea { min-height: 85px; resize: vertical; }
.modal-content .check { display: flex; align-items: center; gap: 7px; }
input[type="checkbox"] { accent-color: var(--accent); }
.fields-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 7px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-grid button { justify-content: flex-start; min-height: 50px; }
.media-detail { max-height: 53dvh; width: 100%; object-fit: contain; border-radius: 10px; background: var(--soft); }
.media-image-button { display: block; width: 100%; border: 0; border-radius: 10px; padding: 0; background: transparent; cursor: zoom-in; }
.media-image-button img { display: block; }
#photo-viewer { inset: 0; width: 100dvw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; background: #161816; color: white; overflow: hidden; }
.photo-viewer-stage { width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #161816; }
.photo-viewer-bar { display: flex; justify-content: flex-end; padding: max(9px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 9px max(10px, env(safe-area-inset-left)); }
.photo-viewer-bar .secondary { background: #343734; color: white; border-color: #6e736e; }
.photo-viewer-bar .secondary:focus-visible { outline-color: white; }
.photo-viewer-stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.notes { line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 10px; }
.theme-options { display: flex; flex-wrap: wrap; gap: 7px; }
dialog h3 { margin-top: 13px; margin-bottom: 6px; }
.toast { position: fixed; z-index: 6; bottom: 22px; left: 50%; transform: translateX(-50%); border-radius: 10px; background: var(--accent-deep); color: white; font-size: .88rem; padding: 11px 16px; box-shadow: var(--shadow); width: max-content; max-width: 92vw; }
.home-section { margin-top: 15px; }
.food-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.food-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.food-amount strong { font-family: Georgia, serif; font-size: 2.5rem; line-height: 1; }
.food-amount strong span { font: 600 .91rem system-ui, sans-serif; }
.food-amount > span { color: var(--muted); font-size: .87rem; }
.food-detail { margin-top: 7px; font-size: .83rem; }
.food-panel progress { display: block; appearance: none; width: 100%; height: 7px; margin-top: 13px; border: 0; border-radius: 8px; background: var(--soft); }
.food-panel progress::-webkit-progress-bar { background: var(--soft); border-radius: 8px; }
.food-panel progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
.food-panel progress::-moz-progress-bar { background: var(--accent); border-radius: 8px; }
.treat-strip { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 13px; }
.treat-strip strong, .treat-strip small { display: block; }
.treat-strip strong { font-size: .87rem; }
.treat-strip small { color: var(--muted); font-size: .79rem; }
.treat-strip button { margin-left: auto; }
.care-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.care-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.care-count { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; background: var(--sidebar); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: left; }
.care-count:hover { border-color: var(--accent); }
.care-count small { font-size: .78rem; color: var(--muted); }
.care-count strong { font-size: 1.08rem; }
.date-panel .panel-heading { margin: 0; flex-wrap: wrap; }
.record-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.chart-options { margin-top: 11px; }
.chart-options button { padding-inline: 10px; }
.album-heading { display: flex; justify-content: space-between; gap: 9px; align-items: flex-start; margin-bottom: 10px; }
.album-heading h2 { margin-bottom: 2px; overflow-wrap: anywhere; }
.album-heading p { margin-top: 4px; overflow-wrap: anywhere; }
.album-heading .plain { flex: none; }
.album-filter { display: grid; max-width: 350px; gap: 4px; margin-bottom: 15px; font-size: .88rem; }
.album-hint { margin-bottom: 15px; }
.media-fallback { position: absolute; inset: 0; color: var(--muted); display: grid; place-items: center; }
.favorite-mark { pointer-events: none; position: absolute; left: 7px; bottom: 7px; background: #241a12b8; color: #ffebae; padding: 3px 6px; border-radius: 7px; }
.media-toolbar, .location-details { margin-block: 12px; }
.location-details p { margin: 6px 0 0; }
.album-checks, .feeder-settings { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.album-checks .check { min-height: 33px; }
.album-checks small { color: var(--muted); }
.feeder-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 7px; align-items: end; margin: 7px 0; }
.plan-slots { display: block; margin-bottom: 5px; color: var(--muted); }
.nutrition-history ul { padding-left: 1.3em; font-size: .83rem; line-height: 1.7; }
.settings-links { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 13px; }
.camera-panel { display: grid; justify-items: center; text-align: center; padding: 38px 16px; gap: 10px; }
.camera-panel > svg { color: var(--accent); }
.form-message { margin-top: 12px; background: var(--rosy); color: #653c32; border-radius: 8px; padding: 9px; }
button:disabled { cursor: wait; opacity: .7; }
@media (max-width: 1010px) {
  .sidebar { width: 187px; padding-inline: 13px; }
  .shell { margin-left: 187px; }
}
@media (max-width: 760px) {
  .sidebar, .header-date { display: none; }
  .shell { margin: 0; }
  .mobile-brand { display: inline-flex !important; margin: 0; font-size: 25px; gap: 8px; align-self: center; }
  .mobile-brand .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .mobile-brand .brand-mark svg { width: 19px; height: 19px; }
  .top-settings { display: inline-flex !important; }
  .topbar { padding: 8px 13px; min-height: 61px; }
  .top-actions { gap: 7px; }
  .top-add { padding-inline: 9px; }
  #screen { padding: 19px 13px calc(86px + env(safe-area-inset-bottom)); }
  .mobile-nav { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; inset: auto 0 0; background: var(--sidebar); border-top: 1px solid var(--line); padding: 4px 5px calc(4px + env(safe-area-inset-bottom)); z-index: 3; }
  .mobile-nav .nav-link { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 46px; padding: 4px 0; border-radius: 9px; font-size: .72rem; text-align: center; }
  .mobile-nav .nav-link svg { width: 19px; height: 19px; }
  .hero { min-height: 187px; grid-template-columns: 1.18fr 1fr; border-radius: 17px; }
  .hero-copy { padding: 14px 12px; }
  .hero-name { font-size: clamp(2.5rem, 10vw, 3.7rem); }
  .hero-age { font-size: .8rem; }
  .hero-next { padding: 6px; gap: 5px; margin-top: 13px; }
  .hero-next svg { width: 15px; height: 15px; }
  .hero-next strong { font-size: .75rem; }
  .hero-next small { font-size: .7rem; }
  .next-date { display: block; margin-right: 0; }
  .hero-photo img { object-position: 47% 43%; }
  .grid-two, .record-groups { grid-template-columns: 1fr; gap: 11px; }
  .home-section { margin-top: 12px; }
  .panel { padding: 12px; border-radius: 15px; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .recent-photos .photo-grid .photo-tile:nth-child(n + 4) { display: none; }
  .page-heading { margin-bottom: 14px; }
  .day-cell { min-height: 48px; }
  .day-event { font-size: .66rem; }
  .toast { bottom: calc(66px + env(safe-area-inset-bottom)); }
}
@media (max-width: 350px) {
  .top-actions .demo-tag { display: none; }
  .mobile-nav .nav-link { font-size: .66rem; }
  .care-count { padding: 8px; }
  .calendar-days { gap: 2px; }
  .day-cell { min-height: 45px; }
}

.record-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.removed-records summary, .audit-details summary { cursor: pointer; font-weight: 700; }
.removed-records .list { margin-top: 8px; }
.agenda-range { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 6px; font-size: .85rem; }
.agenda-range span { font-weight: 650; }
.event-row { padding-inline: 6px; }
.event-ended { color: var(--muted); }
.event-ended .token { background: var(--bg); color: var(--muted); }
.event-status { flex: none; padding: 3px 7px; border-radius: 20px; background: var(--bg); color: var(--muted); font-size: .74rem; }
.day-event.past { color: var(--muted); background: var(--line); }
.care-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: 8px; }
.care-overview-card { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 8px; background: var(--sidebar); border: 1px solid var(--line); border-radius: 12px; }
.care-card-main { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 0; text-align: left; }
.care-card-main strong, .care-card-main small { display: block; overflow-wrap: anywhere; }
.care-card-main strong { font-size: .9rem; }
.care-card-main small { color: var(--muted); margin-top: 3px; font-size: .81rem; }
.care-overview-card .plain { padding-inline: 6px; white-space: nowrap; }
.care-log, .calendar-selection { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.document-history summary { cursor: pointer; padding-block: 8px; font-weight: 650; }
.document-history .list { margin-top: 8px; }
.calendar-picker { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-bottom: 12px; }
.calendar-picker label { flex: 1 1 90px; max-width: 160px; }
.calendar-picker input, .calendar-picker select { width: 100%; }
.album-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.album-selection strong { margin-right: auto; }
.photo-tile[data-album-media] { user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.photo-tile[data-album-media] img { pointer-events: none; }
.photo-select-mark { position: absolute; display: grid; place-items: center; top: 6px; right: 6px; width: 28px; height: 28px; border: 2px solid white; border-radius: 50%; background: #2228; color: white; font-weight: 700; }
.photo-tile[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: -3px; }
.photo-tile[aria-pressed="true"] .photo-select-mark { background: var(--accent); }
.trash-row .secondary { flex-shrink: 0; }
.trash-row .row-main strong { overflow-wrap: anywhere; }
.trash-thumb { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; }
.danger { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 13px; border: 1px solid #9f353a; color: #9f353a; background: var(--surface); border-radius: 10px; font-weight: 650; }
.danger:disabled { opacity: .5; cursor: default; }
.audit-details { margin-block: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.audit-details ol { list-style: none; padding: 0; margin: 6px 0 0; }
.audit-details li { padding: 7px 0; font-size: .85rem; overflow-wrap: anywhere; }
.audit-details li + li { border-top: 1px solid var(--line); }
.audit-details time { display: block; color: var(--muted); }
.audit-details dl, .audit-details dd { margin: 0; }
.audit-details dl div { display: grid; grid-template-columns: minmax(60px, auto) minmax(0, 1fr); gap: 6px; margin-top: 4px; }
.audit-details dt { color: var(--muted); }
.audit-details p { margin-top: 6px; }
.media-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.video-error { margin-top: 7px; }
dialog.video-expanded { width: min(98vw, 1120px); max-height: 96dvh; }
dialog.video-expanded .media-detail { max-height: 77dvh; }
@media (max-width: 760px) {
  .care-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-overview-card { display: grid; grid-template-columns: minmax(0, 1fr); }
  .care-card-main { min-height: 42px; }
  .care-card-main .token { width: 31px; height: 31px; }
  .care-overview-card .plain { justify-self: end; min-height: 31px; }
}

.cover-placeholder { min-height: 100%; display: grid; place-items: center; color: #c7dbbf; background: #ffffff0d; }
.attachment-list { max-height: 165px; overflow: auto; }
.attachment-list .check { padding-block: 3px; overflow-wrap: anywhere; }
.media-format { margin: 8px 0; font-size: .85rem; }
button.demo-tag:focus-visible { outline-offset: 2px; }
@media (max-width: 350px) {
  .top-actions button.demo-tag { display: inline-flex; max-width: 78px; padding-inline: 6px; white-space: normal; font-size: .66rem; }
  .top-add { white-space: nowrap; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; }
  .page-heading > button { white-space: nowrap; }
}
