@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  color-scheme: light;
  --bg: #f0f2f5;
  --panel: #ffffff;
  --panel-secondary: #f8fafc;
  --text: #111827;
  --text-secondary: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #cbd5e1;
  --accent: #111827;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-yellow: #ffbe1a;
  --danger: #dc2626;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.05), 0 1px 2px rgba(17, 24, 39, 0.03);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.05), 0 1px 3px rgba(17, 24, 39, 0.03);
  --shadow-lg: 0 20px 45px rgba(17, 24, 39, 0.08), 0 4px 12px rgba(17, 24, 39, 0.04);

  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.shell--wide {
  width: min(1200px, calc(100% - 32px));
}

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

/* Panels & Cards */
.concept-card,
.panel {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-panel {
  width: min(540px, 100%);
  padding: 48px 40px;
  text-align: center;
}

.brand-mark {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: var(--accent-blue);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  margin-bottom: 14px;
}

h1 {
  margin: 10px 0 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.muted-url {
  margin-top: 20px;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  background: #f3f4f6;
  padding: 8px 16px;
  border-radius: 99px;
  display: inline-block;
  border: 1px solid #e5e7eb;
}

/* Greeting Banner & Stats Strip */
.greeting-banner {
  margin-bottom: 24px;
}

.greeting-date {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.greeting-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  color: #111827;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.greeting-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
}

.stats-pill:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.stats-pill strong {
  color: #111827;
  font-weight: 800;
}

/* Segmented Tabs */
.segmented-tabs {
  display: inline-flex;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 99px;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.segmented-tab {
  padding: 6px 14px;
  border-radius: 99px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.segmented-tab:hover {
  color: #111827;
}

.segmented-tab.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: var(--shadow-sm);
}

.segmented-tab strong {
  background: rgba(0,0,0,0.06);
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 11.5px;
}

.segmented-tab.is-active strong {
  background: #111827;
  color: #ffffff;
}

/* Concept Card Top Bar & Filters */
.concept-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 16px;
  flex-wrap: wrap;
}

.concept-card-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 99px;
  background: #f3f4f6;
  color: #374151;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
}

.concept-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 28px 20px;
}

.concept-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.concept-search-input {
  flex: 1;
  max-width: 360px;
  height: 40px;
  padding: 0 16px 0 38px;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}

.concept-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.concept-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.concept-select {
  height: 40px;
  padding: 0 32px 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  background-color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.concept-select:hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
}

/* Scrollable Table Wrapper for medium/desktop screens to prevent cutoff */
.concept-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 20px;
}

.concept-table-grid {
  min-width: 780px;
}

/* Table rows & grid */
.concept-table-header {
  display: grid;
  grid-template-columns: 40px 64px minmax(180px, 2.5fr) 136px minmax(150px, 1.8fr) 120px 100px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #f8fafc;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
}

.concept-row {
  display: grid;
  grid-template-columns: 40px 64px minmax(180px, 2.5fr) 136px minmax(150px, 1.8fr) 120px 100px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
  border-radius: 14px;
}

.concept-row:last-child {
  border-bottom: 0;
}

.concept-row:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.concept-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 0.15s ease;
  font-size: 13px;
  font-weight: 800;
}

.concept-row:hover .concept-checkbox {
  border-color: #9ca3af;
}

