/* ========================================
   羊汤动能 · 复盘日记 - 基础样式
   ======================================== */

:root {
  --bg: #0f1117;
  --card: #1a1d27;
  --border: #2a2d3a;
  --text: #e1e4ea;
  --muted: #8b8fa3;
  --accent: #4f8cff;
  --accent-hover: #6ba0ff;
  --green: #4caf88;
  --red: #f04a6e;
  --yellow: #f0c44a;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
.container { max-width: 960px; margin: 0 auto; padding: 24px 20px; overflow-x: hidden; }

/* Header */
.header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.header h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.5px; }
.header-actions { display: flex; gap: 10px; align-items: center; }

/* Settings */
.settings-bar {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px;
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 140px; flex: 1; }
.field-compact { flex: 0 0 auto; min-width: 104px; }
.field-proxy-url { min-width: 220px; }
.field label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.field input, .field select {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 12px; color: var(--text); font-size: 0.875rem; outline: none;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.proxy-row {
  flex: 1 1 100%; display: grid;
  grid-template-columns: 110px minmax(220px, 1fr) minmax(120px, 0.55fr) minmax(120px, 0.55fr);
  gap: 10px; align-items: end; padding-top: 12px; border-top: 1px solid var(--border);
}
.proxy-row .field { min-width: 0; flex: initial; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 7px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--card); border-color: var(--accent); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: transparent; color: var(--red); border: 1px solid transparent; }
.btn-danger:hover { border-color: var(--red); }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }
.btn-icon { padding: 6px; line-height: 1; }

/* Date selector */
.date-nav {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  justify-content: center; flex-wrap: wrap;
}
.date-nav-break { flex-basis: 100%; height: 0; }
.date-nav input[type="date"] {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; color: var(--text); font-size: 0.875rem; outline: none;
}
.date-nav input[type="date"]:focus { border-color: var(--accent); }
.date-nav .nav-arrow {
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; color: var(--text); cursor: pointer; font-size: 1rem;
  transition: all 0.2s;
}
.date-nav .nav-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* Date & Quote unified bar — two rows */
.date-quote-bar {
  margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px 8px;
  transition: border-color 0.2s;
}
.date-quote-bar:hover { border-color: rgba(79,140,255,0.2); }

