.taskhome {
  --home-ink: #253747;
  --home-muted: #6c8090;
  --home-blue: #0e648b;
  --home-border: #dbe5ec;
  max-width: 1680px;
  margin: 0 auto;
  color: var(--home-ink);
}
.taskhome .hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 132px;
  margin-bottom: 20px;
  padding: 25px 32px;
  overflow: hidden;
  border: 1px solid #1c526b;
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(circle at 92% 5%, #165777 0, transparent 33%),
    linear-gradient(110deg, #0a3249, #061d30 68%, #0a3a52);
  box-shadow: 0 14px 32px #112e421b;
}
.taskhome .hero::after {
  content: "";
  position: absolute;
  right: -78px;
  top: -142px;
  width: 310px;
  height: 310px;
  border: 1px solid #ffffff1d;
  border-radius: 50%;
  pointer-events: none;
}
.taskhome .hero h1 {
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -.025em;
}
.taskhome .hero small, .taskhome .panel-head small {
  color: #88bbd0;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.taskhome .hero aside {
  z-index: 1;
  max-width: 49%;
  margin-left: auto;
  padding-left: 30px;
  border-left: 1px solid #ffffff30;
}
.taskhome .hero aside strong {
  display: block;
  margin: 5px 0;
  color: #ecf7fc;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}
.taskhome .face {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  vertical-align: middle;
  border: 2px solid white;
  border-radius: 50%;
  background: #186488;
  color: white;
  font-size: .65rem;
  font-weight: 750;
}
.taskhome .face + .face { margin-left: -7px; }
.taskhome .face img { width: 100%; height: 100%; object-fit: cover; }
.taskhome .hero .face { width: 70px; height: 70px; border-color: #5cabc3; font-size: 1.2rem; }
.taskhome .panel {
  border: 1px solid var(--home-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px #1226380c;
}
.taskhome .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 21px;
  border-bottom: 1px solid #e7eef2;
}
.taskhome .panel-head h2 {
  margin: 6px 0 3px;
  font-size: 1.35rem;
  font-weight: 760;
  letter-spacing: -.025em;
}
.taskhome .panel-head h2 i { margin-right: 5px; color: var(--home-blue); }
.taskhome .panel-head h2 span {
  margin-left: 7px;
  color: #7c8c99;
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.taskhome .panel-note { margin: 5px 0 0; color: var(--home-muted); font-size: .89rem; }
.taskhome .tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 880px;
}
.taskhome .tools button, .taskhome .tools summary,
.taskhome .switch, .taskhome .segments,
.taskhome #batch button, .taskhome #create button {
  border: 1px solid #d5e0e7;
  border-radius: 10px;
  background: #fff;
  color: #455d6e;
  font-size: .82rem;
  font-weight: 670;
  line-height: 1.3;
}
.taskhome .tools button, .taskhome .tools summary { padding: 9px 12px; }
.taskhome .tools summary { list-style: none; cursor: pointer; white-space: nowrap; }
.taskhome .tools summary::-webkit-details-marker, .taskhome .section summary::-webkit-details-marker { display: none; }
.taskhome .tools button:hover, .taskhome .tools summary:hover { border-color: #9bbdcd; background: #f5fafc; }
.taskhome .tools button:focus-visible, .taskhome .tools summary:focus-visible,
.taskhome .section summary:focus-visible { outline: 3px solid #7ec4df; outline-offset: 2px; }
.taskhome .tools #new-task { background: var(--home-blue); border-color: var(--home-blue); color: white; }
.taskhome .tools #new-task:hover { background: #084e71; }
.taskhome .tools #new-task:disabled { opacity: .6; cursor: not-allowed; }
.taskhome .switch, .taskhome .segments { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; white-space: nowrap; }
.taskhome .switch input { accent-color: var(--home-blue); cursor: pointer; }
.taskhome .segments { gap: 2px; background: #f6f9fb; }
.taskhome .segments span { margin-right: 4px; color: #73838e; }
.taskhome .segments button { padding: 3px 8px; border: 0; background: transparent; }
.taskhome .segments [aria-pressed=true] { background: #e0f0f7; color: #0b5678; box-shadow: inset 0 0 0 1px #b8dce9; }
.taskhome .pop { position: relative; }
.taskhome .popup {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  width: 275px;
  padding: 15px;
  border: 1px solid #ccdce5;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 36px #10283e29;
}
.taskhome .popup .h-filter { display: grid; gap: 9px; }
.taskhome .popup select, .taskhome .popup input { width: 100%; max-width: 100%; padding: 8px; border: 1px solid #d1dfe6; border-radius: 7px; background: white; }
.taskhome .popup label { display: block; margin-bottom: 9px; }
.taskhome .popup label input { width: auto; }
.taskhome #task-sections { display: grid; gap: 12px; padding: 16px; }
.taskhome details.section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe7eb;
  border-radius: 15px;
  background: #f7fafb;
}
.taskhome details.section summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: #536879;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: .02em;
  list-style: none;
}
.taskhome details.section summary .count {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 100px;
  background: #e7f1f6;
  color: #497087;
  font-size: .76rem;
}
.taskhome .grid-scroll { overflow-x: auto; margin: 0 12px 12px; border-radius: 11px; background: #fff; }
.taskhome .gridline {
  display: grid;
  grid-template-columns: 28px minmax(190px, 2.9fr) minmax(90px, 1.25fr) minmax(100px, .9fr) minmax(105px, 1fr) minmax(100px, .85fr);
  align-items: center;
  gap: 10px;
  min-width: 730px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf1f4;
  background: #fff;
  font-size: .84rem;
}
.taskhome .gridline:last-child { border-bottom: 0; }
.taskhome .gridline:not(.gridhead):hover { background: #f8fbfd; }
.taskhome .gridhead {
  color: #8798a5;
  background: #fcfdfd;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.taskhome .gridline .title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: none;
  color: #263b49;
  font-size: .87rem;
  font-weight: 730;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.taskhome .gridline .title:hover { color: var(--home-blue); text-decoration: underline; }
.taskhome .state { display: block; padding: 2px 0; border: 0; background: transparent; color: #748694; font-size: .76rem; }
.taskhome .late-date { color: #c3494b; font-weight: 750; }
.taskhome .chip { width: fit-content; padding: 4px 10px; border-radius: 20px; background: #edf4f8; color: #57748a; font-size: .74rem; font-weight: 720; }
.taskhome .empty-state { padding: 38px 20px; color: #718797; text-align: center; }
.taskhome #batch { padding: 11px 26px; border-bottom: 1px solid #e7eef2; background: #f3f9fc; font-size: .84rem; }
.taskhome #batch[hidden] { display: none; }
.taskhome #batch button { padding: 5px 11px; }
.taskhome #create { width: min(480px, 94vw); padding: 22px; border: 1px solid #cbdce6; border-radius: 16px; color: var(--home-ink); box-shadow: 0 20px 60px #0b28353b; }
.taskhome #create::backdrop { background: #14243277; }
.taskhome #create label { display: grid; gap: 4px; margin: 10px 0; font-size: .85rem; font-weight: 650; }
.taskhome #create input, .taskhome #create textarea, .taskhome #create select { padding: 8px; border: 1px solid #cad6df; border-radius: 7px; }
.taskhome #create footer { text-align: right; }
.taskhome #create footer button { padding: 8px 13px; }
.taskhome #create footer button[type=submit] { border-color: var(--home-blue); background: var(--home-blue); color: #fff; }
@media (max-width: 1500px) {
  .taskhome .panel-head { flex-direction: column; }
  .taskhome .tools { justify-content: flex-start; max-width: 100%; }
}
@media (max-width: 700px) {
  .taskhome .hero { min-height: 98px; padding: 16px; margin-bottom: 12px; }
  .taskhome .hero aside { display: none; }
  .taskhome .hero .face { width: 56px; height: 56px; }
  .taskhome .panel-head { gap: 14px; padding: 17px 15px; }
  .taskhome .panel-head h2 { font-size: 1.2rem; }
  .taskhome .tools { gap: 6px; }
  .taskhome .popup { right: auto; left: 0; width: min(275px, 85vw); }
  .taskhome #task-sections { gap: 8px; padding: 8px; }
  .taskhome .grid-scroll { margin: 0 5px 5px; }
  .taskhome #batch { padding: 10px 15px; }
}
