:root {
  color-scheme: dark;
  --bg: #101111;
  --panel: #1a1b1b;
  --panel-2: #202122;
  --panel-3: #27282a;
  --line: #343638;
  --line-soft: rgba(255,255,255,.08);
  --text: #f3f0ee;
  --muted: #a9acb4;
  --faint: #777b85;
  --blue: #a8c2ff;
  --green: #2cff0a;
  --green-soft: #153d16;
  --red: #ffaaa1;
  --red-soft: #4a2524;
  --amber: #ffbc8d;
  --amber-soft: #4a2f23;
  --shadow: 0 18px 46px rgba(0,0,0,.36);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(88,128,255,.08), transparent 32%),
    linear-gradient(180deg, #111312 0%, #0f1010 100%);
  color: var(--text);
  font: 15px/1.45 "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

input,
select,
textarea {
  font-size: 16px;
}

button {
  cursor: pointer;
  color: inherit;
}

.app-shell {
  position: relative;
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 18px 104px;
  overflow-x: hidden;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 -18px;
  padding: 14px 18px 16px;
  background: rgba(16,17,17,.96);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  backdrop-filter: blur(14px);
}

.app-header.compact {
  justify-content: flex-start;
}

.app-header.compact h1 {
  flex: 1;
  font-size: 21px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 31px;
  letter-spacing: 0;
  line-height: 1.05;
}

#userLine,
#welcomeText {
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  color: var(--blue);
  font-weight: 800;
}

.ghost-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7fadff, #3777ff);
  color: #061023;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.15);
  overflow: hidden;
}

.avatar.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.avatar.mini {
  width: 36px;
  height: 36px;
  font-size: 12px;
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome {
  padding: 32px 0 18px;
}

.welcome h2 {
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.welcome h2.is-long {
  font-size: 27px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

select option {
  background: #1f2022;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(44,255,10,.8);
  box-shadow: 0 0 0 3px rgba(44,255,10,.12);
}

#saveUserBtn {
  border: 1px solid var(--blue);
  border-radius: 14px;
  background: rgba(168,194,255,.1);
}

.task-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 0 -18px 20px;
  padding: 0 18px 4px;
  scrollbar-width: none;
}

.task-tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-width: max-content;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #242527, #1c1d1e);
  color: #d7d9df;
  padding: 0 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: visible;
}

.tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #101626;
}

.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,188,141,.45);
  background: rgba(255,188,141,.1);
  color: #ffd4b8;
}

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

#taskList {
  display: grid;
  gap: 16px;
}

.task-card,
.metric-card,
.assistant-card,
.create-hero,
fieldset,
.detail-card,
.person-card,
.deadline-card,
.actions-card,
.discussion-card,
.team-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(100deg, #1d1e1f 0%, #181919 64%, #202124 100%);
  box-shadow: var(--shadow);
}

.task-card {
  padding: 16px;
  overflow: hidden;
}

.task-stripe {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.task-card.is-critical .task-stripe,
.task-card.is-overdue .task-stripe {
  background: var(--red);
}

.task-card.is-review .task-stripe {
  background: var(--amber);
}

.task-card-head {
  display: grid;
  gap: 12px;
}

.task-id {
  display: block;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.task-card h3 {
  font-size: 22px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

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

.status-badge,
.priority-badge,
.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  white-space: nowrap;
}

.status-badge {
  background: #1e2b43;
  border: 1px solid #435a84;
  color: #c8d8ff;
}

.status-badge.done {
  background: #173719;
  border-color: #268f24;
  color: #8cff80;
}

.status-badge.cancelled {
  background: #2a2b2d;
  border-color: #54575d;
  color: #c7c9cf;
}

.status-badge.review {
  background: var(--amber-soft);
  border-color: #80513d;
  color: #ffd1bb;
}

.priority-badge {
  background: var(--amber-soft);
  border: 1px solid #6e4940;
  color: #ffc7b9;
}

.priority-badge.critical {
  background: var(--red-soft);
  border-color: #7b403c;
  color: #ffc3bd;
}

.priority-badge.low {
  background: var(--green-soft);
  border-color: #2b8427;
  color: #9dff93;
}

.task-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.person-line,
.deadline-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.meta-label {
  display: block;
  color: #c8cfdf;
  font-size: 10px;
  text-transform: uppercase;
}

.person-line strong,
.deadline-line strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.15;
  overflow-wrap: normal;
}

.deadline-line.overdue strong {
  color: var(--red);
}

.calendar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 36px;
  border-radius: 999px;
  background: #2c2e31;
  border: 1px solid #44474c;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.task-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  margin-top: 14px;
  padding-top: 12px;
  color: #cdd4e3;
  font-size: 13px;
  min-width: 0;
}

.comment-count,
.link-count {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  white-space: nowrap;
}

