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

:root {
  --yellow: #ffcf05;
  --orange: #ff4b0b;
  --ink: #171717;
  --paper: #f6f5f0;
  --white: #ffffff;
  --green: #10b981;
  --green-light: #b8f5a5;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-700: #374151;
  --font-main: 'Plus Jakarta Sans', 'Inter', Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.shell {
  max-width: 1280px;
  margin: auto;
  padding: 24px;
}

/* ====================================================
   1. TOP NAVIGATION / HEADER
   ==================================================== */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--ink);
  padding: 0 0 16px;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brandmark {
  background: var(--orange);
  color: #fff;
  border: 2.5px solid var(--ink);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -1px;
}

.brand-name-row .title-outbreak {
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -1px;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: #555;
  margin-top: 2px;
}

/* Header Auth Bar */
.auth-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--ink);
  flex-shrink: 0;
  margin-left: auto;
}

.auth-logged-out {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.auth-logged-out #btn-open-login {
  padding: 6px 12px;
  font-size: 11.5px;
  white-space: nowrap;
}

.auth-label {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #444;
  white-space: nowrap;
}

.member-pills {
  display: flex;
  gap: 6px;
  align-items: center;
}

.member-pill {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.1s ease;
}

.member-pill:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

.member-pill.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.member-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #888;
  display: inline-block;
}

.member-pill.active .dot {
  background: #fff;
}

.user-logged-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.user-profile-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-profile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.avatar {
  width: 34px;
  height: 34px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 2px 2px 0 var(--ink);
}

.logout-btn {
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.logout-btn:hover {
  background: #fee2e2;
  color: #991b1b;
}

/* ====================================================
   2. QUICK INFO & ACUAN LINKS BAR (Adjusted spacing)
   ==================================================== */
.quick-links {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0 20px;
  padding: 10px 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.link-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 6px 12px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  transition: transform 0.1s ease;
  cursor: pointer;
}

.link-badge:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.link-badge.figma {
  background: var(--ink);
  color: #fff;
}

.link-badge.figma:hover {
  background: #333;
}

.link-badge.mindmap {
  background: var(--orange);
  color: #fff;
  border: 1.5px solid var(--ink);
}

.link-badge.mindmap:hover {
  background: #d83a00;
  color: #fff;
}

.link-badge.reset {
  margin-left: auto;
  font-size: 10.5px;
  background: #fff5f5;
  color: #991b1b;
}

.link-badge.reset:hover {
  background: #fee2e2;
}

/* ====================================================
   3. HERO SECTION (Neo-Brutalist "GET IT DONE")
   ==================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  padding: 10px 0 20px;
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #444;
}

h1 {
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: 0.88;
  letter-spacing: -3.5px;
  margin: 14px 0 16px;
  font-weight: 900;
}

h1 span {
  background: var(--yellow);
  padding: 0 8px;
  display: inline-block;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.sub {
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 500px;
  color: #222;
  font-weight: 600;
}

.hero-right {
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  position: relative;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}

.hero-right:after {
  content: "✓";
  font-weight: 900;
  font-size: 170px;
  line-height: 1;
  position: absolute;
  right: 6px;
  bottom: -36px;
  opacity: 0.12;
  pointer-events: none;
}

.bigstat {
  font-size: 64px;
  letter-spacing: -4px;
  font-weight: 900;
  line-height: 1;
  margin: 6px 0;
}

.member-progress-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
  z-index: 2;
}

.mini-prog {
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 6px 9px;
  font-size: 10.5px;
  font-weight: 800;
}

.mini-prog-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.mini-bar {
  height: 6px;
  background: #e5e7eb;
  border: 1px solid var(--ink);
}

.mini-fill {
  height: 100%;
  background: var(--orange);
  transition: width 0.3s ease;
}

/* ====================================================
   4. STAT ROW (4 Brutalist Cards)
   ==================================================== */
.statrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 24px;
}

.stat {
  border: 2.5px solid var(--ink);
  padding: 14px 16px;
  background: #fff;
  box-shadow: 3.5px 3.5px 0 var(--ink);
}

.stat:nth-child(2) {
  background: var(--yellow);
}

.stat:nth-child(4) {
  background: var(--green-light);
}

.stat small {
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #333;
}

.num {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-top: 4px;
  line-height: 1;
}

