@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: #1c2421;
  --muted: #5f675f;
  --bg: #efe6d8;
  --paper: #fbf7f1;
  --line: #e0d5c6;
  --header: #1b2822;
  --header-2: #24352e;
  --gold: #e2c48a;
  --green: #1e6b45;
  --green-dark: #164f33;
  --green-soft: #e5f2eb;
  --danger: #9f1239;
  --shadow: 0 16px 40px rgba(48, 36, 22, 0.08);
  --radius: 14px;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green-dark); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--header);
  color: #f6f1e8;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-start {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: start;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
}

.nav-toggle { display: none; }

.icon-btn, .btn, .btn-primary, .btn-ghost, .btn-danger {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 8px 12px;
  background: transparent;
}

.icon-btn {
  color: inherit;
  border-color: rgba(255, 255, 255, 0.16);
}

.topbar .icon-btn { color: #f6f1e8; }

.main-nav { display: flex; align-items: center; justify-self: center; gap: 4px; }
.main-nav a {
  color: #d9d1c5;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
}
.main-nav a[aria-current="page"] {
  color: white;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.nav-proyek { position: relative; display: flex; align-items: center; }
.nav-drop summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #d9d1c5;
  padding: 8px 4px 8px 0;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop[open] summary { color: white; }
.nav-drop-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-height: 320px;
  overflow: auto;
  display: grid;
  padding: 6px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.nav-drop-menu a,
.nav-drop-menu a[aria-current="page"] {
  color: var(--ink);
  box-shadow: none;
  border-radius: 8px;
  padding: 8px 10px;
}
.nav-drop-menu a:hover { background: #f3ece3; }
.nav-drop-menu p { margin: 0; padding: 8px 10px; color: var(--muted); }
.nav-drop-sep { height: 1px; margin: 4px 6px; background: var(--line); }

.count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--header);
  font-size: 11px;
  font-weight: 700;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #315746;
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  margin-left: 0;
  justify-self: end;
  flex: none;
}

.avatar.sm {
  width: 24px;
  height: 24px;
  margin: 0;
  font-size: 10px;
}

.switcher { position: relative; }
.switcher summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.switcher summary::-webkit-details-marker { display: none; }
.switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: grid;
}
.switcher-menu a, .switcher-menu button {
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
}
.switcher-menu a:hover, .switcher-menu button:hover { background: #f3ece3; }

.project-settings.page { max-width: 880px; margin: 0 auto; padding: 28px 32px 56px; }
.project-settings .panel + .panel { margin-top: 14px; }
.project-settings .sheet-actions { margin-top: 16px; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}
.page-head h1, .board-head h1, .auth-panel h1 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0;
}
.lede { color: var(--muted); margin: 6px 0 0; }

.status {
  margin: 0 0 14px;
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 12px;
  padding: 10px 12px;
}
.status:empty { display: none; }

