/* Shared notepad: inherits the dashboard's paper/glass palette. */
.today-notepad { margin-top: 24px; padding: 14px; border: 1px solid rgba(128,128,128,.22); border-radius: 12px; background: rgba(255,255,255,.09); }
.today-notepad label { display: block; margin-bottom: 10px; }
.today-notepad textarea { box-sizing: border-box; width: 100%; min-height: 180px; resize: vertical; padding: 12px; border: 1px solid rgba(128,128,128,.28); border-radius: 7px; background: rgba(255,255,255,.5); color: inherit; font: inherit; font-size: 14px; line-height: 1.6; }
.today-notepad-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.today-notepad-actions span { margin-left: auto; font-size: 11px; opacity: .75; }
.today-notepad button, .companion-toolbar button, .companion-running button, .companion-welcome button { font: inherit; color: inherit; border: 1px solid rgba(128,128,128,.3); background: rgba(255,255,255,.18); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.today-notepad button:disabled { opacity: .45; cursor: default; }
.today-notepad-conflict { font-size: 12px; line-height: 1.6; margin-top: 10px; }
.today-notepad-conflict button { margin-top: 8px; }
body[data-theme="dark"] .today-notepad textarea { background: rgba(0,0,0,.18); }
body[data-style="paper"] .today-notepad { border-radius: 2px; background: rgba(240,218,148,.16); }
body[data-style="paper"] .today-notepad textarea { border-radius: 2px; }
html[data-companion], html[data-companion] body { width: 100%; height: 100%; overflow: hidden; min-width: 0; }
/* The native window is transparent: leave the actual desktop visible at corners. */
html[data-companion], html[data-companion] body { background: transparent !important; background-image: none !important; }
html[data-companion] body { clip-path: inset(0 round 20px); }
html[data-companion] body::before, html[data-companion] body::after { display: none !important; }
html[data-companion] .app-header, html[data-companion] .app-main,
html[data-companion] .wrench-btn, html[data-companion] #mobile-shell,
html[data-companion] .sticky-note, html[data-companion] #time-tracking-card { display: none !important; }
html[data-companion] #sticky-note-btn { display: none !important; }
html[data-companion] .today-modal { inset: 0; padding: 0; z-index: 100; background: var(--card, #fff); }
html[data-companion] .today-backdrop { display: none; }
html[data-companion] .today-dialog { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; border-radius: 20px !important; box-shadow: none !important; margin: 0; overflow: hidden; }
html[data-companion] .today-header { padding: 16px 20px; -webkit-app-region: drag; app-region: drag; }
html[data-companion] .today-header button { -webkit-app-region: no-drag; app-region: no-drag; }
html[data-companion] .today-body { grid-template-columns: minmax(0, 1.35fr) minmax(210px, 1fr); padding: 18px 20px; gap: 20px; flex: 1; min-height: 0; }
html[data-companion] .today-body[hidden], .companion-all[hidden], .companion-running[hidden], .companion-welcome[hidden] { display: none !important; }
.companion-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0 20px 12px; gap: 10px; border-bottom: 1px solid rgba(128,128,128,.22); }
.companion-size { display: flex; align-items: center; gap: 3px; }
.companion-size[hidden] { display: none; }
.companion-size span { font-size: 11px; opacity: .7; margin-right: 3px; }
.companion-size button { font-size: 11px; padding: 5px 7px; }
.companion-size button[aria-pressed="true"] { background: rgba(128,128,128,.2); font-weight: 600; }
.companion-appearance { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 20px; border-bottom: 1px solid rgba(128,128,128,.2); font-size: 12px; }
.companion-appearance label { display: flex; align-items: center; gap: 8px; }
.companion-appearance select { font: inherit; color: inherit; background: var(--card, #fff); border: 1px solid rgba(128,128,128,.3); border-radius: 6px; padding: 5px 8px; }
.companion-appearance > span { margin-left: auto; opacity: .65; font-size: 11px; }
.companion-tabs { display: flex; padding: 3px; border-radius: 8px; background: rgba(128,128,128,.1); }
.companion-tabs button { border: 0; white-space: nowrap; }
.companion-tabs button[aria-selected="true"] { background: rgba(128,128,128,.2); font-weight: 600; }
.companion-account { display: flex; align-items: center; gap: 7px; min-width: 0; margin-left: auto; }
.companion-account [data-account] { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.companion-sync { font-size: 11px; opacity: .7; }
.companion-running { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid rgba(128,128,128,.2); background: rgba(26,137,104,.08); }
.companion-running-dot { width: 7px; height: 7px; border-radius: 50%; background: #149c78; flex-shrink: 0; }
.companion-running .companion-running-name { border: 0; background: transparent; flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; font-size: 13px; }
.companion-running time { font: 13px 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.companion-all { flex: 1; min-height: 0; overflow: auto; padding: 18px 20px; }
.companion-all > input { box-sizing: border-box; width: 100%; padding: 11px 13px; border: 1px solid rgba(128,128,128,.3); background: rgba(255,255,255,.15); color: inherit; border-radius: 7px; font: inherit; margin-bottom: 16px; }
.companion-all .today-color-group { margin-bottom: 12px; }
.companion-welcome { padding: 70px 30px; text-align: center; }
.companion-welcome h2 { font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.companion-welcome p { opacity: .75; margin: 15px 0 24px; }
@media (max-width: 620px) {
  html[data-companion] .today-body { grid-template-columns: 1fr; }
  .companion-sync { display: none; }
  .companion-size { order: 3; width: 100%; justify-content: flex-end; }
  .companion-account [data-account] { max-width: 100px; }
}