.date-quote-top {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.date-quote-top .nav-arrow {
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 8px; color: var(--muted); cursor: pointer; font-size: 0.88rem;
  transition: all 0.2s; display: flex; align-items: center;
}
.date-quote-top .nav-arrow:hover { border-color: var(--accent); color: var(--accent); }
.date-quote-top input[type="date"] {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; color: var(--text); font-size: 0.82rem; outline: none;
  font-family: inherit;
}
.date-quote-top input[type="date"]:focus { border-color: var(--accent); }

.date-quote-bottom {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; position: relative; padding-left: 16px;
  transition: all 0.2s;
}
.date-quote-bottom::before {
  content: '\201C'; position: absolute; left: 2px; top: -3px;
  font-size: 1.4rem; color: var(--accent); opacity: 0.25;
  font-family: Georgia, serif; line-height: 1; pointer-events: none;
}
.date-quote-bottom .quote-inline-text {
  font-size: 0.78rem; line-height: 1.4; color: var(--muted); font-style: italic;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: 0.01em; transition: color 0.2s;
}
.date-quote-bottom .quote-inline-author {
  font-size: 0.68rem; color: var(--muted); white-space: nowrap;
  font-weight: 500; opacity: 0.7;
}
.date-quote-bottom .quote-inline-timer {
  font-size: 0.65rem; color: var(--accent); opacity: 0.6;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.date-quote-bottom:hover .quote-inline-text { color: var(--text); }

/* Recent assets row */
.recent-assets {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px;
  overflow-x: auto;
}
.recent-assets::-webkit-scrollbar { display: none; }
.recent-assets-label {
  font-size: 0.62rem; color: var(--muted); white-space: nowrap; flex-shrink: 0;
  opacity: 0.6;
}
.recent-assets-list {
  display: flex; gap: 6px; flex-wrap: nowrap;
}
.asset-chip {
  border: 1px solid var(--border); border-radius: 5px;
  padding: 3px 10px; height: 24px;
  display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; transition: all 0.15s; position: relative;
  flex-shrink: 0;
}
.asset-chip:hover { border-color: var(--accent); }
.asset-chip.active {
  border-color: var(--accent); border-width: 1.5px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.asset-chip .chip-name {
  font-size: 0.7rem; font-weight: 600; color: var(--text);
  white-space: nowrap;
}
.asset-chip.active .chip-name { color: var(--accent); }
.asset-chip .chip-date {
  font-size: 0.58rem; color: var(--muted); opacity: 0.7;
}
.asset-chip .chip-badge {
  position: absolute; top: -3px; right: -3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #e8a040;
}

/* Custom date display button */
.date-display-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(79,140,255,0.08); border: 1px solid rgba(79,140,255,0.2);
  border-radius: 8px; padding: 5px 14px;
  color: var(--text); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.date-display-btn:hover { background: rgba(79,140,255,0.14); border-color: rgba(79,140,255,0.35); }
.date-display-btn i:first-child { color: var(--accent); font-size: 1rem; }
.date-display-caret { font-size: 0.85rem; color: var(--muted); transition: transform 0.2s; }
.date-display-btn.open .date-display-caret { transform: rotate(180deg); }

/* Calendar Popup */
.cal-popup {
  display: none; position: relative; z-index: 500;
  max-width: 320px; margin: -8px auto 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  animation: calIn 0.18s ease;
}
.cal-popup.show { display: block; }
@keyframes calIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.cal-title { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.cal-nav {
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); cursor: pointer; font-size: 1rem;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.cal-nav:hover { border-color: var(--accent); color: var(--accent); }

.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
  font-size: 0.65rem; color: var(--muted); margin-bottom: 4px; font-weight: 600;
}

.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.cal-day {
  display: flex; align-items: center; justify-content: center; position: relative;
  width: 100%; aspect-ratio: 1; border-radius: 8px;
  font-size: 0.78rem; font-weight: 500; cursor: pointer;
  color: var(--text); background: transparent; border: none;
  transition: all 0.12s; font-family: inherit;
}
.cal-day:hover { background: rgba(79,140,255,0.12); }
.cal-day.other { color: var(--muted); opacity: 0.35; }
.cal-day.today {
  background: rgba(240,196,74,0.1); color: var(--yellow); font-weight: 700;
  border: 1px solid rgba(240,196,74,0.25);
}
.cal-day.selected {
  background: var(--accent); color: #fff; font-weight: 700;
  box-shadow: 0 2px 8px rgba(79,140,255,0.3);
}
.cal-day.today.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-day.future { opacity: 0.2; pointer-events: none; }
.cal-dot {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--green); pointer-events: none;
}
.cal-day.selected .cal-dot { background: rgba(255,255,255,0.7); }

.cal-footer {
  display: flex; justify-content: center; margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.cal-today-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); font-size: 0.72rem; padding: 4px 14px;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}
.cal-today-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Login prompt */
.login-prompt {
  text-align: center;
  padding: 80px 20px;
  max-width: 400px;
  margin: 0 auto;
}
.login-prompt h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}
.login-prompt p {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1rem;
}
.login-prompt-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.login-prompt-actions .btn {
  padding: 12px 32px;
  font-size: 1rem;
}

/* Editor */
.editor-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.editor-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border); gap: 10px;
}
.editor-header h3 { font-size: 0.95rem; font-weight: 600; }
.editor-actions {
  display: flex; gap: 8px; align-items: center; flex-shrink: 0;
}
.editor-actions .btn { font-size: 0.78rem; padding: 4px 10px; }
#favBtn {
  border-color: rgba(240,196,74,0.35); color: #c9a227;
  transition: all 0.2s;
}
#favBtn:hover { border-color: rgba(240,196,74,0.6); background: rgba(240,196,74,0.08); color: #f0c44a; }
#favBtn.btn-active {
  background: linear-gradient(135deg, #f0c44a, #e6a817) !important;
  color: #1a1d27 !important;
  border-color: #f0c44a !important;
  box-shadow: 0 0 12px rgba(240,196,74,0.25);
  font-weight: 600;
}
.btn-active {
  background: var(--yellow) !important;
  color: #000 !important;
  border-color: var(--yellow) !important;
}
.editor-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

/* Quote bar in editor */
.quote-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; font-variant-numeric: tabular-nums;
}
.quote-bar-logo { width: 28px; height: 28px; border-radius: 4px; object-fit: contain; flex-shrink: 0; background: var(--bg); }
.quote-bar-emoji { font-size: 1.2rem; flex-shrink: 0; line-height: 1; }
.quote-bar-top { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; }
.quote-bar-bottom { display: flex; align-items: baseline; gap: 8px; margin-left: auto; }
.quote-bar-name { font-weight: 700; font-size: 0.92rem; letter-spacing: 0.3px; line-height: 1.2; }
.quote-bar-code { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 500; line-height: 1.2; }
.quote-bar-price { font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: 0.2px; }
.quote-bar-price.up { color: var(--green); }
.quote-bar-price.down { color: var(--red); }
.quote-bar-change { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2px; }
.quote-bar-change-abs { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2px; }
.quote-bar-change.up, .quote-bar-change-abs.up { color: var(--green); }
.quote-bar-change.down, .quote-bar-change-abs.down { color: var(--red); }
.quote-bar-hilo { color: var(--muted); font-size: 0.72rem; margin-left: auto; letter-spacing: 0.3px; font-weight: 500; }

