/* Susie HQ — additions to style.css for the Laravel app (sign-in, sign-out, files). */

/* Anything the scripts hide with the hidden attribute stays hidden, even when style.css gives it a display
   (e.g. .menu-item is display:flex, which would otherwise keep filtered-out picker options on screen). */
[hidden] { display: none !important; }

.hq-logout { display: inline; margin: 0; }
.hq-logout button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; opacity: 0.8; }
.hq-logout button:hover { opacity: 1; text-decoration: underline; }

.hq-login { max-width: 400px; margin: 48px auto 64px; }
.hq-login .card-body { padding: 28px; display: grid; gap: 18px; }
.hq-login h1 { margin: 0; font-size: 22px; }
.hq-login .form { display: grid; gap: 14px; }
.hq-remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-dim); }
.hq-remember input { accent-color: var(--blue); margin: 0; }

/* files on an item */
.hq-files { margin-bottom: 22px; }
.hq-files .hq-sec-head .n { color: var(--muted); font-size: 13px; font-weight: 500; }
.hq-drop {
  display: grid; gap: 8px; padding: 10px; border: 1px dashed var(--line2); border-radius: var(--r-sm);
  transition: border-color 0.15s, background 0.15s;
}
.hq-drop.is-over { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 5%, transparent); }
.hq-drop-hint { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px; font-size: 13px; color: var(--muted); }
.hq-drop-hint button { border: 0; background: none; padding: 0; font: inherit; color: var(--blue-ink); font-weight: 500; cursor: pointer; }
.hq-drop-hint button:hover { text-decoration: underline; }
.hq-file-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hq-file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border-radius: var(--r-xs); }
.hq-file:hover { background: var(--bg3); }
.hq-file-thumb {
  width: 40px; height: 40px; border-radius: var(--r-xs); background: var(--bg3); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase;
}
.hq-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hq-file-name { display: block; font-size: 14px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-file-meta { display: block; font-size: 12px; color: var(--muted); }
.hq-file-acts { display: flex; gap: 2px; opacity: 0; transition: opacity 0.15s; }
.hq-file:hover .hq-file-acts, .hq-file:focus-within .hq-file-acts { opacity: 1; }
.hq-file-acts a, .hq-file-acts button {
  border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: var(--r-xs); text-decoration: none;
}
.hq-file-acts a:hover, .hq-file-acts button:hover { background: var(--bg2); color: var(--ink); }
.hq-file-acts button.danger:hover { color: var(--red); }
.hq-file.is-uploading .hq-file-name { color: var(--ink-dim); }
.hq-progress { display: block; height: 4px; margin: 5px 0 3px; border-radius: 2px; background: var(--bg3); overflow: hidden; }
.hq-progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width 0.2s linear; }
@media (hover: none) { .hq-file-acts { opacity: 1; } }

.hq-sync-err { color: var(--red); }

/* several people on one item: overlapping avatars, then first names */
.hq-avatars { display: inline-flex; flex: none; }
.hq-avatars .avatar + .avatar { margin-left: -7px; box-shadow: 0 0 0 2px var(--bg2); }

