/* 仓鼠AI - Clean CSS rewrite for current frontend/index.html */
:root {
  --page-bg: #f5f5f7;
  --page-bg-accent: radial-gradient(circle at top right, #ffffff 0%, #f5f5f7 45%, #eef1f5 100%);
  --sidebar-bg: rgba(255, 255, 255, 0.7);
  --panel-bg: rgba(255, 255, 255, 0.78);
  --panel-strong-bg: rgba(255, 255, 255, 0.9);
  --panel-border: rgba(255, 255, 255, 0.75);
  --line: rgba(18, 18, 18, 0.08);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #8e8e93;
  --primary: #0071e3;
  --primary-hover: #0062c4;
  --primary-soft: rgba(0, 113, 227, 0.12);
  --success: #34c759;
  --danger: #ff3b30;
  --warning: #ff9f0a;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.12);
  --blur: blur(22px);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar-width: 280px;
  --workspace-max: 1240px;
  --motion-fast: 160ms;
  --motion-normal: 260ms;
  --motion-slow: 360ms;
  --motion-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body.apple-studio-shell {
  font-family: var(--font-family);
  background: var(--page-bg-accent);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

/* ===== Loading / status ===== */
#serverStatus {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 2100;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

#serverStatus.connected { background: var(--success); }
#serverStatus.disconnected { background: var(--danger); }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: blur(16px);
}

.spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(0, 113, 227, 0.18);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 14px;
}

.loading-progress {
  width: 280px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.12);
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width var(--motion-normal) var(--motion-ease);
}

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

/* ===== Layout shell ===== */
#app-shell {
  display: none;
  min-height: 100vh;
  width: 100%;
  align-items: flex-start;
}

#sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  backdrop-filter: var(--blur);
}

#workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 88px;
}

#topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  background: var(--panel-strong-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.topbar-left {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

#page-header {
  margin: 16px 0 18px;
  padding: 0 4px;
}

#pageTitle h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#pageTitle p {
  margin: 8px 0 0;
  max-width: 820px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

#page-content {
  width: min(var(--workspace-max), 100%);
  margin: 0 auto;
}

.page-section {
  display: none;
  animation: pageFadeIn var(--motion-slow) var(--motion-ease);
}

.page-section.active { display: block; }

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

#global-footer {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 120;
  width: min(980px, calc(100vw - 24px));
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

/* ===== Sidebar ===== */
.sidebar-header,
.sidebar-section,
#sidebarAccount,
#sidebar-nav {
  width: 100%;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.logo-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-text span { color: var(--primary); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--motion-normal) var(--motion-ease),
              background-color var(--motion-normal) var(--motion-ease),
              box-shadow var(--motion-normal) var(--motion-ease);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.86);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

.nav-item.active {
  background: var(--primary-soft);
  color: #003a75;
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.2);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.section-title {
  padding: 0 12px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.recent-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}

.recent-task-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.recent-task-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--motion-normal) var(--motion-ease), box-shadow var(--motion-normal) var(--motion-ease);
}

.recent-task-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.recent-task-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.recent-task-type,
.recent-task-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.recent-task-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.recent-task-status.status-success {
  color: #238b46;
  background: rgba(52, 199, 89, 0.14);
}

.recent-task-status.status-error {
  color: #c9342c;
  background: rgba(255, 59, 48, 0.12);
}

.recent-task-status.status-processing {
  color: #5f6368;
  background: rgba(142, 142, 147, 0.14);
}

.sidebar-account {
  margin-top: auto;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.account-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--motion-fast) ease;
}

.account-info:hover { background: rgba(255, 255, 255, 0.6); }

.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
}

.account-details {
  flex: 1;
  min-width: 0;
}

.account-name {
  font-size: 14px;
  font-weight: 600;
}

.account-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.account-dropdown {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(100% + 8px);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--motion-normal) var(--motion-ease);
}

.account-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 12px 14px;
  font-size: 14px;
  cursor: pointer;
}

.dropdown-item:hover { background: rgba(0, 0, 0, 0.04); }

/* ===== Panels / cards ===== */
.page-card,
.share-panel,
.drawer,
#reverseReportDialog {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--blur);
}

.page-card {
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 20px;
}

.page-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.page-card > p:first-child,
.page-card h2 + p {
  margin-top: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Buttons ===== */
.submit-btn,
.btn-primary,
.nav-share-btn,
.btn-secondary,
.task-btn,
.modal-close,
.close-btn,
#closeSharePanel,
#closeAvatarDrawerBtn,
#closeImageProcessDrawerBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  transition: transform var(--motion-fast) var(--motion-ease),
              box-shadow var(--motion-fast) var(--motion-ease),
              background-color var(--motion-fast) var(--motion-ease),
              border-color var(--motion-fast) var(--motion-ease);
  cursor: pointer;
}

.submit-btn,
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(0, 113, 227, 0.86);
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
}

.submit-btn:hover,
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.submit-btn:active,
.btn-primary:active,
.nav-share-btn:active,
.btn-secondary:active,
.task-btn:active,
.modal-close:active,
.close-btn:active,
#closeSharePanel:active,
#closeAvatarDrawerBtn:active,
#closeImageProcessDrawerBtn:active {
  transform: scale(0.98);
}

.submit-btn:disabled,
.btn-primary:disabled,
.task-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.nav-share-btn,
.btn-secondary,
.task-btn,
.modal-close,
.close-btn,
#closeSharePanel,
#closeAvatarDrawerBtn,
#closeImageProcessDrawerBtn {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
}

.nav-share-btn:hover,
.btn-secondary:hover,
.task-btn:hover,
.modal-close:hover,
.close-btn:hover,
#closeSharePanel:hover,
#closeAvatarDrawerBtn:hover,
#closeImageProcessDrawerBtn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

