:root {
  --yellow: #fab505;
  --yellow-soft: #fff7db;
  --ink: #111;
  --text: #20232b;
  --muted: #626b79;
  --border: #e8eaee;
  --bg: #f7f8fa;
  --surface: #fff;
  --surface-alt: #fafbfc;
  --red: #cb4f49;
  --green: #3d8169;
  --blue: #527cbd;
  --sidebar: 280px;
  --shadow: 0 3px 12px #17213205;
  --radius: 13px;
  font-family:
    Inter,
    Manrope,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
[contenteditable] {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #fab50577;
  outline-offset: 3px;
}
input,
select,
textarea {
  color: var(--text);
  background: var(--surface);
}
input:focus,
select:focus,
textarea:focus,
[contenteditable]:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px #fab50516;
}
button {
  border: 0;
  background: none;
}
svg.icon {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
button .icon,
a .icon {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.regular {
  font-weight: 400;
}
.small-kicker,
.eyebrow {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 1.5px;
  line-height: 1.6;
}
.small-kicker {
  color: #9c7a17;
}
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 15px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background 0.16s,
    transform 0.16s;
}
.button:hover {
  background: var(--surface-alt);
  border-color: #d6d9df;
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--yellow);
  color: #17130a;
  border-color: var(--yellow);
}
.button.primary:hover {
  background: #edaa00;
  border-color: #edaa00;
}
.button.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.button.danger {
  background: #fff1ef;
  border-color: #f4d5d2;
  color: #af3c36;
}
.button.compact {
  min-height: 40px;
  padding: 7px 12px;
  font-size: 14px;
}
.button.wide {
  width: 100%;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  padding: 0;
}
.text-button:hover {
  color: var(--ink);
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--muted);
  flex: none;
}
.icon-button:hover {
  background: var(--bg);
  color: var(--ink);
}
.input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  transition:
    border 0.15s,
    box-shadow 0.15s;
}
.input::placeholder {
  color: #6d727e;
}
textarea.input {
  height: 100px;
  resize: vertical;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}
