﻿.quick-input {
  position: fixed;
  left: var(--quick-left, 25%);
  bottom: max(18px, calc(var(--safe-bottom) + 24px));
  z-index: 20;
  display: grid;
  grid-template-areas: "mode text send";
  grid-template-columns: 118px minmax(0, 1fr) 90px;
  align-items: stretch;
  gap: 8px;
  width: var(--quick-width, max(640px, calc(100vw - 50%)));
  padding: 12px;
  border-radius: 999px;
  transform: none;
  border: 0;
  background-image: none;
  background-color: #16161a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 48px rgba(0, 0, 0, 0.8);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.quick-input textarea {
  grid-area: text;
  min-height: 42px;
  max-height: 120px;
  padding: 10px 70px 10px 12px;
  overflow: hidden;
  resize: none;
}

.quick-input select {
  grid-area: mode;
  min-height: 42px;
  padding: 0 8px;
}

.quick-input button {
  grid-area: send;
  min-height: 42px;
  align-self: stretch;
}

.quick-status {
  position: absolute;
  top: 50%;
  right: 120px;
  bottom: auto;
  max-width: min(180px, 28vw);
  min-width: 46px;
  min-height: 0;
  margin: 0;
  padding: 2px 4px;
  border-radius: 999px;
  background-color: rgba(8, 9, 12, 0.96);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1;
  overflow: hidden;
  pointer-events: none;
  text-align: right;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  white-space: nowrap;
  z-index: 1;
}

.quick-input button:disabled,
.quick-input textarea:disabled,
.quick-input select:disabled,
.todo-action:disabled {
  cursor: progress;
  opacity: 0.68;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + var(--safe-bottom));
  z-index: 30;
  width: min(520px, calc(100vw - 28px));
  padding: 12px 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background-color: rgba(12, 14, 14, 0.92);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateX(-50%);
}

.mobile-explorer {
  display: none;
}

.mobile-sheet-handle {
  width: 44px;
  height: 4px;
  margin: 2px auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mobile-sheet-header h3 {
  margin: 0;
}

.mobile-list-content {
  max-height: min(56vh, 520px);
  overflow: auto;
  padding-top: 14px;
}

/* Keep the glass fill on the whole surface; older per-component backgrounds
   were too transparent and made some panels look only partially covered. */
.folder-rail,
.topbar,
.list-pane,
.detail-pane,
.mobile-folder-strip,
.quick-input,
.mobile-explorer,
.daily-card,
.calendar-card,
.recent-card,
.list-item,
.stat-card,
.note-editor,
.frontmatter-box,
.mode-card,
.result-card,
.todo-meta-card,
.todo-description,
.todo-checklist,
.raw-note-panel {
  border-color: var(--stroke-soft);
  background-image: none;
  background-color: rgba(22, 22, 26, 0.96);
  background-clip: padding-box;
  box-shadow: var(--shadow-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.calendar-day,
.metric-pill,
.mode-buttons button,
.eta-pill,
.count-badge,
.mobile-folder-strip [data-folder-count] {
  background-image: none;
  background-color: rgba(22, 22, 26, 0.96);
  box-shadow: var(--shadow-card);
  border-color: var(--stroke-soft);
}

.quick-input {
  border: 0;
  background-image: none;
  background-color: #16161a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 48px rgba(0, 0, 0, 0.8);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* These surfaces should read as flat frosted slabs; directional gradients were
   still showing up as bright artifacts on the top bar and cards. */
.topbar::after {
  display: none;
}

.folder-button,
.folder-icon,
.logout-icon,
.mode-icon,
.brand-mark,
.login-form input,
.pane-heading input,
.quick-input textarea,
.quick-input select,
.note-editor textarea,
.mode-card textarea,
.mode-card input,
.mode-button[data-open-mode="daily"] .mode-icon,
.mobile-folder-strip [data-mobile-mode="daily"],
.login-form button,
.quick-input button,
.note-editor button,
.mode-card button {
  background-image: none;
}

.folder-button,
.logout-form button,
.login-form button,
.quick-input button,
.note-editor button,
.mode-card button,
.mode-icon,
.priority-dot {
  box-shadow: var(--shadow-card);
  border-color: var(--stroke-soft);
}

/* Keep the folder glyph wrappers fully transparent so the rail reads as one quiet column. */
.folder-icon,
.logout-icon {
  border-color: transparent;
  box-shadow: none;
}

.todo-open,
.todo-open:hover,
.todo-open:focus-visible {
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.quick-input {
  border-radius: 999px;
  background-color: var(--surface-smoke);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 48px rgba(0, 0, 0, 0.8),
    0 0 38px rgba(126, 226, 168, 0.08);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
}

.quick-input button,
.note-editor button {
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
  background-image: none;
  background-color: transparent;
  box-shadow: none;
  opacity: 0.52;
}

.quick-input:hover button,
.quick-input:focus-within button,
.note-editor:hover button,
.note-editor:focus-within button {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.quick-input button:hover,
.quick-input button:focus-visible,
.note-editor button:hover,
.note-editor button:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background-image: none;
  background-color: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.quick-input:focus-within {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 58px rgba(0, 0, 0, 0.82),
    0 0 58px rgba(126, 226, 168, 0.2);
}

.topbar,
.list-pane,
.detail-pane,
.mobile-folder-strip,
.mobile-explorer,
.daily-card,
.calendar-card,
.recent-card,
.list-item,
.stat-card,
.note-editor,
.frontmatter-box,
.mode-card,
.result-card,
.todo-meta-card,
.todo-description,
.todo-checklist,
.raw-note-panel {
  background-color: var(--surface-smoke);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
}

.folder-rail {
  border-color: transparent;
  background-color: transparent;
  box-shadow: none;
}

.detail-pane {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

