/* Live platform additions on top of app.css: links styled as the demo's buttons, account area, sign-in forms, field errors. */
a.card, a.cat, .logo-row a, .popular a, .tabs a, .links a, .f-col a, .acct { text-decoration: none; color: inherit }
a.btn { text-decoration: none; color: inherit }
a.btn.primary, a.btn.on-dark { color: #fff }
a.btn.white { color: #0B1324 }
a.linkbtn { text-decoration: none }
a.linkbtn:hover, .f-col a:hover { text-decoration: underline }
.links a { border-radius: 0; padding: 0 10px; font-weight: 550; font-size: .92rem; color: var(--muted); position: relative; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap }
.links a:hover, .links a[aria-current="page"] { color: var(--ink) }
.links a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad) }
@media (max-width:1240px) {
  .links a { padding: 12px 10px; border-radius: 8px; width: 100% }
  .links a:hover { background: var(--bg) }
  .links a[aria-current="page"] { background: var(--soft); color: var(--primary) }
  .links a[aria-current="page"]::after { display: none }
}
.tabs a { padding: 9px 18px; border-radius: 8px; font-weight: 700; color: var(--muted); cursor: pointer }
.tabs a[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.12) }
.popular a { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: .84rem; font-weight: 500; color: var(--ink) }
.popular a:hover { border-color: var(--primary); color: var(--primary) }
.logo-row a { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: .95rem; opacity: .78; transition: opacity .15s; padding: 4px }
.logo-row a:hover { opacity: 1 }
.f-col a { color: var(--muted); font-size: .9rem }
.f-col a:hover { color: var(--ink) }
.pricing-bar { align-items: center }

/* header account area */
#hdrAuth { display: flex; align-items: center; gap: 8px }
.acct { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); max-width: 220px }
:root[dir="rtl"] .acct { padding: 4px 4px 4px 10px }
.acct:hover { border-color: #C9CED8 }
.acct .logo-tile { width: 30px; height: 30px; font-size: .72rem }
.acct-name { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer }
.icon-btn:hover { color: var(--ink); border-color: #C9CED8 }
@media (max-width:820px) { .acct-name, .hide-sm { display: none } .acct { padding: 3px } }
@media (max-width:420px) { #hdrAuth .btn.ghost { display: none } }

/* email confirmation banner */
.banner { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); font-size: .88rem }
.banner-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-block: 10px }
.banner .linkbtn { color: inherit; text-decoration: underline }

/* sign-in pages */
.auth { display: grid; place-items: start center; padding-block: 24px 40px }
.auth-card { width: min(460px, 100%); padding: clamp(24px, 5vw, 40px); display: grid; gap: 22px; box-shadow: var(--shadow-lg) }
.auth-head { display: grid; gap: 8px }
.auth-head h1 { font-size: clamp(1.6rem, 3vw, 2rem) }
.auth-alt { text-align: center; font-size: .92rem; color: var(--muted) }
.auth-alt a { color: var(--purple); font-weight: 600 }
.role-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.role-pick legend { font-weight: 600; font-size: .85rem; margin-bottom: 6px; padding: 0 }
.role-opt { position: relative; cursor: pointer }
.role-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer }
.role-opt span { display: grid; gap: 8px; justify-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); height: 100% }
.role-opt strong { color: var(--ink); font-size: .9rem }
.role-opt input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: var(--soft); color: var(--primary) }
.role-opt input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px }
.pw-wrap { position: relative; display: block }
.pw-wrap input { padding-inline-end: 64px !important }
.pw-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--purple); font-weight: 600; font-size: .8rem; cursor: pointer; padding: 6px }
.hint { font-weight: 400; font-size: .8rem; color: var(--muted) }

/* field errors */
.ferr { color: var(--bad); font-size: .8rem; font-weight: 500 }
[aria-invalid="true"] { border-color: var(--bad) !important }
.form-msg:focus { outline: none }
.field input:disabled { background: var(--bg); color: var(--muted) }

/* misc */
.filters5 { grid-template-columns: 2fr 1fr 1fr 1fr 1fr }
@media (max-width:980px) { .filters5 { grid-template-columns: 1fr 1fr } .filters5 input { grid-column: 1/-1 } }
.dlg.wide { width: min(860px, calc(100% - 32px)) }
.dlg .paper { margin-top: 4px }
.myjob-body { display: grid; gap: 8px }
.apps { padding: 0 6px 6px }

/* messages and interviews */
a.thread { text-decoration: none; color: inherit }
.iv-actions .btn.danger-o { color: var(--bad) }

/* footer legal links */
.f-bottom a { color: inherit }
.f-bottom a:hover { color: var(--ink) }

