:root {
  color-scheme: light;
  --bg: #eef3ec;
  --bg-soft: #f8faf7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --border: rgba(148, 163, 184, 0.2);
  --text: #172033;
  --muted: #6c7588;
  --primary: #3d6df2;
  --primary-dark: #17338f;
  --danger: #e54d63;
  --shadow: 0 20px 45px rgba(23, 32, 51, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(61, 109, 242, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 24%),
    linear-gradient(180deg, #f7faf5 0%, #eef3ec 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
}

.auth-shell {
  display: block;
}

.sidebar {
  min-height: 100vh;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #6998ff);
  box-shadow: 0 14px 26px rgba(61, 109, 242, 0.24);
}

.brand__image {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 14px 26px rgba(61, 109, 242, 0.18);
}

.brand__title {
  font-size: 1.3rem;
  font-weight: 800;
}

.brand__subtitle,
.eyebrow,
.muted {
  color: var(--muted);
}

.brand__subtitle,
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 12px;
}

.nav__item {
  padding: 15px 18px;
  border-radius: 18px;
  font-weight: 700;
  color: #48536b;
  transition: 0.2s ease;
}

.nav__item:hover,
.nav__item.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5f86fa);
  box-shadow: 0 16px 28px rgba(61, 109, 242, 0.24);
}

.sidebar__footer {
  margin-top: auto;
  display: grid;
  gap: 18px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.profile-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff4ff;
  color: var(--primary);
  font-weight: 800;
}

.profile-card__name {
  font-weight: 700;
}

.profile-card__meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  border: 1px solid rgba(61, 109, 242, 0.16);
  background: rgba(255, 255, 255, 0.66);
}

.workspace {
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 24px 32px 16px;
}

.topbar__title {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  line-height: 1.05;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__user {
  min-width: 160px;
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.topbar__user span {
  color: var(--muted);
  font-size: 0.9rem;
}

.content {
  padding: 0 32px 32px;
}

.flash {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #edf4ff;
  border: 1px solid rgba(61, 109, 242, 0.14);
  color: var(--primary-dark);
  font-weight: 700;
}

.panel,
.auth-card,
.task-card,
.comment-card,
.history-card,
.user-card,
.stat-card,
.empty-card,
.detail-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel,
.auth-card,
.detail-card {
  border-radius: var(--radius-xl);
}

.panel {
  padding: 24px;
}

.panel--narrow {
  max-width: 900px;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.panel__header h2,
.auth-card h2,
.auth-panel__intro h1 {
  margin: 6px 0 0;
}

.panel__header--compact {
  margin-bottom: 0;
  align-items: center;
}

.task-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.task-toolbar__title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.task-toolbar__title h2 {
  margin: 0;
  font-size: 2rem;
}

.task-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: flex-end;
}

.search-bar {
  min-width: min(100%, 560px);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.search-bar__icon {
  text-align: center;
  color: #7a869d;
  font-size: 1.2rem;
}

.search-bar input {
  border: 0;
  background: transparent;
  padding-left: 0;
  box-shadow: none;
}

.search-bar input:focus {
  box-shadow: none;
}

.search-bar__submit {
  height: 100%;
  border: 0;
  padding: 0 18px;
  background: rgba(17, 143, 225, 0.08);
  color: #118fe1;
  font-weight: 800;
  cursor: pointer;
}

.stats-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-card {
  min-width: 132px;
  padding: 16px 18px;
  border-radius: 20px;
  display: grid;
  gap: 8px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card strong {
  font-size: 1.7rem;
}

.filters,
.form-grid,
.detail-meta,
.admin-layout {
  display: grid;
  gap: 14px;
}

.filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.filters-dropdown {
  margin-top: 12px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 16px;
  box-shadow: 0 22px 40px rgba(23, 32, 51, 0.12);
}

.filters-dropdown[hidden] {
  display: none;
}

.filter-popover {
  position: relative;
}

.filter-popover summary {
  list-style: none;
}

.filter-popover summary::-webkit-details-marker {
  display: none;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-weight: 800;
  color: #46516a;
  cursor: pointer;
  user-select: none;
}

.filter-popover[open] .filters-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(780px, calc(100vw - 420px));
  z-index: 20;
}

.filters__actions,
.form-actions,
.action-row,
.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filters__actions {
  justify-content: flex-end;
}

.form,
.form-card {
  display: grid;
  gap: 16px;
}

.form-card {
  padding: 0;
}

.form-card--compact {
  gap: 14px;
}

.form label {
  display: grid;
  gap: 8px;
}

.form label span {
  color: #4a5365;
  font-size: 0.95rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(61, 109, 242, 0.45);
  box-shadow: 0 0 0 4px rgba(61, 109, 242, 0.12);
}

textarea {
  resize: vertical;
}

.btn {
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5885ff);
  box-shadow: 0 16px 28px rgba(61, 109, 242, 0.24);
}

.btn--light {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(61, 109, 242, 0.12);
}

.btn--danger {
  color: #fff;
  background: linear-gradient(135deg, var(--danger), #f06d7d);
}

.btn--block {
  width: 100%;
}

.tasks-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.task-card {
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 280px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(23, 32, 51, 0.12);
}

.task-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.task-card__title {
  display: block;
}

.task-card p,
.comment-card p,
.history-card p {
  margin: 0;
  color: #566177;
  line-height: 1.6;
}

.task-card__chips,
.comment-card__meta,
.user-card__head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.task-card__chips {
  flex-wrap: wrap;
}

.task-card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.task-card__meta strong {
  color: var(--text);
}

.task-card__status-form {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.task-card__status-form--inline {
  margin-top: 0;
  min-width: 240px;
}

.task-card__status-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 52px 0 52px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  text-align-last: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.98)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23566177' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Crect x='3.5' y='4.5' width='13' height='11' rx='2' stroke='%23566177' stroke-width='1.7'/%3E%3Cpath d='M7 8h6M7 11h6' stroke='%23566177' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 18px center;
  border: 1px solid rgba(61, 109, 242, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(23, 32, 51, 0.06);
}

.task-card__status-form select:focus {
  border-color: rgba(61, 109, 242, 0.4);
  box-shadow: 0 0 0 4px rgba(61, 109, 242, 0.12);
}

.chip {
  --chip-color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 14%, white);
}

.chip--danger {
  --chip-color: #ef4444;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
  gap: 20px;
}

.task-page {
  display: grid;
}

.task-page__panel {
  display: grid;
  gap: 26px;
}

.task-page__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.task-page__titlebox h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 1.08;
}

.task-page__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.task-page__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.task-card__status-form--detail {
  min-width: 220px;
}

.task-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.9fr);
  gap: 26px;
}

