:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#292331;background:#faf8f8;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
button,input,textarea{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.42}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #d94c80;outline-offset:3px}
.layout{min-height:100vh;display:grid;grid-template-columns:230px 1fr}
.sidebar{background:#fff;border-right:1px solid #eee6e9;padding:30px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:800;letter-spacing:-1px;padding:0 8px 44px}
.brand-icon{display:grid;place-items:center;background:#ea6393;color:white;width:40px;height:40px;border-radius:13px;font-size:25px}
.brand-pink,.pink-dot{color:#df5888}
.brand small{display:block;font-size:8px;letter-spacing:2.2px;color:#a89aa2;margin-top:3px}
.side-label,.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#ad9ba5}
.side-label{padding:0 9px 13px}
.sidebar nav{display:grid;gap:5px}
.sidebar nav a{display:flex;align-items:center;gap:12px;color:#746b75;padding:12px;border-radius:10px;font-size:14px;font-weight:600}
.sidebar nav a[aria-current]{background:#fff0f5;color:#cf4c7b}
.nav-icon{font-size:19px;width:22px;text-align:center}
.nav-demo{margin-left:auto;font-size:9px;background:#f5eff1;padding:3px 5px;border-radius:5px}
.sparkle{color:#e46795;font-size:24px;margin-bottom:10px}
.topbar{height:69px;border-bottom:1px solid #eee6e9;background:#fffcfc;display:flex;justify-content:space-between;align-items:center;padding:0 5%;font-size:12px;color:#8c7c86;font-weight:700}
.arrow{color:#dc608d;padding:0 5px}
.top-divider{padding:0 12px;color:#dfd5d9}
.demo-pill{background:#f9eef2;color:#b55b7c;border:1px solid #f3dce5;border-radius:20px;padding:8px 11px;font-size:9px;letter-spacing:1px}
.demo-pill i,.status i{display:inline-block;width:7px;height:7px;background:#df7299;border-radius:50%;margin-right:5px}
.page{max-width:1350px;margin:auto;padding:42px 5%}
.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}
.page-heading h1{font-size:38px;letter-spacing:-1.5px;margin:8px 0}
.page-heading p,.panel p{color:#91838c;font-size:14px;line-height:1.6;margin:0}
.model-tag{background:white;border:1px solid #eee6e9;padding:11px 14px;border-radius:10px;font-weight:700;font-size:12px}
.model-tag span{color:#dc5b8a}
.model-tag small{font-size:9px;color:#bbabb2;margin-left:8px}
.demo-note{display:flex;gap:12px;align-items:start;background:#fff0f5;border:1px solid #f8dce7;color:#9a5d75;border-radius:12px;padding:13px 16px;margin-bottom:18px;font-size:12px;line-height:1.5}
.demo-note span{color:#dd5f8e;font-size:17px}
.demo-note p{margin:0}
.workspace,.panel{background:#fff;border:1px solid #eee6e9;border-radius:16px;box-shadow:0 8px 30px #4b283908}
.workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"source result" "controls controls"}
.workspace>.editor:first-child{grid-area:source}
.workspace>.result-editor{grid-area:result}
.workspace-bottom{grid-area:controls}
.editor{min-width:0;padding:19px 22px 14px}
.result-editor{border-left:1px solid #f0e8eb;background:#fffcfd;border-radius:0 16px 0 0}
.editor-head,.editor-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.editor-head label{font-weight:750;font-size:14px}
.editor-head small{font-size:9px;letter-spacing:1px;color:#b5a9af;margin-left:8px}
.lang-icon{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f4f1f2;color:#6d626a;font-size:10px;margin-right:8px}
.lang-icon.ru{background:#fce9f0;color:#d45a87}
.ready{font-size:11px;color:#c97897}
.editor textarea{display:block;border:0;resize:vertical;width:100%;height:250px;min-height:180px;background:transparent;padding:25px 0 15px;line-height:1.7;color:#3d343a;outline:none}
.editor textarea::placeholder{color:#c2b8bd}
.editor-foot{font-size:11px;color:#b1a4ab}
.text-button,.result-actions button{border:0;background:none;color:#aa99a2;font-size:11px;padding:7px}
.result-actions button:not(:disabled){color:#ce5985}
.workspace-bottom{border-top:1px solid #f0e8eb;padding:17px 22px;display:flex;justify-content:space-between;align-items:start;gap:20px}
.translate-controls{display:flex;align-items:center;gap:20px}
.status{font-size:11px;color:#978991;white-space:nowrap}
.status.failed{color:#b03c51}
.status.succeeded{color:#45916f}
.status.succeeded i{background:#59aa82}
.primary,.secondary{border:0;border-radius:10px;padding:13px 20px;font-weight:700;font-size:13px}
.primary{background:#df5b8c;color:white;box-shadow:0 4px 12px #dd5b8b33}
.primary:hover{background:#c94b7a}
.primary span{margin-left:15px}
.secondary{border:1px solid #eadde3;background:#fff;color:#8b6474}
.notice{font-size:12px;color:#579274;padding:0 22px 14px}
.notice:empty{display:none}
.error{color:#b54159!important}
footer{border-top:1px solid #eee6e9;margin-top:45px;padding-top:20px;color:#bcafb5;font-size:11px}
footer span{color:#df789d;margin:0 8px}
.panel{padding:25px;margin-bottom:18px}
.panel h2{font-size:18px;margin:0 0 7px}
.panel-title{display:flex;justify-content:space-between;align-items:start}
.count-badge{background:#fff0f5;color:#c55a80;padding:6px 10px;border-radius:8px;font-size:12px}
.field-label,.term-form label{display:block;font-size:12px;font-weight:700;color:#766873;margin:20px 0 8px}
input[type=search],input:not([type]),.term-form input{display:block;width:100%;border:1px solid #eadee3;border-radius:9px;padding:12px;margin-top:8px;background:#fff}
.empty{text-align:center;color:#ad9da5;padding:38px 10px;font-size:13px}
.empty h3{color:#554750;margin-bottom:6px}
.empty a{display:inline-block;color:#ce5985;margin-top:12px;font-weight:700}
.history-row{width:100%;border:0;border-bottom:1px solid #f2e9ed;background:white;padding:18px 2px;text-align:left;display:flex;justify-content:space-between;gap:15px;color:#51454c}
.history-row small{display:block;color:#a5989f;margin-top:6px}
.success-label{font-size:11px;color:#619a7a;white-space:nowrap}
.term-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}
.term-form label{margin-bottom:0}
.term-head,.term-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center;padding:15px 0;border-bottom:1px solid #f2e9ed;font-size:13px}
.term-head{color:#b4a7ae;font-size:9px;letter-spacing:1px;margin-top:22px}
.profile{display:flex;align-items:center;gap:15px}
.avatar,.coming-icon{display:grid;place-items:center;background:#fff0f5;color:#d95887;border-radius:15px;width:56px;height:56px;font-size:24px;font-weight:bold}
.setting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;border-top:1px solid #f2e9ed;font-size:13px}
.setting:first-of-type{margin-top:20px}
.setting small{display:block;color:#9e9098;margin-top:6px}
.setting input{accent-color:#dd5b8b;width:20px;height:20px}
.coming{text-align:center;padding:65px 20px}
.coming-icon{margin:0 auto 20px}
.coming h2{margin:10px}
.coming p{max-width:360px;margin:0 auto 24px}
.link-button{display:inline-block}
.tabs{display:flex;gap:6px;overflow:auto;margin-bottom:12px}
.tabs button{border:0;background:transparent;padding:12px 16px;color:#8d7e87;white-space:nowrap}
.tabs [aria-pressed=true]{color:#c9517d;background:#fff0f5;border-radius:9px;font-weight:700}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}
.stats div{background:#fbf8f9;padding:18px;border-radius:10px}
.stats small,.stats strong,.stats span{display:block}
.stats small{color:#b3a4ab;font-size:9px;letter-spacing:1px}
.stats strong{font-size:25px;margin:12px 0}
.stats span{color:#a09399;font-size:11px}
#admin-detail:not(:empty){background:#fff3f7;padding:16px;margin-top:15px;border-radius:9px;font-size:13px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:850px){.layout{grid-template-columns:1fr}
.sidebar{position:static;height:auto;padding:14px 16px;border-bottom:1px solid #eee6e9}
.brand{padding:0 0 12px}
.brand-icon{width:32px;height:32px}
.side-label{display:none}
.sidebar nav{display:flex;overflow:auto}
.sidebar nav a{white-space:nowrap;padding:9px;font-size:12px}
.nav-icon{font-size:15px}
.topbar{height:48px}
.page{padding:28px 16px}
.page-heading h1{font-size:31px}
.editor textarea{height:200px}
}
@media(max-width:560px){.workspace{grid-template-columns:minmax(0,1fr);grid-template-areas:"source" "controls" "result"}
.result-editor{border-left:0;border-top:1px solid #f0e8eb;border-radius:0}
.editor textarea{height:180px}
.editor-head small{display:none}
.workspace-bottom{flex-direction:column}
.translate-controls{width:100%;justify-content:space-between}
.term-form,.stats{grid-template-columns:1fr}
.model-tag{display:none}
.topbar{padding:0 16px}
.page-heading p{max-width:290px}
}



.editor textarea:focus-visible{outline:3px solid #d94c80;outline-offset:3px}

[hidden]{display:none!important}
.flash{padding:14px 16px;margin-bottom:18px;border:1px solid #f1d7e1;border-radius:10px;background:#fff0f5;color:#82475e;line-height:1.5}
.flash.error{background:#fff1f1;border-color:#efcccc}
.columns,.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.form label:not(.check),.translation-options>label:not(.check){display:block;font-size:12px;font-weight:700;color:#766873;margin:16px 0 8px}
.form input:not([type=checkbox]),.form textarea,.translation-options select{display:block;width:100%;border:1px solid #eadee3;border-radius:9px;padding:11px;margin-top:8px;background:#fff;color:#3d343a}
.form textarea{resize:vertical}
.form button{margin-top:16px}
.check{display:flex;align-items:flex-start;gap:8px;color:#766873;font-size:12px;line-height:1.5;margin:16px 0}
.check input{accent-color:#dd5b8b;flex:none;margin-top:3px}
.translation-options{flex:1;max-width:620px}
.data-list{margin-top:15px}
.data-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #f2e9ed;padding:13px 0;font-size:13px;overflow-wrap:anywhere}
.data-row button{margin:0}
.data-row small{color:#95858e}
.secret{margin-top:16px;padding:14px;background:#fff0f5;border-radius:9px;overflow-wrap:anywhere;font-size:13px}
.inline-form{margin-top:18px}
.product-grid .panel{margin:0}
.product-grid strong{display:block;font-size:25px;margin:18px 0}
.product-grid button{margin-top:18px}
.form select{display:block;width:100%;border:1px solid #eadee3;border-radius:9px;padding:11px;margin-top:8px;background:#fff}
.admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.admin-fields .wide{grid-column:1/-1}
.api-example{white-space:pre-wrap;overflow-wrap:anywhere;background:#fbf8f9;padding:14px;border-radius:9px;font-size:12px}
.workspace-bottom{align-items:flex-end}
@media(max-width:650px){.columns,.product-grid,.admin-fields{grid-template-columns:1fr}
.admin-fields .wide{grid-column:auto}
.workspace-bottom{align-items:stretch}
}

select:focus-visible{outline:3px solid #d94c80;outline-offset:3px}


/* Accessible navigation and higher-contrast secondary text. */
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; transform: translateY(-160%); background: #fff; color: #842d50; border: 2px solid #b83c6a; border-radius: 8px; padding: 10px 14px; }
.skip-link:focus { transform: translateY(0); }
.page-heading p, .panel p, .editor-foot, .topbar { color: #74636e; }
.side-label, .eyebrow { color: #816a76; }
.editor textarea::placeholder { color: #80717b; }
#tts-capabilities { margin-top: 20px; }

.auth-view {max-width: 32rem; margin: clamp(1rem, 6vh, 5rem) auto;}
.auth-view .panel {padding: clamp(1.25rem, 4vw, 2.5rem);}
.auth-view h1 {margin: 0; font-size: clamp(1.75rem, 4vw, 2.25rem);}
.auth-view a, .account-link {color: #98345e; font-weight: 600;}
.auth-view a.primary {color: white;}
#issued-password {overflow-wrap: anywhere; user-select: all;}
#setup-key {display:block;user-select:all;overflow-wrap:anywhere}
#copy-setup-key {margin:8px 0 16px}

.layout > main, .panel-title > div {min-width:0}
.panel-title {gap:12px;flex-wrap:wrap}
.panel-title > div {flex:1 1 14rem;overflow-wrap:anywhere}
.nav-toggle {display:none}
.data-settings {max-width:42rem}
.data-settings p {margin-bottom:10px}
.auth-view form > a, #registration-result .link-button {display:block;width:fit-content;margin-top:12px}
#issued-password {display:block;margin:16px 0;padding:14px;background:#fff0f5;border-radius:8px}

@media (max-width:650px) {
  .layout {display:block}
  .sidebar {flex-direction:row;align-items:center;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;padding:6px 16px;border-right:0}
  .brand {min-height:44px;padding:0;gap:7px;font-size:19px}
  .brand-icon {width:28px;height:28px;font-size:18px;border-radius:9px}
  .brand small,.nav-icon,.topbar,.page-heading .eyebrow {display:none}
  .sidebar nav {flex-wrap:wrap;gap:2px;overflow:visible}
  .sidebar nav a {min-height:44px;padding:0 10px;font-size:14px}
  .page {padding:20px 16px 24px}
  .page-heading {margin-bottom:16px}
  .page-heading h1 {margin:0 0 4px;font-size:30px}
  .page-heading p {max-width:none;line-height:1.45}
  .panel {padding:16px;margin-bottom:12px}
  .panel-title {align-items:center}
  .panel-title > div {flex-basis:auto}
  #account-name {overflow-wrap:anywhere}
  #quota-stats {margin-top:12px;gap:6px;grid-template-columns:1fr}
  #quota-stats div {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 8px;padding:10px 12px}
  #quota-stats strong {font-size:20px;margin:0}
  #quota-stats span {grid-column:1/-1;color:#74636e;font-size:13px}
  #quota-stats small {color:#74636e;font-size:11px}
  .sidebar {position:relative;z-index:2}
  .nav-toggle {display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid #eadde3;border-radius:10px;background:white;color:#554750;font:inherit;font-weight:600}
  .nav-toggle[aria-expanded=true] {background:#fff0f5;color:#98345e}
  .nav-toggle:not([hidden]) + nav {position:absolute;right:16px;top:calc(100% + 4px);display:grid;width:min(16rem,calc(100% - 32px));padding:6px;border:1px solid #eadde3;border-radius:12px;background:white;box-shadow:0 8px 24px #4b28391c}
  .nav-toggle:not([hidden])[aria-expanded=false] + nav {display:none}
  .auth-view {margin:0 auto}
  .auth-view .panel {padding:4px 0 0;margin:0;background:transparent;border:0;box-shadow:none}
  .auth-view h1 {font-size:30px;margin-bottom:6px}
  .auth-view .form > button,.auth-view .link-button {width:100%;text-align:center}
  .auth-view form > a {display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;margin-top:4px}
  .form input:not([type=checkbox]),.form select,.form textarea,.editor textarea {font-size:16px}
  .form label:not(.check) {font-size:14px}
  .check {font-size:14px;min-height:44px;align-items:flex-start}
  .check input {width:18px;height:18px;margin:2px 0 0}
  .primary,.secondary,.result-actions button,.text-button {min-height:44px;font-size:14px}
  footer {margin-top:24px;padding-top:12px}
}
@media (max-width:560px) {
  .editor {padding:10px 14px}
  .editor textarea {height:112px;min-height:96px;padding:10px 0;line-height:1.5}
  .editor-foot {color:#74636e;font-size:12px}
  .workspace-bottom {gap:8px;padding:10px 14px 14px}
  .translation-options .check {margin:4px 0}
  .result-editor {border-radius:0 0 16px 16px}
  .result-actions button,.text-button,.ready {color:#86516a}
  .result-actions {display:flex;flex-wrap:wrap}
}
