/* ==========================================================================
   BaseCall — Stylesheet
   Google News-inspired layout with CSS Grid. No JavaScript.
   ========================================================================== */

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}

a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 2px solid #1a1a1a;
  padding: 1.25rem 0 0;
  margin-bottom: 2rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-name {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.site-name:hover {
  text-decoration: none;
}

.site-logo {
  display: block;
  width: min(100%, 24rem);
  max-width: 24rem;
  height: auto;
}

.tagline {
  font-size: 14px;
  color: #666;
  margin: 0;
  font-style: italic;
}

.header-subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.subscribe-form-header {
  display: flex;
  gap: 0.35rem;
}

.subscribe-form-header input[type="email"] {
  padding: 0.35rem 0.6rem;
  font-size: 13px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: inherit;
  width: 170px;
}

.subscribe-form-header button {
  padding: 0.35rem 0.75rem;
  font-size: 13px;
  font-weight: 600;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.subscribe-form-header button:hover {
  background: #333;
}

.subscribe-hint {
  margin: 0.2rem 0 0;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.rss-link {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rss-link:hover {
  color: #1a73e8;
  text-decoration: none;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
  padding: 1.5rem 0 1rem;
  font-size: 14px;
  color: #666;
}

.footer-subscribe {
  margin-bottom: 1rem;
}

.footer-subscribe-label {
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 0.4rem;
  font-size: 15px;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 0.45rem 0.65rem;
  font-size: 14px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: inherit;
}

.subscribe-form button {
  padding: 0.45rem 1rem;
  font-size: 14px;
  font-weight: 600;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.subscribe-form button:hover {
  background: #333;
}

.subscribe-status {
  display: block;
  margin-top: 0.35rem;
  font-size: 13px;
}

/* ---------- Daily Digest ---------- */

.feed-notice {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid #1a73e8;
  background: #f6f9ff;
}

.feed-notice p {
  margin: 0;
  font-size: 14px;
  color: #35507a;
}

/* ---------- Search + Archive ---------- */

.page-tools {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-heading h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.page-heading p {
  margin: 0.4rem 0 0;
  color: #666;
}

.homepage-search {
  padding: 0;
  border: none;
  background: none;
  min-width: 350px;
}

.homepage-search-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-align: right;
}

.homepage-search-input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid #c9ced6;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}

.homepage-search-status {
  min-height: 1.1rem;
  margin-top: 0.55rem;
  font-size: 13px;
  color: #666;
}

.homepage-search-results {
  margin-top: 0.85rem;
  border-top: 1px solid #e3e7ec;
  padding-top: 0.85rem;
}

.search-result-group + .search-result-group {
  margin-top: 1rem;
}

.search-result-group h2 {
  margin: 0 0 0.55rem;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-result-list {
  display: grid;
  gap: 0.85rem;
}

.search-result-card {
  padding: 0.9rem 1rem;
  border: 1px solid #e3e7ec;
  border-radius: 10px;
  background: #fff;
}

.search-result-card h3 {
  margin: 0 0 0.35rem;
  font-size: 18px;
  line-height: 1.3;
}

.search-result-card p {
  margin: 0;
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.45rem;
  font-size: 13px;
  color: #666;
}

.pinned-group {
  border: 2px solid #2f58d8;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #f8faff;
}

.pinned-group .column-story {
  border-bottom: 1px solid #e0e8f8;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.pinned-group .column-story:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.story-editor-btns {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.pin-btn, .bury-btn {
  padding: 0.15rem 0.5rem;
  font-size: 11px;
  border: 1px solid #dadce0;
  border-radius: 3px;
  background: #fff;
  color: #666;
  cursor: pointer;
}

.pin-btn:hover { background: #f0f0f0; }
.bury-btn:hover { background: #f0f0f0; }

.research-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.25rem 0;
}

.research-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2f58d8;
  background: #eef2ff;
  border-radius: 3px;
}

.archive-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #efefef;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-result-empty {
  margin: 0;
  color: #666;
}

.daily-digest {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.daily-digest h2 {
  font-size: 18px;
  margin-bottom: 0.75rem;
}

.brief-list {
  list-style: none;
  padding: 0;
}

.brief-item {
  padding: 0.4rem 0;
  font-size: 15px;
  line-height: 1.5;
}

.brief-item .entity {
  font-size: 13px;
  color: #666;
  margin-left: 0.5rem;
}

.brief-summary {
  color: #555;
}

/* ---------- Homepage Columns ---------- */

.news-board {
  margin-bottom: 2.5rem;
}

.news-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.news-column {
  min-width: 0;
}

.column-header {
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #1a1a1a;
}

.column-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.column-list {
  display: flex;
  flex-direction: column;
}

.column-story {
  padding: 0 0 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid #ececec;
}

.column-story:last-child {
  margin-bottom: 0;
}

.column-story h3 {
  margin: 0 0 0.65rem;
  font-size: 19px;
  line-height: 1.28;
}

.column-story h3 a {
  color: #1a1a1a;
}

.column-story h3 a:hover {
  color: #1a73e8;
}

.story-deck {
  margin: 0 0 0.85rem;
  font-size: 15px;
  line-height: 1.55;
  color: #4b4b4b;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 14px;
  color: #666;
}

.story-meta .entity {
  color: #2e2e2e;
  font-weight: 600;
}

.story-source {
  font-size: 14px;
  color: #666;
}

.column-empty {
  margin: 0;
  color: #777;
  font-size: 14px;
}

.deck-truncated {
  font-size: 14px;
  color: #555;
  margin: 0 0 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
}

.card-meta .entity {
  font-weight: 500;
  color: #444;
}

.card-meta time {
  color: #888;
}

.source-label {
  color: #666;
}

.source-pill {
  font-size: 12px;
  background: #f0f0f0;
  color: #666;
  padding: 1px 7px;
  border-radius: 10px;
}

/* ---------- Vertical Tags ---------- */

.vertical-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
}

.vertical-tag.sequencing_tech  { background: #1a73e8; }
.vertical-tag.business_ma      { background: #e8710a; }
.vertical-tag.molecular_dx     { background: #0d904f; }
.vertical-tag.clinical_sequencing { background: #9334e6; }
.vertical-tag.regulatory       { background: #d93025; }
.vertical-tag.research         { background: #185abc; }
.vertical-tag.informatics      { background: #5f6368; }
.vertical-tag.people           { background: #f9ab00; color: #1a1a1a; }

.qa-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3cd;
  color: #8a5a00;
  border: 1px solid #f2c66d;
}

.qa-badge-compact {
  font-size: 10px;
  padding: 1px 7px;
}

.story-flags {
  margin-bottom: 0.45rem;
}

/* ---------- Article Feed (fallback for paginated pages) ---------- */

.article-feed .feed-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 1.5rem 0;
}

.article-feed .feed-item h2 {
  font-size: 20px;
  margin: 0.25rem 0 0;
}

.article-feed .deck {
  color: #444;
  margin: 0.5rem 0;
}

.feed-meta time,
.article-feed time {
  font-size: 14px;
  color: #666;
}

.feed-meta .entity,
.article-feed .entity {
  font-size: 14px;
  color: #666;
  margin-left: 1rem;
}

.feed-meta .source-count {
  font-size: 13px;
  color: #999;
  margin-left: 1rem;
}

/* ---------- Full Article ---------- */

.full-article {
  max-width: 720px;
  margin: 0 auto;
}

.full-article .article-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.full-article h1 {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.full-article .deck {
  font-size: 18px;
  color: #444;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.full-article .article-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1rem;
}

.full-article .article-body {
  font-size: 17px;
  line-height: 1.7;
}

.full-article .article-body p {
  margin-bottom: 1.2rem;
}

.full-article .qa-note {
  margin-bottom: 1.5rem;
  padding: 0.95rem 1rem;
  border-left: 4px solid #d97706;
  background: #fff8e8;
  color: #5f4300;
}

.full-article .qa-note-label {
  margin: 0 0 0.35rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.full-article .qa-note p:last-child {
  margin: 0;
}

/* ---------- Related Articles ---------- */

.related-articles {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.related-header {
  margin-bottom: 1rem;
}

.related-header h2 {
  margin: 0;
  font-size: 18px;
}

.related-header p {
  margin: 0.35rem 0 0;
  color: #666;
  font-size: 15px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.related-card {
  padding: 1rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafafa;
}

.related-card h3 {
  margin: 0.45rem 0 0.55rem;
  font-size: 17px;
  line-height: 1.35;
}

.related-card h3 a {
  color: #1a1a1a;
}

.related-card h3 a:hover {
  color: #1a73e8;
}

.related-reason {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Sources ---------- */

.article-sources {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.article-sources h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.75rem;
}

.article-sources ul {
  list-style: none;
  padding: 0;
}

.article-sources li {
  padding: 0.35rem 0;
  font-size: 15px;
  line-height: 1.5;
}

.article-sources .source-name {
  color: #999;
  font-size: 13px;
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
}

/* ---------- Responsive: Tablet ---------- */

@media (max-width: 1024px) {
  .news-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive: Mobile ---------- */

@media (max-width: 640px) {
  body {
    padding: 0 1rem;
    font-size: 15px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-logo {
    max-width: 18rem;
  }

  .news-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .column-story h3 {
    font-size: 18px;
  }

  .full-article h1 {
    font-size: 24px;
  }

  .full-article .deck {
    font-size: 16px;
  }

  .full-article .article-body {
    font-size: 16px;
  }
}

/* ---------- Inline Editor ---------- */

.article-body[contenteditable="true"] {
  outline: 2px solid #1a73e8;
  outline-offset: 4px;
  border-radius: 4px;
  min-height: 200px;
}

.article-body.editing {
  background: #fafcff;
}

h1[contenteditable="true"],
.deck[contenteditable="true"] {
  outline: 1px dashed #1a73e8;
  outline-offset: 2px;
  border-radius: 2px;
}

.editor-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.editor-btn {
  padding: 0.5rem 1.25rem;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
}

.editor-btn:hover {
  background: #f8f9fa;
}

.editor-btn-primary {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

.editor-btn-primary:hover {
  background: #1557b0;
}

.editor-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.editor-btn-publish {
  background: #0d7c3d;
  color: #fff;
  border-color: #0d7c3d;
}

.editor-btn-publish:hover {
  background: #0a6331;
}

.editor-btn-danger {
  color: #c62828;
  border-color: #c62828;
}

.editor-btn-danger:hover {
  background: #fce8e8;
}

.editor-status {
  font-size: 13px;
  color: #666;
}

/* ---------- Ticker Bar ---------- */

.ticker-bar {
  overflow: hidden;
  background: #1a1a1a;
  color: #e0e0e0;
  font-size: 13px;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  animation: ticker-scroll 180s linear infinite;
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 2rem;
  border-right: 1px solid #333;
}

.ticker-item a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.ticker-item a:hover {
  text-decoration: underline;
}

.ticker-cite {
  color: #999;
  font-size: 12px;
  font-style: italic;
}

.ticker-entity {
  color: #7b1fa2;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Sandbox Banner ---------- */

.sandbox-banner {
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  background: #fff3cd;
  border-left: 4px solid #d4a017;
  border-radius: 4px;
  font-size: 14px;
  color: #5f4300;
}

.sandbox-reason {
  display: block;
  margin-top: 0.35rem;
  font-size: 13px;
  color: #7a5d00;
}

/* ---------- COI Disclosure ---------- */

.coi-disclosure {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid #7b1fa2;
  background: #f3e5f5;
  color: #4a0e6e;
}

.coi-label {
  margin: 0 0 0.35rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7b1fa2;
}

/* ---------- Editor's Desk Page ---------- */

.editors-desk {
  max-width: 720px;
  margin: 0 auto;
}

.desk-header h1 {
  font-size: 28px;
  margin-bottom: 0.25rem;
}

.desk-header p {
  color: #666;
  margin-bottom: 2rem;
}

.desk-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.desk-card {
  padding: 1.25rem;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #d4a017;
  border-radius: 4px;
  background: #fffcf5;
}

.desk-card h2 {
  font-size: 18px;
  margin: 0.5rem 0 0.35rem;
}

.desk-card h2 a {
  color: #1a1a1a;
  text-decoration: none;
}

.desk-card h2 a:hover {
  text-decoration: underline;
}

.desk-card-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.desk-reason {
  font-size: 13px;
  color: #7a5d00;
  font-style: italic;
}

.desk-deck {
  font-size: 15px;
  color: #444;
  margin-bottom: 0.5rem;
}

.desk-meta {
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.coi-flag {
  color: #7b1fa2;
  font-weight: 600;
  font-size: 12px;
}

.desk-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e8e0d0;
}

.desk-section-title {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.desk-card-email {
  border-left-color: #2f58d8;
  background: #f8faff;
}

.desk-email-preview {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  max-height: 200px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.desk-email-preview.editing {
  max-height: none;
  outline: 2px solid #2f58d8;
  outline-offset: 4px;
  border-radius: 4px;
  padding: 0.5rem;
  background: #fff;
}

.desk-header-actions {
  display: flex;
  gap: 0.5rem;
}

.desk-email-btn {
  background: #2f58d8;
  color: #fff;
  border-color: #2f58d8;
}

.nl-status {
  font-size: 13px;
  margin-left: 0.5rem;
}

.desk-card-transcript {
  border-left-color: #0d7c3d;
  background: #f5faf7;
}

.transcript-paste {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 13px;
  font-family: 'SF Mono', 'Menlo', monospace;
  line-height: 1.5;
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-sizing: border-box;
  margin: 0.5rem 0;
  resize: vertical;
}

.transcript-paste:focus {
  outline: none;
  border-color: #0d7c3d;
  box-shadow: 0 0 0 2px rgba(13, 124, 61, 0.15);
}

.transcript-status {
  font-size: 13px;
  margin-left: 0.5rem;
}

.desk-empty {
  color: #999;
  font-style: italic;
  padding: 2rem 0;
}

.header-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  color: #1a1a1a;
}

/* Height matched to logo tiles: SVG is 122px tall at 24rem wide → each tile ~2.13rem */
.nav-btn-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1em;
  height: 2.13rem;
  font-family: 'Avenir Next', 'Segoe UI', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #5c7cff, #2f58d8);
  border-radius: 0.55rem;
  text-decoration: none;
  box-shadow: 0 4px 4px rgba(15, 23, 42, 0.14);
  letter-spacing: 0.01em;
}

.nav-btn-tip:hover {
  background: linear-gradient(135deg, #4a6ae8, #2448b5);
}

/* ---------- Tip Line ---------- */

.tipline {
  max-width: 600px;
  margin: 0 auto;
}

.tipline-header h1 {
  font-size: 28px;
  margin-bottom: 0.25rem;
}

.tipline-header p {
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.tip-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tip-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #1a1a1a;
}

.tip-field .optional {
  font-weight: 400;
  color: #999;
}

.tip-field textarea,
.tip-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 15px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: inherit;
  box-sizing: border-box;
}

.tip-field textarea:focus,
.tip-field input:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.tip-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.tip-submit {
  padding: 0.6rem 1.5rem;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
}

.tip-submit:hover {
  background: #333;
}

.tip-status {
  font-size: 14px;
  color: #666;
}

/* ---------- Login ---------- */

.login-page {
  max-width: 360px;
  margin: 4rem auto 0;
  text-align: center;
}

.login-page h1 {
  font-size: 24px;
  margin-bottom: 0.25rem;
}

.login-page p {
  color: #666;
  margin-bottom: 1.5rem;
}

.login-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.login-form input {
  padding: 0.55rem 0.75rem;
  font-size: 15px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  width: 200px;
  font-family: inherit;
}

.login-form input:focus {
  outline: none;
  border-color: #2f58d8;
}

.login-btn {
  padding: 0.55rem 1.25rem;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  background: #2f58d8;
  color: #fff;
  cursor: pointer;
}

.login-btn:hover {
  background: #2448b5;
}

.login-status {
  display: block;
  margin-top: 0.75rem;
  font-size: 14px;
}

/* ---------- Compose ---------- */

.compose-page {
  max-width: 720px;
  margin: 0 auto;
}

.compose-page h1 {
  font-size: 24px;
  margin-bottom: 1.5rem;
}

.compose-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.compose-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.compose-field select,
.compose-field input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 15px;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: inherit;
  box-sizing: border-box;
}

.compose-editor {
  min-height: 300px;
  padding: 0.75rem;
  font-size: 16px;
  line-height: 1.7;
  border: 1px solid #dadce0;
  border-radius: 4px;
}

.compose-editor:focus {
  outline: none;
  border-color: #2f58d8;
  box-shadow: 0 0 0 2px rgba(47, 88, 216, 0.15);
}

.compose-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.desk-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.desk-compose-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #2f58d8;
  border-radius: 4px;
  text-decoration: none;
}

.desk-compose-btn:hover {
  background: #2448b5;
}