.task-summary__main,
.task-summary__side,
.media-forms,
.meta-stack,
.asset-stack,
.activity-list {
  display: grid;
  gap: 18px;
}

.task-section {
  display: grid;
  gap: 14px;
}

.task-section__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #3471bf;
}

.task-section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.4);
}

.detail-meta--jira {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.task-description {
  padding: 4px 0 0;
  line-height: 1.75;
  color: var(--text);
}

.meta-stack {
  gap: 12px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  color: var(--muted);
}

.meta-row strong {
  color: var(--text);
  text-align: right;
}

.asset-stack {
  gap: 12px;
}

.asset-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.asset-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(23, 32, 51, 0.08);
}

.asset-row__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(61, 109, 242, 0.1);
  color: var(--primary-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.asset-row--link .asset-row__icon {
  background: rgba(34, 197, 94, 0.12);
}

.asset-row__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.asset-row__content strong,
.asset-row__content span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-row__content span {
  color: var(--muted);
  font-size: 0.9rem;
}

.media-forms {
  margin-top: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.62);
}

.activity-card p {
  margin: 0;
  line-height: 1.7;
}

.dashboard-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.detail-main,
.detail-side,
.comment-list,
.history-list,
.user-cards,
.summary-list {
  display: grid;
  gap: 20px;
}

.summary-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.summary-card--danger {
  background: rgba(255, 244, 245, 0.82);
}

.summary-card__head,
.summary-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.summary-card__meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.attachment-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.attachment-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
}

.attachment-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.link-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.link-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.link-card span {
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-all;
}

.status-inline-form {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.history-toggle {
  display: grid;
  gap: 16px;
  position: relative;
}

.history-toggle__summary {
  list-style: none;
}

.history-toggle__summary::-webkit-details-marker {
  display: none;
}

.history-toggle__content {
  margin-top: 4px;
}

.history-toggle--top {
  gap: 0;
}

.history-toggle__summary--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(61, 109, 242, 0.12);
  color: var(--primary-dark);
  font-weight: 800;
  cursor: pointer;
}

