/*
 * StrimPlan Web V3 system layer
 * Android SP-V3 remains the product baseline. This file deliberately sits
 * after the legacy styles so shared hierarchy, spacing and state behaviour
 * can be corrected without scattering more one-off overrides through app.css.
 */
:root {
  --v3-page-max: 1120px;
  --v3-page-gutter: clamp(16px, 2.8vw, 30px);
  --v3-unit-gap: 28px;
  --v3-section-gap: 18px;
  --v3-control-height: 47px;
  --v3-rule: color-mix(in srgb, var(--ink) 14%, transparent);
  --v3-function: color-mix(in srgb, #fff 86%, var(--paper));
  --v3-interactive: color-mix(in srgb, #fff 64%, var(--paper));
  --v3-muted-surface: color-mix(in srgb, #fff 42%, var(--paper));
  --v3-control-radius: 22px;
  --v3-panel-radius: 28px;
}

/* Page shell and hierarchy */
#plannerView.active .planner-main {
  background: var(--paper);
}
#timelinePanel,
#logContent,
#androidSettingsRoot {
  width: min(100%, var(--v3-page-max));
  margin-inline: auto;
}
.mode-content,
.planner-full-panel,
.android-settings-root {
  color: var(--ink);
}
.mode-content {
  display: grid;
  gap: var(--v3-unit-gap);
  padding-inline: var(--v3-page-gutter);
}
.mode-content > .mode-cover,
.mode-content > .android-section,
.mode-content > .period-progress,
.mode-content > .android-week-list,
.mode-content > .month-schedules {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.mode-content > * + * {
  position: relative;
}
.mode-content > * + *::before {
  content: "";
  position: absolute;
  top: calc(var(--v3-unit-gap) / -2);
  left: 3%;
  width: 94%;
  height: .65px;
  background: var(--v3-rule);
}

/* Android content order: cover → important items → mode content → summary. */
body[data-period="weekly"] .mode-cover,
body[data-period="monthly"] .mode-cover { order: 0; }
body[data-period="weekly"] .important-section,
body[data-period="monthly"] .important-section { order: 1; }
body[data-period="weekly"] .weekly-overview,
body[data-period="monthly"] .month-calendar { order: 2; }
body[data-period="weekly"] .android-week-list,
body[data-period="monthly"] .month-schedules { order: 3; }
body[data-period="weekly"] .reflection-section,
body[data-period="monthly"] .reflection-section { order: 4; }

/* Android V3: quiet cards, visible hierarchy, minimal permanent fills. */
.android-section,
.period-progress,
.android-week-row,
.month-schedules,
.managed-card,
.journal-schedule-page,
.fixed-board-card,
.settings-detail-page,
.settings-achievements > *,
.android-settings-list {
  box-shadow: none !important;
}
.android-section,
.period-progress,
.month-schedules {
  border-color: transparent !important;
  background: var(--v3-function) !important;
  border-radius: var(--v3-panel-radius) !important;
}
.important-section {
  padding: 18px !important;
  background: transparent !important;
}
.important-heading,
.section-title,
.journal-divider {
  font-weight: 800;
  letter-spacing: .01em;
}
.important-heading::before,
.important-heading::after,
.journal-divider > i {
  height: .65px !important;
  background: var(--v3-rule) !important;
}
.important-quick,
.manage-toolbar,
.board-builder {
  margin-top: 16px;
}
.important-quick input,
#manageSearch,
#boardSearch {
  min-height: var(--v3-control-height) !important;
  border: .65px solid color-mix(in srgb, var(--ink) 15%, transparent) !important;
  border-radius: var(--v3-control-radius) !important;
  background: var(--v3-interactive) !important;
  text-align: center;
  color: var(--ink);
}
.important-quick input::placeholder,
#manageSearch::placeholder,
#boardSearch::placeholder {
  text-align: center;
  color: color-mix(in srgb, var(--ink) 30%, transparent);
}

