/* Ms.Jemi.com — Desk: collaborative notes / photos / build wishes
   Mobile-first, big tap targets, Lance cream · Jemi rose */

.desk-page {
  --desk-lance: #F3E9DC;
  --desk-lance-ink: #2C2A28;
  --desk-lance-border: rgba(196, 120, 90, 0.28);
  --desk-jemi: #F3DDD6;
  --desk-jemi-ink: #2C2A28;
  --desk-jemi-border: rgba(196, 120, 90, 0.38);
  --desk-open: #A8B5A0;
  --desk-done: rgba(44, 42, 40, 0.45);
}

/* ——— Make it so instruction ——— */

.desk-makeitso {
  margin: 1.1rem 0 0.35rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(196, 120, 90, 0.35);
  background:
    linear-gradient(135deg, rgba(243, 233, 220, 0.95), rgba(243, 221, 214, 0.88));
  box-shadow: var(--shadow-soft);
}

.desk-makeitso-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.desk-makeitso-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(44, 42, 40, 0.88);
}

.desk-makeitso-phrase {
  display: inline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08em;
  color: #8B3A2A;
  white-space: nowrap;
}

/* ——— Identity tabs ——— */

.desk-who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 1.25rem 0 1rem;
  position: sticky;
  top: 0.35rem;
  z-index: 20;
  padding: 0.25rem;
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(196, 120, 90, 0.14);
  box-shadow: var(--shadow-soft);
}

.desk-who-btn {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 999px;
  min-height: 3.25rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.desk-who-lance {
  background: rgba(243, 233, 220, 0.65);
  color: var(--desk-lance-ink);
}

.desk-who-jemi {
  background: rgba(243, 221, 214, 0.65);
  color: var(--desk-jemi-ink);
}

.desk-who-btn[aria-selected="true"].desk-who-lance {
  background: var(--desk-lance);
  border-color: var(--desk-lance-border);
  box-shadow: 0 4px 14px rgba(44, 42, 40, 0.1);
}

.desk-who-btn[aria-selected="true"].desk-who-jemi {
  background: var(--desk-jemi);
  border-color: var(--desk-jemi-border);
  box-shadow: 0 4px 14px rgba(196, 120, 90, 0.18);
}

.desk-who-btn[aria-selected="false"] {
  opacity: 0.72;
}

.desk-who-btn:active {
  transform: scale(0.985);
}

.desk-who-btn:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

body.desk-person-lance .desk-panel,
body.desk-person-lance .desk-section {
  --desk-accent: var(--desk-lance);
  --desk-accent-border: var(--desk-lance-border);
}

body.desk-person-jemi .desk-panel,
body.desk-person-jemi .desk-section {
  --desk-accent: var(--desk-jemi);
  --desk-accent-border: var(--desk-jemi-border);
}

/* ——— Together strip ——— */

.desk-together {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem 0.95rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 120, 90, 0.12);
  box-shadow: var(--shadow-soft);
}

.desk-together[hidden] {
  display: none !important;
}

.desk-together-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--terracotta);
}

.desk-together-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.desk-together-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(196, 120, 90, 0.14);
  font-size: 0.95rem;
  line-height: 1.4;
}

.desk-together-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.desk-chip {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(196, 120, 90, 0.22);
  border-radius: 999px;
  min-height: 1.85rem;
  padding: 0.15rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  background: var(--paper);
  color: var(--charcoal);
}

.desk-chip-jemi {
  background: var(--desk-jemi);
}

.desk-chip-lance {
  background: var(--desk-lance);
}

.desk-together-text {
  flex: 1;
  min-width: 0;
  color: rgba(44, 42, 40, 0.82);
}

.desk-together-kind {
  color: rgba(44, 42, 40, 0.5);
  font-size: 0.82rem;
}

/* ——— Sections ——— */

.desk-section {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 120, 90, 0.12);
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--desk-accent-border, rgba(196, 120, 90, 0.28));
}

.desk-section-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.desk-section-icon {
  font-size: 1.1rem;
  opacity: 0.7;
}

.desk-section-lede {
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--charcoal);
}

.desk-section-hint {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: rgba(44, 42, 40, 0.62);
  line-height: 1.5;
}

/* ——— Forms ——— */

.desk-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.desk-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(44, 42, 40, 0.78);
  margin-top: 0.25rem;
}

.desk-optional {
  font-weight: 400;
  color: rgba(44, 42, 40, 0.45);
}

.desk-input,
.desk-textarea,
.desk-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid rgba(196, 120, 90, 0.22);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  min-height: var(--tap);
  -webkit-appearance: none;
  appearance: none;
}