.field .input {
  font-size: 16px;
  font-weight: 400;
}
.field small {
  font-weight: 400;
  color: var(--muted);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
  padding: 3px 7px;
  background: var(--bg);
  color: var(--muted);
}
.badge .icon {
  width: 11px;
  height: 11px;
}
.badge.status-todo {
  color: #6d7482;
  background: #f0f1f4;
}
.badge.status-progress {
  color: #4879ab;
  background: #edf3fb;
}
.badge.status-waiting {
  color: #a27a21;
  background: #fff6de;
}
.badge.status-done {
  color: #468168;
  background: #edf7f1;
}
.badge.status-cancelled {
  color: #836b7a;
  background: #f5f0f3;
}
.badge.urgent {
  background: #fff1ee;
  color: #c34b42;
}
.badge.important {
  background: var(--yellow-soft);
  color: #a77a15;
}
.badge.shop-hygie {
  color: #597e6c;
  background: #f0f7f3;
}
.badge.shop-jlperf {
  color: #686891;
  background: #f1f1f9;
}
.badge.shop-both {
  color: #717178;
  background: var(--bg);
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: 220px;
  padding: 30px 25px;
  gap: 9px;
}
.empty-state .empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: #6a7487;
  border: 1px dashed #dfe2e8;
  border-radius: 14px;
  margin-bottom: 6px;
}
.empty-state h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 650;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
  margin: 0 0 5px;
  line-height: 1.75;
}
.empty-state .button {
  margin-top: 4px;
}
.empty-state.small {
  min-height: 180px;
  padding: 25px;
}
.inline-error {
  border: 1px solid #eccbc5;
  background: #fff4f1;
  color: #a74035;
  font-size: 15px;
  padding: 11px 13px;
  border-radius: 8px;
  line-height: 1.7;
}
.boot {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--bg);
  gap: 18px;
  color: var(--muted);
}
.boot p {
  font-size: 15px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  position: relative;
  flex: none;
  background: #141414;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -3.5px;
  padding-right: 6px;
  line-height: 1;
}
.brand-mark span {
  color: var(--yellow);
  margin-top: 4px;
}
.brand-mark i {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--yellow);
}
.brand-mark.large {
  width: 58px;
  height: 58px;
  font-size: 34px;
  border-radius: 17px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.9px;
  line-height: 1.25;
  color: var(--ink);
}
.brand-amp {
  color: #b08b32;
  font-size: 16px;
  margin: 0 2px;
}
.brand small {
  font-size: 12px;
  letter-spacing: 2.3px;
  color: #70737c;
  display: block;
  margin-top: 6px;
  font-weight: 600;
}
.loading-line {
  height: 3px;
  width: 90px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.loading-line::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--yellow);
  animation: load 1s ease-in-out infinite;
}
@keyframes load {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 44px 54px;
  background: #141414;
  color: #fff;
}
.auth-story .brand {
  color: #fff;
  position: relative;
  z-index: 1;
}
.auth-story .brand-mark {
  background: #292929;
}
.auth-story .brand small {
  color: #818181;
}
.auth-story-body {
  margin: auto 0;
  position: relative;
  z-index: 1;
  padding: 70px 0;
}
.auth-story-body .eyebrow {
  color: #cfb25c;
  font-size: 12px;
  letter-spacing: 2px;
}
.auth-story h1 {
  font-size: clamp(40px, 4.25vw, 67px);
  line-height: 1.09;
  letter-spacing: -3px;
  font-weight: 600;
  margin: 27px 0;
}
.auth-story h1 em {
  font-style: normal;
  color: var(--yellow);
}
.auth-story p {
  color: #979797;
  font-size: 16px;
  line-height: 1.9;
}
.auth-shops {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
  color: #d5d5d5;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 1.4px;
}
.shop-divider {
  height: 15px;
  width: 1px;
  background: #4b4b4b;
}
.auth-story-footer {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: #858585;
  display: flex;
  justify-content: space-between;
}
.auth-orbit {
  position: absolute;
  border: 1px solid #fab50515;
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one {
  width: 650px;
  height: 650px;
  right: -410px;
  bottom: -130px;
}
.orbit-two {
  width: 480px;
  height: 480px;
  right: -325px;
  bottom: -45px;
  border-color: #fab50525;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 100vh;
  background: var(--surface);
  padding: 70px 40px;
}
.auth-form-inner {
  width: 400px;
  max-width: 100%;
}
.auth-form-inner h2 {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 14px 0 10px;
}
.auth-form-inner > p {
  font-size: 15px;
  margin: 0 0 30px;
}
.auth-form-inner .button {
  margin-top: 7px;
  justify-content: space-between;
}
.auth-form-inner .input {
  height: 45px;
}
.auth-form-inner form .field > span {
  font-size: 13px;
  line-height: 1.5;
}
.password-wrap {
  position: relative;
}
.password-wrap .input {
  padding-right: 45px;
}
.password-wrap .icon-button {
  position: absolute;
  right: 5px;
  top: 5px;
}
.auth-help {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 23px;
  display: flex;
  gap: 11px;
  color: #6c7380;
}
.auth-help .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.auth-help p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.auth-footnote {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: #6e737d;
}
.auth-mobile-brand {
  display: none;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition:
    width 0.2s,
    transform 0.2s;
}
.sidebar > .brand {
  padding: 29px 24px 22px;
  min-height: 94px;
}
.workspace-label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 20px 16px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: #6c7380;
}
.workspace-dot {
  width: 6px;
  height: 6px;
  background: #80a28e;
  border-radius: 50%;
}
.private-label {
  font-size: 12px;
  letter-spacing: 0.7px;
  margin-left: auto;
  background: var(--bg);
  padding: 3px 5px;
  border-radius: 3px;
  color: #70737f;
}
.sidebar nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 13px 16px;
  scrollbar-width: thin;
  scrollbar-color: #e5e7eb transparent;
}
.nav-group-label {
  font-size: 12px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #6d7381;
  padding: 19px 13px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-item {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 11px;
  padding: 8px 12px;
  border-radius: 7px;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #6c717e;
  white-space: nowrap;
  margin: 1px 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item .icon {
  width: 17px;
  height: 17px;
  color: #6d7380;
}
.nav-item:hover {
  color: var(--ink);
  background: var(--bg);
}
.nav-item.active {
  background: var(--yellow-soft);
  color: #3b3218;
  font-weight: 650;
}
.nav-item.active .icon {
  color: #c49721;
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  line-height: 1;
  padding: 4px 5px;
  background: var(--bg);
  border-radius: 4px;
  color: #6d7382;
  min-width: 19px;
  text-align: center;
}
.nav-item.active .nav-count {
  background: #f8e9b5;
  color: #9f7822;
}
.nav-item.child {
  padding-left: 40px;
  font-size: 14px;
  min-height: 40px;
}
.nav-item.child:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b0b4bd;
  position: absolute;
  left: 25px;
}
.sidebar-bottom {
  padding: 12px 13px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.sidebar-collapse {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 9px 12px;
  font-size: 13px;
  color: #6d7381;
  width: 100%;
}
.sidebar-collapse .icon {
  width: 16px;
  height: 16px;
}
.workspace-shops {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 17px 0 19px;
  color: #6d717d;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
}
.workspace-shops span + span {
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.app-main {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin 0.2s;
}
.topbar {
  height: 77px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 30;
  gap: 15px;
}
.topbar-left,
.topbar-right,
.topbar-breadcrumb {
  display: flex;
  align-items: center;
}
.topbar-breadcrumb {
  gap: 15px;
  font-size: 14px;
  white-space: nowrap;
}
.breadcrumb-home .icon {
  width: 16px;
  height: 16px;
  color: #6e737f;
}
.breadcrumb-divider {
  color: #6a7384;
}
.topbar-breadcrumb strong {
  font-weight: 550;
}
.topbar-right {
  gap: 17px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
}
.global-search .icon {
  color: #6d7383;
  width: 16px;
  height: 16px;
}
.global-search input {
  border: 0;
  background: transparent;
  padding: 0;
  width: 166px;
  font-size: 16px;
  outline: 0;
  box-shadow: none;
}
.global-search input::placeholder {
  color: #6d7382;
}
.global-search kbd {
  font-size: 12px;
  line-height: 1;
  padding: 3px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #6d737e;
}
.notification-wrap {
  position: relative;
}
.notification-button {
  position: relative;
}
.notification-button .icon {
  width: 18px;
  height: 18px;
}
.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border: 1.5px solid var(--surface);
  border-radius: 50%;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 1px solid var(--border);
  padding: 0 0 0 17px;
  font-size: 13px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 650;
  color: #6f684d;
  background: #efebdf;
  flex: none;
}
.profile-button > .icon {
  width: 12px;
  height: 12px;
  color: #6d747f;
}
.profile-name {
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-menu {
  display: none;
}
.main-content {
  width: 100%;
  max-width: 1600px;
  align-self: center;
  padding: 32px 34px 35px;
  flex: 1;
  outline: none;
}
.app-footer {
  padding: 18px 34px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6c717e;
  gap: 20px;
}
.footer-dot {
  margin: 0 5px;
  color: #6b7483;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.page-heading .eyebrow {
  color: #6d7380;
  font-size: 12px;
  letter-spacing: 1.7px;
}
.page-heading h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 650;
  line-height: 1.3;
  margin: 7px 0 7px;
  color: var(--ink);
}
.page-heading p {
  font-size: 14px;
  margin: 0;
  color: #6d7380;
}
.page-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: center;
}
.date-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 13px;
  color: #6b717e;
  white-space: nowrap;
}
.date-chip .icon {
  width: 14px;
  height: 14px;
  color: #6a7281;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 16px 16px 13px;
  position: relative;
  min-height: 115px;
  cursor: pointer;
  text-align: left;
}
.stat-card:hover {
  border-color: #d5d9e0;
  transform: translateY(-1px);
}
.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: #6d7480;
}
.stat-head .icon {
  width: 16px;
  height: 16px;
  color: #6a7382;
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}
.stat-value strong {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1;
}
.stat-caption {
  font-size: 12px;
  color: #6b727f;
  margin-top: 6px;
}
.stat-card.stat-urgent .stat-head .icon {
  color: #d29a32;
}
.stat-card.stat-overdue .stat-head .icon {
  color: #cf8a7d;
}
.stat-card.stat-done .stat-head .icon {
  color: #557a61;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.dashboard-left,
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 21px 17px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-title .icon {
  width: 16px;
  height: 16px;
  color: #a68d4a;
}
.section-title h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.15px;
}
.section-title .count-pill {
  font-size: 12px;
  background: var(--bg);
  padding: 2px 6px;
  color: #6b7381;
  border-radius: 4px;
}
.section-top .text-button {
  font-size: 14px;
}
.section-top .text-button .icon {
  width: 12px;
  height: 12px;
}
.section-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.task-row {
  padding: 17px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row:hover {
  background: var(--surface-alt);
}
.task-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d9dde4;
  border-radius: 5px;
  flex: none;
  margin-top: 3px;
  padding: 0;
  display: grid;
  place-items: center;
}
.task-check:hover {
  border-color: #c39b30;
  background: var(--yellow-soft);
}
.task-check.done {
  background: #edf7f1;
  border-color: #92b8a0;
  color: #487e5e;
}
.task-check .icon {
  width: 10px;
  height: 10px;
}
.task-row-main {
  flex: 1;
  min-width: 0;
}
.task-row-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  line-height: 1.6;
}
.task-row-title .icon {
  width: 11px;
  height: 11px;
  color: #c09931;
}
.task-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.task-row-category {
  font-size: 12px;
  color: #6d7481;
}
.task-row-right {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
  padding-top: 1px;
}
.due-label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  color: #6b7481;
  white-space: nowrap;
}
.due-label .icon {
  width: 11px;
  height: 11px;
}
.due-label.late {
  color: #c7786a;
}
.mini-avatar {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e9edf1;
  color: #697383;
  font-size: 12px;
  font-weight: 600;
}
.welcome-panel {
  position: relative;
  padding: 24px;
  background: #fffbef;
  border: 1px solid #efe5c5;
  border-radius: var(--radius);
  overflow: hidden;
}
.welcome-panel .welcome-graphic {
  position: absolute;
  right: 15px;
  top: 22px;
  color: #d9b647;
  opacity: 0.45;
  transform: rotate(-10deg);
}
.welcome-graphic .icon {
  width: 52px;
  height: 52px;
  stroke-width: 1;
}
.welcome-panel .eyebrow {
  color: #b28c32;
  font-size: 12px;
}
.welcome-panel h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  line-height: 1.4;
  margin: 10px 0 9px;
  position: relative;
  max-width: 250px;
}
.welcome-panel p {
  font-size: 13px;
  color: #9b8e6b;
  line-height: 1.8;
  max-width: min(280px, 88vw);
  position: relative;
  margin: 0 0 15px;
}
.welcome-panel .button {
  font-size: 15px;
  min-height: 40px;
}
.quick-access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px;
  gap: 9px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 0;
  cursor: pointer;
}
.quick-card:hover {
  background: var(--bg);
  border-color: #d9dde4;
}
.quick-icon {
  background: var(--bg);
  border-radius: 6px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #757466;
  flex: none;
}
.quick-icon .icon {
  width: 15px;
  height: 15px;
}
.quick-card strong {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  display: block;
}
.quick-card small {
  font-size: 12px;
  color: #6d7380;
  display: block;
  margin-top: 2px;
}
.activity-list {
  padding: 4px 20px;
}
.activity-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child {
  border: 0;
}
.activity-dot {
  width: 6px;
  height: 6px;
  margin-top: 6px;
  background: #d1c18e;
  border-radius: 50%;
  flex: none;
}
.activity-item p {
  font-size: 13px;
  margin: 0;
  line-height: 1.7;
  color: #6b727d;
}
.activity-item time {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
}
.workspace-intro {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 18px 0 0;
  margin-top: 24px;
  color: #6b7381;
  font-size: 12px;
}
.workspace-intro .icon {
  width: 14px;
  height: 14px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-select {
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 16px;
  padding: 8px 26px 8px 10px;
  height: 44px;
  background-color: var(--surface);
  max-width: 190px;
}
.filter-select:focus {
  box-shadow: none;
}
.filter-select.active {
  border-color: #ddbc59;
  background: var(--yellow-soft);
}
.view-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}
.view-switch {
  display: flex;
  background: #eef0f3;
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}
.view-switch button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #6d7481;
}
.view-switch button .icon {
  width: 15px;
  height: 15px;
}
.view-switch button.active {
  background: var(--surface);
  box-shadow: 0 1px 3px #0000000a;
  color: #555e6c;
}
.results-info {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 15px;
}
.results-info strong {
  color: var(--text);
  font-weight: 550;
}
.filter-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.filter-dates .input {
  width: 145px;
  height: 44px;
  font-size: 16px;
}
.filter-dates .text-button {
  margin-left: 6px;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.note-card {
  padding: 20px;
  min-height: 217px;
  cursor: pointer;
  transition:
    transform 0.15s,
    border-color 0.15s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.note-card:hover {
  border-color: #cfd4df;
  transform: translateY(-2px);
}
.note-card.urgent:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #d99a86;
}
.note-card.important:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #e8c364;
}
.note-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
.note-card-top .note-category {
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #6b7384;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.note-card-top .icon {
  width: 12px;
  height: 12px;
  color: #c4ab64;
}
.note-card h3 {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.55;
  margin: 0 0 9px;
  letter-spacing: -0.15px;
  overflow-wrap: anywhere;
}
.note-card-excerpt {
  font-size: 16px;
  color: #6b7384;
  line-height: 1.65;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-card .note-card-bottom {
  margin-top: auto;
}
.note-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.note-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notes-list {
  overflow: hidden;
}
.note-list-head {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 1fr 1fr 1fr 36px;
  gap: 15px;
  padding: 12px 20px;
  font-size: 12px;
  color: #6e7380;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.note-list-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 1fr 1fr 1fr 36px;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.note-list-row:last-child {
  border: 0;
}
.note-list-row:hover {
  background: var(--surface-alt);
}
.note-list-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.note-list-title strong {
  font-size: 16px;
  font-weight: 600;
  display: block;
  line-height: 1.6;
}
.note-list-title small {
  font-size: 12px;
  color: #697380;
  display: block;
  margin-top: 5px;
}
.note-list-row .badge {
  justify-self: start;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pagination .button {
  min-height: 40px;
  padding: 5px 10px;
  font-size: 15px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 15px;
}
.kanban-column {
  background: #f0f2f5;
  border-radius: 10px;
  padding: 12px;
  min-height: 300px;
}
.kanban-title {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  margin: 0 0 14px;
  color: #69727e;
}
.kanban .note-card {
  padding: 14px;
  min-height: 160px;
  margin-bottom: 10px;
}
.kanban .note-card h3 {
  font-size: 17px;
}
.kanban .note-card-excerpt {
  font-size: 16px;
}
.kanban-column.drag-over {
  background: var(--yellow-soft);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #11192465;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  backdrop-filter: blur(3px);
}
.note-dialog {
  width: 1050px;
  max-width: 100%;
  max-height: 94vh;
  background: var(--surface);
  border-radius: 15px;
  box-shadow: 0 25px 100px #0003;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dialog-top {
  padding: 17px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}
.dialog-note-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--yellow-soft);
  color: #ba9128;
  display: grid;
  place-items: center;
}
.dialog-note-icon .icon {
  width: 17px;
  height: 17px;
}
.dialog-heading > div .eyebrow {
  font-size: 12px;
  color: #6e737e;
  display: block;
}
.save-state {
  font-size: 12px;
  color: #6b737e;
  display: block;
  margin-top: 2px;
}
.save-state.saving {
  color: #b29544;
}
.save-state.saved {
  color: #5e796a;
}
.save-state.error {
  color: #bd6860;
}
.dialog-top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.dialog-top .button {
  font-size: 15px;
  min-height: 40px;
}
.note-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  overflow-y: auto;
  min-height: 400px;
}
.editor-main {
  padding: 25px 28px 30px;
  min-width: 0;
}
.editor-title {
  border: 0;
  resize: none;
  outline: none;
  width: 100%;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -0.6px;
  font-weight: 650;
  color: var(--ink);
  padding: 0;
  overflow: hidden;
  min-height: 34px;
  background: transparent;
  box-shadow: none !important;
  border-radius: 0;
}
.editor-title::placeholder {
  color: #697282;
}
.editor-toolbar {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 13px 0 11px;
  border-bottom: 1px solid var(--border);
  margin-top: 15px;
  flex-wrap: wrap;
}
.editor-toolbar button {
  width: 28px;
  height: 27px;
  border-radius: 5px;
  color: #6c7482;
  display: grid;
  place-items: center;
}
.editor-toolbar button:hover {
  background: var(--bg);
  color: var(--ink);
}
.editor-toolbar button .icon {
  width: 14px;
  height: 14px;
}
.toolbar-divider {
  width: 1px;
  height: 17px;
  background: var(--border);
  margin: 0 5px;
}
.rich-editor {
  min-height: 190px;
  outline: 0 !important;
  box-shadow: none !important;
  font-size: 17px;
  line-height: 1.75;
  padding: 18px 0;
  color: #67707d;
  overflow-wrap: anywhere;
}
.rich-editor:empty:before {
  content: attr(data-placeholder);
  color: #6a7486;
  pointer-events: none;
}
.rich-editor a {
  color: #b28b23;
  text-decoration: underline;
}
.rich-editor p {
  margin: 0 0 10px;
}
.rich-editor ul,
.rich-editor ol {
  padding-left: 22px;
}
.rich-editor input[type="checkbox"] {
  accent-color: var(--yellow);
  margin-right: 7px;
}
.editor-sidebar {
  border-left: 1px solid var(--border);
  padding: 22px 20px;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.editor-sidebar .field {
  font-size: 12px;
  color: #6a7380;
  gap: 6px;
  font-weight: 500;
}
.editor-sidebar .input {
  height: 44px;
  font-size: 16px;
  background: var(--surface);
}
.editor-meta {
  font-size: 12px;
  color: #6a7280;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  line-height: 1.9;
}
.editor-sidebar .button {
  font-size: 15px;
  min-height: 40px;
  width: 100%;
  justify-content: flex-start;
}
.editor-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.editor-actions .button {
  padding: 7px;
  font-size: 15px;
  gap: 5px;
}
.editor-actions .icon {
  width: 12px;
  height: 12px;
}
.editor-error {
  margin: 15px 23px 0;
}
.business-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: #68727f;
}
.business-toggle .icon {
  width: 14px;
  height: 14px;
}
.business-toggle .icon:last-child {
  margin-left: auto;
}
.business-fields {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 9px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.business-fields .field {
  font-size: 12px;
  font-weight: 500;
}
.business-fields .input {
  height: 44px;
  font-size: 16px;
}
.business-fields textarea.input {
  height: 65px;
}
.business-fields .full {
  grid-column: 1/-1;
}
.editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: 10px 0 15px;
  gap: 22px;
}
.editor-tab {
  display: flex;
  gap: 6px;
  padding: 12px 0;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  color: #6a7482;
}
.editor-tab .icon {
  width: 13px;
  height: 13px;
}
.editor-tab.active {
  border-color: var(--yellow);
  color: #5f6672;
}
.attachment-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 7px;
  font-size: 13px;
}
.attachment-row > .icon {
  color: #687487;
  width: 17px;
  height: 17px;
}
.attachment-row a {
  flex: 1;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.attachment-row small {
  color: var(--muted);
  font-size: 12px;
}
.attachment-row .icon-button {
  width: 25px;
  height: 25px;
}
.attachment-row .icon-button .icon {
  width: 12px;
  height: 12px;
}
.file-upload {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 13px;
  border: 1px dashed #d9dfe6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #687484;
}
.file-upload .icon {
  width: 16px;
  height: 16px;
}
.file-upload input {
  max-width: 100%;
  font-size: 12px;
}
.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.comment-item .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
}
.comment-body {
  flex: 1;
  font-size: 13px;
  line-height: 1.8;
}
.comment-body strong {
  font-size: 12px;
  font-weight: 650;
  margin-right: 6px;
}
.comment-body time {
  font-size: 12px;
  color: #697382;
}
.comment-body p {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #6a737f;
}
.comment-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.comment-form textarea {
  font-size: 16px;
  min-height: 65px;
  height: 65px;
  resize: vertical;
}
.comment-form .button {
  height: 34px;
  min-height: 40px;
  padding: 7px 9px;
}
.history-item {
  display: flex;
  gap: 9px;
  margin: 10px 0;
  font-size: 12px;
  color: #687381;
}
.history-item .icon {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 2px;
}
.confirm-dialog {
  width: 390px;
  max-width: 100%;
  padding: 27px;
}
.confirm-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff4e3;
  color: #bd9650;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}
