:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #17211f;
  --ink: #17211f;
  --muted: #63706c;
  --line: #d9dfd8;
  --paper: #ffffff;
  --soft: #eef3ee;
  --primary: #195c63;
  --primary-dark: #123f45;
  --accent: #b85c38;
  --warn: #a33b28;
  --ok: #276749;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 18px 14px;
  background: rgba(243, 245, 241, 0.94);
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.1rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 1rem;
  letter-spacing: 0;
}

.content {
  padding: 12px;
}

body:not(.is-authenticated) .bottom-tabs {
  display: none;
}

body:not(.is-authenticated) .app-shell {
  padding-bottom: env(safe-area-inset-bottom);
}

.icon-button {
  width: 46px;
  padding: 0;
  background: var(--paper);
  color: var(--primary);
  border: 1px solid var(--line);
}

.icon-button::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 14px 0 -5px currentColor;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.secondary {
  background: var(--primary-dark);
  color: #fff;
}

.ghost {
  background: #edf2ed;
  color: var(--primary-dark);
}

.small {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.full {
  width: 100%;
}

.user-strip,
.project-card,
.task-card,
.notification-card,
.decision-card,
.template-card,
.settings-card,
.auth-card,
.admin-user-card,
.detail-hero,
.action-card,
.loading,
.error-card {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(23, 33, 31, 0.06);
}

.auth-card {
  display: grid;
  gap: 14px;
  margin: 8vh 0 0;
  padding: 18px;
}

.auth-card h2 {
  font-size: 1.45rem;
}

.auth-copy {
  color: var(--muted);
  line-height: 1.5;
}

.admin-user-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.user-admin-list {
  display: grid;
  gap: 12px;
}

.danger-zone {
  display: grid;
  gap: 12px;
}

.backup-list {
  display: grid;
  gap: 10px;
}

.storage-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.storage-status span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f7faf6;
}

.storage-status strong {
  color: var(--ink);
}

.backup-row {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.backup-row strong,
.backup-row small {
  display: block;
  overflow-wrap: anywhere;
}

.backup-row small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.audit-log-list {
  display: grid;
  gap: 8px;
}

.audit-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
}

.audit-log-row strong,
.audit-log-row span,
.audit-log-row small {
  display: block;
}

.audit-log-row strong,
.audit-log-row span {
  font-size: 0.84rem;
  font-weight: 900;
}