.concept-row.is-checked .concept-checkbox {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.concept-key {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
}

.concept-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.concept-subtext {
  font-size: 13px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-top: 2px;
}

/* Status Badges with subtle indicator dot */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge--not_estimated {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}
.status-badge--not_estimated::before { background: #f59e0b; }

.status-badge--in_progress {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}
.status-badge--in_progress::before { background: #10b981; }

.status-badge--done {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}
.status-badge--done::before { background: #3b82f6; }

.status-badge--paused {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #7e22ce;
}
.status-badge--paused::before { background: #a855f7; }

.status-badge--cancelled {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.status-badge--cancelled::before { background: #ef4444; }

.concept-assignee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}

.avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}

.concept-date {
  font-size: 13px;
  color: #4b5563;
}

.concept-priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}

/* Bottom Dashboard Widgets Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 20px;
  margin-top: 24px;
}

.widget-card {
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Yellow Progress Widget (Tasks concept) */
.widget-card--progress {
  background: #ffbe1a;
  color: #111827;
  box-shadow: 0 14px 35px rgba(255, 190, 26, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: grid;
  gap: 18px;
}

.widget-card--progress h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.progress-chart-box {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 140px;
}

.progress-col {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.progress-bar-wrap {
  width: 100%;
  max-width: 44px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  height: 90px;
  display: flex;
  align-items: flex-end;
  padding: 4px;
}

.progress-bar-inner {
  width: 100%;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.progress-col span {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
}

.progress-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.progress-stat-item strong {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.progress-stat-item span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.75);
}

/* Schedule / Timeline Widget (Mondays concept) */
.widget-card--schedule {
  display: grid;
  gap: 16px;
}

.widget-card--schedule h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schedule-dates-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.schedule-date-item {
  padding: 6px 2px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.schedule-date-item strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  margin-top: 2px;
}

.schedule-date-item.is-active {
  background: #f3e8ff;
  color: #7e22ce;
}

.schedule-date-item.is-active strong {
  color: #7e22ce;
}

.schedule-list {
  display: grid;
  gap: 12px;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border-left: 4px solid #10b981;
}

.schedule-item:nth-child(2) { border-left-color: #3b82f6; }
.schedule-item:nth-child(3) { border-left-color: #a855f7; }

.schedule-item-info strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.schedule-item-info span {
  font-size: 12px;
  color: #6b7280;
}

.widget-card--settings {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
}

.widget-card--settings h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.reminder-mini-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.reminder-mini-form .field {
  margin-bottom: 0;
}

.reminder-mini-form button {
  height: 44px;
}

/* Notes & Checklist Widget (Mondays concept) */
.widget-card--notes {
  display: grid;
  gap: 16px;
}

.widget-card--notes h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.notes-list {
  display: grid;
  gap: 14px;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.note-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.note-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.note-item.is-done .note-checkbox {
  background: #a855f7;
  border-color: #a855f7;
  color: #ffffff;
}

.note-content strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.note-content p {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0;
  line-height: 1.45;
}

/* Forms & Single Task Apple/Linear Vibe */
.task-form {
  padding: 32px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

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

label {
  color: var(--text-secondary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

input,
select,
textarea,
.readonly {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

input,
select,
.readonly {
  min-height: 42px;
  height: 42px;
  padding: 0 14px;
}

select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

select[multiple] {
  min-height: 110px;
  height: auto;
  padding: 8px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

select[multiple] option {
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

select[multiple] option:checked {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 600;
}

textarea {
  min-height: 130px;
  resize: vertical;
  padding: 14px 16px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.readonly {
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  color: var(--muted);
  background: #f9fafb;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  flex-wrap: wrap;
}

.save-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.save-state::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

.save-state.is-error {
  color: var(--danger);
}
.save-state.is-error::before {
  background: var(--danger);
}

.save-state.is-ok {
  color: #15803d;
}
.save-state.is-ok::before {
  background: #15803d;
}

/* Button Refinements (Mac / Linear / Apple style compact proportion) */
button,
a.button--blue,
a.secondary-button,
a.danger-button,
.button-link {
  min-height: 38px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 99px !important;
  color: #ffffff;
  background: #111827;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
}

button:hover,
a.button--blue:hover,
a.secondary-button:hover,
a.danger-button:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.18);
  text-decoration: none !important;
}

button:active,
a.button--blue:active,
a.secondary-button:active,
a.danger-button:active,
.button-link:active {
  transform: translateY(0);
}

.button--blue,
a.button--blue {
  background: var(--accent-blue);
  color: #ffffff !important;
  border: 0;
  border-radius: 99px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.22);
}

.button--blue:hover,
a.button--blue:hover {
  background: var(--accent-blue-hover);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  text-decoration: none !important;
}

.secondary-button,
a.secondary-button {
  min-height: 36px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  color: #374151 !important;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  border-radius: 99px !important;
}

.secondary-button:hover,
a.secondary-button:hover {
  color: #111827 !important;
  background: #f9fafb;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Compact header/top-bar buttons (.button--sm) */
.button--sm,
a.button--sm,
button.button--sm,
.greeting-actions .button--blue,
.greeting-actions .secondary-button {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  letter-spacing: -0.01em;
  gap: 6px;
  border-radius: 99px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.danger-button,
a.danger-button {
  color: #dc2626 !important;
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 99px !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.danger-button:hover,
a.danger-button:hover {
  color: #ffffff !important;
  background: #dc2626;
  border-color: #dc2626;
  text-decoration: none !important;
}

/* Projects Layout */
.project-create {
  margin-bottom: 24px;
  padding: 24px;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
}

.project-list {
  display: grid;
  gap: 16px;
}

.project-card {
  padding: 24px;
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.project-card h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  color: #4b5563;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.project-stats span {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  background: #f9fafb;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.inline-form--create {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.inline-form--create .field {
  flex: 1 1 200px;
  margin-bottom: 0;
}

.inline-form .field {
  margin-bottom: 0;
}

.client-chip-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.client-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.client-chip:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.client-chip div:first-child {
  display: grid;
  gap: 4px;
}

.client-chip strong {
  font-size: 15px;
  color: var(--text);
}

.client-chip span,
.muted-copy {
  color: var(--muted);
  font-size: 13px;
}

.chip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.clients-panel {
  align-self: start;
  padding: 24px;
}

.client-search {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

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

.client-list-row {
  display: grid;
  gap: 4px;
  padding: 12px 10px;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.client-list-row:hover {
  background: #f8fafc;
}

.client-list-row:last-child {
  border-bottom: 0;
}

.client-list-row strong {
  font-size: 14.5px;
  color: var(--text);
}

.client-list-row span {
  color: var(--muted);
  font-size: 13px;
}

.estimate-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.6fr);
  gap: 10px;
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  border-style: dashed;
  border-color: #cbd5e1;
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 21px;
}

.related-projects {
  margin-top: 24px;
  padding: 24px;
}

.related-project-list {
  display: grid;
  gap: 10px;
}

.related-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.related-project:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.related-project.is-current {
  border-color: #111827;
  background: #f3f4f6;
}

.related-project span {
  font-weight: 600;
  color: var(--text);
}

.related-project strong {
  color: #111827;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: #e5e7eb;
  padding: 3px 10px;
  border-radius: 99px;
}

/* Mobile & Tablet Responsive Layout (< 960px) */
@media (max-width: 960px) {
  .project-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 24px, 840px);
    padding: 20px 0 40px;
  }

  .concept-table-header {
    display: none;
  }

  .concept-table-scroll {
    padding: 0 16px 16px;
  }

  .concept-table-grid {
    min-width: 0;
  }

  /* Sleek mobile card layout for tasks */
  .concept-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 12px;
    background: #ffffff;
  }

  .concept-row > div {
    width: 100%;
  }

  /* Top row inside mobile card: Checkbox + Key left, Status + Estimate right */
  .concept-row > div:nth-child(1) {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .concept-row > div:nth-child(3) {
    margin-top: -4px;
  }

  .concept-row > div:nth-child(4) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed #f1f5f9;
    padding-top: 12px;
    margin-top: 4px;
  }

  .concept-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .concept-filters {
    flex-wrap: wrap;
  }

  .field-grid,
  .inline-form,
  .reminder-mini-form {
    grid-template-columns: 1fr;
  }

  .estimate-control {
    grid-template-columns: 1fr;
  }

  .progress-chart-box {
    grid-template-columns: repeat(2, 1fr);
  }

  .greeting-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .greeting-actions {
    width: 100%;
  }

  .greeting-actions button,
  .greeting-actions a {
    flex: 1;
  }
}
