.app-shell,
.login-screen {
  min-height: 100vh;
}

.app-shell {
  background: var(--background);
}

.login-screen {
  align-items: center;
  background: var(--gradient-shell);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1rem;
  position: relative;
}

.background-layer {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.background-logo {
  position: absolute;
}

.logo-asset {
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.size-06 { width: 1.5rem; height: 1.5rem; }
.size-07 { width: 1.75rem; height: 1.75rem; }
.size-08 { width: 2rem; height: 2rem; }
.size-09 { width: 2.25rem; height: 2.25rem; }
.size-10 { width: 2.5rem; height: 2.5rem; }
.size-11 { width: 2.75rem; height: 2.75rem; }
.size-12 { width: 3rem; height: 3rem; }
.size-13 { width: 3.25rem; height: 3.25rem; }
.size-14 { width: 3.5rem; height: 3.5rem; }
.size-15 { width: 3.75rem; height: 3.75rem; }
.size-16 { width: 4rem; height: 4rem; }
.size-18 { width: 4.5rem; height: 4.5rem; }
.size-20 { width: 5rem; height: 5rem; }

.opacity-02 { opacity: 0.2; }
.opacity-03 { opacity: 0.3; }
.opacity-04 { opacity: 0.4; }
.opacity-05 { opacity: 0.5; }

.bg-01 { top: 25%; left: 0; }
.bg-02 { top: 33%; left: 0; }
.bg-03 { top: 50%; left: 0; }
.bg-04 { top: 66%; left: 0; }
.bg-05 { top: 75%; left: 0; }
.bg-06 { top: 0; left: 25%; }
.bg-07 { top: 0; left: 50%; }
.bg-08 { top: 0; left: 75%; }
.bg-09 { top: 0; left: 16.66%; }
.bg-10 { top: 0; left: 83.33%; }
.bg-11,
.bg-12,
.bg-13,
.bg-14,
.bg-15 {
  left: 50%;
  top: 50%;
}
.bg-16 { top: 25%; left: 0; }
.bg-17 { top: 50%; left: 0; }
.bg-18 { top: 75%; left: 0; }
.bg-19 { top: 0; left: 25%; }
.bg-20 { top: 0; left: 75%; }
.bg-21 { top: 16.66%; left: 33.33%; }
.bg-22 { top: 33.33%; left: 66.66%; }
.bg-23 { top: 66.66%; left: 25%; }
.bg-24 { top: 83.33%; left: 75%; }
.bg-25 { top: 12.5%; left: 0; }
.bg-26 { top: 37.5%; left: 0; }
.bg-27 { top: 62.5%; left: 0; }
.bg-28 { top: 87.5%; left: 0; }
.bg-29 { top: 0; left: 0; }
.bg-30 { top: 0; right: 0; }
.bg-31 { bottom: 0; left: 0; }
.bg-32 { bottom: 0; right: 0; }
.bg-33 { top: 20%; left: 20%; }
.bg-34 { top: 40%; left: 80%; }
.bg-35 { top: 80%; left: 40%; }

.card-wrap {
  max-width: 32rem;
  position: relative;
  transition: transform 0.2s ease-out;
  width: 100%;
  z-index: 1;
}

.card-glow {
  background: var(--gradient-card-glow);
  border-radius: 1rem;
  filter: blur(24px);
  inset: 0;
  position: absolute;
  z-index: -1;
}

.auth-card-shell {
  backdrop-filter: blur(12px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-auth-card);
  padding: 1.25rem;
  position: relative;
}

.auth-card-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.back-home-link {
  align-items: center;
  color: var(--muted-foreground);
  display: inline-flex;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.back-home-link:hover,
.theme-toggle-button:hover,
.signup-link:hover {
  color: var(--foreground);
}

.back-home-icon {
  height: 1rem;
  margin-right: 0.5rem;
  width: 1rem;
}

.theme-toggle-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  cursor: pointer;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  padding: 0.5rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  width: 2.25rem;
}

.theme-toggle-button:hover {
  background: var(--accent);
}

.theme-toggle-icon {
  height: 1.25rem;
  width: 1.25rem;
}

.brand-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.brand-logo {
  display: block;
  height: 4rem;
  object-fit: contain;
  width: 4rem;
}

.title-group {
  margin-bottom: 1.5rem;
  text-align: center;
}

.title-group h1 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin: 0;
}

.new-experience-link-wrap {
  margin-bottom: 1.5rem;
  text-align: center;
}

.new-experience-link {
  color: var(--color-text-brand);
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.new-experience-link:hover,
.forgot-password-link:hover {
  color: var(--color-text-brand-hover);
}

.auth-body {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
  max-width: 28rem;
  width: 100%;
}

.field-stack {
  display: grid;
  gap: 0.5rem;
}

.field-stack label {
  font-size: 0.875rem;
  font-weight: 500;
}

.field-stack input {
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: 0.375rem;
  color: var(--foreground);
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.field-stack input:focus {
  box-shadow: 0 0 0 1px var(--ring);
  outline: none;
}

.field-stack input::placeholder {
  color: var(--muted-foreground);
}

.forgot-password-row {
  display: flex;
  justify-content: flex-end;
}

.forgot-password-link {
  color: var(--color-text-brand-strong);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.submit-button {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: 0.375rem;
  color: var(--primary-foreground);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.25rem;
  justify-content: center;
  padding: 0.5rem 1rem;
  transition: opacity 0.2s ease;
  width: 100%;
}

.submit-button:hover {
  opacity: 0.9;
}

.divider-row {
  align-items: center;
  display: flex;
  gap: 0.25rem;
  margin: 0.5rem 0 0;
  position: relative;
  width: 100%;
}

.divider-line {
  border-top: 1px solid var(--border);
  flex: 1;
}

.divider-pill {
  background: var(--background);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 1rem;
  position: relative;
  z-index: 1;
}

.signup-copy {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
  text-align: center;
}

.signup-link {
  border-radius: 0.375rem;
  color: var(--foreground);
  display: inline-block;
  font-weight: 500;
  margin-left: 0.2rem;
  padding: 0.25rem 0.5rem;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.signup-link:hover {
  background: var(--accent);
}

.status-slot {
  min-height: 0.25rem;
}

.status-banner {
  border: 1px solid;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  padding: 0.75rem 0.875rem;
}

.status-success {
  background: var(--color-status-success-banner-bg);
  border-color: var(--color-status-success-banner-border);
  color: var(--color-status-success-banner-foreground);
}

.status-error {
  background: var(--color-status-danger-banner-bg);
  border-color: var(--color-status-danger-banner-border);
  color: var(--color-status-danger-banner-foreground);
}

.gsi-material-button {
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  -webkit-user-select: none;
  background-color: var(--color-surface-default);
  background-image: none;
  border: 1px solid var(--color-border-google);
  border-radius: 20px;
  box-sizing: border-box;
  color: var(--color-text-google);
  cursor: pointer;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  max-width: 400px;
  min-width: min-content;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  transition:
    background-color 0.218s,
    border-color 0.218s,
    box-shadow 0.218s;
  vertical-align: middle;
  white-space: nowrap;
  width: 100%;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  flex-grow: 1;
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 0.218s;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: var(--overlay-google-state);
  opacity: 0.12;
}

.gsi-material-button:not(:disabled):hover {
  box-shadow: var(--shadow-google-button);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: var(--overlay-google-state);
  opacity: 0.08;
}

.home-shell {
  background: var(--gradient-shell);
  min-height: 100vh;
}

.dashboard-shell {
  background: var(--gradient-shell);
  color: var(--foreground);
  display: grid;
  grid-template-columns: minmax(16rem, 18rem) 1fr;
  min-height: 100vh;
}

.dashboard-sidebar {
  padding-left: env(safe-area-inset-left, 0px);
}

.sidebar-nav-shell {
  background: var(--color-surface-elevated);
  border-right: 1px solid var(--color-border-panel);
  box-shadow: var(--shadow-sidebar);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: env(safe-area-inset-top, 0px) 0.75rem env(safe-area-inset-bottom, 0px) 0;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  position: relative;
}

.sidebar-brand-link {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.sidebar-brand-logo {
  border-radius: 0.75rem;
  height: 4rem;
  object-fit: cover;
  width: 4rem;
}

.sidebar-brand-title {
  color: var(--color-text-heading-alt);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.sidebar-collapse-button {
  align-items: center;
  background: var(--color-surface-elevated-strong);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow-floating-control);
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  height: 1.5rem;
  justify-content: center;
  padding: 0.25rem;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
  width: 1.5rem;
}

.sidebar-collapse-button svg {
  height: 1rem;
  width: 1rem;
}

.sidebar-primary {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.sidebar-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0;
}

.sidebar-divider {
  margin: 0.5rem 0;
  padding: 0 0.875rem;
}

.sidebar-divider hr,
.sidebar-projects hr {
  border: 0;
  border-top: 1px solid var(--color-border-panel-muted);
  margin: 0;
}

.sidebar-nav-item {
  border-radius: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.15rem 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav-item:hover {
  background: var(--overlay-dark-soft);
  color: var(--color-surface-muted-inverse);
}

.sidebar-nav-item.is-active {
  background: var(--overlay-brand-soft-strong);
  color: var(--color-text-brand);
  font-weight: 600;
}

.sidebar-nav-link {
  display: block;
  width: 100%;
}

.sidebar-nav-link-inner {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0.95rem;
}

.sidebar-nav-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.sidebar-nav-icon svg {
  height: 1.35rem;
  width: 1.35rem;
}

.sidebar-nav-label {
  font-size: 1rem;
}

.sidebar-projects {
  margin-top: 0.4rem;
  padding: 0 0.75rem 0.75rem;
}

.sidebar-section-label {
  color: var(--color-text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0.9rem 0 0.65rem;
  padding: 0 0.5rem;
  text-transform: uppercase;
}

.sidebar-project-list {
  display: grid;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-project-link {
  align-items: center;
  border-radius: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 0.65rem;
  padding: 0.48rem 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-project-link:hover {
  background: var(--overlay-dark-soft);
  color: var(--color-surface-muted-inverse);
}

.sidebar-project-icon {
  align-items: center;
  border: 1px solid var(--color-border-panel-strong);
  border-radius: 999px;
  display: inline-flex;
  flex-shrink: 0;
  height: 1.55rem;
  justify-content: center;
  width: 1.55rem;
}

.sidebar-project-icon svg {
  height: 0.9rem;
  width: 0.9rem;
}

.sidebar-project-label {
  flex: 1;
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer-links {
  margin-top: auto;
  padding-bottom: 0.25rem;
}

.sidebar-organization {
  background: var(--color-surface-elevated);
  padding: 0 0.5rem 0.9rem;
}

.organization-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.95rem;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  text-align: left;
  transition: background-color 0.2s ease;
  width: 100%;
}

.organization-button:hover {
  background: var(--overlay-dark-soft);
}

.organization-avatar {
  border-radius: 999px;
  display: inline-flex;
  flex-shrink: 0;
  height: 1.75rem;
  overflow: hidden;
  width: 1.75rem;
}

.organization-avatar img {
  aspect-ratio: 1;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.organization-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.organization-name {
  color: var(--color-text-body-subtle);
  font-size: 0.95rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.organization-meta {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
  padding: 2rem;
}

.overview-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100%;
}

.overview-header {
  padding: 0 0 0.25rem;
}

.overview-date {
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.overview-header-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.overview-greeting {
  color: var(--color-text-secondary);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 500;
  margin: 0;
}

.overview-greeting span {
  color: var(--color-surface-muted-inverse);
}

.overview-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.overview-badge {
  align-items: center;
  background: var(--gradient-overview-badge);
  border: 0;
  border-radius: 999px;
  color: var(--color-text-inverse);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.75rem;
}

.overview-logout-form {
  margin: 0;
}

.overview-logout-button {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.85rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
}

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

.quick-action-card {
  align-items: center;
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-subtle);
  border-radius: 1rem;
  cursor: pointer;
  display: flex;
  gap: 0.9rem;
  min-height: 5rem;
  padding: 0.9rem;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-action-card:hover,
.project-card:hover {
  box-shadow: var(--shadow-surface-hover);
}

.quick-action-icon {
  align-items: center;
  background: var(--color-surface-brand-muted);
  border-radius: 0.7rem;
  color: var(--color-text-brand-accent);
  display: inline-flex;
  flex-shrink: 0;
  height: 2.5rem;
  justify-content: center;
  width: 2.5rem;
}

.quick-action-icon svg {
  height: 1.5rem;
  width: 1.5rem;
}

.quick-action-copy {
  flex: 1;
  min-width: 0;
}

.quick-action-title {
  color: var(--color-surface-muted-inverse);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

.quick-action-copy p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.overview-section {
  padding: 0.25rem 0 0;
}

.overview-section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.overview-section-heading h1,
.overview-section-heading h3,
.tasks-section-header h3 {
  color: var(--color-surface-muted-inverse);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.project-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-subtle);
  border-radius: 1rem;
  cursor: pointer;
  padding: 1rem;
  transition: box-shadow 0.2s ease;
}

.project-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-status,
.task-status {
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
}

.tone-warning {
  background: var(--color-status-warning-emphasis-bg);
  border-color: var(--color-status-warning-emphasis-border);
  color: var(--color-status-warning-emphasis-foreground);
}

.tone-info {
  background: var(--color-status-info-soft-bg);
  border-color: var(--color-status-info-soft-border);
  color: var(--color-status-info-foreground);
}

.tone-success {
  background: var(--color-status-success-soft-bg);
  border-color: var(--color-status-success-soft-border);
  color: var(--color-status-success-foreground);
}


.project-card-top .borderless-icon-button {
  padding: 0;
}

.project-card-top .borderless-icon-button.ui-icon-button-ghost.ui-icon-button-neutral:hover {
  color: var(--color-surface-muted-inverse);
}

.project-card-top .borderless-icon-button.ui-icon-button-ghost.ui-icon-button-danger:hover {
  color: var(--color-status-danger-icon-hover);
}

.borderless-icon-button svg,
.project-date-row svg,
.overview-more-button svg,
.tasks-add-button svg,
.task-check svg {
  height: 1rem;
  width: 1rem;
}

td.text-right .borderless-icon-button {
  align-items: center;
  border-radius: 0.25rem;
  color: var(--color-text-faint);
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem;
  transition: color 0.2s;
}

td.text-right .borderless-icon-button.ui-icon-button-ghost.ui-icon-button-neutral:hover {
  color: var(--color-surface-muted-inverse);
}

td.text-right .borderless-icon-button.ui-icon-button-ghost.ui-icon-button-danger:hover {
  color: var(--color-status-danger-icon-hover);
}

.project-card-title-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-avatar {
  align-items: center;
  background: var(--project-color, var(--color-project-fallback));
  border-radius: 0.85rem;
  color: var(--color-text-inverse);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.project-avatar > svg {
  height: 1.25rem;
  width: 1.25rem;
}

.project-list-icon {
  background: var(--project-color, var(--color-project-fallback));
  color: var(--color-text-inverse);
}

.project-accent-blue {
  background: var(--color-project-fallback);
}

.project-accent-purple {
  background: var(--color-project-accent-purple);
}

.project-accent-red {
  background: var(--color-project-accent-red);
}

.project-card-title-row h4 {
  color: var(--color-surface-muted-inverse);
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-date-row {
  align-items: center;
  color: var(--color-text-muted);
  display: flex;
  font-size: 0.875rem;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-progress-label {
  align-items: center;
  color: var(--color-text-muted);
  display: flex;
  font-size: 0.875rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.project-progress-label strong {
  color: var(--color-surface-muted-inverse);
}

.project-progress-track {
  background: var(--color-surface-muted);
  border-radius: 999px;
  height: 0.5rem;
  overflow: hidden;
}

.project-progress-bar {
  background: var(--project-color, var(--color-project-fallback));
  border-radius: 999px;
  height: 100%;
}

.tablo-color-picker {
  max-width: 5rem;
  min-height: 44px;
  padding: 0.4rem;
}

.overview-more-row {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.overview-more-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--color-text-brand-strong);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.4rem;
}

.app-section-page {
  min-height: 100vh;
  padding: 2rem;
}

.app-section-surface {
  background: var(--gradient-app-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-surface-lg);
  max-width: 52rem;
  padding: 2rem;
}

.app-section-eyebrow {
  color: var(--color-text-brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.app-section-surface h2 {
  color: var(--color-surface-muted-inverse);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  margin: 0;
}

.app-section-surface p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin: 1rem 0 0;
  max-width: 40rem;
}

.not-found-page {
  align-items: center;
  background: var(--gradient-not-found-bg);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
}

.not-found-surface {
  backdrop-filter: blur(18px);
  background: var(--color-surface-overlay);
  border: 1px solid var(--color-border-overlay);
  border-radius: 2rem;
  box-shadow: var(--shadow-surface-xl);
  padding: 3rem;
  width: min(100%, 44rem);
}

.not-found-eyebrow {
  align-items: center;
  background: var(--overlay-brand-soft);
  border-radius: 999px;
  color: var(--color-text-brand-strong);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.85rem;
  text-transform: uppercase;
}

.not-found-code {
  color: var(--color-surface-muted-inverse);
  font-size: clamp(4.75rem, 11vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.95;
  margin-top: 1.4rem;
}

.not-found-surface h2 {
  color: var(--color-surface-muted-inverse);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.05;
  margin: 1rem 0 0;
}

.not-found-surface p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin: 1rem 0 0;
  max-width: 36rem;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.not-found-primary,
.not-found-secondary {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 600;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.not-found-primary {
  background: var(--gradient-not-found-primary);
  box-shadow: var(--shadow-brand-action);
  color: var(--color-text-inverse);
}

.not-found-primary:hover,
.not-found-secondary:hover {
  transform: translateY(-1px);
}

.not-found-secondary-form {
  margin: 0;
}

.not-found-secondary {
  background: var(--color-surface-elevated-soft);
  border-color: var(--color-border-overlay-strong);
  color: var(--color-text-overlay);
  cursor: pointer;
}

.not-found-meta {
  align-items: center;
  color: var(--color-text-disabled);
  display: flex;
  font-size: 0.95rem;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.not-found-meta strong {
  color: var(--color-surface-muted-inverse);
}

.tasks-section {
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-subtle);
  border-radius: 1rem;
  overflow: hidden;
}

.tasks-section-header {
  align-items: center;
  border-bottom: 1px solid var(--color-border-muted);
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 1rem;
}

.tasks-add-button {
  align-items: center;
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-muted);
  border-radius: 0.7rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: inline-flex;
  font-weight: 500;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.task-row {
  align-items: center;
  border-bottom: 1px solid var(--color-border-muted);
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  transition: background-color 0.2s ease;
}

.task-row:hover {
  background: var(--color-surface-neutral-hover);
}

.task-check {
  align-items: center;
  background: var(--color-surface-default);
  border: 2px solid var(--color-border-strong);
  border-radius: 999px;
  color: var(--color-text-inverse);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.task-check.is-complete {
  background: var(--color-text-brand-strong);
  border-color: var(--color-text-brand-strong);
}

.task-body {
  flex: 1;
  min-width: 0;
}

.task-body p {
  color: var(--color-surface-muted-inverse);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row.is-complete .task-body p {
  color: var(--color-text-faint);
  text-decoration: line-through;
}

.task-meta {
  align-items: center;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.task-project-badge {
  align-items: center;
  border-radius: 0.35rem;
  color: var(--color-text-inverse);
  display: inline-flex;
  font-size: 0.5rem;
  font-weight: 700;
  height: 1rem;
  justify-content: center;
  width: 1rem;
}

.task-date {
  white-space: nowrap;
}

.home-card {
  backdrop-filter: blur(12px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-auth-card);
  max-width: 28rem;
  padding: 2rem;
  text-align: center;
  width: 100%;
}

.home-card h1 {
  margin: 0 0 0.75rem;
}

.home-card p {
  color: var(--muted-foreground);
  margin: 0;
}

.home-logo {
  display: block;
  height: 4rem;
  margin: 0 auto 1rem;
  object-fit: contain;
  width: 4rem;
}

.logout-form {
  margin-top: 1.5rem;
}

.logout-button {
  max-width: 14rem;
  width: 100%;
}

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

  .sidebar-nav-shell {
    border-bottom: 1px solid var(--color-border-panel);
    border-right: 0;
    box-shadow: var(--shadow-surface-hover);
    height: auto;
    position: static;
  }

  .overview-actions,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-main {
    padding: 1rem;
  }

  .overview-header-row,
  .tasks-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-actions,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .task-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .task-status {
    margin-left: 2.75rem;
  }

  .not-found-surface {
    border-radius: 1.5rem;
    padding: 2rem;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .not-found-primary,
  .not-found-secondary,
  .not-found-secondary-form {
    width: 100%;
  }

  .app-section-page {
    padding: 1rem;
  }

  .app-section-surface {
    padding: 1.5rem;
  }
}

@keyframes move-right-slow {
  from { transform: translateX(-6rem); }
  to { transform: translateX(calc(100vw + 6rem)); }
}

@keyframes move-right-medium {
  from { transform: translateX(-5rem); }
  to { transform: translateX(calc(100vw + 5rem)); }
}

@keyframes move-right-fast {
  from { transform: translateX(-7rem); }
  to { transform: translateX(calc(100vw + 7rem)); }
}

@keyframes move-down-slow {
  from { transform: translateY(-6rem); }
  to { transform: translateY(calc(100vh + 6rem)); }
}

@keyframes move-down-medium {
  from { transform: translateY(-5rem); }
  to { transform: translateY(calc(100vh + 5rem)); }
}

@keyframes move-diagonal-1 {
  from { transform: translate(-4rem, -4rem); }
  to { transform: translate(52vw, 70vh); }
}

@keyframes move-diagonal-2 {
  from { transform: translate(0, -4rem); }
  to { transform: translate(-18vw, 76vh); }
}

@keyframes move-diagonal-3 {
  from { transform: translate(0, -4rem); }
  to { transform: translate(12vw, 72vh); }
}

@keyframes orbit-1 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(11rem); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(11rem); }
}

@keyframes orbit-2 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(7rem); }
  to { transform: translate(-50%, -50%) rotate(-360deg) translateX(7rem); }
}

@keyframes orbit-3 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(5rem); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(5rem); }
}

@keyframes orbit-4 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(15rem); }
  to { transform: translate(-50%, -50%) rotate(360deg) translateX(15rem); }
}

@keyframes orbit-5 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(8rem); }
  to { transform: translate(-50%, -50%) rotate(-360deg) translateX(8rem); }
}

@keyframes zigzag-1 {
  0% { transform: translateX(-6rem) translateY(0); }
  25% { transform: translateX(25vw) translateY(-3rem); }
  50% { transform: translateX(50vw) translateY(3rem); }
  75% { transform: translateX(75vw) translateY(-2rem); }
  100% { transform: translateX(calc(100vw + 6rem)) translateY(1rem); }
}

@keyframes zigzag-2 {
  0% { transform: translateX(-5rem) translateY(0); }
  25% { transform: translateX(25vw) translateY(2rem); }
  50% { transform: translateX(50vw) translateY(-3rem); }
  75% { transform: translateX(75vw) translateY(1.5rem); }
  100% { transform: translateX(calc(100vw + 5rem)) translateY(0); }
}

@keyframes zigzag-3 {
  0% { transform: translateX(-7rem) translateY(0); }
  20% { transform: translateX(20vw) translateY(-4rem); }
  40% { transform: translateX(40vw) translateY(4rem); }
  60% { transform: translateX(60vw) translateY(-2rem); }
  80% { transform: translateX(80vw) translateY(3rem); }
  100% { transform: translateX(calc(100vw + 7rem)) translateY(0); }
}

@keyframes spiral-1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.6); }
  100% { transform: translate(90vw, 90vh) rotate(360deg) scale(1.3); }
}

@keyframes spiral-2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1.4); }
  100% { transform: translate(-70vw, 90vh) rotate(-360deg) scale(0.7); }
}

@keyframes float-random-1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1.4rem, -1rem); }
}

@keyframes float-random-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1.2rem, 1.1rem); }
}

