.portal-shell {
  width: min(820px, calc(100% - 28px));
  margin: 34px auto;
}
.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 4px 18px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 42px);
}
.month-field {
  display: block;
  min-width: 170px;
}
.month-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.month-field input {
  background: #fff;
}
.legend {
  display: flex;
  gap: 18px;
  margin: 0 4px 18px;
  color: var(--muted);
  font-size: 12px;
}
.mini-check {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-style: normal;
}
.mini-check.confirmed {
  background: #c89c42;
}
.loading {
  text-align: center;
  padding: 35px;
  color: var(--muted);
}
.task-list {
  display: grid;
  gap: 12px;
}
.task-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 145px;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(24, 54, 47, 0.045);
}
.task-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--pale);
  color: var(--green);
  font-weight: 800;
}
.task-copy h2 {
  margin: 2px 0 5px;
  font-size: 19px;
}
.task-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.done-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.done-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.uploaded-files {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}
.uploaded-files span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--green);
  font-size: 12px;
}
.task-side {
  text-align: right;
}
.double-check {
  display: flex;
  justify-content: end;
  gap: 12px;
  margin-bottom: 14px;
}
.check-status {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.check-status small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-weight: 900;
}
.check.on {
  border-color: #76a99a;
  background: #eaf4f0;
  color: var(--green);
}
.check.accountant.on {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.upload-button,
.confirm-button {
  width: 100%;
  padding: 10px 11px;
  font-size: 12px;
}
dialog#uploadDialog {
  width: min(560px, calc(100% - 28px));
  height: auto;
  max-height: calc(100% - 28px);
  padding: 26px;
  overflow: auto;
}
.dialog-head h2 {
  margin: 0;
  font-size: 23px;
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: var(--pale);
  color: var(--green);
  font-size: 23px;
}
.admin-hero {
  margin-bottom: 25px;
}
.admin-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.status-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f3f2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.status-pill.done {
  background: var(--pale);
  color: var(--green);
}
.admin-files {
  display: grid;
  gap: 6px;
  margin-top: 13px;
}
.admin-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f7f6;
  font-size: 12px;
}
.admin-file > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-file > span:last-child {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.admin-file button,
.admin-file a {
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}
.admin-file .delete {
  color: var(--danger);
}
.confirmed-button {
  background: var(--green2);
}
.confirm-button:disabled {
  opacity: 0.4;
}
.admin-card {
  grid-template-columns: 48px minmax(0, 1fr) 145px;
}
@media (max-width: 680px) {
  .hero {
    align-items: stretch;
    flex-direction: column;
  }
  .month-field {
    width: 100%;
  }
  .task-card,
  .admin-card {
    grid-template-columns: 40px 1fr;
  }
  .task-side {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .double-check {
    grid-column: 1/-1;
    justify-content: flex-start;
    margin: 2px 0 4px;
  }
  .upload-button,
  .confirm-button {
    width: 100%;
    min-width: 0;
  }
  .task-number {
    width: 38px;
    height: 38px;
  }
  .admin-file {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-file > span:first-child {
    white-space: normal;
  }
  .legend {
    flex-wrap: wrap;
  }
}

/* Verdant glass UI supplied by the product direction */
.user-page {
  min-height: 100vh;
  overflow: hidden;
  background: #f0f6f4;
}
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(78px);
  opacity: 0.62;
}
.aurora i:nth-child(1) {
  top: -15%;
  left: -20%;
  width: 130vw;
  height: 48vh;
  background: #b9d8cd;
}
.aurora i:nth-child(2) {
  right: -35%;
  bottom: -12%;
  width: 110vw;
  height: 56vh;
  background: #286257;
  opacity: 0.22;
}
.aurora i:nth-child(3) {
  top: 27%;
  right: -35%;
  width: 92vw;
  height: 44vh;
  background: #f6eee0;
}
.user-page .portal-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 20px 50px rgba(13, 77, 67, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(32px) saturate(180%);
  container-type: inline-size;
}
.user-page .portal-shell .brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  min-height: 66px;
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.27);
  box-shadow: none;
  backdrop-filter: blur(20px);
}
.user-page .portal-shell .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(145deg, #237d70, #0d4d43);
  font-size: 16px;
  box-shadow: 0 5px 10px rgba(13, 77, 67, 0.22);
}
.user-page .portal-shell .brand strong {
  font-size: 14px;
  letter-spacing: 0.04em;
}
.user-page .portal-shell .brand small {
  color: #64736f;
  font-size: 10px;
}
.user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: linear-gradient(145deg, #f9fbfa, #d8e3df);
  box-shadow: 0 3px 8px rgba(22, 59, 51, 0.13);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.user-avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(22, 59, 51, 0.18);
}
.user-avatar svg {
  width: 18px;
  fill: #6c7e78;
}
.user-page .portal-content {
  flex: 1;
  padding: 24px 20px;
  overflow-y: auto;
  scrollbar-width: none;
}
.user-page .portal-content::-webkit-scrollbar {
  display: none;
}
.user-page .portal-shell .hero {
  margin: 0 0 22px;
  text-align: center;
}
.user-page .portal-shell .eyebrow {
  margin-bottom: 4px;
  color: rgba(13, 77, 67, 0.68);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.user-page .portal-shell .hero h1 {
  color: #111b18;
  font-size: 25px;
}
.user-page .portal-shell .subtitle {
  color: #66756f;
}
.user-page .portal-shell .month-timeline {
  display: flex;
  width: 100%;
  margin: 0 0 22px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 25px;
  background: rgba(206, 218, 213, 0.4);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
  scrollbar-width: none;
}
.user-page .portal-shell .month-timeline::-webkit-scrollbar {
  display: none;
}
.user-page .portal-shell .month-node {
  display: flex;
  flex: 1 0 56px;
  flex-direction: column;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 5px 2px;
  border-radius: 18px;
  color: #60716b;
}
.user-page .portal-shell .month-node:not(:last-child)::after {
  display: none;
}
.user-page .portal-shell .month-node span {
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
}
.user-page .portal-shell .month-node small {
  margin-top: 2px;
  color: inherit;
  font-size: 9px;
}
.user-page .portal-shell .month-node.has-upload,
.user-page .portal-shell .month-node.is-confirmed {
  color: #0d4d43;
}
.user-page .portal-shell .month-node.has-upload span,
.user-page .portal-shell .month-node.is-confirmed span {
  border: 0;
  background: transparent;
  color: inherit;
}
.user-page .portal-shell .month-node.active {
  color: #fff;
  background: #0d4d43;
  box-shadow: 0 8px 18px rgba(13, 77, 67, 0.24);
}
.user-page .portal-shell .month-node.active span {
  outline: 0;
  box-shadow: none;
  transform: none;
  color: #fff;
}
.user-page .portal-shell .month-node.active small {
  color: rgba(255, 255, 255, 0.76);
}
.user-page .portal-shell .selected-month {
  margin: 0 2px 17px;
}
.user-page .portal-shell .selected-month h2 {
  color: #18201d;
  font-size: 24px;
}
.user-page .portal-shell .selected-month p {
  color: #697872;
  font-size: 12px;
  line-height: 1.6;
}
.user-page .portal-shell .task-list {
  gap: 14px;
}
.user-page .portal-shell .task-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.04),
    inset 0 1px rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
}
.user-page .portal-shell .task-number {
  border: 1px solid rgba(62, 163, 127, 0.15);
  background: rgba(222, 246, 234, 0.7);
}
.user-page .portal-shell .task-copy h2 {
  font-size: 18px;
}
.user-page .portal-shell .task-copy > p {
  display: none;
}
.user-page .portal-shell .note-details {
  margin-top: 8px;
}
.user-page .portal-shell .note-details summary {
  color: #889590;
}
.user-page .portal-shell .double-check {
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(203, 216, 210, 0.6);
  border-bottom: 1px solid rgba(203, 216, 210, 0.6);
}
.user-page .portal-shell .check-status {
  grid-template-columns: 42px auto;
  column-gap: 8px;
  justify-items: start;
  align-items: center;
}
.user-page .portal-shell .check-status small {
  font-size: 11px;
}
.user-page .portal-shell .check {
  width: 42px;
  height: 42px;
  border-color: #d2d9d6;
  background: linear-gradient(#fff, #edf1ef);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.08);
}
.user-page .portal-shell .check.on {
  border-color: #aeb9b5;
  background: linear-gradient(#fff, #d9dedc);
}
.user-page .portal-shell .check.accountant.on {
  border-color: #d8ae31;
  background: linear-gradient(#fff6c9, #e6b83d);
  color: #795e12;
}
.user-page .portal-shell .task-side {
  gap: 10px;
}
.user-page .portal-shell .upload-button,
.user-page .portal-shell .no-file-button {
  min-height: 48px;
  border-radius: 18px;
  font-size: 13px;
}
.user-page .portal-shell .upload-button {
  background: linear-gradient(#1b5e54, #0d4d43);
  box-shadow: 0 8px 18px rgba(13, 77, 67, 0.18);
}
.user-page .portal-shell .no-file-button {
  margin: 0;
  border-color: rgba(107, 130, 122, 0.34);
  background: rgba(255, 255, 255, 0.38);
}
.user-page .portal-shell .security-note {
  display: flex;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(223, 177, 44, 0.2);
  border-radius: 16px;
  background: rgba(223, 177, 44, 0.1);
  color: #786022;
  font-size: 11px;
  line-height: 1.6;
}
.user-page .portal-shell > footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.13);
  color: #74827d;
  font-size: 10px;
  letter-spacing: 0.16em;
}
@media (min-width: 681px) {
  .user-page {
    display: grid;
    place-items: center;
    padding: 24px;
  }
  .user-page .portal-shell {
    width: min(420px, 100%);
    min-height: min(860px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    border-radius: 46px;
  }
}

/* The desktop browser also uses a narrow 420px app panel. Reflow by panel width, not screen width. */
@container (max-width: 460px) {
  .task-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .task-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .double-check {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin: 0 0 2px;
  }
  .upload-button,
  .no-file-button {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .upload-button:last-child {
    grid-column: 1 / -1;
  }
}

/* Apple-style skeuomorphic status badges for the User portal */
@keyframes verdant-gear-spin {
  to {
    transform: rotate(360deg);
  }
}
.user-page .status-badge {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #e5e9e7;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.92),
    inset 0 -2px 3px rgba(35, 48, 46, 0.12);
}
.user-page .status-badge > i {
  position: relative;
  z-index: 1;
  display: grid;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}
.user-page .status-badge > i > b {
  position: absolute;
  inset: 0 2px auto;
  height: 52%;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95),
    transparent
  );
}
.user-page .status-badge > i > svg {
  position: relative;
  width: 24px;
  fill: none;
  stroke: #aeb8b5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.8;
}
.user-page .status-badge.silver.is-active {
  padding: 2px;
  background: linear-gradient(
    135deg,
    #fff 0%,
    #aeb8ba 25%,
    #f9ffff 48%,
    #747e81 73%,
    #fff 100%
  );
  box-shadow:
    0 8px 18px rgba(35, 49, 51, 0.22),
    inset 0 1px 1px #fff;
}
.user-page .status-badge.silver.is-active > i {
  background: linear-gradient(145deg, #cfd7d7, #f9ffff 45%, #aeb8ba);
  box-shadow:
    inset 0 3px 6px rgba(62, 78, 79, 0.26),
    inset 0 -1px 2px rgba(255, 255, 255, 0.95);
}
.user-page .status-badge.silver.is-active > i::after {
  position: absolute;
  inset: 4px;
  content: "";
  border: 1px solid rgba(148, 160, 162, 0.25);
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(235, 240, 240, 0.45),
    rgba(165, 176, 178, 0.25)
  );
}
.user-page .status-badge.silver.is-active > i > svg {
  z-index: 2;
  stroke: #0d4d43;
  filter: drop-shadow(0 1.5px 1px rgba(255, 255, 255, 0.92));
}
.user-page .status-badge.gold .gear {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #d8deda;
  opacity: 0.28;
}
.user-page .status-badge.gold.is-active {
  background: transparent;
  box-shadow: none;
}
.user-page .status-badge.gold.is-active .gear {
  fill: #dcae31;
  opacity: 1;
  filter: drop-shadow(0 5px 8px rgba(139, 91, 6, 0.25));
  animation: verdant-gear-spin 30s linear infinite;
}
.user-page .status-badge.gold.is-active > i {
  width: 37px;
  height: 37px;
  background: linear-gradient(135deg, #ffe993, #e1ad27 48%, #9c6711);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.82);
}
.user-page .status-badge.gold.is-active > i::after {
  position: absolute;
  inset: 2px;
  content: "";
  border-radius: 50%;
  background: linear-gradient(to bottom, #fff7d1, #f3d16e 48%, #e4ac30);
  box-shadow: inset 0 -2px 4px rgba(89, 55, 4, 0.16);
}
.user-page .status-badge.gold.is-active > i > svg {
  z-index: 2;
  stroke: #80520a;
  stroke-width: 4.4;
  filter: drop-shadow(0 1.5px 1px rgba(255, 255, 255, 0.95));
}
.user-page .check-status {
  grid-template-columns: 48px auto;
}

/* Keep the same glass product UI on phones; only the controls reflow. */
@media (max-width: 680px) {
  .user-page .portal-shell {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.42);
  }
  .user-page .portal-content {
    padding: 24px 20px;
  }
  .user-page .portal-shell .task-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 20px;
  }
  .user-page .portal-shell .task-side {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .user-page .portal-shell .double-check {
    grid-column: 1/-1;
    justify-content: flex-start;
    margin: 0 0 2px;
  }
  .user-page .portal-shell .upload-button,
  .user-page .portal-shell .no-file-button {
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .user-page .portal-shell .upload-button:last-child {
    grid-column: 1/-1;
  }
}

/* Mobile-first User portal: app-like monthly upload view */
@media (width < 0px) {
  .user-page {
    min-height: 100vh;
    background:
      radial-gradient(circle at 15% 4%, #dffaf0 0 11%, transparent 36%), #edf6f2;
  }
  .user-page .portal-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(100% - 20px, 500px);
    min-height: calc(100vh - 20px);
    margin: 10px auto;
    padding: 16px 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    background:
      radial-gradient(
        circle at 96% 18%,
        rgba(215, 252, 237, 0.9),
        transparent 24%
      ),
      radial-gradient(
        circle at 12% 30%,
        rgba(148, 242, 201, 0.75),
        transparent 28%
      ),
      linear-gradient(145deg, #177267 0%, #07534e 48%, #c3efdc 100%);
    box-shadow: 0 20px 50px rgba(15, 84, 70, 0.28);
  }
  .user-page .portal-shell::before,
  .user-page .portal-shell::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 999px;
    filter: blur(1px);
  }
  .user-page .portal-shell::before {
    top: 28%;
    right: -70px;
    width: 180px;
    height: 310px;
    background: rgba(244, 252, 244, 0.46);
    transform: rotate(35deg);
  }
  .user-page .portal-shell::after {
    bottom: -95px;
    left: -78px;
    width: 260px;
    height: 200px;
    background: rgba(145, 239, 198, 0.45);
  }
  .user-page .portal-shell .brand {
    justify-content: center;
    min-height: 50px;
    margin: -16px -14px 18px;
    padding: 10px 16px;
    border-radius: 29px 29px 0 0;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 7px 20px rgba(0, 51, 44, 0.12);
  }
  .user-page .portal-shell .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 16px;
  }
  .user-page .portal-shell .brand strong {
    font-size: 17px;
  }
  .user-page .portal-shell .brand small {
    color: #55726b;
    font-size: 11px;
  }
  .user-page .portal-shell .hero {
    margin: 0 4px 10px;
    text-align: center;
  }
  .user-page .portal-shell .eyebrow {
    color: rgba(237, 255, 247, 0.9);
    font-size: 10px;
  }
  .user-page .portal-shell .hero h1 {
    color: #fff;
    font-size: 30px;
    text-shadow: 0 2px 10px rgba(0, 53, 45, 0.2);
  }
  .user-page .portal-shell .subtitle {
    color: rgba(244, 255, 250, 0.88);
  }
  .user-page .portal-shell .month-timeline {
    width: 100%;
    margin: 4px 0 14px;
    padding: 8px 2px 12px;
    scrollbar-width: none;
  }
  .user-page .portal-shell .month-timeline::-webkit-scrollbar {
    display: none;
  }
  .user-page .portal-shell .month-node {
    min-width: 58px;
    color: rgba(244, 255, 250, 0.78);
  }
  .user-page .portal-shell .month-node:not(:last-child)::after {
    top: 21px;
    left: 41px;
    width: 34px;
    height: 2px;
    background: rgba(236, 255, 248, 0.4);
  }
  .user-page .portal-shell .month-node span {
    width: 44px;
    height: 44px;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(244, 255, 250, 0.5);
    color: #1b554d;
    box-shadow: 0 5px 12px rgba(0, 52, 43, 0.15);
  }
  .user-page .portal-shell .month-node.has-upload span {
    border-color: rgba(201, 255, 227, 0.7);
    background: rgba(206, 250, 225, 0.64);
    color: #07554d;
  }
  .user-page .portal-shell .month-node.is-confirmed span {
    border-color: #0b5e55;
    background: #0b5e55;
    color: #fff;
  }
  .user-page .portal-shell .month-node.active span {
    outline-color: rgba(235, 255, 247, 0.38);
    border-color: #fff;
    background: #d8f8e8;
  }
  .user-page .portal-shell .month-node.active small {
    color: #fff;
  }
  .user-page .portal-shell .selected-month {
    margin: 8px 4px 14px;
  }
  .user-page .portal-shell .selected-month h2 {
    color: #fff;
    font-size: 25px;
  }
  .user-page .portal-shell .selected-month p {
    color: rgba(242, 255, 248, 0.92);
  }
  .user-page .portal-shell .task-list {
    gap: 14px;
  }
  .user-page .portal-shell .task-card {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 14px 30px rgba(0, 49, 42, 0.23);
  }
  .user-page .portal-shell .task-number {
    background: #dff6ea;
  }
  .user-page .portal-shell .task-copy h2 {
    font-size: 19px;
  }
  .user-page .portal-shell .double-check {
    gap: 18px;
  }
  .user-page .portal-shell .check {
    width: 34px;
    height: 34px;
  }
  .user-page .portal-shell .upload-button {
    border-radius: 999px;
    background: linear-gradient(135deg, #127568, #07564e);
    font-size: 14px;
    box-shadow: 0 7px 14px rgba(4, 73, 64, 0.22);
  }
  .user-page .portal-shell .no-file-button {
    border-radius: 999px;
    font-size: 13px;
  }
  .user-page .portal-shell footer {
    margin: 20px 8px 0;
    color: rgba(243, 255, 249, 0.9);
    line-height: 1.55;
  }
}
@media (max-width: 680px) {
  .admin-shell .task-side {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .admin-shell .double-check {
    margin: 0;
  }
  .admin-shell .confirm-button {
    width: auto;
    min-width: 130px;
  }
  .portal-shell {
    width: min(100% - 24px, 820px);
    margin: 18px auto 26px;
  }
  .portal-shell .brand {
    margin-bottom: 14px;
  }
  .portal-shell .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 20px;
  }
  .portal-shell .hero {
    margin: 12px 2px 4px;
  }
  .portal-shell .hero h1 {
    font-size: 29px;
  }
  .portal-shell .subtitle {
    font-size: 13px;
  }
  .portal-shell .selected-month {
    margin: 12px 2px 14px;
  }
  .portal-shell .selected-month h2 {
    font-size: 22px;
  }
  .portal-shell .selected-month p {
    font-size: 12px;
    line-height: 1.5;
  }
  .portal-shell .task-card {
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
  }
  .portal-shell .task-copy h2 {
    margin-top: 0;
    font-size: 18px;
  }
  .portal-shell .task-number {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 13px;
  }
  .portal-shell .uploaded-file-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 4px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }
  .portal-shell dialog#uploadDialog {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    max-height: 86vh;
    margin: 0;
    border-radius: 20px 20px 0 0;
    padding: 20px;
  }
}
