/* Testnet page = feedback page (js/testnet-page.js, #/testnet) — ton.org look, stand design-refs/feedback-ton-five
   variant 2 «tabs» (user 2026-11-26). Tokens from ton.org's computed styles: page #10161F with a faint blue glow,
   panel #1D2633 split into cells by 1px lines in the page colour, raised row #222C3D, ink #D9E6F2 / headings #fff,
   muted #93A5B8, accent #1EAEFB, radius 20, pills 100. ton.org has no light theme: light = the site's soft blue
   (no white), same structure. Glass = the site glass on the panel.
   2026-11-26 (stand design-refs/fb-layout-five, variant 2, user's pick): on the feedback page (.tn-fb) the form
   fills the whole section, which is the panel itself; the title sits over the parts on the left, the language
   globe in the form's top right corner. The contracts page (.tn.cp) keeps the section + centred panel look.
   Contrast (measured): dark mute on panel 6.0, accent on panel 6.2, ink on accent 7.7, field edge 3.4;
   light mute on panel 7.3, accent on panel 5.1, white on accent 5.9, field edge 3.6. */
.tn-view{display:none;padding:28px 10px 48px}
.tn-view.active{display:block}

.tn{--pg:#CFE4FA;--panel:#E4F1FD;--raised:#D3E7FB;--field:#EEF6FE;--edge:#5A84AE;--line:#A9C9E8;
  --ink:#0A2540;--head:#06182B;--mute:#34506B;--acc:#0067B3;--acc-ink:#FFFFFF;--bad:#A50E2C;--ok:#0B7A43;
  /* the page sits in one rounded section, the same shape as the home page's sections (style.css .home-sec,
     user 2026-11-26): radius 32, a 1px rim and a soft glow, here in ton.org blue; --pg is the section's own
     colour, so the lines that split the panel read as gaps */
  position:relative;isolation:isolate;padding:44px 28px 36px;border-radius:32px;background:var(--pg);
  box-shadow:0 0 0 1px rgba(0,103,179,.30),inset 0 0 0 1px rgba(255,255,255,.48),0 0 18px rgba(0,103,179,.14),0 18px 44px rgba(10,37,64,.08);
  color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,sans-serif}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .tn{--pg:#10161F;--panel:#1D2633;--raised:#222C3D;--field:#151C27;--edge:#5E708A;--line:#364459;
  --ink:#D9E6F2;--head:#FFFFFF;--mute:#93A5B8;--acc:#1EAEFB;--acc-ink:#06121C;--bad:#FF7A8E;--ok:#3DD68C}
/* dark: the page itself turns ton.org navy (light keeps the site's soft-blue page) */
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .tn{
  box-shadow:0 0 0 1px rgba(77,184,255,.42),inset 0 0 0 1px rgba(30,174,251,.14),0 0 16px rgba(30,174,251,.22),0 0 40px rgba(30,174,251,.10)}
/* a faint blue light from the top-left corner, like ton.org's hero */
.tn::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:radial-gradient(ellipse 70% 60% at 0% 0%,rgba(0,152,234,.16),transparent 70%)}
html:is([data-theme="dark"],[data-scheme="dark"],[data-theme="voidtype"]) .tn::before{background:radial-gradient(ellipse 70% 60% at 0% 0%,rgba(30,174,251,.14),transparent 70%)}
.tn > *{max-width:1080px;margin-inline:auto}
/* glass: the section steps aside like the home sections do; the panel is the glass */
html[data-glass] .tn{background:transparent;box-shadow:none}
html[data-glass] .tn::before{display:none}

.tn :is(h1,h2,h3,p,fieldset){margin:0}
.tn fieldset{border:0;padding:0;min-width:0}
.tn-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.tn-top{text-align:center;max-width:720px;margin:0 auto 40px}
.tn-h1{font-size:48px;line-height:1.24;font-weight:500;letter-spacing:-.015em;color:var(--head);text-wrap:balance}
.tn-h2{font-size:24px;line-height:1.25;font-weight:500;letter-spacing:-.01em;color:var(--head)}
.tn-sub{color:var(--mute);font-size:15px;line-height:1.6}

/* the panel: parts of Vella on the left, the form on the right, split by a line in the page colour */
.tn-panel{border-radius:20px;overflow:hidden;background:var(--panel)}

