:root {
  color-scheme: light;
  --page-bg: #f4f8fc;
  --page-text: #102033;
  --page-muted: #64748b;
  --page-card: #ffffff;
  --page-line: #cbd8e6;
  --page-primary: #2563eb;
  --page-danger: #c9362c;
  --font-sans: "M PLUS Rounded 1c", ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --app-viewport-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 300;
}

@supports (height: 100dvh) {
  :root {
    --app-viewport-height: 100dvh;
  }
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: var(--font-sans);
  font-weight: 300;
}

body.is-panel-resizing,
body.is-panel-resizing * {
  -webkit-user-select: none !important;
  user-select: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  font-weight: 300;
}

h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
  font-weight: 500;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 420px);
  border: 1px solid var(--page-line);
  border-radius: 8px;
  background: var(--page-card);
  box-shadow: 0 20px 46px rgba(24, 25, 30, 0.12);
  padding: 28px;
}

.login-card-head {
  margin-bottom: 22px;
}

.login-card-head p,
.login-muted {
  margin: 0;
  color: var(--page-muted);
}

.login-card-head p {
  margin-bottom: 7px;
  color: var(--page-primary);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.login-form,
.login-field {
  display: grid;
}

.login-form {
  gap: 14px;
}

.login-field {
  gap: 7px;
}

.login-field span {
  color: #41454c;
  font-size: 0.92rem;
  font-weight: 500;
}

.login-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--page-line);
  border-radius: 8px;
  background: #fff;
  color: var(--page-text);
  padding: 0 12px;
  outline: 0;
}

.login-input:focus {
  border-color: var(--page-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.login-input::placeholder {
  color: var(--page-muted);
  opacity: 0.56;
}

.login-password-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--page-line);
  border-radius: 8px;
  background: #fff;
  padding: 0 6px 0 12px;
}

.login-password-box:focus-within {
  border-color: var(--page-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.login-password-box .login-input {
  min-height: 40px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.login-password-box .ui-input-action {
  color: var(--page-muted);
}

.login-password-box .ui-input-action:hover,
.login-password-box .ui-input-action:focus-visible,
.login-password-box .ui-input-action:active {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.28);
  color: var(--page-primary);
}

.login-button,
.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 500;
}

.login-button {
  border: 1px solid var(--page-primary);
  background: var(--page-primary);
  color: #fff;
  cursor: pointer;
}

.login-link {
  margin-top: 18px;
  border: 1px solid var(--page-line);
  color: var(--page-text);
  text-decoration: none;
}

.login-alert {
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(201, 54, 44, 0.1);
  color: var(--page-danger);
  padding: 10px 12px;
  font-weight: 500;
}

.login-alert p {
  margin: 0;
}

.login-error {
  color: var(--page-danger);
  font-size: 0.82rem;
}

.app-page {
  position: relative;
  height: var(--app-viewport-height);
  min-height: 800px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--page-bg);
  color: var(--text);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
  gap: 10px;
  width: min(100%, 2360px);
  min-width: 1512px;
  height: var(--app-viewport-height);
  min-height: 100%;
  margin: 0 auto;
  padding: 10px;
}

.app-shell.is-sidebar-collapsed {
  grid-template-columns: 58px minmax(0, 1fr);
}

.app-sidebar,
.app-side-panel,
.app-page-header,
.app-content-filter-bar,
.app-workspace {
  border: 2px solid var(--line-strong);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  box-shadow: var(--shadow);
}