/* ===== Forms ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #3a3a3c;
}

input[type="file"],
input[type="text"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

input[type="file"] {
  border-style: dashed;
  padding: 12px;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.65;
}

input[type="file"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 113, 227, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.status-text {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.preview-box {
  margin-top: 10px;
  min-height: 88px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 13px;
  overflow: hidden;
}

.preview-box img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: cover;
}

/* ===== Share panel / overlays / drawer / modal ===== */
.drawer-overlay,
.share-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-normal) var(--motion-ease), visibility var(--motion-normal) var(--motion-ease);
}

.drawer-overlay {
  z-index: 998;
  background: rgba(10, 12, 17, 0.22);
  backdrop-filter: blur(10px);
}

.share-overlay {
  z-index: 998;
  background: rgba(10, 12, 17, 0.26);
}

.drawer-overlay.active,
.share-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.share-panel,
.drawer,
.modal {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.share-panel {
  top: 50%;
  right: 32px;
  width: 400px;
  max-width: calc(100vw - 24px);
  border-radius: var(--radius-lg);
  transform: translateY(-50%) scale(0.96);
  z-index: 999;
  transition: opacity var(--motion-normal) var(--motion-ease), transform var(--motion-normal) var(--motion-ease), visibility var(--motion-normal) var(--motion-ease);
}

.share-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.share-panel-header,
.drawer-header,
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.share-panel-header h3,
.drawer-header h2,
.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.share-panel-content,
.drawer > p,
.drawer .form-group,
.drawer .status-text,
.modal-body {
  padding-left: 20px;
  padding-right: 20px;
}

.share-panel-content {
  padding-top: 20px;
  padding-bottom: 20px;
}

.share-link-input {
  margin-bottom: 12px;
}

.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-no-content {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 10px 0;
}

.drawer {
  top: 0;
  right: -460px;
  width: 400px;
  max-width: calc(100vw - 24px);
  height: 100vh;
  z-index: 999;
  overflow-y: auto;
  border-radius: 22px 0 0 22px;
  transition: right var(--motion-slow) var(--motion-ease), opacity var(--motion-normal) var(--motion-ease), visibility var(--motion-normal) var(--motion-ease);
}

.drawer.active {
  right: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 17, 0.24);
  backdrop-filter: blur(10px);
  transition: opacity var(--motion-normal) var(--motion-ease), visibility var(--motion-normal) var(--motion-ease);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog,
#reverseReportDialog {
  width: min(860px, calc(100vw - 32px));
  max-height: 82vh;
  overflow: auto;
  border-radius: var(--radius-lg);
}

.modal-body,
#reverseReportContent {
  padding: 20px;
  line-height: 1.75;
  color: var(--text-primary);
}

.markdown-body pre,
.markdown-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.markdown-body pre {
  padding: 14px;
  overflow: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
}

/* ===== Page-specific helpers ===== */
#matrixGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.video-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 9 / 16;
  box-shadow: var(--shadow-lg);
}

.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* ===== Tasks ===== */
.task-subnav {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.task-subnav-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.task-subnav-btn.active {
  background: var(--primary-soft);
  border-color: rgba(0, 113, 227, 0.2);
  color: #004e9f;
}

.task-list,
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.task-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-normal) var(--motion-ease), box-shadow var(--motion-normal) var(--motion-ease);
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.task-card.highlight-task {
  outline: 2px solid rgba(0, 113, 227, 0.5);
  box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.12);
}

.task-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.task-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.task-time,
.task-id,
.task-id-text,
.task-type,
.task-content-note {
  font-size: 12px;
  color: var(--text-tertiary);
}

.task-type-chip,
.recent-task-type,
.task-status-pill,
.status-badge,
.task-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.task-status-processing,
.status-processing {
  color: #5f6368;
  background: rgba(142, 142, 147, 0.14);
}

.task-status-success,
.status-success {
  color: #238b46;
  background: rgba(52, 199, 89, 0.14);
}

.task-status-failed,
.status-error,
.status-failed {
  color: #c9342c;
  background: rgba(255, 59, 48, 0.12);
}

.progress-container { margin-top: 14px; }

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #5ea8ff);
  border-radius: inherit;
  transition: width var(--motion-slow) var(--motion-ease);
}

.progress-text {
  margin-top: 8px;
  text-align: right;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.task-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.task-btn {
  min-height: 38px;
  padding: 0 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.task-btn-priority-primary,
.btn-view {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(0, 113, 227, 0.86);
}

.task-btn-priority-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
}

.task-btn-priority-danger {
  background: rgba(255, 59, 48, 0.12);
  color: #c9342c;
  border: 1px solid rgba(255, 59, 48, 0.2);
}

.task-btn-priority-primary:hover,
.btn-view:hover { background: var(--primary-hover); }

.task-empty {
  padding: 28px;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root { --sidebar-width: 240px; }

  #sidebar { width: var(--sidebar-width); }
  #workspace { padding: 18px 18px 88px; }
}

@media (max-width: 768px) {
  #app-shell { flex-direction: column; }

  #sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
  }

  #workspace {
    padding: 14px 14px 88px;
  }

  #topbar {
    min-height: 56px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
  }

  #pageTitle h1 { font-size: 24px; }

  .page-card {
    padding: 22px;
    border-radius: 20px;
  }

  .share-panel {
    width: calc(100vw - 24px);
    right: 12px;
  }

  .drawer {
    width: min(400px, calc(100vw - 18px));
  }

  .task-actions,
  .task-list,
  .task-grid {
    grid-template-columns: 1fr;
  }

  #global-footer {
    position: static;
    transform: none;
    width: auto;
    margin: 8px 12px 14px;
  }
}