/* Android SP-V3 settings hierarchy: shallow independent rows with narrow gaps. */
.android-settings-list {
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}
.android-settings-list .settings-accordion {
  border: 0;
  background: transparent;
}
.android-settings-list .settings-accordion > button {
  min-height: 58px;
  padding: 10px 18px;
  border: .65px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 18px;
  background: var(--surface);
}
.android-settings-list .settings-accordion > button:hover,
.android-settings-list .settings-accordion > button:focus-visible {
  background: color-mix(in srgb, var(--accent-soft) 48%, var(--surface));
}
.settings-detail-group {
  display: grid;
  gap: 9px;
  padding-top: 14px;
  margin-top: 12px;
  border-top: .65px solid color-mix(in srgb, var(--ink) 17%, transparent);
}
.settings-detail-group.first {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
.settings-detail-group .settings-detail-toggle,
.settings-detail-group .settings-detail-row {
  border-bottom: 0;
}
.settings-detail-group > h3 {
  margin: 0;
}
.material-library-intro {
  display: grid;
  gap: 5px;
}
.material-library-intro strong {
  font-size: 16px;
}
.material-library-intro small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.material-library-group {
  display: grid;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: .65px solid color-mix(in srgb, var(--ink) 17%, transparent);
}
.material-library-group.last {
  border-bottom: 0;
}
.material-library-group > h3 {
  margin: 0;
}
.material-emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.material-emoji-grid button {
  min-width: 0;
  min-height: 36px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--mist) 42%, var(--surface));
  font-size: 18px;
}
@media(max-width:700px) {
  .material-emoji-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Daily / weekly / monthly share one time-unit language. */
.mode-cover {
  border-radius: var(--v3-panel-radius) !important;
  box-shadow: none !important;
}
.weekly-overview,
.month-calendar,
.reflection-section {
  background: var(--v3-function) !important;
}
.android-week-list {
  display: grid;
  gap: 10px;
}
.android-week-row {
  border: 0 !important;
  background: var(--v3-muted-surface) !important;
}
.android-week-row:has(.week-date-button.today) {
  background: var(--v3-function) !important;
}
.android-week-row:has(.week-status-dots i):not(:has(.week-date-button.today)) {
  background: var(--v3-interactive) !important;
}
.week-day-summary,
.week-date-button,
.month-cells button {
  background: transparent !important;
}
.week-dots button.today,
.month-cells button.today {
  background: var(--accent-soft) !important;
}

/* Schedule cards: the whole card is not a permanent filled button. */
.managed-card,
.weekly-schedule-card,
.schedule-card,
.journal-schedule-page {
  --card-color: var(--accent);
  border: .75px solid color-mix(in srgb, var(--card-color) 54%, transparent) !important;
  border-radius: var(--v3-control-radius) !important;
  background: color-mix(in srgb, var(--card-color) 5%, var(--v3-function)) !important;
  overflow: hidden;
}
.managed-card { position: relative; }
.managed-card:not(.expanded) .managed-card-head { padding-right: 58px !important; }
.managed-delete {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: color-mix(in srgb, var(--card-color) 82%, var(--ink));
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.managed-delete:hover,
.managed-delete:focus-visible {
  background: color-mix(in srgb, var(--card-color) 12%, transparent);
  outline: none;
}
.managed-delete:disabled { opacity: .42; cursor: wait; }
.category-me { --card-color: var(--category-me); }
.category-family { --card-color: var(--category-family); }
.category-friend { --card-color: var(--category-friend); }
.category-work { --card-color: var(--category-work); }
.managed-card-head,
.weekly-schedule-card > header,
.managed-card-detail,
.weekly-card-subtasks {
  background: transparent !important;
}
.managed-card-head,
.weekly-schedule-card > header {
  min-height: 66px;
}
.managed-card-detail,
.weekly-card-detail {
  border-top: .65px solid var(--v3-rule);
}
.weekly-schedule-card > header {
  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) 34px !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px !important;
}
.weekly-schedule-card > header > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.weekly-schedule-card > header > span strong,
.weekly-schedule-card > header > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-schedule-card > header > span small { color: var(--muted); font-size: 11px; }
.schedule-expanded-body {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-top: .65px solid var(--v3-rule);
  background: color-mix(in srgb, #fff 24%, transparent);
}
.schedule-card.compact.expanded {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) 28px 32px !important;
}
.schedule-card.compact > .schedule-expanded-body {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}
.timeline-details > .schedule-expanded-body {
  padding: 0;
  border-top: 0;
}
.journal-schedule-page > .schedule-expanded-body {
  margin-top: 12px;
  padding-inline: 0;
  border-top: .65px solid var(--v3-rule);
  background: transparent;
}
.schedule-expanded-body > section > strong { font-size: 13px; }
.schedule-expanded-body p { margin: 5px 0 0; color: var(--muted); white-space: pre-wrap; }
.schedule-meta-icons {
  display: flex;
  gap: 12px;
  order: 90;
  padding-top: 4px;
  color: color-mix(in srgb, var(--ink) 24%, transparent);
}
.schedule-meta-icons span.active { color: var(--card-color); }
.schedule-expanded-body .edit-schedule { order: 100; }
.schedule-subtask-list { display: grid; gap: 2px; }
.schedule-subtask-list > header { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: .65px solid var(--v3-rule); }
.schedule-subtask {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: .65px solid var(--v3-rule);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.schedule-subtask > i,
.subtask-done {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 1.5px solid var(--card-color);
  border-radius: 50%;
  background: transparent;
}
.schedule-subtask > i { margin-top: 2px; }
.schedule-subtask > span > strong {
  line-height: 19px;
  overflow-wrap: anywhere;
}
.schedule-subtask.complete > i,
.schedule-subtask.complete > .subtask-done,
.readonly-template-paper li.complete > i,
.readonly-template-paper li.complete .subtask-done {
  background: var(--card-color);
  border-color: var(--card-color);
  box-shadow: none;
}
.schedule-subtask > span { display: grid; gap: 2px; }
.schedule-subtask small { color: var(--muted); font-size: 11px; }
.schedule-subtask.complete strong,
.readonly-template-paper li.complete span { text-decoration: line-through; }
.readonly-template-paper {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: .75px solid color-mix(in srgb, var(--card-color) 50%, transparent);
  background: var(--v3-function);
}
.readonly-template-paper > header,
.readonly-template-paper > section > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.readonly-template-paper > header div,
.readonly-template-paper > section > header div { display: grid; }
.readonly-template-paper time,
.readonly-template-paper small { color: var(--muted); font-size: 10px; }
.readonly-template-paper > section > header { justify-content: flex-start; }
.readonly-template-paper > section > header > b { color: var(--card-color); font-size: 18px; }
.readonly-template-paper ul { display: grid; gap: 0; margin: 8px 0 0; padding: 0; list-style: none; }
.readonly-template-paper li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 9px 0; border-bottom: .65px solid var(--v3-rule); }
.readonly-template-paper li > .subtask-done { margin-top: 2px; }
.readonly-template-paper li > span {
  min-width: 0;
  line-height: 19px;
  overflow-wrap: anywhere;
}
.readonly-template-paper li > b {
  min-height: 19px;
  display: inline-flex;
  align-items: center;
}
.schedule-attachments { display: flex; flex-wrap: wrap; gap: 7px; }
.schedule-attachments strong { flex: 0 0 100%; }
.schedule-attachments span { max-width: 220px; padding: 6px 10px; border-radius: 10px; background: var(--v3-interactive); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.schedule-attachments button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 240px);
  min-height: 34px;
  padding: 2px 7px;
  border: .65px solid var(--v3-rule);
  border-radius: 10px;
  background: var(--v3-interactive);
  color: var(--ink);
  text-align: left;
}
.schedule-attachments button span { padding: 0; background: transparent; }
.schedule-attachments button small { color: var(--muted); font-size: 9px; }
.attachment-preview-dialog {
  width: min(1120px, calc(100% - 28px));
  height: min(90vh, 920px);
  padding: 0;
  border: 0;
  border-radius: var(--v3-panel-radius);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.attachment-preview-dialog > header,
.attachment-preview-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: .65px solid var(--v3-rule);
  background: var(--surface);
}
.attachment-preview-dialog > header > div { display: grid; }
.attachment-preview-dialog > header small { color: var(--muted); }
.attachment-preview-dialog > header button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--mist); color: var(--ink); font-size: 22px; }
.attachment-preview-dialog > div { height: calc(100% - 122px); overflow: auto; background: color-mix(in srgb, var(--ink) 4%, var(--paper)); }
.attachment-preview-dialog iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.attachment-preview-dialog img { display: block; max-width: 100%; height: auto; margin: auto; }
.attachment-preview-dialog > footer { justify-content: flex-end; border-top: .65px solid var(--v3-rule); border-bottom: 0; }
.attachment-preview-dialog > footer a { padding: 9px 15px; border-radius: 18px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 750; }
.done {
  flex: 0 0 auto;
}
button.done::before { background: transparent; }
button.done.complete::before { background: currentColor; }
.completed {
  text-decoration-thickness: 1px !important;
  text-decoration-color: currentColor !important;
}
.readonly-template-paper li.other-date-task > span > strong,
.schedule-subtask.other-date-task > span > strong,
.weekly-card-subtasks li.other-date-task > span,
.occurrence-task.other > span {
  color: color-mix(in srgb, var(--ink) 34%, transparent) !important;
}