/* Template sections */
.section {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  margin-top: 10px;
}
.section-header {
  background: rgba(79,140,255,0.08); padding: 10px 14px;
  font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.section-header .icon { font-size: 1rem; }
.section-body { padding: 12px 14px; }
.section-body textarea {
  width: 100%; min-height: 80px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 12px; color: var(--text); font-size: 0.875rem;
  font-family: inherit; line-height: 1.5; resize: vertical; outline: none;
}
.section-body textarea:focus { border-color: var(--accent); }

/* Fields grid */
.fields-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.field-item {
  display: flex; flex-direction: column; gap: 3px;
}
.field-item label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.field-item input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 5px;
  padding: 6px 10px; color: var(--text); font-size: 0.85rem; outline: none;
}
.field-item input:focus { border-color: var(--accent); }
.field-item input[size] { font-size: 0.78rem; padding: 4px 6px; }
.field-image-box {
  margin-top: 4px; border: 1px dashed var(--border); border-radius: 5px;
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  position: relative; overflow: hidden; background: rgba(255,255,255,0.01);
}
.field-image-box:hover { border-color: var(--accent); background: rgba(255,255,255,0.03); }
.field-image-box.has-image { border-style: solid; padding: 0; min-height: auto; aspect-ratio: 16/9; max-width: 100%; }
.field-image-placeholder {
  font-size: 0.7rem; color: var(--muted); text-align: center; padding: 8px;
}
.field-image-preview {
  width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in;
}
.field-image-remove {
  position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.7);
  color: #fff; border: none; border-radius: 4px; padding: 4px 8px;
  font-size: 0.7rem; cursor: pointer; opacity: 0; transition: opacity 0.2s;
  z-index: 2;
}
.field-image-box:hover .field-image-remove { opacity: 1; }
.field-image-remove:hover { background: var(--red); }