.confirm-dialog h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}
.confirm-dialog p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 25px;
}
.dialog-actions .button {
  font-size: 15px;
}
.toast-region {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}
.toast {
  background: #20242d;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px #0002;
  padding: 13px 17px;
  font-size: 14px;
  display: flex;
  gap: 9px;
  align-items: center;
  animation: toast-in 0.2s ease;
}
.toast .icon {
  width: 16px;
  height: 16px;
  color: #e8c458;
}
.toast.error {
  background: #8e4039;
}
.toast.error .icon {
  color: #f5c6bb;
}
@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.notification-panel {
  position: absolute;
  right: -10px;
  top: 48px;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 15px 50px #0002;
  overflow: hidden;
  z-index: 45;
}
.notification-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.notification-head strong {
  font-size: 14px;
}
.notification-head button {
  font-size: 12px;
  color: #a0853e;
}
.notification-list {
  max-height: 390px;
  overflow: auto;
}
.notification-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
}
.notification-item.unread {
  background: var(--yellow-soft);
}
.notification-item small {
  display: block;
  font-size: 12px;
  color: #6a7280;
  margin-top: 4px;
}
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 15px;
  flex-wrap: wrap;
}
.calendar-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}
.calendar-navigation h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
  font-weight: 650;
  min-width: 155px;
  text-transform: capitalize;
  margin: 0 10px;
}
.calendar-navigation .icon-button {
  border: 1px solid var(--border);
  background: var(--surface);
  height: 40px;
  width: 40px;
}
.calendar-view {
  display: flex;
  padding: 3px;
  background: #eef0f3;
  border-radius: 8px;
}
.calendar-view button {
  font-size: 13px;
  padding: 6px 13px;
  border-radius: 6px;
  color: #697484;
}
.calendar-view button.active {
  background: var(--surface);
  box-shadow: 0 1px 4px #00000008;
  color: #5f6b7b;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
}
.calendar-weekday {
  padding: 14px;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #687381;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.calendar-day {
  min-height: 119px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 9px;
  cursor: pointer;
  min-width: 0;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day:hover {
  background: var(--surface-alt);
}
.calendar-day.other-month {
  background: #fafbfc;
}
.calendar-day.other-month .day-number {
  color: #697386;
}
.day-number {
  font-size: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: #677482;
}
.calendar-day.today .day-number {
  background: var(--yellow);
  color: #201a0a;
  border-radius: 7px;
  font-weight: 700;
}
.calendar-event {
  display: block;
  width: 100%;
  padding: 5px 7px;
  border-left: 2px solid #d4b64d;
  background: #fff7db;
  border-radius: 3px;
  text-align: left;
  font-size: 12px;
  color: #9c8435;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
  line-height: 1.5;
}
.calendar-event.type-leave {
  background: #f0f6f1;
  color: #5d7860;
  border-color: #90ac93;
}
.calendar-event.type-deadline {
  background: #eff3f9;
  color: #7e91ad;
  border-color: #95a8c2;
}
.calendar-event.type-reminder {
  background: #f5f0f8;
  color: #846998;
  border-color: #b09bbd;
}
.calendar-legend {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 15px;
  font-size: 12px;
  color: #6a7381;
  flex-wrap: wrap;
}
.calendar-legend span:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  background: #d4b64d;
  border-radius: 50%;
}
.calendar-legend span:nth-child(2):before {
  background: #95a8c2;
}
.calendar-legend span:nth-child(3):before {
  background: #90ac93;
}
.calendar-dayview {
  padding: 22px;
}
.calendar-dayview .calendar-event {
  font-size: 16px;
  white-space: normal;
  padding: 12px;
  margin-bottom: 9px;
}
.calendar-week .calendar-day {
  min-height: 350px;
}
.calendar-week .calendar-event {
  font-size: 12px;
  white-space: normal;
}
.offline-banner {
  padding: 9px;
  text-align: center;
  font-size: 14px;
  background: #fff4de;
  color: #9c7c34;
  border-bottom: 1px solid #e9d9b2;
}
.loading-content {
  padding: 70px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #6a7382;
  font-size: 14px;
}
.spin {
  animation: spin 1.2s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.collapsed {
  --sidebar: 76px;
}
.collapsed .sidebar > .brand {
  padding: 28px 18px;
}
.collapsed .brand > div:not(.brand-mark),
.collapsed .workspace-label,
.collapsed .nav-item > span:not(:first-child),
.collapsed .nav-group-label,
.collapsed .workspace-shops,
.collapsed .sidebar-collapse > span:not(:first-child) {
  display: none;
}
.collapsed .sidebar nav {
  padding-top: 10px;
}
.collapsed .nav-item {
  justify-content: center;
  padding: 10px 0;
  font-size: 0;
}
.collapsed .nav-item.child {
  display: none;
}
.collapsed .sidebar-bottom {
  padding: 12px 11px;
}
.collapsed .sidebar-collapse {
  justify-content: center;
  padding: 12px 0;
}
.collapsed .nav-item .icon {
  width: 19px;
  height: 19px;
}
[data-theme="dark"] {
  --ink: #f4f4f5;
  --text: #e5e7eb;
  --muted: #9299a6;
  --border: #303540;
  --bg: #191c23;
  --surface: #20242d;
  --surface-alt: #242932;
  --yellow-soft: #393221;
  --shadow: 0 3px 12px #00000008;
  color-scheme: dark;
}
.badge.status-todo[data-theme="dark"] {
  background: #343944;
}
.app-shell[data-theme="dark"] .workspace-label {
  color: #9aa1ae;
}
[data-theme="dark"] .stat-card .stat-head {
  color: #a2a9b7;
}
[data-theme="dark"] .welcome-panel {
  background: #312d20;
  border-color: #50462b;
}
[data-theme="dark"] .badge {
  filter: brightness(0.85);
}
[data-theme="dark"] .kanban-column,
[data-theme="dark"] .view-switch,
[data-theme="dark"] .calendar-view {
  background: #14171d;
}
[data-theme="dark"] .calendar-day.other-month {
  background: #1d2128;
}
[data-theme="dark"] .auth-story {
  background: #111;
}
[data-theme="dark"] .editor-sidebar {
  background: #1d2129;
}
[data-theme="dark"] .inline-error {
  background: #472927;
  border-color: #75423c;
  color: #e6b7ac;
}
[data-theme="dark"] .button.danger {
  background: #472927;
  border-color: #75423c;
  color: #e6b7ac;
}
[data-theme="dark"] .badge.status-todo {
  background: #333a47;
  color: #b6bece;
}
[data-theme="dark"] .badge.status-progress {
  background: #29394c;
  color: #a0bada;
}
[data-theme="dark"] .badge.status-waiting {
  background: #493d24;
  color: #cdb583;
}
[data-theme="dark"] .badge.status-done {
  background: #243f33;
  color: #9fc3ad;
}
[data-theme="dark"] .badge.urgent {
  background: #4b302d;
  color: #dfaca1;
}
[data-theme="dark"] .badge.important {
  background: #473c22;
  color: #d2b674;
}
[data-theme="dark"] .badge.shop-hygie {
  background: #2b3b33;
  color: #a6c4b4;
}
[data-theme="dark"] .badge.shop-jlperf {
  background: #323244;
  color: #b4b4d0;
}
@media (min-width: 1500px) {
  .main-content {
    padding-top: 40px;
  }
  .dashboard-stats {
    gap: 17px;
  }
  .stat-card {
    padding: 19px 20px;
    min-height: 130px;
  }
  .stat-value strong {
    font-size: 34px;
  }
  .section-top {
    padding-top: 24px;
    padding-bottom: 20px;
  }
  .task-row {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 260px;
  }
  .sidebar > .brand {
    padding-left: 18px;
    padding-right: 18px;
    font-size: 18px;
  }
  .topbar {
    padding: 0 24px;
    gap: 10px;
  }
  .topbar-right {
    gap: 9px;
  }
  .global-search input {
    width: 125px;
  }
  .profile-name {
    display: none;
  }
  .main-content {
    padding: 27px 24px;
  }
  .app-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .dashboard-stats {
    gap: 9px;
  }
  .stat-card {
    padding: 13px 12px;
  }
  .stat-head {
    font-size: 12px;
  }
  .stat-head .icon {
    width: 14px;
    height: 14px;
  }
  .stat-value strong {
    font-size: 28px;
  }
  .dashboard-grid {
    gap: 16px;
    grid-template-columns: 1.3fr 1fr;
  }
  .dashboard-left,
  .dashboard-right {
    gap: 16px;
  }
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .note-list-head,
  .note-list-row {
    grid-template-columns: minmax(180px, 2fr) 1fr 1fr 80px;
  }
  .note-list-head > :last-child,
  .note-list-row > .mini-avatar {
    display: none;
  }
  .topbar-breadcrumb {
    gap: 11px;
    font-size: 13px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    letter-spacing: -2px;
  }
}
@media (max-width: 1000px) {
  .global-search input {
    width: 90px;
    font-size: 16px;
  }
  .global-search kbd {
    display: none;
  }
  .topbar {
    padding: 0 20px;
  }
  .topbar-breadcrumb .breadcrumb-home,
  .topbar-breadcrumb .breadcrumb-divider {
    display: none;
  }
  .main-content {
    padding: 26px 20px;
  }
  .dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
  }
  .stat-card {
    min-height: 105px;
    padding: 13px 16px;
  }
  .stat-head {
    font-size: 13px;
  }
  .stat-head .icon {
    width: 16px;
    height: 16px;
  }
  .stat-caption {
    font-size: 12px;
  }
  .stat-value strong {
    font-size: 30px;
  }
  .stat-value {
    margin-top: 9px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .dashboard-right > .panel:last-child {
    grid-column: 1/-1;
  }
  .dashboard-right .welcome-panel {
    min-height: 228px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .note-dialog-body {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .editor-sidebar {
    padding: 20px 15px;
  }
  .editor-main {
    padding: 24px;
  }
  .global-search {
    gap: 5px;
  }
  .topbar-right {
    gap: 7px;
  }
  .profile-button {
    padding-left: 9px;
  }
  .topbar .button.compact {
    padding: 7px 9px;
    font-size: 14px;
  }
  .sidebar nav {
    padding-left: 10px;
    padding-right: 10px;
  }
  .nav-item {
    font-size: 14px;
  }
  .calendar-day {
    min-height: 95px;
    padding: 6px;
  }
  .calendar-event {
    font-size: 12px;
  }
}
@media (max-width: 780px) {
  :root {
    --sidebar: 280px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: min(280px, 88vw);
    box-shadow: 10px 0 40px #00000008;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0 !important;
  }
  .collapsed .sidebar > .brand {
    padding: 29px 24px 22px;
  }
  .collapsed .brand > div:not(.brand-mark) {
    display: block;
  }
  .collapsed .workspace-label {
    display: flex;
  }
  .collapsed .nav-group-label {
    display: flex;
  }
  .collapsed .nav-item > span:not(:first-child),
  .collapsed .workspace-shops,
  .collapsed .sidebar-collapse > span:not(:first-child) {
    display: initial;
  }
  .collapsed .nav-item {
    justify-content: initial;
    padding: 8px 12px;
    font-size: 14px;
  }
  .collapsed .nav-item.child {
    display: flex;
    padding-left: 40px;
    font-size: 14px;
  }
  .collapsed .sidebar nav {
    padding-top: 0;
  }
  .collapsed .sidebar-bottom {
    padding: 12px 13px 0;
  }
  .collapsed .sidebar-collapse {
    display: none;
  }
  .sidebar-collapse {
    display: none;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: #11192455;
    backdrop-filter: blur(2px);
  }
  .mobile-menu {
    display: inline-flex;
    margin-right: 8px;
    width: 40px;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .global-search input {
    width: 130px;
  }
  .topbar-breadcrumb {
    font-size: 13px;
  }
  .topbar-right {
    gap: 11px;
  }
  .profile-button {
    display: none;
  }
  .main-content {
    padding: 25px 20px;
  }
  .app-footer {
    padding: 15px 20px 22px;
  }
  .auth-story {
    padding: 30px;
  }
  .auth-story-body {
    padding: 50px 0;
  }
  .auth-story h1 {
    font-size: 41px;
  }
  .auth-story p {
    font-size: 14px;
  }
  .auth-form-wrap {
    padding: 50px 30px;
  }
  .auth-form-inner h2 {
    font-size: 28px;
  }
  .auth-story-footer span {
    display: none;
  }
  .auth-story .brand {
    font-size: 17px;
  }
  .auth-story .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }
  .note-dialog {
    max-height: 95vh;
  }
  .modal-overlay {
    padding: 16px;
  }
  .note-dialog-body {
    grid-template-columns: minmax(0, 1fr) 215px;
  }
  .note-dialog .editor-sidebar .field {
    font-size: 12px;
  }
  .note-dialog .editor-sidebar .input {
    font-size: 16px;
  }
  .calendar-week .calendar-day {
    min-height: 260px;
  }
}
@media (max-width: 600px) {
  .auth-screen {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-form-wrap {
    padding: 100px 25px 70px;
  }
  .auth-mobile-brand {
    display: block;
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 750;
    letter-spacing: -1px;
    font-size: 22px;
  }
  .auth-mobile-brand b {
    color: #c59417;
  }
  .auth-form-inner {
    width: 350px;
  }
  .auth-footnote {
    bottom: 20px;
  }
  .topbar {
    padding: 0 14px;
    gap: 5px;
    height: 62px;
  }
  .topbar-left {
    min-width: 0;
  }
  .topbar-breadcrumb {
    display: none;
  }
  .mobile-menu {
    margin: 0;
    width: 40px;
  }
  .topbar-right {
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }
  .global-search {
    margin-right: auto;
    margin-left: 4px;
  }
  .global-search input {
    width: 120px;
    font-size: 16px;
  }
  .global-search .icon {
    width: 15px;
    height: 15px;
  }
  .new-label {
    display: none;
  }
  .topbar .button.compact {
    width: 40px;
    padding: 7px;
    min-height: 40px;
  }
  .topbar .button .icon {
    width: 17px;
    height: 17px;
  }
  .notification-button {
    width: 40px;
    height: 40px;
  }
  .main-content {
    padding: 24px 16px;
  }
  .page-heading {
    margin-bottom: 22px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 26px;
    margin-top: 6px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    font-size: 13px;
    line-height: 1.8;
  }
  .page-heading .eyebrow {
    font-size: 12px;
  }
  .page-heading-actions {
    gap: 5px;
    align-self: flex-start;
  }
  .date-chip {
    font-size: 12px;
    padding: 7px;
  }
  .date-chip .icon {
    width: 12px;
    height: 12px;
  }
  .page-heading .date-chip {
    display: none;
  }
  .dashboard-stats {
    gap: 9px;
    margin-bottom: 18px;
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-card {
    padding: 12px 10px;
    min-height: 98px;
    border-radius: 9px;
  }
  .stat-head {
    font-size: 12px;
    gap: 3px;
  }
  .stat-head .icon {
    width: 12px;
    height: 12px;
  }
  .stat-value strong {
    font-size: 26px;
  }
  .stat-caption {
    font-size: 12px;
    margin-top: 6px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .dashboard-left,
  .dashboard-right {
    gap: 18px;
  }
  .dashboard-right {
    display: flex;
  }
  .section-top {
    padding: 16px 16px 14px;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .section-title .icon {
    width: 15px;
    height: 15px;
  }
  .task-row {
    padding: 15px 16px;
    gap: 10px;
  }
  .task-row-title {
    font-size: 16px;
  }
  .task-row-meta {
    gap: 5px;
  }
  .badge {
    font-size: 12px;
    padding: 3px 6px;
  }
  .task-row-category {
    font-size: 12px;
  }
  .task-row .due-label {
    font-size: 12px;
  }
  .task-row-right .mini-avatar {
    width: 21px;
    height: 21px;
    font-size: 12px;
  }
  .empty-state {
    min-height: 195px;
  }
  .empty-state.small {
    min-height: 170px;
  }
  .welcome-panel {
    padding: 21px;
  }
  .welcome-panel h2 {
    font-size: 20px;
  }
  .quick-access {
    padding: 13px;
    gap: 8px;
  }
  .quick-card {
    padding: 11px 9px;
  }
  .app-footer {
    padding: 15px 16px 22px;
    font-size: 12px;
  }
  .app-footer .text-button {
    font-size: 14px;
  }
  .app-footer .text-button .icon {
    width: 11px;
    height: 11px;
  }
  .app-footer > span {
    max-width: 190px;
  }
  .toolbar {
    gap: 13px;
    margin-bottom: 15px;
  }
  .filters {
    gap: 6px;
  }
  .filter-select {
    font-size: 16px;
    padding: 7px 20px 7px 8px;
    height: 44px;
    max-width: 155px;
  }
  .view-tools {
    width: 100%;
    justify-content: space-between;
  }
  .view-switch button {
    width: 40px;
    height: 40px;
  }
  .filters .button {
    min-height: 40px;
    padding: 7px 8px;
    font-size: 15px;
  }
  .filter-dates {
    flex-wrap: wrap;
    font-size: 12px;
    gap: 7px;
  }
  .filter-dates .input {
    font-size: 16px;
    width: 123px;
    height: 44px;
  }
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .note-card {
    min-height: 200px;
    padding: 18px;
  }
  .note-card-excerpt {
    font-size: 16px;
    -webkit-line-clamp: 2;
  }
  .note-card h3 {
    font-size: 18px;
  }
  .note-card .badge {
    font-size: 12px;
  }
  .notes-list {
    overflow-x: auto;
  }
  .note-list-head,
  .note-list-row {
    grid-template-columns: minmax(170px, 2fr) 80px 75px 75px;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    min-width: 480px;
  }
  .note-list-title strong {
    font-size: 16px;
  }
  .note-list-title small {
    font-size: 12px;
  }
  .note-list-title .task-check {
    width: 14px;
    height: 14px;
  }
  .note-list-row .badge {
    font-size: 12px;
  }
  .kanban {
    grid-template-columns: repeat(5, 220px);
  }
  .notification-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 68px;
    width: auto;
  }
  .notification-list {
    max-height: 65vh;
  }
  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }
  .note-dialog {
    border-radius: 0;
    max-height: 100vh;
    max-width: 100%;
    width: 100%;
    height: 100dvh;
  }
  .dialog-top {
    padding: 13px 16px;
    gap: 8px;
  }
  .dialog-note-icon {
    width: 30px;
    height: 30px;
  }
  .dialog-heading {
    gap: 8px;
  }
  .dialog-heading > div .eyebrow {
    font-size: 12px;
  }
  .save-state {
    font-size: 12px;
  }
  .dialog-top-actions {
    gap: 8px;
  }
  .dialog-top .button {
    font-size: 15px;
    min-height: 40px;
    padding: 6px 9px;
  }
  .note-dialog-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }
  .editor-main {
    padding: 22px 19px;
    flex: none;
    order: 0;
  }
  .editor-sidebar {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    order: 1;
  }
  .editor-sidebar .editor-meta,
  .editor-sidebar .editor-actions {
    grid-column: 1/-1;
  }
  .editor-sidebar > .button {
    grid-column: 1/-1;
  }
  .editor-sidebar .field .input {
    height: 44px;
    font-size: 16px;
  }
  .editor-title {
    font-size: 24px;
  }
  .rich-editor {
    min-height: 165px;
    font-size: 17px;
  }
  .editor-actions {
    grid-template-columns: repeat(3, 1fr);
  }
  .editor-actions .button {
    min-height: 40px;
  }
  .editor-meta {
    font-size: 12px;
    line-height: 1.7;
  }
  .business-fields {
    padding: 13px;
    gap: 12px;
  }
  .editor-tabs {
    gap: 18px;
  }
  .editor-tab {
    font-size: 12px;
  }
  .confirm-overlay {
    align-items: center;
    padding: 20px;
  }
  .confirm-dialog {
    border-radius: 14px;
    padding: 24px;
  }
  .toast-region {
    left: 14px;
    right: 14px;
    bottom: 17px;
    max-width: none;
  }
  .toast {
    font-size: 14px;
    padding: 13px;
  }
  .calendar-toolbar {
    gap: 12px;
  }
  .calendar-navigation {
    gap: 5px;
  }
  .calendar-navigation h2 {
    font-size: 16px;
    min-width: 132px;
    margin: 0 4px;
  }
  .calendar-navigation .button {
    font-size: 15px;
    padding: 6px 8px;
    min-height: 40px;
  }
  .calendar-navigation .icon-button {
    width: 40px;
    height: 40px;
  }
  .calendar-navigation .icon-button .icon {
    width: 14px;
    height: 14px;
  }
  .calendar-view {
    width: 100%;
  }
  .calendar-view button {
    flex: 1;
  }
  .calendar-weekday {
    font-size: 12px;
    padding: 11px 4px;
    letter-spacing: 0.4px;
  }
  .calendar-day {
    padding: 5px 3px;
    min-height: 85px;
  }
  .day-number {
    font-size: 12px;
    width: 20px;
    height: 20px;
    margin-bottom: 5px;
  }
  .calendar-event {
    padding: 3px 3px;
    font-size: 12px;
    border-left-width: 1px;
  }
  .calendar-legend {
    justify-content: flex-start;
    gap: 14px;
    font-size: 12px;
  }
  .calendar-week .calendar-day {
    min-height: 230px;
  }
  .calendar-week .calendar-event {
    font-size: 12px;
    padding: 4px;
  }
  .pagination {
    font-size: 12px;
  }
  .pagination .button {
    font-size: 15px;
  }
  .workspace-intro {
    font-size: 12px;
    gap: 7px;
    padding-top: 16px;
    margin-top: 20px;
  }
  .loading-content {
    padding: 60px 20px;
  }
  .auth-help p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.custom-logo {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  object-fit: contain;
  flex: none;
}
.editor-template {
  max-width: 250px;
  margin-top: 16px;
}
.editor-template .field {
  font-size: 12px;
  font-weight: 500;
  color: #6a7381;
}
.editor-template .input {
  font-size: 16px;
  height: 44px;
}
.attachment-hint {
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0;
}
.calendar-more {
  font-size: 12px;
  margin-top: 3px;
}
.notes-empty-caption {
  font-size: 13px;
}
.editor-help {
  font-size: 13px;
}
.collapsed .sidebar .custom-logo {
  margin: 0;
}
.nav-icon {
  display: inline-flex;
  flex: none;
}
.nav-item .nav-icon .icon {
  color: inherit;
}

/* Comfortable reading and touch targets remain consistent at narrow widths. */
.section-top {
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  min-width: 0;
}
.section-title h2 {
  overflow-wrap: anywhere;
}
.field small {
  font-size: 13px;
  line-height: 1.6;
}
.input,
select.input,
textarea.input {
  font-size: 16px;
}
.editor-toolbar button,
.calendar-view button {
  min-width: 40px;
  min-height: 40px;
}
.task-check {
  width: 24px;
  height: 24px;
}
.task-check::before {
  content: "";
  position: absolute;
  inset: -8px;
}
.task-check {
  position: relative;
}
.attachment-row .icon-button {
  width: 40px;
  height: 40px;
}
@media (max-width: 600px) {
  .topbar {
    min-height: 68px;
  }
  .topbar-left {
    flex: none;
  }
  .topbar-right {
    min-width: 0;
    gap: 6px;
  }
  .global-search {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  .global-search input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }
  .stat-head {
    font-size: 13px;
  }
  .stat-head .icon {
    display: none;
  }
  .stat-card {
    min-width: 0;
  }
  .note-list-head,
  .note-list-row {
    min-width: 640px;
  }
  .editor-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dialog-top {
    flex-wrap: wrap;
  }
  .dialog-top-actions {
    margin-left: auto;
  }
  .calendar-navigation {
    flex-wrap: wrap;
  }
}

.welcome-panel p {
  font-size: 15px;
  color: #6d6040;
}
.file-upload input {
  font-size: 16px;
}
.workspace-shops {
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 10px;
  padding-right: 10px;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .note-list-title .task-check {
    width: 24px;
    height: 24px;
  }
}