.audit-log-row small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.audit-log-more-button {
  margin-top: 8px;
  min-height: 36px;
  border-style: dashed;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.danger-button {
  color: var(--warn);
}

.user-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.user-strip strong,
.user-strip span {
  display: block;
}

.user-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.toast {
  position: sticky;
  top: calc(max(16px, env(safe-area-inset-top)) + 58px);
  z-index: 20;
  margin: 12px 0 0;
  border: 1px solid rgba(25, 92, 99, 0.2);
  border-radius: 8px;
  padding: 12px;
  background: #eef7f5;
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.45;
}

.toast.is-success {
  border-color: rgba(39, 103, 73, 0.24);
  background: #e9f6ee;
  color: var(--ok);
}

.toast.is-error {
  border-color: rgba(163, 59, 40, 0.28);
  background: #fff0ec;
  color: var(--warn);
}

body.is-action-busy button {
  cursor: wait;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.metric {
  display: grid;
  min-height: 62px;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(23, 33, 31, 0.1);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.metric span {
  font-size: 1.25rem;
  line-height: 1;
}

.metric small {
  color: var(--muted);
  font-weight: 800;
}

.metric.danger span {
  color: var(--warn);
}

.metric.wide {
  grid-column: 1 / -1;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 8px;
}

.list-stack,
.compact-list {
  display: grid;
  gap: 8px;
}

.project-task-groups {
  display: grid;
  gap: 10px;
}

.project-task-group {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  background: var(--paper);
}

.project-task-group-head {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 11px 12px;
  background: #eef7f5;
  color: var(--ink);
  text-align: left;
}

.project-task-group-head strong {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-task-group-head small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-task-group-body {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.task-group-more-button {
  min-height: 36px;
  border-style: dashed;
}

.notification-groups {
  display: grid;
  gap: 10px;
}

.notification-group {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  background: var(--paper);
}

.notification-group-head {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 11px 12px;
  background: #eef7f5;
  color: var(--ink);
  text-align: left;
}

.notification-group-head:disabled {
  cursor: default;
  opacity: 1;
}

.notification-group-head strong {
  display: block;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-group-head small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-group-body {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.notification-more-button {
  min-height: 36px;
  border-style: dashed;
}

.notification-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  cursor: pointer;
}

.notification-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: 999px;
  color: var(--primary);
  background: #eef7f5;
  font-size: 0.78rem;
  font-weight: 900;
}

.notification-main {
  min-width: 0;
}

.notification-main h3 {
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 0.94rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-main p,
.notification-main small {
  display: block;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-side {
  display: flex;
  justify-content: flex-end;
  max-width: 100px;
}

@media (max-width: 520px) {
  .notification-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .notification-side {
    grid-column: 2;
    justify-content: flex-start;
    max-width: 100%;
  }
}

.project-card,
.task-card,
.notification-card,
.decision-card,
.template-card,
.settings-card,
.detail-hero,
.action-card,
.loading,
.error-card {
  padding: 10px;
}

.project-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.project-card-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.project-card-main h3,
.compact-task h3 {
  margin: 0;
  overflow: hidden;
  font-size: 0.98rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-main p,
.compact-task p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compact-title-row h2,
.compact-title-row h3 {
  min-width: 0;
}

.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-photo-cover {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  background: #dfe7e3;
}

.project-photo-cover img,
.photo-thumb-button img,
.photo-viewer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.photo-count,
.representative-mark {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(23, 33, 31, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.photo-section {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.inline-head {
  margin: 0;
}

.photo-count-inline {
  color: var(--muted);
  font-weight: 900;
}

.photo-strip,
.recent-photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

.photo-thumb {
  display: grid;
  gap: 6px;
  flex: 0 0 92px;
  min-width: 92px;
  scroll-snap-align: start;
}

.photo-thumb-button {
  position: relative;
  overflow: hidden;
  min-height: auto;
  border: 0;
  border-radius: 8px;
  padding: 0;
  aspect-ratio: 4 / 3;
  background: #dfe7e3;
}

.photo-thumb strong,
.photo-thumb small,
.photo-review-strip {
  overflow-wrap: anywhere;
}

.photo-thumb small,
.photo-review-strip {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.photo-review-strip {
  display: grid;
  gap: 3px;
}

.photo-empty {
  min-width: 100%;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.photo-more,
.recent-photo-empty {
  display: grid;
  flex: 0 0 92px;
  min-width: 92px;
  min-height: 69px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}

.recent-photo {
  display: grid;
  flex: 0 0 104px;
  min-width: 104px;
  gap: 5px;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
}

.recent-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: #dfe7e3;
}

.recent-photo span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-gallery-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.photo-upload-panel {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.role-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.role-checks label {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fbfcfa;
  font-size: 0.82rem;
}

.photo-upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.file-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 8px;
  font-weight: 900;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(23, 33, 31, 0.72);
}

.photo-viewer-panel {
  display: grid;
  gap: 12px;
  width: min(100%, 720px);
  max-height: calc(100vh - 24px);
  overflow: auto;
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.photo-viewer-head,
.photo-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.photo-viewer-panel > img {
  max-height: 52vh;
  border-radius: 8px;
  background: #111;
  object-fit: contain;
}

.photo-review-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.photo-review-list span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef7f5;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.photo-comments {
  display: grid;
  gap: 8px;
}

.comment-list {
  display: grid;
  gap: 8px;
}

.comment-list p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  line-height: 1.45;
}

.comment-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.notification-card {
  cursor: pointer;
}

.notification-body {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.badge-row,
.notification-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.notification-actions {
  flex: 0 0 auto;
}

.notification-action {
  min-height: 42px;
  border: 1px solid rgba(25, 92, 99, 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: #eef7f5;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(23, 33, 31, 0.06);
}

.notification-action.primary-action {
  background: var(--primary);
  color: #fff;
}

.notification-action:disabled {
  opacity: 0.55;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.switch-row span,
.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row i {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #cfd8d4;
  transition: background 0.18s ease;
}

.switch-row i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(23, 33, 31, 0.22);
  content: "";
  transition: transform 0.18s ease;
}

.switch-row input:checked + i {
  background: var(--primary);
}

.switch-row input:checked + i::after {
  transform: translateX(24px);
}

.switch-row input:disabled + i {
  opacity: 0.48;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-head p,
.detail-hero p,
.candidate,
.history,
.attachment {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #e8eee8;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge-자료요청,
.badge-알림-대기 {
  background: #f9e8df;
  color: var(--warn);
}

.badge-완료,
.badge-알림-허용,
.badge-확정 {
  background: #e2f1e8;
  color: var(--ok);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.meta-grid.compact {
  margin-bottom: 10px;
}

dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e8e2;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.detail-hero {
  display: grid;
  gap: 11px;
}

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

.project-menu {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
}

.project-menu summary {
  display: grid;
  width: 40px;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary-dark);
  list-style: none;
}

.project-menu summary::-webkit-details-marker {
  display: none;
}

.project-menu-actions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 4;
  display: grid;
  min-width: 150px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.14);
}

.detail-hero h2 {
  font-size: 1.35rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.status-select {
  margin-top: 2px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.stage {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  background: var(--paper);
}

.stage-toggle {
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.stage-toggle small,
.check-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.stage-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--primary);
  font-weight: 900;
}

.stage.is-expanded .stage-index {
  background: var(--primary);
  color: #fff;
}

.stage-body {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 10px;
  background: #fbfcfa;
}

.stage-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 4px;
}

.stage-task-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.stage-menu {
  padding: 8px;
}

.stage-menu summary {
  display: grid;
  width: 38px;
  min-height: 34px;
  place-items: center;
  margin-left: auto;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary-dark);
  list-style: none;
}

.stage-menu summary::-webkit-details-marker {
  display: none;
}

.stage-menu .stage-actions {
  margin-top: 8px;
}

.stage-actions,
.task-controls,
.action-card,
.dependency-row,
.template-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.check-row {
  grid-template-columns: 34px 1fr;
  align-items: center;
  color: var(--ink);
  font-size: 1rem;
}

.check-row input {
  width: 28px;
  height: 28px;
  accent-color: var(--primary);
}

.task-card {
  display: grid;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.task-card.is-expanded {
  border-color: var(--primary);
}

.task-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border-radius: 0;
  min-height: unset;
  text-align: left;
  width: 100%;
}

.task-toggle:hover {
  background: var(--soft);
}

.task-toggle-info {
  flex: 1;
  display: grid;
  gap: 2px;
}

.task-toggle-info strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.task-toggle-info small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.task-body {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.task-desc {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--paper);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 0;
  line-height: 1.5;
}

.task-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-chip {
  min-height: unset;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 99px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}

.status-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.status-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.task-memo-label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.task-footer-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.task-summary {
  display: grid;
  gap: 4px;
}

.task-summary small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.compact-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
}

.compact-task-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.candidate,
.history,
.attachment,
.dependency-hint {
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
}

.status-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.status-counts.compact {
  gap: 6px;
  margin: 0;
  font-size: 0.78rem;
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.filter-tabs button {
  min-height: 36px;
  padding: 0 8px;
  background: #edf2ed;
  color: var(--primary-dark);
  font-size: 0.82rem;
}

.filter-tabs button.is-active {
  background: var(--primary);
  color: #fff;
}

.fab-inline {
  width: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.floating-create {
  position: fixed;
  right: max(16px, calc((100vw - 760px) / 2 + 16px));
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 12;
  width: 54px;
  min-height: 54px;
  border-radius: 50%;
  padding: 0;
  background: var(--primary);
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.22);
}

.spec-badge {
  min-width: 48px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #e8eee8;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}

.spec-확정 {
  background: #e2f1e8;
  color: var(--ok);
}

.spec-검토중 {
  background: #fff2df;
  color: #9a5a16;
}

.spec-자료요청 {
  background: #fff0ec;
  color: var(--warn);
}

.spec-미입력 {
  background: #eef0ef;
  color: var(--muted);
}

.spec-해당없음 {
  background: #f5f7f6;
  color: #87918d;
}

.spec-변경가능 {
  background: #edf3ff;
  color: #315b9c;
}

.spec-미확정 {
  background: #eef2f7;
  color: #475569;
}

.task-spec-result {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 8px;
}

.task-spec-result label {
  gap: 4px;
}

.task-guide {
  border: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.task-guide summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 850;
}

.task-guide p {
  margin: 4px 0 0;
  line-height: 1.45;
}

.progress-label {
  color: var(--muted);
  font-weight: 900;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: var(--soft);
}

.segmented button {
  min-height: 40px;
  background: transparent;
  color: var(--muted);
}

.segmented button.is-active {
  background: var(--primary);
  color: #fff;
}

.workflow-map {
  display: grid;
  gap: 10px;
}

.map-root,
.map-node {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
}

.map-root {
  display: grid;
  gap: 4px;
  background: #eef7f5;
}

.map-root small {
  color: var(--muted);
  font-weight: 800;
}

.map-toggle {
  display: grid;
  width: 100%;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.map-children {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.task-node {
  box-shadow: none;
  background: #fbfcfa;
  padding: 10px;
}

.map-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.map-task-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.map-task-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-task-title small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.map-task-summary {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(48vw, 340px);
}

.map-value,
.map-memo {
  display: inline-flex;
  align-items: center;
  max-width: 170px;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 8px;
  overflow: hidden;
  color: var(--ink);
  background: #eef4f2;
  font-size: 0.78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-memo {
  color: #465a57;
  background: #f4f6f4;
}

.map-node.status-done {
  border-left: 5px solid #2f7d52;
}

.map-node.status-active {
  border-left: 5px solid #c97922;
}

.map-node.status-request {
  border-left: 5px solid #2c78b8;
  background: #f2f8fd;
}

.map-node.status-decision {
  border-left: 5px solid #7a4bb3;
  background: #f7f2fd;
}

.map-node.status-problem {
  border-left: 5px solid #b7432f;
  background: #fff5f1;
}

.map-node.status-waiting {
  border-left: 5px solid #a7b0aa;
}

@media (max-width: 520px) {
  .map-task-row {
    grid-template-columns: 1fr;
  }

  .map-task-summary {
    justify-content: flex-start;
    max-width: 100%;
    padding-left: 22px;
  }

  .map-value,
  .map-memo {
    max-width: 100%;
  }
}

.template-stage-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.template-editor,
.template-document {
  display: grid;
  gap: 12px;
}

.template-editor {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.editor-topbar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.template-doc-stage,
.doc-task {
  border: 1px solid rgba(23, 33, 31, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.doc-stage-title {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.doc-description {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.doc-task-list,
.inline-form {
  display: grid;
  gap: 10px;
}

.doc-task-main {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.doc-task-main span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.inline-form {
  margin: 10px 0;
  border-radius: 8px;
  padding: 10px;
  background: var(--soft);
}

.sticky-save {
  margin-top: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

summary span {
  float: right;
  color: var(--muted);
  font-size: 0.8rem;
}

details label,
.mini-tasks {
  margin-top: 10px;
}

.mini-tasks {
  display: grid;
  gap: 9px;
}

.bottom-tabs {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: 0 auto;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(23, 33, 31, 0.1);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.tab {
  min-height: 50px;
  padding: 0 4px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
}

.tab.is-active {
  background: var(--primary);
  color: #fff;
}

.sheet {
  width: min(92vw, 420px);
  border: 0;
  border-radius: 8px;
  padding: 0;
}

.sheet::backdrop {
  background: rgba(23, 33, 31, 0.35);
}

.sheet form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.empty,
.loading,
.error-card {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

@media (min-width: 720px) {
  .summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .metric.wide {
    grid-column: auto;
  }
}

/* 2026 desktop workspace refresh — based on the TLD Notion-style prototype. */
:root {
  --workspace-side: #f7f7f5;
  --workspace-hover: rgba(55, 53, 47, 0.06);
  --workspace-text: #37352f;
  --workspace-muted: rgba(55, 53, 47, 0.62);
  --workspace-line: rgba(55, 53, 47, 0.1);
  --primary: #2383e2;
  --primary-dark: #1a73d1;
  --accent: #155f64;
}

body { background: #fff; color: var(--workspace-text); }
.workspace-shell { display: flex; min-height: 100vh; }
body:not(.is-authenticated) .workspace-shell { justify-content: center; }
body:not(.is-authenticated) .desktop-sidebar { display: none; }
.desktop-sidebar { position: sticky; top: 0; display: flex; width: 240px; height: 100vh; flex: 0 0 240px; flex-direction: column; padding: 10px 8px; overflow-y: auto; border-right: 1px solid var(--workspace-line); background: var(--workspace-side); }
.workspace-brand { display: flex; align-items: center; gap: 9px; padding: 8px 8px 17px; }
.workspace-brand > span:last-child { display: grid; min-width: 0; }
.workspace-brand strong { font-size: 14px; }
.workspace-brand small { color: var(--workspace-muted); font-size: 11px; }
.workspace-mark { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 7px; background: linear-gradient(145deg, #1aa6ac, #0d5256); color: #fff; font-size: 9px; font-weight: 900; }
.sidebar-nav { display: grid; gap: 2px; }
.side-nav-item { display: flex; min-height: 34px; align-items: center; gap: 10px; padding: 0 9px; border-radius: 6px; background: transparent; color: var(--workspace-muted); font-size: 14px; font-weight: 600; text-align: left; }
.side-nav-item > span { display: inline-grid; width: 18px; place-items: center; color: rgba(55, 53, 47, 0.48); font-size: 16px; }
.side-nav-item:hover, .side-nav-item.is-active { background: var(--workspace-hover); color: var(--workspace-text); }
.sidebar-section-label { margin: 17px 9px 4px; color: rgba(55, 53, 47, 0.42); font-size: 11px; font-weight: 800; }
.sidebar-foot { margin-top: auto; padding-top: 12px; }
.sidebar-account { display: grid; width: 100%; min-height: 52px; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 8px; background: transparent; color: var(--workspace-text); text-align: left; }
.sidebar-account:hover { background: var(--workspace-hover); }
.sidebar-account > span:nth-child(2), .page-user > span:nth-child(2) { display: grid; }
.sidebar-account small, .page-user small { color: var(--workspace-muted); font-size: 11px; font-style: normal; font-weight: 500; }
.sidebar-account i { color: var(--workspace-muted); font-style: normal; }
.account-avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: rgba(35, 131, 226, 0.14); color: #2383e2; font-size: 12px; font-weight: 900; }

.app-shell { width: 100%; max-width: none; min-width: 0; padding: 0; }
.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 38px 56px 72px; }
.topbar { display: none; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--workspace-line); }
.page-title-block { min-width: 0; }
.page-kicker { margin-bottom: 8px; color: #155f64 !important; font-size: 10px !important; font-weight: 900 !important; letter-spacing: 0.1em; }
.page-title-block h1 { margin: 0; font-size: 34px; letter-spacing: -0.035em; }
.page-title-block > p:last-child { margin: 5px 0 0; color: var(--workspace-muted); font-size: 13.5px; }
.page-account-tools { display: flex; align-items: center; gap: 12px; }
.page-user { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.page-user strong { font-size: 13px; }
.notification-action { min-height: 32px; border: 1px solid var(--workspace-line); border-radius: 6px; background: #fff; color: var(--workspace-muted); font-size: 12px; font-weight: 700; }
.notification-action.primary-action { border-color: rgba(35, 131, 226, 0.2); background: rgba(35, 131, 226, 0.1); color: #1a73d1; }
.bottom-tabs { display: none; }

.summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.metric { min-height: 76px; border-color: var(--workspace-line); border-radius: 8px; box-shadow: none; }
.metric:hover { background: var(--workspace-hover); }
.section-head { margin: 24px 0 9px; }
.section-head h2 { font-size: 14px; font-weight: 750; }
.project-task-group, .notification-group, .settings-card, .detail-hero, .stage, .task-card, .project-card, .template-card, .decision-card { border-color: var(--workspace-line); border-radius: 8px; box-shadow: none; }
.settings-card, .detail-hero { background: #fff; }

.database-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--workspace-line); }
.database-toolbar .filter-tabs { margin: 0; overflow: visible; }
.filter-tabs { gap: 2px; }
.filter-tabs button { min-height: 38px; border-radius: 0; background: transparent; color: var(--workspace-muted); font-size: 13px; }
.filter-tabs button.is-active { border-bottom: 2px solid var(--workspace-text); background: transparent; color: var(--workspace-text); }
.create-project-button { min-height: 32px; margin-bottom: 5px; border-radius: 6px; }
.project-table-wrap { overflow-x: auto; }
.project-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.project-table th { padding: 8px 10px; border-bottom: 1px solid var(--workspace-line); color: rgba(55, 53, 47, 0.48); font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; }
.project-table td { padding: 9px 10px; border-bottom: 1px solid rgba(55, 53, 47, 0.07); vertical-align: middle; }
.project-table tbody tr { cursor: pointer; }
.project-table tbody tr:hover { background: var(--workspace-hover); }
.table-project-name { display: flex; min-width: 210px; align-items: center; gap: 9px; }
.table-project-name > span:last-child { display: grid; }
.table-project-name strong { font-size: 13.5px; font-weight: 700; }
.table-project-name small { margin-top: 2px; color: var(--workspace-muted); font-size: 11px; }
.project-page-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 6px; background: rgba(21, 95, 100, 0.1); color: #155f64; }
.table-progress { display: flex; min-width: 110px; align-items: center; gap: 8px; }
.table-progress > span { width: 66px; height: 5px; overflow: hidden; border-radius: 99px; background: rgba(55, 53, 47, 0.1); }
.table-progress i { display: block; height: 100%; border-radius: inherit; background: #2383e2; }
.table-progress b { color: var(--workspace-muted); font-size: 11px; }
.empty-table { padding: 40px !important; color: var(--workspace-muted); text-align: center; }
.mobile-project-list { display: none; }
.floating-create { display: none; }

@media (max-width: 880px) {
  .desktop-sidebar { display: none; }
  .app-shell { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .topbar { display: flex; }
  .content { max-width: 760px; padding: 14px 12px 30px; }
  .page-header { display: block; margin-bottom: 14px; padding-bottom: 12px; }
  .page-title-block h1 { font-size: 25px; }
  .page-account-tools { margin-top: 12px; justify-content: space-between; }
  .page-user { display: none; }
  .bottom-tabs { display: grid; max-width: none; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desktop-project-list { display: none; }
  .mobile-project-list { display: grid; }
  .floating-create { display: block; }
  .database-toolbar { align-items: flex-end; }
}

.inline-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* 2026.07 mobile polish — cleaner app-like surface inspired by Sales Intelli Mobile. */
:root {
  --mobile-bg: #ffffff;
  --mobile-surface: rgba(255, 255, 255, 0.96);
  --mobile-soft: #f1f5f9;
  --mobile-line: rgba(15, 23, 42, 0.08);
  --mobile-text: #111827;
  --mobile-muted: #6b7280;
  --mobile-blue: #2563eb;
  --mobile-cyan: #19a7c8;
  --mobile-green: #0f9f6e;
  --mobile-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --mobile-shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.06);
}

@media (max-width: 880px) {
  body {
    background: #ffffff;
    color: var(--mobile-text);
    overflow-x: hidden;
  }

  button {
    min-height: 44px;
    border-radius: 14px;
    -webkit-tap-highlight-color: transparent;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    border-color: var(--mobile-line);
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
  }

  .app-shell {
    width: min(100%, 640px);
    min-height: 100dvh;
    margin: 0 auto;
    background: transparent;
  }

  .topbar {
    min-height: 74px;
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
    border-bottom: 0;
    background: rgba(248, 251, 255, 0.88);
    backdrop-filter: blur(22px);
  }

  .topbar h1 {
    color: var(--mobile-text);
    font-size: 1.38rem;
    letter-spacing: -0.04em;
  }

  .eyebrow,
  .page-kicker {
    color: var(--mobile-cyan) !important;
    letter-spacing: 0.08em;
  }

  .content {
    padding: 10px 12px 28px;
  }

  .page-header {
    margin: 4px 0 14px;
    border: 0;
    padding: 0;
  }

  .page-title-block h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
  }

  .page-title-block > p:last-child {
    color: var(--mobile-muted);
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .page-account-tools {
    gap: 8px;
    margin-top: 12px;
  }

  .notification-action,
  .small,
  .ghost.small,
  .secondary.small,
  .primary.small {
    min-height: 38px;
    border-radius: 999px;
    padding: 0 13px;
    font-size: 0.8rem;
  }

  .notification-action {
    border-color: var(--mobile-line);
    background: #fff;
    color: var(--mobile-muted);
    box-shadow: var(--mobile-shadow-soft);
  }

  .notification-action.primary-action {
    border-color: rgba(37, 99, 235, 0.18);
    background: rgba(37, 99, 235, 0.1);
    color: var(--mobile-blue);
  }

  .icon-button {
    width: 44px;
    min-height: 44px;
    border-color: var(--mobile-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--mobile-shadow-soft);
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 10px 0 16px;
  }

  .metric {
    min-height: 78px;
    border-color: var(--mobile-line);
    border-radius: 20px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: var(--mobile-shadow-soft);
  }

  .metric span {
    font-size: 1.38rem;
    font-weight: 950;
    letter-spacing: -0.04em;
  }

  .metric small {
    color: var(--mobile-muted);
    font-size: 0.76rem;
  }

  .section-head {
    margin: 20px 0 10px;
  }

  .section-head h2 {
    color: var(--mobile-text);
    font-size: 1rem;
    letter-spacing: -0.02em;
  }

  .user-strip,
  .project-card,
  .task-card,
  .notification-card,
  .decision-card,
  .template-card,
  .settings-card,
  .auth-card,
  .admin-user-card,
  .detail-hero,
  .action-card,
  .project-task-group,
  .notification-group,
  .stage,
  .loading,
  .error-card {
    border-color: var(--mobile-line);
    border-radius: 22px;
    background: var(--mobile-surface);
    box-shadow: var(--mobile-shadow-soft);
  }

  .project-task-group,
  .notification-group {
    overflow: hidden;
  }

  .project-task-group-head,
  .notification-group-head {
    min-height: 62px;
    padding: 13px 14px;
    background:
      linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(25, 167, 200, 0.08)),
      #ffffff;
  }

  .project-task-group-body,
  .notification-group-body {
    gap: 9px;
    padding: 10px;
    background: rgba(248, 250, 252, 0.72);
  }

  .project-card,
  .task-card,
  .notification-card,
  .decision-card,
  .template-card,
  .settings-card,
  .detail-hero,
  .action-card {
    padding: 14px;
  }

  .project-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .project-photo-cover,
  .photo-thumb-button,
  .recent-photo img {
    border-radius: 18px;
    background: linear-gradient(135deg, #dbeafe, #ecfeff);
  }

  .project-card-main h3,
  .compact-task h3 {
    font-size: 1rem;
    letter-spacing: -0.025em;
  }

  .project-card-main p,
  .compact-task p,
  .compact-meta,
  .notification-main p,
  .notification-main small {
    color: var(--mobile-muted);
  }

  .task-card {
    border-radius: 20px;
  }

  .task-card.is-expanded {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.12);
  }

  .task-toggle,
  .stage-toggle,
  .map-toggle {
    border-radius: 18px;
  }

  .task-body,
  .inline-form,
  .task-spec-result {
    border-radius: 18px;
    background: #f8fafc;
  }

  .task-status-chips,
  .template-actions,
  .photo-gallery-actions,
  .photo-upload-actions {
    gap: 8px;
  }

  .status-chip,
  .badge,
  .spec-badge,
  .storage-status span {
    border-radius: 999px;
  }

  .status-chip {
    min-height: 36px;
    border: 1px solid var(--mobile-line);
    background: #fff;
    color: var(--mobile-muted);
  }

  .status-chip.is-active {
    border-color: rgba(37, 99, 235, 0.24);
    background: var(--mobile-blue);
    color: #fff;
  }

  .primary {
    background: linear-gradient(135deg, #2563eb, #18a5c7);
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
  }

  .secondary {
    background: #111827;
    color: #fff;
  }

  .ghost {
    background: #eef2f7;
    color: #334155;
  }

  .toast {
    top: calc(max(12px, env(safe-area-inset-top)) + 62px);
    border-radius: 18px;
    background: rgba(236, 253, 245, 0.96);
    box-shadow: var(--mobile-shadow);
  }

  .bottom-tabs {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: 620px;
    gap: 4px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 7px 7px max(7px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(24px);
  }

  .tab {
    min-height: 48px;
    border-radius: 18px;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 900;
  }

  .tab.is-active {
    background: #111827;
    color: #fff;
  }

  .filter-tabs {
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .filter-tabs button {
    min-height: 38px;
    flex: 0 0 auto;
    border: 1px solid var(--mobile-line);
    border-radius: 999px;
    background: #fff;
    color: var(--mobile-muted);
  }

  .filter-tabs button.is-active {
    border-color: rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.1);
    color: var(--mobile-blue);
  }

  .floating-create {
    right: 18px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #19a7c8);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.25);
  }

  .auth-card {
    margin-top: 6vh;
    border-radius: 28px;
    padding: 22px;
    box-shadow: var(--mobile-shadow);
  }

  .auth-card h2 {
    font-size: 1.7rem;
    letter-spacing: -0.045em;
  }
}
