/* The Digital Office home, as approved in mockup 3 (owner, 11 Nov 2026): clean, white, one company at a time, four parts. */
:root { --bg: #ffffff; --soft: #f6f7f9; --line: #e6e8ee; --text: #111827; --sub: #5b6476; --mute: #9aa1b0; --blue: #3b5bff; --green: #12a46b; --amber: #d98a00; --red: #e04545; --c: #ff7a2f; }
* { box-sizing: border-box; }
html, body { min-height: 100%; background: var(--bg); }
body { margin: 0; color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.logo { font-weight: 800; letter-spacing: -.01em; font-size: 18px; }

.login { max-width: 360px; margin: 14vh auto 0; padding: 0 22px; }
.login .logo { display: block; text-align: center; margin-bottom: 24px; font-size: 22px; }
.login label { display: block; color: var(--sub); font-size: 14px; margin: 14px 0 6px; }
.login input { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 18px; color: var(--text); }
.login button { width: 100%; margin-top: 22px; padding: 15px; border: 0; border-radius: 12px; background: var(--text); color: #fff; font-weight: 800; font-size: 17px; }
.error { color: var(--red); margin-top: 12px; }

.app { max-width: 1200px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 28px; }
.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.avatar { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--text); color: #fff; font-weight: 800; font-size: 14px; }
.co-switch { display: flex; gap: 6px; flex-wrap: wrap; order: 3; width: 100%; }
.co-switch button { border: 0; font-size: 14px; font-weight: 700; padding: 7px 13px; border-radius: 999px; background: var(--soft); color: var(--sub); }
.co-switch button.on { background: #fff3ec; color: #b4481a; box-shadow: inset 0 0 0 1px #ffd6bf; }
.co-switch button.on.tv { background: #eef3ff; color: #2c5fd6; box-shadow: inset 0 0 0 1px #cfdcff; }
.co-switch button i { font-style: normal; margin-right: 4px; }
.co-switch .muted { color: var(--mute); }

.paused-bar { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; color: var(--sub); font-size: 14px; margin-bottom: 12px; }
.needs { display: flex; align-items: center; gap: 12px; background: #fff8e6; border: 1px solid #ffe2a3; border-radius: 14px; padding: 11px 14px; font-weight: 600; margin-bottom: 14px; }
.needs b { font-size: 22px; color: var(--amber); }
.needs span { flex: 1; min-width: 0; font-size: 15px; }

.grid { display: grid; gap: 12px; }
.tile { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-decoration: none; color: inherit; background: #fff; }
.tile:active { background: var(--soft); }
.t-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none; }
.t-ic.agents { background: #eef1ff; } .t-ic.posting { background: #ecfbf4; } .t-ic.competitors { background: #fff4e8; } .t-ic.seo { background: #f1edff; }
.tile b { font-size: 17px; display: block; }
.tile p { color: var(--sub); font-size: 14px; }
.tile em { margin-left: auto; font-style: normal; color: var(--mute); font-size: 22px; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.state.down { color: var(--red); } .state.down::before { background: var(--red); }

.working { margin-top: 18px; }
.lbl { font-size: 11px; letter-spacing: .14em; font-weight: 800; color: var(--mute); margin-bottom: 8px; }
.job { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; margin-bottom: 8px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.job::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #12a46b88; } 70% { box-shadow: 0 0 0 7px #12a46b00; } }

.foot { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.link { background: none; border: 0; color: var(--sub); font-size: 14px; text-decoration: underline; padding: 6px 0; }

@media (min-width: 900px) {
  .app { padding: 22px 28px 32px; }
  .co-switch { order: 0; width: auto; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .tile { flex-direction: column; align-items: flex-start; padding: 18px; min-height: 180px; }
  .tile em { margin-left: 0; margin-top: auto; font-size: 14px; color: var(--blue); font-weight: 700; }
  .tile em::before { content: "Open "; }
}

.sheet { position: fixed; inset: 0; z-index: 20; background: #11182766; display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { width: min(560px, 100%); max-height: 92vh; background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; }
.sheet-box header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 8px; }
.sheet-box h2 { font-size: 18px; }
.sheet-box header button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
#sheet-body { overflow-y: auto; padding: 4px 20px 24px; }
#sheet-body p { color: var(--sub); margin-bottom: 10px; }
.form label { display: block; color: var(--sub); font-size: 14px; margin: 12px 0 6px; }
.form input, .form select { width: 100%; padding: 13px; border-radius: 12px; border: 1px solid var(--line); font-size: 17px; background: #fff; color: var(--text); }
.form button { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 12px; background: var(--text); color: #fff; font-weight: 800; font-size: 16px; }
.msg { margin-top: 12px; font-size: 15px; } .msg.bad { color: var(--red); } .msg.good { color: var(--green); }
.cred { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; }
.cred b { display: block; margin-bottom: 4px; }
.cred .row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); margin-top: 4px; }
.cred code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: var(--soft); border-radius: 8px; padding: 6px 8px; color: var(--text); font-size: 14px; }
.cred .row button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 700; }
.cred a { color: var(--blue); font-weight: 700; font-size: 14px; display: inline-block; margin-top: 6px; }
@media (min-width: 900px) { .sheet { align-items: center; } .sheet-box { border-radius: 22px; } }

/* the live team (mockup 4) */
.teamwrap { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 900px) { .teamwrap { grid-template-columns: 1fr 360px; gap: 24px; } }
.teamcol, .sidecol { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: var(--green); letter-spacing: .08em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }
.live.off { color: var(--mute); } .live.off i { background: var(--mute); animation: none; }
.none { color: var(--mute); font-size: 14px; }
.flow { display: flex; flex-direction: column; }
.ag { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; background: #fff; min-width: 0; }
.ag > i { font-style: normal; width: 38px; height: 38px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 19px; flex: none; }
.ag > div { min-width: 0; flex: 1; }
.ag b { font-size: 15px; margin-right: 6px; }
.ag p { font-size: 14px; color: var(--sub); overflow-wrap: anywhere; }
.ag small { font-size: 12px; color: var(--mute); display: block; }
.ag.run { border-color: #bfeedd; box-shadow: 0 0 0 3px #12a46b14; }
.ag.run > i { background: #e8f8f0; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }
.ag.err { border-color: #f6c7c7; } .ag.idle { opacity: .85; }
.st { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--mute); white-space: nowrap; }
.st.run { background: #e8f8f0; color: var(--green); } .st.err { background: #fdecec; color: var(--red); } .st.wait { background: #fff4dc; color: var(--amber); }
.bar { height: 6px; border-radius: 3px; background: #eef0f4; margin: 6px 0 3px; overflow: hidden; }
.bar u { display: block; height: 100%; width: 60%; border-radius: 3px; background: linear-gradient(90deg, var(--green), #6fe0b4, var(--green)); background-size: 200% 100%; animation: flow 1.5s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.pipe { height: 20px; display: flex; justify-content: center; }
.pipe em { width: 2px; height: 100%; background: #d6dbe5; position: relative; }
.pipe.go em::after { content: ""; position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: drop 1.2s linear infinite; }
@keyframes drop { from { top: -4px; opacity: 1; } to { top: 16px; opacity: .2; } }
.lvl { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.lvl.one { grid-template-columns: 1fr; }
@media (min-width: 900px) { .lvl { grid-template-columns: repeat(4, 1fr); } .lvl.one { grid-template-columns: minmax(0, 420px); justify-content: center; } }
.lvl .ag.sm { flex-direction: column; gap: 6px; padding: 10px; }
.lvl .ag.sm > i { width: 32px; height: 32px; font-size: 16px; }
.lvl .ag.sm b { display: block; font-size: 14px; }
.ok { border: 1px solid #ffe2a3; background: #fffaf0; border-radius: 18px; padding: 12px; display: grid; gap: 10px; }
.ok-h { font-weight: 700; } .ok-h b { color: var(--amber); font-size: 20px; margin-right: 4px; }
.ok-item { background: #fff; border: 1px solid #f3e1b8; border-radius: 14px; padding: 10px 12px; }
.ok-item .who { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.ok-item p { font-size: 15px; font-weight: 600; margin: 2px 0 8px; overflow-wrap: anywhere; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btns button { font-size: 13px; font-weight: 800; padding: 8px 13px; border-radius: 10px; border: 0; background: var(--soft); }
.btns .yes { background: var(--green); color: #fff; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--sub); }
.feed li:first-child { border-top: 0; }
.feed time { color: var(--mute); flex: none; font-variant-numeric: tabular-nums; }
.feed b { color: var(--text); }
.tools-lbl { margin-top: 6px; }

/* give the Manager a task */
.taskbox { border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; margin-bottom: 16px; background: #fff; box-shadow: 0 4px 18px #1118270a; }
.taskbox label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.taskrow { display: flex; gap: 8px; align-items: stretch; }
.taskrow textarea { flex: 1; min-width: 0; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text); }
.taskrow button { border: 0; border-radius: 12px; background: var(--text); color: #fff; font-weight: 800; padding: 0 18px; }
.taskbox .msg { font-size: 14px; margin-top: 6px; } .taskbox .msg:empty { display: none; }
.report { white-space: pre-wrap; font-size: 14px; color: var(--sub); max-height: 7.5em; overflow: hidden; margin: 4px 0 6px; overflow-wrap: anywhere; }
.report.open { max-height: none; }
.more { background: none; border: 0; color: var(--blue); font-weight: 700; font-size: 13px; padding: 0 0 8px; }

.taskbtns { display: flex; flex-direction: column; gap: 6px; }
.taskbtns button { flex: 1; min-height: 42px; }
.taskrow .mic { background: var(--soft); color: var(--text); font-size: 20px; padding: 0 14px; }
.taskrow .mic.on { background: #fdecec; box-shadow: 0 0 0 0 #e0454588; animation: micpulse 1.2s infinite; }
@keyframes micpulse { 70% { box-shadow: 0 0 0 10px #e0454500; } }

/* videos to watch (12 Nov 2026): played inside the office */
.videos { margin-top: 22px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 10px; }
.vid { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; }
.vid video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 520px; background: #000; }
.vid figcaption { background: #fff; padding: 8px 10px; font-size: 13px; color: var(--sub); }
.vid figcaption b { color: var(--text); text-transform: capitalize; }
