/* Identity: the four screens. Everything else comes from the design system. */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 16px; background: var(--bg); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); overflow: hidden; }
.auth-card.split { width: min(900px, 100%); display: grid; grid-template-columns: 1fr 1fr; }
.auth-card.narrow { width: min(520px, 100%); padding: 26px 28px 24px; }
@media (max-width: 760px) { .auth-card.split { grid-template-columns: 1fr; } .auth-left { min-height: 220px; } }
.auth-left { position: relative; background: var(--eddyfi-dark-blue, #0B2A4A); color: #fff; padding: 30px 32px; display: flex; flex-direction: column; }
.auth-left h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 34px 0 10px; line-height: 1.25; }
.auth-left p { font-size: 12.5px; opacity: .8; line-height: 1.5; margin: 0; max-width: 34ch; }
.auth-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.auth-right { padding: 26px 30px 22px; display: flex; flex-direction: column; gap: 14px; }
.auth-brandrow, .auth-head { display: flex; align-items: center; gap: 9px; }
.auth-head { margin-bottom: 18px; }
.auth-icon { width: 26px; height: 26px; border-radius: 5px; }
.auth-icon.sm { width: 22px; height: 22px; }
.auth-wm { font-weight: 800; font-size: 14px; letter-spacing: -.015em; color: #fff; }
.auth-wm.ink { color: var(--ink); }
.auth-right h2, .auth-card.narrow h2 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -.005em; }
.auth-card.narrow .sub { color: var(--muted); font-size: 12.5px; margin: 6px 0 16px; line-height: 1.5; }
.signing-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 9px 12px; }
.signing-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.signing-app { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.auth-right form, #pw-form { display: flex; flex-direction: column; gap: 12px; }
.field-row { display: flex; align-items: center; justify-content: space-between; }
.field-row .btn.ghost.sm { height: 22px; padding: 0 6px; font-size: 11px; }
.auth-submit { height: 34px; margin-top: 4px; }
.auth-err { background: var(--critical-soft); color: var(--critical); border-radius: 8px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45; }
.auth-ok { background: var(--ok-soft); color: var(--ok); border-radius: 8px; padding: 9px 12px; font-size: 12.5px; }
.auth-note { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.auth-logos { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.auth-foot { font-size: 11px; color: var(--muted-2); }
.reqs { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.reqs-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; }
.req { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.req .chk { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-block; position: relative; flex: none; }
.req.met { color: var(--ok); }
.req.met .chk::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 4px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.auth-actions { display: flex; gap: 8px; margin-top: 6px; }
/* shell without the sidebar */
.shell.nosidebar { grid-template-columns: 1fr; }
.shell-tabs { flex: 1; margin-left: 14px; }
.shell-actions form { display: inline; }
.page { max-width: 1100px; margin: 0 auto; }
.page-h .sub.mono { font-size: 11px; margin-top: 3px; }
.av-sm { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--ink)); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.usercell { display: flex; align-items: center; gap: 10px; }
.usercell .nm { font-weight: 500; }
.usercell .em { font-size: 11px; color: var(--muted); }
.rowmenu { position: relative; display: inline-block; }
.rowmenu summary { list-style: none; cursor: pointer; }
.rowmenu summary::-webkit-details-marker { display: none; }
.rowmenu .menu { position: absolute; right: 0; top: 28px; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 210px; padding: 4px; display: grid; }
.rowmenu .menu button { all: unset; box-sizing: border-box; display: block; width: 100%; text-align: left; padding: 7px 10px; font-size: 12.5px; border-radius: 6px; cursor: pointer; color: var(--ink); font-family: inherit; }
.rowmenu .menu button:hover { background: var(--surface-2); }
.rowmenu .menu button.crit { color: var(--critical); }
.issued { border: 1px solid var(--ok); background: var(--ok-soft); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 6px; font-size: 12.5px; }
.issued .pw { font-family: var(--font-mono); font-size: 15px; letter-spacing: .02em; background: var(--surface); border: 1px dashed var(--line); border-radius: 6px; padding: 8px 12px; display: inline-block; user-select: all; color: var(--ink); }
.card + .card { margin-top: 14px; }
.card-body.pad { padding: 16px; }
.card-foot { padding: 9px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.modal-back { position: fixed; inset: 0; background: rgba(10,20,35,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: var(--surface); border-radius: 12px; border: 1px solid var(--line); width: min(440px, 92vw); padding: 20px 22px; display: grid; gap: 12px; }
.modal h3 { margin: 0; font-size: 15px; }
.chkrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sess-cur { color: var(--ok); font-weight: 600; }
/* Home (S3): tool tiles */
.tile-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 500; padding: 0 0 8px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 10px); color: inherit; transition: border-color 120ms ease-out, box-shadow 120ms ease-out; }
a.tile:hover { border-color: var(--blue); box-shadow: var(--shadow-sm, none); color: inherit; }
.tile.planned { opacity: .62; }
.tile-in { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.tile-icon { width: 34px; height: 34px; border-radius: var(--r-md, 8px); background: var(--blue-soft); color: var(--blue-ink, var(--blue)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tile-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.tile-foot { padding: 9px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.home-note { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
/* Info tip next to a page title */
.tip { position: relative; display: inline-flex; color: var(--muted); cursor: help; vertical-align: middle; margin-left: 4px; }
.tip-body { display: none; position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 25; width: 240px; background: var(--eddyfi-dark-blue); color: #fff; font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.45; padding: 8px 11px; border-radius: var(--r-md, 8px); box-shadow: var(--shadow-pop); }
.tip:hover .tip-body, .tip:focus .tip-body { display: block; }
/* A segmented control built from radio inputs, so a plain form posts the choice */
.seg.radio label { padding: 4px 10px; font-size: 11.5px; color: var(--muted); border-radius: 4px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.seg.radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg.radio input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.seg.radio input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 1px; }
.seg.radio input:disabled + label { opacity: .45; cursor: not-allowed; }
.scopes { border: 1px solid var(--line); border-radius: var(--r-md, 8px); overflow: hidden; }
.scope-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border-bottom: 1px solid var(--line); }
.scope-row:last-child { border-bottom: 0; }
.scope-row .mono { font-size: 12px; color: var(--ink); }
.reqgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-md, 8px); background: var(--surface-2); font-size: 12px; }
.reqgrid .k { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; }
.reqgrid .v { font-family: var(--font-mono); font-size: 13px; margin-top: 4px; color: var(--ink); }
.modal .blurb { font-size: 12px; color: var(--muted); margin: -6px 0 0; line-height: 1.5; }
.modal .foot { display: flex; gap: 8px; justify-content: flex-end; }
.modal.wide { width: min(500px, 92vw); max-height: 92vh; overflow: auto; }
.pill.warn.count { margin-left: 4px; height: 16px; font-size: 10px; }
.reason { font-size: 11px; color: var(--muted); margin-top: 3px; }
.tbl td.actions { text-align: right; white-space: nowrap; }
.btn.crit-ghost { color: var(--critical); }
.rowmenu .menu button:disabled { color: var(--muted-2); cursor: not-allowed; }
.modal .auth-err { margin: 0; }
.cred-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