.details-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.metric-card,
.assistant-card {
  margin-top: 18px;
  padding: 17px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #cdd4e3;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .06em;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  color: #e5e7ee;
}

.metric-row strong {
  color: #82ff78;
}

.progress {
  height: 7px;
  border-radius: 999px;
  background: #2b2d2f;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #76ff68;
}

.progress.blue span {
  background: var(--blue);
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 16px;
}

.summary-item {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  padding: 11px;
}

.summary-item span,
.summary-item strong {
  display: block;
}

.summary-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-item strong {
  margin-top: 7px;
  font-size: 24px;
  line-height: 1;
}

.summary-item.danger {
  border-color: rgba(255,170,161,.42);
  background: rgba(255,170,161,.09);
}

.summary-item.danger strong,
.summary-item.critical strong {
  color: var(--red);
}

.summary-item.critical {
  border-color: rgba(255,188,141,.34);
}

.summary-item.review strong {
  color: var(--amber);
}

.summary-item.active strong {
  color: var(--blue);
}

.assistant-card p {
  color: #d8dbe4;
  font-size: 17px;
  font-style: italic;
}

.fab {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 34;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #071227;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: #f3f0ee;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 16px 34px rgba(0,0,0,.46);
  backdrop-filter: blur(18px);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  width: min(404px, calc(100vw - 36px));
  min-height: 78px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(22,23,24,.72);
  box-shadow: 0 20px 48px rgba(0,0,0,.54), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px);
  font-family: "Inter", system-ui, sans-serif;
}

.nav-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #a4a7ae;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0;
  padding: 0 6px;
}

.nav-item span {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.nav-item strong {
  display: block;
  font: inherit;
}

.nav-item:nth-child(1) {
  grid-column: 1;
}

.nav-item:nth-child(2) {
  grid-column: 2;
}

.nav-item:nth-child(3) {
  grid-column: 4;
}

.nav-item:nth-child(4),
.nav-item:nth-child(5) {
  grid-column: 5;
}

.nav-item.is-active {
  background: rgba(168,194,255,.16);
  color: #f3f0ee;
}

.create-hero {
  margin: 20px 0;
  padding: 30px 28px;
  min-height: 150px;
  overflow: hidden;
}

.create-hero span {
  display: block;
  color: #7cff6f;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.create-hero h2 {
  margin-top: 4px;
  font-size: 29px;
}

.plus-mark {
  position: absolute;
  right: 26px;
  top: 26px;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 7px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.25);
  font-size: 54px;
  font-weight: 900;
}

.create-form {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.create-form label {
  display: grid;
  gap: 10px;
  color: #d3d7e1;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
}

legend {
  padding: 0;
  color: #d3d7e1;
  font-weight: 900;
  letter-spacing: .05em;
}

.pill-slider,
.priority-grid,
.choice-grid {
  display: grid;
  gap: 9px;
}

.pill-slider {
  display: flex;
  overflow-x: auto;
  margin: 0 -18px;
  padding: 0 18px 4px;
  scrollbar-width: none;
}

.pill-slider::-webkit-scrollbar {
  display: none;
}

.priority-grid,
.choice-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pill-slider button,
.priority-grid button,
.choice-grid button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #292a2b, #212224);
  color: #d8dce5;
  font-weight: 900;
}

.pill-slider button {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 0 18px;
}

.pill-slider button.is-selected,
.priority-grid button.is-selected,
.choice-grid button.is-selected {
  border-color: var(--green);
  background: linear-gradient(180deg, #183d14, #112611);
  color: #7fff72;
}

.hidden-select {
  display: none;
}

.date-time-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  width: 100%;
  overflow: hidden;
}

.date-time-row input {
  min-width: 0;
  width: calc(100% - 2px);
  max-width: calc(100% - 2px);
  min-height: 52px;
  justify-self: center;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.date-time-row input::-webkit-date-and-time-value {
  text-align: center;
}

.create-button,
.cancel-button {
  min-height: 68px;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 900;
}

.create-button {
  margin-top: 18px;
  border: 0;
  background: var(--green);
  color: #0b2b07;
  box-shadow: 0 0 28px rgba(44,255,10,.32);
}

.cancel-button {
  border: 1px solid var(--line);
  background: transparent;
  color: #d5d8df;
}

.detail-card {
  margin: 20px 0;
  padding: 28px;
}

.detail-card .task-id {
  color: #aebfff;
}

.detail-card h2 {
  margin: 10px 0 22px;
  font-size: 29px;
  line-height: 1.18;
}

.detail-desc {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  color: #d9dce4;
  font-size: 20px;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.person-card,
.deadline-card,
.actions-card,
.discussion-card {
  margin-bottom: 18px;
  padding: 18px;
}

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

.person-card span {
  color: var(--muted);
}

.person-card strong {
  display: block;
  font-size: 19px;
}

.deadline-card {
  border-color: rgba(255,170,161,.55);
  color: #ffc8c2;
}

.deadline-card strong {
  display: block;
  font-size: 20px;
  letter-spacing: .04em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.actions-card h2,
.discussion-card h2 {
  font-size: 21px;
  margin-bottom: 20px;
}

.comment-list {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.comment-bubble {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
}

.comment-bubble strong {
  display: block;
  margin-bottom: 6px;
}

.comment-bubble p {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0 14px 14px 14px;
  background: #292a2c;
  color: #f0f1f4;
}

.comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  min-width: 0;
}

.comment-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
}

.comment-form button {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--blue);
  border-radius: 13px;
  background: transparent;
  color: var(--blue);
}

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

.detail-actions button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  font-weight: 900;
  padding: 0 14px;
}

