/* ===== Base & Typography ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #0891b2;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 50%, #faf5ff 100%);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* ===== Header ===== */
.header {
  text-align: center;
  margin-bottom: 28px;
}

.header h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ===== Cards & Sections ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
}

/* ===== Mode Selector ===== */
.mode-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.mode-button {
  flex: 1;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.mode-button:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.mode-button.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.mode-description {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  font-size: 14px;
  border-left: 3px solid var(--primary);
}

/* ===== Notice ===== */
.notice {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border-radius: var(--radius-sm);
  color: #92400e;
  font-size: 14px;
  border-left: 3px solid var(--warning);
}

.notice p {
  margin: 0;
}

/* ===== Selectors ===== */
.llm-selector,
.style-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.image-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
}

.llm-selector label,
.style-selector label {
  font-weight: 500;
  color: var(--text);
}

.image-selector label {
  font-weight: 500;
  color: var(--text);
}

.llm-selector select,
.style-selector select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition);
}

.image-selector select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition);
}

.llm-selector select:focus,
.style-selector select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.image-selector select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===== Direction Guidance ===== */
.direction-guidance {
  margin: 0 0 16px;
  font-size: 14px;
}

.direction-guidance label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.direction-guidance textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  resize: vertical;
  font-size: 14px;
  transition: border-color var(--transition);
  font-family: inherit;
}

.direction-guidance textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===== Image Upload ===== */
.image-upload {
  margin: 0 0 16px;
  font-size: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.image-upload label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.image-upload input[type="file"] {
  display: block;
  margin-bottom: 10px;
}

.image-upload-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.image-preview-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f1f5f9;
}

