/* Additions to the wireframe's style.css for the real app. */
.topbar form { margin: 0; } .topbar-link { color: #d1d5db; }
.inline { display: inline; margin: 0; }
.signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.signin .card { width: 360px; } .signin h1 { margin-bottom: 16px; } .signin .logo { color: #fff; }
.signin .btn { margin-top: 6px; }
.signin p { margin-bottom: 10px; } .signin .banner { margin-bottom: 12px; }
.signin-dev { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.label .input, .label textarea, .label .select { display: block; margin-top: 4px; font-weight: 400; }
select.input { width: 100%; margin-bottom: 10px; }
/* A <dialog> wears the wireframe's .modal; the form inside carries the flex column. */
dialog.modal { border: 0; padding: 0; }
dialog.modal:not([open]) { display: none; }
dialog.modal::backdrop { background: rgba(0, 0, 0, .4); }
dialog.modal > form, dialog.modal > .modal-form { display: flex; flex-direction: column; min-height: 0; margin: 0; }
a.tab { text-decoration: none; }
a.kcard, a.icard-main { display: block; color: inherit; text-decoration: none; }
.kcard select { margin-top: 6px; }
.row-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.row-form .input, .row-form .select { width: auto; margin: 0; }
.prewrap { white-space: pre-wrap; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
a.x { text-decoration: none; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; } .checks label { font-size: 13px; }
a.chip { text-decoration: none; } a.chip:hover { background: var(--indigo-100); }
[hidden] { display: none !important; }

/* Boards you can drag on (Bets, Products, Roadmap). */
[data-move] [data-drag] { cursor: grab; user-select: none; -webkit-user-select: none; }
[data-move] [data-drag].dragging { cursor: grabbing; position: relative; z-index: 50; opacity: .92; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
[data-move] .kcol.drop-over { outline: 2px dashed #4f46e5; outline-offset: 2px; background: #e0e7ff; }
.steps { margin: 4px 0 0 18px; padding: 0; line-height: 1.9; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: #f3f4f6; padding: 1px 5px; border-radius: 4px; }

/* Phones and narrow windows: one column, the page scrolls as a whole, the menu is a strip that scrolls sideways. */
@media (max-width: 760px) {
  #app, .body, .main { height: auto; overflow: visible; }
  .body { flex-direction: column; }
  .main { padding: 16px 12px; }
  .topbar { height: auto; flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .topbar .ws, .topbar .sep, .topbar label { display: none; }
  .topbar .select { max-width: 150px; }
  .topbar form[role=search] { order: 1; flex-basis: 100%; }
  .search { width: 100%; }
  .sidebar { width: auto; border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .sidebar nav { display: flex; overflow-x: auto; }
  .sidebar .nav-sec { flex-shrink: 0; border-bottom: 0; padding: 8px 6px; }
  .sidebar .nav-sec ul { display: flex; gap: 2px; }
  .nav-item { white-space: nowrap; }
  .page-head { flex-wrap: wrap; align-items: flex-start; }
  .page-head .actions, .actions, .drawer-actions { flex-wrap: wrap; }
  .grid-2, .grid-3, .grid-side, .grid-form, .kanban, .kanban-5, .kanban:not(.kanban-5) { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kcol { min-height: 0; }
  .table-wrap { overflow-x: auto; }
  .tabs { overflow-x: auto; }
  .tab { white-space: nowrap; }
  .outcome { flex-wrap: wrap; } .outcome-bar { width: 100%; }
  .setup { columns: 1; }
  .between { flex-wrap: wrap; }
  .btn { white-space: normal; }
}

/* Accessibility: a link inside running text is underlined, not told apart by its color alone (WCAG 1.4.1). */
p .link, .muted .link, li > .link:not(:only-child) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
