@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* UP23 Workspace 1.6.4 - interfejs bazujący na jasnym stylu TimeTrackera. */

:root {
  color-scheme: dark;
  --bg: #0B0B0B;
  --bg-elevated: #121212;
  --bg-panel: #121212;
  --bg-panel-soft: #171717;
  --bg-input: #202020;
  --bg-input-hover: #252525;
  --bg-input-focus: #2A2A2A;
  --text: #F2F2F2;
  --text-soft: #D8D8D8;
  --muted: #A2A2A2;
  --muted-2: #7A7A7A;
  --border: rgba(255,255,255,.055);
  --border-strong: rgba(255,255,255,.085);
  --accent: #3968F6;
  --accent-strong: #7C9BFF;
  --accent-soft: rgba(57,104,246,.14);
  --success: #D8D8D8;
  --warning: #f6c85f;
  --danger: #D8D8D8;
  --purple: #a78bfa;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --fluid-page-pad: clamp(14px, 1.6vw, 24px);
  --fluid-section-pad: clamp(14px, 1.35vw, 18px);
  --shadow: 0 18px 50px rgba(0,0,0,.32);
  --shadow-soft: 0 8px 24px rgba(0,0,0,.22);
  --sidebar-w: 300px;
  --header-h: auto;
  --ui-list-row-gap: 10px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --task-chip-font-weight: 400;
  --accent-border: rgba(57,104,246,.34);
  --accent-glow: rgba(57,104,246,.16);
  --app-overlay-background: rgba(0,0,0,.58);
  --app-overlay-backdrop: blur(12px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.modal-open {
  overflow: hidden;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  font-weight: 600;
}

button:disabled, input:disabled, select:disabled, textarea:disabled {
  cursor: not-allowed;
  opacity: .58;
}

[hidden] {
  display: none !important;
}


.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px;
  background: #101010;
  border-right: 1px solid var(--border);
  box-shadow: 12px 0 40px rgba(0,0,0,.18);
  z-index: 30;
}

.panel {
  background: #101010;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 4px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

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

.nav-btn {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav-btn:hover {
  background: rgba(255,255,255,.045);
  color: var(--text);
}

.nav-btn.active {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: none;
}

.nav-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.nav-count {
  margin-left: auto;
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.main {
  min-width: 0;
  padding: 20px var(--fluid-page-pad) 32px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: -20px calc(var(--fluid-page-pad) * -1) 20px;
  padding: 18px var(--fluid-page-pad) 12px;
  background: rgba(16,16,16,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--separator-color);
}

.topbar {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
}

.header-left,
.header-actions,
.toolbar,
.modal-header,
.modal-actions,
.row,
.row-data,
.field-grid,
.task-card-head,
.task-card-meta,
.task-column-head,
.bar-head,
.chart-head,
.chart-pair {
  display: flex;
  align-items: center;
}

.header-left {
  gap: 12px;
  min-width: 0;
}

.header-actions {
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

#headerContextActions {
  justify-content: flex-start;
}


.view {
  display: none;
}

.view.active {
  display: block;
}

.view > * + * {
  margin-top: 18px;
}

.title-lg,
.title-md,
.row-title,
.task-card-title,
.stat-value,
.tile-value,
.timer-time,
.timer-revenue {
  margin: 0;
  color: var(--text);
  letter-spacing: -.025em;
}

.title-lg {
  font-weight: 600;
}

.title-md {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.helper-text, .muted, .row-meta, .task-card-text {
  color: var(--muted);
}

.helper-text {
  font-size: 13px;
}

.section-gap {
  margin-top: var(--workspace-section-gap, 20px);
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 14px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.soft {
  opacity: .72;
}

.section,
.chart,
.modal-card {
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.section,
.chart {
  padding: var(--fluid-section-pad);
}

.section.stack {
  gap: 16px;
}

.app-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-settings-feedback {
  margin: 4px 0 0;
}

.app-startup-meta,
.app-shortcuts-meta {
  margin: 0;
}

.info-section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.info-section-head .helper-text {
  margin-top: 2px;
}

.info-settings-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .028);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045);
}

.info-settings-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.info-settings-group-head strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.info-settings-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.app-settings-actions {
  margin-top: 0;
}

.app-startup-meta[data-tone="success"] {
  color: var(--text-soft);
}

.section > .toolbar:first-child {
  margin-bottom: 14px;
}

.toolbar {
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar > div {
  min-width: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.stat {
  min-width: 0;
  padding: 4px 18px;
}

.stat:first-child {
  padding-left: 0;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat-value {
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.split-main, .split-side {
  min-width: 0;
}

.timer-box {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: clamp(14px, 1.8vw, 22px);
  align-items: stretch;
}

.timer-info {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-radius: var(--radius);
}

.timer-time {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.timer-revenue {
  margin-top: 12px;
  color: var(--accent-strong);
  font-size: clamp(22px, 2.5vw, 38px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.timer-panel {
  justify-content: center;
  padding: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.timer-description {
  min-height: 112px;
}

.timer-description-helper {
  margin-top: -4px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-grid > * {
  min-width: 0;
}

.input,
.textarea,
select.input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: none;
  color: var(--text);
  transition: background .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.textarea {
  resize: vertical;
  min-height: 96px;
}

.input:focus,
.textarea:focus,
.select-wrap:focus-within select.input {
  border-color: rgba(96,165,250,.16);
  box-shadow: 0 0 0 3px rgba(96,165,250,.055), inset 0 0 0 1px rgba(96,165,250,.075);
}

.input::placeholder,
.textarea::placeholder {
  color: #777777;
}

.input.is-invalid,
.textarea.is-invalid {
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 0 0 3px rgba(255,255,255,.045);
}

select.input {
  appearance: none;
  padding: 10px 12px;
}

.select-wrap {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.search {
  min-width: 220px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 25px;
  font-size: 13px;
  border: 0;
  border-radius: 10px;
  background: #202020;
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.btn:hover {
  background: #252525;
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ui-btn-primary-bg, var(--accent));
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--ui-btn-primary-hover, #2F59DD);
  color: #ffffff;
}

.btn-danger {
  background: rgba(255,255,255,.045);
  color: var(--text-soft);
}

.btn-danger:hover {
  background: rgba(255,255,255,.105);
  color: #fff;
}

.icon-action-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 9px;
}

.icon-action-btn svg {
  width: 17px;
  height: 17px;
}

.modal-close-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  font-size: 22px;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rows-scroll {
  max-height: calc(100vh - 285px);
  overflow: auto;
  padding-right: 4px;
}

.row {
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.row-selectable {
  cursor: pointer;
}

.row-selectable:hover {
  background: rgba(255,255,255,.045);
}

.row.selected {
  background: rgba(96,165,250,.055);
  box-shadow: inset 0 0 0 1px rgba(96,165,250,.10);
}

.row-main {
  min-width: 0;
  flex: 1 1 auto;
}

.row-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.row-meta {
  margin-top: 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.entry-task-title {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.row-data {
  gap: 8px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.row-data-value {
  color: var(--text-soft);
  font-weight: 600;
}

.row-data-value-accent {
  color: var(--accent-strong);
  font-weight: 600;
}

.analysis-list-row {
  align-items: flex-start;
}

.analysis-list-row .row-data {
  align-items: flex-start;
  padding-top: 0;
}

.notice {
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: var(--text-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.notice.warning {
  background: rgba(255,255,255,.045);
  color: var(--text-soft);
}

.notice.bad {
  background: rgba(255,255,255,.045);
  color: var(--text-soft);
}

.notice.success {
  background: rgba(255,255,255,.045);
  color: var(--text-soft);
}

.notice-dismissible {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
}

.notice-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 32px;
  line-height: 1.35;
}

.app-notice:empty {
  display: none;
}

.app-notice {
  position: fixed !important;
  top: auto !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  z-index: 2147483000;
  width: min(420px, calc(100vw - 40px));
  min-height: 52px;
  margin: 0 !important;
  padding: 15px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.018)), rgba(18, 18, 18, .96);
  color: #F2F2F2;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .48),
    inset 0 0 0 1px rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 12px, 0);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.app-notice.active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}


.app-notice.active[data-nav-target]:not([data-nav-target=""]) {
  cursor: pointer;
}

.app-notice[data-variant="success"] {
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.02)), rgba(18, 18, 18, .97);
  color: #F2F2F2;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .48),
    inset 0 0 0 1px rgba(255,255,255,.045);
}

.app-notice[data-variant="warning"] {
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.02)), rgba(18, 18, 18, .97);
  color: #F2F2F2;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .48),
    inset 0 0 0 1px rgba(255,255,255,.045);
}

.app-notice[data-variant="error"] {
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.02)), rgba(18, 18, 18, .97);
  color: #F2F2F2;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .48),
    inset 0 0 0 1px rgba(255,255,255,.045);
}

.form-feedback:empty {
  display: none;
}

.bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-head {
  justify-content: space-between;
  gap: 12px;
}

.bar-track {
  position: relative;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.bar-track--compact {
  height: 15px;
}

.bar-track--spaced {
  margin-top: 10px;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #CFCFCF, #8E8E8E);
}

.bar-fill--danger {
  background: linear-gradient(90deg, #B8B8B8, #777777);
}

.bar-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.chart {
  overflow: hidden;
}

.chart-head {
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-bars {
  display: grid;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chart-pair {
  align-items: end;
  justify-content: center;
  gap: 8px;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
}

.chart-bar {
  min-height: 8px;
  background: linear-gradient(180deg, rgba(67,145,255,.98), rgba(35,94,196,.78));
  box-shadow: 0 0 18px rgba(67,145,255,.16);
}

.chart-bar.soft {
  background: linear-gradient(180deg, rgba(67,145,255,.74), rgba(35,94,196,.52));
  box-shadow: 0 0 16px rgba(67,145,255,.12);
}

.chart-label {
  color: var(--muted);
  font-size: 12px;
}

.tasks-full-width {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.tasks-board-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tasks-board {
  display: grid;
  grid-template-columns: repeat(10, 305px);
  gap: 14px;
  align-items: start;
  grid-template-rows: minmax(0, 1fr);
  min-width: max-content;
}

.task-column {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: transparent;
}


.task-column-head {
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
}

.task-column-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}

.task-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.035);
}
.task-card--completed:hover {
  opacity: .78;
  filter: grayscale(.35);
}

.task-card-head {
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}


.task-card-title-wrap {
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 26px;
}

.task-card-title {
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.task-card-meta {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.task-pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: var(--task-chip-font-weight);
  line-height: 1;
  white-space: nowrap;
}

.task-status-action {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: var(--task-chip-font-weight);
  line-height: 1;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, filter .16s ease;
}

.task-status-action:hover,
.task-status-action:focus-visible {
  transform: none;
  filter: brightness(1.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
}

.task-status-action:focus-visible {
  outline: 1px solid rgba(255,255,255,.085);
  outline-offset: 2px;
}

.task-card-meta .task-pill,
.task-card-meta .badge,
.task-card-meta .task-status-action,
.task-card-meta .task-count-pill,
.task-card-meta .task-files-pill {
  font-weight: var(--task-chip-font-weight);
}

.task-count-pill {
  min-width: 28px;
}

.status-planned,
.task-files-pill {
  color: var(--text-soft);
  background: rgba(255,255,255,.065);
}

.status-in_progress {
  color: var(--text-soft);
  background: rgba(255,255,255,.07);
}

.status-completed {
  color: var(--text-soft);
  background: rgba(255,255,255,.07);
}

.status-pending,
.status-waiting_client {
  color: var(--text-soft);
  background: rgba(255,255,255,.065);
}

.status-new {
  color: #d8dce3;
  background: rgba(255,255,255,.07);
}

.status-email {
  color: #d8dce3;
  background: rgba(221,241,96,.12);
}

.task-column--pending .task-column-head {
  box-shadow: inset 0 -1px 0 rgba(221,241,96,.12);
}

.status-paused {
  color: var(--text-soft);
  background: rgba(255,255,255,.07);
}

.status-overdue, .status-danger, .status-rejected {
  color: var(--text-soft);
  background: rgba(255,255,255,.07);
}

.status-accepted {
  color: var(--text-soft);
  background: rgba(255,255,255,.07);
}


/* HOTFIX 5: wspólny kontener menu kontekstowego definiuje ui-unified.css. */
.task-context-schedule {
  display: grid;
  grid-template-columns: repeat(6, 32px);
  gap: 4px;
  padding: 3px 2px 7px;
}

.task-context-date-item {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,.82);
  cursor: pointer;
}

.task-context-date-item:hover,
.task-context-date-item:focus {
  outline: none;
  background: rgba(255,255,255,.065);
  color: #fff;
}

.task-context-date-icon {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.task-context-date-icon svg {
  width: 24px;
  height: 24px;
}

.task-context-date-icon--today > span {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: currentColor;
}

.task-context-menu-separator {
  height: 1px;
  margin: 2px 4px 6px;
  background: rgba(255,255,255,.045);
}
/* HOTFIX 5: pozycje akcji oraz ikony menu tasków korzystają z .app-context-menu-item. */
.task-subtasks-panel,
.task-files-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-subtask-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.task-subtask-toggle {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.task-subtask-title.is-done {
  opacity: .55;
  text-decoration: line-through;
}

.task-repeat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.tasks-filters,
.analysis-filters,
#headerContextActions,
#headerButtonsActions {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.tasks-filters,
.analysis-filters {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.tasks-filters .select-wrap,
.analysis-filters .select-wrap {
  flex: 0 1 160px;
  width: auto;
  min-width: 128px;
  max-width: 210px;
}

.tasks-filters .filter-wrap {
  min-width: 128px;
}

.tasks-filters .filter {
  min-width: 128px;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 18px;
  align-items: start;
}

.info-grid .notice {
  margin: 4px 0;
  line-height: 1.45;
}

.info-grid .helper-text {
  line-height: 1.45;
}

.system-info-list,
.backup-info-list,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}

.tile-value {
  font-weight: 600;
  text-align: right;
}

.text-danger {
  color: #ffd6d6;
}