/* Log navigation mirrors the Android bottom period switcher. */
.manage-subnav,
.manage-subnav:not([hidden]) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 5px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--paper)) !important;
}
.planner-mode-nav .manage-subnav button {
  min-height: 38px;
  border-radius: 999px !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  text-decoration: none !important;
}
.planner-mode-nav .manage-subnav button.active {
  background: var(--accent) !important;
  color: #fff !important;
}

/* Desktop keeps the three log destinations as a quiet vertical list below 日志. */
@media (min-width: 701px) {
  .planner-mode-nav .manage-subnav,
  .planner-mode-nav .manage-subnav:not([hidden]) {
    grid-template-columns: 1fr !important;
    gap: 1px !important;
    width: auto !important;
    margin: 0 0 5px 40px !important;
    padding: 2px 0 3px 9px !important;
    border: 0 !important;
    border-left: 1px solid var(--v3-rule) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  .planner-mode-nav .manage-subnav button,
  .planner-mode-nav .manage-subnav button.active {
    min-height: 32px !important;
    justify-content: flex-start !important;
    padding: 5px 9px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--muted) !important;
    text-align: left !important;
  }
  .planner-mode-nav .manage-subnav button.active {
    color: var(--accent) !important;
    font-weight: 750 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 4px !important;
  }
}
.log-page-header h1 {
  font-size: 22px !important;
}
body[data-log-tab="manage"] .log-page-header { display: none; }
body[data-log-tab="manage"] .manage-toolbar { margin-top: 8px; }
.android-manage-filters > div {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.android-manage-filters button,
.android-manage-filters select {
  min-height: 38px;
  font-size: 13px !important;
}

/* Board composer: Android V3 keeps the three optional filters on one quiet row. */
.board-filter-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-bottom: .65px solid var(--v3-rule);
}
.board-filter-buttons button {
  min-height: 42px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: color-mix(in srgb, var(--ink) 68%, transparent) !important;
}
.board-filter-buttons button.active {
  color: var(--accent) !important;
  box-shadow: inset 0 -2px var(--accent);
}
.board-filter-buttons button:disabled { opacity: .38; }
.board-tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 64px;
  align-content: start;
}
.board-tag-picker button {
  min-height: 38px;
  padding: 7px 13px;
  border: .65px solid var(--v3-rule);
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
}
.board-tag-picker button.selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
}
.board-picker-dialog,
.board-picker-dialog > section {
  background: var(--surface) !important;
  color: var(--ink) !important;
}
.board-picker-dialog header button { background: var(--mist) !important; color: var(--ink); }
.board-calendar-grid button { color: var(--ink) !important; }
.board-calendar-grid button.today { background: color-mix(in srgb, var(--secondary) 15%, var(--surface)) !important; }
.board-calendar-grid button.selected { background: color-mix(in srgb, var(--accent) 20%, var(--surface)) !important; color: var(--accent) !important; }
.board-category-picker button { background: transparent !important; color: var(--ink) !important; }

/* Settings: fixed summary through seven-day rhythm; detailed achievements fold below. */
.settings-achievements > h2 {
  margin: 0;
  padding: 0 2px 8px;
  font-size: 22px;
}
.achievement-more {
  border-top: .65px solid var(--v3-rule);
}
.achievement-more > summary {
  padding: 13px 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}
.achievement-more > .achievement-badges,
.achievement-more > .achievement-totals { margin-top: 10px; }