.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: var(--line); background: var(--paper); }
.btn-danger { color: var(--danger); border-color: #f0c9d4; background: #fff7f9; }
.btn-row, .sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.board-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.board-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: var(--accent, var(--green));
}
.board-tile strong { font-size: 18px; letter-spacing: -0.03em; padding-left: 8px; }
.board-tile span { color: var(--muted); padding-left: 8px; }
.vis {
  align-self: flex-start;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.vis.private { color: #9a3412; background: #f8eadf; }

.section-block { margin-top: 28px; }
.section-block h2 { font-size: 18px; margin: 0 0 10px; }

.late-list, .task-list, .notice-list { display: grid; gap: 10px; }
.task-row, .notice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}
.task-row b, .notice b { letter-spacing: -0.02em; }
.task-row small, .notice small { color: var(--muted); }
.due, .pill {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  background: #f3ece3;
}
.due.is-overdue, .tag-late { background: #fde8ee; color: var(--danger); }
.tag-read { color: var(--muted); font-size: 12px; font-weight: 600; }
.notice.is-unread { box-shadow: inset 3px 0 0 var(--gold); }

.board-page { padding-bottom: 0; }
.board-head, .filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 20px;
  flex-wrap: wrap;
}
.board-head { justify-content: space-between; }
.filters { justify-content: flex-start; }
.board-head { padding-top: 16px; }
.filters { padding-top: 8px; padding-bottom: 12px; align-items: end; }
.filters .field { min-width: 160px; }
.member-row { display: flex; gap: 4px; align-items: center; }
body.board { background: #f3efe8; }
.board-head { align-items: flex-start; padding: 18px 28px 6px; }
.board-head h1 { font-size: clamp(30px, 3vw, 36px); }
.board-crumb { margin: 0 0 6px; font-size: 13px; }
.board-crumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.board-crumb a::before { content: "‹ "; }
.board-tools { align-items: center; }
.board .member-row .avatar { margin-left: -8px; border: 2px solid #f3efe8; }
.board .member-row .avatar:first-child { margin-left: 0; }
.board .vis { margin: 0; padding: 6px 10px; background: #fff; border: 1px solid #e6dfd4; }
#archive-board { background: #14352c; color: #fff; border: 0; border-radius: 12px; }
#archive-board:hover { background: #0d2821; }
.board-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 28px 14px;
}
.board-toolbar .filters { flex: 1; padding: 0; }
.board .filters .field { margin: 0; }
.board .filters input, .board .filters select {
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e6dfd4;
  min-height: 40px;
  padding: 0 14px;
}
#filter-q {
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f675f' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 16px;
}
.columns {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  overflow-x: auto;
  padding: 4px 28px 28px;
  min-height: calc(100vh - 210px);
}
.list-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 0 0 auto;
}
.column, .column-new {
  width: 300px;
  flex: 0 0 300px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(48, 36, 22, 0.04);
}
.column-head, .add-card, .column-new { display: grid; gap: 6px; }
.column-head { grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: start; padding: 2px 2px 8px; gap: 8px; }
.column-dot { width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: #94a3b8; }
.column[data-list="sedang"] .column-dot { background: #f59e0b; }
.column[data-list="selesai"] .column-dot { background: #22c55e; }
.column-new { background: #f4f7fb; }
.column-new .column-dot { background: #3b82f6; margin-top: 4px; }
label.column-kicker { display: block; }
.column-kicker { margin: 0; font-weight: 700; }
.column-note { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.list-title {
  width: 100%;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
  padding: 2px 4px;
  border-radius: 8px;
}
.count-badge {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}
.list-menu summary {
  list-style: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: #14352c;
}
.list-menu summary:hover { background: rgba(255, 255, 255, 0.85); }
.column:not([data-kunci]):not(.sub-list) .column-head { cursor: grab; }
.column.sub-list { background: rgba(255, 255, 255, 0.78); }
.column.is-dragging-list,
.list-group.is-dragging-list { opacity: 0.55; }
.column.is-list-over,
.list-group.is-list-over { outline: 2px dashed #1e6b45; outline-offset: 2px; }
.list-menu summary::-webkit-details-marker { display: none; }
.list-menu { position: relative; }
.list-menu div { display: none; }
.list-menu[open] div {
  position: absolute;
  right: 0;
  z-index: 5;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  min-width: 150px;
  padding: 4px;
  box-shadow: var(--shadow);
}
.list-menu button { text-align: left; border: 0; background: transparent; border-radius: 8px; padding: 8px; }
.column-body { display: grid; gap: 8px; min-height: 28px; }
.column-body.is-over { outline: 2px dashed var(--green); outline-offset: 2px; border-radius: 12px; }

.card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #efe7dc;
  box-shadow: 0 8px 18px rgba(48, 36, 22, 0.04);
  cursor: grab;
}
.card:hover { border-color: #d3c6b4; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.card-category { margin: 0; font-size: 12px; font-weight: 700; color: #14352c; }
.card-id { margin: 0; flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #64748b; text-align: right; }
.card-excerpt { margin: 6px 0 0; color: #3f4a45; font-size: 13px; line-height: 1.45; }
.card.is-dragging { opacity: 0.45; }
.card.is-done { background: #f4fbf6; }
.card h3 { margin: 6px 0; font-size: 14.5px; letter-spacing: -0.02em; }
.label-row, .card-foot, .card-meta, .avatar-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.card-foot .card-meta { flex: none; flex-wrap: nowrap; }
.card-foot .label-row { flex: 1; justify-content: center; min-width: 0; }
.card-foot .avatar-row { flex: none; }
.card-meta { color: var(--muted); font-size: 12px; }
.card .due { background: transparent; padding: 0; font-weight: 600; color: var(--muted); }
.card .due.is-overdue { background: transparent; color: var(--danger); }
.card-stat::before, .card .due::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h2v2h6V3h2v2h3v16H4V5h3zm13 6H6v10h14z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h2v2h6V3h2v2h3v16H4V5h3zm13 6H6v10h14z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card-stat-comment::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H7l-3 3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H7l-3 3z'/%3E%3C/svg%3E");
}
.card-stat-check::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h16v12H4zm2 2v2h4V8zm6 0v2h4V8zM6 12v2h4v-2zm6 0v2h4v-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h16v12H4zm2 2v2h4V8zm6 0v2h4V8zM6 12v2h4v-2zm6 0v2h4v-2z'/%3E%3C/svg%3E");
}
.card.is-done h3 { padding-right: 22px; }
.card.is-done { position: relative; }
.card.is-done::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.label {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
}
.add-card, .column-new { margin-top: 8px; }
.column .add-card {
  width: 100%;
  border: 0;
  background: transparent;
  color: #5f675f;
  text-align: left;
  font-weight: 700;
  padding: 8px 4px;
}
.add-card input, .column-new input { background: rgba(255, 255, 255, 0.7); }

.archive-strip {
  margin: 0 20px 12px;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 12px;
  border: 1px dashed var(--line);
}
.archive-strip h2 { margin: 0 0 8px; font-size: 14px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-row button { border-radius: 999px; border: 1px solid var(--line); background: white; padding: 6px 10px; }

.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--paper);
  border-radius: 12px;
  border: 1px dashed var(--line);
}

.table-wrap { overflow-x: auto; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); }

.stack { display: grid; gap: 14px; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label, .sheet legend, fieldset legend { font-size: 13px; font-weight: 700; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-label-row a { font-size: 13px; font-weight: 600; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; padding: 10px 12px 4px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d9d0c3;
  background: #fffdfb;
  border-radius: 10px;
  padding: 10px 12px;
}
textarea { resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; margin: 0; }
.checkline, .label-option { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.checkline input, .label-option input, .check-item input[type="checkbox"] { width: auto; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #d9d0c3;
  padding: 0;
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.check-item, .comment {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.comment { grid-template-columns: 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.comment small { color: var(--muted); }
.photo-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #315746; }

dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(880px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--paper);
  color: inherit;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(28, 36, 33, 0.46); }
.sheet form, .narrow-dialog form, .narrow-dialog .dialog-body { padding: 16px; }
.narrow-dialog { width: min(460px, calc(100vw - 28px)); }
#dlg-board-setting { max-height: calc(100vh - 32px); overflow: auto; }
.label-set { display: grid; gap: 14px; margin-top: 16px; }
.label-set h3 { margin: 0; font-size: 15px; }
.label-set > p { margin: -6px 0 0; color: var(--muted); }
.label-manage { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid #e7e0d6; }
.color-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.color-choice { position: relative; display: grid; }
.color-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; }
.color-choice input:checked + .swatch { box-shadow: 0 0 0 2px var(--ink); }
.color-choice input:focus-visible + .swatch { outline: 2px solid var(--green); outline-offset: 2px; }
.member-sheet { padding: 16px; }
.member-sheet h3 { margin: 16px 0 8px; font-size: 15px; }
.person-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.person-row small { display: block; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.person-row.is-invite .row-actions { flex-wrap: nowrap; }
.person-row.is-invite .row-actions .btn { flex: none; white-space: nowrap; }
.invite-share { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 8px; }
.invite-share .btn, .invite-share form { flex: none; }
.invite-link { width: auto; flex: 1 1 160px; min-width: 140px; max-width: 240px; height: 38px; padding-top: 0; padding-bottom: 0; }
#dlg-undangan-sukses { width: min(560px, calc(100vw - 28px)); }
#dlg-undangan-sukses .invite-share { display: grid; grid-template-columns: 1fr auto; }
#dlg-undangan-sukses .invite-link { width: 100%; }
#dlg-undangan-sukses .dialog-body > p { margin: 0 0 12px; }
.sheet-head, .sheet-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.sheet-actions { justify-content: flex-end; margin-top: 8px; }
.card-layout { display: grid; grid-template-columns: 1.35fr .8fr; gap: 16px; }
.grow { flex: 1; }

.auth-body { background: #e7dece; }
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.auth-aside {
  padding: 40px;
  background:
    radial-gradient(circle at 20% 20%, rgba(226, 196, 138, 0.35), transparent 28%),
    var(--header);
  color: #f6f1e8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-aside h2 { font-size: 40px; line-height: 1.05; letter-spacing: -0.045em; margin: 12px 0; }
.auth-kicker { color: var(--gold); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-board div { background: rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.mini-board span { font-size: 12px; color: #d9d1c5; }
.mini-board i { display: block; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); }
.auth-panel { display: grid; align-content: center; padding: 32px 28px; }
.auth-panel form, .auth-card {
  width: min(420px, 100%);
  margin: 0 auto;
  background: var(--paper);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
}
.auth-links { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }

.banner {
  margin: 0 20px 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8eadf;
  color: #7c2d12;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.login-body {
  min-height: 100vh;
  background: #10241c;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 956fr) minmax(320px, 710fr);
  overflow: visible;
}
.login-hero {
  position: relative;
  color: #f7f4ee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 48px 40px 48px 56px;
  z-index: 1;
  background: #0e241c url("../assets/login/bg-left.png") center / cover no-repeat;
  overflow: visible;
}
.login-copy {
  position: relative;
  z-index: 2;
  max-width: 400px;
}
.login-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(40px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.login-lead {
  max-width: 34ch;
  margin: 18px 0 0;
  color: rgba(247, 244, 238, 0.82);
  font-size: 15px;
  line-height: 1.5;
}
.login-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 360px;
}
.login-points li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
}
.login-points img { width: 44px; height: 44px; display: block; }
.login-points strong { display: block; font-size: 15px; line-height: 1.3; }
.login-points span { display: block; margin-top: 2px; color: rgba(247, 244, 238, 0.72); font-size: 13px; line-height: 1.4; }
.login-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(560px, 100%);
  margin: 0;
}
.login-stats article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 2px 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06) 38%, rgba(10, 22, 18, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 14px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.login-stat-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  align-self: center;
}
.login-stat-mark--ok { color: #3dbe7a; }
.login-stat-mark--wait { color: #f0b429; }
.login-stats strong { font-size: 30px; line-height: 1; letter-spacing: -0.04em; }
.login-stats article > span,
.login-stats article > div > span { color: rgba(247, 244, 238, 0.78); font-size: 13px; line-height: 1.2; }
.login-stats article > div { display: grid; gap: 2px; align-content: center; }
.login-stat-bar {
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3dbe7a 0 72%, rgba(255, 255, 255, 0.22) 72% 100%);
}
.login-board {
  position: absolute;
  z-index: 2;
  right: -5%;
  top: 50%;
  width: min(520px, 46%);
  transform: translateY(-54%);
  pointer-events: none;
  animation: board-enter 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes board-enter {
  from {
    opacity: 0;
    transform: translateY(calc(-54% + 48px));
  }
}
@keyframes board-settle {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateX(20deg) rotateY(-26deg) rotateZ(-11deg) translateY(18px);
  }
}
.glass-frame {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 22px 18px 26px;
  border-radius: 32px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05) 38%, rgba(8, 20, 16, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 36px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  transform: perspective(1200px) rotateX(12deg) rotateY(-16deg) rotateZ(-7deg);
  transform-origin: 60% 50%;
  animation: board-settle 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.glass-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 8px;
}
.glass-rail span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
}
.glass-rail .is-on {
  color: #d7ffe8;
  background: rgba(46, 140, 96, 0.85);
  box-shadow: 0 8px 16px rgba(16, 70, 46, 0.35);
}
.glass-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}
.glass-cols section {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(8, 18, 16, 0.28);
  pointer-events: auto;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.glass-cols section.is-over {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.glass-cols section:nth-child(2) { background: rgba(6, 14, 18, 0.46); }
.glass-cols header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f4f7f5;
  font-size: 12px;
}
.glass-cols header b { font-weight: 700; }
.glass-cols header em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dot-amber { background: #f0b429; }
.dot-blue { background: #3b82f6; }
.dot-green { background: #34d399; }
.col-meter {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #86efac);
}
.g-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 22px;
  gap: 6px 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  cursor: pointer;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease,
    opacity 0.42s ease;
}
.g-card:hover {
  z-index: 5;
  transform: translateY(-10px) rotate(-8deg) scale(1.04);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.28);
  transition-duration: 0.18s;
}
.g-card.is-dragging,
.g-card.is-dragging:hover {
  z-index: 30;
  cursor: grabbing;
  transform: rotate(-8deg);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
  transition: none;
}
.g-card-slot {
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}
.g-card .bar { grid-column: 1 / -1; height: 6px; width: 46%; border-radius: 999px; }
.bar-blue { background: #3b82f6; }
.bar-amber { background: #f59e0b; }
.bar-violet { background: #8b5cf6; }
.bar-green { background: #22c55e; }
.bar-gold { background: #eab308; }
.bar-slate { background: #94a3b8; }
.g-card .line {
  grid-column: 1;
  height: 6px;
  border-radius: 999px;
  background: #e6ebef;
}
.g-card .line.short { width: 62%; }
.g-card .line.mid { width: 78%; }
.ava {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  grid-row: 2 / span 2;
  grid-column: 2;
  align-self: end;
  background:
    radial-gradient(circle at 50% 38%, #f6efe6 0 28%, transparent 29%),
    radial-gradient(circle at 50% 92%, #f6efe6 0 36%, transparent 37%),
    #c4a484;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.ava-b { background:
  radial-gradient(circle at 50% 34%, #2c241c 0 16%, transparent 17%),
  radial-gradient(circle at 50% 42%, #f3e4d4 0 24%, transparent 25%),
  radial-gradient(circle at 50% 96%, #f3e4d4 0 34%, transparent 35%),
  #8d6a4a;
}
.ava-c { background:
  radial-gradient(circle at 50% 40%, #f7efe4 0 27%, transparent 28%),
  radial-gradient(circle at 50% 94%, #1f3b73 0 34%, transparent 35%),
  #d7b899;
}
.ava-d { background:
  radial-gradient(circle at 50% 36%, #1c1c1c 0 14%, transparent 15%),
  radial-gradient(circle at 50% 44%, #f6e7d8 0 24%, transparent 25%),
  radial-gradient(circle at 50% 96%, #f6e7d8 0 34%, transparent 35%),
  #b08968;
}
.login-stage {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  overflow: auto;
  padding: 32px 28px;
  background: #f4efe6 url("../assets/login/bg-right.png") center / cover no-repeat;
}
.login-card {
  width: min(440px, 100%);
  background: #fffcf8;
  border-radius: 28px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 60px rgba(48, 36, 22, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.login-card h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -0.03em; }
.login-card .lede { margin: 0 0 22px; color: #6d675f; }
.login-card .field label { color: #1c2421; }
.login-input {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-icon,
.login-reveal {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #8d867c;
  display: grid;
  place-items: center;
}
.login-input-icon { left: 12px; pointer-events: none; }
.login-reveal {
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
}
.login-input input {
  padding-left: 40px;
  padding-right: 42px;
  min-height: 48px;
  background: #fff;
  border: 1px solid #e4ddd2;
  border-radius: 12px;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 16px;
  color: #3c443f;
  font-size: 14px;
}
.login-remember input { width: 16px; height: 16px; margin: 0; accent-color: #0f3d30; }
.login-submit {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f3d30;
  border-radius: 12px;
  font-weight: 700;
}
.login-submit:hover { background: #0b3026; }
.login-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  font-size: 14px;
}
.login-links a { color: #146b45; text-decoration: none; }
.login-links a:first-child { text-decoration: underline; text-underline-offset: 3px; }
.login-card .form-success { margin: 0 0 14px; color: #146b45; font-weight: 600; }
.login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #8d867c;
  font-size: 13px;
}
.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4ddd2;
}
.google-button { display: flex; justify-content: center; min-height: 44px; }
.google-button > div { width: 100%; }

.home { background: #f3efe8; }
.home .page { max-width: 1180px; margin: 0 auto; padding: 28px 32px 56px; }
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: start;
  min-height: 168px;
  margin-bottom: 8px;
}
.home-kicker {
  margin: 0 0 8px;
  color: #1e6b45;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.home-hero h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(32px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.home-hero .lede { max-width: 46ch; margin-top: 10px; font-size: 15px; }
.home-actions { position: relative; z-index: 1; align-self: start; }
.home-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 12px;
  font-weight: 700;
}
.home-actions .btn-ghost { background: #fff; border-color: #e6dfd4; }
.home-actions .btn-primary { background: #14352c; }
.home-actions .btn-primary:hover { background: #0d2821; }
.home-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  background: #fdf7f7;
  border: 1px solid #f3e3e3;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
}
.home-alert b { display: block; letter-spacing: -0.02em; }
.home-alert small { color: var(--muted); }
.home-alert-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: #fde8ee;
  color: #be123c;
}
.home-alert .due {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.home-alert-go { flex: none; color: #8d867c; }
.home-section { margin-top: 28px; }
.home-stat-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.home-stat-filters .field { min-width: 180px; margin: 0; }
.home-stat-filters .btn { min-height: 42px; background: #fff; }
.home-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.home-stat {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #efe7dc;
  box-shadow: 0 10px 24px rgba(48, 36, 22, 0.04);
}
.home-stat-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.home-stat-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
}
.home-stat strong {
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.home-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.home-member {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #efe7dc;
  text-decoration: none;
  color: inherit;
}
.home-member:hover { border-color: #d7cfc3; }
.avatar.lg {
  width: 64px;
  height: 64px;
  margin: 0;
  justify-self: auto;
  font-size: 22px;
}
.page-head .avatar.lg { align-self: center; }
.home-member .avatar {
  width: 28px;
  height: 28px;
  margin: 0;
  justify-self: auto;
  font-size: 11px;
}
.home-member-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.home-member-main > strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.home-member-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.home-member-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.home-member-stat strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.03em;
}
.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.home-section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}
.home-section-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.home-section-head a {
  color: #146b45;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.home-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-boards-archive { grid-template-columns: minmax(0, 360px); }
.home-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  grid-template-rows: auto auto 1fr auto;
  gap: 4px 8px;
  min-height: 168px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #efe7dc;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(48, 36, 22, 0.04);
  overflow: hidden;
}
.home-card .vis { grid-column: 1; margin: 0; }
.home-card .vis.private { color: #be123c; background: #fde8ee; }
.home-card .vis.archive { color: #5f675f; background: #f3ece3; }
.home-card strong {
  grid-column: 1;
  margin-top: 6px;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.home-card-meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.home-card-foot {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.home-avatars { display: flex; align-items: center; }
.home-avatars i, .home-avatars b {
  width: 26px;
  height: 26px;
  margin-left: -8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #1d4e89;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.home-avatars i:first-child { margin-left: 0; }
.home-avatars i:nth-child(2) { background: #1e6b45; }
.home-avatars i:nth-child(3) { background: #9a3412; }
.home-avatars b { background: #efe6d8; color: #3c443f; font-size: 10px; }
.home-go {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e6dfd4;
  color: #3c443f;
}
.home-card-photo {
  grid-column: 2;
  grid-row: 1 / -1;
  width: 92px;
  height: 100%;
  min-height: 136px;
  object-fit: cover;
  border-radius: 14px;
  align-self: stretch;
}
.project-cover {
  display: block;
  width: 120px;
  height: 80px;
  margin-bottom: 8px;
  object-fit: cover;
  border-radius: 12px;
}
.home-illu {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  border-radius: 14px;
  background:
    linear-gradient(#dbe7f6, #dbe7f6) 18px 28px / 46px 34px no-repeat,
    linear-gradient(#f7fbff, #f7fbff) 28px 40px / 52px 40px no-repeat,
    linear-gradient(180deg, #e7f1fb, #f7fbff);
}
.home-illu-target {
  background:
    radial-gradient(circle at 62% 42%, #f4d35e 0 8px, transparent 9px),
    radial-gradient(circle at 58% 48%, #e11d48 0 16px, #fecdd3 17px 22px, #fff 23px 26px, #e11d48 27px 34px, transparent 35px),
    linear-gradient(180deg, #fff6f2, #fff);
}
.home-illu-check {
  background:
    linear-gradient(#d1fae5, #d1fae5) 16px 24px / 58px 28px no-repeat,
    linear-gradient(#ecfdf5, #ecfdf5) 24px 58px / 52px 28px no-repeat,
    linear-gradient(180deg, #e7f6ee, #f4fbf7);
}
.home-illu-box {
  background:
    linear-gradient(#d9d3cb, #d9d3cb) 22px 46px / 48px 36px no-repeat,
    linear-gradient(#eeeae4, #eeeae4) 18px 40px / 56px 12px no-repeat,
    linear-gradient(180deg, #f6f3ef, #fff);
}

.tasks { background: #f3efe8; }
.tasks .page { max-width: 1360px; margin: 0 auto; padding: 28px 32px 56px; }
.tasks-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
  gap: 12px 24px;
  align-items: center;
  margin-bottom: 18px;
}
.tasks-hero h1 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 42px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.tasks-hero .lede { max-width: 46ch; }
.tasks-art svg { width: 100%; height: auto; display: block; }
.task-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.task-filters .field { position: relative; margin: 0; width: auto; }
.task-filters .field-search { flex: 1 1 320px; min-width: 280px; }
.task-filters .field:not(.field-search) { flex: 0 0 auto; }
.task-filters .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.task-filters input,
.task-filters select {
  width: auto;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #e6dfd4;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 12px center, right 12px center;
  background-size: 16px, 10px;
  padding: 0 28px 0 34px;
  font-size: 13.5px;
}
.task-filters input {
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f675f' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E");
  background-position: 12px center;
  background-size: 16px;
  padding-right: 14px;
}
.task-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  border-radius: 12px;
  background: #fff;
}
.task-filters button::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16l-6 7v6l-4 2v-8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16l-6 7v6l-4 2v-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.task-empty { margin: 0 0 12px; color: var(--muted); }
.tasks .task-list { gap: 12px; }
.tasks .task-board {
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  align-items: start;
}
.tasks .task-row.task-card {
  display: block;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.tasks .task-row.task-card::before,
.tasks .task-row.task-card::after { content: none; }
.tasks .task-card .task-where { margin: 0 0 2px; color: var(--muted); font-size: 12px; }
.tasks .task-card .due,
.tasks .task-card .card-stat {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.tasks .task-card .due.is-overdue { background: transparent; color: var(--danger); }
.tasks .task-card .due::before,
.tasks .task-card .card-stat::before {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}
.tasks .task-row {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 16px 20px;
  border: 1px solid #efe7dc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(48, 36, 22, 0.04);
}
.tasks .task-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: #94a3b8;
}
.tasks .tone-rose::before { background: #fb7185; }
.tasks .tone-blue::before { background: #60a5fa; }
.tasks .tone-gold::before { background: #f5c16c; }
.tasks .task-row::after {
  content: "›";
  justify-self: end;
  color: #8d867c;
  font-size: 20px;
  line-height: 1;
}
.task-more {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #8d867c 1.4px, transparent 1.5px) left center / 6px 6px repeat-x;
}
.task-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f6f3ee;
}
.tone-rose .task-icon { background: #fff1f2; color: #e11d48; }
.tone-blue .task-icon { background: #eff6ff; color: #2563eb; }
.tone-gold .task-icon { background: #fff7ed; color: #d97706; }
.task-main { display: grid; gap: 3px; min-width: 0; }
.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.task-category {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: #14352c;
}
.task-id {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
}
.task-main b { font-size: 16px; }
.task-main small { font-size: 13px; }
.task-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.task-tags .label { border-radius: 999px; padding: 2px 8px; }
.tag-mendesak { color: #be123c; background: #ffe4e6; }
.tag-konten { color: #047857; background: #d1fae5; }
.task-side { display: flex; align-items: center; gap: 10px; }
.tasks .due, .tasks .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f6f3ee;
  white-space: nowrap;
}
.tasks .due::before, .tasks .pill::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h2v2h6V3h2v2h3v16H4V5h3zm13 6H6v10h14z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h2v2h6V3h2v2h3v16H4V5h3zm13 6H6v10h14z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tasks .due.is-overdue { background: #fff1f2; color: #e11d48; }

@media (max-width: 1080px) {
  .login-board { display: none; }
  .login-stats { width: min(560px, 100%); }
}
@media (max-width: 1240px) {
  .login-hero { padding: 36px 24px 28px 32px; }
  .login-stats { width: min(520px, 100%); }
  .login-board { right: -5%; top: 50%; width: min(440px, 46%); }
  .glass-frame { padding: 14px 12px 16px; transform: perspective(900px) rotateX(8deg) rotateY(-10deg) rotateZ(-4deg); }
  .login-hero h1 { font-size: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .topbar { display: flex; flex-wrap: wrap; }
  .topbar-start { flex: 1; }
  .main-nav {
    display: none;
    position: absolute;
    top: 58px;
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    background: var(--header-2);
    padding: 8px;
    border-radius: 12px;
  }
  .main-nav.is-open { display: flex; }
  .nav-drop-menu { position: static; min-width: 0; margin: 0 8px 8px; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .login-body { background: #f4efe6; }
  .login-screen { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-board { display: none; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; }
  .home-hero h1 { max-width: none; }
  .home-boards, .home-boards-archive { grid-template-columns: 1fr; }
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-members { grid-template-columns: 1fr; }
  .home-alert { flex-wrap: wrap; }
  .home-alert .due { margin-left: 50px; }
  .login-stage { background: #f4efe6 url("../assets/login/bg-right.png") center / cover no-repeat; }
  .split, .card-layout, .page-head, .notice { grid-template-columns: 1fr; }
  .task-filters { flex-wrap: wrap; }
  .tasks-art { display: none; }
  .tasks-hero { grid-template-columns: 1fr; }
  .tasks .task-row { grid-template-columns: auto minmax(0, 1fr); }
  .tasks .task-side { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .tasks .task-row::after { display: none; }
  .columns { min-height: 0; }
  .column, .column-new { width: min(292px, 86vw); flex-basis: min(292px, 86vw); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .g-card { transition: none; }
  .login-board,
  .glass-frame { animation: none; }
}
#dlg-card {
  width: min(1080px, calc(100vw - 28px));
  background: #f7f4ef;
}
#dlg-card > form { padding: 22px 24px 18px; }
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.detail-head h2 { margin: 0; font-size: 22px; }
.detail-head p { margin: 4px 0 0; color: var(--muted); }
.dialog-x {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}
.block-label, .side-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}
.block-label svg, .side-card h3 svg { color: #7d8a84; flex: none; }
.req { color: #c43b5c; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-block { margin-bottom: 14px; }
.inset-box, .side-card {
  background: #fff;
  border: 1px solid #efe8dc;
  border-radius: 16px;
  padding: 12px;
}
.side-card { margin-bottom: 12px; }
.side-card h3 { margin-bottom: 10px; }
#dlg-card { overflow: visible; }
#dlg-card > form { max-height: calc(100vh - 32px); overflow: auto; }
#dlg-card .tox-tinymce { border: 1px solid #d9d0c3; border-radius: 12px; }
#dlg-card.is-desc-fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border-radius: 0;
}
#dlg-card.is-desc-fullscreen > form {
  max-height: none;
  height: 100%;
  overflow: visible;
}
#dlg-card.is-desc-fullscreen .tox.tox-tinymce.tox-fullscreen {
  border-radius: 0;
}
.list-pick, .assignee-box { position: relative; }
.list-dot {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #2f6fed;
  pointer-events: none;
}
.list-pick select { padding-left: 28px; }
.label-box { position: relative; }
.label-mark {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  pointer-events: none;
}
.label-box.has-label select { padding-left: 30px; }
.assignee-box .avatar {
  position: absolute;
  left: 8px;
  top: 50%;
  margin-top: -12px;
  z-index: 1;
  pointer-events: none;
}
.assignee-box.has-person select { padding-left: 40px; }
.assignee-clear {
  position: absolute;
  right: 28px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  line-height: 1;
}
.check-add, .label-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.btn-soft {
  border: 1px solid #d7eadf;
  background: #eef8f2;
  color: #1f7a4d;
  font-weight: 700;
  white-space: nowrap;
}
#dlg-card .check-item {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
}
.grip, .icon-quiet {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #8d8680;
}
.grip { cursor: grab; letter-spacing: -1px; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.composer textarea { min-height: 42px; }
.send-comment {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d7eadf;
  border-radius: 12px;
  background: #f3faf6;
  color: #1f7a4d;
}
.switch { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.switch input {
  appearance: none;
  width: 36px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #ddd4c8;
  position: relative;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
}
.switch input:checked { background: #b7d7c6; }
.switch input:checked::after { left: 18px; }
.archive-btn { display: inline-flex; align-items: center; gap: 8px; }
#dlg-card .detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  margin-top: 8px;
  padding-top: 10px;
  background: #f7f4ef;
}
#dlg-card .btn-primary { display: inline-flex; align-items: center; gap: 6px; background: #1f7a4d; color: white; }
#dlg-card .swatches { margin-top: 10px; }

@media (max-width: 860px) {
  .pair, .check-add, .label-add, .composer { grid-template-columns: 1fr; }
}

.avatar.has-photo {
  color: transparent;
  background-size: cover;
  background-position: center;
}
.list-gap {
  flex: 0 0 36px;
  align-self: flex-start;
  margin-top: 10px;
  position: relative;
}
.list-add {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: unset;
  border: unset;
  color: #14352c;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}
.list-add::-webkit-details-marker { display: none; }
.list-gap[open] { flex: 0 0 232px; width: 232px; }
.list-insert {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 12px;
  background: #f4f7fb;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  display: grid;
  gap: 8px;
}
.list-insert .field { margin: 0; }
