/* /guestbook and /guestbook/all: (misc)/guestbook/{client,all/client}.tsx
   and components/interactive/doodle-pad.tsx. Translated with twcss.
   The original's `prose prose-sm dark:prose-invert` compile to nothing
   (no typography plugin), so message bodies are preflight-plain. */

/* The original's pb-16 loses to .wide-shell's padding-block-end: 0
   (globals.css comes later in its cascade), so no bottom padding. */
.gb {
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

/* ---- header: kicker, title, lede, MetricStrip ---- */
.gb-kicker {
  font-size: .875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}
.gb-title {
  margin-top: .5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 500;
  letter-spacing: -.025em;
}
@media (min-width: 640px) {
  .gb-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}
.gb-lede {
  margin-top: .75rem;
  max-width: 42rem;
  font-size: .875rem;
  line-height: 1.5rem;
  color: hsl(var(--muted-foreground));
}
.gb-metrics {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: .75rem;
  border-width: 1px;
  border-color: hsl(var(--border));
  background-color: hsl(var(--border));
}
@media (min-width: 1024px) {
  .gb-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.gb-metric {
  background-color: hsl(var(--background));
  padding: 1.25rem;
}
.gb-metric-value {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 500;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.gb-metric-label {
  margin-top: .5rem;
  font-size: .75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

/* ---- Sign / Archive tabs ---- */
.gb-nav {
  margin-top: 3rem;
  display: flex;
  border-bottom-width: 1px;
  border-color: hsl(var(--border));
}
.gb-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  font-size: .875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}
.gb-nav-link:hover,
.gb-nav-on {
  color: hsl(var(--foreground));
}
.gb-nav-icon {
  width: 1rem;
  height: 1rem;
}
.gb-nav-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: hsl(var(--foreground));
}

/* ---- sign form ---- */
.gb-sign {
  display: grid;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 1024px) {
  .gb-sign {
    grid-template-columns: .55fr 1.45fr;
    gap: 4rem;
  }
}
.gb-eyebrow,
.gb-time,
.gb-forge {
  font-size: .75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}
.gb-h2 {
  margin-top: .5rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 500;
  letter-spacing: -.025em;
}
.gb-form,
.gb-main {
  min-width: 0;
}
.gb-fields {
  display: grid;
  column-gap: 2rem;
  row-gap: 1.5rem;
}
@media (min-width: 640px) {
  .gb-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.gb-field,
.gb-message {
  display: block;
}
.gb-message,
.gb-mt8 {
  margin-top: 2rem;
}
.gb-input,
.gb-textarea {
  margin-top: .5rem;
  width: 100%;
  border-bottom-width: 1px;
  border-color: hsl(var(--border));
  background-color: #0000;
  padding-left: 0;
  padding-right: 0;
  font-size: .875rem;
  line-height: 1.25rem;
  outline: 2px solid #0000;
  outline-offset: 2px;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-duration: .15s;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}
.gb-input {
  height: 2.5rem;
  color: hsl(var(--foreground));
}
.gb-textarea {
  min-height: 8rem;
  resize: vertical;
  padding-top: .75rem;
  padding-bottom: .75rem;
  line-height: 1.5rem;
}
.gb-input::placeholder,
.gb-textarea::placeholder,
.gba-search-input::placeholder {
  color: hsl(var(--muted-foreground) / .55);
}
.gb-input:focus,
.gb-textarea:focus {
  border-color: hsl(var(--foreground));
}
.gb-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.gb-submit {
  border-radius: var(--radius);
  background-color: hsl(var(--foreground));
  padding: .625rem 1.25rem;
  font-size: .875rem;
  line-height: 1.25rem;
  color: hsl(var(--background));
  transition-property: opacity;
  transition-duration: .15s;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}
.gb-submit:hover {
  opacity: .8;
}
.gb-submit:disabled {
  opacity: .5;
}
.gb-error {
  font-size: .75rem;
  line-height: 1rem;
  color: rgb(239 68 68);
}
.gb-ok {
  font-size: .75rem;
  line-height: 1rem;
  color: rgb(5 150 105);
}
.dark .gb-ok {
  color: rgb(52 211 153);
}

/* ---- DoodlePad ---- */
.gb-pad-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .375rem;
  font-size: .75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
  -webkit-user-select: none;
  user-select: none;
}
.gb-pad-on {
  color: hsl(var(--foreground));
  font-weight: 500;
}
.gb-pad-btn:hover {
  color: hsl(var(--foreground));
}
.gb-pad-svg {
  border-width: 1px;
  border-color: hsl(var(--input));
  cursor: crosshair;
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  touch-action: none;
  width: 100%;
}
.gb-pad-note {
  margin-top: .25rem;
  font-size: .75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}
.gb-preview {
  width: 100%;
}

/* ---- Latest notes (EntryRow) ---- */
.gb-latest {
  border-top-width: 1px;
  border-color: hsl(var(--border));
  padding-top: 3rem;
}
.gb-latest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.gb-archive-link {
  font-size: .875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
  text-decoration-line: underline;
  text-underline-offset: 4px;
}
.gb-archive-link:hover {
  color: hsl(var(--foreground));
}
.gb-list {
  margin-top: 1.25rem;
}
.gb-empty {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  font-size: .875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}
.gb-entry {
  display: grid;
  gap: 1.75rem;
  border-bottom-width: 1px;
  border-color: hsl(var(--border));
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.gb-entry:last-child,
.gba-row:last-child {
  border-bottom-width: 0;
}
@media (min-width: 1024px) {
  .gb-entry-d {
    grid-template-columns: minmax(0, 1fr) 15rem;
  }
}
.gb-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.gb-entry-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
}
.gb-name {
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
a.gb-name:hover {
  text-decoration-line: underline;
}
.gb-body {
  margin-top: 1.25rem;
  max-width: none;
  overflow-wrap: break-word;
}
.gb-body > :first-child,
.gba-body > :first-child {
  margin-top: 0;
}
.gb-body > :last-child,
.gba-body > :last-child {
  margin-bottom: 0;
}
.gb-rec {
  margin-top: 1.25rem;
  font-size: .75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}
.gb-fg {
  color: hsl(var(--foreground));
}
.gb-del {
  margin-top: 1.25rem;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-duration: .15s;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}
.gb-del:hover,
.gba-del:hover,
.gbm-del:hover {
  color: rgb(239 68 68);
}
.gb-doodle {
  display: flex;
  min-height: 8rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .gb-doodle {
    border-left-width: 1px;
    border-color: hsl(var(--border));
    padding-left: 1.75rem;
  }
}

/* ---- archive (ArchiveRow) ---- */
.gba-section {
  padding-top: 2.5rem;
}
.gba-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.gba-search {
  display: flex;
  width: 100%;
  max-width: 20rem;
  align-items: center;
  gap: .75rem;
  border-bottom-width: 1px;
  border-color: hsl(var(--border));
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.gba-search:focus-within {
  border-color: hsl(var(--foreground));
}
.gba-search-icon {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
}
.gba-search-input {
  min-width: 0;
  flex: 1;
  background-color: #0000;
  font-size: .875rem;
  line-height: 1.25rem;
  outline: 2px solid #0000;
  outline-offset: 2px;
}
.gba-count {
  font-size: .75rem;
  line-height: 1rem;
  font-variant-numeric: tabular-nums;
  color: hsl(var(--muted-foreground));
}
.gba-list {
  margin-top: 2rem;
}
.gba-empty {
  padding-top: 3rem;
  padding-bottom: 3rem;
  font-size: .875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}
.gba-row {
  display: grid;
  cursor: pointer;
  gap: 1rem;
  border-bottom-width: 1px;
  border-color: hsl(var(--border));
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .gba-row {
    grid-template-columns: 9rem minmax(0, 1fr) 7rem;
    align-items: flex-start;
  }
}
.gba-forge {
  margin-top: .25rem;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}
.gba-body {
  max-width: none;
  overflow-wrap: break-word;
  font-size: .875rem;
  line-height: 1.5rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}
.gba-rec {
  margin-top: .75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: .75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}
.gba-doodle {
  margin-top: 1rem;
  max-width: 13rem;
  color: hsl(var(--foreground) / .75);
}
.gba-side {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .gba-side {
    display: block;
    text-align: right;
  }
}
.gba-del {
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 768px) {
  .gba-del {
    margin-top: 1rem;
  }
}

/* ---- archive entry modal ---- */
.gbm {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
@media (min-width: 640px) {
  .gbm {
    padding: 2rem;
  }
}
@media print {
  .gbm {
    display: none !important;
  }
}
.gbm-backdrop {
  position: absolute;
  inset: 0;
  background-color: hsl(var(--background) / .85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.gbm-card {
  position: relative;
  max-height: 85vh;
  width: 100%;
  max-width: 48rem;
  overflow-y: auto;
  border-radius: .75rem;
  border-width: 1px;
  border-color: hsl(var(--border));
  background-color: hsl(var(--background));
  box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
}
.gbm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  border-bottom-width: 1px;
  border-color: hsl(var(--border));
  padding: 1.25rem 1.5rem;
}
.gbm-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
}
.gbm-name {
  font-weight: 500;
}
a.gbm-name:hover {
  text-decoration-line: underline;
}
.gbm-time {
  margin-top: .25rem;
  display: block;
  font-size: .75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}
.gbm-close {
  color: hsl(var(--muted-foreground));
}
.gbm-close:hover {
  color: hsl(var(--foreground));
}
.gbm-close svg {
  width: 1rem;
  height: 1rem;
}
.gbm-grid {
  display: grid;
  gap: 2rem;
  padding: 1.5rem;
}
@media (min-width: 768px) {
  .gbm-grid-d {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }
}
.gbm-body {
  max-width: none;
  overflow-wrap: break-word;
}
.gbm-body > :first-child {
  margin-top: 0;
}
.gbm-body > :last-child {
  margin-bottom: 0;
}
.gbm-rec {
  margin-top: 1.5rem;
  font-size: .875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}
.gbm-del {
  margin-top: 2rem;
  font-size: .75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}
.gbm-doodle {
  display: flex;
  min-height: 10rem;
  align-items: center;
  border-left-width: 1px;
  border-color: hsl(var(--border));
  padding-left: 2rem;
}

