:root {
  --ink: #213b34;
  --muted: #78847d;
  --green: #173f38;
  --green-hover: #24574d;
  --sage: #e7eee4;
  --canvas: #f6f7f3;
  --line: #e2e7df;
  --white: #fff;
  --amber: #a67228;
  --danger: #a84a42;
  --radius: 14px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #85a980;
  outline-offset: 3px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  color: inherit;
}
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #7b8a78;
  margin-bottom: 13px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 12px;
  background: var(--white);
}
.skip-link:focus {
  top: 10px;
}
.loading-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1;
}
.brand-mark {
  display: grid;
  place-items: center;
  font-size: 30px;
  letter-spacing: -4px;
  padding-right: 4px;
  width: 44px;
  height: 44px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.brand-caption {
  display: block;
  font-size: 8px;
  letter-spacing: 1.8px;
  font-weight: 600;
  margin-top: 7px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 17px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover:not(:disabled) {
  background: #f0f3ed;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.button.primary:hover:not(:disabled) {
  background: var(--green-hover);
}
.button.danger {
  color: var(--danger);
  border-color: #e7cfcb;
}
.button.small {
  padding: 8px 12px;
  font-size: 11px;
}
.button.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.button.full {
  width: 100%;
  justify-content: space-between;
  padding: 14px 18px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 4px 0;
  font-size: 11px;
}
.text-button:hover {
  color: var(--green);
}
input:not([type='checkbox']),
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
  font-size: 13px;
}
input::placeholder,
textarea::placeholder {
  color: #a0a8a0;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 17px 0 8px;
}
.form-error {
  font-size: 12px;
  line-height: 1.5;
  color: var(--danger);
  background: #fbefeb;
  border-radius: 7px;
  padding: 10px 12px;
  margin: 16px 0;
}
.field-help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 7px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.span-two {
  grid-column: 1/-1;
}
.login-screen {
  display: grid;
  grid-template-columns: 48% 52%;
  min-height: 100vh;
}
.login-story {
  background: var(--green);
  color: #e7eedf;
  padding: 50px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: '';
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid #66816c38;
  border-radius: 50%;
  right: -230px;
  top: 28%;
  box-shadow:
    0 0 0 60px #66816c0b,
    0 0 0 120px #66816c08;
  pointer-events: none;
}
.brand-light {
  color: #e9eee0;
}
.story-copy {
  padding: 70px 0;
  position: relative;
  z-index: 1;
}
.story-copy .eyebrow {
  color: #b2c8aa;
}
.story-copy h1 {
  font-family: Georgia, serif;
  font-size: clamp(50px, 5.5vw, 78px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin: 28px 0;
}
.story-copy > p:last-child {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.9;
  color: #becdc0;
}
.story-bottom {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.story-bottom p {
  font-size: 12px;
  line-height: 1.7;
  color: #becdc0;
}
.sparkle {
  font-size: 42px;
  color: #cce0b4;
}
.project-tag {
  font-size: 8px;
  letter-spacing: 1.3px;
  margin-left: auto;
  color: #95ae98;
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 12%;
  background: var(--canvas);
}
.login-form-wrap {
  width: 100%;
  max-width: 370px;
  margin: auto 0;
}
.login-form-wrap h2 {
  font-size: 35px;
  letter-spacing: -1.2px;
  font-weight: 550;
  margin-bottom: 12px;
}
.login-form-wrap form {
  margin-top: 32px;
}
.login-form-wrap form button {
  margin-top: 25px;
}
.login-footnote {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  margin-top: 25px;
}
.login-disclaimer {
  font-size: 10px;
  line-height: 1.8;
  color: #90988f;
  text-align: center;
  padding-top: 50px;
}
.app-shell {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 22px 21px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  margin-left: 5px;
}
.property-label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 33px 0 27px;
}
.property-icon {
  border-radius: 8px;
  background: #f1f3ed;
  padding: 10px 13px;
  font-family: Georgia, serif;
  font-size: 18px;
}
.property-label strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.property-label div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.nav-label {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #98a195;
  margin: 0 0 12px 12px;
}
.nav-button {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  margin-bottom: 5px;
  width: 100%;
  text-align: left;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #849083;
}
.nav-button.active {
  background: var(--green);
  color: #fff;
}
.nav-button:not(.active):hover {
  background: var(--canvas);
  color: var(--ink);
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  color: #d6e3ce;
  background: #ffffff18;
  padding: 3px 6px;
  border-radius: 4px;
}
.sidebar-note {
  margin-top: auto;
  padding: 35px 10px 30px;
}
.note-symbol {
  font-size: 34px;
  color: #8a9e75;
  display: block;
  margin-bottom: 14px;
}
.sidebar-note strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.sidebar-note p {
  font-size: 10px;
  color: #9aa390;
  line-height: 1.6;
  margin-top: 9px;
  max-width: 130px;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding-top: 19px;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9eee2;
  color: #617651;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
}
.profile strong {
  display: block;
  font-size: 11px;
}
.profile div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.account-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 72px;
  padding: 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #fafbf8;
}
.breadcrumb {
  font-size: 10px;
  color: #9aa394;
}
.breadcrumb span {
  margin: 0 10px;
  color: #b5beb0;
}
.breadcrumb strong {
  font-weight: 500;
  color: #4f6252;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: 10px;
  color: #8d9786;
}
.connection {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  color: #768c6d;
  font-size: 10px;
}
.connection:before {
  content: '';
  width: 6px;
  height: 6px;
  background: #7fa06c;
  border-radius: 50%;
}
.connection.offline {
  color: var(--danger);
}
.connection.offline:before {
  background: var(--danger);
}
.page-content {
  padding: 37px 38px 20px;
  max-width: 1530px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -1.1px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.page-heading .muted {
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 31px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px 19px;
  position: relative;
  overflow: hidden;
}
.stat-card.featured {
  background: #edf1e6;
  border-color: #e1e7d9;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #788570;
}
.stat-icon {
  color: #a1ad91;
}
.stat-number {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1.3px;
  margin-top: 15px;
  margin-bottom: 5px;
}
.stat-note {
  font-size: 10px;
  color: #919b87;
  line-height: 1.5;
}
.stat-note.attention {
  color: #ae7d3c;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.section-title h2 {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  gap: 9px;
  align-items: center;
}
.count-pill {
  font-size: 10px;
  background: #e8ede1;
  border-radius: 5px;
  padding: 3px 6px;
  font-weight: 500;
  color: #758266;
}
.section-subtitle {
  font-size: 10px;
  color: #9aa38e;
  margin-top: 7px;
  line-height: 1.5;
}
.board-toolbar {
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.tabs {
  display: flex;
  gap: 23px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tab {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #8a9580;
  padding: 8px 0 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active {
  border-bottom-color: var(--green);
  color: var(--green);
  font-weight: 650;
}
.filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.search-field {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 340px;
  flex: 1;
}
.search-field > span {
  position: absolute;
  left: 12px;
  color: #a5af9a;
}
.search-field input {
  padding: 10px 12px 10px 40px;
  font-size: 11px;
  background: #fff;
}
.filter-row select {
  max-width: 145px;
  font-size: 11px;
  padding: 10px 12px;
  background: #fff;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 11px;
  color: #7f8d74;
  margin: 0 0 0 auto;
  white-space: nowrap;
}
.checkbox-label input {
  accent-color: var(--green);
  width: 14px;
  height: 14px;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.task-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  min-height: 240px;
}
.task-card:hover {
  border-color: #c5d0bc;
  box-shadow: 0 4px 18px #203b3007;
}
.task-card.blocked-card {
  border-color: #e3d1ba;
  background: #fffdfa;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 20px;
}
.area-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #78866d;
}
.area-label svg {
  width: 15px;
  height: 15px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  background: #f0f2ec;
  color: #8a9382;
}
.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.pending {
  background: #f1f2ed;
  color: #8b927c;
}
.status-badge.in_progress {
  background: #edf2f6;
  color: #668aa2;
}
.status-badge.completed {
  background: #eaf1e4;
  color: #6b8a50;
}
.status-badge.blocked {
  background: #faf0df;
  color: #b58b47;
}
.card-title {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.25px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.card-title:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.card-description {
  font-size: 11px;
  line-height: 1.7;
  color: #98a08e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 37px;
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 9px;
  color: #9aa38c;
  margin-bottom: 15px;
}
.due {
  display: flex;
  align-items: center;
  gap: 5px;
}
.due svg {
  width: 12px;
  height: 12px;
}
.due.overdue {
  color: #b17a51;
}
.priority {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
}
.priority.high {
  color: #bb8a6c;
}
.priority:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b6c4a4;
}
.priority.high:before {
  background: #cfa888;
}
.card-bottom {
  border-top: 1px solid #edf0e7;
  padding-top: 13px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.assignee {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #8b967d;
  font-size: 9px;
}
.assignee .avatar {
  width: 24px;
  height: 24px;
  font-size: 8px;
}
.open-task {
  border: 0;
  background: none;
  color: #7b8d6d;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  padding: 4px 0;
  white-space: nowrap;
}
.open-task svg {
  width: 14px;
  height: 14px;
}
.empty-state {
  grid-column: 1/-1;
  background: #fff;
  border: 1px dashed #d3dccc;
  border-radius: 14px;
  padding: 55px 30px;
  text-align: center;
  color: #90a07e;
  line-height: 1.7;
}
.empty-state h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 9px;
}
.empty-state p {
  font-size: 12px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #a4ad97;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.banner {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.banner.warning {
  background: #faf0de;
  border: 1px solid #eadac0;
  color: #9b7845;
}
.banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.banner p {
  font-size: 11px;
}
.activity-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.activity-row {
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.activity-row:last-child {
  border: 0;
}
.activity-content {
  flex: 1;
  min-width: 0;
}
.activity-content h3 {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
}
.activity-content h3 strong {
  font-weight: 650;
}
.activity-content p {
  font-size: 11px;
  color: #8a9781;
  line-height: 1.7;
  margin-top: 5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.activity-meta {
  font-size: 10px;
  color: #9ca58f;
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.activity-time {
  font-size: 10px;
  color: #9aa68a;
  white-space: nowrap;
  margin-top: 6px;
}
.activity-details {
  margin-top: 8px;
  font-size: 10px;
  color: #7f8c74;
}
.activity-details summary {
  cursor: pointer;
}
.change-list {
  line-height: 1.8;
  padding: 8px 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.team-card.inactive {
  opacity: 0.65;
}
.team-card .avatar {
  width: 48px;
  height: 48px;
  font-size: 16px;
  margin-bottom: 16px;
}
.team-card h3 {
  font-size: 16px;
  margin-bottom: 7px;
}
.team-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.team-card footer {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.role-tag {
  background: #edf1e8;
  color: #7d8c6f;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.modal {
  border: 1px solid var(--line);
  border-radius: 17px;
  width: min(640px, calc(100% - 30px));
  padding: 28px;
  color: var(--ink);
  box-shadow: 0 25px 90px #13291b30;
  max-height: 90vh;
  overflow: auto;
}
.modal::backdrop {
  background: #152a236b;
  backdrop-filter: blur(3px);
}
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 18px;
}
.modal-heading h2 {
  font-weight: 550;
  font-size: 23px;
  letter-spacing: -0.7px;
}
.modal-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
.close-button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f3f5ef;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #8a9980;
}
.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.modal-actions.spread {
  justify-content: space-between;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  font-size: 11px;
  color: var(--muted);
}
.detail-description {
  font-size: 13px;
  line-height: 1.8;
  color: #7d8e70;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-properties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  background: var(--canvas);
  padding: 17px;
  border-radius: 10px;
  margin: 20px 0;
}
.detail-properties dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-properties dd {
  font-size: 12px;
  margin: 0;
}
.status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.detail-history {
  margin-top: 24px;
}
.detail-history h3 {
  font-size: 13px;
  margin-bottom: 13px;
}
.mini-event {
  font-size: 11px;
  border-left: 2px solid var(--line);
  padding: 0 0 15px 13px;
  line-height: 1.7;
}
.mini-event p {
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mini-event time {
  font-size: 9px;
  color: #9ca88f;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: var(--green);
  color: #fff;
  border-radius: 9px;
  padding: 13px 19px;
  font-size: 12px;
  line-height: 1.6;
  z-index: 1000;
  box-shadow: 0 8px 30px #152c2533;
}
.toast.error {
  background: #895446;
}
/* Fotos (Cloudinary) */
.detail-photos {
  margin: 0 0 20px;
}
.detail-photos h3 {
  font-size: 13px;
  margin-bottom: 11px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.photo-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--canvas);
  aspect-ratio: 4 / 3;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-grid a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.photo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.photo-actions .field-help {
  margin: 0;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
/* SMS-log (Twilio) */
.messages-panel {
  margin-top: 32px;
}
.message-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  font-size: 12px;
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
}
.message-row:last-child {
  border-bottom: 0;
}
.message-row p {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.message-row .message-error {
  color: var(--danger);
}
.message-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}
.message-side time {
  font-size: 10px;
  color: var(--muted);
}
.message-status {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--sage);
  color: var(--green);
}
.message-status.pending,
.message-status.sending,
.message-status.logged {
  background: #f4ecdd;
  color: var(--amber);
}
.message-status.failed,
.message-status.undelivered {
  background: #fbefeb;
  color: var(--danger);
}
@media (min-width: 1600px) {
  .task-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .task-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-content {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .stats {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 17px 20px;
  }
  .stat-label {
    font-size: 10px;
  }
}
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .sidebar {
    padding: 27px 13px 18px;
  }
  .brand {
    font-size: 24px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 26px;
  }
  .property-label {
    gap: 7px;
  }
  .property-icon {
    padding: 8px 9px;
  }
  .nav-button {
    font-size: 11px;
    gap: 8px;
  }
  .nav-count {
    display: none;
  }
  .page-content {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .topbar-right > span:first-child {
    display: none;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .search-field {
    max-width: none;
  }
  .checkbox-label {
    margin-left: 0;
  }
  .card-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .task-card {
    padding: 16px;
  }
  .tabs {
    gap: 19px;
  }
  .login-story {
    padding: 40px 10%;
  }
  .login-panel {
    padding: 40px 9%;
  }
  .login-form-wrap h2 {
    font-size: 29px;
  }
  .project-tag {
    margin-left: 0;
  }
  .banner {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: auto;
    padding: 30px;
  }
  .story-copy {
    padding: 30px 0 5px;
  }
  .story-copy h1 {
    font-size: 44px;
    margin: 12px 0;
  }
  .story-copy h1 br:first-child {
    display: none;
  }
  .story-copy h1 br:first-child:after {
    content: ' ';
  }
  .story-copy > p:last-child {
    max-width: 100%;
    font-size: 12px;
  }
  .story-copy .eyebrow {
    display: none;
  }
  .story-bottom {
    display: none;
  }
  .login-panel {
    padding: 35px 28px;
  }
  .login-form-wrap h2 {
    font-size: 28px;
  }
  .login-disclaimer {
    padding-top: 25px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px 20px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  .sidebar .brand {
    margin-left: 0;
  }
  .brand-caption {
    font-size: 7px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
  .sidebar .property-label,
  .nav-label,
  .sidebar-note {
    display: none;
  }
  .sidebar nav {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  .nav-button {
    justify-content: center;
    padding: 10px 12px;
    border-radius: 7px 7px 0 0;
    margin-bottom: 0;
  }
  .sidebar-footer {
    border: 0;
    padding: 0;
    grid-column: 2;
    grid-row: 1;
  }
  .profile {
    display: none;
  }
  .account-actions {
    margin: 5px 0;
    gap: 14px;
  }
  .topbar {
    height: 46px;
    padding: 0 20px;
  }
  .page-content {
    padding: 25px 20px 18px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading .muted {
    font-size: 11px;
    max-width: 240px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 10px;
    margin-top: 21px;
  }
  .page-heading > .button svg {
    width: 15px;
  }
  .stats {
    gap: 10px;
    margin-bottom: 26px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-number {
    font-size: 29px;
  }
  .stat-note {
    font-size: 9px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .task-card {
    min-height: 230px;
    padding: 20px;
  }
  .card-top {
    margin-bottom: 17px;
  }
  .card-title {
    font-size: 16px;
  }
  .card-description {
    font-size: 12px;
  }
  .card-meta,
  .priority {
    font-size: 10px;
  }
  .assignee {
    font-size: 10px;
  }
  .card-bottom {
    padding-top: 15px;
  }
  .open-task {
    font-size: 11px;
  }
  .tabs {
    gap: 21px;
  }
  .search-field {
    flex-basis: 100%;
  }
  .filter-row select {
    max-width: 150px;
  }
  .checkbox-label {
    margin-left: auto;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .page-footer {
    flex-direction: column;
    line-height: 1.6;
  }
  .activity-row {
    padding: 18px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .activity-time {
    margin-left: 44px;
    margin-top: 0;
  }
  .activity-content {
    flex-basis: calc(100% - 48px);
  }
  .activity-row .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .modal {
    padding: 21px;
    max-height: 92vh;
  }
  .modal-heading h2 {
    font-size: 21px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-two {
    grid-column: auto;
  }
  .modal-actions {
    justify-content: stretch;
  }
  .modal-actions .button {
    flex: 1;
  }
  .status-actions .button {
    flex: 1;
  }
  .detail-properties {
    gap: 15px;
  }
  .banner-actions {
    flex-wrap: wrap;
  }
  .banner {
    font-size: 11px;
  }
  .toast {
    bottom: 14px;
    width: max-content;
  }
  .topbar .breadcrumb {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
