/* Additions for the hosted DV OS. Base look comes from style.css (shared with the MacBook dashboard). */
.brand { text-decoration: none; }
nav a { text-decoration: none; }
.user-switch { display: flex; align-items: center; gap: 10px; margin: 0; }
.signout { background: none; border: 0; color: #b8ad95; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.signout:hover { color: var(--paper); }
.flash { background: var(--paper-2); border: 2px solid var(--ink); border-left: 6px solid var(--mint); padding: 10px 14px; margin: 0 0 18px; }
.flash.err { border-left-color: var(--coral); }

.inline { display: inline-flex; gap: 6px; align-items: center; margin: 6px 0 0; }
select, input[type=text], input[type=email], textarea {
  font: inherit; font-size: 13px; color: var(--ink); background: #fff;
  border: 1px solid var(--ink); padding: 5px 8px; border-radius: 0;
}
textarea { width: 100%; min-height: 110px; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.small-btn { font-size: 10px !important; padding: 4px 9px !important; }
.ready-row button { all: unset; cursor: pointer; display: flex; gap: 8px; align-items: center; width: 100%; }
.ready-row button:focus-visible { outline: 2px solid var(--ink); }
.box { width: 14px; height: 14px; border: 2px solid var(--ink); display: inline-block; flex: none; }
.box.on { background: var(--coral); border-color: var(--coral); }

.signin { max-width: 520px; margin: 10vh auto; }
.signin .card { padding: 28px 30px; }
.signin p { margin: 10px 0 18px; }

.doc-view { display: grid; gap: 10px; }
.doc-view iframe { width: 100%; height: calc(100vh - 230px); border: 2px solid var(--ink); background: #fff; box-shadow: var(--shadow); }
.crumbs { font-size: 13px; }
.crumbs a { color: var(--ink); }
a.doc-row { color: inherit; text-decoration: none; }

fieldset { border: 2px solid var(--ink); background: var(--paper-2); padding: 14px 18px; margin: 0 0 18px; box-shadow: var(--shadow); }
legend { font-family: "Bitcount Prop Single", monospace; font-weight: 600; text-transform: uppercase; padding: 0 6px; }
.field { display: grid; gap: 4px; margin: 8px 0 12px; }
.field label { font-weight: 600; font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 14px; }
.checks label { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.checks input { accent-color: var(--coral); }
details.folders { margin: 4px 0; }
details.folders summary { cursor: pointer; font-weight: 600; font-size: 13px; }

@media (max-width: 760px) {
  body > header { flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
  nav { order: 3; width: 100%; overflow-x: auto; }
  main { padding: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Wix injects its own elements into <body>, which breaks a fixed three-row grid. */
body { display: flex; flex-direction: column; min-height: 100vh; height: auto; }
main { flex: 1; overflow: visible; }
a.run-btn { display: inline-block; text-decoration: none; }
a.run-btn:hover { color: var(--paper); }
.card .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }

/* Links in page content: brand ink with a coral underline, not browser blue/purple */
main a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
main a:not(.run-btn):not(.doc-row):hover { text-decoration-thickness: 3px; background: rgba(232,74,44,0.08); }

/* Command + Copy rows: command fills the row so every Copy button lines up on the right */
.field > .inline { display: flex; align-items: stretch; }
.field > .inline code { flex: 1; min-width: 0; padding: 8px 10px; font-size: 12px; overflow-wrap: anywhere; display: flex; align-items: center; }
.field > .inline .copy { flex: none; }

/* Client view (/client): one client's documents, status, comments and uploads. */
.client { max-width: 880px; }
.client .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 4px; }
.client h1 { margin: 0 0 14px; }
.client section { margin: 28px 0; }
.client h2 { margin: 0 0 10px; }
.status-panel { background: var(--paper-2); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 16px 18px; }
.status-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.status-cols h3 { font-size: 14px; margin: 0 0 6px; }
.status-cols ul { margin: 0; padding-left: 18px; }
.status-cols li { margin: 4px 0; }
.client .doc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; text-decoration: none; }
.client .doc-row .doc-title { color: var(--ink); font-weight: 600; }
.doc-links { font-size: 13px; }
.doc-links a { color: var(--ink); }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.run-btn.ghost { background: transparent; color: var(--ink); }
.run-btn.ghost:hover { color: var(--paper); }
.client-doc iframe { width: 100%; height: 70vh; border: 2px solid var(--ink); background: #fff; box-shadow: var(--shadow); }
.comments { list-style: none; padding: 0; margin: 0 0 12px; }
.comments li { border-left: 3px solid var(--ink); padding: 4px 12px; margin: 10px 0; }
.comment-head { margin: 0; font-size: 13px; }
.comment-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.client textarea { width: 100%; min-height: 110px; }
.owner-only { border-top: 2px dashed var(--line); padding-top: 18px; }
.client :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 720px) { .status-cols { grid-template-columns: 1fr; } }
