.ptr {
  cursor: pointer;
}
.w-fit {
  width: fit-content;
}
.h-fit {
  height: fit-content;
}
.tile {
  width: 100%;
  padding: 10px;
}
.tile .title {
  font-size: 12px;
  word-spacing: 0.7rem;
}
.tile .subtitle {
  font-size: 10px;
  text-align: left;
}
.tile .tile-body {
  font-size: 10px;
  text-align: justify;
}
.butmenu {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  aspect-ratio: 1 / 1;

  padding: 0.6rem;

  background: #1e293b; /* slate-800 */
  color: #f8fafc; /* slate-50 */

  border: 1px solid #3e5266;
  border-radius: 0.75rem;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);

  cursor: pointer;
  user-select: none;

  transition: all 0.25s ease;
}

.butmenu:hover {
  background: #334155; /* slate-700 */
  border-color: #38bdf8; /* sky-400 */

  box-shadow:
    0 8px 20px rgba(56, 189, 248, 0.25),
    0 0 10px rgba(56, 189, 248, 0.15);

  transform: translateY(-2px) scale(1.05);
}

.butmenu:active {
  transform: scale(0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.modern-fieldset {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: auto;
  padding: 1.25rem;

  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;

  

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  overflow: hidden;
}

.modern-fieldset:hover {
  border-color: rgba(34, 211, 238, 0.55);

  box-shadow:
    0 12px 30px rgba(6, 182, 212, 0.15),
    0 0 18px rgba(6, 182, 212, 0.1);
}

.modern-fieldset legend {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;

  background: linear-gradient(90deg, #0f766e, #0891b2);

  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 0 10px rgba(34, 211, 238, 0.25);
}
.card {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  margin: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 5px;
}
.card-body {
  font-size: 11px;
}
.card-footer {
  margin-top: 3px;
  font-size: 10px;
  color: #666;
  border-top: 1px solid #ccc;
}
h1,
h2,
h3,
h4,
.display {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- shell ---------- */
.shell {
  display: flex;
  min-height: 100vh;
}

/* sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--teal), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Quicksand";
  font-weight: 700;
  font-size: 0.92rem;
}

.brand-name {
  font-family: "Quicksand";
  font-weight: 700;
  font-size: 0.98rem;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.sb-search {
  padding: 16px 16px 8px;
}

.sb-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 0.85rem;
}

.sb-label {
  padding: 14px 20px 6px;
}

.roster {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  gap: 2px;
}

.roster-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  text-align: left;
  width: 100%;
}

.roster-item:hover {
  background: var(--surface-alt);
}

.roster-item.active {
  background: var(--teal-soft);
  border-color: var(--teal);
}

.r-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--sand-soft);
  color: #8a5a2c;
  font-family: "Quicksand";
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.r-info {
  flex: 1;
  min-width: 0;
}

.r-name {
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.r-zone {
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.r-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sb-nav {
  margin-top: auto;
  padding: 14px 12px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-decoration: none;
}

.sb-nav a:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

/* main */
.main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 80px;
}

.main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.staff-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--surface-alt);
}

.staff-chip .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-family: "Quicksand";
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-chip span {
  font-size: 0.82rem;
  font-weight: 700;
}

.student-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.student-strip .photo {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--sand-soft), var(--teal-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Quicksand";
  font-weight: 700;
  color: var(--teal-deep);
}

.student-strip h2 {
  font-size: 1.2rem;
}

.student-strip .meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.status-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 7px 13px;
  border-radius: 999px;
}

.status-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 22px;
  scroll-margin-top: 20px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.card-head h3 {
  font-size: 1.08rem;
}

.card-sub {
  font-size: 0.83rem;
  color: var(--ink-muted);
  margin: 4px 0 18px;
}

/* location picker (signature element) */
.room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.room-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.room-btn .icon {
  font-size: 1.35rem;
}

.room-btn .name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: center;
}

.room-btn:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.room-btn.selected {
  background: var(--teal);
  border-color: var(--teal);
}

.room-btn.selected .name {
  color: #fff;
}

.room-btn.selected .icon {
  filter: none;
}

.zone-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.zone-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: all 0.15s ease;
}

.zone-opt .sw {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.zone-opt.blue.selected {
  background: var(--zone-blue-soft);
  border-color: var(--zone-blue);
  color: #3e5266;
}

.zone-opt.green.selected {
  background: var(--zone-green-soft);
  border-color: var(--zone-green);
  color: #3e5a3b;
}

.zone-opt.yellow.selected {
  background: var(--zone-yellow-soft);
  border-color: var(--zone-yellow);
  color: #6b5220;
}

.zone-opt.red.selected {
  background: var(--zone-red-soft);
  border-color: var(--zone-red);
  color: #6b342a;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.field textarea,
.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface-alt);
  resize: vertical;
}