@keyframes float-random-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0.9rem, -1.4rem); }
}

@keyframes float-random-4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1rem, 0.8rem); }
}

@keyframes wave-1 {
  from { transform: translateX(-4rem); }
  to { transform: translateX(calc(100vw + 4rem)); }
}

@keyframes wave-2 {
  from { transform: translateX(-5rem); }
  to { transform: translateX(calc(100vw + 5rem)); }
}

@keyframes wave-3 {
  from { transform: translateX(-4rem); }
  to { transform: translateX(calc(100vw + 4rem)); }
}

@keyframes wave-4 {
  from { transform: translateX(-6rem); }
  to { transform: translateX(calc(100vw + 6rem)); }
}

@keyframes corner-shoot-1 {
  from { transform: translate(0, 0); }
  to { transform: translate(110vw, 110vh); }
}

@keyframes corner-shoot-2 {
  from { transform: translate(0, 0); }
  to { transform: translate(-110vw, 110vh); }
}

@keyframes corner-shoot-3 {
  from { transform: translate(0, 0); }
  to { transform: translate(110vw, -110vh); }
}

@keyframes corner-shoot-4 {
  from { transform: translate(0, 0); }
  to { transform: translate(-110vw, -110vh); }
}

@keyframes bounce-ball-1 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-5rem) translateX(2rem); }
}

