/* Сохранённые промпты в окне задачи: короткое меню и обычный picker. */

.panel-more {
  position: absolute; top: 14px; right: 52px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: var(--radius);
  color: var(--muted); cursor: pointer; letter-spacing: .08em;
}
.panel-more:hover, .panel-more[aria-expanded="true"] { color: var(--fg-strong); background: var(--field); }

.task-prompt-menu {
  position: absolute; z-index: 45; top: 58px; right: 12px;
  width: 260px; padding: 6px;
  background: var(--field); border: 1px solid var(--field-border); border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
}
.task-prompt-menu[hidden] { display: none; }
.task-prompt-menu button {
  display: block; width: 100%; padding: 9px 10px;
  background: none; border: 0; border-radius: var(--radius);
  text-align: left; color: var(--fg-row); cursor: pointer;
}
.task-prompt-menu button:hover { background: var(--bg); color: var(--fg-strong); }
.task-prompt-menu button[hidden] { display: none; }
.task-prompt-menu-sep { display: block; margin: 5px 4px; border-top: 1px solid var(--rule); }

.task-prompt-picker { width: 320px; }
.task-prompt-picker .picker-option { padding-block: 9px; }

@media (max-width: 768px) {
  .panel-more { position: static; flex: 0 0 48px; height: 48px; border: 1px solid var(--ghost-border); }
  .task-prompt-menu {
    top: auto; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); left: 16px; width: auto;
  }
  .task-prompt-picker {
    top: auto !important; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    left: 16px !important; width: auto !important;
  }
}