/* ====================================================
   5. TOOLBAR & ACTIONS
   ==================================================== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 14px;
  flex-wrap: wrap;
}

.sectitle {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}

.btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.primary {
  background: var(--orange);
  color: #fff;
  border: 2.5px solid var(--ink);
  padding: 11px 18px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 4px 4px 0 var(--ink);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.1s ease;
  cursor: pointer;
}

.primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.primary:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

.secondary {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.secondary:hover {
  background: #f3f4f6;
}

/* Filter Bar */
.filter-bar {
  background: #fff;
  border: 2.5px solid var(--ink);
  padding: 10px 14px;
  box-shadow: 3.5px 3.5px 0 var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

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

.filter {
  border: 1.5px solid var(--ink);
  padding: 7px 11px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 900;
  transition: all 0.1s ease;
  cursor: pointer;
}

.filter:hover {
  background: var(--paper);
}

.filter.active {
  background: var(--ink);
  color: #fff;
}

.filter.special {
  background: var(--yellow);
}

.filter.special.active {
  background: var(--orange);
  color: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 6px 10px;
  gap: 8px;
  min-width: 230px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  font-weight: 700;
  width: 100%;
}

/* ====================================================
   6. TASK GRID & BRUTALIST TASK CARDS
   ==================================================== */
.taskgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.task {
  border: 2.5px solid var(--ink);
  background: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
  transition: transform 0.1s ease;
}

.task:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.task.is-mine {
  border-left: 8px solid var(--orange);
  background: #fffdfa;
}

.taskhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.id-badge {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #555;
}

.category-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border: 1px solid var(--ink);
  background: var(--gray-100);
}

.status {
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border: 1.5px solid var(--ink);
  background: #eee;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status.open {
  background: #fff;
  color: #111;
}

.status.doing {
  background: var(--yellow);
  color: #111;
}

.status.done {
  background: var(--green-light);
  color: #065f46;
  border-color: #065f46;
}

.task h3 {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 12px 0 10px;
  font-weight: 900;
}

.owner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 900;
  margin-bottom: 12px;
  width: fit-content;
}

.owner-tag.clickable {
  cursor: pointer;
  transition: all 0.15s ease;
}

.owner-tag.clickable:hover {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 2px 2px 0 var(--orange);
  transform: translateY(-1px);
}

.owner-tag.unclaimed {
  background: #fee2e2;
  color: #991b1b;
}

.desc {
  font-size: 12.5px;
  color: #333;
  line-height: 1.6;
  flex: 1;
  white-space: pre-line;
}

/* Figma Button Inside Card */
.figma-link-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111;
  color: #fff;
  border: 1.5px solid var(--ink);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  width: fit-content;
  transition: background 0.15s ease;
}

.figma-link-btn:hover {
  background: #333;
}

/* Submission Box Inside Card */
.submission-box {
  margin-top: 14px;
  background: var(--green-light);
  border: 1.5px solid #059669;
  padding: 10px 12px;
  font-size: 11.5px;
}

.submission-title {
  font-weight: 900;
  color: #065f46;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
}

.sub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #047857;
  font-weight: 900;
  text-decoration: underline;
  overflow-wrap: anywhere;
  margin-bottom: 4px;
}

.sub-file-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #fff;
  border: 1px solid #059669;
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 800;
  margin-top: 5px;
}

