/* ===== ПЕРГАМЕНТ PRO: подложка и выпуклые кнопки ===== */
:root[data-theme="light"]:not(.ink) body{background-color:#8f6d42!important;background-image:radial-gradient(ellipse at 50% 30%,rgba(255,235,190,.18),transparent 70%),radial-gradient(ellipse at center,transparent 45%,rgba(40,22,6,.55) 100%),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27900%27%20height%3D%27500%27%3E%3Cfilter%20id%3D%27w%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.004%20.06%27%20numOctaves%3D%275%27%20seed%3D%279%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%20.3%200%200%200%200%20.19%200%200%200%200%20.08%200%200%200%20.5%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27900%27%20height%3D%27500%27%20filter%3D%27url%28%23w%29%27/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27220%27%20height%3D%27220%27%3E%3Cfilter%20id%3D%27g%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.95%27%20numOctaves%3D%272%27%20seed%3D%272%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%20.35%200%200%200%200%20.25%200%200%200%200%20.12%200%200%200%20.09%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27220%27%20height%3D%27220%27%20filter%3D%27url%28%23g%29%27/%3E%3C/svg%3E")!important;background-attachment:fixed,fixed,scroll,scroll!important}
:root[data-theme="light"]:not(.ink) .panel{background-color:#f1e2c0!important;background-image:
  radial-gradient(ellipse at 50% 45%,rgba(255,250,232,.75) 0%,rgba(255,248,226,.2) 45%,transparent 75%),
  url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27900%27%20height%3D%27900%27%3E%3Cfilter%20id%3D%27x%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.035%27%20numOctaves%3D%272%27%20seed%3D%2723%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%20.55%200%200%200%200%20.33%200%200%200%200%20.12%200%200%200%203%20-1.9%27/%3E%3CfeGaussianBlur%20stdDeviation%3D%271.2%27/%3E%3C/filter%3E%3Crect%20width%3D%27900%27%20height%3D%27900%27%20filter%3D%27url%28%23x%29%27%20opacity%3D%27.35%27/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27700%27%20height%3D%27700%27%3E%3Cfilter%20id%3D%27m%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.008%27%20numOctaves%3D%274%27%20seed%3D%2711%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%20.55%200%200%200%200%20.38%200%200%200%200%20.16%200%200%200%20.55%20-.18%27/%3E%3C/filter%3E%3Crect%20width%3D%27700%27%20height%3D%27700%27%20filter%3D%27url%28%23m%29%27/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27800%27%20height%3D%27400%27%3E%3Cfilter%20id%3D%27f%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.0025%20.28%27%20numOctaves%3D%274%27%20seed%3D%275%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%20.5%200%200%200%200%20.36%200%200%200%200%20.18%200%200%200%20.22%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27800%27%20height%3D%27400%27%20filter%3D%27url%28%23f%29%27/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27220%27%20height%3D%27220%27%3E%3Cfilter%20id%3D%27g%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.95%27%20numOctaves%3D%272%27%20seed%3D%272%27/%3E%3CfeColorMatrix%20values%3D%270%200%200%200%20.35%200%200%200%200%20.25%200%200%200%200%20.12%200%200%200%20.09%200%27/%3E%3C/filter%3E%3Crect%20width%3D%27220%27%20height%3D%27220%27%20filter%3D%27url%28%23g%29%27/%3E%3C/svg%3E")!important;
  background-size:auto,900px 900px,700px 700px,800px 400px,220px 220px!important;
  border:1px solid rgba(120,82,34,.45)!important;
  box-shadow:inset 0 0 0 1px rgba(255,250,235,.55),inset 0 0 38px rgba(130,84,28,.32),inset 0 0 8px rgba(100,60,20,.35),0 1px 0 rgba(255,240,210,.35),0 10px 26px rgba(30,15,3,.45),0 2px 6px rgba(30,15,3,.35)!important}
:root[data-theme="light"]:not(.ink) .glass{background:linear-gradient(180deg,rgba(255,251,240,.9),rgba(250,240,215,.85))!important;box-shadow:inset 0 0 0 1px rgba(160,120,60,.35),inset 0 0 0 3px rgba(255,251,240,.6),inset 0 0 14px rgba(160,110,40,.12)!important}
:root[data-theme="light"]:not(.ink) .list h3,:root[data-theme="light"]:not(.ink) .shead{background:linear-gradient(180deg,#f3e5c4,#ead8b0)!important}
:root[data-theme="light"]:not(.ink) :is(.key,.ctile,.era,.chip,.dn,.tdi,.pcell,.mtile){
  background:linear-gradient(180deg,#fffaf0 0%,#f6ead0 48%,#ead7ae 100%)!important;
  border:1px solid #c4a672!important;color:var(--ink)!important;
  box-shadow:inset 0 1px 0 #fff,inset 0 -2px 0 rgba(150,105,40,.20),0 1px 0 rgba(255,250,235,.7),0 2px 4px rgba(90,55,15,.28),0 6px 10px -6px rgba(90,55,15,.35)!important;
  transition:transform .08s,box-shadow .12s,background .12s}
:root[data-theme="light"]:not(.ink) :is(.key,.ctile,.era,.chip,.dn,.tdi,.pcell,.mtile):hover{background:linear-gradient(180deg,#fffdf6 0%,#f9efd9 48%,#efdfba 100%)!important;border-color:#b08c4e!important}
:root[data-theme="light"]:not(.ink) :is(.key,.ctile,.era,.chip,.dn,.tdi,.pcell,.mtile):active{transform:translateY(1px);box-shadow:inset 0 2px 5px rgba(110,70,20,.30),inset 0 0 0 1px rgba(255,255,255,.4),0 1px 1px rgba(90,55,15,.2)!important}
:root[data-theme="light"]:not(.ink) :is(.key[aria-pressed="true"],.ctile[aria-pressed="true"],.era[aria-pressed="true"],.mtile[aria-pressed="true"]){
  background:linear-gradient(180deg,#f3dfae 0%,#e8cc8a 55%,#dcb96e 100%)!important;border-color:#9a7430!important;color:#5a1a10!important;
  box-shadow:inset 0 2px 4px rgba(110,70,20,.30),inset 0 -1px 0 rgba(255,255,255,.35),0 1px 1px rgba(90,55,15,.2)!important}
:root[data-theme="light"]:not(.ink) .qopts :is(.key,button):not(.ok):not(.bad){background:linear-gradient(180deg,#fffaf0,#f1e2c0)!important}
:root[data-theme="light"]:not(.ink) :is(.controls input,.picker input,.csel){background:linear-gradient(180deg,#f3e6c8,#fffaf0 40%)!important;box-shadow:inset 0 2px 5px rgba(110,70,20,.22),inset 0 0 0 1px #c4a672!important}
:root[data-theme="light"]:not(.ink) .item[aria-current="true"]{background:linear-gradient(90deg,rgba(214,180,110,.45),rgba(214,180,110,.12))!important}
:root[data-theme="light"]:not(.ink) .bezel{background:linear-gradient(145deg,#d8b56a 0%,#9c7430 35%,#caa24f 60%,#7d5a26 100%)!important;box-shadow:inset 0 0 0 2px #f0d58f,inset 0 0 0 4px #6d4c1d,inset 0 2px 3px rgba(255,255,255,.6),0 10px 22px rgba(40,20,5,.45)!important}
/* чернила: тоже выпуклые кнопки */
:root.ink :is(.key,.ctile,.era,.chip,.dn,.tdi,.pcell,.mtile){background:linear-gradient(180deg,#223a61 0%,#1a2e50 50%,#142540 100%)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -2px 0 rgba(0,0,0,.25),0 2px 5px rgba(0,0,0,.45)!important}
:root.ink :is(.key,.ctile,.era,.chip,.dn,.tdi,.pcell,.mtile):active{transform:translateY(1px);box-shadow:inset 0 2px 5px rgba(0,0,0,.45)!important}
:root.ink :is(.key[aria-pressed="true"],.ctile[aria-pressed="true"],.mtile[aria-pressed="true"]){background:linear-gradient(180deg,#3a4d73,#2b3d60)!important;box-shadow:inset 0 2px 4px rgba(0,0,0,.4)!important}

/* ===== ПЕРГАМЕНТ v5: настоящий лист и выпуклые кнопки ===== */
:root[data-theme="light"]:not(.ink) body{background-color:#5b4128!important;background-image:radial-gradient(ellipse at 50% 0%,rgba(255,220,160,.18),transparent 55%),radial-gradient(ellipse at 50% 120%,rgba(0,0,0,.35),transparent 60%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='l'%3E%3CfeTurbulence stitchTiles='stitch' type='fractalNoise' baseFrequency='.02' numOctaves='4' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .11 0 0 0 0 .05 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23l)'/%3E%3C/svg%3E")!important;background-attachment:fixed}
:root[data-theme="light"]:not(.ink) .panel{background-color:#efe0bf!important;background-image:
  radial-gradient(ellipse 60% 45% at 50% 45%,rgba(255,248,226,.7),rgba(255,248,226,0) 70%),
  radial-gradient(ellipse at 8% 10%,rgba(150,95,30,.22),transparent 30%),
  radial-gradient(ellipse at 95% 90%,rgba(150,95,30,.22),transparent 32%),
  radial-gradient(ellipse at 92% 6%,rgba(150,95,30,.12),transparent 25%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='s'%3E%3CfeTurbulence stitchTiles='stitch' type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .38 0 0 0 0 .15 0 0 0 1.1 -.45'/%3E%3C/filter%3E%3Crect width='700' height='700' filter='url(%23s)'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence stitchTiles='stitch' type='fractalNoise' baseFrequency='.002 .28' numOctaves='5' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .14 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='800' height='400' filter='url(%23f)'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p'%3E%3CfeTurbulence stitchTiles='stitch' type='fractalNoise' baseFrequency='.9' numOctaves='1' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 9 -8.2'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23p)'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence stitchTiles='stitch' type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E")!important;
  background-size:auto,auto,auto,auto,700px 700px,800px 400px,260px 260px,200px 200px!important;
  border:1px solid rgba(120,80,30,.45)!important;
  box-shadow:inset 0 0 0 1px rgba(255,250,235,.55),inset 0 0 40px rgba(120,70,20,.28),inset 0 0 8px rgba(90,50,10,.35),0 2px 0 rgba(255,235,200,.15),0 14px 30px rgba(20,10,0,.45),0 3px 6px rgba(20,10,0,.3)!important}
:root[data-theme="light"]:not(.ink) .glass{background:linear-gradient(180deg,rgba(255,251,240,.85),rgba(248,238,215,.85))!important;box-shadow:inset 0 0 0 1px rgba(170,130,70,.45),inset 0 1px 0 #fffaf0,inset 0 -8px 16px rgba(150,100,40,.08),0 1px 2px rgba(90,60,20,.12)!important}
/* выпуклые кнопки */
:root[data-theme="light"]:not(.ink) :is(.key,.ctile,.dn,.tdi,.pcell,.chip,.era,.mtile){
  background:linear-gradient(180deg,#fffaf0 0%,#f6ead0 45%,#ead8b2 100%)!important;
  border:1px solid rgba(140,100,45,.55)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -2px 0 rgba(160,115,55,.25),inset 0 0 0 1px rgba(255,250,235,.35),0 2px 3px rgba(80,50,15,.22),0 1px 0 rgba(80,50,15,.25)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.7);transition:transform .08s,box-shadow .08s,background .15s}
:root[data-theme="light"]:not(.ink) :is(.key,.ctile,.dn,.tdi,.pcell,.chip,.era,.mtile):hover{background:linear-gradient(180deg,#fffcf4 0%,#f9eed6 45%,#efdcb6 100%)!important;border-color:rgba(143,100,20,.8)!important}
:root[data-theme="light"]:not(.ink) :is(.key,.ctile,.dn,.tdi,.pcell,.chip,.era,.mtile):active{transform:translateY(1px);box-shadow:inset 0 2px 4px rgba(120,80,25,.3),0 0 0 rgba(0,0,0,0)!important;background:linear-gradient(180deg,#ead8b2,#f3e4c4)!important}
:root[data-theme="light"]:not(.ink) :is(.key[aria-pressed="true"],.ctile[aria-pressed="true"],.era[aria-pressed="true"],.mtile[aria-pressed="true"]){
  background:linear-gradient(180deg,#e9d3a6,#f2e2bf)!important;border-color:rgba(122,36,24,.7)!important;
  box-shadow:inset 0 2px 5px rgba(110,60,15,.3),inset 0 -1px 0 rgba(255,255,255,.6),0 1px 0 rgba(255,250,235,.8)!important;color:var(--burg)!important}
:root[data-theme="light"]:not(.ink) .qopts .key.ok{background:linear-gradient(180deg,#e8f2d8,#cfe2b4)!important}
:root[data-theme="light"]:not(.ink) .qopts .key.bad{background:linear-gradient(180deg,#f8e0da,#ecc4ba)!important}
:root[data-theme="light"]:not(.ink) :is(.controls input,.picker input,.csel){background:linear-gradient(180deg,#f3e6c8,#fffaee)!important;box-shadow:inset 0 2px 5px rgba(120,80,25,.22),inset 0 0 0 1px rgba(150,110,50,.4),0 1px 0 rgba(255,250,235,.8)!important}
:root[data-theme="light"]:not(.ink) .tag{background:linear-gradient(180deg,#fbeccb,#efd7a4)!important;box-shadow:inset 0 1px 0 #fff8e6,0 1px 2px rgba(90,60,20,.2)}
:root[data-theme="light"]:not(.ink) .sled.on{box-shadow:inset 0 -1px 1px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.6)!important}
:root[data-theme="light"]:not(.ink) .hero h1{text-shadow:0 1px 0 rgba(255,250,235,.8),0 -1px 0 rgba(90,50,10,.15)!important}
:root[data-theme="light"]:not(.ink) .list h3,:root[data-theme="light"]:not(.ink) .shead{background:linear-gradient(180deg,#f3e5c6,#eadab4)!important}

/* ===== ЧЕРНИЛА v2: тёмно-синие выпуклые кнопки с золотом ===== */
:root.ink :is(.key,.ctile,.dn,.tdi,.pcell,.chip,.era,.mtile){
  background:linear-gradient(180deg,#223a63 0%,#1a2e50 50%,#142540 100%)!important;
  border:1px solid rgba(212,175,55,.35)!important;color:var(--ink)!important;text-shadow:0 1px 0 rgba(0,0,0,.5)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 -2px 0 rgba(0,0,0,.25),0 2px 4px rgba(0,0,0,.45)!important}
:root.ink :is(.key,.ctile,.dn,.tdi,.pcell,.chip,.era,.mtile):hover{background:linear-gradient(180deg,#29467a,#1d3459)!important;border-color:rgba(230,189,92,.75)!important}
:root.ink :is(.key,.ctile,.dn,.tdi,.pcell,.chip,.era,.mtile):active{transform:translateY(1px);box-shadow:inset 0 2px 5px rgba(0,0,0,.5)!important}
:root.ink :is(.key[aria-pressed="true"],.ctile[aria-pressed="true"],.era[aria-pressed="true"],.mtile[aria-pressed="true"]){background:linear-gradient(180deg,#132340,#1b2f52)!important;border-color:var(--gold)!important;color:var(--burg)!important;box-shadow:inset 0 2px 6px rgba(0,0,0,.55),0 1px 0 rgba(255,255,255,.06)!important}
:root.ink :is(.key,.ctile,.dn,.tdi,.pcell,.chip,.era,.mtile) :is(b,small,span,.cn){color:inherit!important}
:root.ink :is(.era small,.chip small,.tdi small,.dn small,.pcell small,.item .y,.mtile small){color:var(--ink2)!important}
:root.ink .era b,:root.ink .cpick b,:root.ink .mpick b{color:var(--ink)!important}
:root.ink :is(.controls input,.picker input,.csel){background:linear-gradient(180deg,#0c172b,#13223d)!important;color:var(--ink)!important;box-shadow:inset 0 2px 6px rgba(0,0,0,.6),inset 0 0 0 1px #33476c!important}
:root.ink :is(.controls input,.picker input)::placeholder{color:#7f8aa6!important}
:root.ink .list h3,:root.ink .shead{background:linear-gradient(180deg,#1a2c4e,#15243f)!important;color:var(--burg)!important}
:root.ink .tag{background:linear-gradient(180deg,#26385c,#1b2b49)!important;color:var(--burg)!important;border-color:rgba(212,175,55,.45)!important}
:root.ink .tdi .led{color:var(--burg)!important}
:root.ink .ic{color:var(--burg)}
:root.ink .hero h1{text-shadow:0 2px 0 rgba(0,0,0,.4)!important}
:root.ink .qopts .key.ok{background:linear-gradient(180deg,#2a5a33,#1f4527)!important}
:root.ink .qopts .key.bad{background:linear-gradient(180deg,#6a2a2a,#4e1d1f)!important}

/* ===== ПЕРГАМЕНТ v6: фотофактура ===== */
:root[data-theme="light"]:not(.ink) .panel{background-color:#eedfbd!important;background-image:
  radial-gradient(ellipse 65% 50% at 50% 45%,rgba(255,250,232,.45),rgba(255,250,232,0) 70%),
  radial-gradient(ellipse at 6% 8%,rgba(150,95,30,.18),transparent 30%),
  radial-gradient(ellipse at 96% 92%,rgba(150,95,30,.18),transparent 32%),
  url("../parchment.jpg")!important;
  background-size:auto,auto,auto,1400px 1400px!important;background-repeat:no-repeat,no-repeat,no-repeat,repeat!important}
:root[data-theme="light"]:not(.ink) .glass{background:linear-gradient(180deg,rgba(255,251,240,.7),rgba(250,240,218,.7))!important}
:root[data-theme="light"]:not(.ink) .list h3,:root[data-theme="light"]:not(.ink) .shead{background:linear-gradient(180deg,rgba(246,234,208,.97),rgba(236,222,190,.97)),url("../parchment.jpg")!important}