.history-toggle__summary--pill::after {
  content: "▾";
  margin-left: 10px;
  font-size: 0.84rem;
  opacity: 0.7;
}

.history-toggle__content--floating {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 70vw);
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 42px rgba(23, 32, 51, 0.14);
  z-index: 30;
}

.detail-top-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-copy {
  margin-bottom: 20px;
  line-height: 1.7;
}

.detail-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-meta div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  display: grid;
  gap: 6px;
}

.detail-meta span,
.history-card span,
.comment-card__meta span,
.user-card p {
  color: var(--muted);
}

.comment-card,
.history-card,
.user-card,
.empty-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.comment-card__meta,
.history-card {
  display: grid;
  gap: 8px;
}

.empty-card {
  color: var(--muted);
  text-align: center;
}

.empty-card--wide {
  grid-column: 1 / -1;
  min-height: 140px;
  display: grid;
  place-items: center;
}

.task-card.is-hidden {
  display: none;
}

.status-strip {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-strip--inside {
  margin-top: 22px;
}

.status-strip__item,
.status-strip__clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.status-strip__item {
  color: color-mix(in srgb, var(--status-color) 68%, #24324d);
  background: color-mix(in srgb, var(--status-color) 20%, white);
}

.status-strip__item.is-active {
  border-color: color-mix(in srgb, var(--status-color) 45%, white);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.08);
}

.status-strip__item.is-inactive {
  color: rgba(70, 81, 106, 0.78);
  background: rgba(203, 213, 225, 0.28);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: none;
  position: relative;
  padding-bottom: 18px;
}

.status-strip__item.is-inactive::after {
  content: "×";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 0.82rem;
  line-height: 1;
  color: rgba(70, 81, 106, 0.88);
}

.status-strip__clear {
  background: rgba(248, 250, 252, 0.92);
  color: #667085;
  border-color: rgba(148, 163, 184, 0.18);
}

.pagination {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination__item {
  min-width: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  font-weight: 800;
  color: #46516a;
}

.pagination__item.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #5f86fa);
  box-shadow: 0 14px 24px rgba(61, 109, 242, 0.2);
}

.pagination__item.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.form-actions--spread {
  justify-content: space-between;
}

.admin-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.config-layout {
  display: grid;
  gap: 20px;
}

.config-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.config-card__preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.config-card__logo,
.config-card__logo-fallback {
  width: 112px;
  height: 112px;
  border-radius: 24px;
}

.config-card__logo {
  object-fit: cover;
  box-shadow: 0 14px 26px rgba(61, 109, 242, 0.18);
}

.config-card__logo-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #6998ff);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(61, 109, 242, 0.18);
}

.auth-panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
  gap: 32px;
  align-items: center;
  padding: 48px;
}

.auth-panel__intro {
  padding: 32px;
}

.auth-panel__intro h1 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.96;
}

.auth-panel__intro p {
  max-width: 560px;
  color: #4e586d;
  font-size: 1.04rem;
  line-height: 1.7;
}

.auth-card {
  padding: 30px;
  max-width: 460px;
  width: 100%;
  justify-self: end;
}

@media (max-width: 1280px) {
  .tasks-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .config-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  }

  .topbar,
  .content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .topbar,
  .panel__header,
  .task-toolbar,
  .task-toolbar__controls,
  .task-page__headline,
  .task-page__actions,
  .detail-top-actions,
  .user-card__head,
  .comment-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-grid,
  .dashboard-grid,
  .auth-panel,
  .filters,
  .detail-meta,
  .task-summary,
  .media-forms {
    grid-template-columns: 1fr;
  }

  .status-inline-form {
    grid-template-columns: 1fr;
  }

  .task-card__status-form--inline {
    min-width: 0;
    width: 100%;
  }

  .task-card__status-form--detail {
    min-width: 0;
  }

  .history-toggle__content--floating {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .search-bar {
    width: 100%;
    min-width: 0;
  }

  .filter-popover[open] .filters-dropdown {
    position: static;
    width: 100%;
  }

  .auth-panel {
    padding: 24px;
  }

  .auth-card {
    justify-self: stretch;
    max-width: none;
  }

  .task-card__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tasks-grid {
    grid-template-columns: 1fr;
  }

  .topbar__actions,
  .filters__actions,
  .form-actions,
  .action-row {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