.app-main-column {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.app-content-with-notes {
  --app-content-row-min-width: 870px;
  --workspace-side-stack-width: 500px;
  --workspace-side-stack-min-width: 340px;
  display: grid;
  flex: 1 1 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(120px, 1fr) auto auto;
  column-gap: 10px;
  min-width: 0;
  min-height: 0;
}

.app-content-with-notes--with-side {
  grid-template-columns:
    minmax(var(--app-content-row-min-width), 1fr)
    10px
    minmax(var(--workspace-side-stack-min-width), var(--workspace-side-stack-width));
  grid-template-rows: minmax(490px, 1fr) auto auto;
  column-gap: 0;
}

.app-content-with-notes > .app-content-primary {
  grid-column: 1;
  grid-row: 1;
}

.app-content-primary {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.app-content-with-notes--with-side > .app-content-primary {
  min-width: var(--app-content-row-min-width);
}

.app-content-primary > .app-content-row {
  flex: 1 1 0;
}

.app-content-row {
  display: flex;
  flex: 1 1 0;
  min-width: 870px;
  min-height: 0;
  gap: 10px;
}

.app-content-row > .app-workspace {
  min-width: 0;
}

.app-content-row--with-side {
  min-height: 0;
}

.app-sidebar,
.app-side-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 8px 10px;
  overflow: auto;
}

.app-sidebar {
  height: calc(var(--app-viewport-height) - 20px);
}

.app-side-panel {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.app-side-panel.workspace-side-panel {
  flex: 0 0 400px;
  width: 400px;
  max-width: 400px;
}

.notes-panel-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
}

.notes-panel-actions .ui-button[hidden] {
  display: none;
}

.notes-layout-toggle .ui-icon,
.notes-side-position-toggle .ui-icon,
.shift-text-position-toggle .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.workspace-side-stack {
  display: flex;
  min-height: 0;
  flex: 0 0 500px;
  width: 500px;
  max-width: 500px;
  flex-direction: column;
  gap: 10px;
}

.workspace-side-stack > .workspace-side-panel {
  display: flex;
  min-height: 0;
  flex: 1 1 0;
  width: 100%;
  max-width: none;
}

.workspace-side-stack .workspace-side-panel {
  flex: 1 1 0;
  width: 100%;
  max-width: none;
}

.app-content-with-notes > .workspace-side-stack,
.app-content-with-notes > .workspace-side-panel {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  max-width: none;
}

.app-content-with-notes > .workspace-side-stack {
  height: 100%;
  min-height: 0;
}

.app-content-with-notes > .workspace-side-panel {
  height: 100%;
  min-height: 0;
}

.workspace-side-stack--resizable {
  gap: 0;
  overflow: hidden;
}

.workspace-side-stack--resizable [data-shift-tasks-panel] {
  flex: 1 1 0;
  min-height: 240px;
}

.workspace-side-stack--resizable [data-shift-text-panel] {
  flex: 0 0 var(--shift-text-panel-height, 50%);
  height: var(--shift-text-panel-height, auto);
  min-height: 240px;
}

.workspace-side-stack--shift-text-before [data-shift-text-panel] {
  order: 1;
}

.workspace-side-stack--shift-text-before [data-shift-text-panel-resize] {
  order: 2;
}

.workspace-side-stack--shift-text-before [data-shift-tasks-panel] {
  order: 3;
}

.shift-text-resize-handle {
  flex: 0 0 10px;
  width: 100%;
  min-height: 10px;
  cursor: row-resize;
}

.workspace-side-resize-handle {
  grid-column: 2;
  grid-row: 1;
  width: 10px;
  height: 100%;
  min-height: 0;
  cursor: col-resize;
}

.workspace-side-resize-handle::before {
  top: 50%;
  width: 2px;
  height: 84px;
  max-width: none;
  max-height: 55%;
  margin: auto;
  margin-top: -42px;
}

.panel-dock-row {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 3;
  flex: 0 0 auto;
  height: auto;
  max-height: none;
  min-height: 120px;
  align-items: stretch;
  overflow: hidden;
  width: 100%;
}

.app-content-with-notes > [data-notes-sidebar-resize] {
  grid-column: 1 / -1;
  grid-row: 2;
}

.app-shell.is-notes-layout-side .app-content-with-notes {
  display: flex;
  flex-direction: row;
  column-gap: 0;
}

.app-shell.is-notes-layout-side .app-content-primary {
  flex: 1 1 0;
  min-width: var(--app-content-row-min-width);
  order: 1;
}

.app-shell.is-notes-layout-side .app-content-row {
  flex: 1 1 0;
}

.app-shell.is-notes-layout-side .workspace-side-resize-handle {
  order: 2;
}

.app-shell.is-notes-layout-side .app-content-row--with-side {
  min-height: 0;
}

.app-shell.is-notes-layout-side .app-content-with-notes > .workspace-side-stack {
  order: 3;
  flex: 0 0 var(--workspace-side-stack-width);
  width: var(--workspace-side-stack-width);
  min-width: var(--workspace-side-stack-min-width);
  max-width: none;
  min-height: 0;
}

.app-shell.is-notes-layout-side .app-content-with-notes > .workspace-side-panel {
  order: 3;
  flex: 0 0 var(--workspace-side-stack-width);
  width: var(--workspace-side-stack-width);
  min-width: var(--workspace-side-stack-min-width);
  max-width: none;
  height: auto;
  min-height: 0;
}

.app-shell.is-notes-layout-side .panel-dock-row {
  order: 5;
  flex: 0 0 360px;
  width: 360px;
  min-width: 340px;
  max-width: min(730px, 48%);
  height: auto;
  min-height: 0;
}

.app-shell.is-notes-layout-side [data-notes-sidebar-resize] {
  order: 4;
}

.app-shell.is-notes-layout-side.is-notes-side-before [data-notes-sidebar-resize] {
  order: 2;
}

.app-shell.is-notes-layout-side.is-notes-side-before .panel-dock-row {
  order: 3;
}

.app-shell.is-notes-layout-side.is-notes-side-before .workspace-side-resize-handle {
  order: 4;
}

.app-shell.is-notes-layout-side.is-notes-side-before .app-content-with-notes > .workspace-side-stack,
.app-shell.is-notes-layout-side.is-notes-side-before .app-content-with-notes > .workspace-side-panel {
  order: 5;
}

.panel-resize-handle {
  flex: 0 0 10px;
  width: 100%;
  min-height: 10px;
  cursor: row-resize;
  touch-action: none;
  user-select: none;
}

.app-shell.is-notes-layout-side .panel-resize-handle {
  width: 10px;
  height: auto;
  min-height: 0;
  cursor: col-resize;
}

.panel-resize-handle::before {
  content: '';
  position: relative;
  top: 4px;
  display: block;
  height: 2px;
  width: 84px;
  max-width: 55%;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--line-strong);
  transition: background 120ms ease;
}

.app-shell.is-notes-layout-side .panel-resize-handle::before {
  top: 50%;
  width: 2px;
  height: 84px;
  max-width: none;
  max-height: 55%;
  margin: auto;
  margin-top: -42px;
}

.app-shell.is-notes-layout-side .shift-text-resize-handle {
  width: 100%;
  height: auto;
  min-height: 10px;
  cursor: row-resize;
}

.app-shell.is-notes-layout-side .shift-text-resize-handle::before {
  top: 4px;
  width: 84px;
  height: 2px;
  max-width: 55%;
  max-height: none;
  margin: 0 auto;
}

.panel-resize-handle.workspace-side-resize-handle,
.app-shell.is-notes-layout-side .panel-resize-handle.workspace-side-resize-handle {
  width: 10px;
  height: 100%;
  min-height: 0;
  cursor: col-resize;
}

.workspace-side-resize-handle::before {
  top: 50%;
  width: 2px;
  height: 84px;
  max-width: none;
  max-height: 55%;
  margin: auto;
  margin-top: -42px;
}

.panel-resize-handle:hover::before,
.panel-resize-handle:active::before,
.panel-resize-handle:focus-visible::before {
  background: var(--interactive-strong);
}

.app-shell.is-notes-sidebar-collapsed [data-notes-sidebar-resize] {
  display: none;
}

.app-shell.is-notes-sidebar-collapsed .shift-text-resize-handle {
  display: block;
}

.account-panel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.account-logo {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, var(--interactive-bg), var(--surface-muted));
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.account-logo i {
  position: absolute;
  right: 1px;
  bottom: 4px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--success);
}

.account-text {
  min-width: 0;
}

.account-text strong,
.account-text span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-text strong {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.2;
}

.account-collapse-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 0 solid var(--line);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.account-collapse-button:hover,
.account-collapse-button:focus-visible,
.account-collapse-button:active {
  border-color: var(--interactive-strong);
  background: var(--interactive-bg);
  box-shadow: 0 0 0 2px var(--interactive-soft);
  outline: 0;
}

.account-collapse-button .ui-icon {
  width: 1rem;
  height: 1rem;
}

.side-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  min-width: 0;
}

.side-panel-title {
  min-width: 0;
}