.detail-actions button.primary {
  background: var(--blue);
  color: #071227;
}

.detail-actions button.danger {
  color: var(--red);
}

.team-card {
  margin-top: 20px;
  padding: 18px;
}

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

.team-member {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}

.team-member strong,
.team-member span {
  display: block;
}

.team-member span {
  color: var(--muted);
  font-size: 12px;
}

.team-member select {
  grid-column: 1 / -1;
  min-height: 42px;
  padding: 10px 12px;
}

.is-hidden {
  display: none !important;
}

/* Poppins light theme */
:root {
  color-scheme: light;
  --bg: #f9f8ff;
  --panel: #ffffff;
  --panel-2: #f0effc;
  --panel-3: #e8e6fb;
  --line: #e4e1f2;
  --line-soft: rgba(39,34,36,.08);
  --text: #272224;
  --muted: #8b8794;
  --faint: #aaa4b5;
  --blue: #c1bff1;
  --green: #4e499b;
  --green-soft: #eeedff;
  --red: #d66b7a;
  --red-soft: #fff0f2;
  --amber: #c58b58;
  --amber-soft: #fff4e9;
  --shadow: 0 18px 46px rgba(78,73,155,.14);
}

body {
  background:
    radial-gradient(circle at 86% -4%, rgba(193,191,241,.78), transparent 30%),
    radial-gradient(circle at 8% 12%, rgba(127,123,195,.18), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  background: rgba(249,248,255,.78);
}

.app-header {
  background: rgba(249,248,255,.88);
  border-bottom-color: rgba(39,34,36,.06);
  box-shadow: 0 12px 34px rgba(78,73,155,.1);
}

h1 {
  color: var(--text);
  font-weight: 700;
}

#userLine,
#welcomeText,
.person-card span,
.summary-item span,
.team-member span {
  color: var(--muted);
}

.welcome h2 {
  color: var(--text);
  font-weight: 700;
}

.avatar {
  background: linear-gradient(145deg, #c1bff1, #7f7bc3);
  color: #fff;
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 10px 24px rgba(78,73,155,.24);
}

input,
select,
textarea {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(78,73,155,.08);
}

select option {
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7f7bc3;
  box-shadow: 0 0 0 4px rgba(193,191,241,.42);
}

.tab {
  height: 40px;
  border-color: transparent;
  border-radius: 999px;
  background: #fff;
  color: #5b5664;
  box-shadow: 0 10px 24px rgba(78,73,155,.08);
}

.tab.is-active {
  background: #4e499b;
  border-color: #4e499b;
  color: #fff;
}

.notice {
  border-color: #ead7c5;
  background: #fff6ee;
  color: #8f5d36;
}

.task-card,
.metric-card,
.assistant-card,
fieldset,
.detail-card,
.person-card,
.deadline-card,
.actions-card,
.discussion-card,
.team-card {
  border-color: rgba(78,73,155,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}

.task-card {
  padding: 18px;
}

.task-stripe {
  width: 5px;
  background: #c1bff1;
}

.task-card.is-critical .task-stripe,
.task-card.is-overdue .task-stripe {
  background: #d66b7a;
}

.task-card.is-review .task-stripe {
  background: #c58b58;
}

.task-id {
  color: #7f7bc3;
  letter-spacing: .04em;
}

.task-card h3,
.detail-card h2,
.discussion-card h2,
.actions-card h2 {
  color: var(--text);
  font-weight: 700;
}

.status-badge,
.priority-badge,
.category-badge,
.comment-count,
.link-count {
  border-color: rgba(78,73,155,.12);
  background: #f1f0ff;
  color: #4e499b;
}

.status-badge.done {
  background: #edf8ef;
  border-color: #c8e8cf;
  color: #33824a;
}

.status-badge.cancelled {
  background: #f0eef2;
  border-color: #ddd7e1;
  color: #756f7c;
}

.status-badge.review,
.priority-badge {
  background: var(--amber-soft);
  border-color: #ecd1b6;
  color: #9b6436;
}

.priority-badge.critical {
  background: var(--red-soft);
  border-color: #efc4ca;
  color: #b84d5c;
}

.priority-badge.low {
  background: #eef8ef;
  border-color: #ccebd2;
  color: #3a8950;
}

.person-line,
.deadline-line,
.summary-item,
.team-member {
  border-color: rgba(78,73,155,.1);
  background: rgba(249,248,255,.9);
}

.meta-label,
.card-title {
  color: #777185;
}

.person-line strong,
.deadline-line strong,
.person-card strong,
.metric-row,
.assistant-card p,
.comment-bubble p {
  color: var(--text);
}

.deadline-line.overdue strong,
.summary-item.danger strong,
.summary-item.critical strong {
  color: #d66b7a;
}

.details-button {
  color: #4e499b;
}

.progress {
  background: #ebe9f7;
}

.progress span,
.metric-row strong,
.summary-item.active strong,
.summary-item.review strong {
  color: #4e499b;
  background: #7f7bc3;
}

.fab {
  background: linear-gradient(145deg, #c1bff1, #7f7bc3);
  color: #fff;
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 18px 36px rgba(78,73,155,.32);
}

.bottom-nav {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.72);
  box-shadow: 0 20px 48px rgba(78,73,155,.22), inset 0 1px 0 rgba(255,255,255,.8);
  font-family: "Poppins", system-ui, sans-serif;
}

.nav-item {
  color: #8f8998;
}

.nav-item.is-active {
  background: rgba(193,191,241,.42);
  color: #4e499b;
}

.ghost-icon,
.comment-form button,
.detail-actions button {
  border-color: rgba(78,73,155,.18);
  background: #fff;
  color: #4e499b;
}

.detail-actions button.primary,
.create-button {
  background: #4e499b;
  color: #fff;
  box-shadow: 0 14px 30px rgba(78,73,155,.24);
}

.detail-actions button.danger {
  color: #b84d5c;
  background: #fff6f7;
}

.cancel-button {
  border-color: rgba(78,73,155,.14);
  background: #fff;
  color: #5b5664;
}

.create-form label,
legend {
  color: #5b5664;
}

.pill-slider button,
.priority-grid button,
.choice-grid button {
  border-color: rgba(78,73,155,.12);
  background: #fff;
  color: #5b5664;
  box-shadow: 0 10px 24px rgba(78,73,155,.08);
}

.pill-slider button.is-selected,
.priority-grid button.is-selected,
.choice-grid button.is-selected {
  border-color: #7f7bc3;
  background: #4e499b;
  color: #fff;
}

.comment-bubble p {
  background: #f3f2ff;
  border-color: rgba(78,73,155,.1);
}

.comment-form {
  border-top-color: rgba(78,73,155,.1);
}

@media (min-width: 760px) {
  .app-shell {
    max-width: 920px;
  }

  .task-stack,
  #taskList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card,
  .assistant-card {
    max-width: 440px;
  }
}

@media (max-width: 380px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .app-header {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 27px;
  }

  .task-meta-grid,
  .date-time-row {
    grid-template-columns: 1fr;
  }

}

/* Focus routine refinements */
body {
  background:
    radial-gradient(circle at 50% -90px, rgba(193,191,241,.78), transparent 290px),
    #f9f8ff;
}

.app-shell {
  max-width: 430px;
  padding-left: 20px;
  padding-right: 20px;
  background: #f9f8ff;
}

.app-header {
  margin-left: -20px;
  margin-right: -20px;
  padding: 18px 20px 14px;
  background: rgba(249,248,255,.94);
  box-shadow: none;
}

.app-header h1 {
  font-size: 28px;
  font-weight: 600;
}

#userLine {
  margin-top: 2px;
  font-size: 13px;
}

.welcome {
  padding: 28px 0 18px;
}

.welcome h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.12;
}

.welcome h2.is-long {
  font-size: 25px;
}

.task-tabs {
  gap: 8px;
  margin: 0 -20px 18px;
  padding: 0 20px 4px;
}

.tab {
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: #272224;
  font-weight: 500;
  box-shadow: 0 10px 26px rgba(78,73,155,.08);
}

.tab.is-active {
  background: #272224;
  border-color: #272224;
  color: #fff;
}

.task-card,
.metric-card,
.assistant-card,
fieldset,
.detail-card,
.person-card,
.deadline-card,
.actions-card,
.discussion-card,
.team-card {
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(78,73,155,.11);
}

.task-card {
  padding: 18px;
}

.task-stripe {
  display: none;
}

.task-card-head {
  gap: 14px;
}

.task-id {
  color: #7f7bc3;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.task-card h3 {
  font-size: 21px;
  font-weight: 600;
  color: #272224;
}

.badge-column {
  gap: 7px;
}

.status-badge,
.priority-badge,
.category-badge {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: #f0effc;
  color: #4e499b;
  font-size: 10px;
  letter-spacing: .07em;
}

.priority-badge.critical {
  background: #fff0f2;
  color: #c65364;
}

.status-badge.review,
.priority-badge {
  background: #fff4e9;
  color: #9b6436;
}

.status-badge.done,
.priority-badge.low {
  background: #eff8f2;
  color: #3f8d55;
}

.task-meta-grid {
  gap: 10px;
}

.person-line,
.deadline-line {
  border: 0;
  border-radius: 18px;
  background: #f7f6ff;
  padding: 12px;
}

.meta-label {
  color: #8b8794;
  font-size: 10px;
  font-weight: 600;
}

.person-line strong,
.deadline-line strong {
  color: #272224;
  font-size: 15px;
  font-weight: 600;
}

.task-card-foot {
  border-top: 0;
  margin-top: 12px;
  padding-top: 0;
}

.comment-count,
.link-count {
  border: 0;
  background: #f7f6ff;
  color: #777185;
  font-size: 12px;
}

.details-button {
  color: #4e499b;
  font-size: 12px;
}

.metric-card {
  padding: 18px;
}

.card-title {
  margin-bottom: 14px;
  color: #272224;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

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

.summary-item {
  min-height: 86px;
  border: 0;
  border-radius: 20px;
  background: #f3f1ff;
  padding: 14px;
}

.summary-item span {
  color: #8b8794;
  font-size: 12px;
  font-weight: 500;
}

.summary-item strong {
  color: #272224 !important;
  font-size: 27px;
  font-weight: 600;
  background: transparent !important;
}

.summary-item.danger {
  background: #fff1f3;
}

.summary-item.critical {
  background: #fff4e9;
}

.summary-item.review {
  background: #f4f2ff;
}

.summary-item.active {
  background: #eeedff;
}

.metric-row {
  margin: 14px 0 8px;
  color: #272224;
  font-weight: 500;
}

.metric-row strong {
  color: #4e499b;
  background: transparent;
  font-weight: 600;
}

.progress {
  height: 8px;
  background: #ece9f8;
}

.progress span {
  background: #4e499b;
}

.assistant-card {
  padding: 18px;
}

.assistant-card p {
  color: #5b5664;
  font-size: 15px;
  font-style: normal;
}

.bottom-nav {
  width: min(410px, calc(100vw - 34px));
  min-height: 94px;
  bottom: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 88px minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  padding: 24px 18px 16px;
  border: 1.5px solid rgba(100,64,224,.38);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: rgba(255,255,255,.94);
  box-shadow: 0 -12px 44px rgba(78,73,155,.16);
}

.nav-item {
  min-height: 52px;
  gap: 7px;
  color: #565260;
  font-size: 14px;
  font-weight: 600;
}

.nav-item.is-active {
  background: transparent;
  color: #5e39df;
}

.fab {
  bottom: 51px;
  width: 78px;
  height: 78px;
  border: 0;
  background: #5e39df;
  color: #fff;
  font-size: 50px;
  font-weight: 400;
  padding: 0 0 6px;
  box-shadow: 0 18px 34px rgba(94,57,223,.34);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.nav-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item span {
  font-size: unset;
}

.create-form {
  gap: 16px;
}

.create-form label,
legend {
  color: #272224;
  font-weight: 600;
  letter-spacing: 0;
}

.pill-slider button,
.priority-grid button,
.choice-grid button,
input,
select,
textarea {
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #272224;
  box-shadow: 0 12px 28px rgba(78,73,155,.09);
}

.pill-slider button.is-selected,
.priority-grid button.is-selected,
.choice-grid button.is-selected,
.create-button,
.detail-actions button.primary {
  background: #4e499b;
  color: #fff;
}

.detail-card {
  padding: 22px;
}

.detail-desc {
  border-top-color: #eeeaf9;
  color: #5b5664;
  font-size: 16px;
}

.deadline-card {
  color: #272224;
}

.deadline-card strong {
  color: #4e499b;
}

.comment-form {
  border-top-color: #eeeaf9;
}

.comment-bubble p {
  background: #f4f2ff;
}

/* Polished bottom navigation */
.app-shell {
  padding-bottom: calc(138px + env(safe-area-inset-bottom));
}

.bottom-nav {
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(414px, calc(100vw - 18px));
  height: calc(96px + env(safe-area-inset-bottom));
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr 1fr 86px 1fr 1fr;
  align-items: start;
  gap: 0;
  padding: 22px 20px calc(15px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border: 1.5px solid rgba(94,57,223,.34);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: rgba(255,255,255,.96);
  box-shadow:
    0 -18px 44px rgba(78,73,155,.14),
    inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
}

.nav-item {
  height: 58px;
  min-height: 58px;
  display: grid;
  grid-template-rows: 27px 18px;
  place-items: center;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #5f5a68;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.nav-item:nth-child(1) {
  grid-column: 1;
}

.nav-item:nth-child(2) {
  grid-column: 2;
}

.nav-item:nth-child(3) {
  grid-column: 4;
}

.nav-item:nth-child(4),
.nav-item:nth-child(5) {
  grid-column: 5;
}

.nav-icon {
  width: 27px;
  height: 27px;
}

.nav-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.4;
}

.nav-item strong {
  font: inherit;
  line-height: 1;
}

.nav-item.is-active {
  color: #5e39df;
}

.nav-item.is-active .nav-icon svg {
  stroke-width: 2.7;
}

.fab {
  left: 50%;
  bottom: calc(58px + env(safe-area-inset-bottom));
  z-index: 36;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  padding: 0 0 7px;
  border: 0;
  border-radius: 50%;
  background: #5e39df;
  color: #fff;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 18px 32px rgba(94,57,223,.34);
}

.fab:active,
.nav-item:active {
  transform: scale(.97);
}

.fab:active {
  transform: translateX(-50%) scale(.97);
}

/* Compact mobile dock sizing */
.app-shell {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.bottom-nav {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(80px + env(safe-area-inset-bottom));
  min-height: 80px;
  transform: none;
  grid-template-columns: 1fr 1fr 72px 1fr 1fr;
  align-items: center;
  padding: 8px 22px calc(16px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid rgba(94,57,223,.18);
  border-radius: 32px 32px 0 0;
  background: rgba(255,255,255,.96);
  box-shadow: 0 -4px 30px rgba(91,60,221,.08);
}

.nav-item {
  height: 52px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 2px;
  color: #484555;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.nav-icon,
.nav-icon svg {
  width: 24px;
  height: 24px;
}

.nav-icon svg {
  stroke-width: 2.25;
}

.nav-item strong {
  line-height: 16px;
}

.nav-item.is-active {
  color: #5b3cdd;
}

.nav-item.is-active .nav-icon svg {
  stroke-width: 2.45;
}

.fab {
  bottom: calc(52px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  padding: 0;
  background: #5b3cdd;
  font-size: 40px;
  font-weight: 400;
  line-height: 56px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(91,60,221,.32);
}

/* Team screen */
.team-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px 0 16px;
}

.team-hero h2 {
  margin: 0;
  color: #151c27;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.team-hero p {
  margin-top: 4px;
  color: #484555;
  font-size: 14px;
  line-height: 20px;
}

.team-search {
  position: relative;
  margin-bottom: 16px;
}

.team-search span {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #797587;
  font-size: 20px;
}

.team-search input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px 14px 46px;
  border: 0;
  border-radius: 999px;
  background: #f9faff;
  color: #151c27;
  box-shadow: 0 4px 30px rgba(91,60,221,.04);
}

.team-card {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

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

.team-member {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 0;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 4px 30px rgba(91,60,221,.04);
}

.team-member .avatar {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(91,60,221,.1);
  box-shadow: none;
}

.team-member-info {
  min-width: 0;
}

.team-member strong {
  display: block;
  color: #151c27;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member span {
  display: block;
  color: #484555;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member em {
  display: inline-flex;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dfd8fe;
  color: #625d7d;
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
  font-weight: 600;
}

.team-member select {
  grid-column: 1 / -1;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #f0f3ff;
  color: #151c27;
  box-shadow: none;
}

/* Compact filter chips */
.task-tabs {
  gap: 8px;
  margin: 0 -20px 18px;
  padding: 0 20px 4px;
}

.tab {
  height: 30px;
  min-width: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px 0 13px;
  border: 0;
  border-radius: 999px;
  background: #e5deff;
  color: #5b3cdd;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
}

.tab span,
.tab em {
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-style: normal;
  line-height: 1;
}

.tab em {
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(91,60,221,.12);
  color: #5b3cdd;
  font-size: 11px;
}

.tab.is-active {
  background: #5b3cdd;
  color: #fff;
}

.tab.is-active em {
  background: rgba(255,255,255,.22);
  color: #fff;
}

/* Clickable dashboard cards */
.metric-card {
  display: grid;
  gap: 22px;
  margin-top: 18px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.active-summary-card {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 22px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: #151c27;
  text-align: left;
  box-shadow: 0 4px 30px rgba(91,60,221,.04);
}

.active-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.active-summary-head span {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.active-summary-head strong {
  color: #5b3cdd;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.active-summary-card .progress {
  height: 10px;
  border-radius: 999px;
  background: #e7eefe;
}

.active-summary-card .progress span {
  background: #5b3cdd;
}

.active-summary-card p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #484555;
  font-size: 14px;
  line-height: 20px;
}

.active-summary-card p span {
  color: #8d4b00;
  font-size: 20px;
}

.active-summary-card p strong {
  color: inherit;
  font-weight: 600;
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.summary-item {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  min-height: 128px;
  padding: 20px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: #151c27;
  text-align: left;
  box-shadow: 0 4px 30px rgba(91,60,221,.04);
}

.summary-item i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
}

.summary-item span {
  margin-top: 4px;
  color: #151c27;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.summary-item strong {
  color: #151c27 !important;
  background: transparent !important;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
}

.summary-item.active i {
  background: #e5deff;
  color: #5b3cdd;
}

.summary-item.review i {
  background: #ffdcc3;
  color: #8d4b00;
}

.summary-item.overdue i {
  background: #ffdad6;
  color: #ba1a1a;
}

.summary-item.critical i {
  background: #fff4e9;
  color: #8d4b00;
}

.active-summary-card:active,
.summary-item:active {
  transform: scale(.985);
}

/* Layout polish and tap animations */
.task-tabs {
  margin-top: 8px;
  margin-bottom: 20px;
  padding-top: 4px;
  padding-bottom: 6px;
}

.tab {
  height: 32px;
  transition:
    transform .16s ease,
    background-color .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.tab:active {
  transform: scale(.96);
}

.metric-card {
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 20px;
}

.active-summary-card {
  gap: 14px;
  padding: 20px 22px;
  border-radius: 28px;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.active-summary-head span {
  min-width: 0;
}

.active-summary-card p {
  min-width: 0;
  flex-wrap: wrap;
}

.active-summary-card .progress {
  overflow: hidden;
}

.status-summary {
  gap: 14px;
}

.summary-item {
  min-height: 112px;
  grid-template-rows: 36px auto 1fr;
  gap: 8px;
  padding: 18px;
  border-radius: 26px;
  overflow: hidden;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.summary-item.overdue i {
  background: #ffdad6;
  color: #ba1a1a;
}

.summary-item.critical i {
  background: #fff4e9;
  color: #8d4b00;
}

.summary-item i {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.summary-item span {
  margin-top: 0;
  max-width: 100%;
}

.summary-item strong {
  align-self: end;
}

.status-summary .summary-item,
.status-summary .summary-item.active,
.status-summary .summary-item.review,
.status-summary .summary-item.overdue,
.status-summary .summary-item.critical,
.status-summary .summary-item.danger {
  background: #fff;
}

/* Create task screen */
#createView .app-header.compact {
  align-items: center;
  gap: 14px;
}

#createView .app-header.compact h1 {
  flex: 1;
  color: #272224;
  font-size: 24px;
  line-height: 1.18;
  text-align: left;
}

.create-form {
  gap: 22px;
  padding-top: 22px;
  padding-bottom: 122px;
}

.create-form label,
.create-form fieldset {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.create-form label,
.create-form legend {
  color: #272224;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.create-form fieldset {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.create-form fieldset.flat-slider-field {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.create-form fieldset legend {
  padding: 0;
}

.create-form fieldset.flat-slider-field legend {
  padding: 0;
}

.create-form input,
.create-form textarea,
.create-form select {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #272224;
  font-size: 16px;
  line-height: 22px;
  box-shadow: 0 12px 28px rgba(78,73,155,.09);
}

.create-form .hidden-select {
  display: none;
}

.create-form label > input,
.create-form label > textarea,
.priority-grid,
.choice-grid,
.date-time-row {
  margin-top: 2px;
}

.create-form textarea {
  min-height: 132px;
  resize: vertical;
}

.create-form input::placeholder,
.create-form textarea::placeholder {
  color: #a39eae;
}

.pill-slider button,
.priority-grid button,
.choice-grid button {
  min-height: 46px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  box-shadow: 0 12px 28px rgba(78,73,155,.09);
}

.priority-grid,
.choice-grid {
  gap: 10px;
}

.priority-grid button,
.choice-grid button {
  background: #fff;
  box-shadow: 0 12px 28px rgba(78,73,155,.09);
}

.pill-slider {
  margin: 0 -20px;
  padding: 2px 20px 8px;
  background: transparent;
}

.pill-slider button.is-selected,
.priority-grid button.is-selected,
.choice-grid button.is-selected {
  background: #5b3cdd;
  color: #fff;
  box-shadow: 0 14px 28px rgba(91,60,221,.2);
}

.assignee-picker {
  display: flex;
  gap: 12px;
  margin: 0 -20px;
  padding: 2px 20px 10px;
  background: transparent;
  overflow-x: auto;
  scrollbar-width: none;
}

.assignee-picker::-webkit-scrollbar {
  display: none;
}

.assignee-option {
  flex: 0 0 152px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 2px solid transparent;
  border-radius: 24px;
  background: #fff;
  color: #272224;
  text-align: left;
  box-shadow: 0 10px 26px rgba(78,73,155,.08);
  transition:
    transform .16s ease,
    border-color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease;
}

.assignee-option:active {
  transform: scale(.97);
}

.assignee-option.is-selected {
  border-color: #5b3cdd;
  background: #fff;
  box-shadow: 0 16px 32px rgba(91,60,221,.18);
}

.assignee-option .avatar {
  width: 42px;
  height: 42px;
  border: 2px solid #e5deff;
}

.assignee-option span {
  min-width: 0;
}

.assignee-option strong,
.assignee-option em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignee-option strong {
  color: #272224;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.assignee-option em {
  margin-top: 3px;
  color: #777185;
  font-size: 12px;
  line-height: 16px;
  font-style: normal;
  font-weight: 600;
}

.date-time-row {
  gap: 10px;
}

.date-time-row input {
  min-height: 54px;
  border-radius: 20px;
}

.create-button,
.cancel-button {
  min-height: 62px;
  font-size: 17px;
  line-height: 22px;
}

.active-summary-card:active,
.summary-item:active,
.task-card:active,
.details-button:active,
.detail-actions button:active,
.create-button:active,
.cancel-button:active {
  transform: scale(.975);
}

.active-summary-card,
.summary-item,
.task-card,
.details-button,
.detail-actions button,
.create-button,
.cancel-button,
.nav-item,
.fab {
  -webkit-tap-highlight-color: transparent;
}

.task-stack {
  margin-top: 2px;
}

#taskList {
  gap: 14px;
}

.task-card {
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.bottom-nav,
.fab,
.nav-item {
  transition:
    transform .16s ease,
    color .16s ease,
    background-color .16s ease,
    box-shadow .16s ease;
}

@media (max-width: 380px) {
  .active-summary-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .status-summary {
    gap: 10px;
  }

  .summary-item {
    min-height: 108px;
    padding: 15px;
    border-radius: 22px;
  }
}

/* Create task: clean unified card style */
#createView {
  padding-bottom: 108px;
}

#createView .app-header.compact {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #eceaf5;
  background: rgba(249,248,255,.96);
  backdrop-filter: blur(14px);
}

#createView .app-header.compact h1 {
  font-size: 22px;
  font-weight: 700;
}

#createView .create-form {
  gap: 18px;
  margin-top: 14px;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 4px 30px rgba(91,60,221,.05);
}

#createView .create-form label,
#createView .create-form fieldset {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#createView .create-form label,
#createView .create-form legend {
  color: #484555;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#createView .create-form input,
#createView .create-form textarea {
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: #f9fafb;
  color: #151c27;
  font-size: 16px;
  line-height: 24px;
  box-shadow: none;
  outline: none;
  transition:
    background-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

#createView .create-form textarea {
  min-height: 132px;
  padding-top: 15px;
  resize: none;
}

#createView .create-form input:focus,
#createView .create-form textarea:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91,60,221,.14);
}

#createView .create-form input::placeholder,
#createView .create-form textarea::placeholder {
  color: #9a96a6;
}

#createView .pill-slider,
#createView .assignee-picker {
  margin: 0;
  padding: 2px 0 8px;
}

#createView .pill-slider button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #f0f3ff;
  color: #5b3cdd;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  box-shadow: none;
}

#createView .pill-slider button.is-selected {
  background: #5b3cdd;
  color: #fff;
  box-shadow: none;
}

