/* BIOS split — do not edit planner.css; source of truth is css/*.css */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) var(--bg);
  overflow-anchor: none;
  height: 100%;
  overflow: hidden;
}
body {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sys-nav {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  background: var(--bg);
  z-index: 45;
  overflow: visible;
}
.sys-nav-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: calc(100% - 24px);
}
.sys-nav-slot:not(.sys-tools) {
  display: none;
}
.sys-tools {
  position: absolute;
  top: 0;
  right: 12px;
  z-index: 46;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 3px;
  padding: 0;
  overflow: visible;
}
.sys-tools .user-menu {
  align-items: flex-start;
}
.sys-tools .user-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  margin-top: 5px;
  font-size: 20px;
}
.sys-menu-actions {
  position: absolute;
  top: 0;
  right: 76px;
  z-index: 46;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 3px;
}
.sys-menu-action-label {
  display: none;
}
.work-clock {
  position: relative;
  z-index: 47;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  height: auto;
  min-width: 0;
  padding: 3px 10px 3px 6px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--bg-2);
  color: var(--ink-3);
  pointer-events: auto;
  flex-shrink: 0;
}
.work-clock[hidden] {
  display: none;
}
body.is-locked .work-clock {
  display: none;
}
.work-clock-face {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  line-height: 1.1;
}
.work-clock-time {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.work-clock-label {
  position: static;
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  color: var(--ink-3);
  white-space: nowrap;
}
.work-clock-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
}
.work-clock-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.work-clock-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}
.work-clock-btn:hover:not(:disabled) {
  color: var(--ink-2);
  background: var(--lift);
}
.work-clock-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.work-clock.is-closed {
  opacity: 0.4;
  filter: grayscale(1);
  pointer-events: none;
  color: var(--gray);
}
.work-clock.is-closed .work-clock-time,
.work-clock.is-closed .work-clock-label,
.work-clock.is-closed .work-clock-btn {
  color: var(--gray);
}
.work-clock-btn.is-on {
  color: var(--ink-2);
}
.screen-hist {
  position: relative;
  z-index: 47;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 34px;
  height: auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--bg-2);
  color: var(--ink-3);
  pointer-events: auto;
  flex-shrink: 0;
}
.screen-hist[hidden] {
  display: none;
}
body.is-locked .screen-hist {
  display: none;
}
.screen-hist-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.screen-hist-btn svg {
  display: block;
}
.screen-hist-btn:hover:not(:disabled) {
  color: var(--ink);
  background: var(--lift);
}
.screen-hist-btn:disabled {
  opacity: 0.28;
  cursor: default;
  color: var(--ink-3);
}
.sys-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 34px;
  height: auto;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--bg-2);
  overflow: visible;
}
.sys-tab {
  height: 28px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  text-transform: uppercase;
}
.sys-tab:hover {
  color: var(--ink-2);
  background: var(--lift);
}
.sys-tab.is-on,
.sys-tab.is-on:hover {
  background: var(--surface);
  color: var(--violet);
}
.sys-tab.is-gold,
.sys-tab.is-gold:hover {
  color: var(--gold);
}
.sys-tab.is-gold.is-on,
.sys-tab.is-gold.is-on:hover {
  background: var(--surface);
  color: var(--gold);
}
.stat-icon.sys-burger {
  display: none;
}
.sys-menu-pop {
  display: flex;
  justify-content: center;
}
.sys-menu-glass {
  display: none;
}
@media (max-width: 900px) {
  .sys-tools {
    align-items: center;
    gap: 6px;
  }

  .sys-nav-center {
    justify-content: flex-start;
    max-width: none;
    width: 100%;
    padding-right: 84px;
  }

  .work-clock {
    align-items: center;
    min-width: 0;
  }

  .sys-tools .user-avatar {
    margin-top: 0;
  }

  .stat-icon.sys-burger {
    display: inline-flex;
    position: static;
    color: var(--ink);
    background: transparent;
    border: 0;
  }

  .sys-nav-center {
    max-width: none;
  }

  .sys-menu-pop {
    display: none;
  }

  body.sys-menu-open .sys-menu-pop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 58px;
    left: auto;
    right: 8px;
    z-index: 200;
    width: min(280px, calc(100vw - 16px));
    max-height: calc(100dvh - 72px);
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    box-shadow: var(--shadow);
    gap: 2px;
  }

  body.sys-menu-open .sys-bar {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 2px;
  }

  body.sys-menu-open .sys-menu-action[hidden] {
    display: none;
  }

  body.sys-menu-open .sys-tab,
  body.sys-menu-open .sys-menu-action {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
    justify-content: flex-start;
    gap: 10px;
  }

  body.sys-menu-open .sys-menu-actions {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 6px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
  }

  body.sys-menu-open .sys-menu-action-label {
    display: inline;
    font-size: 14px;
    text-transform: lowercase;
    color: var(--ink-2);
  }

  .sys-menu-glass {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: var(--overlay);
  }

  body.sys-menu-open .sys-menu-glass {
    display: block;
  }
}
.sys-empty {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) var(--bg);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--scroll);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-3);
}
::-webkit-scrollbar-corner {
  background: var(--bg);
}
.planner-top.topbar {
  flex-shrink: 0;
  border-bottom: 0;
  background: none;
  backdrop-filter: none;
}
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
html[data-theme="light"] .brand-logo {
  filter: invert(1);
}
.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 3px;
}
.brand-version {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
}
.planner-top .brand-block {
  gap: 6px;
}
.brand-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
button.portal-master {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--ink-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.55;
  line-height: 0;
  font: inherit;
}
button.portal-master:hover,
button.portal-master.is-on {
  opacity: 1;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
button.portal-master svg {
  display: block;
  width: 13px;
  height: 13px;
}
button.portal-master[hidden] {
  display: none !important;
}
.save-status {
  flex-shrink: 0;
  margin-left: 4px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--ink-3);
  white-space: nowrap;
}
.save-status.is-saving {
  color: var(--ink-3);
}
.save-status.is-retry,
.save-status.is-offline {
  color: var(--ink-2);
}
.save-status.is-error {
  color: var(--rose);
}
.tabs-row {
  position: sticky;
  top: 64px;
  z-index: 35;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 0 18px;
  overflow: visible;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top-tools {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  box-sizing: border-box;
  height: 41px;
  margin: 0 0 -1px auto;
  padding: 0 0 8px 8px;
  overflow: visible;
}
.tabs-row.is-tools-only .top-tools {
  height: 49px;
  padding-top: 7px;
}
.people-crumb,
.brand-sub .people-crumb {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.people-crumb:hover,
.brand-sub .people-crumb:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.people-crumb.is-now,
.brand-sub .people-crumb.is-now {
  cursor: default;
  text-decoration: none;
}
.brand-sub {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.stat-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  position: relative;
}
.stat-icon.has-msg::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
#chatIcon.has-msg::after,
#chatIcon.has-unread::after {
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--rose);
  box-shadow: 0 0 0 1.5px var(--surface-2);
}
#chatIcon.has-unread::after {
  animation: chat-unread-dot 1.05s ease-in-out infinite;
}
@keyframes chat-unread-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.22; transform: scale(0.72); }
}
@media (prefers-reduced-motion: reduce) {
  #chatIcon.has-unread::after {
    animation: none;
  }
}
.stat-icon svg {
  display: block;
}
.stat-icon svg[hidden] {
  display: none;
}
.user-menu {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  overflow: visible;
}
.user-avatar {
  box-sizing: border-box;
  width: 51px;
  height: 51px;
  min-width: 51px;
  padding: 0;
  border: 1.5px solid var(--ink-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -17px;
}
.user-avatar img,
.user-list-avatar img,
.user-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-avatar:hover,
.user-menu:focus-within .user-avatar {
  border-color: var(--ink);
  background: transparent;
}
.user-avatar.is-on,
.user-avatar.is-on:hover,
.user-menu:focus-within .user-avatar.is-on {
  border-color: var(--violet);
  background: transparent;
  box-shadow: none;
  outline: none;
}
.user-menu-pop {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  z-index: 200;
  min-width: 220px;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.user-menu-pop::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
}
.user-menu-pop.fly-pop {
  overflow: visible;
}
.user-menu:hover .user-menu-pop,
.user-menu:focus-within .user-menu-pop {
  display: block;
}
.user-menu-as {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
  padding: 4px 8px 8px;
}
.user-menu-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.user-menu-link:hover {
  color: var(--violet);
  background: var(--violet-2);
}
.user-menu-link.is-on {
  color: var(--violet);
}
.stat-icon:hover {
  color: var(--ink);
  background: transparent;
}
.stat-icon.is-on,
.stat-icon.is-on:hover {
  background: transparent;
  color: var(--violet);
  box-shadow: none;
  outline: none;
}
.page-tabs[hidden] {
  display: none !important;
}
.page-tabs {
  position: static;
  top: auto;
  z-index: auto;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 7px 0 0;
  background: transparent;
  border-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.page-tabs::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.page-tab {
  flex-shrink: 0;
  height: 34px;
  margin: 0 0 -1px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom-color: transparent;
  border-radius: 10px 10px 0 0;
  background: var(--bg-2);
  color: var(--ink-3);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.page-tab:hover {
  color: var(--ink-2);
  background: var(--lift);
}
.page-tab.is-on {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--green);
  border-bottom-color: var(--green);
}
.page-tab.is-lead,
.page-tab.is-lead:hover,
.page-tab.is-lead.is-on {
  color: var(--ink);
  font-weight: 700;
}
.page-tab-label {
  position: relative;
  display: inline-block;
  line-height: 1.15;
}
.page-tab.has-due .page-tab-label,
.page-tab.has-mark .page-tab-label {
  padding-right: 8px;
}
.page-tab-mark,
.page-tab-due {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.page-tab-mark {
  background: var(--blue);
}
.page-tab-mark.is-open {
  background: var(--blue);
}
.page-tab-mark.is-late,
.page-tab-mark.is-due,
.page-tab-due {
  background: var(--rose);
}
.page-tab-mark.is-due,
.page-tab-due {
  animation: page-tab-due-blink 1.2s ease-in-out infinite;
}
.page-tab.is-red,
.page-tab.is-red:hover,
.page-tab.is-red.is-on {
  color: var(--rose);
}
.page-tab.is-yellow,
.page-tab.is-yellow:hover,
.page-tab.is-yellow.is-on {
  color: var(--orange);
}
.page-tab.is-gold,
.page-tab.is-gold:hover,
.page-tab.is-gold.is-on {
  color: var(--gold);
}
.page-tab.is-green,
.page-tab.is-green:hover,
.page-tab.is-green.is-on {
  color: var(--green);
}
.page-tab.is-blue,
.page-tab.is-blue:hover,
.page-tab.is-blue.is-on {
  color: var(--blue);
}
.page-tab.is-violet,
.page-tab.is-violet:hover,
.page-tab.is-violet.is-on {
  color: var(--violet);
}
.page-tab.is-brown,
.page-tab.is-brown:hover,
.page-tab.is-brown.is-on,
.page-tab.is-white,
.page-tab.is-white:hover,
.page-tab.is-white.is-on {
  color: var(--brown);
}
.page-tab.is-teal,
.page-tab.is-teal:hover,
.page-tab.is-teal.is-on {
  color: #3dcec0;
}
.page-tab.is-gray,
.page-tab.is-gray:hover,
.page-tab.is-gray.is-on {
  color: var(--gray);
}
.page-tabs.is-service .page-tab,
.page-tabs.is-service .page-tab.is-red,
.page-tabs.is-service .page-tab.is-yellow,
.page-tabs.is-service .page-tab.is-gold,
.page-tabs.is-service .page-tab.is-green,
.page-tabs.is-service .page-tab.is-blue,
.page-tabs.is-service .page-tab.is-violet,
.page-tabs.is-service .page-tab.is-brown,
.page-tabs.is-service .page-tab.is-white,
.page-tabs.is-service .page-tab.is-teal,
.page-tabs.is-service .page-tab.is-gray {
  background: var(--bg-2);
  color: var(--ink-3);
  border-color: var(--line);
  border-bottom-color: transparent;
}
.page-tabs.is-service .page-tab:hover,
.page-tabs.is-service .page-tab.is-red:hover,
.page-tabs.is-service .page-tab.is-yellow:hover,
.page-tabs.is-service .page-tab.is-gold:hover,
.page-tabs.is-service .page-tab.is-green:hover,
.page-tabs.is-service .page-tab.is-blue:hover,
.page-tabs.is-service .page-tab.is-violet:hover,
.page-tabs.is-service .page-tab.is-brown:hover,
.page-tabs.is-service .page-tab.is-white:hover,
.page-tabs.is-service .page-tab.is-teal:hover,
.page-tabs.is-service .page-tab.is-gray:hover {
  color: var(--violet);
  background: var(--violet-2);
}
.page-tabs.is-service .page-tab.is-on,
.page-tabs.is-service .page-tab.is-on:hover,
.page-tabs.is-service .page-tab.is-red.is-on,
.page-tabs.is-service .page-tab.is-yellow.is-on,
.page-tabs.is-service .page-tab.is-gold.is-on,
.page-tabs.is-service .page-tab.is-green.is-on,
.page-tabs.is-service .page-tab.is-blue.is-on,
.page-tabs.is-service .page-tab.is-violet.is-on,
.page-tabs.is-service .page-tab.is-brown.is-on,
.page-tabs.is-service .page-tab.is-white.is-on,
.page-tabs.is-service .page-tab.is-teal.is-on,
.page-tabs.is-service .page-tab.is-gray.is-on {
  background: var(--surface);
  color: var(--violet);
  border: 1px solid var(--violet);
  border-bottom-color: var(--violet);
}
.page-tab-add {
  min-width: 36px;
  padding: 0 12px;
  font-size: 18px;
  line-height: 1;
}
.page-tab-cal {
  min-width: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-tab-cal svg {
  display: block;
}
.page-tabs.is-planner .page-tab {
  height: 26px;
  padding: 0 9px;
  font-size: 11px;
  border-radius: 8px 8px 0 0;
}
.page-tabs.is-planner .page-tab-cal,
.page-tabs.is-planner .page-tab.is-lead {
  height: 34px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 10px 10px 0 0;
}
.page-tabs.is-planner .page-tab-cal {
  padding: 0 10px;
}
.page-tabs.is-planner .page-tab-cal svg {
  width: 18px;
  height: 18px;
}
.page-tab-due {
  box-shadow: 0 0 0 0 rgba(224, 112, 112, 0.45);
}
@keyframes page-tab-due-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(224, 112, 112, 0.5);
  }
  50% {
    opacity: 0.28;
    transform: scale(0.82);
    box-shadow: 0 0 8px 2px rgba(224, 112, 112, 0.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-tab-due,
  .page-tab-mark.is-due {
    animation: none;
    opacity: 1;
  }
}
@keyframes task-flash {
  0%, 100% {
    outline-color: var(--green);
    box-shadow: 0 0 0 0 rgba(61, 186, 143, 0);
  }
  50% {
    outline-color: #7ee0b8;
    box-shadow: 0 0 0 6px rgba(61, 186, 143, 0.38);
  }
}
@media (prefers-reduced-motion: reduce) {
  .task.is-flash,
  .task.is-ping {
    animation: none;
  }
}
@keyframes due-pulse {
  0%, 100% {
    border-color: color-mix(in srgb, var(--rose) 35%, var(--line));
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    border-color: var(--rose);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--rose) 70%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .task.is-due,
  .task.is-event.is-due,
  .task.is-meeting.is-due,
  .task.is-session.is-due,
  .task.is-done.is-due {
    animation: none;
  }
}
.fly-pop {
  position: fixed !important;
  z-index: 200 !important;
  right: auto;
  bottom: auto;
  margin: 0;
  overflow: auto;
}
@media (max-width: 700px) {
  .project-card-row {
    grid-template-columns: 1fr;
  }

  .project-card-row.is-name {
    grid-template-columns: 1fr auto;
  }
}
.project-card-ava,
.project-card .user-avatar-preview.project-card-ava {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  font-size: 12px;
}
.dir-corp-ava {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1b1a16;
  border: 1px solid var(--line);
}
.dir-corp-ava img {
  width: 20px;
  height: auto;
  display: block;
}
html[data-theme="light"] .dir-corp-ava {
  background: #f3eee4;
}
html[data-theme="light"] .dir-corp-ava img {
  filter: invert(1);
}
.dir-empty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dir-duty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 42px;
}
.dir-duty-label {
  font-size: 11px;
  color: var(--ink-3);
}
.dir-duty-area {
  min-height: 52px;
}
.dir-share-warn {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rose);
  border-radius: 8px;
  background: color-mix(in srgb, var(--rose) 10%, var(--surface));
}
.dir-share-warn p {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 13px;
}
.dir-share-warn-btn {
  margin: 0;
  padding: 5px 10px;
  border: 0;
  border-radius: 8px;
  background: var(--lift);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.dir-share {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
  color: var(--ink-2);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dir-share-input {
  width: 3.2em;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.dir-settle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.dir-money-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
}
.dir-money-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
}
.dir-money-item em {
  font-style: normal;
  color: inherit;
  opacity: 0.8;
}
.dir-money-item b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dir-money-item.is-in,
.dir-money-item.is-in em,
.dir-money-item.is-in b {
  color: var(--rose);
}
.dir-money-item.is-got,
.dir-money-item.is-got em,
.dir-money-item.is-got b {
  color: var(--blue);
}
.dir-money-item.is-pay,
.dir-money-item.is-pay em,
.dir-money-item.is-pay b {
  color: var(--ink-3);
}
.dir-money-item.is-profit,
.dir-money-item.is-profit em,
.dir-money-item.is-profit b {
  color: var(--green);
}
.dir-money-item.is-loss,
.dir-money-item.is-loss em,
.dir-money-item.is-loss b {
  color: var(--rose);
}
.dir-money-roi {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.dir-money-edit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dir-money-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-3);
}
@media (max-width: 700px) {
  .project-card .crm-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .dir-money-edit {
    grid-template-columns: minmax(0, 1fr);
  }
}
.add-box {
  margin-top: 10px;
  min-width: 0;
  max-width: 100%;
}
.add-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.add-foot {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.add-plus-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.add-arch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.add-arch-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.add-archive-count {
  color: var(--ink-3);
  font-size: 13px;
}
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.add-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.add-plus {
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}
.add-plus.is-on {
  color: var(--ink);
}
.add-menu-modal {
  position: fixed;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 148px;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.add-menu-modal .add-link {
  text-align: left;
  padding: 5px 8px;
  border-radius: 8px;
  text-decoration: none;
}
.add-menu-modal .add-link:hover {
  background: var(--lift);
  color: var(--ink);
}
.side-note {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 36px));
  padding: 6px 8px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 28px));
  transition: transform 0.28s ease;
}
.side-note.is-open {
  transform: translateX(0);
}
.side-note.is-error {
  border-color: var(--rose);
}
.side-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0 2px 8px;
}
.side-note-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}
.side-note-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.side-note-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 4px 10px 8px;
  border: 0;
  background: transparent;
}
.side-note-list.is-many {
  gap: 8px;
  padding-top: 4px;
}
.side-note-list.is-many .side-note-item {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.side-note-list.is-many .side-note-item.is-error {
  border-color: var(--rose);
}
.side-note-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
}
.side-note-item.is-error .side-note-text {
  color: var(--rose);
}
.side-note-dump {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.side-note-dump + .side-note-btn {
  margin-top: 8px;
  align-self: flex-start;
}
.side-note-x,
.side-note-item-x {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.side-note-x:hover,
.side-note-item-x:hover {
  background: var(--lift);
  color: var(--ink);
}
.side-note-x svg,
.side-note-item-x svg {
  display: block;
}
.side-note-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.side-note-btn {
  margin: 0;
  padding: 5px 10px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.side-note-btn.is-danger {
  background: var(--rose-2);
  color: var(--rose);
}
.side-note-btn.is-ok {
  background: var(--green-2);
  color: var(--green-deep);
}
.side-note-btn:hover {
  filter: brightness(1.06);
}
body.is-locked .side-note {
  display: none;
}
body.is-locked .side-note.is-error {
  display: flex;
  z-index: 260;
}
body.chat-docked > .planner-top,
body.chat-docked > .tabs-row,
body.chat-docked > .workspace,
body.chat-docked > .sys-empty {
  margin-left: 360px;
  width: calc(100% - 360px);
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .task-chat-tab.has-unread::before,
  .task-chat-tab-inbox.has-mail .task-chat-inbox-dot {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .task-chat-person.has-unread::before {
    animation: none;
  }
}
@media (max-width: 860px) {
  body.chat-docked > .planner-top,
  body.chat-docked > .tabs-row,
  body.chat-docked > .workspace,
  body.chat-docked > .sys-empty {
    margin-left: 0;
    width: 100%;
  }

  .task-chat.is-dock {
    width: min(360px, 100vw);
    max-width: 100vw;
  }
}
.add-archive.is-on {
  color: var(--ink-2);
}
.add-label {
  color: var(--ink-3);
}
.add-link-task.is-on {
  color: var(--ink-2);
}
.add-link-event.is-on {
  color: var(--blue);
}
.add-link-meeting.is-on {
  color: var(--orange);
}
.add-link-session.is-on {
  color: var(--green);
}
.add-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
  max-width: 100%;
}
.add-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.add-title,
.add-when input:not([type="checkbox"]),
.add-deadline input,
.add-extra,
.add-task input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
}
.add-when {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.add-when.is-meet {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.add-meet-place {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.add-place {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.add-place-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.add-place-check input {
  margin: 0;
  accent-color: var(--violet);
}
.add-place-check.is-on {
  color: var(--ink);
}
.add-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.add-title-row .add-title {
  flex: 1;
  width: auto;
  min-width: 0;
}
.add-when input:not([type="checkbox"]),
.add-deadline input {
  color-scheme: dark;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
}
.add-when input::-webkit-datetime-edit,
.add-when input::-webkit-datetime-edit-fields-wrapper,
.add-when input::-webkit-datetime-edit-text,
.add-when input::-webkit-datetime-edit-month-field,
.add-when input::-webkit-datetime-edit-day-field,
.add-when input::-webkit-datetime-edit-year-field,
.add-when input::-webkit-datetime-edit-hour-field,
.add-when input::-webkit-datetime-edit-minute-field,
.add-when input::-webkit-datetime-edit-ampm-field,
.add-deadline input::-webkit-datetime-edit,
.add-deadline input::-webkit-datetime-edit-fields-wrapper,
.add-deadline input::-webkit-datetime-edit-text,
.add-deadline input::-webkit-datetime-edit-month-field,
.add-deadline input::-webkit-datetime-edit-day-field,
.add-deadline input::-webkit-datetime-edit-year-field {
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  padding: 0;
}
.add-when input::-webkit-datetime-edit {
  min-width: 0;
}
.add-poll {
  width: auto;
  max-width: none;
  min-width: 0;
  height: 24px;
  min-height: 24px;
  padding: 0 8px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--orange);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}
.add-poll:hover {
  border-color: var(--orange);
}
.add-poll.is-session {
  color: var(--green);
}
.add-poll.is-session:hover {
  border-color: var(--green);
}
.add-note {
  height: auto;
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.35;
}
.add-deadline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.add-deadline-mark {
  flex-shrink: 0;
  color: var(--rose);
  font-weight: 700;
}
.add-deadline-empty {
  flex-shrink: 0;
  color: var(--ink-3);
  font-size: 12px;
}
.add-deadline input {
  color: var(--rose);
  color-scheme: dark;
  min-width: 0;
}
.add-title:focus,
.add-when input:not([type="checkbox"]):focus,
.add-deadline input:focus,
.add-extra:focus,
.add-task input:focus {
  outline: none;
  border-color: var(--green);
}
.add-title::placeholder,
.add-extra::placeholder {
  color: var(--ink-3);
}
.calendar {
  padding: 14px;
}
.analytics {
  padding: 18px 20px 28px;
  min-width: 0;
}
.profile-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px 28px;
}
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 16px;
}
body.is-locked > .sys-nav,
body.is-locked > .topbar,
body.is-locked > .tabs-row,
body.is-locked > .workspace,
body.is-locked > .sys-empty {
  filter: blur(18px) saturate(0.45) brightness(0.62);
  pointer-events: none;
  user-select: none;
}
.auth-out {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.auth-out:hover {
  color: var(--violet);
  background: var(--violet-2);
}
.auth-layer {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-glass {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(26px) saturate(0.55);
  -webkit-backdrop-filter: blur(26px) saturate(0.55);
}
.auth-modal {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.auth-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
}
.auth-lead {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}
.auth-form {
  display: grid;
  gap: 12px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.auth-field span {
  font-size: 12px;
  color: var(--ink-2);
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.auth-field input:focus,
.auth-submit:focus {
  outline: 0;
  border-color: var(--ink-3);
}
.auth-error {
  margin: 0;
  color: var(--rose);
  font-size: 12px;
}
.auth-submit {
  justify-self: start;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--green-2);
  color: var(--green-deep);
  font: inherit;
  cursor: pointer;
}
.auth-submit:hover {
  filter: brightness(1.06);
}
.pass-reveal {
  position: relative;
  display: block;
  min-width: 0;
}
.pass-reveal input {
  padding-right: 42px;
  user-select: text;
  -webkit-user-select: text;
}
.pass-reveal-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pass-reveal-btn:hover,
.pass-reveal-btn.is-on {
  color: var(--ink);
}
.pass-reveal-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
.bug-layer {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bug-glass {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(26px) saturate(0.55);
  -webkit-backdrop-filter: blur(26px) saturate(0.55);
}
.bug-modal {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.bug-title {
  margin: 0 0 16px;
}
.bug-form {
  display: grid;
  gap: 12px;
}
.bug-text {
  width: 100%;
  box-sizing: border-box;
  min-height: 120px;
  resize: vertical;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}
.bug-text:focus {
  outline: 0;
  border-color: var(--ink-3);
}
#bizLayer input:focus::placeholder,
#bizLayer textarea:focus::placeholder,
#bizLayer input:focus::-webkit-input-placeholder,
#bizLayer textarea:focus::-webkit-input-placeholder {
  color: transparent;
  opacity: 0;
}
.bug-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 96px;
  overflow: auto;
}
.bug-thumb {
  position: relative;
  width: 64px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bug-thumb img {
  display: block;
  width: 64px;
  height: 48px;
  object-fit: cover;
}
.bug-thumb-name {
  display: block;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--ink-2);
  word-break: break-word;
}
.bug-thumb-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}
.bug-attach-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bug-attach-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--lift);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.bug-attach-btn:hover {
  color: var(--ink);
}
.bug-attach-hint {
  color: var(--ink-3);
  font-size: 12px;
}
.file-layer {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.file-glass {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(26px) saturate(0.55);
  -webkit-backdrop-filter: blur(26px) saturate(0.55);
}
.file-modal {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.file-close {
  display: inline-flex;
  margin-bottom: 12px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--lift);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.file-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 8px;
}
.file-open {
  display: inline-block;
  color: var(--ink);
  font-size: 15px;
}
.tabs-row[hidden],
.workspace[hidden],
.sys-empty[hidden],
.board[hidden],
.calendar[hidden],
.analytics[hidden],
.cal-tools[hidden],
.day-bar[hidden],
.day-tabs[hidden],
.day-filters[hidden],
.day-row[hidden],
.col-add-btn[hidden],
.stat-icon[hidden],
.top-tools[hidden],
.bug-layer[hidden],
.file-layer[hidden],
.file-img[hidden],
.file-open[hidden],
.bug-thumbs[hidden],
.auth-out[hidden],
.user-menu[hidden],
.auth-who[hidden],
.auth-layer[hidden],
.auth-error[hidden],
.bug-form[hidden],
.bug-thanks[hidden],
.sys-menu-glass[hidden],
.project-card-link[hidden],
.project-card[hidden],
.side-note[hidden] {
  display: none !important;
}
.bug-thanks {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.user-list-avatar,
.user-avatar-preview {
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lift);
  color: var(--ink);
  font-weight: 500;
  line-height: 1;
}
.user-avatar-edit {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-avatar-preview {
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 22px;
}
.user-avatar-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.user-field input.user-avatar-file {
  display: none;
}
@media (max-width: 760px) {
  .users-grid,
  .user-pay-row,
  .user-row {
    grid-template-columns: 1fr;
  }

  .user-row-end {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .user-live {
    white-space: normal;
  }
}
@media (max-width: 760px) {
  .log-box-head {
    flex-wrap: wrap;
  }

  .log-row,
  .log-row.is-head {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
}
@media (max-width: 800px) {
  .biz-edit {
    grid-template-columns: 1fr;
  }

  .biz-edit-note {
    grid-column: auto;
  }
}
@media (max-width: 1320px) {
  .portal {
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  }

  .portal-side.is-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (max-width: 980px) {
  .portal {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 16px 40px;
  }

  .portal-side.is-right {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-work img {
    height: 280px;
  }
}
.sys-empty.is-embed {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .tool-split {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }

  .tool-split > .tool-section {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .tool-split > .tool-section:first-child {
    padding-right: 0;
    padding-bottom: 32px;
  }

  .tool-split > .tool-section:last-child {
    padding-left: 0;
    padding-top: 32px;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 900px) {
  .tool-motiv-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@keyframes src-hub-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 10px color-mix(in srgb, var(--src-accent) 16%, transparent),
      0 18px 40px -18px rgba(0, 0, 0, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 16px color-mix(in srgb, var(--src-accent) 24%, transparent),
      0 18px 40px -18px rgba(0, 0, 0, 0.55);
  }
}
@keyframes src-hub-pulse-neon {
  0%, 100% {
    box-shadow:
      0 0 18px color-mix(in srgb, var(--src-accent) 55%, transparent),
      0 0 0 10px color-mix(in srgb, var(--src-accent) 22%, transparent),
      0 18px 40px -18px rgba(0, 0, 0, 0.55);
  }
  50% {
    box-shadow:
      0 0 28px color-mix(in srgb, var(--src-accent) 80%, transparent),
      0 0 0 16px color-mix(in srgb, var(--src-accent) 32%, transparent),
      0 18px 40px -18px rgba(0, 0, 0, 0.55);
  }
}
@media (max-width: 760px) {
  .src-map {
    height: min(70vh, 640px);
    min-height: 420px;
  }
}
@media (max-width: 1100px) {
  .tool-codes {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .library-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .lk-finance,
  .lk-charts,
  .lk-eff,
  .lk-kv,
  .lk-todo-add,
  .lk-job-add {
    grid-template-columns: 1fr;
  }

  .lk-job-add .lk-pace,
  .lk-job-add .cta {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}
@media (max-width: 1100px) {
  .crm-list.is-wide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .crm-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-list.is-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-bar-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-prod-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-prod-actions {
    position: static;
    transform: none;
    justify-self: center;
    padding: 4px 0 0;
  }

  .crm-prod-chart {
    justify-self: start;
  }
}
@media (max-width: 1100px) {
  .stats-kpis,
  .crm-summary-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-stages {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .stats-kpis,
  .stats-stages,
  .crm-summary-kpis,
  .crm-hub {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
body.is-tg {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.is-tg .auth-card {
  max-width: 420px;
}
@media (max-width: 700px) {
  .wd-add,
  .wd-metrics {
    grid-template-columns: 1fr;
  }

  .wd-card .wd-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
.view-spinner {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  pointer-events: none;
}
.view-spinner[hidden] {
  display: none !important;
}
.view-spinner-logo {
  width: 40px;
  height: auto;
  display: block;
  animation: view-spin 0.85s linear infinite;
  filter: drop-shadow(0 4px 12px color-mix(in srgb, #000 30%, transparent));
}
html[data-theme="light"] .view-spinner-logo {
  filter: invert(1) drop-shadow(0 4px 12px color-mix(in srgb, #000 16%, transparent));
}
@keyframes view-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 720px) {
  .equip-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .equip-hw-form {
    grid-template-columns: minmax(0, 1fr);
  }
}
.bios-debug-link {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.bios-debug-link:hover,
.bios-debug-link.is-on {
  color: #ffe14d;
}
#biosDebugLayer {
  position: fixed;
  inset: 0;
  z-index: 480;
  pointer-events: none;
}
.bios-debug-star {
  position: fixed;
  z-index: 481;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffe14d;
  font: 700 22px/14px Georgia, "Times New Roman", serif;
  text-shadow: 0 0 4px #000, 0 1px 0 #000;
  cursor: pointer;
  pointer-events: auto;
}
.bios-debug-star:hover {
  color: #fff36a;
  transform: scale(1.15);
}
#biosDebugTip {
  position: fixed;
  z-index: 482;
  max-width: min(360px, calc(100vw - 16px));
  padding: 6px 8px;
  border-radius: 8px;
  background: #1a1a12;
  color: #ffe14d;
  font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  white-space: pre-wrap;
}
.page-tab.is-git-corp,
.page-tab.is-git-corp:hover,
.page-tab.is-git-corp.is-on,
.page-tab.is-git-corp .page-tab-label,
.page-tab.is-git-corp.is-on .page-tab-label {
  color: #ffe14d;
  border-color: #ffe14d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}
.page-tab.is-git-corp {
  background: transparent;
}
.page-tab.is-git-corp:hover {
  color: #fff36a;
  background: rgba(255, 225, 77, 0.08);
}
.page-tab.is-git-corp.is-on {
  color: #ffe14d;
  background: rgba(255, 225, 77, 0.12);
  border-bottom-color: #ffe14d;
}
.brand-sub.is-git-corp {
  color: #ffe14d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.git-corp {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 48px;
  color: var(--ink);
}
.git-corp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.git-corp-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  color: #ffe14d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.git-corp-meta {
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-3);
}
.git-corp-meta strong {
  color: #ffe14d;
  font-weight: 650;
}
.git-corp-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.git-corp-actions button,
.git-corp-pane button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--lift);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.git-corp-actions button:hover,
.git-corp-pane button:hover {
  border-color: #ffe14d;
  color: #ffe14d;
}
.git-corp-body {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 16px;
  align-items: start;
}
.git-corp-log,
.git-corp-pane {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  min-height: 240px;
}
.git-corp-log {
  overflow: auto;
  max-height: calc(100vh - 220px);
}
.git-corp-commit {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}
.git-corp-commit:hover {
  background: var(--lift);
}
.git-corp-commit.is-on {
  background: rgba(255, 225, 77, 0.1);
}
.git-corp-commit.is-head .git-corp-hash {
  color: #ffe14d;
}
.git-corp-hash {
  font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-3);
}
.git-corp-subj {
  margin-top: 3px;
  font-size: 13px;
}
.git-corp-when {
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}
.git-corp-pane {
  padding: 14px;
}
.git-corp-pane h2 {
  margin: 0 0 8px;
  font-size: 16px;
}
.git-corp-files {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.git-corp-files button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.git-corp-diff {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: #111;
  color: #d8d8d0;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow: auto;
  max-height: 420px;
  white-space: pre-wrap;
}
.git-corp-err {
  color: var(--rose);
  font-size: 13px;
}
.git-corp-backups {
  margin-top: 18px;
  font-size: 13px;
}
.git-corp-backups li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--ink-3);
  margin: 4px 0;
}
@media (max-width: 860px) {
  .git-corp-body {
    grid-template-columns: 1fr;
  }
}

.user-menu-tool {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-menu-tool[hidden] {
  display: none !important;
}
.user-menu-tool svg {
  flex: 0 0 auto;
}
.sys-idea-menu {
  position: relative;
}
.sys-idea-pop {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 80;
  min-width: 220px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.sys-idea-pop[hidden] {
  display: none !important;
}
.sys-idea-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.sys-idea-item svg {
  flex: 0 0 auto;
}
.sys-idea-item:hover,
.sys-idea-item.is-on {
  color: var(--violet);
  background: var(--violet-2);
}
body.sys-menu-open .sys-idea-menu {
  width: 100%;
}
body.sys-menu-open .sys-idea-pop {
  position: static;
  min-width: 0;
  margin-top: 4px;
  box-shadow: none;
}

.user-menu-pop .bios-debug-link {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border-radius: 8px;
}
.user-menu-pop .bios-debug-link[hidden] {
  display: none !important;
}
.user-menu-pop .bios-debug-link:hover,
.user-menu-pop .bios-debug-link.is-on {
  background: rgba(255, 225, 77, 0.08);
}

.sys-empty.is-backup {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.sys-empty.is-backup .backup-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: var(--bg);
}

.user-menu-as {
  max-width: 280px;
}
.system-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.system-bios {
  align-items: flex-start;
}
.system-bios-btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 16px;
}
.system-bios-btn.is-on {
  color: #ffe14d;
  border-color: #ffe14d;
}
