/* Frame Room (sign-in and project folders). Uses the website's colours and Poppins from styles.css. */
.portal { min-height: 100vh; background:
  radial-gradient(ellipse at 15% 0%, rgba(224, 59, 245, .16), transparent 55%),
  radial-gradient(ellipse at 90% 30%, rgba(95, 244, 252, .10), transparent 50%), var(--bg); }
.portal__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.portal__logo img { height: 32px; width: auto; mix-blend-mode: screen; }
.portal__back { color: var(--muted); font-size: .9rem; }
.portal__back:hover { color: var(--text); }
.portal__main { width: min(460px, 100% - 32px); margin: clamp(2rem, 8vh, 5rem) auto 4rem; }
.portal__main--wide { width: min(1000px, 100% - 32px); }
.portal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: .4rem 0 .8rem; }
.portal .label { margin-bottom: .2rem; }

.card-auth { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.4rem, 4vw, 2.2rem); }
.card-auth .sub { margin: 0; }
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--muted); }
.field input { font: inherit; font-size: 1rem; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; padding: .8em 1em; }
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(95, 244, 252, .18); }
input[name="code"] { font-size: 1.4rem; letter-spacing: .3em; text-align: center; }
.card-auth .btn { justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.small { font-size: .85rem; color: var(--muted); }
.small a, .note a { color: var(--cyan); }
.center { text-align: center; margin-top: 1rem; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }
.note { padding: .8em 1em; border-radius: 12px; font-size: .9rem; margin: 0 0 1rem; }
.card-auth .note { margin: 0; }
.note--err { background: rgba(224, 59, 245, .12); border: 1px solid rgba(224, 59, 245, .45); }
.note--ok { background: rgba(95, 244, 252, .10); border: 1px solid rgba(95, 244, 252, .4); }
.qr { align-self: center; background: #fff; border-radius: 14px; padding: 6px; line-height: 0; }
.qr canvas { width: 220px; height: 220px; image-rendering: pixelated; }
.key { display: inline-block; margin-top: .3rem; font-family: ui-monospace, Menlo, monospace; font-size: .95rem; color: var(--text); background: rgba(255, 255, 255, .06); padding: .3em .6em; border-radius: 8px; word-break: break-all; }

.portal__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.portal__head .sub { margin: 0; }
.portal__head button { cursor: pointer; font: inherit; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.crumbs a { color: var(--text); }
.crumbs a:hover { color: var(--cyan); }
.files { padding: .4rem; }
.files .row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: 12px; }
.files .row + .row { border-top: 1px solid var(--line); }
.files .row:hover { background: rgba(255, 255, 255, .05); }
.files .name { overflow-wrap: anywhere; }
.files .meta { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.files .empty { padding: 1.2rem 1rem; color: var(--muted); }
.ico { width: 22px; height: 26px; border-radius: 4px; border: 2px solid var(--cyan); position: relative; }
.ico--dir { height: 18px; border-color: var(--magenta); border-radius: 3px 6px 4px 4px; background: rgba(224, 59, 245, .15); }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.4rem; }
.tools form { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.tools p { margin: 0; }
.tools .field { width: 100%; }
.tools .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.tools input[type="file"] { color: var(--muted); font: inherit; font-size: .85rem; max-width: 100%; }
.empty h3 { margin-bottom: .4rem; }
@media (max-width: 760px) {
  .tools { grid-template-columns: 1fr; }
  .files .row { grid-template-columns: 24px 1fr; }
  .files .meta { grid-column: 2; }
  .portal__logo img { height: 24px; }
}
/* <button> elements don't inherit the link colour the site's buttons expect */
.portal button.btn { color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.portal button.btn--primary { color: #05050c; }

/* Light mode (follows the choice made on the main website during this visit) */
html[data-theme="light"] .portal__logo img { content: url(/assets/logo-wide-light.png); mix-blend-mode: multiply; }
html[data-theme="light"] .portal { background:
  radial-gradient(ellipse at 15% 0%, rgba(224, 59, 245, .08), transparent 55%),
  radial-gradient(ellipse at 90% 30%, rgba(48, 113, 236, .06), transparent 50%), var(--bg); }
html[data-theme="light"] .field input { background: #fff; }
html[data-theme="light"] .field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(48, 113, 236, .18); }
html[data-theme="light"] :is(.small a, .note a, .crumbs a:hover) { color: var(--blue); }
html[data-theme="light"] .key { background: #f1f1f1; }
html[data-theme="light"] .files .row:hover { background: rgba(3, 3, 7, .04); }
html[data-theme="light"] .ico { border-color: var(--blue); }
html[data-theme="light"] .qr { border: 1px solid var(--line); }
html[data-theme="light"] .note--ok { background: rgba(48, 113, 236, .07); border-color: rgba(48, 113, 236, .4); }
