 :root{--bg:#09090b;--sidebar:#101014;--panel:#141419;--card:#18181f;--card-hover:#1d1d26;--border:#292932;--text:#f4f4f5;--muted:#92929e;--dim:#666672;--accent:#8b5cf6;--accent-hover:#9b75fa;--accent-soft:rgba(139,92,246,.14);--green:#34d399;--amber:#fbbf24;--blue:#60a5fa;--radius:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:var(--sidebar);border-right:1px solid var(--border);padding:27px 17px 18px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;color:var(--text);font-size:20px;font-weight:800;letter-spacing:-.8px;text-decoration:none;padding:0 9px;margin-bottom:35px}.brand-light{font-weight:500;color:#aaaab5}.brand-mark{width:31px;height:31px;display:grid;place-items:center;background:var(--accent-soft);color:#b59aff;border:1px solid rgba(139,92,246,.28);border-radius:10px}.brand-mark svg{width:19px}.add-link{border:0;border-radius:9px;background:var(--accent);color:white;font-weight:600;padding:11px 14px;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:.18s}.add-link:hover{background:var(--accent-hover);transform:translateY(-1px)}.add-link svg{width:17px;height:17px}.side-add{width:100%;justify-content:flex-start;margin-bottom:32px;box-shadow:0 5px 20px rgba(139,92,246,.13)}kbd{font-family:inherit;font-size:10px;color:#aaaab5;border:1px solid #41414c;border-radius:5px;padding:3px 6px;background:rgba(255,255,255,.035)}.side-add kbd{margin-left:auto;color:#e5dafa;border-color:rgba(255,255,255,.2)}.nav-group{margin-bottom:27px}.nav-label{font-size:10px;font-weight:700;letter-spacing:1.15px;color:#686875;margin:0 0 10px 10px}.nav-label-row{display:flex;align-items:center;justify-content:space-between}.nav-label-row .nav-label{margin-bottom:10px}.nav-item{width:100%;height:39px;padding:0 10px;display:flex;align-items:center;gap:12px;border:0;border-radius:8px;background:transparent;color:#a6a6b1;text-align:left;font-size:13px;font-weight:500;transition:.15s}.nav-item svg{width:17px;height:17px;color:#777784}.nav-item:hover{background:#1a1a21;color:var(--text)}.nav-item.active{background:var(--accent-soft);color:#c7b5ff}.nav-item.active svg{color:#ad91ff}.nav-count{margin-left:auto;color:#777784;font-size:11px}.nav-item.active .nav-count{color:#bca7ff}.category-nav-item{height:34px}.category-dot{width:7px;height:7px;border-radius:50%;background:#7771a6;margin-left:5px}.category-nav-item.active .category-dot{background:#b49aff}.icon-button{width:34px;height:34px;border:1px solid transparent;background:transparent;color:#9696a2;border-radius:8px;display:grid;place-items:center}.icon-button:hover{background:#24242d;color:var(--text);border-color:var(--border)}.icon-button svg{width:17px}.icon-button.tiny{width:25px;height:25px;margin-top:-6px}.icon-button.tiny svg{width:14px}.sidebar-bottom{margin-top:auto}.storage-card{display:flex;gap:10px;padding:12px 10px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.018);margin-bottom:13px}.storage-icon{width:29px;height:29px;flex:none;border-radius:8px;background:rgba(52,211,153,.1);color:var(--green);display:grid;place-items:center}.storage-icon svg{width:15px}.storage-card strong{font-size:11px;font-weight:600}.storage-card p{font-size:10px;line-height:1.5;color:var(--muted);margin:4px 0 0}.sidebar-bottom>.nav-item{height:34px;font-size:11px}.sidebar-bottom>.nav-item svg{width:15px}.main{margin-left:250px;min-height:100vh}.topbar{height:68px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 48px;background:rgba(9,9,11,.82);position:sticky;top:0;z-index:4;backdrop-filter:blur(16px)}.breadcrumb{display:flex;align-items:center;gap:10px;color:#777783;font-size:12px}.breadcrumb svg{width:13px}.breadcrumb strong{font-weight:600;color:#d5d5dc}.top-actions{display:flex;align-items:center;gap:17px}.local-indicator{display:flex;align-items:center;gap:7px;font-size:11px;color:#8c8c98}.local-indicator span{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 9px rgba(52,211,153,.5)}.avatar{width:30px;height:30px;border-radius:9px;background:#24202f;border:1px solid #41345e;color:#c7b5ff;font-weight:700;font-size:10px}.content{max-width:1320px;margin:0 auto;padding:43px 48px 22px}.welcome-row{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:1.25px;font-weight:700;color:#8d7ab8;margin:0 0 11px}.welcome-row h1{font-size:33px;letter-spacing:-1.4px;margin:0;font-weight:700}.title-dot{color:var(--accent)}.subtitle{margin:8px 0 0;color:var(--muted);font-size:13px}.primary-add{padding:11px 15px;font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:31px}.stat-card{border:1px solid var(--border);background:linear-gradient(135deg,#15151b,#111115);border-radius:12px;padding:16px 18px;min-height:112px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#a4a4af;font-size:11px}.stat-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:8px}.stat-icon svg{width:15px}.stat-icon.purple{background:var(--accent-soft);color:#b69cff}.stat-icon.amber{background:rgba(251,191,36,.1);color:var(--amber)}.stat-icon.blue{background:rgba(96,165,250,.1);color:var(--blue)}.stat-card>strong{display:block;font-size:25px;letter-spacing:-1px;margin-top:7px}.stat-card>small{font-size:10px;color:#71717e}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:28px}.search-box{height:42px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid var(--border);border-radius:9px;background:#111115;flex:1;max-width:570px;color:#777783}.search-box:focus-within{border-color:#7252bd;box-shadow:0 0 0 3px rgba(139,92,246,.09)}.search-box svg{width:16px;flex:none}.search-box input{background:transparent;border:0;outline:0;color:var(--text);width:100%;font-size:12px}.search-box input::placeholder{color:#656571}.search-box kbd{flex:none}.toolbar-actions{display:flex;align-items:center;gap:9px}.select-control{height:39px;padding:0 30px 0 11px;border:1px solid var(--border);border-radius:8px;background:#111115;color:#b5b5c0;font-size:11px;outline:none}.view-toggle{display:flex;padding:3px;border:1px solid var(--border);border-radius:8px;background:#111115}.view-btn{width:29px;height:28px;border:0;border-radius:5px;background:transparent;color:#73737f;display:grid;place-items:center}.view-btn svg{width:15px}.view-btn.active{background:#292332;color:#c4adff}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-heading>div{display:flex;align-items:baseline;gap:10px}.section-heading h2{font-size:14px;font-weight:600;margin:0;letter-spacing:-.2px}.section-heading span{font-size:10px;color:#777783}.text-button{border:0;background:transparent;color:#b49aff;font-size:11px}.links-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.link-card{position:relative;min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--card);padding:15px;transition:background .18s,border-color .18s,transform .18s;animation:fadeUp .25s ease both}.link-card:hover{background:var(--card-hover);border-color:#41404e;transform:translateY(-2px)}@keyframes fadeUp{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.card-top{display:flex;align-items:center;gap:10px;margin-bottom:13px}.site-icon{width:34px;height:34px;flex:none;border-radius:9px;background:#24232e;border:1px solid #353341;display:grid;place-items:center;color:#b49aff;font-weight:700;font-size:12px;overflow:hidden}.site-icon img{width:18px;height:18px;object-fit:contain}.card-title-wrap{min-width:0;flex:1}.card-title{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 4px}.card-domain{font-size:10px;color:#777783;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-menu{display:flex;gap:2px}.card-icon-btn{width:27px;height:27px;border:0;border-radius:6px;background:transparent;color:#777783;display:grid;place-items:center}.card-icon-btn:hover{background:#30303a;color:var(--text)}.card-icon-btn svg{width:14px}.card-icon-btn.favorite.active{color:var(--amber)}.card-description{height:34px;overflow:hidden;color:#9999a5;font-size:10px;line-height:1.65;margin:0 0 15px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.card-bottom{display:flex;align-items:center;justify-content:space-between;padding-top:11px;border-top:1px solid rgba(255,255,255,.055)}.category-pill{font-size:9px;color:#b7a4ed;background:rgba(139,92,246,.1);padding:5px 8px;border-radius:5px;white-space:nowrap}.card-date{font-size:9px;color:#696975}.card-open{color:#9b84d5;display:flex;align-items:center;gap:5px;text-decoration:none;font-size:10px;font-weight:600}.card-open svg{width:12px}.links-grid.list-layout{grid-template-columns:1fr;gap:8px}.list-layout .link-card{display:flex;align-items:center;padding:11px 14px;gap:14px}.list-layout .card-top{margin:0;flex:1;min-width:180px}.list-layout .card-description{height:auto;flex:1;margin:0;max-width:260px;white-space:nowrap}.list-layout .card-bottom{border:0;padding:0;gap:12px}.empty-state{padding:70px 20px;text-align:center;border:1px dashed #34343e;border-radius:13px;background:rgba(255,255,255,.012)}.empty-icon{width:54px;height:54px;margin:0 auto 16px;display:grid;place-items:center;border-radius:16px;background:var(--accent-soft);color:#b59aff}.empty-icon svg{width:24px}.empty-state h3{font-size:16px;margin:0 0 8px}.empty-state p{font-size:12px;color:var(--muted);margin:0 auto 19px;max-width:350px;line-height:1.6}.empty-state .add-link{font-size:11px}.footer{display:flex;justify-content:space-between;margin-top:55px;padding-top:17px;border-top:1px solid #202027;color:#62626e;font-size:9px;letter-spacing:.35px}.footer b{color:var(--accent);padding:0 4px}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.7);backdrop-filter:blur(7px);z-index:20;display:grid;place-items:center;padding:20px}.modal-backdrop[hidden]{display:none}.modal{width:min(100%,470px);border:1px solid #373541;border-radius:16px;background:#15151b;box-shadow:0 25px 90px rgba(0,0,0,.55);padding:24px;animation:modalIn .18s ease}.small-modal{width:min(100%,400px)}@keyframes modalIn{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:23px}.modal-header .eyebrow{margin-bottom:7px}.modal-header h2{font-size:20px;letter-spacing:-.6px;margin:0}.field-label{display:block;color:#c7c7d0;font-size:11px;font-weight:600;margin:15px 0 7px}.field-label span{color:#b59aff}.form-input,.input-with-icon{width:100%;height:41px;border:1px solid #34343e;border-radius:8px;background:#0e0e12;color:var(--text);outline:none;padding:0 11px;font-size:12px}.form-input:focus,.input-with-icon:focus-within{border-color:#795ac1;box-shadow:0 0 0 3px rgba(139,92,246,.08)}.form-input::placeholder,.input-with-icon input::placeholder{color:#62626e}.input-with-icon{display:flex;align-items:center;gap:9px;padding-left:11px}.input-with-icon svg{width:15px;color:#777783;flex:none}.input-with-icon input{height:100%;width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:12px}.textarea{height:auto;padding:10px 11px;resize:vertical;min-height:72px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}.secondary-button{padding:10px 14px;border:1px solid #393943;border-radius:8px;background:transparent;color:#b4b4bf;font-size:11px}.secondary-button:hover{background:#22222a}.modal-actions .add-link{font-size:11px}.category-form{display:flex;gap:8px}.category-form .form-input{flex:1}.category-form .add-link{width:42px;padding:0}.category-list{display:flex;flex-direction:column;gap:7px;margin-top:17px;max-height:230px;overflow:auto}.category-row{display:flex;align-items:center;justify-content:space-between;padding:9px 10px;background:#1c1c23;border:1px solid #2c2c36;border-radius:8px;font-size:11px}.category-row small{color:#777783}.category-delete{border:0;background:transparent;color:#777783;padding:3px}.category-delete:hover{color:#fb7185}.category-delete svg{width:14px}.form-hint{font-size:10px;color:#777783;line-height:1.6;margin:14px 0 0}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);padding:11px 16px;background:#24242c;border:1px solid #41414d;border-radius:9px;color:#ededf1;font-size:11px;box-shadow:0 8px 30px rgba(0,0,0,.3);opacity:0;pointer-events:none;transition:.2s;z-index:40}.toast.show{opacity:1;transform:translate(-50%,0)}.mobile-menu{display:none}
@media(max-width:1200px){.content{padding-left:32px;padding-right:32px}.topbar{padding:0 32px}.links-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.sidebar{width:225px;transform:translateX(-100%);transition:transform .22s;box-shadow:15px 0 45px rgba(0,0,0,.3)}.sidebar.open{transform:translateX(0)}.main{margin-left:0}.mobile-menu{display:grid;margin-right:9px}.topbar{padding:0 22px}.breadcrumb{margin-right:auto}.content{padding:34px 22px 20px}}
@media(max-width:600px){.topbar{height:58px;padding:0 15px}.local-indicator{display:none}.content{padding:28px 15px 18px}.welcome-row{align-items:flex-start;gap:15px}.welcome-row h1{font-size:27px}.subtitle{font-size:11px}.primary-add{font-size:0;width:38px;height:38px;padding:0;flex:none}.primary-add svg{width:18px}.stats-grid{gap:7px;margin-bottom:23px}.stat-card{padding:12px 10px;min-height:94px}.stat-top{font-size:9px}.stat-icon{width:24px;height:24px}.stat-card>strong{font-size:21px}.stat-card>small{font-size:8px}.toolbar{align-items:stretch;flex-direction:column;gap:9px}.search-box{max-width:none;height:40px}.toolbar-actions{justify-content:space-between}.select-control{flex:1}.links-grid{grid-template-columns:1fr}.list-layout .link-card{flex-wrap:wrap}.list-layout .card-description{order:3;flex-basis:100%;max-width:none}.list-layout .card-bottom{margin-left:auto}.section-heading>div{gap:7px}.section-heading h2{font-size:13px}.footer{gap:12px;flex-direction:column;margin-top:35px}.footer span:last-child{display:none}.modal{padding:19px}.top-actions{gap:5px}}

/* Авторизация, аккаунт и административная панель */
.auth-screen{position:fixed;inset:0;z-index:100;background:radial-gradient(ellipse at 50% 15%,rgba(124,92,190,.14),transparent 48%),#09090b;display:grid;place-items:center;padding:22px;overflow:auto}.auth-screen[hidden]{display:none}.auth-panel{width:min(100%,420px);padding:34px;border:1px solid #292832;border-radius:18px;background:rgba(20,20,27,.96);box-shadow:0 24px 90px rgba(0,0,0,.45)}.auth-brand{margin-bottom:32px}.auth-panel h1{font-size:28px;letter-spacing:-1px;margin:0 0 8px}.auth-subtitle{font-size:12px;color:#92929e;margin:0 0 22px;line-height:1.6}.auth-panel .field-label{margin-top:15px}.auth-panel .form-input{margin-bottom:2px}.auth-submit{width:100%;justify-content:center;margin-top:20px;min-height:42px}.auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:17px}.auth-links .text-button{font-size:11px}.auth-message{min-height:18px;color:#9fdbbb;font-size:11px;line-height:1.5}.auth-message.error{color:#fb929d}.auth-footnote{border-top:1px solid #2a2932;padding-top:14px;margin:10px 0 0;color:#777783;font-size:10px;line-height:1.6}.account-button{border:1px solid #41345e;background:#24202f;color:#c7b5ff;border-radius:8px;padding:8px 11px;font-size:11px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-email{font-size:12px;color:#aaaab5;overflow-wrap:anywhere;margin:-9px 0 16px}.account-actions{display:flex;flex-direction:column;gap:8px}.account-actions button,.admin-modal>.secondary-button{width:100%;text-align:left}.danger-button{color:#ff9aa4}.mfa-qr{display:grid;place-items:center;background:white;border-radius:10px;padding:12px;margin:12px auto;max-width:220px;min-height:150px}.mfa-qr svg{max-width:100%;height:auto}.mfa-qr img{max-width:100%}.mfa-qr:empty{display:none}#mfaSecret{display:block;overflow-wrap:anywhere;color:#bda9f5;font-size:11px;margin:10px 0}.admin-modal{width:min(100%,650px)}.admin-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 18px}.admin-stats .stat-card{min-height:92px}.admin-stats .stat-card strong{display:block;font-size:27px;margin-top:12px}.admin-stats .stat-card span{font-size:11px;color:#aaaab5}@media(max-width:600px){.auth-panel{padding:24px 20px}.admin-stats{gap:8px}.admin-stats .stat-card{padding:12px}}

/* Founder credit */
.ceo-credit{position:fixed;right:18px;bottom:14px;z-index:150;color:#85858e;font-size:10px;font-weight:500;letter-spacing:.03em;text-shadow:none;opacity:.85;pointer-events:none;white-space:nowrap}
@media(max-width:600px){.ceo-credit{right:12px;bottom:10px;font-size:9px}}

/* Legal footer links: separate, readable items */
.footer{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.legal-links{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center}
.legal-links a{display:inline-block;color:#aaa4c4;text-decoration:none;font-size:11px;line-height:1.6;white-space:nowrap}
.legal-links a:hover{color:#fff;text-decoration:underline}
@media(max-width:600px){.legal-links{gap:8px 14px}.legal-links a{font-size:10px}}