.side-panel-title strong {
  display: block;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-panel-content {
  display: flex;
  min-height: 0;
  height: 100%;
  flex: 1;
  align-items: stretch;
  overflow: visible;
  min-width: 0;
  flex-direction: column;
}

.side-panel-body {
  display: flex;
  min-height: 0;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  margin: -4px;
  padding: 4px;
  overflow: auto;
}

.side-panel-body .ui-quill {
  flex: 1 1 auto;
}

.formatted-text-output {
  color: var(--text);
  line-height: 1.5;
}

.panel-section-body.formatted-text-output {
  line-height: 1.28;
}

.panel-section-body.formatted-text-output p,
.panel-section-body.formatted-text-output ol,
.panel-section-body.formatted-text-output ul,
.panel-section-body.formatted-text-output blockquote,
.panel-section-body.formatted-text-output pre {
  margin-block: 0 0.55em;
}

.panel-section-body.formatted-text-output h1,
.panel-section-body.formatted-text-output h2,
.panel-section-body.formatted-text-output h3,
.panel-section-body.formatted-text-output h4,
.panel-section-body.formatted-text-output h5,
.panel-section-body.formatted-text-output h6 {
  margin-block: 0.65em 0.35em;
  line-height: 1.18;
}

.panel-section-body.formatted-text-output ol,
.panel-section-body.formatted-text-output ul {
  padding-left: 1.3em;
}

.formatted-text-output :first-child {
  margin-top: 0;
}

.formatted-text-output :last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .formatted-text-output [style*="color" i],
[data-theme="dark"] .shift-event-description [style*="color" i] {
  color: inherit !important;
}

[data-theme="dark"] .formatted-text-output [style*="background" i],
[data-theme="dark"] .shift-event-description [style*="background" i] {
  background: transparent !important;
}

[data-theme="dark"] .formatted-text-output a,
[data-theme="dark"] .shift-event-description a {
  color: var(--interactive-strong) !important;
}

.sidebar-menu {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 6px;
}

.sidebar-menu-group {
  display: grid;
  gap: 7px;
}

.sidebar-menu-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.sidebar-menu-list {
  display: grid;
  gap: 2px;
}

.sidebar-menu-form {
  display: contents;
}

.sidebar-menu-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 300;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  padding: 0 9px;
}

.sidebar-menu-item--no-icon {
  grid-template-columns: minmax(0, 1fr) auto;
}

.sidebar-menu-initials {
  display: none;
}

.sidebar-menu-item:hover,
.sidebar-menu-item:focus-visible {
  border-color: var(--line);
  background: var(--surface-muted);
  outline: 0;
}