@keyframes bounce-ball-2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(4rem) translateX(-2rem); }
}

@keyframes bounce-ball-3 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-4rem) translateX(1.5rem); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.6rem); }
}

@keyframes pulse-gentle {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.8rem); }
}

@keyframes scale-gentle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes rotate-gentle {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(12deg); }
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.9rem); }
}

@keyframes sway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(0.8rem); }
}

@keyframes spin-fast {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-fast {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes wobble {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-0.35rem) rotate(-5deg); }
  30% { transform: translateX(0.25rem) rotate(4deg); }
  45% { transform: translateX(-0.2rem) rotate(-2deg); }
  60% { transform: translateX(0.12rem) rotate(1deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-0.12rem); }
  75% { transform: translateX(0.12rem); }
}

@keyframes bounce-crazy {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-0.5rem) scale(1.05); }
  75% { transform: translateY(0.2rem) scale(0.98); }
}

@keyframes spin-wobble {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.12); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes flip {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
}

@keyframes twirl {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
}

@keyframes dance {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-0.3rem) rotate(-6deg); }
  75% { transform: translateY(0.3rem) rotate(6deg); }
}

@keyframes jiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-0.18rem); }
  50% { transform: translateX(0.18rem); }
  75% { transform: translateX(-0.1rem); }
}