/* comments posted by AI agents through the agent API */
.hq-agent-tag { font-size: 11px; font-weight: 500; color: var(--muted); padding: 1px 6px; border: 1px solid var(--line2); border-radius: var(--r-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.hq-cmt.is-agent .hq-cmt-body { color: var(--ink-dim); }

/* unread comments on a row */
.hq-ccount.is-unread { color: var(--on-blue); background: var(--blue); padding: 1px 6px; border-radius: 9px; font-weight: 600; }

/* links to people and AI agents */
.hq-plink { color: inherit; text-decoration: none; }
.hq-plink:hover { color: var(--blue-ink); text-decoration: underline; }
.hq-grid .hq-plink:hover { text-decoration: underline; }

/* profile panel (/users/12, /ai-agents/12) */
.hq-profile-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.hq-profile-head .avatar { width: 48px; height: 48px; font-size: 17px; border-radius: 12px; }
.hq-profile-head h2 { margin: 0; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.hq-profile-sub { margin: 0 0 18px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.hq-profile-sub b { color: var(--ink-dim); font-weight: 600; }
.hq-profile-sub code { font-size: 12px; }
.hq-profile-tabs { margin-bottom: 14px; flex-wrap: wrap; }
.hq-profile-tabs .n { color: var(--muted); font-weight: 500; margin-left: 2px; }
.hq-profile .hq-sec { border-top: 0; padding-top: 0; }
.hq-plist { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hq-prow { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r-xs); color: var(--ink); text-decoration: none; font-size: 14px; }
.hq-prow:hover { background: var(--bg3); }
.hq-prow .hq-id { flex: none; width: 64px; }
.hq-prow .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-prow .chip { flex: none; }
.hq-profile .hq-cmt { grid-template-columns: 0 minmax(0, 1fr); gap: 0; }
.hq-profile .hq-cmt-head { flex-wrap: wrap; }

/* the whole title cell opens the item */
.hq-grid tbody td[data-key="title"] { cursor: pointer; }
.hq-grid tbody td[data-key="title"]:hover .hq-title { color: var(--blue-ink); }

/* dashboard (/) */
.hq-dash { display: grid; gap: 24px; margin: 24px auto 48px; }
.hq-dash-stat { color: inherit; text-decoration: none; transition: border-color 0.15s; }
.hq-dash-stat:hover { border-color: var(--blue); }
.hq-dash-stat.is-alert .statbox-num { color: var(--red); }
.hq-dash .card-body { padding: 8px; }
.hq-dash .card-body > .hq-empty-feed { padding: 8px; margin: 0; }
.hq-dash .ability-meter { padding: 8px; }
.hq-dash-load .row { grid-template-columns: minmax(0, 150px) 1fr 32px; }
.hq-dash-load .hq-person { min-width: 0; }
.hq-dash-due { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hq-dash-ev { align-items: flex-start; }
.hq-dash-ev time { padding-top: 1px; }
.hq-dash .hq-feed { margin: 0; padding: 0 8px; }
@media (max-width: 960px) { .hq-dash-cols { grid-template-columns: minmax(0, 1fr); } }

/* the single-item page (/item/12): the item panel sits in the page instead of sliding over the table */
.hq-peek.hq-peek-page {
  position: static; translate: none; visibility: visible; width: auto; max-width: 900px; margin: 8px auto 48px;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; transition: none;
}
.hq-peek-page .hq-peek-scroll { overflow: visible; }
.hq-peek.hq-peek-page .hq-peek-in { padding-top: 24px; }
.hq-peek.is-single #hq-peek-close, .hq-peek.is-single #hq-peek-full, .hq-peek.is-single #hq-peek-pos,
.hq-peek.is-single #hq-peek-prev, .hq-peek.is-single #hq-peek-next { display: none; }
.hq-peek-bar .crumb a { color: inherit; }
.hq-peek-bar .crumb a:hover { color: var(--blue-ink); }
.hq-deleted { padding: 48px 40px; text-align: center; }
.hq-deleted h2 { margin: 0 0 8px; font-size: 20px; }
.hq-deleted p { margin: 0; color: var(--muted); }
.hq-dash-head { padding-top: 10px; }

/* the item panel (side peek, full page and /item/12): the title spans the panel; comments take the wide
   main column and the properties, files and change log sit in a narrower sidebar on the right.
   It responds to the panel's own width, not the window's, so the side peek gets it too. */
.hq-peek-in#hq-peek-body { container-type: inline-size; max-width: 1280px; }
.hq-peek.hq-peek-page { max-width: 1280px; }
.hq-page-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 0 28px; align-items: start; }
.hq-page-comments { min-width: 0; }
.hq-page-comments .hq-sec-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hq-page-comments .hq-sec-head h3 { font-size: 17px; }
.hq-page-comments .hq-cmt { padding: 16px 0; }
.hq-page-comments .hq-cmt .avatar, .hq-page-comments .hq-compose .avatar { width: 34px; height: 34px; }
.hq-page-comments .hq-cmt, .hq-page-comments .hq-compose { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
.hq-page-comments .hq-cmt-body { font-size: 15px; }
.hq-page-comments .hq-compose textarea { min-height: 88px; }
.hq-page-side { min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); font-size: 13px; }
.hq-page-side .hq-props { grid-template-columns: 92px minmax(0, 1fr); font-size: 13px; }
.hq-page-side .hq-pval { font-size: 13px; min-height: 30px; padding: 4px 6px; }
.hq-page-side .hq-props dt { min-height: 30px; font-size: 12px; }
.hq-page-side .hq-sec-head h3 { font-size: 13px; }
.hq-page-side .hq-sec + .hq-sec { margin-top: 18px; }
.hq-log { max-height: 420px; overflow: auto; margin-bottom: 0; }
.hq-log .hq-ev { font-size: 12px; align-items: flex-start; }
.hq-log .hq-ev .dot { width: 12px; padding-top: 5px; }
@container (min-width: 960px) {
  .hq-page-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 0 40px; }
  .hq-page-side { padding-left: 24px; }
  .hq-page-side .hq-props { grid-template-columns: 104px minmax(0, 1fr); }
}
@container (max-width: 600px) {
  .hq-page-cols { grid-template-columns: minmax(0, 1fr); }
  .hq-page-side { order: -1; padding-left: 0; border-left: 0; margin-bottom: 24px; }
}