.sidebar-menu-item.active {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.sidebar-menu-item--shift-active {
  border-color: color-mix(in srgb, var(--success) 50%, var(--line));
  background: color-mix(in srgb, var(--success-soft) 80%, var(--surface-muted));
}

.sidebar-menu-item--shift-active .sidebar-menu-text,
.sidebar-menu-item--shift-active .ui-icon,
.sidebar-menu-item--shift-active .sidebar-menu-initials {
  color: var(--success);
}

.sidebar-menu-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-menu-item .ui-icon {
  width: 1.18rem;
  height: 1.18rem;
  color: var(--muted);
  transition: transform 160ms ease;
}

.sidebar-menu-item--notes .ui-icon {
  width: 1.34rem;
  height: 1.34rem;
}

.sidebar-menu-item.active .ui-icon {
  color: var(--text);
}

.sidebar-menu-item.active .sidebar-menu-initials {
  color: var(--text);
}

.sidebar-menu-tree {
  display: grid;
  gap: 2px;
  width: 100%;
}

.sidebar-menu-tree.is-open > .sidebar-menu-item .ui-icon:last-child {
  transform: rotate(180deg);
}

.sidebar-submenu {
  display: grid;
  gap: 4px;
  padding-left: 16px;
}

.sidebar-submenu[hidden] {
  display: none;
}

.sidebar-submenu .sidebar-menu-item {
  min-height: 34px;
  /*color: var(--muted);*/
}

.sidebar-submenu .sidebar-menu-item.active {
  color: var(--text);
}

.sidebar-menu-item .ui-badge {
  min-height: 24px;
  border-color: var(--line-strong);
  background: var(--surface-muted);
  color: var(--text);
  padding: 0 8px;
}

.sidebar-menu-theme {
  user-select: none;
}

.sidebar-menu-theme .ui-switch {
  justify-self: end;
}

.sidebar-menu-spacer {
  flex: 1;
  min-height: 14px;
}

.app-shell.is-sidebar-collapsed .app-sidebar {
  align-items: center;
  padding: 8px 6px;
  overflow: hidden auto;
}

.app-shell.is-sidebar-collapsed .account-panel {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.app-shell.is-notes-sidebar-collapsed [data-notes-side],
.app-shell.is-notes-sidebar-collapsed .panel-dock-row {
  display: none;
}

.app-shell.is-sidebar-collapsed .account-logo {
  width: 42px;
  height: 42px;
  font-size: 0.88rem;
}

.app-shell.is-sidebar-collapsed .account-logo i {
  right: 0;
  bottom: 3px;
}

.app-shell.is-sidebar-collapsed .account-text,
.app-shell.is-sidebar-collapsed .sidebar-menu-label,
.app-shell.is-sidebar-collapsed .sidebar-menu-text,
.app-shell.is-sidebar-collapsed .sidebar-menu-item .ui-badge,
.app-shell.is-sidebar-collapsed .sidebar-menu-item .ui-icon + .ui-icon,
.app-shell.is-sidebar-collapsed .sidebar-menu-theme .ui-switch {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell.is-sidebar-collapsed .sidebar-menu {
  width: 100%;
  gap: 12px;
}

.app-shell.is-sidebar-collapsed .sidebar-menu-group,
.app-shell.is-sidebar-collapsed .sidebar-menu-list,
.app-shell.is-sidebar-collapsed .sidebar-menu-tree,
.app-shell.is-sidebar-collapsed .sidebar-submenu {
  justify-items: center;
  width: 100%;
}

.app-shell.is-sidebar-collapsed .sidebar-submenu {
  padding-left: 0;
}

.app-shell.is-sidebar-collapsed .sidebar-menu-item {
  display: flex;
  width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.app-shell.is-sidebar-collapsed .sidebar-menu-item .ui-icon {
  width: 1.12rem;
  height: 1.12rem;
}

.app-shell.is-sidebar-collapsed .sidebar-menu-item--no-icon .sidebar-menu-initials {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.app-shell.is-sidebar-collapsed .sidebar-menu-item--no-icon.active .sidebar-menu-initials {
  color: var(--text);
}

.app-shell.is-sidebar-collapsed .sidebar-menu-item--no-icon.sidebar-menu-item--shift-active .sidebar-menu-initials {
  color: var(--success);
}

.app-shell.is-sidebar-collapsed .sidebar-menu-item--notes .ui-icon {
  width: 1.26rem;
  height: 1.26rem;
}

.app-workspace {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  padding: 10px;
}

.app-page-header {
  display: flex;
  flex: 0 0 auto;
  margin-bottom: 10px;
  min-height: 70px;
  align-items: center;
  justify-content: stretch;
  padding: 10px;
}

.app-page-header .page-toolbar {
  width: 100%;
}

.app-content-filter-bar {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  padding: 10px;
}

.app-content-filter-group {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.app-content-filter-label {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.app-content-filter-field {
  width: 170px;
}

.app-content-filter-field--time {
  width: 138px;
}

.app-content-filter-group--target-types {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  max-width: 100%;
}

.app-content-filter-bar .app-content-filter-target-select {
  flex: 0 0 250px;
  width: 250px;
  max-width: 250px;
  min-width: 0;
}

.app-content-filter-bar .app-content-filter-target-select .ui-select-button--multi {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.app-content-filter-bar .app-content-filter-target-select .ui-token-list {
  width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
  overflow: hidden;
}

.app-content-filter-bar .app-content-filter-target-select .ui-token-list--text {
  display: block;
  white-space: nowrap;
}

.app-content-filter-bar .app-content-filter-target-select .ui-token-summary {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-content-filter-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-start;
}

.app-workspace--scroll {
  overflow: auto;
}

.app-workspace--active-shift {
  display: flex;
  flex-direction: column;
}

.app-workspace--active-shift .active-shift-region {
  flex: 1 1 auto;
  min-height: 100%;
}

.app-workspace--active-shift .active-shift-live-container:has(.active-shift-empty):not(:has(.active-shift-empty-history)) {
  display: grid;
  min-height: 100%;
  place-items: center;
}

.active-shift-empty-state {
  display: grid;
  gap: 14px;
  width: 100%;
}

.active-shift-empty-history {
  display: grid;
  gap: 14px;
  width: 100%;
}

.event-summary-empty.active-shift-empty {
  width: min(100%, 560px);
  justify-content: center;
  min-height: 86px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}

.app-workspace--scroll .uikit-page {
  width: min(100% - 20px, 1480px);
  padding: 20px 0;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: 8px;
  /*box-shadow: var(--tile-shadow);*/
}

.subdivisions-grid .subdivision-tile,
.management-grid .management-tile {
  min-height: 0;
}

.subdivisions-grid .subdivision-tile .component-body,
.management-grid .management-tile .component-body {
  display: flex;
  height: 660px;
  min-height: 0;
  flex-direction: column;
}

.subdivisions-grid .subdivision-tile .component-body > [data-live-region],
.management-grid .management-tile .component-body > [data-live-region] {
  flex: 1 1 auto;
}

.subdivisions-grid .subdivision-tile .table-scroll,
.management-grid .management-tile .table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.subdivisions-grid .subdivision-tile .data-table,
.management-grid .management-tile .data-table {
  min-width: 0;
}

.data-table {
  min-width: 680px;
  border: 0;
  border-radius: 0;
}

[data-events-list] {
  display: grid;
  gap: 12px;
}

.create-event-targets {
  position: relative;
  display: inline-flex;
  justify-self: end;
}

.create-event-targets__dropdown {
  position: absolute;
  z-index: 40;
  top: 100%;
  right: 0;
  display: grid;
  width: min(280px, calc(100vw - 24px));
  max-height: min(420px, calc(100vh - 120px));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  overflow-y: auto;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    visibility 140ms ease;
  visibility: hidden;
}

.create-event-targets:hover .create-event-targets__dropdown,
.create-event-targets:focus-within .create-event-targets__dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.create-event-targets__row {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 36px;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  transition: background 140ms ease;
}

.create-event-targets__row:hover,
.create-event-targets__row:focus-within {
  background: var(--interactive-bg);
}

.create-event-targets__name {
  display: block;
  flex: 1 1 auto;
  overflow: hidden;
  width: auto;
  min-width: 0;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0 10px;
  text-overflow: ellipsis;
  text-align: left;
  white-space: nowrap;
  transition: padding-right 140ms ease;
}

.create-event-targets__name:focus-visible {
  outline: none;
}

.create-event-targets__row:hover .create-event-targets__name,
.create-event-targets__row:focus-within .create-event-targets__name {
  padding-right: 10px;
}

.create-event-targets__amounts {
  display: flex;
  flex: 0 0 0;
  overflow: hidden;
  width: 0;
  border: 0 solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.create-event-targets__row:hover .create-event-targets__amounts,
.create-event-targets__row:focus-within .create-event-targets__amounts {
  flex-basis: 116px;
  width: 116px;
  border-width: 1px;
  opacity: 1;
  pointer-events: auto;
}

.create-event-targets__amount {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--interactive-strong);
  font-size: 0.78rem;
  font-weight: 700;
  place-items: center;
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.create-event-targets__amount:first-child {
  border-left: 0;
}

.create-event-targets__amount:hover,
.create-event-targets__amount:focus-visible {
  outline: none;
  background: var(--interactive-bg);
  color: var(--interactive-strong);
}

.event-target-fields {
  display: grid;
  gap: 10px;
}

.event-target-fields__rows {
  display: grid;
  gap: 10px;
}

.event-target-row {
  display: grid;
  grid-template-columns: minmax(0, calc(50% - 5px)) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.event-target-fields.is-single-target-row .event-target-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-target-row__remove {
  align-self: end;
  width: 38px;
  height: 38px;
}

.event-target-row__remove[hidden] {
  display: none;
}

.event-target-fields__add {
  width: 100%;
  justify-content: center;
}

.event-strike-object-list,
.event-strike-object-rows {
  display: grid;
  gap: 10px;
}

.event-strike-object-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  min-width: 0;
}

.event-strike-object-list.is-single-strike-result-row .event-strike-object-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-strike-result-row__remove {
  align-self: end;
  width: 38px;
  height: 38px;
}

.event-strike-result-row__remove[hidden] {
  display: none;
}

.event-strike-object-list__add {
  width: 100%;
  justify-content: center;
}

@media (max-width: 760px) {
  .event-strike-object-fields {
    grid-template-columns: 1fr;
  }
}

.event-creator-divider {
  display: grid;
  min-height: 24px;
  align-items: center;
  justify-items: center;
  border: 1px solid color-mix(in srgb, var(--line-strong) 72%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.event-creator-divider span {
  overflow: hidden;
  max-width: 100%;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-content: start;
}

.panel-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.panel-section-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.shift-card .shift-content-grid {
  min-height: 0;
}

.panel-section h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.panel-section--previous-shift-detections {
  gap: 20px;
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 66%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-muted) 62%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 72%, transparent);
  padding: 26px;
}

.panel-section--previous-shift-detections .panel-section-header {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  padding-bottom: 12px;
}

.panel-section--previous-shift-detections h3,
.panel-section--previous-shift-detections .side-panel-title strong {
  color: var(--text);
  /*font-size: 19px;*/
}

.panel-section--previous-shift-detections .panel-section-body {
  padding-top: 2px;
}

.previous-shifts-stack {
  display: grid;
  gap: 16px;
}

.previous-shift-card {
  display: grid;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 14px;
}

.previous-shift-card-header {
  display: flex;
  min-width: 0;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  padding-bottom: 12px;
}

.previous-shift-card-body {
  min-height: 0;
}

[data-theme="dark"] .panel-section--previous-shift-detections {
  background: color-mix(in srgb, var(--surface-muted) 48%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 36%, transparent);
}

.shift-history-divider {
  display: flex;
  grid-column: 1 / -1;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0;
  border: 1px dashed color-mix(in srgb, var(--muted) 44%, transparent);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--muted) 12%, transparent) 0,
      color-mix(in srgb, var(--muted) 12%, transparent) 8px,
      transparent 8px,
      transparent 18px
    ),
    color-mix(in srgb, var(--surface-muted) 72%, transparent);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 10px 16px;
  text-transform: uppercase;
}

.shift-history-divider span {
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 4px 12px;
}

[data-theme="dark"] .shift-history-divider {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.11) 0,
      rgba(255, 255, 255, 0.11) 8px,
      transparent 8px,
      transparent 18px
    ),
    rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .shift-history-divider span {
  border-color: rgba(255, 255, 255, 0.18);
  background: color-mix(in srgb, var(--surface) 82%, #0f172a);
}

.record-list {
  display: grid;
  gap: 8px;
}

.record-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(142, 163, 188, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-strong);
}

.record-line > span,
.record-line > strong,
.record-line .ui-choice {
  min-width: 0;
}

.record-line > span {
  color: var(--text-muted);
}

[data-theme='dark'] .record-line {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.event-card {
  overflow: hidden;
  width: 100%;
  border: 3px solid color-mix(in srgb, var(--interactive-strong) 38%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 6px 17px rgba(28, 52, 88, 0.12);
}

.event-card--zone-own {
  border-color: #168b4f;
}

.event-card--zone-other {
  border-color: #f0a04a;
}

.event-card-head {
  display: grid;
  min-height: 52px;
  grid-template-columns: minmax(110px, 0.1fr) minmax(100px, 250px) minmax(auto, 200px) minmax(130px, 1.2fr) auto;
  align-items: stretch;
  gap: 25px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
  padding: 9px 8px;
}

.event-card-head[data-event-strikes-toggle],
.event-body-summary[data-event-strikes-toggle] {
  cursor: pointer;
}

.event-meta,
.event-identity {
  display: flex;
  min-width: 0;
  min-height: 100%;
  align-items: center;
  gap: 7px;
}

.event-meta:not(:first-child),
.event-identity {
  border-left: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  padding-left: 20px;
}

.event-meta-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--interactive-strong);
}

.event-meta-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.event-meta div {
  width: 100%;
}

.event-meta strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-meta--time strong {
  font-size: 1.42rem;
}

.event-meta span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-identity {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.25;
}

.event-actions {
  align-self: center;
  display: grid;
  grid-template-columns: 28px 28px;
  align-items: center;
  justify-content: end;
  gap: 6px;
  min-width: 86px;
}

.event-actions__stream,
.event-actions__buttons {
  display: grid;
  justify-items: center;
}

.event-actions__stream {
  min-width: 34px;
}

.event-actions__buttons {
  gap: 6px;
}

.action-icon {
  width: 1em;
  height: 1em;
}

[aria-label="Відкрити стрім"] .action-icon {
  width: 1.32em;
  height: 1.32em;
}

.event-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.event-body-summary {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(560px, 1.2fr);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.event-body-summary--with-actions {
  grid-template-columns: minmax(320px, 0.4fr) minmax(420px, 1.2fr) auto;
}

.event-summary-panel {
  min-width: 0;
  padding: 8px;
}

.event-summary-panel--zone-own,
.event-summary-panel--zone-other {
  border-top: 3px solid var(--zone-panel-accent);
  background: var(--zone-panel-bg);
}

.event-summary-panel--zone-own {
  --zone-panel-bg: rgba(232, 246, 236, 0.78);
  --zone-panel-accent: #168b4f;
}

.event-summary-panel--zone-other {
  --zone-panel-bg: rgba(255, 241, 225, 0.86);
  --zone-panel-accent: #f0a04a;
}

[data-theme="dark"] .event-summary-panel--zone-own {
  --zone-panel-bg: rgba(22, 139, 79, 0.18);
}

[data-theme="dark"] .event-summary-panel--zone-other {
  --zone-panel-bg: rgba(240, 160, 74, 0.18);
}

.event-summary-panel + .event-summary-panel {
  border-left: 3px solid var(--zone-panel-accent);
}

.event-summary-panel--results,
.event-summary-panel--actions {
  background: transparent;
}

.event-summary-panel + .event-summary-panel--actions {
  border-left: 0;
}

.object-chip-list {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.object-chip {
  display: grid;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 55px;
  flex: 0 1 auto;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: 6px;
  /*background: color-mix(in srgb, var(--surface) 92%, transparent);*/
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgb(234 243 255 / 92%)), var(--surface);
  color: var(--text);
  padding: 4px 10px 4px 6px;
  box-shadow: 0 2px 8px rgba(28, 52, 88, 0.06);
}

[data-theme="dark"] .object-chip {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgb(255 255 255 / 0%), rgb(234 243 255 / 14%)), var(--surface);
  box-shadow: none;
}

.object-chip-list--status .object-chip {
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: start;
}

.object-chip .ui-icon {
  grid-row: 1 / 3;
  grid-column: 1;
  align-self: center;
  width: 29px;
  height: 29px;
  color: color-mix(in srgb, var(--text) 78%, var(--interactive-strong));
}

.object-chip-target-symbol {
  grid-row: 1 / 3;
  grid-column: 1;
  align-self: center;
  width: 42px;
  height: 34px;
  overflow: visible;
  color: color-mix(in srgb, var(--text) 86%, var(--interactive-strong));
}

.object-chip-target-symbol .nato-target-symbol-frame {
  fill: color-mix(in srgb, #dc2626 7%, transparent);
  stroke: #dc2626;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.object-chip-target-symbol .nato-target-symbol-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.object-chip-target-symbol .nato-target-symbol-icon text {
  fill: currentColor;
  stroke: none;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.object-chip-list--status .object-chip > .ui-icon {
  grid-column: 2;
}

.object-chip-list--status .object-chip > .object-chip-target-symbol {
  grid-column: 2;
}

.object-status-icon {
  display: inline-grid;
  grid-row: 1 / 3;
  grid-column: 1;
  width: 29px;
  height: 29px;
  align-self: center;
  place-items: center;
  color: #566980;
}

.object-status-glyph {
  display: block;
  color: currentColor;
  font-size: 29px;
  line-height: 1;
}

.object-status-icon--destroyed {
  color: #f33131;
}

.object-status-icon--damaged {
  color: #f33131;
}

.object-status-icon--safe {
  color: #566980;
}

.object-chip-main,
.object-chip small {
  display: block;
}

.object-chip-main {
  grid-row: 1;
  grid-column: 2;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.object-chip-list--status .object-chip-main {
  width: 100%;
  justify-content: space-between;
}

.object-chip strong {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.object-chip small {
  grid-row: 2;
  grid-column: 2;
  overflow-wrap: anywhere;
  /*margin-top: 4px;*/
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.1;
  white-space: normal;
}

.object-chip-list--status .object-chip strong,
.object-chip-list--status .object-chip-main,
.object-chip-list--status .object-chip small {
  grid-column: 3;
}

.object-chip-status {
  flex: 0 0 auto;
  line-height: 1;
  white-space: nowrap;
}

.event-summary-empty {
  display: flex;
  min-height: 62px;
  align-items: center;
  margin: 0;
  border: 1px dashed color-mix(in srgb, var(--muted) 46%, transparent);
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--muted) 12%, transparent) 0,
      color-mix(in srgb, var(--muted) 12%, transparent) 8px,
      transparent 8px,
      transparent 18px
    ),
    color-mix(in srgb, var(--surface-muted) 74%, transparent);
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 14px 16px;
}

.event-card--no-strikes .event-body-summary {
  border-bottom: 0;
}

.object-chip--code-200,
.object-chip--destroyed {
  color: #1d8040;
}

.object-chip--code-300 {
  color: #937221;
}

.object-chip--code-400,
.object-chip--safe {
  color: #566980;
}

.object-chip--safe {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--muted) 46%, transparent);
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--muted) 12%, transparent) 0,
      color-mix(in srgb, var(--muted) 12%, transparent) 8px,
      transparent 8px,
      transparent 18px
    ),
    color-mix(in srgb, var(--surface-muted) 74%, transparent);
  box-shadow: none;
}

[data-theme="dark"] .object-chip--safe {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 8px,
      transparent 8px,
      transparent 18px
    ),
    rgba(255, 255, 255, 0.2);
}