@keyframes vibrate {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, -1px); }
  80% { transform: translate(1px, 1px); }
}

@keyframes swing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
}

@keyframes pendulum {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

@keyframes elastic {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.15, 0.9); }
  60% { transform: scale(0.95, 1.08); }
}

@keyframes rubber {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.2, 0.9); }
  65% { transform: scale(0.9, 1.15); }
}

@keyframes rocket {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-0.8rem) rotate(-12deg); }
}

@keyframes comet {
  0%, 100% { transform: translateX(0) rotate(12deg); }
  50% { transform: translateX(0.8rem) rotate(18deg); }
}

@keyframes meteor {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(-0.7rem) rotate(14deg); }
}

@keyframes blast {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(10deg); }
}

@keyframes spin-bounce {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(-0.5rem); }
}

@keyframes flip-bounce {
  0%, 100% { transform: rotateY(0deg) translateY(0); }
  50% { transform: rotateY(180deg) translateY(-0.5rem); }
}

@keyframes scale-bounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.14) translateY(-0.55rem); }
}

.animate-move-right-slow { animation: move-right-slow 25s linear infinite; }
.animate-move-right-medium { animation: move-right-medium 20s linear infinite; }
.animate-move-right-fast { animation: move-right-fast 15s linear infinite; }
.animate-move-down-slow { animation: move-down-slow 30s linear infinite; }
.animate-move-down-medium { animation: move-down-medium 25s linear infinite; }
.animate-move-diagonal-1 { animation: move-diagonal-1 35s linear infinite; }
.animate-move-diagonal-2 { animation: move-diagonal-2 28s linear infinite; }
.animate-move-diagonal-3 { animation: move-diagonal-3 32s linear infinite; }
.animate-orbit-1 { animation: orbit-1 20s linear infinite; }
.animate-orbit-2 { animation: orbit-2 25s linear infinite reverse; }
.animate-orbit-3 { animation: orbit-3 15s linear infinite; }
.animate-orbit-4 { animation: orbit-4 22s linear infinite; }
.animate-orbit-5 { animation: orbit-5 18s linear infinite; }
.animate-zigzag-1 { animation: zigzag-1 18s linear infinite; }
.animate-zigzag-2 { animation: zigzag-2 22s linear infinite; }
.animate-zigzag-3 { animation: zigzag-3 16s linear infinite; }
.animate-spiral-1 { animation: spiral-1 30s linear infinite; }
.animate-spiral-2 { animation: spiral-2 25s linear infinite; }
.animate-float-random-1 { animation: float-random-1 8s ease-in-out infinite; }
.animate-float-random-2 { animation: float-random-2 10s ease-in-out infinite; }
.animate-float-random-3 { animation: float-random-3 12s ease-in-out infinite; }
.animate-float-random-4 { animation: float-random-4 9s ease-in-out infinite; }
.animate-wave-1 { animation: wave-1 20s linear infinite; }
.animate-wave-2 { animation: wave-2 24s linear infinite; }
.animate-wave-3 { animation: wave-3 18s linear infinite; }
.animate-wave-4 { animation: wave-4 26s linear infinite; }
.animate-corner-shoot-1 { animation: corner-shoot-1 15s linear infinite; }
.animate-corner-shoot-2 { animation: corner-shoot-2 18s linear infinite; }
.animate-corner-shoot-3 { animation: corner-shoot-3 20s linear infinite; }
.animate-corner-shoot-4 { animation: corner-shoot-4 16s linear infinite; }
.animate-bounce-ball-1 { animation: bounce-ball-1 12s ease-in-out infinite; }
.animate-bounce-ball-2 { animation: bounce-ball-2 14s ease-in-out infinite; }
.animate-bounce-ball-3 { animation: bounce-ball-3 10s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 8s linear infinite; }
.animate-spin-reverse { animation: spin-reverse 6s linear infinite; }
.animate-bounce-gentle { animation: bounce-gentle 3s ease-in-out infinite; }
.animate-bounce-soft { animation: bounce-soft 4s ease-in-out infinite; }
.animate-pulse-gentle { animation: pulse-gentle 4s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 2s ease-in-out infinite; }
.animate-float-gentle { animation: float-gentle 5s ease-in-out infinite; }
.animate-scale-gentle { animation: scale-gentle 6s ease-in-out infinite; }
.animate-rotate-gentle { animation: rotate-gentle 8s ease-in-out infinite; }
.animate-sway { animation: sway 3s ease-in-out infinite; }
.animate-spin-fast { animation: spin-fast 2s linear infinite; }
.animate-pulse-fast { animation: pulse-fast 1.5s ease-in-out infinite; }
.animate-wobble { animation: wobble 2s ease-in-out infinite; }
.animate-shake { animation: shake 0.5s ease-in-out infinite; }
.animate-bounce-crazy { animation: bounce-crazy 1s ease-in-out infinite; }
.animate-spin-wobble { animation: spin-wobble 4s ease-in-out infinite; }
.animate-flip { animation: flip 3s ease-in-out infinite; }
.animate-twirl { animation: twirl 5s ease-in-out infinite; }
.animate-dance { animation: dance 3s ease-in-out infinite; }
.animate-jiggle { animation: jiggle 1s ease-in-out infinite; }
.animate-vibrate { animation: vibrate 0.3s ease-in-out infinite; }
.animate-swing { animation: swing 2.8s ease-in-out infinite; }
.animate-pendulum { animation: pendulum 2.4s ease-in-out infinite; }
.animate-elastic { animation: elastic 2.2s ease-in-out infinite; }
.animate-rubber { animation: rubber 2.5s ease-in-out infinite; }
.animate-rocket { animation: rocket 1.8s ease-in-out infinite; }
.animate-comet { animation: comet 2s ease-in-out infinite; }
.animate-meteor { animation: meteor 1.7s ease-in-out infinite; }
.animate-blast { animation: blast 2.2s ease-in-out infinite; }
.animate-spin-bounce { animation: spin-bounce 2.4s ease-in-out infinite; }
.animate-flip-bounce { animation: flip-bounce 2.6s ease-in-out infinite; }
.animate-scale-bounce { animation: scale-bounce 2.1s ease-in-out infinite; }