/* feedback page: the section is the panel, edge to edge inside its rounded rim, down to the bottom of the screen */
.tn.tn-fb{display:flex;flex-direction:column;padding:0;background:var(--panel);overflow:clip;min-height:calc(100dvh - 156px)}   /* 108 above it, 48 below */
.tn.tn-fb::before{display:none}
.tn.tn-fb > *{max-width:none;margin-inline:0}
.tn-fb .tn-panel{flex:1;display:flex;flex-direction:column;border-radius:0;overflow:visible;background:transparent}
html[data-glass] .tn.tn-fb{background:var(--g-fill);box-shadow:var(--g-edge),var(--g-drop);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur)}
html[data-glass] .tn-fb .tn-panel{background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.tn-tabs{flex:1;display:grid;grid-template-columns:300px minmax(0,1fr)}
.tn-tabs[hidden]{display:none}
/* the title over the parts */
.tn-side{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--pg)}
.tn-fb .tn-side > .tn-h1{padding:28px 20px 22px;font-size:28px;line-height:1.2;border-bottom:1px solid var(--pg)}
.tn-list{display:flex;flex-direction:column}
.tn-tab{position:relative;display:flex;align-items:center;gap:12px;min-height:52px;padding:0 20px;border-bottom:1px solid var(--pg);font-size:16px;color:var(--head);cursor:pointer;transition:background-color .15s ease}
.tn-list-cap{padding:18px 20px 8px;border-bottom:1px solid var(--pg);font-size:12.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--mute)}
.tn-tab input{position:absolute;opacity:0;pointer-events:none}
.tn-tab:has(input:checked){background:var(--raised)}
.tn-tab:has(input:checked)::after{content:"";position:absolute;inset:0;box-shadow:inset 3px 0 0 var(--acc);pointer-events:none}
.tn-tab:has(input:focus-visible){outline:2px solid var(--acc);outline-offset:-4px}
@media(hover:hover){.tn-tab:hover{background:var(--raised)}}
.tn-ico{flex:none;width:22px;height:22px;color:var(--acc)}
.tn-ico svg{display:block;width:100%;height:100%}

.tn-body{position:relative;display:flex;flex-direction:column;gap:20px;padding:32px;min-width:0}
.tn-body > .tn-lang + div{padding-right:110px}   /* the part's name keeps clear of the globe */
.tn-label{display:block;margin-bottom:8px;font-size:14px;font-weight:500;color:var(--ink)}
.tn-opt{margin-left:6px;color:var(--mute);font-weight:400}
.tn-count{float:right;color:var(--mute);font-size:13px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}

.tn-chips{display:flex;flex-wrap:wrap;gap:8px}
.tn-chip{position:relative;display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border-radius:100px;background:var(--raised);
  font-size:14.5px;font-weight:500;color:var(--ink);cursor:pointer;transition:background-color .15s ease,scale .16s cubic-bezier(.23,1,.32,1)}
.tn-chip input{position:absolute;opacity:0;pointer-events:none}
.tn-chip:has(input:checked){background:var(--acc);color:var(--acc-ink)}
.tn-chip:has(input:focus-visible){outline:2px solid var(--acc);outline-offset:2px}
.tn-chip:active{scale:.97}

.tn-field{display:block;width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid var(--edge);border-radius:12px;background:var(--field);
  color:var(--ink);font:inherit;font-size:16px;line-height:1.5;outline:none}
textarea.tn-field{min-height:120px;resize:vertical}
.tn-field::placeholder{color:var(--mute);opacity:1}
/* no ring on a focused field (user 2026-11-26): the border stays as it is, the caret shows where you type.
   html body beats the dark theme's global input/textarea:focus-visible outline (port-void-type.css) */
html body .tn .tn-field:focus,html body .tn .tn-field:focus-visible{outline:none;box-shadow:none;border-color:var(--edge)}
html body .tn .tn-field[aria-invalid="true"]{border-color:var(--bad);box-shadow:0 0 0 1px var(--bad)}

.tn-note{color:var(--mute);font-size:13.5px;line-height:1.5;text-wrap:pretty}

/* missing problem: every chip gets a red rim until one is picked (the reason is in the notification at the top) */
.tn-issues.is-invalid .tn-chip{box-shadow:inset 0 0 0 1.5px var(--bad)}

.tn-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.tn-hint{color:var(--mute);font-size:13px}
.tn-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border:0;border-radius:100px;
  background:var(--acc);color:var(--acc-ink);font:inherit;font-size:16px;font-weight:600;white-space:nowrap;cursor:pointer;transition:filter .15s ease,scale .16s cubic-bezier(.23,1,.32,1)}
@media(hover:hover){.tn-btn:hover{filter:brightness(1.08)}}
.tn-btn:active{scale:.98}
.tn-btn:disabled{opacity:.6;cursor:default}
.tn-btn:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
.tn-ghost{background:var(--raised);color:var(--ink)}

/* sent */
.tn-done{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:40px;outline:none}
.tn-done[hidden]{display:none}
.tn-done-ico{width:52px;height:52px;color:var(--ok)}
.tn-done-ico svg{display:block;width:100%;height:100%}
.tn-ticket{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}
.tn-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}

/* the testnet basics: one quiet strip under the form */
.tn-after{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 32px;padding:24px 32px 28px;border-top:1px solid var(--pg)}
.tn-after h3{margin-bottom:6px!important;font-size:15px;font-weight:500;color:var(--head)}
.tn-after p{font-size:14px;line-height:1.55;color:var(--mute)}
.tn-link{display:inline-block;margin-right:8px;color:var(--acc);font-weight:500;text-decoration:none}
@media(hover:hover){.tn-link:hover{text-decoration:underline;text-underline-offset:3px}}

