@import url("./system-console.r6.css");
:root {
  --primary: #17644b;
  --primary-dark: #104b38;
  --bg: #f5f7f4;
  --card: #fff;
  --text: #23322c;
  --text-secondary: #718078;
  --border: #e3e9e3;
  --danger: #b74040;
  --warning: #c58d20;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 13px;
  background: var(--card);
  color: var(--text);
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #edf4ed;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.primary:hover {
  background: var(--primary-dark);
}
a {
  color: var(--primary);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #79ba9e;
  outline-offset: 3px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce4dc;
  border-radius: 9px;
  background: var(--card);
  color: var(--text);
  padding: 11px 12px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 10px;
}
h2 {
  font-size: 17px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.7;
}
small,
.muted {
  color: var(--text-secondary);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 16px;
  background: #fcfdfb;
  border-right: 1px solid var(--border);
  z-index: 20;
}
.brand {
  display: block;
  position: relative;
  padding-left: 42px;
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  margin: 0 8px 28px;
  letter-spacing: -0.5px;
}
.brand i {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-content: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  font-style: normal;
}
.brand small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #87968d;
}
.nav-search input {
  font-size: 12px;
  background: #f3f6f1;
  border: 0;
  margin-bottom: 16px;
}
.sidebar nav {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
}
.sidebar nav > a,
.sidebar details > a {
  display: block;
  padding: 10px 13px;
  border-radius: 8px;
  color: #617269;
  font-size: 13px;
  margin: 2px 0;
}
.sidebar details > a {
  padding-left: 23px;
}
.sidebar a.active {
  background: #e0ede2;
  color: #174d38;
  font-weight: 700;
}
.sidebar a:hover {
  background: #edf3eb;
}
.sidebar summary {
  cursor: pointer;
  color: #8c9a91;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 17px 12px 6px;
  text-transform: uppercase;
}
.sidebar footer {
  padding: 15px 4px 0;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.profile {
  display: flex;
  gap: 9px;
  align-items: center;
}
.profile > span {
  display: grid;
  place-content: center;
  background: #e0eee4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--primary);
  font-weight: 700;
}
.profile > div {
  flex: 1;
  min-width: 0;
}
.profile strong,
.profile small {
  display: block;
  font-size: 12px;
}
.profile small {
  font-size: 10px;
  margin-top: 3px;
}
.profile button {
  padding: 5px;
  border: 0;
  background: none;
}
#syncBadge {
  font-size: 10px;
  padding: 9px 0 0;
  color: var(--primary);
}
#syncBadge[data-status="offline"],
#syncBadge[data-status="unauth"] {
  color: var(--danger);
}
.content {
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 16px 36px;
  background: #f5f7f4eb;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.topbar > div {
  flex: 1;
}
.topbar .eyebrow {
  font-size: 9px;
  margin-right: 8px;
}
.topbar strong {
  font-size: 12px;
}
.topbar .primary {
  font-size: 12px;
}
#menuToggle {
  display: none;
}
.scope {
  font-size: 10px;
  background: #edf0e8;
  color: #7a8b74;
  padding: 6px 9px;
  border-radius: 6px;
}
main#mainContent {
  padding: 34px 36px 56px;
  max-width: 1700px;
  margin: 0 auto;
  outline: none;
}
.page-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-heading p:last-child {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
}
.date-chip {
  font-size: 11px;
  color: #6d7d72;
  padding: 10px 15px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stats article {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.stats span,
.stats strong,
.stats small {
  display: block;
}
.stats span {
  font-size: 11px;
  color: var(--text-secondary);
}
.stats strong {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 14px 0 9px;
  font-weight: 650;
}
.stats small {
  font-size: 10px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 22px;
}
.panel {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
  box-shadow: 0 3px 8px #25342b02;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-title a {
  font-size: 11px;
}
.panel-title h2 {
  margin: 0;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.task-row:last-child {
  border: 0;
}
.task-row > div {
  flex: 1;
  min-width: 0;
}
.task-row strong {
  display: block;
  font-weight: 550;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.task-row small {
  display: block;
  font-size: 10px;
  margin-top: 7px;
}
.task-row > button:last-child {
  font-size: 11px;
  border: 0;
  color: var(--text-secondary);
}
.complete {
  border-radius: 50%;
  padding: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  font-size: 12px;
  color: #a4b6a8;
}
.shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.shortcuts a {
  display: block;
  background: #f5f8f1;
  border: 1px solid #e6eede;
  border-radius: 11px;
  padding: 18px 14px;
}
.shortcuts strong {
  display: block;
  font-size: 12px;
  color: #3c6144;
}
.shortcuts span {
  display: block;
  margin-top: 9px;
  font-size: 10px;
  color: #8b9b85;
}
.hint {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 24px;
  padding: 16px;
  background: #f8f7ef;
  border: 1px solid #eeeddc;
  border-radius: 9px;
  color: #999778;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar .search {
  max-width: 400px;
  flex: 1;
}
.toolbar input,
.toolbar select {
  font-size: 12px;
  background: #f8faf6;
}
.toolbar select {
  width: 140px;
}
.toolbar > span {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.table-scroll {
  overflow: auto;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  padding: 12px 14px;
  font-weight: 500;
  color: #8b998d;
  background: #f7f9f5;
  font-size: 10px;
}
th:first-child {
  border-radius: 8px 0 0 8px;
}
th:last-child {
  border-radius: 0 8px 8px 0;
}
td {
  padding: 18px 14px;
  border-bottom: 1px solid #edf1e9;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td strong {
  font-weight: 550;
}
.row-actions {
  overflow: visible;
}
.row-actions button {
  font-size: 11px;
  padding: 5px 8px;
  margin-right: 3px;
  border: 0;
  background: transparent;
  color: var(--primary);
}
.row-actions button.danger-text {
  color: #b48a83;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
  font-size: 11px;
}
.pagination button {
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-secondary);
}
.empty > span {
  font-size: 44px;
  color: #b0c3af;
}
.empty h2 {
  font-size: 17px;
  margin: 15px 0 10px;
}
.empty p {
  font-size: 12px;
}
.empty.small {
  padding: 60px 10px;
  font-size: 12px;
}
.calendar-day {
  border-left: 2px solid #d2e3d0;
  padding: 0 0 24px 20px;
  margin-left: 8px;
}
.calendar-day h3 {
  font-size: 12px;
  color: var(--primary);
}
.calendar-day button {
  display: block;
  margin-bottom: 8px;
  white-space: normal;
  text-align: left;
  width: 100%;
}
.calendar-day small {
  margin-left: 14px;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 16px;
  overflow: auto;
}
.board > section {
  padding: 17px;
  background: #ecf1e8;
  border-radius: 12px;
  min-height: 350px;
}
.board h2 {
  font-size: 13px;
}
.board h2 small {
  float: right;
}
.board article {
  background: var(--card);
  padding: 18px;
  border-radius: 9px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.board article small {
  font-size: 10px;
}
.board article h3 {
  font-size: 13px;
  margin: 12px 0;
}
.board article p {
  font-size: 10px;
}
.board article button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 11px;
  color: var(--primary);
}
.timeline > div {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 1fr 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.timeline small {
  font-size: 11px;
}
.editor-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: var(--card);
}
dialog::backdrop {
  background: #20382a66;
  backdrop-filter: blur(5px);
}
.editor-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}
.editor-dialog header h2 {
  margin: 0;
  font-size: 20px;
}
.editor-dialog header button {
  border: 0;
}
.editor-dialog section {
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: block;
  min-width: 0;
}
.field > span {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.field small {
  display: block;
  line-height: 1.5;
  margin-top: 7px;
}
.wide {
  grid-column: 1/-1;
}
.editor-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid var(--border);
  background: #fafbf8;
  position: sticky;
  bottom: 0;
}
.flow-history {
  max-height: 200px;
  overflow: auto;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.inline-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.inline-form label {
  font-size: 12px;
  flex: 1;
  min-width: 130px;
}
.inline-form input {
  margin-top: 6px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  line-height: 1.7;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 10000;
  background: #233e30;
  color: white;
  border-radius: 10px;
  padding: 13px 20px;
  max-width: calc(100vw - 30px);
  font-size: 12px;
  box-shadow: 0 6px 20px #0002;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  background: #fcfdf9;
}
.login > section {
  max-width: 480px;
  width: 100%;
  padding: 10vh 50px;
  margin: auto;
}
.brand-symbol {
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: white;
  background: var(--primary);
  font-size: 25px;
  margin-bottom: 40px;
}
.login h1 {
  font-size: 40px;
}
.login > section > p {
  color: var(--text-secondary);
  font-size: 13px;
}
.login form {
  margin-top: 35px;
}
.login label {
  display: block;
  font-size: 12px;
  margin-bottom: 20px;
}
.login input {
  margin-top: 8px;
  background: #fff;
}
.login form button {
  width: 100%;
  padding: 13px;
}
.login form p {
  margin-top: 15px;
  color: var(--danger);
  font-size: 12px;
}
.login small {
  display: block;
  font-size: 10px;
  margin-top: 32px;
}
.login > aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10vh 8vw;
  background:
    radial-gradient(ellipse at 75% 15%, #9ba87c55, transparent 60%), #234c36;
  color: #e6edd9;
}
.login > aside span {
  font-size: clamp(35px, 4vw, 70px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -2px;
}
.login > aside p {
  font-size: 12px;
  color: #a4bca6;
  margin-top: 30px;
}
.boot {
  padding: 30px;
  text-align: center;
  color: var(--text-secondary);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main#mainContent {
    padding: 45px 60px;
  }
  .topbar {
    padding-inline: 60px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 14px 14px;
  }
  .topbar {
    padding: 16px 24px;
  }
  main#mainContent {
    padding: 28px 24px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .topbar .eyebrow {
    display: none;
  }
  .board {
    grid-template-columns: repeat(4, 220px);
  }
  .timeline > div {
    grid-template-columns: 1fr 1fr;
  }
  .timeline button {
    justify-self: end;
  }
}
@media (max-width: 720px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 20px 0 80px #0002;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  #menuToggle {
    display: block;
    padding: 6px 9px;
  }
  .topbar {
    min-height: 66px;
    padding: 12px 16px;
    gap: 10px;
  }
  .topbar .primary {
    font-size: 11px;
    padding: 8px 10px;
  }
  .scope {
    display: none;
  }
  main#mainContent {
    padding: 24px 16px 40px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p:last-child {
    font-size: 11px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading .actions button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .date-chip {
    display: none;
  }
  .stats {
    gap: 10px;
    margin-bottom: 16px;
  }
  .stats article {
    padding: 17px 15px;
  }
  .stats strong {
    font-size: 25px;
    margin: 12px 0 8px;
  }
  .stats span {
    font-size: 10px;
  }
  .stats small {
    font-size: 9px;
  }
  .panel {
    padding: 18px 15px;
    border-radius: 12px;
  }
  .panel h2 {
    font-size: 15px;
  }
  .shortcuts {
    gap: 10px;
  }
  .shortcuts a {
    padding: 16px 12px;
  }
  .toolbar {
    gap: 8px;
    flex-wrap: wrap;
  }
  .toolbar select {
    width: 120px;
  }
  .toolbar > span {
    font-size: 10px;
  }
  .toolbar input {
    font-size: 11px;
  }
  .editor-dialog section {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .editor-dialog header {
    padding: 20px;
  }
  .editor-dialog footer {
    padding: 15px 20px;
  }
  .field {
    grid-column: 1/-1;
  }
  .login {
    display: block;
  }
  .login > aside {
    display: none;
  }
  .login > section {
    padding: 50px 28px;
  }
  .login h1 {
    font-size: 36px;
  }
  .inline-form {
    display: grid;
  }
  .task-row strong {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* New-site feature surfaces */
.setup {
  max-width: 620px;
  margin: 8vh auto;
  padding: 32px;
}
.setup label,
#aiForm label,
#aiConfig label {
  display: block;
  margin: 18px 0;
  font-size: 12px;
}
.setup input,
#aiForm select,
#aiForm textarea,
#aiConfig input {
  margin-top: 8px;
}
.setup code {
  overflow-wrap: anywhere;
}
.permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.permission-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.permission-grid input {
  width: auto;
}
.user-permissions {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.user-permissions summary {
  cursor: pointer;
}
.user-permissions button {
  margin: 0 10px 10px 0;
}
.learning-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.learning-progress article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}
.learning-progress strong,
.learning-progress span {
  display: block;
}
.learning-progress span {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 12px 0;
}
.learning-progress button {
  margin-top: 12px;
  font-size: 11px;
}
progress {
  accent-color: var(--primary);
  width: 100%;
  height: 9px;
  border: 0;
}
.finance-summary {
  margin-bottom: 22px;
}
.finance-summary > div {
  display: grid;
  grid-template-columns: 70px 1fr 120px;
  gap: 15px;
  align-items: center;
  margin: 15px 0;
  font-size: 12px;
}
.finance-summary strong {
  text-align: right;
}
.reminders {
  margin: 0 0 20px;
}
.reminders p {
  padding: 15px;
  background: #fff7e3;
  color: #8b642b;
  border-radius: 10px;
  font-size: 12px;
  margin: 8px 0;
}
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.month-grid > b {
  font-size: 11px;
  text-align: center;
  background: #f3f6f1;
  padding: 12px;
}
.month-day,
.calendar-blank {
  min-height: 120px;
  background: var(--card);
  padding: 10px;
  min-width: 0;
}
.month-day > span {
  font-size: 11px;
  color: var(--text-secondary);
}
.month-day.today {
  background: #f0f7eb;
}
.month-day button {
  display: block;
  width: 100%;
  white-space: normal;
  text-align: left;
  padding: 7px;
  margin: 7px 0 0;
  font-size: 10px;
  overflow-wrap: anywhere;
  background: #e5f0de;
  border: 0;
}
.month-day button.done {
  opacity: 0.5;
  text-decoration: line-through;
}
.gantt-scroll {
  overflow: auto;
}
.gantt-head,
.gantt-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-bottom: 1px solid var(--border);
}
.gantt-head > * {
  padding: 15px;
  font-size: 11px;
}
.gantt-row {
  min-height: 68px;
}
.gantt-row > button {
  border: 0;
  border-radius: 0;
  text-align: left;
  white-space: normal;
  font-size: 12px;
  padding: 12px 15px;
  border-right: 1px solid var(--border);
}
.gantt-row small {
  display: block;
  margin-top: 5px;
}
.gantt-track {
  position: relative;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 25px,
    #e8eee6 26px
  );
  min-height: 68px;
}
.gantt-bar {
  position: absolute;
  top: 20px;
  min-width: 10px;
  height: 28px;
  background: #6f9870;
  border-radius: 5px;
  color: white;
  padding: 6px 8px;
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
}
.gantt-bar.done {
  background: #b0c2aa;
}
.board .drop-target {
  outline: 2px dashed var(--primary);
  outline-offset: -3px;
}
.board article[draggable="true"] {
  cursor: grab;
}
.flow-history > div {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.flow-history > div > span {
  flex: 1;
  min-width: 0;
}
.flow-history button {
  font-size: 10px;
  padding: 5px 8px;
}
.focus-panel {
  max-width: 760px;
  text-align: center;
  margin: auto;
}
.focus-panel #focusClock {
  font-size: 80px;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  padding: 35px 0;
}
.focus-panel .actions {
  justify-content: center;
  margin: 25px 0 40px;
}
.focus-panel > p {
  font-size: 12px;
}
.ai-settings {
  margin-top: 20px;
}
#aiResult {
  margin-top: 25px;
  padding: 18px;
  background: #f5f8f1;
  border-radius: 10px;
  min-height: 70px;
  line-height: 1.8;
}
.field input[type="checkbox"] {
  width: 20px;
  height: 20px;
}
.calendar-blank {
  background: #f7f8f5;
}
@media (max-width: 720px) {
  .setup {
    margin: 24px 12px;
    padding: 24px;
  }
  .permission-grid {
    grid-template-columns: 1fr;
  }
  .month-day,
  .calendar-blank {
    min-height: 90px;
    padding: 4px;
  }
  .month-day button {
    padding: 5px 3px;
    font-size: 9px;
  }
  .month-grid > b {
    font-size: 9px;
    padding: 10px 0;
  }
  .calendar-controls {
    gap: 8px;
  }
  .calendar-controls button {
    font-size: 10px;
    padding: 7px;
  }
  .calendar-controls strong {
    font-size: 12px;
  }
  .finance-summary > div {
    grid-template-columns: 50px 1fr 85px;
    font-size: 10px;
    gap: 9px;
  }
  .focus-panel #focusClock {
    font-size: 64px;
  }
  .flow-history > div {
    flex-wrap: wrap;
  }
  .flow-history > div > span {
    flex-basis: 100%;
  }
}
.profile-form {
  max-width: 440px;
}
.profile-form label {
  display: block;
  margin: 18px 0;
  font-size: 12px;
}
.profile-form input {
  margin-top: 8px;
}
.skill-panel {
  margin-bottom: 20px;
}
.skill-tree,
.skill-tree ul {
  list-style: none;
  padding-left: 22px;
}
.skill-tree {
  padding-left: 0;
}
.skill-tree li {
  border-left: 1px solid var(--border);
  padding: 10px 0 0 18px;
}
.skill-tree li > div {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px;
  background: #f6f8f2;
  border-radius: 10px;
}
.skill-tree strong {
  min-width: 120px;
  font-size: 13px;
}
.skill-tree span {
  font-size: 11px;
  color: var(--text-secondary);
}
.skill-tree progress {
  max-width: 140px;
}
.skill-tree button {
  font-size: 10px;
  padding: 5px 8px;
}
.skill-panel .panel-title > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .skill-panel .panel-title {
    display: block;
  }
  .skill-panel .panel-title > div {
    margin-top: 12px;
  }
  .skill-panel .panel-title button {
    font-size: 10px;
  }
  .skill-tree li {
    padding-left: 10px;
  }
  .skill-tree ul {
    padding-left: 10px;
  }
  .skill-tree strong {
    min-width: 80px;
  }
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 12px 18px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  z-index: 10000;
}
.skip-link:focus {
  top: 12px;
}
.document-preview {
  display: block;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 10px 0;
  background: #f7f9f5;
}
.document-field strong {
  font-size: 12px;
  color: var(--text-secondary);
}
.document-field p {
  margin: 8px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
