:root {
  --bg: #f6f8fa;
  --surface: #fff;
  --ink: #1d2e2a;
  --muted: #667773;
  --line: #e6ece9;
  --green: #157a59;
  --green-dark: #0d6045;
  --green-soft: #eaf5ef;
  --amber: #98621b;
  --amber-soft: #fff5e5;
  --red: #b14440;
  --red-soft: #fff0ef;
  --radius: 12px;
  --shadow: 0 10px 32px #102d2112;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #4ba78788;
}
input,
textarea {
  border: 1px solid #d9e3dd;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  min-width: 0;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #157a5910;
}
input::placeholder,
textarea::placeholder {
  color: #8a9792;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--green);
  box-shadow: none;
}
input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 130px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 18px;
  font-weight: 650;
}
h3 {
  font-size: 17px;
}
h4 {
  font-size: 13px;
  font-weight: 600;
}
a {
  color: var(--green);
}
.muted,
.hint {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.hint {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 6px;
}
.required {
  color: var(--red);
  padding-left: 2px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition:
    background 0.18s,
    border-color 0.18s;
}
.button.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 2px 3px #0d60451a;
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.secondary {
  background: var(--surface);
  border-color: #dce5df;
  color: #3c5148;
}
.button.secondary:hover {
  background: #f2f7f4;
  border-color: #b4cbbd;
}
.button.wide {
  width: 100%;
}
.plus {
  font-size: 23px;
  line-height: 18px;
  font-weight: 400;
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
}
.text-button:hover {
  text-decoration: underline;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.neutral {
  color: #60756a;
  background: #edf1ed;
}
.badge.green {
  background: var(--green-soft);
  color: var(--green);
}
.badge.amber {
  color: var(--amber);
  background: var(--amber-soft);
}
.badge.red {
  color: var(--red);
  background: var(--red-soft);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34936c;
  margin-right: 6px;
  flex-shrink: 0;
}
.status-dot.error {
  background: var(--red);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 20;
  background: white;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 226px;
  background: #fff;
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  padding-left: 8px;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 4px;
}
.nav-label {
  margin: 44px 12px 12px;
  font-size: 11px;
  color: #8a9890;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  border: 0;
  background: none;
  color: #64756b;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
  min-height: 46px;
}
.nav-item:hover {
  background: #f6f8f6;
}
.nav-item.active {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}
.nav-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.nav-count {
  margin-left: auto;
  border-radius: 4px;
  background: #d6ebdf;
  min-width: 21px;
  text-align: center;
  font-size: 10px;
  padding: 0 3px;
}
.config-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: #d5a04a;
  border-radius: 50%;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 10px 0;
}
.official-mark {
  display: flex;
  align-items: flex-start;
  background: #f6f9f7;
  padding: 13px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: #496355;
  gap: 2px;
}
.official-mark .status-dot {
  margin-top: 6px;
}
.official-mark small {
  display: block;
  color: #8b988f;
  font-size: 10px;
  margin-top: 2px;
}
.sidebar-bottom > .text-button {
  color: #7e8b83;
  font-size: 11px;
  margin-top: 18px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.workspace {
  margin-left: 226px;
  width: calc(100% - 226px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: 72px;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 12px;
  color: #7f8c86;
}
.breadcrumb span {
  margin: 0 14px;
  color: #c3cdc6;
}
.breadcrumb strong {
  color: #3d5147;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #829088;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.avatar {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #497761;
  background: #edf4ee;
  font-size: 11px;
}
.main {
  padding: 34px 40px 20px;
  max-width: 1550px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 27px;
}
.page-heading h1 + p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 9px;
}
.page-heading > .button {
  margin-top: 12px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f0f7f3;
  border: 1px solid #dcebe1;
  border-radius: 9px;
  padding: 16px 18px;
  margin-bottom: 25px;
}
.notice-icon {
  width: 19px;
  height: 19px;
  border: 1.5px solid #5d9275;
  color: #4a8267;
  font-weight: 600;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 13px;
  flex-shrink: 0;
}
.notice strong {
  font-size: 12px;
  font-weight: 600;
  color: #3b654e;
}
.notice p {
  font-size: 11px;
  line-height: 1.8;
  color: #6a8273;
  margin-top: 3px;
}
.notice .badge {
  margin-left: auto;
  background: #e3eee6;
  color: #5b7766;
}
.notice.compact p {
  margin: 0;
}
.setup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--amber-soft);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 22px;
  font-size: 12px;
  color: #7c632f;
  gap: 14px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  padding: 20px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6e7f74;
  font-size: 12px;
}
.mini-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  border-radius: 7px;
  color: var(--green);
  font-size: 20px;
}
.mini-icon.amber {
  color: #b88b42;
  background: #fcf4e7;
}
.stat-value {
  font-size: 35px;
  line-height: 1.5;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin: 7px 0;
  color: #263c30;
  letter-spacing: -1px;
}
.stat-value small {
  font-size: 11px;
  color: #8a978e;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 8px;
}
.stat-caption {
  font-size: 11px;
  color: #8a978e;
}
.stat-value.next-time {
  font-size: 25px;
  line-height: 1.8;
  letter-spacing: -0.5px;
  min-height: 52px;
}
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-toolbar {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.card-toolbar h2 {
  font-size: 14px;
}
.card-toolbar h2 .muted {
  font-size: 11px;
  font-weight: 400;
  margin-left: 8px;
}
.filter-tabs {
  display: flex;
  gap: 20px;
  align-items: center;
}
.filter {
  background: none;
  border: 0;
  color: #829087;
  padding: 4px 0;
  font-size: 12px;
  white-space: nowrap;
}
.filter.active {
  color: var(--green);
  font-weight: 600;
}
.filter span {
  font-size: 10px;
  color: #8b9d91;
  margin-left: 4px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 0 10px;
  border-radius: 6px;
  width: 205px;
  background: #fcfdfc;
}
.search-box svg {
  width: 15px;
  height: 15px;
  color: #a0aaa3;
}
.search-box input {
  padding: 7px 0;
  width: 100%;
  font-size: 11px;
  border: 0;
  background: none;
  box-shadow: none;
}
.table-scroll {
  overflow: auto;
}
.task-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.task-table th {
  background: #fcfdfc;
  text-align: left;
  padding: 12px 18px;
  color: #829087;
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.task-table th:first-child,
.task-table td:first-child {
  padding-left: 22px;
}
.task-table td {
  padding: 20px 18px;
  border-bottom: 1px solid #edf1ee;
  vertical-align: middle;
  color: #506457;
}
.task-table tr:last-child td {
  border-bottom: none;
}
.task-table tbody tr:hover {
  background: #fbfdfb;
}
.task-table .task-title {
  font-size: 13px;
  font-weight: 600;
  color: #304b39;
  margin-bottom: 4px;
}
.task-table .subline {
  font-size: 11px;
  color: #8a978d;
  margin-top: 4px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.align-right {
  text-align: right !important;
}
.row-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.row-actions button {
  background: none;
  border: 0;
  color: #6a7e6f;
  font-size: 11px;
  padding: 4px 0;
  white-space: nowrap;
}
.row-actions button:hover {
  color: var(--green);
  text-decoration: underline;
}
.row-actions button.danger:hover {
  color: var(--red);
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 5px 0;
  font-size: 11px;
  white-space: nowrap;
  color: #87938b;
}
.toggle-track {
  width: 28px;
  height: 16px;
  border-radius: 10px;
  background: #d5ddd7;
  position: relative;
  flex-shrink: 0;
}
.toggle-track:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px #0002;
  transition: transform 0.15s;
}
.toggle[aria-checked="true"] {
  color: var(--green);
}
.toggle[aria-checked="true"] .toggle-track {
  background: var(--green);
}
.toggle[aria-checked="true"] .toggle-track:after {
  transform: translateX(12px);
}
.empty-state {
  text-align: center;
  padding: 62px 24px 64px;
}
.empty-state h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #3e5545;
}
.empty-state p {
  font-size: 12px;
  color: #8a978e;
  margin-bottom: 23px;
}
.empty-calendar {
  width: 64px;
  height: 66px;
  border: 1.5px solid #c8dfd1;
  background: #f7fbf8;
  border-radius: 10px;
  margin: 0 auto 24px;
  position: relative;
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
}
.empty-calendar:before,
.empty-calendar:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 10px;
  border: 1.5px solid #a5c4b1;
  background: white;
  border-radius: 2px;
  top: -5px;
  left: 15px;
}
.empty-calendar:after {
  left: auto;
  right: 15px;
}
.empty-calendar span {
  position: absolute;
  inset: 17px 0 auto;
  border-top: 1px solid #d9e9df;
}
.empty-calendar b {
  font-size: 27px;
  font-weight: 400;
  color: #92b69f;
  margin-top: 10px;
}
.card-footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px;
  font-size: 10px;
  color: #8b988e;
}
.page-note {
  font-size: 11px;
  color: #929e95;
  margin-top: 18px;
}
.app-footer {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9ba59e;
  font-size: 10px;
}
.app-footer small {
  margin-left: 6px;
  color: #b0b9b3;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
  gap: 36px;
}
.settings-card {
  align-self: start;
}
.settings-form {
  padding: 25px 26px;
}
.field {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field > label,
.field > legend,
.login-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #405647;
  margin-bottom: 8px;
  width: 100%;
}
.field > input,
.field > textarea {
  width: 100%;
  font-size: 13px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 25px;
}
.setup-guide {
  padding: 15px 6px;
}
.setup-guide h2 {
  font-size: 18px;
  margin-bottom: 28px;
}
.setup-guide ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 26px;
}
.setup-guide li {
  display: flex;
  gap: 15px;
}
.setup-guide li > span {
  font-size: 11px;
  color: #9aab9f;
  background: #edf2ee;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.setup-guide strong {
  font-size: 13px;
  font-weight: 600;
  color: #48634f;
}
.setup-guide p {
  font-size: 12px;
  color: #89988c;
  margin-top: 5px;
  line-height: 1.9;
}
.guide-note {
  background: #eef4ef;
  border-radius: 9px;
  padding: 18px;
  margin-top: 32px;
  margin-bottom: 20px;
}
.feedback {
  font-size: 12px;
  border-radius: 7px;
  background: var(--green-soft);
  padding: 12px;
  color: var(--green);
  margin-bottom: 15px;
}
.feedback.error {
  background: var(--red-soft);
  color: var(--red);
}
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 15px;
  box-shadow: 0 30px 100px #17332735;
  color: var(--ink);
  max-height: 92vh;
}
dialog::backdrop {
  background: #16332466;
  backdrop-filter: blur(2px);
}
.task-dialog {
  width: min(920px, calc(100% - 32px));
  overflow: hidden;
}
.task-dialog form {
  display: flex;
  flex-direction: column;
  max-height: calc(92vh - 2px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 23px 28px;
  flex-shrink: 0;
}
.dialog-heading .eyebrow {
  margin-bottom: 3px;
  font-size: 9px;
}
.dialog-heading h2 {
  font-size: 21px;
}
.close-button {
  background: none;
  border: 0;
  color: #8b9990;
  width: 36px;
  height: 36px;
  font-size: 26px;
  border-radius: 7px;
  line-height: 1;
}
.close-button:hover {
  background: #f0f4f0;
}
.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.editor-main {
  padding: 26px 28px 6px;
  min-height: 0;
  overflow: auto;
}
.editor-preview {
  padding: 27px 22px;
  background: #f7faf7;
  border-left: 1px solid var(--line);
  overflow: auto;
}
.editor-preview .eyebrow {
  color: #97a59a;
  font-size: 9px;
}
.editor-preview h3 {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 600;
  word-break: break-word;
}
.preview-time {
  font-size: 32px;
  color: var(--green);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin: 10px 0;
}
.preview-time small {
  font-size: 10px;
  color: #8a9b8f;
  font-weight: 400;
}
.preview-divider {
  border-top: 1px dashed #d6e2d9;
  margin: 22px 0;
}
.editor-preview h4 {
  color: #738477;
  font-size: 11px;
}
.occurrence-list {
  list-style: none;
  margin: 15px 0 24px;
  padding: 0;
  display: grid;
  gap: 13px;
  font-size: 12px;
  color: #5c7461;
  font-variant-numeric: tabular-nums;
}
.occurrence-list li:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border: 1px solid #b2c6b8;
  border-radius: 50%;
  margin-right: 10px;
}
.confirmation-note {
  border: 1px solid #dce8df;
  background: #fff;
  border-radius: 8px;
  padding: 14px 12px;
  font-size: 11px;
  color: #4c7256;
  margin-bottom: 16px;
}
.confirmation-note p {
  color: #91a095;
  font-size: 11px;
  line-height: 1.9;
  margin-top: 6px;
}
.dialog-footer {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 26px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.dialog-footer > span {
  font-size: 11px;
  color: #92a094;
}
.dialog-footer > div {
  display: flex;
  gap: 10px;
}
.segmented {
  display: flex;
  background: #f0f4f1;
  padding: 4px;
  border-radius: 8px;
  gap: 5px;
}
.segmented label {
  position: relative;
  flex: 1;
  text-align: center;
  cursor: pointer;
}
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.segmented span {
  display: block;
  font-size: 12px;
  color: #7f9183;
  padding: 8px;
  border-radius: 6px;
}
.segmented input:checked + span {
  color: var(--green);
  background: white;
  box-shadow: 0 1px 4px #12351e12;
  font-weight: 600;
}
.segmented input:focus-visible + span {
  outline: 2px solid var(--green);
}
.days-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 7px;
  font-size: 11px;
  color: #809286;
}
.day-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.day-option {
  position: relative;
  text-align: center;
  cursor: pointer;
}
.day-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.day-option span {
  display: grid;
  place-items: center;
  min-height: 37px;
  border: 1px solid #e0e8e1;
  border-radius: 6px;
  background: white;
  font-size: 12px;
  color: #75887a;
  transition: background 0.15s;
}
.day-option input:checked + span {
  background: var(--green-soft);
  border-color: #73af8e;
  color: var(--green);
  font-weight: 600;
}
.day-option input:focus-visible + span {
  outline: 2px solid var(--green);
}
.time-input-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}
.time-input-wrap input {
  font-size: 16px;
  min-width: 140px;
  font-variant-numeric: tabular-nums;
}
.time-input-wrap > span {
  font-size: 11px;
  color: #94a096;
}
.input-button {
  display: flex;
  gap: 8px;
}
.input-button input {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}
.input-button .button {
  font-size: 11px;
  padding: 8px 11px;
}
.selected-count {
  float: right;
  font-size: 10px;
  font-weight: 400;
  color: var(--green);
  padding-top: 2px;
}
.group-picker {
  border: 1px solid #dfe7e1;
  border-radius: 7px;
  overflow: hidden;
}
.group-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  background: #fcfdfc;
}
.group-toolbar input {
  border: 0;
  box-shadow: none;
  font-size: 11px;
  flex: 1;
  width: 50%;
  padding: 10px 0;
  background: none;
}
.group-toolbar button {
  font-size: 10px;
  white-space: nowrap;
}
.group-options {
  max-height: 150px;
  overflow: auto;
}
.group-option {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 12px;
  min-height: 39px;
}
.group-option:hover {
  background: #f5faf6;
}
.group-option input {
  margin: 0;
}
.group-option small {
  color: #9aa89e;
  font-size: 9px;
  margin-left: auto;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.group-empty {
  padding: 26px 14px;
  text-align: center;
  font-size: 11px;
  color: #95a398;
}
.text-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #92a195;
  margin-top: 6px;
  gap: 8px;
}
.text-meta .over-limit {
  color: var(--red);
}
.field-error {
  color: var(--red);
  font-size: 12px;
  min-height: 18px;
  margin: 10px 0;
}
.detail-dialog {
  width: min(700px, calc(100% - 32px));
}
.detail-body {
  padding: 25px 28px;
  max-height: 65vh;
  overflow: auto;
}
.detail-summary {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 20px;
}
.detail-summary dt {
  color: #8b9a8f;
}
.detail-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.message-preview {
  white-space: pre-wrap;
  background: #f5f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  max-height: 200px;
  overflow: auto;
  margin: 12px 0 20px;
  word-break: break-word;
}
.detail-group {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.detail-group > span:first-child {
  min-width: 0;
  flex: 1;
}
.confirm-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 26px;
}
.confirm-dialog p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.confirm-dialog .form-actions {
  justify-content: flex-end;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: #294c39;
  color: white;
  border-radius: 9px;
  padding: 13px 20px;
  box-shadow: var(--shadow);
  font-size: 13px;
  max-width: 90vw;
}
.toast.error {
  background: #9c4540;
}
.login-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-intro {
  background: #eaf3ed;
  padding: 55px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 20px;
  font-weight: 650;
  position: absolute;
  top: 50px;
  left: 10%;
}
.login-intro h1 {
  font-size: 48px;
  line-height: 1.5;
  color: #24543b;
  font-weight: 550;
  letter-spacing: -2px;
}
.login-intro > p {
  color: #72917a;
  font-size: 15px;
  line-height: 2;
  margin-top: 22px;
}
.login-foot {
  position: absolute;
  bottom: 45px;
  font-size: 11px;
  color: #8ca993;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-card {
  width: min(350px, 100%);
}
.login-card h2 {
  font-size: 28px;
  margin-bottom: 9px;
}
.login-card > .muted {
  font-size: 13px;
  margin-bottom: 35px;
}
.login-card label {
  font-size: 12px;
}
.login-card input {
  width: 100%;
  font-size: 14px;
}
.login-card .button {
  min-height: 45px;
  justify-content: space-between;
}
.login-help {
  font-size: 11px;
  text-align: center;
  color: #9aa79e;
  margin-top: 25px;
  line-height: 1.9;
}
.login-help code {
  font-size: 10px;
  background: #f3f6f3;
  border-radius: 3px;
  padding: 1px 4px;
}
@media (min-width: 1450px) {
  .main {
    padding-top: 42px;
  }
  .task-table td {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .empty-state {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 196px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand img {
    width: 30px;
  }
  .workspace {
    margin-left: 196px;
    width: calc(100% - 196px);
  }
  .main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .task-table th,
  .task-table td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .notice .badge {
    display: none;
  }
  .task-table {
    min-width: 780px;
  }
  .settings-layout {
    gap: 24px;
  }
  .app-footer {
    padding: 18px 24px;
  }
}
@media (max-width: 780px) {
  .sidebar {
    width: 72px;
    padding: 24px 10px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand span,
  .nav-label,
  .nav-count,
  .config-dot,
  .sidebar-bottom,
  .nav-item > svg + span {
    display: none;
  }
  .sidebar nav {
    margin-top: 35px;
  }
  .nav-item {
    padding: 12px;
    justify-content: center;
    gap: 0;
    font-size: 0;
  }
  .nav-item svg {
    width: 21px;
    height: 21px;
  }
  .workspace {
    margin-left: 72px;
    width: calc(100% - 72px);
  }
  .main {
    padding: 24px 18px;
  }
  .topbar {
    height: 58px;
    padding: 0 18px;
  }
  .topbar-right {
    gap: 10px;
  }
  .topbar-right > span:first-child {
    font-size: 9px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading > .button {
    margin-top: 0;
  }
  .stats-grid {
    gap: 9px;
  }
  .stat {
    padding: 14px 12px;
  }
  .stat-value {
    font-size: 29px;
  }
  .stat-top {
    font-size: 10px;
  }
  .mini-icon {
    display: none;
  }
  .stat-caption {
    font-size: 9px;
  }
  .stat-value.next-time {
    font-size: 19px;
    min-height: 43px;
  }
  .notice {
    padding: 13px;
    margin-bottom: 18px;
  }
  .notice strong {
    font-size: 11px;
  }
  .notice p {
    font-size: 10px;
  }
  .card-toolbar {
    padding: 14px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-box {
    width: 100%;
  }
  .filter-tabs {
    gap: 24px;
  }
  .setup-banner {
    flex-wrap: wrap;
    gap: 0;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .setup-guide {
    padding: 8px;
  }
  .app-footer {
    padding: 18px;
    gap: 10px;
    font-size: 9px;
  }
  .app-footer > span:last-child {
    display: none;
  }
  .dialog-body {
    grid-template-columns: 1fr;
  }
  .editor-main {
    padding: 20px;
  }
  .editor-preview {
    display: none;
  }
  .dialog-heading {
    padding: 20px;
  }
  .dialog-footer {
    padding: 16px 20px;
  }
  .dialog-footer > span {
    display: none;
  }
  .dialog-footer > div {
    width: 100%;
    justify-content: flex-end;
  }
  .task-dialog {
    width: calc(100% - 24px);
  }
  .login-view {
    grid-template-columns: 1fr;
  }
  .login-intro {
    min-height: 250px;
    padding: 100px 30px 35px;
    justify-content: flex-start;
  }
  .wordmark {
    top: 27px;
    left: 30px;
    font-size: 17px;
  }
  .wordmark img {
    width: 33px;
  }
  .login-intro h1 {
    font-size: 29px;
    line-height: 1.4;
    letter-spacing: -1px;
  }
  .login-intro > p,
  .login-foot {
    display: none;
  }
  .login-panel {
    padding: 40px 28px;
  }
  .settings-form {
    padding: 22px;
  }
  .time-input-wrap {
    gap: 10px;
  }
  .detail-body {
    padding: 20px;
  }
  .detail-summary {
    grid-template-columns: 75px 1fr;
  }
}
@media (max-width: 480px) {
  .sidebar {
    width: 56px;
    padding: 20px 6px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .workspace {
    margin-left: 56px;
    width: calc(100% - 56px);
  }
  .main {
    padding: 20px 13px;
  }
  .topbar {
    padding: 0 13px;
  }
  .topbar-right > span:first-child {
    display: none;
  }
  .page-heading h1 + p {
    font-size: 11px;
  }
  .page-heading > .button {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    align-items: center;
    padding: 12px 15px;
  }
  .stat-value {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    line-height: 1.2;
    font-size: 26px;
  }
  .stat-value.next-time {
    font-size: 21px;
    min-height: 0;
  }
  .stat-caption {
    grid-row: 2;
  }
  .stat-top {
    font-size: 11px;
  }
  .notice-icon {
    display: none;
  }
  .notice {
    padding: 12px;
  }
  .empty-state {
    padding: 40px 16px;
  }
  .empty-state h2 {
    font-size: 14px;
  }
  .card-footer {
    font-size: 9px;
    padding: 12px;
  }
  .day-picker {
    gap: 5px;
  }
  .input-button {
    flex-wrap: wrap;
  }
  .input-button input {
    width: 100%;
  }
  .input-button .button {
    width: 100%;
  }
  .time-input-wrap {
    flex-wrap: wrap;
  }
  .settings-form {
    padding: 18px;
  }
  .app-footer {
    padding: 15px;
  }
  .detail-summary {
    font-size: 11px;
  }
}
.identity-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 24px;
  border-bottom: 1px solid #e6eaf0;
  background: #fff;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.identity-strip .hint { margin: 0; }
#wecom-login { margin-bottom: 12px; text-decoration: none; }
#member-sender { width: 100%; margin-top: 8px; padding: 10px; border: 1px solid #d7dfe8; border-radius: 7px; background: #fff; color: inherit; }
.default-owner { flex: 1; margin: 0; padding: 12px; border: 1px solid #d9e3dd; border-radius: 7px; background: var(--green-soft); overflow-wrap: anywhere; }
#task-time { min-width: 170px; padding: 11px 12px; border: 1px solid #d9e3dd; border-radius: 7px; background: var(--green-soft); color: var(--green-dark); }
.toggle:disabled { cursor: default; opacity: 0.65; }
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