.object-chip--damaged {
  color: #b85f1d;
}

.object-chip--recon {
  color: #4869a6;
}

.object-chip--clarify {
  color: #337181;
}

.object-chip--loss {
  color: #b44927;
}

.object-chip--zone-own {
  border-color: color-mix(in srgb, #168b4f 34%, var(--line));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #ffffff 86%, #168b4f),
      color-mix(in srgb, #e8f6ec 84%, #168b4f)
    ),
    var(--surface);
}

.object-chip--zone-other {
  border-color: color-mix(in srgb, #f0a04a 42%, var(--line));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #ffffff 84%, #f0a04a),
      color-mix(in srgb, #fff1e1 82%, #f0a04a)
    ),
    var(--surface);
}

[data-theme="dark"] .object-chip--zone-own {
  border-color: color-mix(in srgb, #168b4f 58%, var(--line));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 74%, #168b4f),
      color-mix(in srgb, var(--surface-muted) 78%, #168b4f)
    ),
    var(--surface);
}

[data-theme="dark"] .object-chip--zone-other {
  border-color: color-mix(in srgb, #f0a04a 62%, var(--line));
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 72%, #f0a04a),
      color-mix(in srgb, var(--surface-muted) 76%, #f0a04a)
    ),
    var(--surface);
}

.event-strikes {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  transition: grid-template-rows 220ms ease;
}

.event-card.is-strikes-open .event-strikes {
  grid-template-rows: 1fr;
}

.event-strikes-inner {
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.event-strike-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
}

.event-strike-table td {
  border-left: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.25;
  padding: 9px 13px;
  vertical-align: middle;
}

.event-card.event-card--zone-own .event-strike-table tr:first-child td {
  border-top: solid 3px #168b4f;
}

.event-card.event-card--zone-other .event-strike-table tr:first-child td {
  border-top: solid 3px #f0a04a;
}

.event-strike-table td:first-child {
  border-left: 0;
}
.event-strike-table td:last-child {
  border-left: 0;
}

.event-strike-row {
  --strike-row-bg: color-mix(in srgb, var(--surface) 78%, transparent);
  --strike-row-accent: color-mix(in srgb, var(--line-strong) 72%, transparent);
}

.event-strike-row--zone-own {
  --strike-row-bg: rgba(232, 246, 236, 0.62);
  --strike-row-accent: rgba(22, 139, 79, 0.78);
}

.event-strike-row--zone-other {
  --strike-row-bg: rgba(255, 241, 225, 0.72);
  --strike-row-accent: rgba(240, 160, 74, 0.86);
}

[data-theme="dark"] .event-strike-row--zone-own {
  --strike-row-bg: rgba(22, 139, 79, 0.18);
}

[data-theme="dark"] .event-strike-row--zone-other {
  --strike-row-bg: rgba(240, 160, 74, 0.18);
}

.event-strike-row td {
  background: var(--strike-row-bg);
}

.event-strike-table td:nth-child(1) {
  width: 360px;
  min-width: 320px;
}

.event-strike-table td:nth-child(2) {
  width: 1%;
  min-width: 92px;
  white-space: nowrap;
}

.event-strike-table td:nth-child(3) {
  width: 1%;
  min-width: 112px;
  white-space: nowrap;
}

.event-strike-table td:nth-child(4) {
  width: 1%;
  min-width: 178px;
  white-space: nowrap;
}

.event-strike-table td:nth-child(5) {
  width: 100%;
  min-width: 260px;
}

.event-strike-table td:nth-child(6) {
  width: 112px;
}

.event-strike-actions {
  display: grid;
  grid-template-columns: 28px 28px;
  align-items: center;
  justify-content: end;
  gap: 6px;
  min-width: 86px;
}

.event-strike-actions__stream,
.event-strike-actions__buttons {
  display: grid;
  justify-items: center;
}

.event-strike-actions__stream {
  min-width: 34px;
}

.event-strike-actions__buttons {
  gap: 6px;
}

.event-strike-table td > strong,
.event-strike-table td > small {
  display: block;
}

.event-strike-table td > strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}

.event-strike-table td > small {
  overflow-wrap: anywhere;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: normal;
}

.event-strike-table td:nth-child(2) > small,
.event-strike-table td:nth-child(3) > small,
.event-strike-table td:nth-child(4) > small {
  overflow-wrap: normal;
  white-space: nowrap;
}

.event-summary-panel--actions {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 0;
  padding: 0 8px 0 0;
}

@media (max-width: 1180px) and (min-width: 1301px) {
  .event-card-head,
  .event-body-summary {
    grid-template-columns: 1fr;
  }

  .event-actions {
    justify-content: flex-start;
  }

  .event-summary-panel + .event-summary-panel {
    border-top: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
    border-left: 0;
  }

}

@media (max-width: 760px) and (min-width: 1301px) {
  .event-card-head,
  .event-card-body {
    padding: 8px;
  }

  .event-card-head {
    gap: 7px;
  }

  .event-meta:not(:first-child),
  .event-identity {
    border-left: 0;
    padding-left: 0;
  }

  .event-summary-panel {
    padding: 12px 10px 14px;
  }

  .object-chip-list {
    display: flex;
  }

  .object-chip,
  .object-chip-list--status .object-chip {
    min-width: 0;
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .event-summary-empty {
    min-height: 58px;
  }

  .object-chip-list--status .object-chip {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .event-strikes {
    padding: 0;
  }

  .event-strikes-inner {
    overflow-x: visible;
    padding: 8px;
  }

  .event-strike-table {
    min-width: 0;
    border-spacing: 0 8px;
  }

  .event-strike-table tbody,
  .event-strike-table tr,
  .event-strike-table td {
    display: block;
  }

  .event-strike-table tr {
    overflow: hidden;
    border: 1px solid var(--strike-row-accent);
    border-radius: 6px;
    background: var(--strike-row-bg);
  }

  .event-strike-table td {
    display: grid;
    min-width: 0;
    grid-template-columns: 98px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border-right: 0;
    padding: 8px 10px;
  }

  .event-strike-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
  }

  .event-strike-table tbody tr:last-child td {
    border-bottom: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
  }

  .event-strike-table td:last-child,
  .event-strike-table tbody tr:last-child td:last-child {
    border-bottom: 0;
  }

  .event-strike-table td:last-child .event-strike-actions {
    justify-self: end;
  }
}

.data-table--inline-edit {
  min-width: 920px;
}

.data-table--wide {
  min-width: 1080px;
}

.record-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.record-create-form--inline-action {
  grid-template-columns: minmax(220px, 1fr);
}

.record-create-form--inline-row {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
}

.record-create-form--inline-row > .ui-field {
  min-width: 0;
}

.record-create-form--columns {
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
}

.record-create-form--single-line {
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1fr) minmax(280px, 1.35fr) minmax(160px, 0.8fr) auto;
  overflow-x: auto;
  padding-bottom: 2px;
}

.record-create-form .ui-quill {
  min-height: 220px;
}

.shift-event-modal-fields .ui-quill.shift-event-description-editor {
  height: auto;
  min-height: 200px;
}

.shift-event-modal-fields .ui-quill.shift-event-description-editor .ui-quill-editor,
.shift-event-modal-fields .ui-quill.shift-event-description-editor .ql-editor {
  min-height: 200px;
}

.shift-event-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  container-type: inline-size;
}

.shift-event-form .ui-field {
  flex: 1 1 220px;
  min-width: min(100%, 200px);
}

.shift-event-form .shift-event-field--date,
.shift-event-form .shift-event-field--time {
  flex: 0 1 10rem;
  min-width: min(100%, 10rem);
}

@container (max-width: 560px) {
  .shift-event-form .shift-event-field--date,
  .shift-event-form .shift-event-field--time {
    flex: 1 1 calc((100% - 10px) / 2);
    min-width: calc((100% - 10px) / 2);
  }
}

.shift-event-form .form-span-full {
  flex: 1 0 100%;
  min-width: 100%;
}

.shift-event-actions {
  display: flex;
  flex: 1 0 100%;
  justify-content: flex-end;
  min-width: 100%;
}

.shift-event-submit {
  justify-self: end;
  min-width: max-content;
  white-space: nowrap;
}

.shift-event-table-panel {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong) 64%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--control-bg));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--surface) 80%, transparent),
    0 8px 22px color-mix(in srgb, var(--shadow) 8%, transparent);
}

