:root{--bg: #f6f8f7;--surface: #ffffff;--surface-2: #edf2ef;--border: #dce4e0;--border-strong: #75857d;--text: #17201c;--text-2: #4d5b54;--brand: #046c4e;--brand-2: #046c4e;--brand-soft: #e0f3ea;--action: #047857;--action-hover: #065f46;--on-action: #ffffff;--ok: #18794e;--ok-soft: #e6f4ec;--warn: #735600;--warn-soft: #fbf3cf;--err: #b8173f;--err-soft: #fde8ed;--on-err: #ffffff;--paper-bg: #e1e8e4;--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);--shadow-overlay: 0 8px 40px rgba(16, 24, 40, .2);--radius: 12px;--radius-control: 8px;--header-h: 56px;--control-h: 40px;color-scheme:light}:root[data-theme=dark]{--bg: #101412;--surface: #1a201d;--surface-2: #262e2a;--border: #343e39;--border-strong: #75847c;--text: #eaf0ed;--text-2: #a5b2ab;--brand: #5fd6a4;--brand-2: #5fd6a4;--brand-soft: #12372a;--action: #34c38b;--action-hover: #55d3a2;--on-action: #04241a;--ok: #4cc38a;--ok-soft: #13301f;--warn: #e9c846;--warn-soft: #332b0a;--err: #ff8799;--err-soft: #3d1420;--on-err: #2b0608;--paper-bg: #0a0d0b;--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);--shadow-overlay: 0 8px 40px rgba(0, 0, 0, .6);color-scheme:dark}@media(pointer:coarse){:root{--control-h: 44px}}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:15px;line-height:1.5;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}h1,h2,h3{line-height:1.3;text-wrap:balance}a{color:var(--brand-2)}:focus-visible{outline:2px solid var(--brand-2);outline-offset:2px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--control-h);padding:0 14px;border-radius:var(--radius-control);border:1px solid var(--border);background:var(--surface);cursor:pointer;font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none;color:var(--text);transition:background-color .15s,border-color .15s}.btn:hover{background:var(--surface-2)}.btn:active{border-color:var(--border-strong)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--action);border-color:var(--action);color:var(--on-action)}.btn-primary:hover{background:var(--action-hover);border-color:var(--action-hover)}.btn-ghost{background:transparent;border-color:transparent}.btn-icon{width:var(--control-h);padding:0}.btn-danger{color:var(--err)}.btn-danger-solid{background:var(--err);border-color:var(--err);color:var(--on-err)}.btn-danger-solid:hover{background:color-mix(in srgb,var(--err) 88%,var(--text))}.btn svg{width:18px;height:18px;flex:none}.app-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;height:var(--header-h);padding:0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));background:var(--surface);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--text);text-decoration:none;white-space:nowrap}.brand img{width:28px;height:28px}.header-title{min-width:0;flex:1;display:flex;font-size:14px;color:var(--text-2)}.header-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-actions{display:flex;align-items:center;gap:8px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.panel{padding:20px}.chip{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:6px;font-size:12.5px;font-weight:600;background:var(--brand-soft);color:var(--brand)}.chip svg{width:14px;height:14px;flex:none}.chip.ok{background:var(--ok-soft);color:var(--ok)}.chip.warn{background:var(--warn-soft);color:var(--warn)}.chip.err{background:var(--err-soft);color:var(--err)}.chip.muted{background:var(--surface-2);color:var(--text-2)}.page{max-width:1120px;margin:0 auto;padding:32px 24px 48px}.page-head{margin-bottom:24px}.page-head h1{font-size:26px;margin:0 0 4px;letter-spacing:-.01em}.page-head p{margin:0;color:var(--text-2);text-wrap:pretty}.home-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:16px}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:320px;padding:32px 20px;border:1.5px dashed var(--border-strong);border-radius:var(--radius);background:var(--surface);text-align:center;cursor:pointer;transition:border-color .15s,background-color .15s}.dropzone:hover,.dropzone.drag{border-color:var(--brand-2)}.dropzone.drag{background:var(--brand-soft)}.dropzone-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:var(--radius);background:var(--brand-soft);color:var(--brand)}.dropzone-icon svg{width:24px;height:24px}.dropzone strong{font-size:17px}.dropzone small{font-size:13px;color:var(--text-2)}.dropzone.busy{pointer-events:none}.recent{padding:16px 8px 8px}.recent h2{font-size:15px;margin:0 0 8px;padding:0 12px}.recent-empty{margin:0;padding:0 12px 12px;font-size:14px;color:var(--text-2)}.recent ul{list-style:none;margin:0;padding:0}.recent button{width:100%;display:flex;align-items:flex-start;gap:10px;padding:10px 12px;text-align:left;border:0;border-radius:var(--radius-control);background:none;cursor:pointer;transition:background-color .15s}.recent button:hover{background:var(--surface-2)}.recent svg{width:18px;height:18px;flex:none;margin-top:2px;color:var(--brand)}.recent-text{flex:1;min-width:0}.recent-text b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:600;line-height:1.4}.recent-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;color:var(--text-2)}.recent time{font-size:12.5px;line-height:20px;color:var(--text-2);font-variant-numeric:tabular-nums}.features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin-top:32px}.features>div{display:grid;grid-template-columns:20px 1fr;gap:2px 12px}.features svg{width:20px;height:20px;margin-top:1px;color:var(--brand)}.features h2{margin:0;font-size:15px;line-height:22px}.features p{grid-column:2;margin:0;color:var(--text-2);font-size:14px;text-wrap:pretty}.footnote{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 24px;margin-top:32px;padding-top:16px;border-top:1px solid var(--border);color:var(--text-2);font-size:13px}.viewer{display:grid;grid-template-columns:320px minmax(0,1fr);height:calc(100% - var(--header-h))}.sidebar{overflow:auto;border-right:1px solid var(--border);background:var(--surface);padding:20px}.main{display:flex;flex-direction:column;min-width:0;min-height:0}.info h1{font-size:17px;margin:8px 0 16px}.info-toggle{width:100%;justify-content:space-between}.facts{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:0;font-size:14px}.facts dt{color:var(--text-2)}.facts dd{margin:0;font-weight:550;overflow-wrap:anywhere}.section-title{font-size:14px;margin:20px 0 10px;padding-top:20px;border-top:1px solid var(--border)}.sig-summary{width:100%;display:flex;align-items:center;gap:12px;padding:12px;text-align:left;cursor:pointer;transition:background-color .15s}.sig-summary:hover{background:var(--surface-2)}.sig-summary .txt{flex:1;min-width:0}.sig-summary .txt div:first-child{font-size:14px;font-weight:600}.sig-summary .txt div:last-child{font-size:13px;color:var(--text-2)}.status-dot{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:none}.status-dot svg{width:18px;height:18px}.status-dot.ok{background:var(--ok-soft);color:var(--ok)}.status-dot.warn{background:var(--warn-soft);color:var(--warn)}.status-dot.err{background:var(--err-soft);color:var(--err)}.status-dot.muted{background:var(--surface-2);color:var(--text-2)}.toolbar{display:flex;align-items:center;gap:8px;padding:0 12px;min-height:48px;background:var(--surface);border-bottom:1px solid var(--border)}.tabs{display:flex;align-self:stretch;gap:4px;overflow-x:auto;scrollbar-width:thin;flex:1;min-width:0;scroll-snap-type:x proximity}.tab{flex:none;min-height:47px;padding:0 12px;border:0;background:none;color:var(--text-2);font-size:14px;font-weight:600;cursor:pointer;scroll-snap-align:start;max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:color .15s}.tab:hover{color:var(--text)}.tab:focus-visible{outline-offset:-4px}.tab[aria-selected=true]{color:var(--brand);box-shadow:inset 0 -2px var(--brand)}.zoom{display:flex;align-items:center;gap:2px;flex:none}.zoom span{min-width:48px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums;color:var(--text-2)}.paper-scroll{flex:1;overflow:auto;background:var(--paper-bg);padding:24px 24px 48px;overscroll-behavior:contain}.paper-holder{margin:0 auto;background:#fff;box-shadow:var(--shadow);position:relative}.paper-holder iframe{border:0;display:block;background:#fff;transform-origin:0 0}.paper-msg{max-width:520px;margin:40px auto;padding:24px;text-align:center;background:var(--surface);border-radius:var(--radius);color:var(--text)}.skeleton{margin:0 auto;background:#fff;padding:40px}.skeleton div{height:12px;margin:14px 0;border-radius:6px;background:linear-gradient(90deg,#eceff1 25%,#f6f7f8 37%,#eceff1 63%);background-size:400% 100%;animation:shimmer 1.2s infinite}@keyframes shimmer{0%{background-position:100% 0}to{background-position:0 0}}.backdrop{position:fixed;inset:0;z-index:40;background:#0a101680;animation:fade .15s}.drawer{position:fixed;z-index:41;top:0;right:0;bottom:0;width:min(480px,100%);background:var(--surface);box-shadow:var(--shadow-overlay);display:flex;flex-direction:column;animation:slide .2s ease-out}.dialog{position:fixed;z-index:41;left:50%;top:50%;transform:translate(-50%,-50%);width:min(460px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-overlay);animation:pop .15s ease-out}.drawer:focus,.dialog:focus{outline:none}.overlay-head{display:flex;align-items:center;gap:8px;padding:16px 16px 8px 20px}.overlay-head h2{flex:1;margin:0;font-size:17px}.overlay-body{padding:4px 20px 20px;overflow:auto}.overlay-body>p{margin:8px 0}@keyframes fade{0%{opacity:0}}@keyframes slide{0%{transform:translate(24px);opacity:0}}@keyframes pop{0%{transform:translate(-50%,-48%);opacity:0}}.sig-card{padding:16px;margin-bottom:12px}.sig-card header{display:flex;gap:12px;align-items:flex-start}.sig-card h3{margin:0;font-size:15px}.sig-card .meta{font-size:13px;color:var(--text-2)}.sig-card .msg{margin:12px 0 0;font-size:14px}.checks{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px}.checks li{display:grid;grid-template-columns:20px 1fr;gap:8px;font-size:13.5px}.checks svg{width:18px;height:18px}.checks .ok{color:var(--ok)}.checks .warn{color:var(--warn)}.checks .err{color:var(--err)}.checks b{display:block;font-weight:600;color:var(--text)}.checks div span{color:var(--text-2)}details.cert{margin-top:12px;font-size:13px}details.cert summary{cursor:pointer;color:var(--brand-2);font-weight:600}details.cert dl{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:8px 0}details.cert dt{color:var(--text-2)}details.cert dd{margin:0;word-break:break-all;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.field{display:grid;gap:6px;margin-top:16px}.field label{font-size:13.5px;font-weight:600}.input{height:44px;padding:0 12px;border-radius:var(--radius-control);border:1px solid var(--border-strong);background:var(--surface);width:100%;min-width:0;transition:border-color .15s}.input:focus-visible{outline-offset:-1px}.input::placeholder{color:var(--text-2)}.input.mono{letter-spacing:.02em;font-size:16px;text-transform:uppercase}.input.invalid{border-color:var(--err)}.hint{font-size:13px;color:var(--text-2)}.error-text{font-size:13px;color:var(--err)}.notice{display:flex;gap:10px;padding:12px;border-radius:var(--radius-control);font-size:14px;margin-top:12px}.notice>svg{width:18px;height:18px;flex:none;margin-top:2px}.notice.ok{background:var(--ok-soft);color:var(--ok)}.notice.info{background:var(--brand-soft);color:var(--brand)}.notice.err{background:var(--err-soft);color:var(--err)}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}.check{display:flex;gap:8px;align-items:center;margin-top:12px;font-size:14px}.check input{width:18px;height:18px;accent-color:var(--action)}.spinner{width:18px;height:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toasts{position:fixed;z-index:60;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translate(-50%);display:grid;gap:8px;width:min(440px,calc(100% - 24px))}.toast{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--radius);background:#26332d;color:#fff;box-shadow:var(--shadow-overlay);animation:pop-up .2s ease-out;font-size:14px}.toast.err{background:#7c1d22}.toast.ok{background:#135c3b}.toast button{margin-left:auto;background:none;border:0;color:inherit;opacity:.8;cursor:pointer}@keyframes pop-up{0%{transform:translateY(8px);opacity:0}}.drop-overlay{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:#045f46eb;color:#fff;font-size:20px;font-weight:700;pointer-events:none}.login{max-width:448px;padding-top:64px}.login h1{font-size:20px;margin:0}.login p{margin:4px 0 0}.login .btn{width:100%;margin-top:16px}.page>.card+.card{margin-top:16px}.panel h2,.table-title{font-size:15px;margin:0 0 12px}.form-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}.form-row .field{margin:0;flex:1 1 160px}.form-row .btn{min-height:44px}.table-title{margin:0;padding:16px 20px 12px}.table-title .hint{margin-left:6px;font-weight:400}.table-wrap{overflow-x:auto}table.keys{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}table.keys th,table.keys td{height:48px;padding:0 12px;border-top:1px solid var(--border);text-align:left;white-space:nowrap}table.keys th{height:36px;background:var(--surface-2);color:var(--text-2);font-weight:600;font-size:13px}table.keys :is(th,td):first-child{padding-left:20px}table.keys :is(th,td):last-child{padding-right:20px;text-align:right}table.keys tbody tr:hover{background:var(--bg)}table.keys td.table-empty{height:96px;text-align:center;color:var(--text-2);white-space:normal}.new-key{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:18px;letter-spacing:.05em;word-break:break-all}.progress{height:6px;border-radius:3px;background:var(--border);overflow:hidden;width:64px;display:inline-block;vertical-align:middle;margin-right:8px}.progress i{display:block;height:100%;background:var(--action)}@media(max-width:900px){.home-grid{grid-template-columns:minmax(0,1fr)}.dropzone{min-height:240px}.features{grid-template-columns:minmax(0,1fr);gap:16px}.viewer{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.sidebar{border-right:0;border-bottom:1px solid var(--border);padding:12px 16px;max-height:45vh}.info h1{margin:6px 0 4px;font-size:16px}.info-toggle{padding:0}.info-toggle:hover{background:none}.sidebar.collapsed .collapsible{display:none}.hide-mobile{display:none!important}}@media(min-width:901px){.only-mobile{display:none!important}.brand+.header-title span{padding-left:12px;border-left:1px solid var(--border)}}@media(max-width:600px){.page{padding:20px 16px 32px}.page-head h1{font-size:22px}.login{padding-top:24px}.drawer{top:auto;height:85%;width:100%;border-radius:16px 16px 0 0;animation:slide-up .2s ease-out}.paper-scroll{padding:12px 8px 32px}.btn-label{display:none}.header-actions .btn{width:var(--control-h);padding:0}.form-row>*{flex:1 1 100%}.notice{flex-wrap:wrap}.notice>svg+div{flex:1;min-width:0}}@keyframes slide-up{0%{transform:translateY(24px);opacity:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