.desk-textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.desk-select {
  background-image: linear-gradient(45deg, transparent 50%, var(--terracotta) 50%),
    linear-gradient(135deg, var(--terracotta) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.75rem) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.desk-input:focus,
.desk-textarea:focus,
.desk-select:focus {
  outline: 2px solid rgba(196, 120, 90, 0.45);
  outline-offset: 1px;
  border-color: var(--terracotta);
  background: var(--white);
}

.desk-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.desk-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 5.5rem;
  padding: 1rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius);
  border: 2px dashed rgba(196, 120, 90, 0.35);
  background: linear-gradient(180deg, rgba(247, 241, 232, 0.9), rgba(243, 233, 220, 0.55));
  cursor: pointer;
  touch-action: manipulation;
  text-align: center;
}

.desk-file-label:hover,
.desk-file-label:focus-within {
  border-color: var(--terracotta);
  background: var(--white);
}

.desk-file-big {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--charcoal);
}

.desk-file-sub {
  font-size: 0.88rem;
  color: rgba(44, 42, 40, 0.55);
}

/* ——— Buttons ——— */

.desk-btn {
  appearance: none;
  border: 1px solid rgba(196, 120, 90, 0.28);
  border-radius: 999px;
  min-height: var(--tap);
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  background: var(--white);
  color: var(--charcoal);
  align-self: stretch;
  text-align: center;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.desk-btn:active {
  transform: scale(0.985);
}

.desk-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.desk-btn-primary {
  margin-top: 0.35rem;
  background: var(--terracotta);
  border-color: transparent;
  color: #fffdf9;
}

.desk-btn-primary:hover:not(:disabled) {
  background: #b3684c;
}

.desk-btn-danger {
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  background: transparent;
  border-color: rgba(44, 42, 40, 0.18);
  color: rgba(44, 42, 40, 0.7);
  align-self: auto;
}

.desk-btn-danger:hover {
  border-color: rgba(180, 70, 50, 0.45);
  color: #8a3528;
  background: rgba(232, 196, 184, 0.25);
}

.desk-btn-ghost {
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  background: var(--cream);
  align-self: auto;
}

.desk-btn-tool {
  flex: 1 1 auto;
  min-width: 9rem;
  background: var(--paper);
}

.desk-btn-accent {
  background: rgba(168, 181, 160, 0.45);
  border-color: rgba(168, 181, 160, 0.65);
}

.desk-btn-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.desk-status {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(44, 42, 40, 0.65);
}

.desk-status.is-error {
  color: #8a3528;
}

.desk-status.is-ok {
  color: #3d5a3a;
}

/* ——— Lists ——— */

.desk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.desk-empty {
  margin: 0;
  padding: 0.85rem 0.25rem;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: rgba(44, 42, 40, 0.45);
}

.desk-card {
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid rgba(196, 120, 90, 0.14);
  padding: 0.9rem 0.95rem;
}

.desk-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: rgba(44, 42, 40, 0.55);
}

.desk-card-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.desk-card-body {
  margin: 0 0 0.65rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 1rem;
  line-height: 1.55;
}

.desk-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.desk-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  background: rgba(168, 181, 160, 0.35);
  color: rgba(44, 42, 40, 0.75);
}

.desk-badge-sample {
  background: rgba(232, 196, 184, 0.55);
}

.desk-badge-soon {
  background: rgba(196, 120, 90, 0.22);
}

.desk-badge-please-soon {
  background: rgba(196, 120, 90, 0.4);
}

.desk-badge-someday {
  background: rgba(168, 181, 160, 0.28);
}

.desk-badge-done {
  background: rgba(44, 42, 40, 0.1);
  color: rgba(44, 42, 40, 0.5);
}

.desk-card.is-done {
  opacity: 0.72;
}

.desk-card.is-done .desk-card-title,
.desk-card.is-done .desk-card-body {
  text-decoration: line-through;
  text-decoration-color: rgba(44, 42, 40, 0.35);
}

/* ——— Photo grid ——— */

.desk-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .desk-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.desk-photo-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid rgba(196, 120, 90, 0.14);
  overflow: hidden;
}

.desk-photo-thumb {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: var(--paper);
}

.desk-photo-info {
  padding: 0.55rem 0.65rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.desk-photo-caption {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  word-break: break-word;
}

.desk-photo-meta {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(44, 42, 40, 0.5);
}

.desk-photo-info .desk-btn-danger {
  margin-top: auto;
  align-self: stretch;
}

/* ——— Shared tools ——— */

.desk-tools {
  margin: 0.5rem 0 1rem;
  padding: 1.15rem 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.95), rgba(243, 233, 220, 0.55));
  border-radius: var(--radius);
  border: 1px solid rgba(168, 181, 160, 0.35);
  box-shadow: var(--shadow-soft);
}

.desk-tools-title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.desk-tools-hint {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  color: rgba(44, 42, 40, 0.62);
}

.desk-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .desk-btn {
    align-self: flex-start;
  }

  .desk-tools-row {
    flex-wrap: nowrap;
  }
}
