/* 鍵待ちの画面(#966・チケットCCP-35)。土台はログインの画面の auth.css(色は同じ変数から引く)。ここは復旧の鍵の見せ方だけを足す */
/* 復旧の鍵は7行に2組ずつ (#2172「…」・11/30 ｛UserHandleName｝ が選んだ)。2組の間の「-」は字に入れない飾り (コピーとファイルは全部を「-」でつなぐ) */
.rkey{display:grid; grid-template-columns:auto auto; justify-content:center; gap:2px 1.6em; margin:2px 0; padding:12px 10px;
  border:1px solid var(--line); border-radius:14px; background:rgba(12,19,34,.72)}
.rkey span{position:relative; font:600 18px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.14em; text-align:center;
  color:var(--fg); user-select:all; -webkit-user-select:all}
.rkey span:nth-child(odd)::after{content:"-"; position:absolute; right:-1.05em; color:var(--fg2); opacity:.55; user-select:none; -webkit-user-select:none}
.knote.kwarn{text-align:center; margin-top:-4px}
/* コピーは主のボタンの下の小さな字のボタン */
.klink{height:36px; border:0; background:none; color:var(--fg2); font-size:13.5px; letter-spacing:.1em;
  text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--line)}
#msgKey:empty{display:none}
.knote{margin:0 2px; font-size:13px; line-height:1.7; color:var(--fg2); text-align:left; text-wrap:pretty}
.field textarea{border-radius:12px; border:1px solid var(--line); background:rgba(12,19,34,.72); color:var(--fg);
  padding:12px 14px; font:600 16px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.08em; resize:none; outline:none}
.field textarea:focus{border-color:rgba(var(--mk-rgb),.7); box-shadow:0 0 0 3px rgba(var(--mk-rgb),.12)}
#code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.1em; text-transform:uppercase}
a.btn-sub{display:flex; align-items:center; justify-content:center; text-decoration:none}
/* 黒と緑の見た目 (印 mx は kagimachi-mx.js が付ける・tasks-final-ai #2030「…」。11/21 ｛UserHandleName｝ が「…」を選んだ)。
   星空・光の輪・脳の絵は auth.css の html.mx が隠す。背景の板と字の色は本人確認の画面 (final-ai-id の assets/id.css の html.mx) と同じ値。
   上の 4 割ほどは背景の赤い点と放射の字だけを見せ、操作は下端のまま */
html.mx{background:#020504}
html.mx .mxrain{display:block; position:fixed; inset:0; width:100%; height:100%; z-index:-1; pointer-events:none;
  -webkit-mask-image:linear-gradient(#000 0 56%, rgba(0,0,0,.38) 76%, rgba(0,0,0,.3)); mask-image:linear-gradient(#000 0 56%, rgba(0,0,0,.38) 76%, rgba(0,0,0,.3))}
html.mx .login .stage{flex:0 0 46dvh; min-height:0}
html.mx .login .dock{margin-top:auto}
/* 復旧の鍵の段は高いので、背景の段を縮めて、主のボタンが小さなiPhone (高さ667px) でも1画面に入るようにする (#2172) */
html.mx body.login:has(#dockKey:not([hidden])) .stage{flex-basis:clamp(110px, calc(100dvh / var(--mjv, 1) - 450px), calc(46dvh / var(--mjv, 1)))}
html.mx .rkey{border-color:#1f7a47; border-radius:4px; background:rgba(0,0,0,.82)}
html.mx .rkey span{color:#c2dccb; font-family:inherit}
html.mx .rkey span:nth-child(odd)::after{color:#1f7a47; opacity:1}
html.mx .rkey{background:rgba(0,0,0,.86)}
html.mx .klink{color:#5a9a72; text-decoration-color:#1f7a47; font-family:inherit; letter-spacing:.16em}
html.mx #msgKey.ok{color:#3fcf7c; font-size:12px; letter-spacing:.04em}
html.mx .knote{color:#5a9a72}
html.mx .field textarea{border-radius:4px; border-color:#1f7a47; background:#000; color:#c2dccb; font-family:inherit}
html.mx .field textarea:focus{border-color:#3fcf7c; box-shadow:0 0 0 3px rgba(63,207,124,.14)}
/* 復旧の鍵の段のように箱が高いと、説明の文が流れる字に重なる。本人確認の画面の題名 (FINAL AI) と同じ、地の色の縁取りで読めるようにする */
html.mx .login .dock .lead,html.mx .knote{text-shadow:0 0 3px #020504, 0 0 8px #020504, 0 0 16px #020504}