.image-preview-item img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.image-preview-item button {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 12px;
  line-height: 22px;
}
/* ===== Toggle Options ===== */
.options-group {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.image-toggle,
.story-toggle,
.research-toggle {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
}

.image-toggle:last-child,
.story-toggle:last-child,
.research-toggle:last-child {
  margin-bottom: 0;
}

.image-toggle label,
.story-toggle label,
.research-toggle label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.image-toggle input,
.story-toggle input,
.research-toggle input {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: var(--primary);
  cursor: pointer;
}

.research-options {
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.research-language-label {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.research-languages {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.research-languages label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.research-options select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  background: var(--bg-card);
}

.research-description {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 28px;
}

/* ===== Image Constraints ===== */
.image-constraints {
  margin: 0 0 16px;
  font-size: 14px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.image-constraints label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.image-constraints textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  resize: vertical;
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.image-constraints textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.constraint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.constraint-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.constraint-actions button,
.constraint-chip {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.constraint-actions button:hover,
.constraint-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

#constraint-default {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

#constraint-default:hover {
  background: var(--primary-dark);
}

/* ===== Session Actions ===== */
.session-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.session-actions button {
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.session-actions button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* ===== Chat ===== */
.chat {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 300px;
  max-height: 450px;
  overflow-y: auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.message {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
  white-space: pre-wrap;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.assistant {
  background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
  border-left: 3px solid var(--primary);
}

.message.user {
  background: linear-gradient(135deg, var(--primary-light) 0%, #eff6ff 100%);
  border-left: 3px solid var(--accent);
  margin-left: 20px;
}

.message.loading {
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.loading-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1s ease-in-out infinite;
}

.loading-text {
  margin-right: 4px;
}

.loading-dots::before {
  content: "";
  display: inline-block;
  width: 24px;
  text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}

/* ===== Chat Form ===== */
.chat-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.submit-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.chat-form textarea {
  flex: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 14px;
  resize: vertical;
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
}

.chat-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.chat-form button {
  min-width: 100px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 14px 20px;
  transition: all var(--transition);
}

.chat-form button:hover {
  background: var(--primary-dark);
}

.chat-form button.is-waiting,
.chat-form button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.submit-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.submit-hint::after {
  content: "";
  display: inline-block;
  width: 24px;
  text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}

/* ===== Session Controls ===== */
.session-controls {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.session-controls button {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.session-controls button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.session-controls button:disabled {
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.session-controls button.is-waiting {
  color: var(--text-muted);
}

.session-controls button.is-waiting::after {
  content: "";
  display: inline-block;
  width: 24px;
  margin-left: 6px;
  text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}

/* ===== Article ===== */
.article {
  margin-top: 28px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-header h2 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Editor ===== */
.editor-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.editor-pane {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.editor-preview {
  min-height: 40vh;
  max-height: 50vh;
  overflow-y: auto;
}

.editor-input textarea {
  width: 100%;
  min-height: 40vh;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.7;
  font-family: inherit;
  transition: border-color var(--transition);
}

.editor-input textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.editor-toolbar select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 14px;
  background: var(--bg-card);
}

.editor-toolbar button {
  border: none;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.editor-toolbar button:hover {
  background: var(--primary-dark);
}

.editor-toolbar button.is-waiting {
  background: #94a3b8;
}

.editor-toolbar button.is-waiting::after {
  content: "";
  display: inline-block;
  width: 24px;
  margin-left: 6px;
  animation: dots 1.2s steps(4, end) infinite;
}

.editor-toolbar .secondary-button {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
}

.editor-status {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== Markdown Content ===== */
.markdown-content {
  font-family: "Noto Serif TC", Georgia, serif;
  line-height: 1.8;
  word-break: break-word;
  color: var(--text);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin: 20px 0 12px;
  color: var(--text);
}

.markdown-content h1 { font-size: 24px; }
.markdown-content h2 { font-size: 20px; }
.markdown-content h3 { font-size: 18px; }

.markdown-content p {
  margin: 12px 0;
}

.markdown-content ul,
.markdown-content ol {
  margin: 12px 0 12px 24px;
}

.markdown-content li {
  margin: 6px 0;
}

.markdown-content code {
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.9em;
  color: var(--primary-dark);
}

.markdown-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 16px 0;
}

.markdown-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* ===== Research Summary ===== */
.research-summary {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #f8fafc;
}

.research-summary summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.research-summary pre {
  white-space: pre-wrap;
  line-height: 1.7;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--bg-card);
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  float: right;
  transition: all var(--transition);
}

.modal-close:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== Article Image ===== */
.article-image {
  margin-top: 20px;
}

.article-image h3 {
  font-size: 16px;
  margin: 0 0 12px 0;
}

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--border);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.image-loading {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Article Menu ===== */
.article-menu {
  margin-top: 28px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.article-menu h2 {
  margin: 0 0 16px 0;
  font-size: 18px;
}

.article-menu ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.article-menu li {
  margin-bottom: 10px;
}

.article-menu > button {
  width: 100%;
  text-align: left;
  border: none;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
}

.article-menu > button:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.article-menu a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.article-menu a:hover {
  text-decoration: underline;
}

.article-menu .secondary-button {
  margin-left: 12px;
}

/* ===== Login ===== */
.login-card {
  max-width: 400px;
  margin: 40px auto 0;
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}

.login-form label {
  font-weight: 500;
  margin-bottom: -8px;
}

.login-form input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color var(--transition);
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.login-form button {
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}

.login-form button:hover {
  background: var(--primary-dark);
}

.login-form button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.login-error {
  margin: 0;
  padding: 12px 14px;
  background: #fef2f2;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 14px;
  border-left: 3px solid var(--danger);
}

/* ===== Utilities ===== */
.hidden {
  display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .app {
    padding: 16px 14px 40px;
  }

  .header h1 {
    font-size: 26px;
  }

  .mode-selector {
    flex-direction: column;
    gap: 6px;
  }

  .mode-button {
    text-align: center;
  }

  .llm-selector,
  .style-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .llm-selector select,
  .style-selector select {
    width: 100%;
  }

  .image-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .image-selector select {
    width: 100%;
  }

  .chat-form {
    flex-direction: column;
  }

  .chat-form button {
    width: 100%;
  }

  .session-actions {
    flex-direction: column;
  }

  .session-actions button {
    width: 100%;
  }

  .session-controls {
    flex-wrap: wrap;
  }

  .article-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