.shift-event-table-wrap {
  overflow-x: auto;
}

.shift-event-table.ui-table {
  min-width: 980px;
  border: 0;
  border-radius: 0;
  background: transparent;
  table-layout: fixed;
  font-size: 0.9rem;
}

.shift-event-table.ui-table.shift-event-table--without-rov {
  min-width: 760px;
}

.shift-event-table thead {
  background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
}

.shift-event-table.ui-table th,
.shift-event-table.ui-table td {
  border-bottom-color: color-mix(in srgb, var(--line) 74%, transparent);
  padding: 15px 8px;
  vertical-align: top;
}

.shift-event-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.shift-event-table tbody tr {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.shift-event-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--surface-muted) 34%, transparent);
}

.shift-event-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent-soft) 36%, var(--surface));
}

.shift-event-table-cell--time {
  width: 112px;
}

.shift-event-table-cell--unit {
  width: 160px;
}

.shift-event-table-cell--location {
  width: 290px;
}

.shift-event-table.ui-table th.shift-event-table-cell--actions,
.shift-event-table.ui-table td.shift-event-table-cell--actions {
  box-sizing: border-box;
  width: 78px;
  min-width: 78px;
  max-width: 78px;
  padding-right: 8px;
  padding-left: 8px;
  overflow-wrap: normal;
  white-space: nowrap;
}

