:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #25231f;
  background: #f8f6f1;
  font-synthesis: none;
  --ink: #25231f;
  --muted: #6c665e;
  --surface: #fffdfa;
  --line: #e7e0d5;
  --accent: #d4f688;
  --green: #293818;
  --lavender: #eee5f7;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(29px, 6vw, 42px); font-weight: 780; letter-spacing: -.045em; }
h2 { font-size: 17px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; min-height: 44px; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:root[data-pointer-input] :is(button, summary, a[href], input:is([type='checkbox'], [type='radio'], [type='file'])):focus-visible { outline: none; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.icon { display: inline-grid; place-items: center; flex-shrink: 0; }
.icon svg { display: block; width: 21px; height: 21px; }
.icon:has(ellipse) svg { fill: currentColor; stroke: none; }
.topbar { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-inner { display: flex; align-items: center; gap: 10px; width: min(100% - 32px, 760px); margin: auto; min-height: 65px; }
.brand { display: grid; place-items: center; flex: 0 0 44px; border-radius: 15px; border: 0; background: var(--accent); }
.brand-title { font-weight: 750; letter-spacing: -.015em; white-space: nowrap; }
.header-actions { display: flex; min-width: 0; gap: 3px; margin-left: auto; }
.header-actions > .icon-button { flex-shrink: 0; }
.account-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #cc4545; }
.dog-account-choice { position: relative; }
.dog-account-choice .account-dot { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); }
.feedback-settings > .feedback-setting + .feedback-setting { border-top: 1px solid var(--line); }
.icon-button { display: grid; place-items: center; width: 44px; border: 0; border-radius: 14px; background: transparent; }
@media (max-width: 360px) {
  .topbar-inner { width: calc(100% - 20px); gap: 6px; }
}
html:has(.privacy-screen[open], .media-preview[open], .setting-help[open], .task-edit-dialog[open]) { overflow: hidden; }
.privacy-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: #f1f2f4;
  color: #35383e;
}
.privacy-screen[open] { display: grid; place-items: center; }
.privacy-screen::backdrop { background: #f1f2f4; }
.privacy-screen button { background: #fff; border: 1px solid #d4d6da; border-radius: 12px; padding: 0 20px; }
.privacy-actions { display: grid; gap: 12px; width: min(100%, 320px); justify-items: center; text-align: center; }
.privacy-actions form { width: 100%; text-align: left; }
.privacy-actions [role="status"] { font-size: 14px; }
.media-preview {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0; background: transparent; color: #fff; overflow: hidden;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.media-preview[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
.media-preview::backdrop { background: rgba(18, 18, 18, .92); }
.media-preview-close { justify-self: end; background: #383838; color: #fff; }
.media-preview-stage { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.media-preview-stage :is(img, video) {
  display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 9px;
}
.media-preview-stage img { cursor: zoom-out; }
.media-preview-stage p { text-align: center; }
.shell { width: min(100% - 32px, 690px); margin: auto; padding: 28px 0 max(36px, env(safe-area-inset-bottom)); }
.dog-home { display: grid; gap: 16px; }
.home-title { display: grid; gap: 5px; padding: 5px 0 1px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.home-clock {
  display: inline-flex;
  justify-self: center;
  align-items: baseline;
  gap: clamp(7px, 2vw, 13px);
  padding: 4px 0 6px;
  color: var(--muted);
  font-size: clamp(.78rem, 3.4vw, .96rem);
  line-height: 1.5;
  white-space: nowrap;
}
.clock-date, .clock-time { font-variant-numeric: tabular-nums; }
.clock-weekday { font-weight: 500; }
.clock-time { color: var(--ink); font-weight: 750; }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.score { min-width: 0; display: grid; gap: 5px; padding: 14px 17px; border-radius: 18px; background: #efeadf; }
.score:nth-child(2) { background: var(--lavender); }
.score span { color: #4e493e; font-size: 13px; font-weight: 650; }
.score strong { font-size: 28px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.quick-panel { display: grid; gap: 3px; border: 1px solid #dce8c6; border-radius: 22px; padding: 9px; background: #edf2e4; }
.quick-button { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; border: 1px solid #c1d9a1; border-radius: 15px; background: var(--accent); color: var(--green); min-height: 73px; font-size: 24px; font-weight: 800; }
.quick-button .icon svg { width: 25px; height: 25px; }
.quick-caption { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 8px; min-height: 42px; color: #4d5b3c; font-size: 13px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0 5px; font-weight: 700; text-decoration: underline; }
.text-button .icon svg { width: 15px; height: 15px; }
.rows { display: grid; gap: 8px; }
.row { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; min-height: 58px; padding: 8px 12px; }
.row-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; background: #f0ebdf; color: #514737; }
.row .row-icon svg { width: 18px; height: 18px; }
.row-label { display: grid; gap: 3px; flex: 1; font-weight: 650; }
.row-label small { font-weight: 450; color: var(--muted); font-size: 12px; }
.row > .icon { color: var(--muted); }
.row > .icon svg { width: 16px; height: 16px; }
.section-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.section-title h1 { flex: 1; }
.back { display: inline-flex; gap: 2px; align-items: center; border: 0; background: transparent; border-radius: 11px; color: var(--muted); font-size: 14px; padding: 0 7px 0 2px; }
.back svg { width: 16px; height: 16px; }
.panel, .login-card { border: 1px solid var(--line); border-radius: 21px; padding: 18px; background: var(--surface); }
.login-shell { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(100%, 410px); padding: clamp(20px, 7vw, 36px); }
.login-card .form-stack { margin-top: 25px; }
.login-mark { display: grid; place-items: center; width: 57px; height: 57px; margin-bottom: 14px; border-radius: 18px; background: var(--accent); }
.login-mark svg { width: 31px; height: 31px; }
.form-stack { display: grid; gap: 16px; }
.form-stack label, .field-label { display: block; font-weight: 650; font-size: 14px; }
.form-stack label small, .field-label small { color: var(--muted); font-weight: 450; }
input:not([type=file]), textarea, select { display: block; width: 100%; max-width: 100%; min-height: 45px; border: 1px solid #d9d0c3; border-radius: 10px; background: #fffefa; color: var(--ink); padding: 10px 11px; font-size: 16px; }
.form-stack label input:not([type=file]), .form-stack label textarea, .form-stack label select, .media-field { margin-top: 7px; }
textarea { resize: vertical; line-height: 1.5; }
.file-box { position: relative; display: flex !important; align-items: center; justify-content: center; gap: 7px; min-height: 53px; color: #514b41; border: 1px dashed #a59a8a; border-radius: 10px; cursor: pointer; text-align: center; padding: 5px 10px; }
:root:not([data-pointer-input]) :is(.file-box, .avatar-select):has(.file-input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.file-input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.file-names { color: var(--muted); overflow-wrap: anywhere; font-size: 13px; margin-top: 7px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 6px; }
.form-error { color: #9d302d; background: #fff0ed; border-radius: 8px; padding: 8px 10px; font-size: 14px; overflow-wrap: anywhere; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; padding: 9px 17px; border: 1px solid #c3dba2; border-radius: 11px; background: var(--accent); color: var(--green); font-weight: 730; }
.secondary { border-color: #d9d0c3; background: var(--surface); color: var(--ink); }
.danger { color: #9d302d; }
.wide { width: 100%; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.quick-photo { width: min(100%, 380px); padding: 4px 8px 8px; gap: 8px; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 33px 16px; text-align: center; margin-top: 4px; }
.empty > .icon { border-radius: 15px; padding: 11px; background: var(--lavender); }
.loading { color: var(--muted); text-align: center; padding: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tabs { display: flex; flex: 1; border: 1px solid var(--line); padding: 3px; background: #efeae1; border-radius: 12px; white-space: nowrap; }
.tabs button { flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 8px; padding: 6px 9px; font-weight: 650; font-size: 13px; }
.tabs button[aria-pressed=true] { background: var(--surface); }
.submission-history { display: grid; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.feedback-nav { margin-bottom: 8px; }
.feedback-settings { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.feedback-setting { display: flex; align-items: center; }
.feedback-settings .feedback-setting { padding: 0 6px 0 2px; }
.feedback-setting-action {
  flex: 1; min-width: 0; min-height: 46px; padding: 8px 12px; border: 0;
  border-radius: 12px; background: transparent; text-align: left; font-size: 15px; font-weight: 650;
}
.feedback-push-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.feedback-settings .feedback-push-controls { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.feedback-settings .feedback-push-controls > .secondary { justify-self: start; margin: 0 14px 8px; font-size: 13px; }
.feedback-settings .feedback-push-controls > p { padding: 0 14px 10px; font-size: 13px; }
.feedback-push-controls p:empty { display: none; }
.feedback-title { margin-bottom: 12px; font-size: clamp(24px, 5.5vw, 29px); }
.setting-help-trigger { color: var(--muted); }
.setting-help-trigger svg { width: 18px; height: 18px; }
.setting-help { width: min(420px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); }
.setting-help::backdrop { background: rgb(37 35 31 / 42%); }
.setting-help-content { padding: 14px 18px 20px; }
.setting-help-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.setting-help ol { margin: 6px 0 0; padding-left: 1.5em; font-size: 14px; line-height: 1.65; }
.setting-help li + li { margin-top: 8px; }
.submission-time {
  display: grid; grid-template-columns: minmax(0, 1fr) 4ch auto 12px; align-items: center; gap: 6px;
  width: 100%; padding: 12px 14px; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums;
}
.submission-time time { font-size: 13px; }
.submission-bonus { grid-column: 2; color: #476829; text-align: center; white-space: nowrap; }
.submission-label { grid-column: 3; font-weight: 650; }
.submission-dot { grid-column: 4; width: 12px; height: 12px; border: 1.5px solid #8d887c; border-radius: 50%; }
.submission-dot.complete { background: #527333; border-color: #527333; }
.filters select { width: auto; flex: 1; }
.entry-list { display: grid; gap: 10px; margin-bottom: 12px; }
.entry { min-width: 0; display: grid; gap: 12px; }
.entry-header { display: flex; align-items: flex-start; gap: 8px; }
.entry-title { flex: 1; min-width: 0; }
.entry-title time { font-size: 12px; color: var(--muted); }
.status { flex-shrink: 0; font-size: 12px; border-radius: 30px; padding: 4px 7px; background: #eee7da; }
.status.approved { background: #e7f1d8; }
.status.rejected { background: #f7e1dd; }
.status.recorded { background: #eeeae3; }
.entry-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: 15px; }
.attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.media-thumbnail {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; aspect-ratio: 4 / 3;
  padding: 0; border: 0; overflow: hidden; border-radius: 9px; background: #272727; color: #fff;
}
.media-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.entry details, .feedback { border-top: 1px solid var(--line); padding-top: 8px; }
.entry summary { cursor: pointer; min-height: 44px; line-height: 44px; font-weight: 670; color: #475432; }
.review-form { gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.review-scores { min-width: 0; margin: 0; padding: 0; border: 0; }
.review-scores legend { margin-bottom: 6px; padding: 0; }
.score-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.score-choice { position: relative; cursor: pointer; }
.review-form .score-choice input {
  position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; opacity: 0;
}
.score-choice span {
  display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); font-variant-numeric: tabular-nums;
}
.score-choice input:checked + span { border-color: #8da76e; background: #e8f2d9; }
:root:not([data-pointer-input]) .score-choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.review-scores:disabled { opacity: .6; }
.feedback { display: grid; gap: 6px; }
.feedback-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; }
.violation { color: #9d302d; }
#notice { position: fixed; z-index: 2; bottom: max(15px, env(safe-area-inset-bottom)); left: 0; right: 0; display: grid; justify-content: center; pointer-events: none; padding: 0 15px; }
.toast { border-radius: 20px; background: #2c2b23; color: #fffefa; padding: 11px 16px; text-align: center; font-size: 14px; }
@media (min-width: 650px) {
  .shell { padding-top: 38px; }
  .dog-home { gap: 20px; }
  .score { padding: 17px 21px; }
  .quick-button { min-height: 94px; }
  .row { min-height: 62px; }
  .panel { padding: 21px; }
  .filters select { flex: 0 1 160px; }
}

.header-menu { position: relative; }
.owner-menu { min-width: 0; }
.header-menu > summary { list-style: none; cursor: pointer; min-height: 44px; }
.header-menu > summary::-webkit-details-marker { display: none; }
.owner-menu > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px 3px 4px;
  border: 1px solid #e5ded3;
  border-radius: 16px;
}
.owner-avatar { flex: 0 0 34px; width: 34px; height: 34px; object-fit: cover; border-radius: 50%; background: #343a57; }
.owner-name { font-weight: 650; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owner-actions {
  position: absolute;
  z-index: 4;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  gap: 8px;
  min-width: 168px;
  padding: 12px;
  border: 1px solid #e5ded3;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(40, 31, 15, .12);
}
.owner-actions button[aria-pressed="true"] { background: #e8f2d9; }
.dog-domain { margin-bottom: 16px; }
.dog-domain a { display: inline-block; margin-top: 6px; overflow-wrap: anywhere; }

.owner-heading { display: flex; gap: 9px 14px; align-items: center; flex-wrap: wrap; }
.owner-heading h1 { margin-right: 0; }
.current-dog { margin-right: auto; font-weight: 750; color: #714024; }
.owner-workspace { display: grid; gap: 14px; }
.work-card { display: grid; gap: 12px; justify-items: start; }
.work-card h2 { margin: 0; }
.card-title, .work-actions, .entry-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.entry-select { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.entry-select input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: #527333; }
.card-title time { color: var(--muted); }
.unread-badge { background: #bd252f; color: white; min-width: 23px; height: 23px; border-radius: 999px; padding: 0 5px; text-align: center; line-height: 23px; font-size: .79rem; font-weight: 800; }
.day-grid, .feature-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.day-grid { width: 100%; grid-auto-rows: 1fr; }
.day-category { min-height: 62px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 1px 8px; align-content: center; align-items: center; text-align: left; background: #f8f6ef; border: 1px solid #e3dccb; border-radius: 11px; padding: 8px 10px; }
.day-category-label, .feature-options label span { white-space: nowrap; }
.day-category small { grid-column: 2; color: #656051; font-variant-numeric: tabular-nums; }
.day-category:disabled { background: #eeeeeb; color: #72716c; opacity: 1; cursor: default; }
[data-category="wakeup"], [data-category="meal"], [data-category="erection"] { --category-ink: #985014; --category-tint: #f9ebd6; }
[data-category="water"], [data-category="bath"] { --category-ink: #176981; --category-tint: #e1f2f6; }
[data-category="urination"], [data-category="special"] { --category-ink: #176d64; --category-tint: #e0f1eb; }
[data-category="exercise"], [data-category="dogplay"] { --category-ink: #496c27; --category-tint: #e8efdc; }
[data-category="outing"], [data-category="sleep"] { --category-ink: #65459a; --category-tint: #eee7fa; }
[data-category="bodycheck"], [data-category="upload"] { --category-ink: #4b6178; --category-tint: #e6edf3; }
[data-category="emotion"] { --category-ink: #a53f63; --category-tint: #f7e7ee; }
:is(.day-category, .erection-trend .card-title) > .icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--category-ink);
  background: var(--category-tint);
}
.day-category > .icon { grid-row: span 2; }
:is(.day-category, .erection-trend .card-title) > .icon svg { width: 19px; height: 19px; }
.day-category:disabled > .icon { color: inherit; background: #e5e4e0; }
.history-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.history-days .history-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  padding-inline: clamp(8px, 2.6vw, 14px);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.history-day time, .history-day span { white-space: nowrap; }
.history-day span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.diary-chart { width: 100%; }
.trend-total { display: flex; align-items: baseline; gap: 6px; color: var(--muted); margin: 0 0 6px; }
.trend-total strong { color: var(--ink); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.diary-chart svg { display: block; width: 100%; height: auto; }
.chart-bar { fill: #527333; }
.chart-zero { fill: #d8dccd; }
.chart-dates { display: flex; justify-content: space-between; color: var(--muted); font-size: .83rem; }
.diary-chart details { margin-top: 10px; }
.trend-data { margin-block: 6px; }
.trend-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.trend-tabs .secondary { font-size: .87rem; padding-inline: 12px; }
.trend-tabs [aria-pressed="true"] { background: #e8f2d9; border-color: #b8c89d; }
.trend-content { min-width: 0; width: 100%; }
.heat-date { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.heat-date input { min-height: 44px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); }
.heat-summary { margin-block: 2px 9px; }
.heatmap { display: grid; gap: 9px; margin-block: 4px 9px; }
.heat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.heat-cell { padding: 2px; border: 0; border-radius: 7px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.heat-legend { display: flex; gap: 4px; color: var(--muted); font-size: .76rem; }
.heat-legend span { min-width: 24px; padding: 2px 4px; border-radius: 4px; text-align: center; }
.heat-tone-0 { background: #f0eee8; color: #524d43; }
.heat-tone-1 { background: #e0ebcb; color: #2c411d; }
.heat-tone-2 { background: #becf9d; color: #24381a; }
.heat-tone-3 { background: #648545; color: #101a08; }
.heat-tone-4 { background: #385824; color: #fff; }
.export-actions { margin: 0 0 12px; }
.entry-tools { justify-content: flex-end; }
.entry-tools label { margin-right: auto; display: inline-flex; align-items: center; gap: 7px; }
.diary-group { margin-block: 8px 0; }
.feature-options { padding: 0; margin: 0; min-width: 0; border: 0; }
.feature-options label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.feature-options label input[type="checkbox"] { width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; flex: 0 0 17px; accent-color: #527333; }
.feature-save { justify-self: start; }
@media (min-width: 570px) {
  .day-grid, .feature-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day-grid > :nth-child(4n+1):nth-last-child(2) { grid-column: 2; }
  .heat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.media-item { min-width: 0; }
.media-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; font-size: .78rem; }
.media-meta dd { margin: 0; overflow-wrap: anywhere; }
.media-meta dt { font-weight: 700; }
.task-panel, .task-list, .task-extra { display: grid; gap: 12px; }
.task-editor .task-time-option { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.task-time-option input[type='checkbox'] { width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: #527333; }
.task-options > summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 650; }
.task-options > :not(summary) { margin-bottom: 8px; }
.task-options .task-card > label { width: 100%; }
.task-options .task-form-columns { align-items: end; }
.task-adjustment > .task-form-columns { width: 100%; }
.task-adjustment > .task-time-row { width: 100%; }
.task-week-times { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.task-week-time { padding: 5px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.task-time-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: end; gap: 10px; }
.task-time-row > label { min-width: 0; }
.task-time-row input[type='time'], .task-time-row select { width: 100%; min-width: 0; max-width: 100%; }
.task-schedule-section, .task-schedules { display: grid; gap: 12px; }
.task-schedule-section h3 { margin: 0; font-size: 16px; }
.task-schedule-card { min-width: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.task-schedule-card > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; cursor: pointer; list-style: none; }
.task-schedule-card > summary::-webkit-details-marker { display: none; }
.task-schedule-card[open] > summary { border-bottom: 1px solid var(--line); }
.task-schedule-description { display: grid; gap: 5px; min-width: 0; }
.task-schedule-description strong { font-size: 14px; font-weight: 650; color: #425632; }
.task-schedule-time { font-size: 24px; font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; }
.task-schedule-edit { flex-shrink: 0; font-size: 13px; color: var(--muted); }
.task-schedule-controls { padding: 14px; }
.task-schedule-add { display: flex; align-items: center; justify-content: center; gap: 6px; }
.task-schedule-remove { justify-self: start; border: 0; padding: 6px 0; background: transparent; color: #933f35; font-size: 13px; }
.task-schedule-remove:disabled { opacity: .4; cursor: default; }
.task-schedule-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.task-schedule-days legend { margin-bottom: 6px; font-weight: 650; }
.task-schedule-days label { position: relative; min-width: 0; cursor: pointer; }
.task-schedule-days input[type='checkbox'] { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; }
.task-schedule-days span { display: grid; place-items: center; height: 44px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.task-schedule-days input:checked + span { border-color: #a8c574; background: #e9f3da; color: #293818; }
:root:not([data-pointer-input]) .task-schedule-days input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.task-schedule-overview { display: grid; gap: 4px; }
.task-questions { padding-top: 8px; border-top: 1px solid var(--line); }
.task-options > .task-list:empty { display: none; }
.task-quick-replies .secondary { padding-inline: 12px; }
.task-thread-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.task-question { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.task-question legend { padding: 0 5px; font-size: 14px; font-weight: 650; }
.task-answer-options .secondary { padding-inline: 12px; }
.task-answer-options .secondary[aria-pressed='true'] { background: var(--accent); border-color: #9cb967; }
.scale-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.task-title { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; }
.task-title time { font-weight: 700; font-variant-numeric: tabular-nums; }
.task-card { display: grid; justify-items: start; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #f8f6ef; min-width: 0; }
.task-card .task-title { width: 100%; }
.task-completed { color: #355123; font-weight: 700; }
.task-publication { color: #425632; font-size: .85rem; font-weight: 650; }
.today-task-list, .rule-list { margin: 0; padding: 0; list-style: none; }
.upcoming-tasks { border-top: 1px solid var(--line); padding-top: 9px; }
.upcoming-tasks ul { padding-inline-start: 1.25em; margin-block: 8px 0; color: var(--muted); line-height: 1.7; }
.rules-account, .rule-list, .rules-level-inputs { display: grid; gap: 9px; }
.rules-fieldset { min-width: 0; border: 1px solid var(--line); padding: 12px; border-radius: 12px; margin: 0; }
.rules-fieldset legend { font-weight: 750; }
.rules-fieldset .rule-list:not(:empty) { margin-bottom: 9px; }
.rule-list { counter-reset: rule-level; }
.rule-list > li { counter-increment: rule-level; }
.rule-list > li::before { content: "第 " counter(rule-level) " 级"; font-size: .82rem; font-weight: 750; color: #425632; }
.rules-level-inputs { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .rules-level-inputs { grid-template-columns: 1fr; } }
.task-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.task-moves { padding-inline-start: 19px; margin: 0; }
.task-edit-dialog { width: min(640px, calc(100% - 24px)); max-width: none; max-height: calc(100svh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); color: var(--ink); box-shadow: 0 18px 70px rgb(37 35 31 / 18%); }
.task-edit-dialog[open] { display: flex; flex-direction: column; }
.task-edit-dialog::backdrop { background: rgb(37 35 31 / 42%); }
.task-editor-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.task-editor-heading h2 { font-size: 20px; }
.task-editor-heading .hint { margin-top: 3px; }
.task-editor-heading .icon-button { flex-shrink: 0; }
.task-editor { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.task-editor-fields { overflow-y: auto; overscroll-behavior-y: contain; padding: 16px; min-height: 0; }
.task-editor-footer { display: grid; flex: 0 0 auto; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.task-editor-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.task-editor-actions > button { min-width: 0; }
.task-form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.task-form-columns > label { min-width: 0; }
.task-weekdays { display: flex; flex-wrap: wrap; gap: 6px 13px; margin: 0; border: 0; padding: 0; }
.task-weekdays legend { font-weight: 650; margin-bottom: 4px; }
.task-weekdays label { display: inline-flex; align-items: center; gap: 5px; min-height: 37px; }
.task-weekdays label input[type="checkbox"] { width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; accent-color: #527333; }
.task-move-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 68px) minmax(0, 85px) auto; align-items: end; gap: 6px; }
.task-move-editor button { padding-inline: 8px; }
.emotion-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.emotion-button { border: 1px solid #d9d0c3; border-radius: 13px; min-height: 59px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 750; }
.emotion-button.unwell { background: #f8e8da; color: #703419; }
.emotion-button.excited { background: #e6efce; color: #385123; }

/* Shared layout and primary destinations for the two private workspaces. */
:root { --muted: #706a60; --surface: #fffefa; --line: #e5dfd3; --focus: #918673; }
body { line-height: 1.5; }
h1 { font-size: clamp(25px, 5.5vw, 32px); line-height: 1.25; letter-spacing: -.025em; }
h2 { font-size: 17px; }
details > summary:focus-visible {
  outline-offset: -2px;
  border-radius: 7px;
}
.feedback-settings button:focus-visible { outline-offset: -2px; }
.topbar { background: rgb(255 254 250 / 96%); }
.topbar-inner { width: min(100% - 32px, 920px); min-height: 64px; }
.brand { min-height: 42px; flex-basis: 42px; border-radius: 14px; }
.brand-title { font-size: clamp(16px, 4.8vw, 20px); }
.shell { width: min(100% - 32px, 920px); padding-top: 20px; padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
.section-title { flex-wrap: nowrap; gap: 10px; margin-bottom: 18px; }
.section-title h1 { min-width: 0; overflow-wrap: anywhere; }
.section-title .back { flex: 0 0 auto; }
.panel { border-radius: 18px; padding: 16px; }
.primary, .secondary { min-height: 44px; padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 650; gap: 6px; }
.primary:not(:disabled):active, .secondary:not(:disabled):active, .report-category:active { transform: translateY(1px); }
.primary:disabled, .secondary:disabled { opacity: .55; }
.page-description { color: var(--muted); font-size: 14px; margin: -8px 0 18px; }
.primary-navigation { position: fixed; z-index: 4; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 600px); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; background: rgb(255 254 250 / 98%); box-shadow: 0 -5px 28px rgb(37 35 31 / 5%); }
.navigation-item { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.navigation-item[aria-current='page'] { color: #344d24; background: #edf3e3; }
.navigation-icon { position: relative; display: grid; place-items: center; }
.navigation-icon svg { width: 21px; height: 21px; }
.navigation-badge { position: absolute; top: -5px; left: 14px; min-width: 16px; padding: 0 4px; border-radius: 9px; background: #bd252f; color: white; font-size: 10px; line-height: 16px; }
.owner-heading { gap: 12px; }
.owner-heading h1 { margin-right: auto; }
.owner-workspace { gap: 22px; }
.review-workspace, .pending-inbox { display: grid; gap: 14px; min-width: 0; }
.review-summary { display: grid; gap: 8px; }
.review-summary .work-actions { margin-top: 5px; }
.inbox-empty { display: grid; justify-items: center; gap: 7px; text-align: center; padding: 28px 16px; }
.inbox-empty > .icon { width: 38px; height: 38px; border-radius: 50%; background: #e8f1dc; color: #42642b; }
.entry-header { align-items: center; }
.entry-title h2 { font-size: 16px; line-height: 1.4; }
.entry-header .row-icon { width: 31px; height: 31px; flex-basis: 31px; background: #f0eee5; }
.entry-header .row-icon svg { width: 17px; height: 17px; }
.review-form { gap: 11px; }
.review-form textarea { min-height: 72px; font-size: 16px; }
.review-comment { display: grid; gap: 7px; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 7px; }
.reply-chip { min-height: 36px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #f5f2e9; color: #514c41; font-size: 13px; }
.review-actions { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 9px; }
.review-advanced summary, .task-requirements summary { min-height: 36px; align-content: center; color: var(--muted); font-size: 13px; cursor: pointer; }
.review-advanced label { font-size: 13px; }
.review-advanced select { margin-top: 6px; }
.media-item > details { font-size: 12px; color: var(--muted); }
.entry-tools .secondary { min-height: 36px; padding: 5px 9px; font-size: 12px; }
.entry-select { font-size: 13px; }
.settings-content, .settings-section { min-width: 0; }
.settings-section > .panel { margin-bottom: 16px; }
.timeline-shortcuts { display: grid; gap: 12px; margin-top: 20px; }
.profile-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.profile-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--accent); }
.profile-mark svg { width: 26px; height: 26px; }
.logout-button { width: 100%; margin-top: 20px; }
.dog-home { gap: 16px; }
.home-title { gap: 4px; padding: 0; }
.home-clock { justify-self: center; justify-content: center; width: 100%; gap: 6px; padding: 3px 0; font-size: 15px; }
.clock-separator { color: #a59b8b; }
.home-clock .clock-time { color: var(--muted); font-weight: 500; }
.scores { gap: 8px; }
.score { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 66px; padding: 14px 15px; border: 1px solid #d9cebb; border-radius: 14px; }
.score:nth-child(2) { border-color: #d8c8e4; }
.score strong { font-size: 30px; line-height: 1.12; margin-left: auto; color: #3d3526; }
.score span { color: #5b503c; }
.score:nth-child(2) :is(span, strong) { color: #564165; }
.score span { font-size: 15px; font-weight: 650; line-height: 1.2; }
.home-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.home-shortcuts .secondary { display: grid; justify-items: center; gap: 5px; min-height: 68px; padding: 8px 3px; font-size: 12px; white-space: nowrap; }
.home-shortcuts .icon svg { width: 20px; height: 20px; }
.dog-task-panel { padding: 0; border: 0; background: transparent; gap: 10px; }
.dog-task-panel progress { width: 100%; height: 5px; border: 0; border-radius: 6px; overflow: hidden; accent-color: #71994c; }
.dog-task-panel progress::-webkit-progress-bar { background: #e6e3d9; }
.dog-task-panel progress::-webkit-progress-value { background: #71994c; border-radius: 6px; }
.today-task-card { width: 100%; padding: 13px; gap: 7px; background: var(--surface); border-radius: 15px; }
.today-task-card .task-title { align-items: start; }
.today-task-card .task-title strong { max-width: 65%; font-size: 15px; }
.today-task-card .task-time { font-size: 13px; font-weight: 650; color: #4a6434; font-variant-numeric: tabular-nums; }
.today-task-card .task-completed { font-size: 12px; }
.task-card-actions { display: flex; width: 100%; gap: 8px; }
.task-card-actions > .primary { flex: 1; }
.task-card-actions > .secondary { flex: 1; }
.task-card-actions .icon svg { width: 16px; height: 16px; }
.task-requirements { width: 100%; }
.task-requirements > p { font-size: 13px; }
.task-empty { padding: 18px 12px; border: 1px dashed #d2d8c5; border-radius: 14px; color: #526741; font-size: 14px; text-align: center; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.report-category { display: flex; align-items: center; gap: 9px; min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; font-size: 15px; font-weight: 600; }
.report-category .row-icon { width: 32px; height: 32px; flex-basis: 32px; background: #f0eee5; }
.report-category .row-icon svg { width: 19px; height: 19px; }
.submit-form { max-width: 680px; margin-inline: auto; }
.submit-actions { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); margin: 0 -8px -8px; padding: 9px 8px; background: var(--surface); border-top: 1px solid var(--line); z-index: 1; }
.submit-actions > button { min-height: 48px; }
.submit-form .file-box { min-height: 92px; border-radius: 14px; }
.submit-form .optional-prose textarea { margin-top: 8px; }
.submission-time { grid-template-columns: minmax(0, 1fr) 3ch auto 10px; padding: 13px 12px; font-size: 12px; gap: 6px; }
.submission-time time { white-space: nowrap; }
.submission-label { font-size: 13px; }
.feedback-settings { overflow: hidden; margin-bottom: 18px; }
#notice { bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 5; }
@media (min-width: 760px) {
  .shell { padding-top: 26px; }
  .pending-inbox { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .pending-inbox .inbox-empty { grid-column: 1 / -1; }
  .report-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-shortcuts { max-width: 560px; }
  .dog-home { max-width: 700px; margin-inline: auto; }
  .primary-navigation { bottom: 16px; border-bottom: 1px solid var(--line); border-radius: 20px; padding-bottom: 8px; }
}
@media (max-width: 360px) {
  .shell, .topbar-inner { width: calc(100% - 24px); }
  .owner-name { max-width: 64px; }
  .owner-menu > summary { gap: 4px; padding-right: 6px; }
  .owner-avatar { width: 28px; height: 28px; flex-basis: 28px; }
  .header-actions { gap: 0; }
  .header-actions > .icon-button { width: 38px; }
  .report-category { padding: 10px 8px; gap: 6px; font-size: 14px; }
  .submission-time { font-size: 11px; gap: 4px; padding-inline: 10px; }
  .submission-label { font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .primary, .secondary, .report-category { transition: background-color .15s, border-color .15s, transform .15s; }
}
.instant-records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 8px; margin: 0; }
.instant-records[data-count='1'] { grid-template-columns: minmax(0, 1fr); }
.instant-records[data-count='2'] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.instant-records .quick-button, .instant-records .emotion-button { order: 0; width: 100%; min-width: 0; min-height: 52px; gap: 5px; padding: 7px 4px; border-radius: 12px; font-size: 14px; font-weight: 650; }
.instant-records .quick-button .icon svg, .instant-records .emotion-button .icon svg { width: 18px; height: 18px; }
.instant-records .quick-caption, .instant-records p[role='status'] { order: 1; grid-column: 1 / -1; min-height: 0; margin: 0; font-size: 12px; }
.instant-records p[role='status']:empty { display: none; }
@media (max-width: 360px) { .instant-records .quick-button, .instant-records .emotion-button { font-size: 12px; } }
.shell > .task-panel.dog-domain { padding: 0; border: 0; background: transparent; }
.shell > .task-panel.dog-domain > .task-list > .task-card { background-color: var(--surface); padding: 16px; border-radius: 18px; }
.reply-chip { min-height: 44px; }

/* One owner settings destination, with explicit account scopes. */
.settings-groups { display: grid; gap: 18px; }
.settings-group { padding: 0 14px; overflow: hidden; }
.settings-group > h2 { padding: 14px 0 10px; font-size: 14px; color: var(--muted); }
.settings-group > .row { border: 0; border-radius: 0; background: transparent; padding: 12px 0; }
.settings-group > .row + .row { border-top: 1px solid var(--line); }
.settings-groups > .logout-button { margin-top: 0; }
.settings-detail > .panel > h2:first-child { display: none; }
.review-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.review-summary.is-empty { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; gap: 10px; padding: 30px 18px; text-align: center; }
.review-summary.is-empty > .icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e8f1dc; color: #42642b; }

/* Shortcuts compact themselves around the features enabled for this account. */
.home-shortcuts[data-count='1'] { grid-template-columns: minmax(0, 1fr); }
.home-shortcuts[data-count='2'] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-shortcuts[data-count='3'] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-shortcuts[data-count='1'] .secondary, .home-shortcuts[data-count='2'] .secondary { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 12px; gap: 8px; font-size: 14px; }
.score { flex-wrap: wrap; row-gap: 4px; }
.score span { white-space: nowrap; }
.today-task-card .task-name { display: flex; flex: 1; min-width: 0; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.today-task-card .task-name strong { max-width: 100%; }
.task-proof-chip { display: inline-flex; align-items: center; border-radius: 7px; padding: 3px 6px; background: #f0eee5; color: #655f52; font-size: 12px; font-weight: 500; }
.today-task-card .task-title > .task-time, .today-task-card .task-title > .task-completed { flex-shrink: 0; }


.brand-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.header-actions { flex-shrink: 0; }
button.profile-summary { width: 100%; text-align: left; cursor: pointer; }
.profile-mark { position: relative; flex-shrink: 0; overflow: hidden; }
.profile-avatar { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-copy { min-width: 0; }
.profile-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; }
.profile-name h2 { overflow-wrap: anywhere; }
.profile-name > span { white-space: nowrap; }
.profile-avatar-preview { display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: var(--accent); }
.profile-avatar-preview > .profile-mark { width: 100%; height: 100%; }
.profile-avatar-preview > img { width: 100%; height: 100%; object-fit: cover; }
.avatar-select { position: relative; display: flex; justify-content: center; cursor: pointer; overflow: hidden; }
.avatar-select > input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* Tactile controls retain the existing palette and give way under pressure. */
.primary, .secondary, .quick-button, .emotion-button, .report-category, .reply-chip {
  --control-edge: #d5cec1;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 30%), rgb(255 255 255 / 0%) 70%);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 82%), inset 0 -3px 2px var(--control-edge), 0 3px 6px rgb(64 52 31 / 10%);
}
.primary, .instant-records .quick-button { --control-edge: #abc767; }
.emotion-button.unwell { --control-edge: #d4b59f; }
.emotion-button.excited { --control-edge: #b8c990; }
.instant-records .emotion-button { background-image: linear-gradient(180deg, rgb(255 255 255 / 25%), rgb(255 255 255 / 0%) 75%); }
:is(.primary, .secondary, .quick-button, .emotion-button, .report-category, .reply-chip):not(:disabled):active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 2px rgb(64 52 31 / 12%), inset 0 -1px 1px var(--control-edge), 0 1px 2px rgb(64 52 31 / 8%);
}
:is(.primary, .secondary, .quick-button, .emotion-button, .report-category, .reply-chip):disabled {
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 65%), 0 1px 2px rgb(64 52 31 / 6%);
}
@media (hover: hover) and (pointer: fine) {
  :where(:root:not([data-pointer-input='touch'])) :is(.icon-button, .back):not(:disabled):hover { background-color: #efeae0; }
  :where(:root:not([data-pointer-input='touch'])) .media-preview-close:hover { background-color: #535353; }
  :where(:root:not([data-pointer-input='touch'])) :is(.quick-button, .primary):not(:disabled):hover { background-color: #c6ec73; }
  :where(:root:not([data-pointer-input='touch'])) :is(.secondary, .feedback-setting-action):not(:disabled, [aria-pressed='true']):hover { background-color: #f4eee3; }
  :where(:root:not([data-pointer-input='touch'])) :is(.row, .submission-time):not(:disabled):hover { border-color: #b8ad9b; }
  :where(:root:not([data-pointer-input='touch'])) :is(.primary, .secondary, .quick-button, .emotion-button, .report-category, .reply-chip):not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / 82%), inset 0 -3px 2px var(--control-edge), 0 4px 8px rgb(64 52 31 / 13%);
  }
  :where(:root:not([data-pointer-input='touch'])) :is(.primary, .secondary, .quick-button, .emotion-button, .report-category, .reply-chip):not(:disabled):active {
    transform: translateY(2px);
    box-shadow: inset 0 1px 2px rgb(64 52 31 / 12%), inset 0 -1px 1px var(--control-edge), 0 1px 2px rgb(64 52 31 / 8%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .primary, .secondary, .quick-button, .emotion-button, .report-category, .reply-chip {
    transition: transform 100ms ease-out, box-shadow 100ms ease-out, background-color 100ms ease-out;
  }
}
:is(.owner-mode, .task-card-actions, .submit-page, .task-thread-page) :is(.primary, .secondary, .reply-chip),
.owner-mode .day-category:not(:disabled) {
  background-image: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 52%), 0 1px 2px rgb(64 52 31 / 7%);
}
@media (hover: hover) and (pointer: fine) {
  :where(:root:not([data-pointer-input='touch'])) :is(.owner-mode, .task-card-actions, .submit-page, .task-thread-page) :is(.primary, .secondary, .reply-chip):not(:disabled):hover {
    transform: none;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 52%), 0 2px 3px rgb(64 52 31 / 9%);
  }
}
:is(.owner-mode, .task-card-actions, .submit-page, .task-thread-page) :is(.primary, .secondary, .reply-chip):not(:disabled):active,
.owner-mode .day-category:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgb(64 52 31 / 9%);
}
.past-tasks { padding: 7px 12px; border: 1px solid #e1dbcf; border-radius: 14px; background: #f1eee6; }
.past-tasks > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; list-style: none; color: #655e50; font-size: 14px; font-weight: 650; cursor: pointer; }
.past-tasks > summary::-webkit-details-marker { display: none; }
.past-tasks > summary > span:first-child { flex: 1; }
.past-count { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.past-tasks > summary > .icon svg { width: 16px; height: 16px; }
.past-tasks[open] > summary > .icon svg { transform: rotate(90deg); }
.past-tasks > .task-list { margin: 5px 0; }

.quick-effect { position: fixed; z-index: 6; width: 0; height: 0; pointer-events: none; user-select: none; }
.quick-effect > .icon { position: absolute; left: 0; top: 0; pointer-events: none; }
.quick-effect > .icon svg { width: 100%; height: 100%; stroke-width: 2; }

/* Shared surface finish for cards across both workspaces. */
:root {
  --card-finish: linear-gradient(165deg, rgb(255 255 255 / 72%), rgb(255 255 255 / 0%) 55%, rgb(154 129 88 / 5%));
  --card-depth: inset 0 1px 1px rgb(255 255 255 / 90%), inset 0 -2px 3px rgb(125 104 70 / 8%), 0 3px 8px rgb(64 52 31 / 8%);
}
:is(.panel, .login-card, .row, .feedback-settings, .task-card, .task-schedule-card,
  .day-category, .report-category, .past-tasks, .score) {
  background-image: var(--card-finish);
  box-shadow: var(--card-depth);
}
.score:first-child { --card-finish: linear-gradient(145deg, #f6f0e4, #e8decb); }
.score:nth-child(2) { --card-finish: linear-gradient(145deg, #f3ebfa, #e4d7ef); }
.day-category:disabled, .dog-task-panel, .shell > .task-panel.dog-domain, .settings-group > .row {
  background-image: none;
  box-shadow: none;
}
.setting-help, .task-edit-dialog, .owner-actions { background-image: var(--card-finish); }
