/* A light Obsidian-like shell: the variables the plugin's stylesheet reads,
   plus an editing-mode look for headings, tasks and pen notes. */
:root {
  --background-primary: #ffffff;
  --background-secondary: #f6f6f6;
  --background-modifier-border: #e0e0e0;
  --background-modifier-box-shadow: rgba(0, 0, 0, 0.3);
  --background-modifier-hover: rgba(0, 0, 0, 0.05);
  --text-normal: #222222;
  --text-muted: #6b6b6b;
  --text-faint: #9a9a9a;
  --interactive-accent: #7c6ee6;
  --font: -apple-system, "Segoe UI", Inter, system-ui, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 16px/1.6 var(--font); color: var(--text-normal); background: var(--background-primary); }
.app { height: calc(100% - 34px); display: flex; flex-direction: column; }
.tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: var(--background-secondary); border-bottom: 1px solid var(--background-modifier-border); }
.tab { padding: 6px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: none; color: var(--text-muted); font: inherit; font-size: 13px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--background-primary); border-color: var(--background-modifier-border); color: var(--text-normal); margin-bottom: -1px; }
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--background-modifier-border); }
.view-actions { display: flex; gap: 4px; }
.clickable-icon { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.clickable-icon:hover { background: var(--background-modifier-hover); }
.clickable-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.editor { flex: 1; overflow: auto; padding: 28px clamp(16px, 8vw, 96px) 60px; }
.line { min-height: 1.6em; white-space: pre-wrap; }
.h1 { font-size: 1.9em; font-weight: 700; line-height: 1.3; margin: 0 0 .4em; }
.h2 { font-size: 1.4em; font-weight: 650; line-height: 1.3; margin: .8em 0 .3em; }
.task { display: flex; align-items: center; gap: 6px; }
.task.indent { padding-left: 2em; }
.task input { width: 16px; height: 16px; margin: 0 2px 0 0; accent-color: var(--interactive-accent); cursor: pointer; }
.task.done .task-text { color: var(--text-muted); text-decoration: line-through; }
.task-text { white-space: pre; }
.task-text:empty::before { content: " "; }
.note { padding-left: 2em; color: var(--text-muted); }
.note.top { padding-left: 0; }
.fence { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--text-faint); }
.hint { margin-top: 2.5em; padding-top: 1em; border-top: 1px dashed var(--background-modifier-border); color: var(--text-muted); font-size: 13px; }
.notices { position: fixed; top: 48px; right: 16px; display: grid; gap: 8px; z-index: 50; }
.notice { max-width: 360px; padding: 10px 14px; border-radius: 8px; background: #1e1e1e; color: #fff; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: notice-in .2s ease; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-6px); } }
.banner { height: 34px; display: flex; align-items: center; justify-content: center; gap: .3em; font: 12px/1.4 var(--font); color: #fff; background: #1a1a1acc; }
.banner a { color: #8ab4f8; }
.office-flow-progress-badge.is-armed { align-self: center; }
body.preview .banner, body.preview .hint { display: none; }
body.preview .app { height: 100%; }