.shift-event-time,
.shift-event-date,
.shift-event-primary,
.shift-event-secondary,
.shift-event-empty-value {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.shift-event-time {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
}

.shift-event-date {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.2;
}

.shift-event-primary {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.25;
}

.shift-event-secondary,
.shift-event-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.shift-event-description {
  color: var(--text);
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.shift-event-description p,
.shift-event-description ol,
.shift-event-description ul,
.shift-event-description blockquote,
.shift-event-description pre {
  margin: 0 0 6px;
}

.shift-event-description p:last-child,
.shift-event-description ol:last-child,
.shift-event-description ul:last-child,
.shift-event-description blockquote:last-child,
.shift-event-description pre:last-child {
  margin-bottom: 0;
}

.shift-event-description ol,
.shift-event-description ul {
  padding-left: 1.15rem;
}

.shift-event-description blockquote {
  padding-left: 0.75rem;
  border-left: 3px solid var(--border-strong);
  color: var(--muted);
}

.shift-event-description pre {
  white-space: pre-wrap;
}

.shift-event-description a {
  color: var(--interactive-strong);
}

.shift-event-description h1,
.shift-event-description h2,
.shift-event-description h3,
.shift-event-description h4,
.shift-event-description h5,
.shift-event-description h6 {
  margin: 0 0 0.35em;
  line-height: 1.18;
}

.shift-event-description h1 {
  font-size: 2em;
}

.shift-event-description h2 {
  font-size: 1.5em;
}

.shift-event-description .ql-size-small {
  font-size: 0.75em;
}

.shift-event-description .ql-size-large {
  font-size: 1.5em;
}

.shift-event-description .ql-size-huge {
  font-size: 2.5em;
  line-height: 1.12;
}

.shift-event-description .ql-align-center {
  text-align: center;
}

.shift-event-description .ql-align-right {
  text-align: right;
}

.shift-event-description .ql-align-justify {
  text-align: justify;
}

.shift-event-description .ql-direction-rtl {
  direction: rtl;
  text-align: inherit;
}

.shift-event-empty-value {
  color: var(--muted);
  font-weight: 600;
  opacity: 0.7;
}

.shift-event-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: max-content;
  white-space: nowrap;
}

.shift-event-table-actions .ui-button--sm.ui-button--icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
}