#createView .priority-grid,
#createView .choice-grid {
  display: grid;
  gap: 8px;
  padding: 4px;
  border-radius: 22px;
  background: #f0f3ff;
}

#createView .priority-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

#createView .priority-grid button,
#createView .choice-grid button {
  min-height: 44px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #484555;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  box-shadow: none;
}

#createView .priority-grid button.is-selected,
#createView .choice-grid button.is-selected {
  background: #dfd8fe;
  color: #441cc8;
  box-shadow: none;
}

#createView .assignee-picker {
  gap: 8px;
}

#createView .assignee-option {
  flex: 0 0 auto;
  grid-template-columns: 32px minmax(0, 1fr);
  min-width: 132px;
  max-width: 190px;
  min-height: 48px;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: #f0f3ff;
  box-shadow: none;
}

#createView .assignee-option.is-selected {
  background: #5b3cdd;
  color: #fff;
  box-shadow: none;
}

#createView .assignee-option .avatar {
  width: 32px;
  height: 32px;
  border: 0;
}

#createView .assignee-option strong {
  color: inherit;
  font-size: 12px;
  line-height: 16px;
}

#createView .assignee-option em {
  display: none;
}

#createView .date-time-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#createView .date-time-row input {
  min-height: 48px;
  border-radius: 18px;
  text-align: center;
}

#createView .create-button,
#createView .cancel-button {
  min-height: 56px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 800;
}

#createView .create-button {
  margin-top: 4px;
  background: #5b3cdd;
  color: #fff;
  box-shadow: 0 14px 28px rgba(91,60,221,.2);
}

#createView .cancel-button {
  background: #f9fafb;
  color: #484555;
  box-shadow: none;
}

@media (max-width: 380px) {
  #createView .create-form {
    padding: 18px;
    border-radius: 24px;
  }

  #createView .pill-slider,
  #createView .assignee-picker {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}