/* language: a globe button with a two-item menu in the form's top right corner, like ton.org (stand
   design-refs/fb-lang-five variant 3, user 2026-11-26) */
.tn-lang{position:absolute;top:28px;right:28px;z-index:5}
.tn-lang-btn{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 10px 0 12px;border:0;border-radius:100px;background:var(--raised);
  color:var(--ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.tn-lang-ico{width:18px;height:18px;color:var(--acc)}
.tn-lang-down{width:16px;height:16px;color:var(--mute);transition:rotate .2s cubic-bezier(.23,1,.32,1)}
.tn-lang-btn[aria-expanded="true"] .tn-lang-down{rotate:180deg}
.tn-lang :is(.tn-lang-ico,.tn-lang-down,.tn-lang-tick) svg{display:block;width:100%;height:100%}
.tn-lang-list{position:absolute;right:0;top:calc(100% + 8px);min-width:196px;padding:6px;border-radius:16px;background:var(--panel);
  box-shadow:inset 0 0 0 1px var(--line),0 16px 40px -12px rgba(0,0,0,.45);transform-origin:top right;animation:tnLangIn .16s cubic-bezier(.23,1,.32,1)}
.tn-lang-list[hidden]{display:none}
@keyframes tnLangIn{from{opacity:0;scale:.96}}
.tn-lang-opt{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 12px;border:0;border-radius:10px;background:none;
  color:var(--ink);font:inherit;font-size:15px;text-align:left;cursor:pointer}
.tn-lang-opt small{margin-left:auto;color:var(--mute);font-size:12.5px;font-weight:600;letter-spacing:.04em}
.tn-lang-tick{width:18px;height:18px;color:var(--acc);visibility:hidden}
.tn-lang-opt[aria-current="true"] .tn-lang-tick{visibility:visible}
@media(hover:hover){.tn-lang-opt:hover{background:var(--raised)}}
.tn-lang :is(.tn-lang-btn,.tn-lang-opt):focus-visible{outline:2px solid var(--acc);outline-offset:2px}
html[data-glass] .tn-lang-btn{background:var(--g-cell)}
html[data-glass] .tn-lang-list{background:var(--g-fill);box-shadow:var(--g-edge),var(--g-drop);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur)}
@media(hover:hover){html[data-glass] .tn-lang-opt:hover{background:var(--g-cell)}}
@media(prefers-reduced-motion:reduce){.tn-lang-list{animation:none}.tn-lang-down{transition:none}}

/* glass mode: the panel is the site's glass, its inner lines a soft cell colour */
html[data-glass] .tn-panel{background:var(--g-fill);box-shadow:var(--g-edge),var(--g-drop);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur)}
html[data-glass] .tn :is(.tn-side,.tn-side > .tn-h1,.tn-list,.tn-tab,.tn-after){border-color:var(--g-cell)}
html[data-glass] .tn :is(.tn-tab:has(input:checked),.tn-chip:not(:has(input:checked)),.tn-ghost){background:var(--g-cell)}
@media(hover:hover){html[data-glass] .tn-tab:hover{background:var(--g-cell)}}

@media(max-width:1000px){.tn-tabs{grid-template-columns:240px minmax(0,1fr)} .tn-after{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* phones: parts become a row of tabs that scrolls sideways; the panel runs edge to edge (site rule) */
@media(max-width:760px){
  .tn-view{padding:16px 8px calc(var(--mnb-clearance,110px) + 24px)}
  .tn{padding:24px 10px 24px;border-radius:24px}
  .tn-top{padding-inline:6px}
  .tn-top{text-align:left;margin-bottom:24px}
  .tn-h1{font-size:32px;line-height:1.2}
  .tn.tn-fb{min-height:0}
  .tn-fb .tn-side > .tn-h1{padding:20px 16px 14px;font-size:26px}
  .tn-side{display:block;border-right:0}
  .tn-lang{top:16px;right:16px}
  .tn-body > .tn-lang + div{padding-right:92px}
  .tn-panel{border-radius:18px}
  .tn-tabs{grid-template-columns:1fr}
  .tn-list{flex-direction:row;overflow-x:auto;border-bottom:1px solid var(--pg);scrollbar-width:none;overscroll-behavior-x:contain}
  .tn-list::-webkit-scrollbar{display:none}
  .tn-list-cap{display:none}
  .tn-tab{flex:none;min-height:52px;padding:0 16px;border-bottom:0;font-size:15px;white-space:nowrap}
  .tn-tab:has(input:checked)::after{box-shadow:inset 0 -3px 0 var(--acc)}
  .tn-body{padding:20px 16px}
  .tn-foot .tn-btn{width:100%}
  .tn-hint{display:none}
  .tn-done{padding:28px 16px}
  .tn-after{padding:20px 16px 24px}
}
@media(max-width:400px){.tn-after{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.tn :is(.tn-tab,.tn-chip,.tn-btn){transition:none}}