/* receipts print on their own */
@media print { body > *:not(#dlgHost) { display: none !important } #dlgHost .dlg { position: static; box-shadow: none; border: 0; width: 100% } #dlgHost .dlg-foot, #dlgHost .icon-x { display: none } }

/* ---------- portfolio ---------- */
.pf-own-list{display:grid;gap:16px}
.pf-own,.pf-card{display:grid;gap:12px}
.pf-desc{margin:0;white-space:pre-line;color:var(--muted)}
.pf-link{display:inline-flex;gap:6px;align-items:center;font-weight:600;font-size:.88rem;color:var(--primary);text-decoration:none;word-break:break-all}
.pf-imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.pf-img{position:relative;aspect-ratio:4/3;border-radius:10px;overflow:hidden;background:var(--bg);border:1px solid var(--line)}
.pf-zoom{all:unset;display:block;width:100%;height:100%;cursor:zoom-in}
.pf-zoom:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.pf-img img{width:100%;height:100%;object-fit:cover;display:block}
.pf-del{position:absolute;top:6px;inset-inline-end:6px;width:28px;height:28px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;font-size:1.1rem;line-height:1;cursor:pointer}
.pf-del:hover{background:var(--bad)}
.pf-add{aspect-ratio:4/3;border:2px dashed var(--line);border-radius:10px;display:grid;place-items:center;align-content:center;gap:4px;text-align:center;cursor:pointer;color:var(--primary);font-weight:600;font-size:.88rem;padding:8px}
.pf-add:hover,.pf-add:focus-within{border-color:var(--primary);background:var(--soft)}
.yt{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:12px;overflow:hidden;background:#000 center/cover no-repeat;cursor:pointer;padding:0}
.yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.yt-play{position:absolute;inset:0;margin:auto;width:68px;height:48px;border-radius:14px;background:rgba(0,0,0,.72)}
.yt-play::after{content:"";position:absolute;inset:0;margin:auto;width:0;height:0;border-style:solid;border-width:10px 0 10px 17px;border-color:transparent transparent transparent #fff;transform:translateX(2px)}
.yt:hover .yt-play{background:#e00}
.pf-block{display:grid;gap:12px;margin-top:18px}
.pf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.pf-grid .pf-card{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--surface)}
.pf-grid .pf-card h4{margin:0}
.lightbox{max-width:min(96vw,1600px);max-height:94vh;padding:0;border:0;background:transparent;overflow:visible}
.lightbox::backdrop{background:rgba(0,0,0,.85)}
.lightbox img{display:block;max-width:96vw;max-height:90vh;object-fit:contain;border-radius:8px}
.lightbox .icon-x{position:absolute;top:-14px;inset-inline-end:-14px;background:#fff;color:#000;border-radius:50%;width:34px;height:34px}.pf-own .yt{max-width:560px}

/* ---------- profile photo, logo, company photos ---------- */
.pic-field{display:grid;grid-template-columns:88px minmax(0,1fr);gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.pic-prev{width:88px;height:88px;border-radius:14px;background:var(--bg);border:1px solid var(--line);display:grid;place-items:center;overflow:hidden;color:var(--muted)}
.pic-prev.round{border-radius:50%}
.pic-prev img{width:100%;height:100%;object-fit:contain}
.pic-prev.round img{object-fit:cover}
#profile .pic-field{margin-bottom:12px}
.co-photos{display:grid;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.co-gallery{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
.p-photo{width:6.5em;height:6.5em;border-radius:50%;object-fit:cover;flex:none;border:.2em solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.p-classic .p-head.has-photo{display:flex;gap:1.6em;align-items:center}
.p-modern .p-side .p-photo{width:8em;height:8em;justify-self:center;border-color:rgba(255,255,255,.2)}
.pf-noprev{display:grid;place-items:center;height:100%;padding:8px;font-size:.75rem;color:var(--muted);text-align:center;word-break:break-all}
.pf-form .pf-imgs{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
/* the Add project button stays in view at the bottom of the screen while the form is being filled in */
.pf-submit{position:sticky;bottom:0;z-index:2;background:var(--surface);padding:12px 0;margin-bottom:-12px;border-top:1px solid var(--line);align-items:center}

/* ---------- teams ---------- */
.tm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.tm-card{display:grid;gap:10px;align-content:start;text-decoration:none;color:inherit;padding:18px}
a.tm-card:hover{border-color:var(--primary)}
.tm-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.tm-card h3{margin:0;font-size:1.05rem}
.tm-idea{margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.tm-last{margin:0;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm-card-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.tm-card .job-top .logo-tile,.inv-list .logo-tile{width:36px;height:36px;font-size:.8rem}
.hit-t{color:var(--ok);font-weight:600}
.tm-note{font-size:.85rem;font-style:italic;color:var(--muted)}
.tm-invites li{display:flex;gap:12px;align-items:center;padding:14px;flex-wrap:wrap}
.tm-faces{display:inline-flex}
.tm-faces .logo-tile{width:28px;height:28px;font-size:.65rem;margin-inline-end:-8px;border:2px solid var(--surface)}
.tm-chat{display:grid;grid-template-rows:minmax(320px,60vh) auto;overflow:hidden;padding:0}
.tm-chat .msgs{overflow-y:auto;padding:16px}
.b-author{display:block;font-size:.72rem;font-weight:700;color:var(--primary);margin-bottom:2px}
.tm-addtask{display:grid;grid-template-columns:minmax(0,1fr) 180px 160px auto;gap:8px;align-items:center;margin-bottom:14px}
.tm-addtask .form-msg{grid-column:1/-1}
@media (max-width:760px){.tm-addtask{grid-template-columns:1fr 1fr}.tm-addtask [name=title],.tm-addtask button{grid-column:1/-1}}
.tm-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
@media (max-width:860px){.tm-board{grid-template-columns:minmax(0,1fr)}}
.tm-col{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:12px;display:grid;gap:10px;align-content:start;min-height:140px}
.tm-col h3{margin:0 0 2px;font-size:.92rem}
.tm-task{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:grid;gap:6px}
.tm-task.late{border-color:var(--bad)}
.tm-task.late .tm-task-meta .tnum{color:var(--bad);font-weight:700}
.tm-task p{margin:0;font-size:.85rem;white-space:pre-line}
.tm-task-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:.8rem;flex-wrap:wrap}
.tm-task-meta .who{display:inline-flex;gap:6px;align-items:center}
.tm-task-meta .who .logo-tile{width:22px;height:22px;font-size:.55rem}
.tm-task-acts{display:flex;gap:4px;justify-content:flex-end}
.tm-task-acts .icon-btn{width:30px;height:30px}
.tm-plan textarea{width:100%;font:inherit}
.tm-links{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.tm-links li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center}
.tm-links li a{font-weight:600;color:var(--primary);text-decoration:none;display:inline-flex;gap:6px;align-items:center}
.tm-links li .muted{grid-column:1;font-size:.78rem}
.tm-links li button{grid-row:1/3;grid-column:2}
.tm-linkform{display:grid;grid-template-columns:1fr 1.4fr auto;gap:6px}
.tm-linkform .form-msg{grid-column:1/-1}
@media (max-width:560px){.tm-linkform{grid-template-columns:1fr}}
/* team chat reports */
.bubble{position:relative}
.b-report{position:absolute;top:4px;inset-inline-end:-30px;width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;opacity:0;font-size:.85rem}
.bubble:hover .b-report,.b-report:focus-visible{opacity:1}
.b-report:hover{background:var(--bad-bg);color:var(--bad)}
@media (hover:none){.b-report{opacity:.6}}
.bubble.removed p{font-style:italic;color:var(--muted)}
.tm-quote{margin:0;padding:10px 14px;border-inline-start:3px solid var(--line);background:var(--bg);border-radius:6px;white-space:pre-line}
.cr-context{display:grid;gap:6px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.cr-line p{margin:2px 0 0;white-space:pre-line}
.cr-line.hit{background:var(--bad-bg);border-radius:8px;padding:6px 8px}
/* ---------- local AI: match label, CV score, job post writer ---------- */
.ai-chip{display:inline-flex;align-items:center;gap:5px}
.ai-chip svg{color:var(--magenta)}
.ai-chip.hit svg{color:inherit}
.ai-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.8rem;margin-top:2px}
.ai-similar{font-size:.82rem;display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:0}
.ai-similar svg{color:var(--magenta)}
.sort-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:-4px 0 12px;font-size:.88rem}
.sort-row .seg button{display:inline-flex;align-items:center;gap:5px}
.ai-btn{display:inline-flex;align-items:center;gap:6px;border-color:transparent;background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--grad) border-box;border:1.5px solid transparent}
.ai-btn svg{color:var(--magenta)}
.score-ring{flex:none;color:var(--ink)}
.cvr-top{display:flex;align-items:center;gap:14px}
.cvr-top > div{display:grid;gap:4px;min-width:0}
.cvr-card .eyebrow svg,.dlg-head h3 svg{vertical-align:-2px;color:var(--magenta)}
.cvr{display:grid;gap:14px}
.cvr h4{margin:4px 0 0;font-size:1rem}
.cvr-parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 18px}
.cvr-parts > div{display:grid;grid-template-columns:1fr auto;gap:4px 8px;font-size:.88rem;font-weight:600}
.cvr-parts .meter{grid-column:1/-1}
.cvr-tips{margin:0;padding-inline-start:1.3em;display:grid;gap:8px}
.cvr-tips li{padding-inline-start:4px}
.cvr-tips li{display:list-item}
.cvr-tips li > span:first-child{margin-inline-end:8px}
.cvr-lock{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.cvr-lock svg{color:var(--magenta);flex:none}
.cvr-lock span{flex:1;min-width:200px}
.desc-head{display:flex;justify-content:flex-end;margin-bottom:-8px}
.ai-writer{display:grid;gap:10px;padding:14px;border-radius:12px;border:1.5px dashed var(--purple);background:var(--soft)}
.ai-writer p{margin:0}
.ai-draft{white-space:pre-line;max-height:280px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:12px;font-size:.92rem;line-height:1.6}
.ai-status{font-size:.85rem}
/* ---------- phones: the site works like an app (bottom tab bar, "More" sheet, splash) ---------- */
html { -webkit-tap-highlight-color: transparent }
.brand { flex: none }                 /* the logo keeps its shape instead of being squeezed */
.brand-logo { max-width: none }
.tabbar, .splash { display: none }
@media (max-width:760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) }
  #foot { display: none }             /* its links live in the More sheet */
  .top { top: 0; padding-top: env(safe-area-inset-top, 0px) }
  .bar { min-height: 56px; gap: 8px }
  .top .brand-logo { height: 30px }
  .links, #menuBtn, #hdrAuth .btn.ghost, #hdrAuth [data-act=logout], #hdrAuth .hide-sm { display: none !important }
  .lang-btn { padding: 6px 10px }
  .theme-btn { width: 34px; height: 34px }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px) }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 3px; padding: 2px; border: 0; background: none; color: var(--muted);
    font: 600 .66rem/1.15 inherit; letter-spacing: -.01em; text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-touch-callout: none; min-width: 0 }
  .tb-l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
  .tb-ic { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background .2s, transform .15s }
  .tabbar [aria-current=page] { color: var(--primary) }
  .tabbar [aria-current=page] .tb-ic { background: var(--soft) }
  .tabbar a:active .tb-ic, .tabbar button:active .tb-ic { transform: scale(.9) }
  .tb-badge { position: absolute; top: -5px; inset-inline-end: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--bad);
    color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface) }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) }
  /* dialogs open as bottom sheets, like an app */
  .dlg, .dlg.wide { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom, 0px) }
  .dlg[open] { animation: sheet-up .26s cubic-bezier(.2, .8, .2, 1) }
}
@keyframes sheet-up { from { transform: translateY(40%); opacity: .4 } to { transform: none; opacity: 1 } }
.sheet-body { display: grid; gap: 14px }
.sheet-links { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden }
.sheet-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line) }
.sheet-link:last-child { border-bottom: 0 }
.sheet-link:active { background: var(--soft) }
.sheet-link span { color: var(--muted); font-size: 1.3rem; line-height: 1 }
[dir=rtl] .sheet-link span { transform: scaleX(-1) }
.sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.sheet-row .btn, .sheet-body > .btn { justify-content: center; display: inline-flex; align-items: center; gap: 6px }
.sheet-legal { font-size: .8rem; text-align: center; margin: 0 }
/* splash: put up by theme.js on phones, taken away by core.js once the first page is drawn */
.splash { position: fixed; inset: 0; z-index: 1000; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  background: radial-gradient(circle at 20% 15%, rgba(124, 58, 237, .45), transparent 55%), radial-gradient(circle at 85% 90%, rgba(236, 72, 153, .3), transparent 55%), #0B1324 }
.splash-on .splash { display: flex }
.splash-out .splash { opacity: 0; transition: opacity .4s ease }
.splash img { width: 200px; height: auto; animation: splash-in .6s ease-out both }
.splash-bar { width: 120px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden }
.splash-bar i { display: block; width: 40%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7C3AED, #EC4899); animation: splash-bar 1s ease-in-out infinite }
@keyframes splash-in { from { opacity: 0; transform: scale(.92) } to { opacity: 1; transform: none } }
@keyframes splash-bar { from { transform: translateX(-110%) } to { transform: translateX(260%) } }
@media (prefers-reduced-motion: reduce) { .splash img, .splash-bar i, .dlg[open] { animation: none } }.conv-safety{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:.82rem}.conv-safety .linkbtn{color:var(--muted)}.conv-safety .linkbtn:hover{color:var(--bad)}