.shift-event-table-actions--empty {
  justify-content: center;
}

.shift-event-table-actions form {
  display: contents;
}

.shift-event-notes-block {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  padding-top: 12px;
}

.shift-event-notes-title {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.shift-event-notes-body {
  color: var(--text);
  line-height: 1.28;
}

.shift-event-notes-body p,
.shift-event-notes-body ol,
.shift-event-notes-body ul,
.shift-event-notes-body blockquote,
.shift-event-notes-body pre {
  margin-block: 0 0.55em;
}

.shift-event-notes-body ol,
.shift-event-notes-body ul {
  padding-left: 1.3em;
}

.database-row-input {
  min-height: 32px;
}

.live-update-button {
  margin-bottom: 8px;
}

@media (max-width: 820px) and (min-width: 1301px) {
  .record-create-form {
    grid-template-columns: 1fr;
  }

  .record-create-form--inline-row {
    grid-template-columns: 1fr;
  }

  .record-create-form--single-line {
    grid-template-columns: minmax(160px, 1fr) minmax(220px, 1fr) minmax(280px, 1.35fr) minmax(160px, 0.8fr) auto;
  }

  .subdivisions-grid .subdivision-tile,
  .management-grid .management-tile {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1120px) and (min-width: 1301px) {
  .login-page {
    padding: 14px;
  }

  .app-shell {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .app-sidebar {
    height: calc(var(--app-viewport-height) - 16px);
    min-height: 0;
  }

  .app-main-column {
    gap: 0;
  }

  .app-content-filter-bar {
    align-items: stretch;
  }

  .app-content-filter-group,
  .app-content-filter-actions {
    width: 100%;
  }

  .app-content-filter-group {
    display: grid;
    grid-template-columns: auto repeat(2, minmax(150px, 1fr));
  }

  .app-content-filter-field,
  .app-content-filter-field--time {
    width: 100%;
  }

  .app-content-filter-actions {
    justify-content: flex-start;
  }

  .app-content-row {
    flex-direction: column;
  }

  .app-side-panel.workspace-side-panel {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }

  .workspace-side-stack {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }

  .app-workspace {
    min-height: 0;
  }

  .app-side-panel,
  .panel-dock-row {
    min-height: 150px;
    height: auto;
    max-height: none;
  }

  .app-sidebar {
    align-items: center;
    padding: 8px 6px;
    overflow: hidden auto;
  }

  .account-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    margin-bottom: 14px;
  }

  .account-logo {
    width: 42px;
    height: 42px;
    font-size: 0.88rem;
  }

  .account-logo i {
    right: 0;
    bottom: 3px;
  }

  .account-text,
  .sidebar-menu-label,
  .sidebar-menu-text,
  .sidebar-menu-item .ui-badge,
  .sidebar-menu-item .ui-icon + .ui-icon,
  .sidebar-menu-theme .ui-switch {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .sidebar-menu {
    width: 100%;
    gap: 12px;
  }

  .sidebar-menu-group,
  .sidebar-menu-list,
  .sidebar-menu-tree,
  .sidebar-submenu {
    justify-items: center;
    width: 100%;
  }

  .sidebar-submenu {
    padding-left: 0;
  }

  .sidebar-menu-item {
    display: flex;
    width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .sidebar-menu-item .ui-icon {
    width: 1.12rem;
    height: 1.12rem;
  }

  .sidebar-menu-item--no-icon .sidebar-menu-initials {
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
  }

  .sidebar-menu-item--no-icon.active .sidebar-menu-initials {
    color: var(--text);
  }

  .sidebar-menu-item--no-icon.sidebar-menu-item--shift-active .sidebar-menu-initials {
    color: var(--success);
  }

  .app-shell.is-notes-sidebar-collapsed [data-notes-side],
  .app-shell.is-notes-sidebar-collapsed .panel-dock-row {
    display: none;
  }

  .app-workspace {
    min-width: 0;
  }
}

@media (max-width: 620px) and (min-width: 1301px) {
  .app-content-filter-group {
    grid-template-columns: 1fr;
  }

  .app-content-filter-actions .ui-button {
    width: 100%;
  }
}