.download-btn {
  background: #065f46;
  color: #fff;
  border: none;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.download-btn:hover {
  background: #047857;
}

/* Card Footer */
.taskfoot {
  border-top: 1.5px solid #e5e7eb;
  margin-top: 14px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.taskfoot-status {
  font-size: 10.5px;
  font-weight: 900;
  color: #555;
}

.task-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.taskbtn {
  font-size: 10.5px;
  font-weight: 900;
  border: 1.5px solid var(--ink);
  background: #fff;
  padding: 7px 11px;
  box-shadow: 2px 2px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.taskbtn:hover {
  background: #f3f4f6;
}

.taskbtn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.taskbtn.submit {
  background: var(--orange);
  color: #fff;
}

.taskbtn.submit:hover {
  background: #e03e00;
}

.taskbtn.claim {
  background: var(--yellow);
}

/* ====================================================
   7. PROGRESS AREA & BOTTOM FOOTER
   ==================================================== */
.progressarea {
  border: 2.5px solid var(--ink);
  margin-top: 26px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.progresshead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.track {
  height: 16px;
  background: #e5e7eb;
  border: 2px solid var(--ink);
  margin-top: 14px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: var(--orange);
  transition: width 0.3s ease;
}

.bottom {
  margin-top: 26px;
  border-top: 3px solid var(--ink);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

/* ====================================================
   8. MODALS (Neo-Brutalist Dialogs)
   ==================================================== */
.modalback {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}

.modalback.show {
  display: flex;
}

.modal {
  background: var(--paper);
  border: 3.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  width: min(540px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
}

.modal h2 {
  font-size: 28px;
  line-height: 1;
  margin: 6px 0 16px;
  letter-spacing: -1px;
  font-weight: 900;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.field input, .field textarea, .field select {
  width: 100%;
  border: 2px solid var(--ink);
  background: #fff;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 700;
  outline-offset: 2px;
}

.field textarea {
  resize: vertical;
  min-height: 75px;
}

/* Dropzone */
.dropzone {
  border: 2.5px dashed var(--ink);
  background: #fff;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dropzone:hover, .dropzone.dragover {
  background: #fff8e6;
  border-color: var(--orange);
  border-style: solid;
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.dropzone-text {
  font-size: 12.5px;
  font-weight: 900;
}

.dropzone-hint {
  font-size: 11px;
  color: #555;
}

.file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
}

.file-remove {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #991b1b;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}

/* Login Member Cards */
.member-select-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.member-card-opt {
  border: 2px solid var(--ink);
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: all 0.1s ease;
}

.member-card-opt:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
}

.member-card-opt.selected {
  background: var(--orange);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.member-card-opt.selected .role-sub {
  color: #ffeedd;
}

.role-sub {
  font-size: 9.5px;
  color: #666;
  font-weight: 700;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: #fff;
  border: 2.5px solid var(--yellow);
  padding: 12px 18px;
  font-weight: 900;
  font-size: 13px;
  z-index: 99999;
  box-shadow: 4px 4px 0 #000;
  display: none;
  align-items: center;
  gap: 10px;
}

.toast.show {
  display: flex;
  animation: pop 0.2s ease-out;
}

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

.empty {
  padding: 40px 20px;
  text-align: center;
  border: 3px dashed #888;
  font-size: 14px;
  font-weight: 900;
  grid-column: 1 / -1;
  background: #fff;
}

/* ====================================================
   9. IN-PAGE VIEW SWITCHER & PROFILE SYSTEM (NEO-BRUTALIST)
   ==================================================== */
.main-view-switcher {
  display: flex;
  gap: 10px;
  margin: 16px 0 22px;
  flex-wrap: wrap;
}

.view-switch-btn {
  background: #fff;
  border: 2.5px solid var(--ink);
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 3.5px 3.5px 0 var(--ink);
  cursor: pointer;
  transition: all 0.1s ease;
  letter-spacing: 0.3px;
}

.view-switch-btn:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 4.5px 4.5px 0 var(--ink);
}

.view-switch-btn.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--orange);
}

.view-switch-btn.active i {
  color: var(--yellow);
}

.profile-inpage-header {
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.profile-inpage-header .profile-tabs-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid #eee;
}

.feed-count-badge {
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
}

.profile-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.profile-top-bar .btn-back {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: all 0.1s ease;
}

.profile-top-bar .btn-back:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.profile-cols-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .profile-cols-grid {
    grid-template-columns: 1fr;
  }
}

.profile-col-box {
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.profile-col-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.profile-col-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-col-subtitle {
  font-size: 11px;
  color: #555;
  font-weight: 700;
  margin-top: 4px;
}

.claimed-task-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 14px;
  margin-bottom: 12px;
  transition: transform 0.1s ease;
}

.claimed-task-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.claimed-task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.claimed-task-title {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1.3;
}

.claimed-task-desc {
  font-size: 11.5px;
  color: #444;
  line-height: 1.45;
  margin-bottom: 12px;
  white-space: pre-line;
}

.claimed-task-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1.5px dashed #ccc;
}

.daily-preview-featured {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  margin-top: 12px;
}

.daily-preview-img-wrap {
  width: 100%;
  max-height: 290px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.daily-preview-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 290px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.daily-preview-img-wrap:hover img {
  transform: scale(1.03);
}

.daily-preview-content {
  padding: 14px;
}

.profile-history-box {
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 20px;
  margin-top: 24px;
}

.profile-tabs-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.profile-tab {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.1s ease;
}

.profile-tab:hover {
  background: var(--yellow);
  transform: translate(-1px, -1px);
}

.profile-tab.active {
  background: var(--ink);
  color: #fff;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
}

.profile-tab.active i {
  color: var(--yellow);
}

.profile-hero-card {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-avatar-lg {
  width: 64px;
  height: 64px;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.profile-meta-wrap {
  flex: 1;
}

.profile-name-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-role-pill {
  font-size: 11px;
  font-weight: 900;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  padding: 2px 8px;
  box-shadow: 2px 2px 0 var(--ink);
}

.profile-tagline {
  font-size: 11.5px;
  color: #555;
  font-weight: 700;
  margin-top: 4px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.profile-mini-stat {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 6px 8px;
  text-align: center;
}

.profile-mini-stat .val {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.profile-mini-stat .lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: #666;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Post New Progress Box */
.progress-upload-box {
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px;
  margin-bottom: 20px;
}

.progress-upload-box h3 {
  font-size: 14.5px;
  font-weight: 900;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.img-dropzone {
  border: 2.5px dashed var(--ink);
  background: var(--paper);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.1s ease;
  position: relative;
}

.img-dropzone:hover, .img-dropzone.dragover {
  background: #fef08a;
  border-color: var(--orange);
  border-style: solid;
}

.img-preview-container {
  position: relative;
  border: 2px solid var(--ink);
  background: #111;
  max-height: 240px;
  overflow: hidden;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-preview-container img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.img-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--orange);
  color: #fff;
  border: 1.5px solid var(--ink);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

/* Progress Feed Cards Grid */
.progress-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.progress-post-card {
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 3.5px 3.5px 0 var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.1s ease;
}

.progress-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 4.5px 4.5px 0 var(--ink);
}

.post-header {
  padding: 10px 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.post-author-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-author-avatar {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  color: #fff;
}

.post-author-name {
  font-size: 12px;
  font-weight: 900;
}

.post-date {
  font-size: 10px;
  color: #666;
  font-weight: 700;
}

.post-img-wrap {
  position: relative;
  background: #111;
  border-bottom: 2px solid var(--ink);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.post-img-wrap:hover img {
  transform: scale(1.04);
}

.post-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  gap: 4px;
}

.post-img-wrap:hover .post-img-overlay {
  opacity: 1;
}

.post-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-task-badge {
  display: inline-block;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.post-title {
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1.3;
}

.post-notes {
  font-size: 11.5px;
  color: #444;
  line-height: 1.45;
  margin-top: 4px;
}

.post-footer {
  padding: 8px 12px;
  border-top: 1.5px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
}

.btn-post-del {
  background: #fff;
  border: 1.5px solid #dc2626;
  color: #dc2626;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.1s ease;
}

.btn-post-del:hover {
  background: #dc2626;
  color: #fff;
}

/* Responsive */
@media (max-width: 960px) {
  .top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .auth-bar {
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }
  .taskgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statrow { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .shell { padding: 16px 12px; }

  /* Brand Header Mobile */
  .brand {
    gap: 10px;
    width: 100%;
  }
  .brandmark {
    width: 40px;
    height: 40px;
    font-size: 20px;
    flex-shrink: 0;
  }
  .brand-name-row {
    font-size: 17px;
    letter-spacing: -0.5px;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
  }
  .brand-sub {
    font-size: 9.5px;
    letter-spacing: 0.8px;
    line-height: 1.35;
  }
  .sync-status-badge {
    margin-left: auto;
    font-size: 10px;
    padding: 2.5px 7px;
  }

  /* Auth Bar Mobile: Clean 2-Row Layout */
  .auth-bar {
    padding: 8px 10px;
  }

  .auth-logged-out {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .auth-logged-out .auth-label {
    order: 1;
    font-size: 10.5px;
    font-weight: 900;
  }

  .auth-logged-out #btn-open-login {
    order: 2;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 900;
  }

  .auth-logged-out .member-pills {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 2px;
  }

  .auth-logged-out .member-pill {
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
  }

  .auth-logged-out .member-pill .dot {
    margin-right: 3px;
    flex-shrink: 0;
  }

  /* Logged In State Mobile */
  .user-logged-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .user-profile-info {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .user-profile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
  }

  /* Quick links mobile */
  .quick-links {
    padding: 10px;
    gap: 6px;
    font-size: 11px;
  }

  .link-badge {
    padding: 5px 9px;
    font-size: 11px;
  }

  .link-badge.reset {
    margin-left: 0;
  }

  /* Main View Switcher Mobile */
  .main-view-switcher {
    gap: 8px;
    margin: 12px 0 16px;
  }
  .view-switch-btn {
    flex: 1;
    min-width: 135px;
    padding: 9px 10px;
    font-size: 11px;
    justify-content: center;
    box-shadow: 2.5px 2.5px 0 var(--ink);
  }
  .profile-inpage-header {
    padding: 14px;
  }
}

@media (max-width: 600px) {
  .shell { padding: 12px; }
  .taskgrid { grid-template-columns: 1fr; }
  .statrow { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .member-select-grid { grid-template-columns: 1fr; }
  .member-progress-bars { grid-template-columns: 1fr; }
  h1 { font-size: 44px; letter-spacing: -2px; }
  .hero-right { min-height: auto; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filters { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .search-box { width: 100%; }

  /* Profile & Feed Mobile */
  .progress-feed-grid { grid-template-columns: 1fr; }
  .profile-hero-card { flex-direction: column; text-align: center; gap: 10px; }
  .profile-name-title { justify-content: center; }
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .brand-name-row {
    font-size: 15px;
  }
  .auth-logged-out .member-pills {
    grid-template-columns: repeat(2, 1fr);
  }
  .statrow { grid-template-columns: 1fr; }
}

/* Sync Status Badge */
.sync-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 900;
  border: 1.5px solid var(--ink);
  background: #fff;
  cursor: pointer;
  transition: all 0.1s ease;
  letter-spacing: 0.5px;
}
.sync-status-badge:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 var(--ink);
}
.sync-status-badge.online {
  background: #dcfce7;
  color: #14532d;
  border-color: #15803d;
}
.sync-status-badge.offline {
  background: #fef08a;
  color: #713f12;
  border-color: #ca8a04;
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: #22c55e;
}
.sync-status-badge.offline .sync-dot {
  background: #eab308;
}

/* ====================================================
   11. MODERN ICONS & TASK DETAIL POPUP STYLES
   ==================================================== */
.task {
  cursor: pointer;
}

.task:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.card-detail-bar {
  margin-top: 12px;
  margin-bottom: 2px;
  padding: 8px 10px;
  background: #faf8f2;
  border: 1.5px dashed var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #111;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.card-detail-bar:hover {
  background: var(--yellow);
  border-style: solid;
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translateY(-1px);
}

.card-detail-bar i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.owner-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tag-mine {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--orange);
  color: #fff;
  border: 1.5px solid var(--ink);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  margin-left: 4px;
}

/* Modal Task Detail Elements */
.detail-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
  border: 1.5px solid var(--ink);
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.detail-pill.cat {
  background: var(--gray-100);
}

.detail-pill.owner {
  background: var(--yellow);
}

.detail-pill.status-open {
  background: #fff;
  color: #111;
}

.detail-pill.status-doing {
  background: var(--yellow);
  color: #111;
}

.detail-pill.status-done {
  background: var(--green-light);
  color: #065f46;
  border-color: #065f46;
}

.detail-task-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}

.detail-box {
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.detail-box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--ink);
}

.detail-box.goal {
  background: #fffdf5;
  border-left: 6px solid var(--orange);
}

.detail-box.goal .detail-box-head {
  color: var(--orange);
}

.detail-box.goal-p {
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 600;
  color: #222;
}

.detail-step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #faf8f5;
  border: 1.5px solid var(--ink);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.detail-step-num {
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

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

@media (max-width: 600px) {
  .detail-specs-grid {
    grid-template-columns: 1fr;
  }
}

.detail-spec-chip {
  background: #f8fafc;
  border: 1.5px solid var(--ink);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-spec-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.detail-spec-val {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.detail-box.tips {
  background: #f0fdf4;
  border-left: 6px solid #16a34a;
}

.detail-box.tips .detail-box-head {
  color: #15803d;
}

.detail-box.tips-p {
  font-size: 12.5px;
  line-height: 1.6;
  color: #14532d;
  font-weight: 600;
}