.field textarea {
  min-height: 90px;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag.active {
  background: var(--sand-soft);
  border-color: var(--sand);
  color: #8a5a2c;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  background: var(--surface-alt);
}

.btn.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.btn.primary:hover {
  background: var(--teal-deep);
}

.btn.ghost {
  background: none;
}

.btn.small {
  padding: 8px 14px;
  font-size: 0.78rem;
}

/* feed lists used by notes / advisories / events / schedule */
.feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.feed-item {
  display: flex;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.feed-icon.teal {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.feed-icon.sand {
  background: var(--sand-soft);
  color: #8a5a2c;
}

.feed-icon.coral {
  background: var(--coral-soft);
  color: #9c4c3b;
}

.feed-body {
  flex: 1;
  min-width: 0;
}

.feed-body h5 {
  font-size: 0.87rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.feed-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.feed-meta {
  font-size: 0.72rem;
  color: var(--ink-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 8px;
}

.pill.active-flag {
  background: var(--coral-soft);
  color: #9c4c3b;
}

.pill.resolved {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

/* dropzone */
.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 18px;
}

.dropzone:hover,
.dropzone.drag {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.dropzone .dz-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.up-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
}

.up1 {
  background: linear-gradient(135deg, #dcebe7, #b9d6ce);
}

.up2 {
  background: linear-gradient(135deg, #f5e4ce, #eac79a);
}

.up3 {
  background: linear-gradient(135deg, #f6e1da, #eec0b3);
}

.up4 {
  background: linear-gradient(135deg, #e4e9dc, #c8d6bb);
}

.up-thumb .rm {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

footer {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
}
.flashbag{
    position: relative;
    overflow: hidden;

    padding: 14px 22px;
    border-radius: 18px;

    color: #fff;
    font-weight: 600;
    letter-spacing: .3px;

    background: linear-gradient(
        135deg,
        #06b6d4,
        #2563eb,
        #7c3aed
    );

    border: 1px solid rgba(255,255,255,.15);

    backdrop-filter: blur(14px);

    box-shadow:
        0 10px 35px rgba(14,165,233,.35),
        inset 0 1px 0 rgba(255,255,255,.15);

    animation:
        flashIn .45s ease,
        gradientMove 6s linear infinite;
}

/* Animated Shine */

.flashbag::before{

    content:"";

    position:absolute;
    top:0;
    left:-120%;

    width:60%;
    height:100%;

    background:
    linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.35),
        transparent
    );

    transform:skewX(-25deg);

    animation: shine 2.8s infinite;

}

/* Gradient Animation */

@keyframes gradientMove{

    0%{

        background-position:0% 50%;

    }

    50%{

        background-position:100% 50%;

    }

    100%{

        background-position:0% 50%;

    }

}

.flashbag{

    background-size:250% 250%;

}

/* Entry Animation */

@keyframes flashIn{

    from{

        opacity:0;

        transform:
            translateY(-20px)
            scale(.96);

    }

    to{

        opacity:1;

        transform:
            translateY(0)
            scale(1);

    }

}

/* Shine */

@keyframes shine{

    from{

        left:-120%;

    }

    to{

        left:150%;

    }

}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sidebar {
    position: fixed;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    padding: 20px 16px 60px;
  }

  .row2,
  .row3 {
    grid-template-columns: 1fr;
  }

  .room-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .upload-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-topbar {
    display: flex;
  }
}

.mobile-topbar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 15;
}

.mobile-topbar button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
}

@media (max-width: 520px) {
  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .student-strip {
    padding: 16px;
  }

  .card {
    padding: 18px;
  }
}
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal), var(--sand));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Quicksand';
    font-weight: 700;
    font-size: 1rem;
  }

  .brand-name {
    font-family: 'Quicksand';
    font-weight: 700;
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.78rem;
    color: var(--ink-muted);
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink-muted);
    transition: background .15s ease, color .15s ease;
  }

  .icon-btn:hover {
    background: var(--surface-alt);
    color: var(--ink);
  }

  .avatar-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: var(--surface-alt);
    cursor: pointer;
  }

  .avatar-chip .dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal-deep);
    font-family: 'Quicksand';
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .avatar-chip span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink);
  }

  /* ---------- page header ---------- */
  .page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 36px 0 22px;
  }

  .student-id {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .student-photo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--sand-soft), var(--teal-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand';
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--teal-deep);
    border: 2px solid #fff;
    box-shadow: var(--shadow);
  }

  .student-id h1 {
    font-size: 1.7rem;
  }

  .student-meta {
    color: var(--ink-muted);
    font-size: 0.92rem;
    margin-top: 2px;
  }

  .date-pill {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal-deep);
    background: var(--teal-soft);
    padding: 9px 16px;
    border-radius: 999px;
  }

  /* ---------- signature: right-now strip ---------- */
  .now-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 26px 28px 22px;
    animation: riseIn .5s ease both;
  }

  .now-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
  }

  .now-title {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .now-title h2 {
    font-size: 1.15rem;
  }

  .live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px var(--teal-soft);
    animation: pulse 2.4s ease-in-out infinite;
  }

  .zone-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--zone-green);
    background: color-mix(in srgb, var(--zone-green) 22%, white);
    border: 1px solid color-mix(in srgb, var(--zone-green) 45%, white);
    font-size: 0.82rem;
    font-weight: 700;
    color: #3E5A3B;
  }

  .zone-badge .swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--zone-green);
  }

  .path-track {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 6px;
  }

  .path-track::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  }

  .path-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 14%;
    text-align: center;
  }

  .node-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--ink-muted);
    transition: transform .2s ease;
  }

  .path-node.done .node-dot {
    background: var(--teal-soft);
    border-color: var(--teal);
    color: var(--teal-deep);
  }

  .path-node.current .node-dot {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 0 0 6px var(--teal-soft);
    animation: softPulse 2.4s ease-in-out infinite;
  }

  .path-node .label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-muted);
    line-height: 1.3;
  }

  .path-node.current .label {
    color: var(--teal-deep);
  }

  .path-node .time {
    font-size: 0.66rem;
    color: var(--ink-muted);
    opacity: 0.8;
  }

  .now-footline {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--ink-muted);
  }

  .now-footline strong {
    color: var(--ink);
    font-weight: 700;
  }

  /* ---------- grid ---------- */
  .grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .col {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    animation: riseIn .5s ease both;
  }

  .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }

  .card-head h3 {
    font-size: 1.05rem;
  }

  .card-head .see-all {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--teal-deep);
    cursor: pointer;
    background: none;
    border: none;
  }

  /* activity timeline */
  .timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .t-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .t-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .t-time {
    width: 64px;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-muted);
    padding-top: 3px;
  }

  .t-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
  }

  .t-icon.bg-teal {
    background: var(--teal-soft);
    color: var(--teal-deep);
  }

  .t-icon.bg-sand {
    background: var(--sand-soft);
    color: #8A5A2C;
  }

  .t-icon.bg-coral {
    background: var(--coral-soft);
    color: #9C4C3B;
  }

  .t-body h4 {
    font-family: 'Quicksand';
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 3px;
  }

  .t-body p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--ink-muted);
  }

  .t-status {
    margin-left: auto;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
  }

  .t-status.complete {
    background: var(--teal-soft);
    color: var(--teal-deep);
  }

  .t-status.progress {
    background: var(--sand-soft);
    color: #8A5A2C;
  }

  /* goals */
  .goal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .goal-row {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .goal-ring {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }

  .goal-info {
    flex: 1;
  }

  .goal-info .name {
    font-size: 0.88rem;
    font-weight: 700;
  }

  .goal-info .track {
    height: 7px;
    border-radius: 99px;
    background: var(--surface-alt);
    margin-top: 6px;
    overflow: hidden;
  }

  .goal-info .fill {
    height: 100%;
    border-radius: 99px;
    background: var(--teal);
  }

  .goal-pct {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-muted);
    width: 34px;
    text-align: right;
  }

  /* notifications */
  .notif-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .notif {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .15s ease;
  }

  .notif:hover {
    background: var(--surface-alt);
  }

  .notif .n-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sand);
    margin-top: 7px;
    flex-shrink: 0;
  }

  .notif.read .n-dot {
    background: transparent;
    border: 1px solid var(--line);
  }

  .notif h5 {
    margin: 0 0 2px;
    font-size: 0.87rem;
    font-weight: 700;
  }

  .notif p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ink-muted);
  }

  .notif .n-time {
    font-size: 0.72rem;
    color: var(--ink-muted);
    white-space: nowrap;
    margin-left: auto;
    padding-left: 8px;
  }

  /* wellbeing tiles */
  .tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tile {
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .tile .t-icon-solo {
    font-size: 1.3rem;
  }

  .tile .t-val {
    font-family: 'Quicksand';
    font-weight: 700;
    font-size: 1.05rem;
  }

  .tile .t-label {
    font-size: 0.74rem;
    color: var(--ink-muted);
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  /* gallery */
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .g-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform .15s ease;
  }

  .g-item:hover {
    transform: scale(1.04);
  }

  .g1 {
    background: linear-gradient(135deg, #DCEBE7, #B9D6CE);
  }

  .g2 {
    background: linear-gradient(135deg, #F5E4CE, #EAC79A);
  }

  .g3 {
    background: linear-gradient(135deg, #F6E1DA, #EEC0B3);
  }

  .g4 {
    background: linear-gradient(135deg, #E4E9DC, #C8D6BB);
  }

  /* behavior note */
  .note-box {
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    font-size: 0.87rem;
    color: var(--ink);
    border-left: 3px solid var(--sand);
  }

  .note-box .note-time {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink-muted);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
  }

  /* quick actions */
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
  }

  .action-btn:hover {
    background: var(--teal-soft);
    border-color: var(--teal);
  }

  .action-btn.primary {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
  }

  .action-btn.primary:hover {
    background: var(--teal-deep);
  }

  footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--ink-muted);
  }

  @keyframes pulse {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0.35;
    }
  }

  @keyframes softPulse {

    0%,
    100% {
      box-shadow: 0 0 0 6px var(--teal-soft);
    }

    50% {
      box-shadow: 0 0 0 9px var(--teal-soft);
    }
  }

  @keyframes riseIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