@media (max-width: 640px) {
  .login-screen {
    padding: 2rem 1rem;
  }

  .auth-card-shell {
    padding: 1.25rem;
  }
}

/* ── Message bubbles ── */

.message-row {
  padding: 0.75rem 1rem;
}

.message-own {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.message-other {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.message-bubble {
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.25rem 0.75rem 0.75rem 0.75rem;
  max-width: 70%;
  padding: 0.75rem 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-own .message-bubble {
  background: rgba(128, 78, 236, 0.10);
  border-radius: 0.75rem 0.75rem 0.25rem 0.75rem;
}

.message-other .message-bubble {
  background: var(--color-surface-default);
}

.message-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.message-own .message-meta {
  justify-content: flex-end;
}

.message-meta .message-author {
  font-weight: 600;
}

/* === Tablo Detail Page === */

.tablo-detail-page {
  padding: 24px 32px;
}

.tablo-detail-header {
  border-bottom: 1px solid var(--color-border-muted);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 0;
}

.tablo-detail-title-row {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 0;
  padding-bottom: 16px;
}

.tablo-detail-avatar {
  align-items: center;
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.tablo-detail-title {
  color: var(--color-text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.tablo-metadata-row {
  align-items: center;
  border-bottom: 1px solid var(--color-border-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-block: 16px;
}

.tablo-meta-segment {
  align-items: center;
  color: var(--color-text-secondary);
  display: flex;
  font-size: 0.875rem;
  gap: 8px;
}

.tablo-meta-progress {
  align-items: center;
  display: flex;
  gap: 8px;
}

.tablo-progress-bar {
  background: var(--color-brand-primary);
  border-radius: 9999px;
  height: 5px;
}

.tablo-tab-bar {
  border-bottom: 1px solid var(--color-border-muted);
  display: flex;
  gap: 24px;
  margin-top: 0;
  padding-top: 8px;
}

.tablo-tab-bar .tab-nav-item {
  font-size: 0.875rem;
  padding-bottom: 12px;
}

.tablo-kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  padding-top: 24px;
}

.tablo-kanban-column {
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-default);
  border-radius: 0.75rem;
  flex-shrink: 0;
  overflow: hidden;
  width: 18rem;
}

.tablo-kanban-column-header {
  align-items: center;
  background: var(--color-surface-muted);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 12px 16px;
}

.tablo-kanban-column-title {
  color: var(--color-text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.tablo-kanban-task-count {
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-muted);
  border-radius: 9999px;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  padding: 0 8px;
}

.tablo-kanban-add-link {
  color: var(--color-text-brand);
  font-size: 0.875rem;
  font-weight: 400;
  margin-left: auto;
  text-decoration: none;
}

.tablo-kanban-empty {
  color: var(--color-text-faint);
  font-size: 0.875rem;
  padding: 24px 16px;
  text-align: center;
}

.task-card {
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-default);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 8px;
  padding-inline: 12px;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.task-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.task-card-top-row {
  align-items: flex-start;
  display: flex;
  gap: 6px;
}

.task-drag-handle {
  color: var(--color-text-faint);
  cursor: grab;
  flex-shrink: 0;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.task-card:hover .task-drag-handle {
  opacity: 1;
}

.task-card-title {
  color: var(--color-text-primary);
  flex: 1;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card-delete {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.task-card:hover .task-card-delete {
  opacity: 1;
}

.tablo-etapes-section {
  border-top: 1px solid var(--color-border-muted);
  margin-top: 24px;
  padding-top: 24px;
}

.tablo-etapes-section h2,
.tablo-etapes-section h3 {
  color: var(--color-text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.tablo-etapes-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tablo-etape-row {
  align-items: center;
  background: var(--color-surface-default);
  border: 1px solid var(--color-border-default);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 16px;
}

.tablo-etape-name {
  color: var(--color-text-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.tablo-etape-count {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
}

.tablo-files-table-wrapper {
  border: 1px solid var(--color-border-default);
  border-radius: 12px;
  overflow: hidden;
}

.tablo-files-table-wrapper thead tr {
  background: var(--color-surface-muted);
}

.tablo-files-table-wrapper thead th {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tablo-files-table-wrapper tbody tr {
  border-bottom: 1px solid var(--color-border-default);
}

.tablo-files-table-wrapper tbody tr:hover {
  background: var(--color-surface-subtle);
}