/* Template-enabled subtasks use the same paper hierarchy as the main editor. */
.subtask-resource-row { align-items: end; }
.editor-existing-attachments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.editor-existing-attachments > small { flex: 0 0 100%; color: var(--muted); }
.editor-existing-attachments > .editor-attachment-tile { position:relative; display:block; width:96px; max-width:96px; overflow:visible; border:0; background:transparent; }
.editor-attachment-preview { display:grid; grid-template-rows:64px auto; gap:5px; width:96px; min-height:0; padding:0; border:0; background:transparent; color:inherit; text-align:center; }
.editor-attachment-preview > .attachment-thumbnail,.editor-attachment-preview > .attachment-file-icon { display:block; width:96px; height:64px; overflow:hidden; border:1px solid var(--line); border-radius:12px; object-fit:cover; background:var(--surface); }
.editor-attachment-preview > small { display:block; width:96px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; line-height:15px; color:var(--muted); }
.editor-existing-attachments .delete-existing-attachment { position:absolute; top:-7px; right:-7px; display:grid; place-items:center; width:24px; height:24px; min-height:24px; padding:0; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--ink); font-size:17px; line-height:1; z-index:2; }
.subtask-template-fields:empty { display: none; }
.subtask-template-paper {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: .75px solid color-mix(in srgb, var(--accent) 48%, transparent);
  background: var(--v3-function);
}
.subtask-template-paper > header > div,
.subtask-template-paper > section { display: grid; gap: 8px; }
.subtask-template-paper > header small,
.subtask-template-paper > section header small { display: block; color: var(--muted); font-size: 10px; }
.subtask-template-paper > section > header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: .65px solid var(--v3-rule);
}
.subtask-template-paper > section > header b { color: var(--accent); font-size: 18px; }
.subtask-template-paper textarea { min-height: 58px !important; }
.subtask-template-quantity { grid-template-columns: auto minmax(80px, 140px); align-items: center; }
.editor-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.editor-tag-chips button {
  padding: 6px 10px;
  border: .65px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent);
}
.editor-tag-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.editor-tag-compose button {
  min-width: 82px;
  border: 0;
  border-radius: var(--v3-control-radius);
  background: var(--accent);
  color: #fff;
  font-weight: 750;
}

/* Secondary pages use the same surface and title hierarchy, only wider on Web. */
dialog > form,
.board-detail-dialog > section,
.board-picker-dialog > section,
.settings-detail-page {
  background: var(--paper);
}
.board-detail-header,
.settings-detail-header,
#editor form > header {
  border-bottom: .65px solid var(--v3-rule) !important;
}
.board-detail-dialog > section {
  min-height: 100%;
  padding: 22px 20px 18px !important;
  grid-template-rows: auto auto minmax(240px, 1fr) auto !important;
}
.board-detail-dialog .board-detail-header {
  grid-template-columns: auto minmax(0, 1fr) !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
}
.board-detail-dialog .board-table-wrap {
  display: block !important;
  min-height: 240px;
  max-width: 100%;
  overflow: auto !important;
}
.board-detail-dialog .board-table { min-width: 900px; }
.board-builder-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
}
.board-builder-actions .board-preview-entry { min-width: 0; }
.board-clear-selection {
  min-width: 84px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 750;
}
.board-clear-selection:hover { background: var(--accent-soft); }
.board-subtask-row td:first-child { padding-left: 30px; }
.board-subtask-row td:first-child span { font-weight: 700; }
.board-subtask-row.complete td:first-child span { text-decoration: line-through; }

/* 2026-08-21 Android V3 parity: one responsive interaction and surface language. */
.mode-cover > div > strong {
  font-size: clamp(27px, 2vw, 34px) !important;
  line-height: 1 !important;
  letter-spacing: -.035em;
}
.mode-cover > div > span {
  margin-top: 7px;
  font-size: 12px !important;
  font-weight: 650;
  letter-spacing: .015em;
}
.cover-emoji-slot {
  display: grid !important;
  place-items: center;
  min-height: 25px;
  margin-bottom: 4px;
  font-size: 21px !important;
  line-height: 25px !important;
  font-style: normal;
}
.cover-emoji-slot[aria-hidden="true"] { visibility: hidden; }

.important-section {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.important-quick {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 52px !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
.important-quick input,
#manageSearch,
#boardSearch {
  min-height: 48px !important;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)) !important;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent-soft)) !important;
  text-align: center !important;
}
.important-quick button {
  min-width: 52px !important;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)) !important;
  background: color-mix(in srgb, var(--surface) 94%, var(--accent-soft)) !important;
}
.important-list { gap: 9px !important; margin-top: 13px !important; }
.important-row { border-radius: 19px !important; background: color-mix(in srgb, var(--surface) 88%, transparent) !important; }
.important-row-main {
  align-items: flex-start !important;
  padding-block: 11px !important;
}
.important-row-main > .important-progress {
  margin-top: 2px;
}
.important-row-main > strong {
  min-width: 0;
  line-height: 21px !important;
  overflow-wrap: anywhere;
}
.important-row-main > .important-source,
.important-row-main > .important-status {
  min-height: 21px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  margin-top: 0;
}
.important-row-main > b {
  height: 21px;
  display: grid;
  place-items: center;
  line-height: 21px;
}
.important-row-main > strong,
.journal-schedule-page h3 {
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

/* Android SP-V4.1 first-line alignment: a wrapped title grows downwards;
   completion and disclosure controls never re-center against its full height. */
.weekly-schedule-card > header { align-items: flex-start !important; }
.weekly-schedule-card > header > .done { margin-top: 2px; }
.weekly-schedule-card > header > .expand-button { margin-top: 0; }
.weekly-schedule-card > header > span > strong {
  white-space: normal;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.timeline-card { align-items: flex-start !important; }
.timeline-card > .done { margin-top: 2px; }
.timeline-card > .expand-button { margin-top: 0; }
.timeline-card > div > strong {
  white-space: normal !important;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.journal-cover > div > strong { font-size: 28px !important; line-height: 1 !important; }
.journal-cover > div > span { margin-top: 7px; font-size: 12px !important; font-weight: 650; }
.journal-important > button {
  display: grid !important;
  grid-template-columns: 12px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 56px !important;
  text-align: left !important;
}
.journal-important > button > span { display: grid; min-width: 0; gap: 2px; }
.journal-important > button > span > b { font-size: 15px; line-height: 1.3; }
.journal-important > button > span > small { color: var(--muted); font-size: 10px; font-weight: 500; }
.journal-important > button > em { color: var(--muted); font-size: 10px; font-style: normal; white-space: nowrap; }

.board-preview-actions {
  grid-template-columns: 1fr !important;
}
.board-preview-actions #createFixedBoard {
  width: 100% !important;
  min-height: 52px !important;
}

.subtask-drag-handle { touch-action: none; cursor: grab; }
.subtask-dragging {
  z-index: 10020 !important;
  max-height: min(70vh, 760px);
  overflow: auto;
  opacity: .97;
  cursor: grabbing;
  box-shadow: 0 20px 50px #2d29252b !important;
  transform: scale(1.008) !important;
}
.subtask-drag-placeholder {
  border: 1px dashed color-mix(in srgb, var(--accent) 52%, var(--line));
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent-soft) 44%, transparent);
}