/* Image modal */
.image-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92); z-index: 9999; display: none;
  align-items: center; justify-content: center; cursor: zoom-out;
}
.image-modal.show { display: flex; }
.image-modal img {
  max-width: 95vw; max-height: 95vh; object-fit: contain;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Memo list */
.memo-list { margin-top: 24px; }
.memo-list h3 { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.memo-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
  display: flex; justify-content: space-between; align-items: center;
}
.memo-item:hover { border-color: var(--accent); }
.memo-item .memo-date { font-weight: 600; font-size: 0.82rem; }
.memo-item .memo-preview { color: var(--muted); font-size: 0.74rem; max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memo-item .memo-actions { display: flex; gap: 6px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 18px;
  font-size: 0.85rem; box-shadow: var(--shadow); z-index: 1000;
  animation: slideIn 0.3s ease; display: flex; align-items: center; gap: 8px;
}
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Status indicator */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.status-dot.connected { background: var(--green); }
.status-dot.disconnected { background: var(--red); }

/* Tags */
.tags-display { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  background: rgba(79,140,255,0.12); color: var(--accent); font-size: 0.75rem;
  padding: 2px 8px; border-radius: 4px; font-weight: 500;
}

/* Preview panel */
.preview-panel {
  margin-top: 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.preview-panel h3 { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.preview-content {
  background: var(--bg); border-radius: 6px; padding: 14px;
  font-size: 0.85rem; white-space: pre-wrap; font-family: "SF Mono", "Fira Code", monospace;
  max-height: 400px; overflow-y: auto;
}

/* ====== Share Card ====== */
.share-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  justify-content: center; align-items: flex-start; padding: 20px;
}
.share-overlay.show { display: flex; }
.share-modal {
  background: var(--card); border-radius: var(--radius); max-width: 420px; width: 100%;
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border);
}
.share-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 0.95rem;
}
.share-scroll { flex: 1; overflow-y: auto; padding: 0; }
.share-actions { padding: 12px 16px; border-top: 1px solid var(--border); text-align: center; }

/* Share Card inner */
.share-card {
  width: 100%; background: linear-gradient(175deg, #12141e 0%, #0c0e16 100%);
  color: #e8e8e8; font-size: 13px; line-height: 1.5;
}

.sc-header {
  background: linear-gradient(135deg, #1a1c2e 0%, #252840 100%);
  padding: 22px 20px 16px; border-bottom: 2px solid #d4a843;
}
.sc-brand { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; color: #f0e6d0; }
.sc-asset-date { font-size: 15px; font-weight: 600; color: #d4a843; margin-top: 8px; letter-spacing: 0.3px; }
.sc-asset-date .sc-date-val { font-weight: 700; }

.sc-user-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sc-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden;
}
.sc-avatar-img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block;
}
.sc-avatar-letter {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #d4a843, #b8860b);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #1a1a2e;
}
.sc-user-left { flex: 1; min-width: 0; }
.sc-nickname { font-size: 14px; font-weight: 700; color: #f0e6d0; }
.sc-user-title { font-size: 11px; color: #999; margin-top: 2px; }
.sc-user-right { text-align: right; flex-shrink: 0; }
.sc-asset-label { font-size: 12px; color: #888; }
.sc-asset-label b { color: #ccc; font-weight: 600; }
.sc-price-line { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.sc-price-line small { font-size: 11px; font-weight: 500; }
.sc-price-line.sc-up { color: #26a69a; }
.sc-price-line.sc-dn { color: #ef5350; }
.sc-price-label { font-size: 11px; color: #666; font-weight: 400; }

/* 财富哲学 */
.sc-wisdom {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(212,168,67,0.06) 0%, rgba(212,168,67,0.02) 100%);
}
.sc-wisdom-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.sc-wisdom-text { font-size: 13px; color: #c8b88a; line-height: 1.7; font-style: italic; }

/* 级别跟踪图片 */
.sc-level-images {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px;
}
.sc-level-img {
  background: rgba(255,255,255,0.03); border-radius: 4px; overflow: hidden;
}
.sc-level-img-label {
  font-size: 10px; color: #888; padding: 4px 6px; background: rgba(0,0,0,0.2);
}
.sc-level-img img { width: 100%; display: block; }

.sc-section {
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sc-sec-title { font-size: 13px; font-weight: 600; color: #d4a843; margin-bottom: 8px; }

.sc-table {
  width: 100%; border-collapse: collapse; font-size: 11px;
}
.sc-table th {
  text-align: left; padding: 5px 6px; font-weight: 600; color: #999;
  border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 10px; text-transform: uppercase;
}
.sc-table td {
  padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,0.04); color: #ccc;
}
.sc-plan-table th:first-child, .sc-plan-table td:first-child { width: 20px; text-align: center; }

.sc-minute {
  margin-top: 8px; padding: 8px 10px; background: rgba(212,168,67,0.08);
  border-left: 3px solid #d4a843; border-radius: 0 4px 4px 0;
  font-size: 12px; color: #ccc; line-height: 1.6;
}

.sc-summary { display: flex; flex-direction: column; gap: 6px; }
.sc-sum-item { display: flex; gap: 8px; font-size: 12px; align-items: baseline; }
.sc-sum-label { flex-shrink: 0; color: #999; font-weight: 500; min-width: 52px; }
.sc-sum-val { color: #ddd; }

.sc-facepalm { display: flex; flex-direction: column; gap: 6px; }
.sc-fp-item {
  font-size: 12px; color: #bbb; padding: 6px 10px;
  background: rgba(255,255,255,0.03); border-radius: 4px;
  border-left: 2px solid rgba(212,168,67,0.3);
}

.sc-footer {
  padding: 16px 20px; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sc-footer-brand { font-size: 10px; letter-spacing: 2px; color: #555; text-transform: uppercase; }
.sc-footer-motto { font-size: 11px; color: #666; margin-top: 3px; font-style: italic; }

/* Fullscreen image (mobile long-press save) */
.share-fullscreen {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.95); flex-direction: column;
  justify-content: center; align-items: center; padding: 20px;
}
.share-fullscreen.show { display: flex; }
.share-fs-hint {
  color: #d4a843; font-size: 15px; font-weight: 600;
  margin-bottom: 16px; letter-spacing: 1px;
  animation: fs-hint-pulse 2s ease-in-out infinite;
}
@keyframes fs-hint-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.share-fullscreen img {
  max-width: 100%; max-height: 75vh; border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  -webkit-touch-callout: default; /* enable iOS long-press save */
}
.share-fs-close {
  margin-top: 16px; color: #999; border-color: #555;
}
