@charset "UTF-8";
:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#172137;background:#f6f8fc;font-synthesis:none;--bg:#f6f8fc;--card:#fff;--text:#172137;--muted:#64748b;--border:#e5e9f1;--input:#fff;--soft:#f7f8fc;--accent:#5145e5;--tint:#efedff;--error:#b42338;color-scheme:light}
*{box-sizing:border-box}body{margin:0}body.dark{--bg:#0f1424;--card:#191f33;--text:#edf1fc;--muted:#acb7cd;--border:#333b55;--input:#141a2c;--soft:#20283c;--tint:#302958;--error:#ffacb8;background:var(--bg);color:var(--text);color-scheme:dark}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,a,select,input{transition:background .15s,border-color .15s}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #36b9dc;outline-offset:3px}svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0}a{color:inherit}h1,h2,h3,p{margin-top:0}h2{font-size:16px;line-height:1.4;margin:0;font-weight:650}h3{font-size:12px;line-height:1.5;font-weight:500;margin-bottom:8px;color:var(--muted)}.topbar{min-height:86px;background:var(--card);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:18px max(24px,calc((100vw - 1220px)/2));gap:16px}.brand{display:flex;align-items:center;gap:12px}.brand strong{display:block;font-size:17px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.brand-icon{background:var(--accent);color:#fff;padding:12px;border-radius:13px;box-shadow:0 4px 12px #5145e52b}.brand-icon svg{width:24px;height:24px}.header-actions{display:flex;gap:10px;align-items:center}.icon-button{height:40px;width:40px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--muted);display:grid;place-items:center}.badge{font-size:11px;color:var(--muted);padding:8px 12px;background:var(--soft);border-radius:30px}.badge:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#11a68a;margin-right:7px}main{max-width:1160px;margin:auto;padding:38px 24px 0}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:750;color:var(--accent);margin-bottom:14px}h1{font-size:clamp(22px,2.4vw,30px);line-height:1.35;letter-spacing:-.8px;max-width:960px;margin-bottom:13px}.intro>p:last-child{font-size:13px;line-height:1.7;color:var(--muted)}.toolbar{display:flex;align-items:center;justify-content:space-between;margin:24px 0;gap:12px}.segmented{display:flex;border:1px solid var(--border);background:var(--card);padding:4px;border-radius:11px}.segmented button{min-height:36px;padding:8px 18px;background:transparent;color:var(--muted);border-radius:8px;font-size:12px}.segmented button[aria-pressed=true]{background:var(--accent);color:#fff;box-shadow:0 2px 5px #5145e530}.text-button{font-size:12px;color:var(--accent);background:transparent;min-height:40px;padding:6px 10px}.text-button svg{width:15px;height:15px}.workspace{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);gap:24px;align-items:start}.card{background:var(--card);border:1px solid var(--border);border-radius:20px;padding:24px;box-shadow:0 3px 12px #1e293b03;margin-bottom:20px;min-width:0}.card-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px}.tile{display:inline-grid;place-items:center;width:36px;height:36px;background:var(--tint);color:#7260df;border-radius:10px;flex-shrink:0}.tile.cyan{background:#e7f8fc;color:#159db6}.dark .tile.cyan{background:#163d4b;color:#65d0e3}.tag{margin-left:auto;font-size:9px;letter-spacing:1px;color:var(--muted);font-weight:650}.muted{color:var(--muted);font-size:12px;line-height:1.7;margin-bottom:22px}.fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 16px}.field.full{grid-column:1/-1}.field label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650;margin-bottom:9px;line-height:1.5}.symbol{color:var(--muted);font-weight:500;min-width:23px}.input-wrap{display:flex;border:1px solid var(--border);background:var(--input);border-radius:11px;align-items:center;min-width:0}.input-wrap:focus-within{border-color:#7c70eb;box-shadow:0 0 0 3px #5145e510}.input-wrap input{width:100%;min-width:0;border:0;background:transparent;color:var(--text);padding:15px 10px 15px 13px;font-size:16px;border-radius:11px}.input-wrap select{max-width:105px;border:0;border-left:1px solid var(--border);background:transparent;color:var(--muted);font-size:11px;padding:8px 5px;min-height:36px;margin-right:5px}.unit-fixed{padding:0 14px;color:var(--muted);font-size:12px}.hint{font-size:10px;color:var(--muted);line-height:1.6;margin:7px 0 0}.error{font-size:11px;color:var(--error);line-height:1.5;margin:6px 0 0}.error:empty{display:none}.input-wrap:has([aria-invalid=true]){border-color:var(--error)}.privacy{color:var(--muted);font-size:11px;display:flex;gap:8px;align-items:center;margin:4px 0 17px}.privacy svg{width:15px}.form-actions{display:flex;gap:12px}.primary,.secondary{border-radius:12px;padding:14px 18px;min-height:50px;font-size:13px;font-weight:600}.primary{background:var(--accent);color:white;flex:1;box-shadow:0 5px 16px #5145e522}.primary>span:last-child{margin-left:auto}.secondary{background:var(--card);border:1px solid var(--border);color:var(--muted)}.status{font-size:12px;color:var(--error);line-height:1.6;margin:10px 0}.gsm-card{background:radial-gradient(ellipse at top right,#322e67 0,transparent 65%),#1a1d43;color:#fff;padding:27px;border-radius:20px;margin-bottom:20px;box-shadow:0 8px 22px #171a3d12}.gsm-top{display:flex;align-items:center;gap:9px;color:#c7cbed}.gsm-top h2{font-size:11px;letter-spacing:.8px}.gsm-top svg{width:19px}.result-tag{font-size:8px;border:1px solid #ffffff29;padding:5px 6px;border-radius:4px;margin-left:auto}.gsm-number{font-size:52px;font-weight:650;letter-spacing:-2px;line-height:1.2;margin:25px 0 7px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.output-select{display:flex;gap:12px;align-items:center;font-size:11px;color:#b9bedf}.output-select select{background:#ffffff0c;color:#fff;border:1px solid #ffffff26;border-radius:6px;padding:5px 8px;font-size:12px}option{background:var(--card);color:var(--text)}.gsm-card>p{font-size:12px;color:#b9bedf;margin:12px 0 20px}.result-note{padding:12px;background:#ffffff05;border:1px solid #ffffff15;border-radius:10px;color:#cbd0ee;font-size:11px;line-height:1.6}.gsm-actions{display:flex;gap:10px;margin-top:16px}.gsm-actions button{background:transparent;border:1px solid #ffffff20;border-radius:10px;color:#e3e6ff;min-height:40px;flex:1;font-size:12px}.gsm-actions svg{width:16px}.totals .card-heading{justify-content:space-between}.totals select{border:1px solid var(--border);border-radius:7px;background:var(--input);color:var(--text);padding:5px;font-size:12px}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat{padding:16px;background:var(--soft);border:1px solid var(--border);border-radius:12px;min-width:0}.stat>.tile{width:28px;height:28px;margin-bottom:10px}.stat svg{width:17px;height:17px}.stat p{margin:0;font-size:11px;color:var(--muted)}.stat strong{font-size:22px;font-weight:650;letter-spacing:-.5px;color:var(--text);overflow-wrap:anywhere}.stat.wide{grid-column:1/-1;display:flex;gap:13px;align-items:center}.stat.total{background:var(--tint);border-color:transparent;color:#7867df}.stat.total strong{color:var(--accent)}.dark .stat.total strong{color:#b4aaff}.stat.linear{background:transparent;border:0;padding:10px 0 0}.linear .tile{margin:0}.linear strong{font-size:19px}.linear h3{margin-bottom:4px}summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}.chevron{margin-left:auto;color:var(--muted)}details>.muted{margin-top:16px;margin-bottom:16px}.empty{font-size:12px;color:var(--muted);background:var(--soft);padding:18px;border-radius:10px;line-height:1.8;margin:0}.formula{padding:12px 0;border-top:1px solid var(--border);font-size:11px;line-height:1.9;overflow-wrap:anywhere}.formula strong{display:block;font-size:12px;margin-bottom:5px}.formula code{display:block;font:11px/1.9 Consolas,monospace;white-space:normal;color:var(--muted)}.conversion-table{width:100%;font-size:10px;border-collapse:collapse;margin:10px 0}.conversion-table th,.conversion-table td{text-align:left;padding:7px 5px;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.history{margin-top:8px}.history .card-heading h2{flex:1}.count{font-size:11px;background:var(--soft);padding:3px 7px;border-radius:5px;color:var(--muted);margin-left:8px}.history-row{display:flex;align-items:center;gap:14px;padding:15px 0;border-top:1px solid var(--border);font-size:12px}.history-row div{flex:1}.history-row small{display:block;color:var(--muted);margin-top:6px;font-size:10px}.history-row button{border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--accent);padding:10px;font-size:11px}.history-row strong{font-variant-numeric:tabular-nums}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--card);border-radius:12px;padding:14px 20px;font-size:12px;box-shadow:0 5px 25px #0002;z-index:10;max-width:90vw}.toast:empty{display:none}footer{display:flex;justify-content:space-between;gap:10px;padding:12px 0 28px;font-size:10px;color:var(--muted)}.skip{position:fixed;top:-100px;left:15px;z-index:20;padding:15px;background:var(--card)}.skip:focus{top:10px}
@media(min-width:1400px){main{padding-top:44px}}
@media(max-width:760px){.topbar{padding:16px 20px;min-height:76px}.badge{display:none}main{padding:28px 18px 0}.workspace{grid-template-columns:1fr;gap:16px}h1{font-size:24px;letter-spacing:-.5px}.card{padding:22px;border-radius:18px}.intro>p:last-child{font-size:12px}.brand strong{font-size:14px}.brand small{font-size:9px}.brand-icon{padding:10px}.header-actions{gap:6px}.icon-button{width:34px;height:36px}.toolbar{margin:22px 0}.segmented button{padding:8px 12px;font-size:11px}.text-button{font-size:11px}.gsm-number{font-size:52px}.history-row{flex-wrap:wrap}.history-row div{min-width:120px}footer{flex-direction:column}.form-actions{margin-bottom:6px}}
@media(max-width:420px){.fields{grid-template-columns:1fr}.field.full{grid-column:auto}.card{padding:20px}.brand small{max-width:155px;line-height:1.5}.header-actions a{display:none}.toolbar{gap:6px}.toolbar>.text-button{padding:4px;font-size:10px}.toolbar>.text-button svg{display:none}.stat{padding:12px}.stat strong{font-size:20px}.gsm-card{padding:24px}.history .card-heading{gap:8px;flex-wrap:wrap}.history .card-heading h2{font-size:14px}.tag{font-size:8px}.card-heading h2{font-size:15px}}
@media print{body,body.dark{--bg:white;--card:white;--text:#111;--muted:#444;--border:#ccc;--soft:#f6f6f6;--tint:#eee;background:white;color:#111;color-scheme:light}.topbar,.toolbar,.form-actions,.privacy,.history,footer,.header-actions,.toast,.skip,.gsm-actions,.status{display:none!important}main{padding:0;max-width:none}.intro{margin-bottom:20px}h1{font-size:19px}.workspace{display:block}.card{box-shadow:none;padding:15px;break-inside:avoid;margin-bottom:12px}.gsm-card{background:white;color:#111;border:2px solid #222;box-shadow:none;padding:15px;break-inside:avoid}.gsm-card *{color:#111!important}.gsm-number{font-size:36px;margin:10px 0}.gsm-top{color:#111}.gsm-card select{border:1px solid #999}.result-note{border-color:#ccc}.fields{grid-template-columns:repeat(3,1fr)}.field.full{grid-column:auto}.input-wrap input{padding:6px;font-size:12px}.input-wrap select{font-size:10px}.gsm-card>p{margin:8px 0}.stat-grid{grid-template-columns:1fr 1fr}.conversion-table{font-size:10px}.formula{break-inside:avoid}#parameters .muted,.hint{display:none}.tile{background:#eee!important;color:#444!important}.input-wrap{border:1px solid #ccc}}
.authors-institution{font-size:13px;color:var(--muted);margin:0 0 20px}.authors-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px}.authors-list li{border-top:1px solid var(--border);padding-top:16px;break-inside:avoid}.authors-list h3{font-size:14px;font-weight:650;color:var(--text);margin:0 0 6px;line-height:1.5}.authors-list p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}@media(max-width:760px){.authors-list{grid-template-columns:1fr;gap:16px}}@media print{.authors-list{grid-template-columns:1fr 1fr;gap:12px 20px}.authors-list h3{font-size:12px}.authors-list p,.authors-institution{font-size:10px}}
/* Mualliflar kartochkalari */
.authors{padding:28px;background:linear-gradient(140deg,var(--card),var(--soft))}.authors-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.authors-header .card-heading{margin:0}.authors-institution{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;line-height:1.6}.authors-institution svg{width:17px;height:17px}.authors-list{gap:16px}.authors-list .author-card{--author-ink:#5145c4;--author-tint:#eeecff;--author-line:#dcd7ff;position:relative;min-width:0;padding:22px;border:1px solid var(--border);border-radius:16px;background:var(--card);box-shadow:0 3px 12px #18234a04;overflow:hidden}.author-card:before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--author-ink),var(--author-line))}.authors-list .author-cyan{--author-ink:#087d92;--author-tint:#e5f6fa;--author-line:#bee9f1}.author-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.author-avatar{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border-radius:14px;background:var(--author-tint);color:var(--author-ink);font-size:16px;font-weight:700;letter-spacing:.5px}.author-role{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:8px;background:var(--author-tint);color:var(--author-ink);font-size:10px;font-weight:600;line-height:1.5}.author-role svg{width:15px;height:15px}.authors-list h3{font-size:15px;line-height:1.55;margin-bottom:7px}.authors-list p{font-size:12px}.dark .authors-list .author-card{--author-ink:#c2b8ff;--author-tint:#302958;--author-line:#4b426e}.dark .authors-list .author-cyan{--author-ink:#80dbea;--author-tint:#163d4b;--author-line:#235866}@media(max-width:760px){.authors{padding:20px}.authors-header{align-items:flex-start;flex-direction:column;gap:12px}.authors-list .author-card{padding:20px}.authors-list{grid-template-columns:1fr}.author-card-top{margin-bottom:15px}}@media print{.authors{background:white;padding:15px}.authors-list{grid-template-columns:1fr 1fr}.authors-list .author-card{padding:14px;box-shadow:none;--author-ink:#333;--author-tint:#eee;--author-line:#bbb}.author-avatar{width:34px;height:34px;font-size:12px}.author-card-top{margin-bottom:10px}.authors-list h3{font-size:12px}.authors-list p{font-size:10px}}
.about-dialog{width:min(660px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:28px;border:1px solid var(--border);border-radius:22px;background:var(--card);color:var(--text);box-shadow:0 24px 80px #10183340;overflow-y:auto;overscroll-behavior:contain}.about-dialog::backdrop{background:#10172d88;backdrop-filter:blur(4px)}body:has(.about-dialog[open]){overflow:hidden}.about-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.about-heading h2{font-size:20px}.about-heading form{margin-left:auto}.about-heading button{font-size:26px}.about-description{font-size:14px;line-height:1.8;color:var(--muted);margin-bottom:22px}.about-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.about-features section{padding:18px;border:1px solid var(--border);background:var(--soft);border-radius:14px}.about-features h3,.about-usage h3{font-size:14px;font-weight:650;color:var(--text);margin:12px 0 7px}.about-features p{font-size:12px;line-height:1.8;color:var(--muted);margin:0}.about-usage{margin-top:24px}.about-usage ol{padding-left:22px;margin:10px 0;font-size:13px;line-height:1.8;color:var(--muted)}.about-usage li{padding-left:4px;margin-bottom:7px}.about-storage{display:flex;align-items:flex-start;gap:10px;padding:14px;border-radius:12px;background:var(--tint);color:var(--text);font-size:11px;line-height:1.8;margin:20px 0}.about-storage svg{width:17px;height:17px;margin-top:2px}.about-footer{display:flex;justify-content:flex-end}.about-footer .primary{flex:initial;font-size:12px;min-height:44px}@media(max-width:480px){.about-dialog{padding:20px}.about-features{grid-template-columns:1fr}.about-heading h2{font-size:18px}.about-footer .primary{width:100%}.about-description{font-size:13px}}@media print{.about-dialog{display:none!important}}