@media (min-width: 701px) {
  body.sidebar-collapsed:has(#plannerView.active) .planner-view.active {
    grid-template-columns: 92px minmax(0, 1fr) !important;
  }
  body.sidebar-collapsed:has(#plannerView.active) .planner-sidebar {
    width: 92px !important;
    min-width: 92px !important;
    padding-inline: 10px !important;
    overflow: visible !important;
  }
  body.sidebar-collapsed .planner-mode-nav {
    width: 100% !important;
    overflow: visible !important;
  }
  body.sidebar-collapsed .planner-mode-nav > button,
  body.sidebar-collapsed:has(#plannerView.active) .manage-subnav button {
    width: 58px !important;
    max-width: 58px !important;
    margin-inline: auto !important;
    overflow: visible !important;
  }
  body.sidebar-collapsed .manage-subnav:not([hidden]) {
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }
}

/* Settings title shares the same content edge as 成就 and the settings sections. */
#settingsPanel > header {
  width: min(100%, var(--v3-page-max));
  margin-inline: auto;
}
.settings-theme-list { display: grid; gap: 0; border-top: .65px solid var(--v3-rule); }
.settings-theme-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 10px 4px;
  border: 0;
  border-bottom: .65px solid var(--v3-rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.settings-theme-list button.active { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.settings-theme-list button > span { display: grid; }
.settings-theme-list button small { color: var(--muted); font-size: 10px; font-weight: 400; }
.settings-theme-list button > i { display: flex; gap: 6px; }
.settings-theme-list button > i b { width: 15px; height: 15px; border-radius: 50%; }

/* Desktop keeps Android density instead of stretching controls with viewport width. */
@media (min-width: 901px) {
  body[data-period="monthly"] .mode-content { gap: 22px; }
  .month-calendar { padding-block: 18px !important; }
  .month-weekdays,
  .month-cells { gap: 4px !important; }
  .month-cells button,
  .month-cells > span {
    height: 52px !important;
    min-height: 52px;
    aspect-ratio: auto !important;
  }
  .important-quick input,
  .important-quick button { height: 48px !important; }
}

@media (max-width: 900px) {
  :root { --v3-page-gutter: 14px; --v3-unit-gap: 22px; }
  .android-manage-filters > div { grid-template-columns: repeat(5, minmax(54px, 1fr)); overflow-x: auto; }
}

@media (max-width: 700px) {
  .mode-content { padding-inline: 12px; }
  .mode-content > * + *::before { left: 0; width: 100%; }
  .managed-card-head,
  .weekly-schedule-card > header { min-height: 60px; }
  .board-filter-buttons button { min-width: 0; padding-inline: 4px; font-size: 12px; }
}

@media (orientation: landscape) and (max-height: 720px) {
  .board-detail-dialog > section {
    grid-template-rows: auto auto minmax(220px, 1fr) auto !important;
    gap: 10px !important;
  }
  .board-detail-dialog .board-time-axis,
  .board-detail-dialog .board-month-overview { max-height: 150px; }
  .board-detail-dialog .board-table-wrap { min-height: 220px; }
}

.planner-bottom-actions #notificationsButton { position: relative; }
.planner-bottom-actions #notificationBadge { position: absolute; top: 4px; right: 8px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px; display: grid; place-items: center; background: #e84c68; color: white; font-size: 9px; }
.planner-bottom-actions #notificationBadge[hidden] { display: none; }
.notification-center-dialog { width: min(680px, calc(100vw - 28px)); max-height: 92vh; padding: 0; border: 0; border-radius: 28px; background: var(--paper, #fbf7f1); }
.notification-center-dialog::backdrop { background: rgba(20,18,16,.4); }
.notification-center-dialog > section { padding: 22px; }
.notification-center-dialog header { display: grid; grid-template-columns: 48px 1fr 48px 48px; align-items: center; margin-bottom: 22px; }
.notification-center-dialog header h2 { grid-column:2;grid-row:1; margin: 0; text-align: center; }
.notification-center-dialog [data-notification-back] { grid-column:1;grid-row:1; }
.notification-center-dialog [data-notification-read-all] { grid-column:3;grid-row:1;font-size:22px;color:var(--accent); }
.notification-center-dialog [data-notification-close] { grid-column:4;grid-row:1; }
.notification-group { border:1px solid var(--line);border-radius:16px;margin:12px 0;overflow:hidden; }
.notification-group > summary { padding:16px;font-weight:600;cursor:pointer; }
.plan-delete-confirmation { width:min(440px,calc(100vw - 40px));padding:24px;border:0;border-radius:24px;background:var(--paper,#fbf7f1); }
.plan-delete-confirmation::backdrop { background:rgba(20,18,16,.4); }
.plan-delete-confirmation h2 { margin-top:0; }
.plan-delete-confirmation p { line-height:1.6; }
.notification-group .notification-list { padding:0 12px 12px;max-height:42vh;overflow:auto; }
.notification-read-all { font-size:24px;line-height:1;min-width:48px;min-height:48px; }
.notification-center-dialog header button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; font-size: 30px; }
.notification-list { display: grid; gap: 14px; }
.notification-list > button { display: grid; grid-template-columns: 10px 1fr 20px; gap: 12px; align-items: center; padding: 18px; border: 1px solid rgba(60,50,40,.1); border-radius: 22px; background: white; text-align: left; }
.notification-swipe-row{position:relative;overflow:hidden;border-radius:22px;background:color-mix(in srgb,var(--accent) 8%,var(--surface));min-height:78px}.notification-row-actions{position:absolute;inset:0 0 0 auto;width:144px;display:grid;grid-template-columns:1fr 1fr}.notification-row-actions button{border:0;background:transparent;font-weight:750;color:var(--accent)}.notification-row-actions button:last-child{color:#b53b43}.notification-swipe-content{position:relative;width:100%;min-height:78px;display:grid;grid-template-columns:10px 1fr 20px;gap:12px;align-items:center;padding:18px;border:1px solid rgba(60,50,40,.1);border-radius:22px;background:white;text-align:left;touch-action:pan-y;transition:transform .18s ease;z-index:1}
.notification-list i { width: 8px; height: 8px; border-radius: 50%; background: #e84c68; }.notification-list i.read { background: transparent; }
.notification-list span { display: grid; gap: 5px; }.notification-list small { color: #777; }
.notification-message-card,.notification-schedule-card { margin-bottom: 20px; padding: 22px; border: 1px solid rgba(60,50,40,.1); border-radius: 24px; background: white; }
.notification-message-card strong { font-size: 22px; }.notification-message-card p { margin: 16px 0 0; line-height: 1.65; }
.notification-schedule-card dl { display: grid; gap: 10px; }.notification-schedule-card dl div { display: grid; grid-template-columns: 72px 1fr; }.notification-schedule-card dt { color: #888; }.notification-schedule-card dd { margin: 0; }
.notification-schedule-card h4 { display: flex; justify-content: space-between; border-top: 1px solid #eee; padding-top: 14px; }.notification-schedule-card ul { padding: 0; list-style: none; }.notification-schedule-card li { padding: 6px 0; }.notification-schedule-card li.done { opacity: .55; text-decoration: line-through; }
.notification-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.notification-actions button { min-height: 56px; border-radius: 999px; }
.notification-empty { padding: 40px 20px; text-align: center; color: #888; }

/* SP-V4.1 schedule parity: avoid clipping, keep first-line alignment. */
.planner-sidebar:has(.sidebar-new-plan) { grid-template-rows: auto auto auto minmax(80px,1fr) auto auto !important; }
.sidebar-new-plan { width: 100%; border: 0; border-radius: 999px; min-height: 52px; background: var(--accent); color: white; font-size: 17px; font-weight:800; }

.schedule-card > header .done,.daily-schedule-card > header .done,.weekly-schedule-card > header .done { transform:scale(.81); transform-origin:center; }
.template-row-review,.subtask-reflection { color:var(--category-color,var(--accent)) !important; }
#addButton.sidebar-new-plan { position: static; background: var(--accent) !important; color: white !important; opacity: 1; }
.sidebar-collapsed .sidebar-new-plan span { display: none; }
.sidebar-collapsed .planner-bottom-actions { grid-row: auto; grid-template-columns: 1fr; }
body:not(.sidebar-collapsed):has(#plannerView.active) .planner-view.active { grid-template-columns: 300px minmax(0,1fr); }
.planner-bottom-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.planner-bottom-actions button { min-width: 0; padding-inline: 4px; }
.planner-bottom-actions #notificationBadge { background: transparent; color: var(--accent); min-width: 0; height: auto; padding: 0; top: 0; right: 5px; font-size: 9px; line-height: 11px; }
.schedule-edit-history { font-size: 12px; color: var(--muted); }
.schedule-edit-history article { margin-top: 8px; }
.schedule-edit-history small { display: block; }
.schedule-edit-history p { margin: 3px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 12px; }
.nested-template-paper { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; }
.nested-template-paper header { font-weight: 700; margin-bottom: 12px; }
.nested-record-row { display:flex; align-items:flex-start; gap:10px; margin:12px 0; }
.nested-record-row>textarea { flex:1; min-width:0; width:auto!important; }
.nested-record-row>[data-nested-quantity] { width:72px!important; flex:0 0 72px; }
.nested-record-row>input[type=checkbox] { width:18px; height:18px; flex:0 0 18px; margin-top:12px; }
.nested-record-row>button { flex:0 0 32px; }
[data-nested-add] { color:var(--accent); margin:8px 0 20px; }
.nested-readonly-row { display:flex; align-items:flex-start; gap:9px; margin:10px 0; line-height:1.5; }
.nested-readonly-row>span { flex:1; min-width:0; overflow-wrap:anywhere; }
.nested-template-paper p,.template-row-note { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.readonly-template-paper li > span { min-width: 0; flex: 1; }
.schedule-attachments img { display: block; width: 100%; max-height: 320px; object-fit: contain; border-radius: 16px; margin-bottom: 10px; }
.schedule-expanded-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.schedule-expanded-body .schedule-expanded-actions .edit-schedule { order: 0; }
.schedule-expanded-actions [data-share-schedule] { order: 1; }
.schedule-expanded-actions [data-managed-delete] { order: 2; }
.managed-card.expanded > .managed-delete { display: none; }
.template-item .subtask-row { min-width: 0; margin: 0; width: 100%; }
.template-item .subtask-row textarea { width: 100%; min-width: 0; }
.template-item .subtask-row-head { display: flex; align-items: center; gap: 8px; }
.template-item .subtask-row-head > input { flex: 1; min-width: 0; }
.template-item .subtask-row > label:has([data-template-quantity]) { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }
.template-item [data-template-quantity] { width: 80px; }
.timeline-block { max-width: calc(100% - 8px); box-sizing: border-box; }
.timeline-card { max-width: 100%; box-sizing: border-box; background: color-mix(in srgb,var(--category-color,var(--accent)) 90%, transparent) !important; }
.timeline-card > div { min-width: 0; overflow-wrap: anywhere; }

/* r29: a Daily detail uses the full template height, not a 216px viewport. */
.timeline-block.expanded .timeline-details { height:auto; max-height:none; overflow:visible; box-sizing:border-box; }
.readonly-template-paper { border:1px solid var(--v3-rule); border-radius:18px; padding:20px; }
.readonly-template-paper > header strong { font-size:20px; line-height:28px; font-weight:800; }
.readonly-template-paper > section > header strong { font-size:16px; line-height:26px; }
.readonly-template-paper > section > header { border-bottom:1px solid color-mix(in srgb,var(--card-color,var(--accent)) 45%,transparent); padding:14px 0; gap:12px; align-items:center; }
.readonly-template-paper > section > header > b:empty { display:none; }
.readonly-template-paper li { border-bottom:0; padding:12px 0; }
.readonly-template-paper li > span > strong { font-weight:500; line-height:24px; }
.readonly-template-paper li > .subtask-done { margin-top:3px; }
.nested-template-paper { padding:16px; border-color:color-mix(in srgb,var(--card-color,var(--accent)) 28%,transparent); background:var(--v3-function); }
.nested-template-paper > header { display:flex; justify-content:space-between; align-items:flex-start; border-bottom:2px solid var(--muted); padding-bottom:12px; gap:12px; }
.nested-template-paper > header > strong { font-size:20px; line-height:1.4; font-weight:800; }
.nested-template-paper .nested-section-title { display:flex; align-items:center; gap:16px; padding:16px 0 12px; border-bottom:1px solid color-mix(in srgb,var(--card-color,var(--accent)) 45%,transparent); }
.nested-section-title > b { color:var(--card-color,var(--accent)); font-size:22px; line-height:26px; min-width:28px; }
.nested-section-title > strong { font-size:16px; line-height:26px; }
.nested-readonly-row { padding:6px 8px; gap:10px; line-height:24px; color:var(--muted); }
.nested-readonly-row > .nested-completion { box-sizing:border-box; width:16px; height:16px; flex:0 0 16px; margin-top:4px; border:2px solid color-mix(in srgb,var(--card-color,var(--accent)) 55%,transparent); border-radius:50%; }
.nested-readonly-row > .nested-completion.checked { background:var(--card-color,var(--accent)); }
.nested-readonly-row > b { color:var(--card-color,var(--accent)); line-height:24px; }
.nested-entity-children { margin:8px 0 12px 28px; padding:12px; border:1px solid var(--v3-rule); border-radius:16px; }
.schedule-subtask-branch .schedule-subtask { display:flex; align-items:flex-start; gap:9px; }
.schedule-subtask > span { flex:1; min-width:0; }
.subtask-template-paper > section { padding:12px 0 18px; }
.subtask-template-paper > section > header { justify-content:flex-start; align-items:center; gap:16px; border-bottom:1px solid var(--v3-rule); padding-bottom:12px; }
.nested-record-row textarea { min-height:44px; line-height:24px; }
.notification-read-all { display:block; margin:0 0 20px auto; border:1px solid var(--line); color:var(--accent); border-radius:999px; padding:10px 18px; background:transparent; }
.notification-read-all:disabled { opacity:.45; }
.schedule-edit-history article { margin-top:10px; }
.schedule-edit-history details > summary { cursor:pointer; color:var(--accent); margin-top:12px; }
.category-quick-bar, .period-center-header, #categoryQuickBar { background: var(--paper); }
.calendar-category-dots { display: flex !important; justify-content: center; gap: 3px; min-height: 7px; }
.calendar-category-dots i { display: block; width: 5px; height: 5px; border: 0; border-radius: 50%; }
.month-cells button.today { background: transparent !important; }
.month-cells button.today>b,.week-dots button.today>small { background: var(--accent); color: white; border-radius: 999px; padding: 4px 8px; }
.split-week-dates .today>strong { border-radius: 999px; background: var(--accent); color: white; }
@media(max-width:800px) {
  body:not(.sidebar-collapsed):has(#plannerView.active) .planner-view.active { grid-template-columns: 100px minmax(0,1fr); }
  .planner-bottom-actions { gap: 4px; }
  .planner-bottom-actions button span { display: none; }
}
/* r30: shared editor radius tiers; compact fields with content-driven growth. */
#scheduleForm { --editor-card-radius:28px; --editor-item-radius:22px; --editor-field-radius:20px; }
#scheduleForm .editor-section { border-radius:var(--editor-card-radius); }
#scheduleForm .subtask-row, #scheduleForm .android-template-paper, #scheduleForm .subtask-template-paper { border-radius:var(--editor-item-radius); }
#scheduleForm input:not([type=checkbox]):not([type=file]), #scheduleForm select, #scheduleForm textarea { border-radius:var(--editor-field-radius)!important; padding:10px 14px; line-height:24px; }
#scheduleForm textarea { min-height:44px!important; height:44px; box-sizing:border-box; resize:vertical; overflow-y:auto; }
#scheduleForm .subtask-optional { margin:8px 0; padding:8px 12px; border-radius:var(--editor-item-radius); }
#scheduleForm .subtask-optional > label { display:flex; flex-direction:column; align-items:stretch; gap:6px; margin-top:8px; }
#scheduleForm .subtask-optional textarea { width:100%; }
#scheduleForm .nested-record-row { margin:8px 0; gap:8px; }
#scheduleForm .nested-record-row { flex-wrap:wrap; }
#scheduleForm .nested-item-description { flex:0 0 calc(100% - 26px); margin-left:26px; border-radius:var(--editor-item-radius); }
#scheduleForm .nested-item-description summary { cursor:pointer; color:var(--accent); padding:6px 10px; }
#scheduleForm .nested-item-description textarea { width:100%; box-sizing:border-box; }
#scheduleForm button:not([data-remove-subtask]):not([data-nested-remove]) { border-radius:999px; }
#scheduleForm .subtask-row[data-details-expanded="false"] > :not(.subtask-row-head):not(label:has([data-template-quantity])) { display:none!important; }
#scheduleForm [data-toggle-task-details] { width:36px; height:36px; padding:0; flex:0 0 36px; font-size:22px; }
#scheduleForm .compact-plan-title { display:flex;flex-direction:row;align-items:center;gap:8px; }
#scheduleForm .compact-plan-title textarea { flex:1;min-width:0; }
#scheduleForm .editor-title-description[data-details-expanded="false"] > .editor-optional-buttons,
#scheduleForm .editor-title-description[data-details-expanded="false"] > .editor-optional-field { display:none!important; }

/* r35: shared attachment rows and compact, wrapping edit history. */
.schedule-attachments { display:grid; grid-template-columns:minmax(0,1fr); grid-auto-rows:auto; align-content:start; height:auto; min-height:min-content; }
.schedule-attachments > strong { grid-column:1; flex:none; }
.schedule-attachments > button { display:grid; grid-template-columns:minmax(0,min(120px,40%)) minmax(0,1fr); width:100%; min-width:0; min-height:0; padding:0; gap:12px; overflow:hidden; border:0; border-radius:0; background:transparent; }
.schedule-attachments > button > .attachment-thumbnail, .schedule-attachments > button > .attachment-file-icon { grid-column:1; grid-row:1 / span 2; width:100%; height:auto; aspect-ratio:3 / 2; max-height:none; margin:0; border:1px solid var(--line); border-radius:12px; object-fit:cover; }
.attachment-file-icon { display:grid; place-items:center; background:var(--v3-interactive); font-style:normal; font-size:28px; color:var(--muted); }
.schedule-attachments > button > span { grid-column:2; min-width:0; max-width:none; padding:6px 12px 6px 0; white-space:normal; overflow-wrap:anywhere; font-size:12px; }
.schedule-attachments > button > small { grid-column:2; padding:0 12px 6px 0; }
.schedule-edit-history article { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:8px; }
.schedule-edit-history article small { flex:0 1 auto; }
.schedule-edit-history article p { flex:0 1 auto; margin:0; overflow-wrap:anywhere; }
.timeline-block, .timeline-card, .managed-card, .schedule-card, .weekly-schedule-card, .journal-schedule-page { border-radius:22px !important; }
.schedule-location p, .schedule-collaborator-names p { white-space:pre-wrap; overflow-wrap:anywhere; }
.collaborative-card { position:relative; overflow:hidden; }
.collaborative-card::before,.collaborative-card::after { content:""; position:absolute; left:0; right:0; height:6px; pointer-events:none; background:linear-gradient(to right,var(--category-me) 0 25%,var(--category-family) 25% 50%,var(--category-friend) 50% 75%,var(--category-work) 75%); }
.collaborative-card::before { top:0; }
.collaborative-card::after { bottom:0; }
.cross-date-card:not(.collaborative-card) { position:relative; overflow:hidden; }
.cross-date-card:not(.collaborative-card)::before,.cross-date-card:not(.collaborative-card)::after { content:""; position:absolute; left:0; right:0; height:5px; pointer-events:none; background:var(--schedule-ribbon-color,var(--accent)); }
.cross-date-card:not(.collaborative-card)::before { top:0; }
.cross-date-card:not(.collaborative-card)::after { bottom:0; top:auto; }
.collaboration-invite { display:flex; gap:10px; align-items:center; }
.collaboration-invite input { min-width:0; flex:1; }
.collaboration-invite button { flex:none; min-width:72px; }
.collaboration-summary,.collaboration-pending { overflow-wrap:anywhere; }

/* Visible metadata only; same labels are used by exported cards. */
.schedule-meta-icons{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px;padding:12px 0 0;border:0}.schedule-meta-icons span.active{display:inline-flex;align-items:center;gap:5px;width:auto;height:auto;background:transparent;color:var(--muted,#777)}.schedule-meta-icons small{font-size:12px;white-space:nowrap}.schedule-meta-icons svg{width:18px;height:18px}

html[lang^="en"] .occurrence-reference::after{content:"Cross-date"}

.account-wordmark .brand-mark{border-radius:50%;background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:var(--accent);font-size:13px;font-weight:800}.account-wordmark .brand-mark img{width:100%;height:100%;object-fit:cover}.account-wordmark strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#addButton.sidebar-new-plan{height:52px!important;min-height:52px!important;max-height:52px!important;align-self:end!important;border-radius:999px!important}.timeline-section .section-title small{display:none}.settings-detail-header>button,.board-detail-header>button{font-weight:900;text-align:center}.board-category-picker+*{font-weight:700}.account-wordmark .brand-mark{width:36px;height:36px}.account-wordmark{align-items:flex-start!important}.account-wordmark strong{font-size:18px!important}.board-plan-link{border:0;background:transparent;padding:0;color:inherit;text-align:left;cursor:pointer}.board-delete-plan{width:30px;height:30px;border:0;border-radius:50%;background:color-mix(in srgb,#c43d31 10%,transparent);color:#a83229;font-size:20px}

.public-wordmark{display:flex;align-items:center;gap:9px}.public-wordmark img{width:34px;height:34px;object-fit:contain}.public-wordmark strong{font-size:20px}.back-to-board{margin:0 0 12px;border:0;border-radius:999px;padding:9px 16px;background:var(--accent-soft);color:var(--accent);font-weight:800}

.account-wordmark .account-name-block{display:grid;min-width:0;text-align:left}.account-wordmark .account-name-block small{color:var(--muted);font-size:11px;font-weight:500}.account-wordmark .brand-mark{width:42px!important;height:42px!important}.sidebar-brand{grid-template-columns:minmax(0,1fr) 34px!important}
