*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:#f6f7fb;color:#171923}a{color:#2457d6;text-decoration:none}button,input{font:inherit}.top{height:64px;background:#fff;border-bottom:1px solid #e7e9ef;display:flex;align-items:center;justify-content:space-between;padding:0 24px}.brand{font-size:22px;font-weight:800;color:#171923}.top nav{display:flex;gap:18px;align-items:center}.container{max-width:1100px;margin:32px auto;padding:0 20px}.hero,.auth-card{background:#fff;border:1px solid #e5e7ee;border-radius:18px;box-shadow:0 8px 30px rgba(18,31,53,.06)}.hero{padding:28px;margin-bottom:28px}.auth-card{max-width:460px;margin:60px auto;padding:30px}.form{display:grid;gap:16px}.form label{display:grid;gap:7px;font-weight:600}.form input{padding:12px 14px;border:1px solid #ccd1dc;border-radius:10px}.form button,.hero button,button{border:0;border-radius:10px;background:#2457d6;color:#fff;padding:11px 16px;cursor:pointer}.drop{border:2px dashed #b9c3da;border-radius:14px;padding:36px 20px;text-align:center;display:grid;gap:8px;cursor:pointer;margin:18px 0}.drop input{display:none}.muted{color:#6b7280}.center{text-align:center}.alert{padding:12px 14px;border-radius:10px;margin:12px 0}.alert.error{background:#feecec;color:#9b1c1c}.alert.success{background:#eaf8ef;color:#166534}.section-head{display:flex;justify-content:space-between;align-items:center}.table-wrap{overflow:auto;background:#fff;border:1px solid #e5e7ee;border-radius:14px}table{border-collapse:collapse;width:100%;min-width:760px}th,td{padding:14px 16px;border-bottom:1px solid #eceef3;text-align:left;vertical-align:middle}th{font-size:13px;color:#6b7280;background:#fafbfc}.actions{display:flex;gap:8px;align-items:center}.actions form{margin:0}.linkbtn{background:#edf2ff;color:#244aa5}.danger{background:#c0392b}.empty{padding:30px;background:#fff;border:1px dashed #ccd1dc;border-radius:14px;color:#6b7280}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0 30px}.stats>div{background:#fff;border:1px solid #e5e7ee;border-radius:14px;padding:20px}.stats strong{display:block;font-size:26px}.stats span{color:#6b7280}@media(max-width:700px){.top{padding:0 14px}.top nav span{display:none}.container{margin:20px auto;padding:0 12px}.stats{grid-template-columns:1fr}.auth-card{margin:20px 12px}.section-head{display:block}}

/* Public landing page */
.landing-body{background:#fff;color:#111827}.landing-shell{width:min(1160px,calc(100% - 40px));margin:0 auto}.landing-top{position:relative;z-index:10;background:#fff}.guest-nav{gap:10px!important}.guest-nav .nav-login{color:#374151;font-weight:600}.button-small,.button-primary,.button-secondary{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;font-weight:700;text-decoration:none}.button-small{padding:9px 14px;background:#111827;color:#fff!important}.landing-hero{overflow:hidden;background:linear-gradient(180deg,#f8faff 0%,#fff 100%);border-bottom:1px solid #eef0f5}.hero-grid{min-height:610px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:70px;padding:70px 0}.eyebrow{display:inline-block;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#2457d6;margin-bottom:16px}.hero-copy h1{font-size:clamp(42px,5.2vw,72px);line-height:1.02;letter-spacing:-.045em;margin:0 0 24px;color:#10131a}.hero-lead{max-width:620px;font-size:20px;line-height:1.6;color:#5f6775;margin:0 0 30px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.button-large{padding:14px 20px}.button-primary{background:#2457d6;color:#fff}.button-primary:hover{background:#1e49b6}.button-secondary{background:#fff;color:#1f2937;border:1px solid #d6dae3}.button-secondary:hover{background:#f8fafc}.hero-note{font-size:14px;color:#7a8290;margin:16px 0 0}.upload-preview{position:relative}.upload-preview:before{content:"";position:absolute;width:430px;height:430px;border-radius:50%;background:#e8efff;filter:blur(2px);left:50%;top:50%;transform:translate(-50%,-50%)}.preview-window{position:relative;background:#fff;border:1px solid #dfe4ee;border-radius:22px;box-shadow:0 28px 70px rgba(22,39,74,.15);padding:18px}.preview-top{display:flex;gap:7px;padding-bottom:16px;border-bottom:1px solid #eef0f4}.preview-top span{width:8px;height:8px;border-radius:50%;background:#d6dae2}.preview-content{height:255px;border:2px dashed #bdc8df;border-radius:16px;margin-top:18px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:8px;color:#697386}.preview-content strong{font-size:18px;color:#1e293b}.preview-icon{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:#edf2ff;color:#2457d6;font-size:30px;font-weight:700;margin-bottom:8px}.preview-file{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;margin-top:15px;padding:13px;border-radius:13px;background:#f7f9fc}.preview-file-icon{width:38px;height:38px;border-radius:9px;background:#e5ebfa;color:#2457d6;font-weight:800;display:grid;place-items:center}.preview-file strong,.preview-file span{display:block}.preview-file span{font-size:12px;color:#7a8290;margin-top:3px}.preview-ok{width:26px;height:26px;border-radius:50%;background:#e8f7ee;color:#15803d;display:grid;place-items:center;font-weight:800}.landing-section{padding:90px 0}.landing-section-alt{background:#f7f8fb;border-top:1px solid #eceff4;border-bottom:1px solid #eceff4}.section-intro{text-align:center;max-width:700px;margin:0 auto 46px}.section-intro h2,.benefit-layout h2,.cta-box h2{font-size:clamp(32px,4vw,48px);line-height:1.1;letter-spacing:-.035em;margin:0 0 14px}.section-intro p,.benefit-lead{font-size:18px;line-height:1.65;color:#697386;margin:0}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.feature-card{border:1px solid #e4e7ee;border-radius:18px;padding:28px;background:#fff;min-height:240px}.feature-number{font-size:13px;font-weight:800;color:#2457d6;margin-bottom:48px}.feature-card h3{font-size:21px;margin:0 0 10px}.feature-card p{color:#697386;line-height:1.6;margin:0}.benefit-layout{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}.benefit-list{display:grid;gap:14px}.benefit-list>div{display:grid;grid-template-columns:38px 1fr;gap:12px;padding:20px;background:#fff;border:1px solid #e1e5ec;border-radius:15px}.benefit-list>div>span{width:30px;height:30px;border-radius:50%;background:#eaf8ef;color:#15803d;display:grid;place-items:center;font-weight:800}.benefit-list p{margin:0;color:#697386;line-height:1.5}.benefit-list strong{color:#202631}.landing-cta{padding:80px 0}.cta-box{border-radius:24px;background:#111827;color:#fff;padding:44px 48px;display:flex;justify-content:space-between;gap:30px;align-items:center}.cta-box h2{font-size:34px;margin-bottom:8px}.cta-box p{margin:0;color:#b7bfcc}.cta-box .button-primary{white-space:nowrap}.landing-footer{border-top:1px solid #e8ebf0;padding:26px 0;background:#fff}.landing-footer .landing-shell{display:flex;justify-content:space-between;gap:20px;color:#77808f}.landing-footer strong{color:#171923}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr;gap:45px;padding:56px 0 70px}.upload-preview{max-width:600px;width:100%;margin:0 auto}.benefit-layout{grid-template-columns:1fr;gap:42px}.feature-grid{grid-template-columns:1fr}.feature-card{min-height:0}.feature-number{margin-bottom:28px}.landing-section{padding:65px 0}}
@media(max-width:620px){.landing-shell{width:min(100% - 28px,1160px)}.landing-top{height:60px}.guest-nav .nav-login{display:none}.hero-grid{min-height:auto;padding-top:46px}.hero-copy h1{font-size:42px}.hero-lead{font-size:17px}.hero-actions{display:grid}.button-large{width:100%}.preview-content{height:210px}.landing-section{padding:56px 0}.cta-box{padding:30px 24px;display:grid}.cta-box .button-large{width:100%}.landing-footer .landing-shell{display:grid;gap:6px}}

/* File page */
.file-page{max-width:1050px}.file-card{background:#fff;border:1px solid #e5e7ee;border-radius:20px;box-shadow:0 8px 30px rgba(18,31,53,.06);padding:28px}.file-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:22px}.file-head h1{margin:8px 0 8px;font-size:34px;line-height:1.15;word-break:break-word}.file-badge{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#edf2ff;color:#244aa5;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.file-actions-main{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.button-inline{padding:11px 16px}.file-meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:26px}.file-meta-grid>div{background:#f8f9fc;border:1px solid #e6e9f1;border-radius:14px;padding:16px}.file-meta-grid span{display:block;font-size:12px;color:#6b7280;margin-bottom:7px;text-transform:uppercase;letter-spacing:.05em}.file-meta-grid strong{font-size:15px;word-break:break-word}.preview-panel{border:1px solid #e5e7ee;border-radius:18px;padding:20px;background:#fcfcfe}.preview-panel-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.preview-panel-head h2{margin:0;font-size:22px}.image-preview-wrap,.doc-frame-wrap,.media-preview-wrap,.text-preview-wrap{background:#f5f7fb;border:1px solid #e3e7ef;border-radius:16px;overflow:hidden}.image-preview{display:block;width:100%;max-height:75vh;object-fit:contain;background:#fff}.doc-frame{display:block;width:100%;height:75vh;border:0;background:#fff}.text-preview-wrap pre{margin:0;padding:20px;overflow:auto;white-space:pre-wrap;word-break:break-word;font:14px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#1f2937}.preview-note{margin:10px 2px 0}.media-player{display:block;width:100%;max-height:75vh;background:#000}.audio-panel{padding:26px;display:grid;gap:18px;justify-items:center}.audio-art{width:84px;height:84px;border-radius:24px;background:#e9efff;color:#2457d6;display:grid;place-items:center;font-size:38px;font-weight:800}.audio-player{width:min(640px,100%)}.unsupported-preview{padding:44px 20px;text-align:center;background:#f5f7fb;border:1px dashed #ced6e6;border-radius:16px}.unsupported-icon{font-size:56px;margin-bottom:12px}.unsupported-preview h3{margin:0 0 10px}.unsupported-preview p{margin:0 0 18px;color:#6b7280}.share-box{margin-top:24px;padding:18px;border:1px solid #e5e7ee;border-radius:16px;background:#fff}.share-box label{display:block;font-weight:700;margin-bottom:10px}.share-row{display:flex;gap:10px}.share-row input{flex:1;min-width:0;padding:12px 14px;border:1px solid #ccd1dc;border-radius:10px;background:#fbfcfe}.inline-action{display:inline-flex;align-items:center;justify-content:center;padding:10px 12px}
@media(max-width:860px){.file-head{display:grid}.file-actions-main{justify-content:flex-start}.file-meta-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.file-card{padding:18px}.file-head h1{font-size:26px}.file-meta-grid{grid-template-columns:1fr}.preview-panel-head{display:block}.doc-frame{height:60vh}.share-row{display:grid}.actions{flex-wrap:wrap}}

.docx-preview-wrap{background:#eef1f6;border:1px solid #e3e7ef;border-radius:16px;padding:26px;overflow:auto}.docx-paper{max-width:820px;min-height:420px;margin:0 auto;background:#fff;border:1px solid #dfe3ea;box-shadow:0 8px 28px rgba(20,31,50,.08);padding:56px 64px;font-family:Georgia,"Times New Roman",serif;font-size:16px;line-height:1.7;color:#20242c;white-space:normal;word-break:break-word}@media(max-width:640px){.docx-preview-wrap{padding:10px}.docx-paper{padding:28px 20px;font-size:15px}}

/* Full Office document preview: DOC, DOCX, XLS, XLSX */
.office-preview-wrap{position:relative;width:100%;height:78vh;min-height:620px;background:#eef1f6;border:1px solid #dfe4ec;border-radius:16px;overflow:hidden}.office-frame{display:block;width:100%;height:100%;border:0;background:#fff}.office-preview-note{display:grid;gap:4px;margin-top:12px;padding:13px 15px;border-radius:12px;background:#f4f7ff;color:#586174;font-size:13px;line-height:1.45}.office-preview-note strong{color:#244aa5}.office-preview-note span{display:block}@media(max-width:640px){.office-preview-wrap{height:68vh;min-height:480px}}

.admin-stats{grid-template-columns:repeat(5,1fr)}
@media(max-width:1000px){.admin-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.admin-stats{grid-template-columns:1fr}}
.file-meta-grid{grid-template-columns:repeat(5,1fr)}
@media(max-width:860px){.file-meta-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.file-meta-grid{grid-template-columns:1fr}}

/* MVP upload progress */
.drop.dragging{border-color:#2457d6;background:#f4f7ff}.upload-progress{display:flex;gap:12px;align-items:center;margin-top:14px}.upload-progress[hidden]{display:none}.upload-progress-track{height:10px;flex:1;background:#e8ebf2;border-radius:999px;overflow:hidden}.upload-progress-bar{width:0;height:100%;background:#2457d6;transition:width .12s linear}.admin-stats{grid-template-columns:repeat(5,1fr)}@media(max-width:980px){.admin-stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.admin-stats{grid-template-columns:1fr}}

/* Admin settings */
.admin-panel{background:#fff;border:1px solid #e5e7ee;border-radius:18px;padding:24px;margin:28px 0}.settings-form{display:grid;gap:22px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-grid label,.settings-block{display:grid;gap:7px;font-weight:600}.settings-grid input,.settings-block textarea{width:100%;padding:12px 14px;border:1px solid #ccd1dc;border-radius:10px;background:#fff;font:inherit}.settings-grid .span-2{grid-column:1/-1}.settings-switches{display:grid;gap:10px;padding:16px;border-radius:12px;background:#f7f8fb;border:1px solid #e5e7ee}.settings-switches label{display:flex;align-items:center;gap:10px;font-weight:600}.settings-switches input{width:18px;height:18px}.settings-note{padding:14px 16px;border-radius:12px;background:#fff8e7;border:1px solid #f1dfb0;color:#6f5515}.admin-stats{grid-template-columns:repeat(5,1fr)}
@media(max-width:900px){.admin-stats{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}.settings-grid .span-2{grid-column:auto}}

/* Separate admin settings page */
.settings-page{max-width:1050px}.admin-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.admin-page-head h1{margin:0 0 8px}.settings-card{padding:0;overflow:hidden}.settings-section{padding:26px 28px;border-bottom:1px solid #e9ecf2}.settings-section:last-of-type{border-bottom:0}.settings-section-title{margin-bottom:20px}.settings-section-title h2{margin:0 0 6px;font-size:21px}.settings-section-title p{margin:0}.settings-grid-top{margin-top:18px}.settings-actions{padding:22px 28px;background:#fafbfc;border-top:1px solid #e9ecf2;display:flex;justify-content:flex-end}.settings-note{margin:22px 28px 0}.settings-form>.settings-note+ .settings-actions{margin-top:22px}.settings-form textarea{width:100%;padding:12px 14px;border:1px solid #ccd1dc;border-radius:10px;resize:vertical;font:inherit}.settings-form input[type="checkbox"]{accent-color:#2457d6}.button-secondary.button-inline{white-space:nowrap}
@media(max-width:700px){.admin-page-head{display:grid}.button-secondary.button-inline{width:max-content}.settings-section{padding:20px}.settings-note{margin:18px 20px 0}.settings-actions{padding:18px 20px}.settings-grid{grid-template-columns:1fr!important}.settings-grid .span-2{grid-column:auto!important}}

/* v2 dashboard */
.upload-options{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.upload-options label,.plan-card label,.panel-form label{display:grid;gap:7px;font-weight:600}.upload-options input,.upload-options select,.plan-card input,.panel-form input,.panel-form select,.panel-form textarea,.search-sort input,.search-sort select,.inline-form input,.inline-form select{padding:10px 12px;border:1px solid #ccd1dc;border-radius:10px;background:#fff;font:inherit}.file-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 14px}.breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.search-sort{display:flex;gap:8px;flex-wrap:wrap}.folder-actions{margin-bottom:14px}.inline-form{display:flex;gap:8px;align-items:center}.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:14px 0 22px}.folder-card{display:flex;gap:10px;align-items:center;padding:16px;border:1px solid #e5e7ee;background:#fff;border-radius:14px;color:#1f2937}.folder-card span{font-size:24px}.bulk-bar{display:flex;justify-content:space-between;align-items:center;margin:10px 0;padding:10px 12px;background:#f7f8fb;border:1px solid #e5e7ee;border-radius:12px}.file-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.file-tags span{font-size:11px;padding:3px 7px;border-radius:999px;background:#eef2f7;color:#596273}.small{font-size:12px}.narrow-page{max-width:760px}.panel-form{background:#fff;border:1px solid #e5e7ee;border-radius:16px;padding:22px}.panel-form textarea{resize:vertical}.check-row{display:flex!important;align-items:center;gap:8px}.check-row input{width:auto!important}.password-gate{max-width:520px;margin:30px auto;padding:26px;border:1px solid #e5e7ee;border-radius:16px;background:#f8fafc}.file-description{max-width:760px;color:#5f6775;line-height:1.6}.account-grid{display:grid;grid-template-columns:340px 1fr;gap:20px}.ua-cell{max-width:420px;word-break:break-word}.status-ok{color:#15803d}.status-warn{color:#b45309}.plan-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.plan-card{display:grid;gap:12px}.settings-form select{width:100%;padding:12px 14px;border:1px solid #ccd1dc;border-radius:10px;background:#fff;font:inherit}.settings-note code{word-break:break-all}
@media(max-width:900px){.upload-options{grid-template-columns:repeat(2,1fr)}.file-toolbar{display:grid}.account-grid{grid-template-columns:1fr}}
@media(max-width:600px){.dashboard-summary,.upload-options{grid-template-columns:1fr}.search-sort,.inline-form{display:grid}.bulk-bar{gap:12px}.file-toolbar{margin-top:18px}}

/* Moving files between folders */
.bulk-left,.bulk-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bulk-actions select{padding:9px 11px;border:1px solid #ccd1dc;border-radius:10px;background:#fff;font:inherit;min-width:190px}.file-row{transition:background .15s ease,opacity .15s ease}.file-row[draggable="true"]{cursor:grab}.file-row[draggable="true"]:active{cursor:grabbing}.file-row.selected-row{background:#f2f6ff}.file-row.dragging-file{opacity:.45}.folder-drop-target{transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease}.folder-card.folder-drag-over,.root-drop-target.folder-drag-over{background:#eaf0ff;border-color:#2457d6;box-shadow:0 0 0 3px rgba(36,87,214,.12);transform:translateY(-2px)}.root-drop-target{padding:5px 8px;border:1px dashed transparent;border-radius:8px}.root-drop-target.folder-drag-over{border-style:dashed}.folder-card:after{content:""}.folder-card.folder-drag-over:after{content:"Переместить сюда";margin-left:auto;font-size:11px;font-weight:700;color:#2457d6}
@media(max-width:700px){.bulk-bar{align-items:stretch;flex-direction:column}.bulk-actions{display:grid;grid-template-columns:1fr 1fr}.bulk-actions select{grid-column:1/-1;min-width:0}.file-row[draggable="true"]{cursor:default}}

/* === Modern UI refresh === */
:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-soft:#f8faff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e6eaf1;
  --primary:#5b5cf0;
  --primary-dark:#4647d6;
  --primary-soft:#eeefff;
  --accent:#7c3aed;
  --success:#0f9f6e;
  --danger:#dc3d4f;
  --shadow-sm:0 6px 18px rgba(23,34,56,.06);
  --shadow-md:0 16px 42px rgba(23,34,56,.10);
  --radius:18px;
}
html{scroll-behavior:smooth}
body{background:
  radial-gradient(circle at 10% 0%,rgba(91,92,240,.08),transparent 30%),
  radial-gradient(circle at 100% 15%,rgba(124,58,237,.06),transparent 28%),
  var(--bg);color:var(--text)}
a{color:var(--primary)}
.top{height:72px;padding:0 28px;background:rgba(255,255,255,.88);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid rgba(230,234,241,.9);position:sticky;top:0;z-index:50}
.brand{font-size:24px;letter-spacing:-.04em;font-weight:900;display:flex;align-items:center;gap:10px;color:#111827}
.brand:before{content:"";width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,var(--primary),var(--accent));box-shadow:0 8px 20px rgba(91,92,240,.28)}
.top nav{gap:10px}
.top nav a,.top nav span{padding:9px 12px;border-radius:10px}
.top nav a:hover{background:var(--primary-soft)}
.container{max-width:1240px;margin:34px auto;padding:0 24px}

.hero,.auth-card,.file-card{border:1px solid rgba(226,231,240,.95);box-shadow:var(--shadow-sm)}
.hero{position:relative;overflow:hidden;padding:32px;border-radius:24px;background:linear-gradient(135deg,#fff 0%,#fafbff 68%,#f4f0ff 100%)}
.hero:after{content:"";position:absolute;right:-80px;top:-90px;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(91,92,240,.16),rgba(91,92,240,0) 68%);pointer-events:none}
.hero h1{font-size:32px;letter-spacing:-.03em;margin:0 0 8px}
.hero>p{margin-top:0}
.drop{position:relative;min-height:180px;border:2px dashed #c7cef4;border-radius:20px;padding:42px 20px;background:linear-gradient(180deg,rgba(247,248,255,.95),rgba(255,255,255,.95));transition:.22s ease;box-shadow:inset 0 0 0 1px rgba(91,92,240,.02)}
.drop:before{content:"↑";display:grid;place-items:center;margin:0 auto 8px;width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;font-size:28px;font-weight:800;box-shadow:0 12px 24px rgba(91,92,240,.24)}
.drop strong{font-size:18px}.drop span{color:var(--muted)}
.drop:hover{border-color:var(--primary);transform:translateY(-2px);box-shadow:0 12px 28px rgba(91,92,240,.10)}
.upload-options{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.upload-options label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#4b5563}
.upload-options select,.upload-options input,.search-sort input,.search-sort select,.inline-form input,.bulk-actions select,.form input,.form select,.share-row input{width:100%;border:1px solid #d7ddeb;background:#fff;border-radius:12px;padding:12px 13px;outline:none;transition:.18s ease}
.upload-options select:focus,.upload-options input:focus,.search-sort input:focus,.search-sort select:focus,.inline-form input:focus,.form input:focus,.form select:focus,.share-row input:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(91,92,240,.10)}
button,.form button,.hero button{border-radius:12px;background:linear-gradient(135deg,var(--primary),#6667f5);box-shadow:0 7px 16px rgba(91,92,240,.18);font-weight:700;transition:.18s ease}
button:hover,.form button:hover,.hero button:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(91,92,240,.24)}
.linkbtn{background:var(--primary-soft)!important;color:#4142bd!important;box-shadow:none!important}.linkbtn:hover{background:#e1e3ff!important}
.danger{background:#fff0f2!important;color:#b42336!important;box-shadow:none!important}.danger:hover{background:#ffe2e7!important}



.dashboard-summary>div:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,var(--primary),var(--accent))}



.file-toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:28px 0 14px;padding:14px 16px;background:rgba(255,255,255,.88);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-sm)}
.breadcrumbs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-weight:700}.breadcrumbs a{padding:7px 10px;border-radius:9px}.breadcrumbs a:hover{background:var(--primary-soft)}
.search-sort{display:flex;gap:8px;align-items:center}.search-sort input{min-width:220px}.search-sort button{white-space:nowrap}
.folder-actions{margin:12px 0 14px}.inline-form{display:flex;gap:8px}.inline-form input{max-width:260px}
.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;margin:14px 0 22px}
.folder-card{position:relative;display:flex;align-items:center;gap:12px;min-height:88px;padding:18px;border-radius:18px;background:linear-gradient(145deg,#fff,#f7f8ff);border:1px solid var(--line);box-shadow:var(--shadow-sm);color:#1f2937;transition:.2s ease}
.folder-card span{font-size:28px;filter:drop-shadow(0 5px 8px rgba(91,92,240,.10))}.folder-card strong{font-size:15px}
.folder-card:hover{transform:translateY(-3px);border-color:#cfd3ff;box-shadow:0 14px 28px rgba(40,48,80,.10)}
.folder-card.drag-over,.root-drop-target.drag-over{outline:3px solid rgba(91,92,240,.20);background:#f0f1ff}

.bulk-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:12px 0;padding:12px 14px;background:rgba(255,255,255,.9);border:1px solid var(--line);border-radius:14px}.bulk-left,.bulk-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.table-wrap{border-radius:20px;border:1px solid var(--line);box-shadow:var(--shadow-sm);background:rgba(255,255,255,.95)}
table{min-width:920px}th{background:#f8f9fd;color:#667085;font-size:12px;text-transform:uppercase;letter-spacing:.05em}th,td{padding:16px 18px}tbody tr{transition:.16s ease}tbody tr:hover{background:#fafbff}.file-row[draggable="true"]{cursor:grab}.file-row[draggable="true"]:active{cursor:grabbing}.file-row.dragging{opacity:.55;background:#f0f1ff}
.file-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.file-tags span{font-size:11px;font-weight:800;color:#5558a9;background:#f0f1ff;border:1px solid #e0e2ff;padding:4px 7px;border-radius:999px}
.small{font-size:12px}.actions{flex-wrap:wrap}
.empty{background:linear-gradient(145deg,#fff,#fafbff);border:1px dashed #cfd5e4;border-radius:18px;padding:42px;text-align:center}

.upload-progress{margin-top:16px;display:flex;align-items:center;gap:12px}.upload-progress-track{height:10px;background:#e8ebf4;border-radius:999px;overflow:hidden;flex:1}.upload-progress-bar{height:100%;width:0;background:linear-gradient(90deg,var(--primary),var(--accent));border-radius:999px;transition:width .15s ease}
.alert{border:1px solid transparent;box-shadow:var(--shadow-sm)}.alert.success{border-color:#c8efdd}.alert.error{border-color:#ffd0d6}

/* Auth */
.auth-card{max-width:500px;margin:70px auto;padding:34px;border-radius:24px;background:rgba(255,255,255,.96)}
.auth-card h1{font-size:34px;letter-spacing:-.04em;margin-top:0}
.form{gap:17px}.form label{font-size:14px}.form input{min-height:46px}

/* Landing refresh */
.landing-body{background:#fff}.landing-top{background:rgba(255,255,255,.86)}
.landing-hero{position:relative;background:
 radial-gradient(circle at 85% 20%,rgba(124,58,237,.14),transparent 28%),
 radial-gradient(circle at 15% 0%,rgba(91,92,240,.13),transparent 34%),
 linear-gradient(180deg,#fbfbff 0%,#ffffff 100%)}
.hero-grid{min-height:680px;gap:84px}.hero-copy h1{font-size:clamp(48px,6vw,78px);background:linear-gradient(135deg,#10131a 10%,#3730a3 75%,#7c3aed);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-lead{font-size:21px}.eyebrow{padding:8px 12px;border-radius:999px;background:#eef0ff;color:#4a4bd4;margin-bottom:18px}.button-primary{background:linear-gradient(135deg,var(--primary),var(--accent));box-shadow:0 12px 28px rgba(91,92,240,.24)}
.button-secondary{border-color:#dfe3ec;box-shadow:0 6px 18px rgba(20,30,55,.06)}
.preview-window{border-radius:28px;box-shadow:0 30px 80px rgba(38,45,80,.18);transform:rotate(1.2deg)}
.preview-content{border-radius:20px;background:linear-gradient(180deg,#fcfcff,#f6f7ff)}
.feature-card{border-radius:22px;box-shadow:var(--shadow-sm);transition:.2s ease}.feature-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.cta-box{background:linear-gradient(135deg,#111827,#26236a 60%,#4c1d95);box-shadow:0 22px 60px rgba(22,25,60,.22)}

/* Admin */
.stats{grid-template-columns:repeat(4,1fr)}.stats>div{border-radius:18px;border:1px solid var(--line);box-shadow:var(--shadow-sm);background:linear-gradient(145deg,#fff,#fbfbff)}
.stats strong{font-size:30px;letter-spacing:-.04em}

/* File page */
.file-card{border-radius:24px}.file-meta-grid>div{border-radius:16px;background:linear-gradient(145deg,#fbfcff,#f7f8fc)}.preview-panel{border-radius:20px;background:#fbfcff}.image-preview-wrap,.doc-frame-wrap,.media-preview-wrap,.text-preview-wrap{border-radius:18px}

@media(max-width:980px){
  .upload-options{grid-template-columns:repeat(2,1fr)}
  
  .file-toolbar{align-items:stretch;flex-direction:column}
  .search-sort{flex-wrap:wrap}.search-sort input{flex:1;min-width:180px}
  .stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .top{height:64px;padding:0 14px}.brand{font-size:20px}.brand:before{width:29px;height:29px;border-radius:9px}.top nav{gap:4px}.top nav a{padding:8px}
  .container{margin:18px auto;padding:0 12px}.hero{padding:20px;border-radius:20px}.hero h1{font-size:27px}.drop{min-height:155px;padding:30px 16px}.upload-options{grid-template-columns:1fr}
  .file-toolbar{padding:12px}.search-sort{display:grid;grid-template-columns:1fr}.search-sort input{min-width:0}.folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.folder-card{min-height:78px;padding:14px}.bulk-bar{align-items:stretch;flex-direction:column}.bulk-actions{display:grid;grid-template-columns:1fr}.inline-form{display:grid}.inline-form input{max-width:none}.stats{grid-template-columns:1fr}.auth-card{margin:24px 12px;padding:24px}
}
@media(max-width:470px){.folder-grid{grid-template-columns:1fr}.top nav a[href="account.php"]{display:none}.hero-grid{padding-top:36px}.hero-copy h1{font-size:41px}}

/* Image hosting tools */
.image-links-panel{margin-top:22px;padding:20px;border:1px solid var(--line,#e5e7ee);border-radius:18px;background:linear-gradient(180deg,#fff,#f8faff)}
.image-link-grid,.upload-code-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.image-link-grid label,.upload-code-item{display:grid;gap:7px;font-size:13px;font-weight:700;color:#4b5563}
.code-copy-row{display:flex;gap:8px;min-width:0}.code-copy-row input{min-width:0;flex:1;padding:11px 12px;border:1px solid #d7dce7;border-radius:11px;background:#fff;color:#293244;font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.code-copy-row .linkbtn{white-space:nowrap}
.thumb-preview{margin-top:18px;padding:14px;border-radius:15px;background:#eef3fb;text-align:center}.thumb-preview img{display:block;max-width:100%;max-height:280px;margin:auto;border-radius:12px;box-shadow:0 8px 24px rgba(28,39,62,.12)}
.upload-results{display:grid;gap:14px;margin-top:18px}.upload-result-card{padding:16px;border:1px solid #e1e6ef;border-radius:16px;background:#fff}.upload-result-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.upload-image-result{display:grid;grid-template-columns:180px 1fr;gap:16px;margin-top:14px}.upload-image-result>img{width:180px;height:130px;object-fit:contain;border:1px solid #e2e7ef;border-radius:13px;background:#f6f8fc}.refresh-files{justify-self:start;border:1px solid #d6dae3;background:#fff;color:#1f2937}
@media(max-width:800px){.image-link-grid,.upload-code-grid{grid-template-columns:1fr}.upload-image-result{grid-template-columns:1fr}.upload-image-result>img{width:100%;height:auto;max-height:240px}.code-copy-row{display:grid}.upload-result-head{align-items:flex-start;flex-direction:column}}


/* Hover image preview in file list */
.file-name-link.image-hover-link{position:relative;display:inline-block}
.image-hover-popup{
  position:fixed;
  z-index:9999;
  width:min(360px,calc(100vw - 24px));
  padding:10px;
  border:1px solid rgba(143,155,180,.28);
  border-radius:16px;
  background:rgba(255,255,255,.97);
  box-shadow:0 24px 60px rgba(28,39,62,.22);
  backdrop-filter:blur(16px);
  opacity:0;
  transform:translateY(6px) scale(.985);
  pointer-events:none;
  transition:opacity .14s ease,transform .14s ease;
}
.image-hover-popup.visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
.image-hover-preview{
  display:block;
  width:100%;
  max-height:300px;
  object-fit:contain;
  border-radius:11px;
  background:#f3f5f9;
}
.image-hover-caption{
  padding:9px 4px 2px;
  font-size:13px;
  line-height:1.35;
  font-weight:650;
  color:#394255;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.image-hover-loading{
  min-height:120px;
  display:grid;
  place-items:center;
  padding:18px;
  color:#7a8496;
  font-size:13px;
  text-align:center;
  background:#f7f9fc;
  border-radius:11px;
}
@media(max-width:700px){
  .image-hover-popup{display:none!important}
}

/* Admin v3 */
.admin-stats-grid{grid-template-columns:repeat(3,1fr)}.admin-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 34px}.admin-panel{background:#fff;border:1px solid var(--line,#e5e7ee);border-radius:18px;padding:20px;box-shadow:0 8px 26px rgba(18,31,53,.05)}.admin-panel h2{margin-top:0}.admin-rank-row,.audit-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0f5}.admin-rank-row:last-child,.audit-row:last-child{border-bottom:0}.admin-search{display:flex;gap:8px;align-items:center}.admin-search input{min-width:240px;padding:10px 12px;border:1px solid #ccd1dc;border-radius:10px}.quota-form{display:flex;gap:5px}.quota-form input{width:90px;padding:8px;border:1px solid #ccd1dc;border-radius:8px}.quota-form button{padding:8px 10px}.audit-row time{white-space:nowrap;color:#7a8496;font-size:12px}.audit-details{display:block;max-width:420px;white-space:pre-wrap;word-break:break-word;font-size:11px}
@media(max-width:900px){.admin-stats-grid,.admin-mini-grid{grid-template-columns:1fr}.admin-search{width:100%}.admin-search input{min-width:0;flex:1}}


/* ===== img1.ru — clean cloud-drive inspired UI ===== */
.disk-app{
  --disk-bg:#f5f6f8;
  --disk-panel:#fff;
  --disk-border:#e8e9ed;
  --disk-text:#202124;
  --disk-muted:#7b7f87;
  --disk-accent:#ffcf2f;
  --disk-accent-hover:#f4c21f;
  --disk-blue:#3b82f6;
  background:var(--disk-bg);
  color:var(--disk-text);
}
.disk-app .disk-topbar{
  position:sticky;top:0;z-index:50;
  height:64px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--disk-border);
  padding:0 24px 0 260px;
}
.disk-app .disk-topbar .brand{display:none}
.disk-app .disk-topbar nav{
  margin-left:auto;
  gap:8px;
}
.disk-app .disk-topbar nav a,
.disk-app .disk-topbar nav span{
  padding:9px 12px;
  border-radius:10px;
}
.disk-app .disk-topbar nav a:hover{background:#f2f3f5}

.disk-shell{display:flex;min-height:calc(100vh - 64px)}
.disk-sidebar{
  position:fixed;
  left:0;top:0;bottom:0;
  width:240px;
  z-index:60;
  background:#fff;
  border-right:1px solid var(--disk-border);
  padding:18px 14px;
  display:flex;
  flex-direction:column;
}
.disk-logo{
  height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 10px;
  color:#202124;
  font-size:20px;
  font-weight:800;
  margin-bottom:18px;
}
.disk-logo-mark{
  width:30px;height:30px;
  border-radius:10px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,#ffd94a,#ffbd18);
  color:#161616;
  font-weight:900;
}
.disk-upload-primary{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:12px;
  background:var(--disk-accent);
  color:#191919!important;
  font-weight:750;
  margin:0 4px 18px;
  box-shadow:none;
}
.disk-upload-primary:hover{background:var(--disk-accent-hover)}
.disk-nav{display:grid;gap:3px}
.disk-nav a{
  display:flex;align-items:center;gap:11px;
  min-height:42px;
  padding:0 12px;
  border-radius:10px;
  color:#44474d;
  font-weight:570;
}
.disk-nav a span{width:20px;text-align:center;color:#777}
.disk-nav a:hover{background:#f4f5f7}
.disk-nav a.active{background:#f1f2f4;color:#111}
.disk-nav a.active span{color:#111}
.disk-space-card{
  margin-top:auto;
  padding:14px 10px 6px;
  color:#63666d;
  font-size:12px;
}
.disk-space-title{font-weight:700;color:#383b40;margin-bottom:9px}
.disk-space-track{height:5px;background:#eceef1;border-radius:99px;overflow:hidden;margin-bottom:8px}
.disk-space-track span{display:block;height:100%;background:#3b82f6;border-radius:inherit;max-width:100%}
.disk-space-text{line-height:1.4}
.disk-content{flex:1;margin-left:240px;min-width:0}
.disk-content .container{max-width:none;margin:0;padding:28px 32px 48px}

.disk-app .disk-upload-card{
  background:#fff;
  border:1px solid var(--disk-border);
  box-shadow:none;
  border-radius:16px;
  padding:20px;
}
.disk-app .disk-upload-card h1{font-size:24px;letter-spacing:-.02em}
.disk-app .drop{
  border:1.5px dashed #c8cbd1;
  background:#fafbfc;
  border-radius:14px;
  transition:.18s ease;
}
.disk-app .drop:hover,
.disk-app .drop.dragover{
  border-color:#8eaafc;
  background:#f6f8ff;
}
.disk-app button,
.disk-app .button-primary{
  border-radius:10px;
  box-shadow:none;
}
.disk-app .hero button,
.disk-app .form button{
  background:#2b6ef3;
}
.disk-app .hero button:hover,
.disk-app .form button:hover{background:#215fdb}

.disk-section-head{margin-top:26px;margin-bottom:12px}
.disk-section-head h2{font-size:22px;margin:0}
.disk-app .table-wrap{
  background:#fff;
  border:1px solid var(--disk-border);
  border-radius:14px;
  box-shadow:none;
}
.disk-app table{min-width:820px}
.disk-app th{
  background:#fafafa;
  color:#868991;
  font-weight:650;
  border-bottom:1px solid var(--disk-border);
}
.disk-app td{border-bottom:1px solid #f0f1f3}
.disk-app tbody tr:hover{background:#fafbfc}
.disk-app .linkbtn{
  background:#f0f3f8;
  color:#315da8;
}
.disk-app .danger{background:#fff0f0;color:#bb2c2c}
.disk-app input,
.disk-app select,
.disk-app textarea{
  border:1px solid #d7d9de;
  border-radius:10px;
  background:#fff;
}
.disk-app input:focus,
.disk-app select:focus,
.disk-app textarea:focus{
  outline:none;
  border-color:#7ea5ff;
  box-shadow:0 0 0 3px rgba(59,130,246,.10);
}

/* Folder cards - restrained drive-style */
.disk-app .folder-card,
.disk-app .folder-tile{
  background:#fff;
  border:1px solid var(--disk-border);
  box-shadow:none;
  border-radius:14px;
}
.disk-app .folder-card:hover,
.disk-app .folder-tile:hover{
  border-color:#d7d9de;
  box-shadow:0 6px 18px rgba(30,35,45,.06);
}

/* Guest landing: same brand language, not a product clone */
.landing-body{
  background:#fff;
}
.landing-top{
  border-bottom:1px solid #eceef1;
}
.landing-hero{
  background:
    radial-gradient(circle at 73% 25%, rgba(255,215,64,.25), transparent 28%),
    linear-gradient(180deg,#fff 0%,#fafafa 100%);
}
.landing-hero .button-primary,
.landing-cta .button-primary{
  background:#ffcf2f;
  color:#171717;
}
.landing-hero .button-primary:hover,
.landing-cta .button-primary:hover{background:#f4c21f}
.landing-body .eyebrow{color:#8b6a00}
.landing-body .preview-icon{background:#fff4bf;color:#795a00}
.landing-body .upload-preview:before{background:#fff1a8}

/* Admin screens */
body:not(.landing-body) .stats>div{
  border:1px solid #e8e9ed;
  box-shadow:none;
}
body:not(.landing-body) .auth-card{
  border:1px solid #e8e9ed;
  box-shadow:0 12px 34px rgba(20,24,32,.08);
}

/* responsive */
@media(max-width:900px){
  .disk-sidebar{width:82px;padding:16px 10px}
  .disk-logo span:last-child,.disk-nav a{font-size:0}
  .disk-logo{justify-content:center;padding:0}
  .disk-nav a{justify-content:center;padding:0}
  .disk-nav a span{font-size:18px}
  .disk-upload-primary{font-size:0}
  .disk-upload-primary:after{content:"+";font-size:24px}
  .disk-space-card{display:none}
  .disk-content{margin-left:82px}
  .disk-app .disk-topbar{padding-left:98px}
}
@media(max-width:640px){
  .disk-sidebar{display:none}
  .disk-content{margin-left:0}
  .disk-app .disk-topbar{padding:0 12px}
  .disk-app .disk-topbar .brand{display:block}
  .disk-content .container{padding:18px 12px 34px}
}


/* ===== Cloud drive UI — close structural feel, original branding ===== */
.disk-app{
  --yd-yellow:#ffd426;
  --yd-yellow-hover:#f5c800;
  --yd-bg:#f4f5f6;
  --yd-panel:#fff;
  --yd-border:#e6e7e9;
  --yd-text:#1f1f1f;
  --yd-muted:#85888e;
  --yd-hover:#f3f4f5;
  --yd-blue:#3d7eff;
  background:var(--yd-bg);
}
.disk-sidebar{
  width:232px;
  padding:14px 12px;
  border-right:1px solid #ececee;
  background:#fff;
}
.disk-logo{
  margin:0 4px 14px;
  height:46px;
  font-size:19px;
}
.disk-logo-mark{
  width:34px;height:34px;
  border-radius:11px;
  background:linear-gradient(145deg,#ffdf55,#ffc400);
  box-shadow:0 5px 15px rgba(255,196,0,.22);
}
.disk-upload-primary{
  min-height:44px;
  border-radius:11px;
  background:var(--yd-yellow);
  font-weight:700;
  color:#222!important;
  margin:4px 4px 16px;
}
.disk-upload-primary:hover{background:var(--yd-yellow-hover)}
.disk-nav{gap:2px}
.disk-nav a{
  min-height:40px;
  border-radius:9px;
  padding:0 11px;
  font-size:14px;
  color:#303236;
}
.disk-nav a.active{background:#f2f3f4}
.disk-nav .nav-ico{width:22px;font-size:16px;color:#5f6368}
.disk-space-card{
  border-top:1px solid #eee;
  margin:14px 4px 0;
  padding:16px 6px 4px;
}
.disk-space-track{height:4px}

.disk-app .disk-topbar{
  height:60px;
  padding:0 20px 0 252px;
  border-bottom:1px solid #ececee;
  background:#fff;
}
.disk-search{
  width:min(560px,48vw);
  height:38px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  background:#f1f2f3;
  border-radius:10px;
  margin-right:auto;
}
.disk-search-icon{font-size:18px;color:#71757c}
.disk-search input{
  width:100%;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
  font-size:14px;
}
.disk-search input:focus{outline:none!important}
.disk-app .disk-topbar nav{margin-left:16px}
.disk-app .disk-topbar nav a,
.disk-app .disk-topbar nav span{
  min-height:36px;
  display:flex;align-items:center;
  padding:0 10px;
  border-radius:9px;
  font-size:14px;
}

.disk-content .container{padding:22px 28px 42px}
.disk-upload-card{
  padding:18px!important;
  border-radius:14px!important;
  margin-bottom:18px!important;
}
.disk-upload-card h1{font-size:22px!important;margin:0 0 4px!important}
.disk-app .drop{
  min-height:118px;
  padding:26px 20px;
  background:#fafafa;
  border:1px dashed #c9cbcf;
  border-radius:12px;
  margin:14px 0;
}
.disk-app .drop strong{font-size:15px}
.disk-app .drop span{font-size:13px}
.disk-app .hero button{background:#3b78f2}
.disk-app .hero button:hover{background:#2e69df}

.disk-files-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:18px 0 8px;
}
.disk-view-tabs{
  display:inline-flex;
  padding:3px;
  border-radius:10px;
  background:#e9eaec;
}
.disk-view-tabs button{
  background:transparent!important;
  color:#555!important;
  padding:7px 12px!important;
  border-radius:8px!important;
  font-size:13px;
}
.disk-view-tabs button.active{
  background:#fff!important;
  color:#222!important;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.ghost-btn{
  background:#fff!important;
  color:#444!important;
  border:1px solid #ddd!important;
}
.disk-section-head{margin:10px 0 10px}
.disk-section-head h2{font-size:20px}

.disk-app .table-wrap{
  border-radius:12px;
  overflow:hidden;
  border:1px solid #e7e8ea;
  background:#fff;
}
.disk-app table{min-width:860px}
.disk-app th{
  height:42px;
  padding:0 14px;
  background:#fafafa;
  color:#8a8d92;
  font-size:12px;
  font-weight:600;
}
.disk-app td{
  height:54px;
  padding:8px 14px;
}
.disk-app tbody tr{transition:background .12s ease}
.disk-app tbody tr:hover{background:#f7f7f8}
.disk-app tbody tr.selected{background:#edf4ff}
.disk-app .file-name-link{color:#222;font-weight:600}
.disk-app .file-tags{margin-top:4px}
.disk-app .linkbtn{
  background:#f0f1f2;
  color:#3e4248;
  padding:7px 10px;
}
.disk-app .linkbtn:hover{background:#e7e8ea}
.disk-app .danger{
  background:#fff0f0;
  color:#c43a3a;
}
.disk-app .folder-card,
.disk-app .folder-tile{
  border-radius:12px;
  background:#fff;
  border:1px solid #e6e7e9;
  box-shadow:none;
}
.disk-app .folder-card:hover,
.disk-app .folder-tile:hover{
  background:#fafafa;
  border-color:#dadcdf;
}
.disk-app .folder-card:before,
.disk-app .folder-tile:before{
  content:"";
  display:block;
  width:28px;height:20px;
  border-radius:4px 4px 5px 5px;
  background:#ffd426;
  margin-bottom:10px;
}

/* visual-only grid mode */
.disk-app.grid-mode .table-wrap{border:0;background:transparent;overflow:visible}
.disk-app.grid-mode table,.disk-app.grid-mode thead,.disk-app.grid-mode tbody{display:block;min-width:0}
.disk-app.grid-mode thead{display:none}
.disk-app.grid-mode tbody{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:12px;
}
.disk-app.grid-mode tbody tr{
  display:block;
  position:relative;
  min-height:148px;
  background:#fff;
  border:1px solid #e6e7e9;
  border-radius:14px;
  padding:14px;
}
.disk-app.grid-mode tbody tr:hover{
  border-color:#d5d7da;
  box-shadow:0 5px 15px rgba(24,28,34,.05);
}
.disk-app.grid-mode tbody td{
  display:none;
  height:auto;
  padding:0;
  border:0;
}
.disk-app.grid-mode tbody td:nth-child(1),
.disk-app.grid-mode tbody td:nth-child(2),
.disk-app.grid-mode tbody td:last-child{display:block}
.disk-app.grid-mode tbody td:nth-child(1){position:absolute;top:12px;right:12px}
.disk-app.grid-mode tbody td:nth-child(2){
  margin-top:52px;
  font-size:14px;
}
.disk-app.grid-mode tbody td:last-child{
  position:absolute;bottom:10px;left:10px;right:10px;
}
.disk-app.grid-mode .actions{justify-content:flex-start;flex-wrap:wrap}

@media(max-width:900px){
  .disk-app .disk-topbar{padding-left:98px}
  .disk-search{width:52vw}
}
@media(max-width:640px){
  .disk-search{display:none}
  .disk-content .container{padding:16px 10px 30px}
  .disk-files-toolbar{gap:8px}
}


/* File categories */
.disk-nav-label{
  padding:16px 12px 6px;
  color:#9a9da3;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.disk-nav a .nav-text{flex:1;min-width:0}
.disk-nav .nav-count{
  margin-left:auto;
  min-width:22px;
  padding:2px 6px;
  border-radius:999px;
  background:#f0f1f2;
  color:#7c7f85;
  font-size:10px;
  font-weight:700;
  text-align:center;
}
.disk-nav a.active .nav-count{
  background:#fff;
  color:#4a4d52;
}
.category-tag{
  background:#eef4ff!important;
  color:#3866ad!important;
}
@media(max-width:900px){
  .disk-nav-label,.disk-nav .nav-text,.disk-nav .nav-count{display:none}
}


/* ===== Quick upload UX ===== */
.disk-upload-primary{
  border:0;
  width:calc(100% - 8px);
  cursor:pointer;
  font:inherit;
}
.global-drop-overlay{
  position:fixed;
  inset:0;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(238,242,247,.78);
  backdrop-filter:blur(7px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease,visibility .16s ease;
}
.global-drop-overlay.visible{
  opacity:1;
  visibility:visible;
}
.global-drop-card{
  width:min(560px,calc(100vw - 36px));
  min-height:260px;
  border:2px dashed #6f93e8;
  border-radius:24px;
  background:#fff;
  box-shadow:0 28px 80px rgba(28,43,75,.16);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:10px;
}
.global-drop-icon{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#ffd426;
  color:#171717;
  font-size:34px;
  font-weight:800;
  margin-bottom:4px;
}
.global-drop-card strong{font-size:20px}
.global-drop-card span{font-size:14px;color:#777d86}

.quick-upload-status{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:9000;
  width:min(390px,calc(100vw - 32px));
  padding:16px;
  background:#fff;
  border:1px solid #e2e4e8;
  border-radius:16px;
  box-shadow:0 18px 50px rgba(30,38,53,.16);
}
.quick-upload-status-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}
.quick-upload-status-head strong{font-size:14px}
.quick-upload-status-head span{font-size:13px;color:#68707c;font-weight:700}
.quick-upload-progress{
  height:6px;
  border-radius:999px;
  overflow:hidden;
  background:#edf0f4;
}
.quick-upload-progress span{
  display:block;
  height:100%;
  width:0;
  background:#3b78f2;
  border-radius:inherit;
  transition:width .12s linear;
}
.quick-upload-file{
  margin-top:9px;
  color:#737984;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Since upload is launched from sidebar/global drop, give file area more breathing room */
.disk-content .container{padding-top:24px}


/* ===== User folders in sidebar ===== */
.disk-nav-label{
  padding:15px 12px 6px;
  color:#979ba2;
  font-size:11px;
  font-weight:750;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.disk-nav a .nav-text{
  flex:1;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.sidebar-folder-link{
  min-height:36px!important;
  font-size:13px!important;
}
.folder-nav-icon{color:#c99600!important}
.disk-nav a.sidebar-folder-link.active,
.disk-nav a.root-drop-target.active{
  background:#fff3bd;
  color:#252525;
}
.sidebar-new-folder{
  display:flex;
  align-items:center;
  gap:7px;
  width:100%;
  min-height:36px;
  padding:0 12px;
  margin:3px 0 7px;
  border:0;
  border-radius:9px;
  background:transparent!important;
  color:#666b73!important;
  font-size:13px;
  font-weight:600;
  text-align:left;
  cursor:pointer;
}
.sidebar-new-folder:hover{
  background:#f3f4f5!important;
  color:#27292d!important;
}
.sidebar-new-folder>span:first-child{font-size:17px}
.content-title-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin:0 0 14px;
}
.content-title-row h1{
  margin:0;
  font-size:23px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.content-title-row span{
  display:block;
  margin-top:5px;
  color:#898d94;
  font-size:12px;
}
@media(max-width:900px){
  .disk-nav-label,
  .disk-nav .nav-text,
  .sidebar-new-folder{display:none}
}


/* File settings: immutable file data */
.file-settings-info{
  background:#fff;
  border:1px solid #e5e7ee;
  border-radius:18px;
  padding:22px;
  margin:0 0 22px;
}
.file-settings-info-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.file-settings-info h2{
  margin:8px 0 4px;
  font-size:23px;
  line-height:1.25;
  word-break:break-word;
}
.original-file-name{font-size:13px;word-break:break-word}
.file-open-btn{white-space:nowrap;padding:10px 14px}
.file-settings-meta{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.file-settings-meta>div{
  min-width:0;
  padding:13px 14px;
  border:1px solid #eceef3;
  border-radius:12px;
  background:#fafbfc;
}
.file-settings-meta span{
  display:block;
  margin-bottom:5px;
  color:#7b8089;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.file-settings-meta strong{
  display:block;
  color:#23262b;
  font-size:14px;
  overflow-wrap:anywhere;
}
.file-settings-meta .meta-wide{grid-column:1/-1}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px!important}
.settings-link-row{display:flex;gap:8px}
.settings-link-row input{
  flex:1;
  min-width:0;
  padding:10px 12px;
  border:1px solid #d8dce4;
  border-radius:9px;
  background:#fff;
}
@media(max-width:800px){.file-settings-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.file-settings-info-head{display:grid}.file-settings-meta{grid-template-columns:1fr}.settings-link-row{display:grid}.file-open-btn{width:100%;text-align:center}}


/* ===== Unified img1.ru design system ===== */
:root{
  --ui-bg:#f5f6f7;--ui-panel:#fff;--ui-border:#e6e7ea;--ui-text:#202124;--ui-muted:#7c8189;
  --ui-yellow:#ffd426;--ui-yellow-hover:#f3c500;--ui-blue:#3978f2;--ui-sidebar:232px;--ui-top:60px;
}
.ui-app-body,.ui-public-body{background:var(--ui-bg);color:var(--ui-text)}
.ui-sidebar{position:fixed;left:0;top:0;bottom:0;z-index:120;width:var(--ui-sidebar);padding:14px 12px;display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--ui-border)}
.ui-logo{height:46px;display:flex;align-items:center;gap:10px;padding:0 8px;color:#202124;font-size:19px;font-weight:800}
.ui-logo-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(145deg,#ffdf55,#ffc400);color:#161616;font-weight:900}
.ui-upload-btn,.ui-yellow-btn{border:0;border-radius:11px;background:var(--ui-yellow)!important;color:#181818!important;font-weight:750;cursor:pointer}
.ui-upload-btn{height:44px;margin:4px 4px 15px;width:calc(100% - 8px)}
.ui-upload-btn:hover,.ui-yellow-btn:hover{background:var(--ui-yellow-hover)!important}
.ui-side-nav{display:grid;gap:2px;overflow:auto;min-height:0}
.ui-side-link{min-height:38px;display:flex;align-items:center;gap:10px;padding:0 12px;border-radius:9px;color:#35383d;font-size:13px;font-weight:560}
.ui-side-link:hover{background:#f4f5f6}.ui-side-link.active{background:#eff0f2;color:#111}
.ui-side-icon{width:20px;text-align:center;color:#666b73}.ui-side-label{padding:14px 12px 6px;color:#9a9da3;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.ui-folder-link{min-height:34px;font-size:12px}
.ui-storage{margin-top:auto;padding:14px 8px 4px;border-top:1px solid #eee;color:#727780;font-size:12px}
.ui-storage strong{display:block;color:#3e4146;margin-bottom:8px}.ui-storage-track{height:4px;background:#eceef1;border-radius:99px;overflow:hidden;margin-bottom:7px}.ui-storage-track span{display:block;height:100%;background:var(--ui-blue)}
.ui-topbar{position:fixed;top:0;left:var(--ui-sidebar);right:0;z-index:110;height:var(--ui-top);display:flex;align-items:center;gap:16px;padding:0 22px;background:#fff;border-bottom:1px solid var(--ui-border)}
.ui-top-search{width:min(560px,48vw);height:38px;display:flex;align-items:center;gap:8px;padding:0 12px;background:#f1f2f3;border-radius:10px}
.ui-top-search input{width:100%;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
.ui-user-chip{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:13px}.ui-user-chip a{padding:8px 10px;border-radius:9px;color:#4d5157}.ui-user-chip a:hover{background:#f3f4f5}
.ui-app-content{margin-left:var(--ui-sidebar);padding-top:var(--ui-top);min-height:100vh}
.ui-app-content>.container,.ui-app-content main.container{max-width:none;margin:0;padding:26px 28px 44px}
.ui-app-content h1{font-size:26px;letter-spacing:-.025em;margin-top:0}
.ui-app-content .admin-panel,.ui-app-content .settings-card,.ui-app-content .file-settings-info,.ui-app-content .hero,.ui-app-content .table-wrap{border-color:var(--ui-border);box-shadow:none}
.ui-app-content .admin-panel,.ui-app-content .settings-card,.ui-app-content .file-settings-info{border-radius:14px}
.ui-app-content .table-wrap{border-radius:12px;background:#fff}.ui-app-content th{background:#fafafa;color:#84888f}.ui-app-content tbody tr:hover{background:#f8f9fa}
.ui-app-content button:not(.danger):not(.linkbtn),.ui-app-content .button-primary{background:var(--ui-blue);border-radius:9px}
.ui-app-content input,.ui-app-content select,.ui-app-content textarea{border-radius:9px;border-color:#d9dce1}
.ui-app-content input:focus,.ui-app-content select:focus,.ui-app-content textarea:focus{outline:none;border-color:#84a7f6;box-shadow:0 0 0 3px rgba(57,120,242,.10)}
.ui-guest-top{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 26px;background:#fff;border-bottom:1px solid var(--ui-border)}
.ui-guest-top nav{display:flex;align-items:center;gap:10px}.ui-guest-top nav a{padding:9px 13px;border-radius:9px;color:#383b40}.ui-guest-top .ui-yellow-btn{padding:10px 15px}
.ui-auth-body{background:var(--ui-bg);min-height:100vh}.ui-auth-page{min-height:calc(100vh - 60px);padding:42px 16px}
.ui-auth-page .auth-card{margin:0 auto;background:#fff;border:1px solid var(--ui-border);border-radius:16px;box-shadow:0 16px 44px rgba(26,31,40,.07)}
.ui-auth-page .auth-card h1{font-size:28px;letter-spacing:-.03em}.ui-auth-page .form button{background:var(--ui-yellow);color:#171717;font-weight:750}.ui-auth-page .form button:hover{background:var(--ui-yellow-hover)}
.ui-public-body .ui-auth-page{padding-top:28px}.ui-public-body .file-page{margin-top:0}
body.ui-app-body>.top,body.ui-app-body>.disk-topbar{display:none!important}
@media(max-width:900px){
  :root{--ui-sidebar:82px}.ui-logo{justify-content:center;padding:0}.ui-logo>span:last-child,.ui-side-link>span:last-child,.ui-side-label,.ui-storage{display:none}
  .ui-side-link{justify-content:center;padding:0}.ui-side-icon{font-size:17px}.ui-upload-btn{font-size:0}.ui-upload-btn:after{content:"+";font-size:24px}.ui-top-search{width:52vw}
}
@media(max-width:640px){
  :root{--ui-sidebar:0px}.ui-sidebar{display:none}.ui-topbar{left:0;padding:0 12px}.ui-top-search{display:none}
  .ui-app-content>.container,.ui-app-content main.container{padding:18px 12px 32px}.ui-user-chip span{display:none}.ui-guest-top{padding:0 14px}.ui-auth-page{padding:22px 12px}
}


/* Admin navigation */
.admin-subnav{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  margin:0 0 22px;
  padding:5px;
  border:1px solid #e5e7ea;
  border-radius:12px;
  background:#fff;
}
.admin-subnav a{
  padding:8px 12px;
  border-radius:8px;
  color:#4b4f56;
  font-size:13px;
  font-weight:650;
}
.admin-subnav a:hover{
  background:#f2f3f4;
  color:#1f2023;
}
@media(max-width:640px){
  .admin-subnav{overflow:auto;flex-wrap:nowrap}
  .admin-subnav a{white-space:nowrap}
}


/* Compact and prettier bulk actions bar */
.bulk-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:10px 0 14px;
  padding:12px 14px;
  border:1px solid #e6e8ed;
  border-radius:14px;
  background:#fff;
  box-shadow:0 1px 0 rgba(17,24,39,.02);
}
.bulk-left,.bulk-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.bulk-select-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 12px;
  border:1px solid #e4e7ee;
  border-radius:10px;
  background:#f8fafc;
  color:#2a2f36;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.bulk-select-toggle input{
  width:16px;
  height:16px;
  margin:0;
}
.bulk-count{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#4a57c8;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.bulk-move-box{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.bulk-caption{
  color:#7d8490;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  line-height:1;
}
.bulk-actions select{
  min-width:280px;
  height:40px;
  padding:0 12px;
  border:1px solid #d8dce5;
  border-radius:10px;
  background:#fff;
  font:inherit;
}
.bulk-move-btn,
.bulk-delete-btn{
  min-height:40px;
  padding:0 16px;
  border-radius:10px;
  font-weight:700;
  white-space:nowrap;
}
.bulk-move-btn{
  background:#edf2ff !important;
  color:#3557c8 !important;
}
.bulk-move-btn:hover{
  background:#e3ebff !important;
}
.bulk-delete-btn{
  background:#fff1f1 !important;
  color:#c53737 !important;
}
.bulk-delete-btn:hover{
  background:#ffe6e6 !important;
}
@media(max-width:900px){
  .bulk-bar{
    align-items:stretch;
    flex-direction:column;
  }
  .bulk-actions{
    width:100%;
  }
  .bulk-move-box{
    flex:1 1 240px;
  }
  .bulk-actions select{
    min-width:0;
    width:100%;
  }
}
@media(max-width:640px){
  .bulk-left,
  .bulk-actions{
    width:100%;
  }
  .bulk-select-toggle{
    flex:1 1 auto;
  }
  .bulk-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .bulk-move-btn,
  .bulk-delete-btn{
    width:100%;
    justify-content:center;
  }
}


/* Explorer-style selection and context menu */
.bulk-bar{display:none!important}
.context-select-cell{display:none!important}
.file-row{user-select:none;cursor:default}
.file-row.selected-row{background:#eaf2ff!important;box-shadow:inset 3px 0 0 #3b78f2}
.file-row:hover{background:#f7f8fa}
.context-actions-cell{width:46px;text-align:right}
.row-more-btn{width:32px;height:32px;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#646a73!important;font-size:22px!important;line-height:1!important;opacity:.2}
.file-row:hover .row-more-btn,.file-row.selected-row .row-more-btn{opacity:1}
.row-more-btn:hover{background:#eceef2!important;color:#24272c!important}
.file-context-menu{position:fixed;z-index:12000;width:210px;padding:6px;background:#fff;border:1px solid #e0e3e8;border-radius:12px;box-shadow:0 18px 46px rgba(23,31,45,.18)}
.file-context-menu[hidden]{display:none!important}.file-context-menu button{display:flex;width:100%;align-items:center;min-height:38px;padding:0 11px;border:0;border-radius:8px;background:transparent!important;color:#24272d!important;text-align:left;font-size:13px;font-weight:560}.file-context-menu button:hover{background:#f1f3f5!important}.file-context-menu .context-danger{color:#c73535!important}.file-context-menu .context-danger:hover{background:#fff0f0!important}.context-separator{height:1px;margin:5px 4px;background:#eceef1}
.move-dialog-backdrop{position:fixed;inset:0;z-index:13000;display:grid;place-items:center;padding:18px;background:rgba(25,31,41,.28);backdrop-filter:blur(3px)}.move-dialog-backdrop[hidden]{display:none!important}.move-dialog{width:min(430px,100%);padding:18px;background:#fff;border:1px solid #e1e4e9;border-radius:16px;box-shadow:0 24px 70px rgba(20,27,39,.22)}.move-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.move-dialog-head strong{font-size:18px}.move-dialog-head button{width:32px;height:32px;padding:0!important;border:0!important;background:#f2f3f5!important;color:#555!important;font-size:22px!important}.move-dialog label{display:grid;gap:7px;color:#555b64;font-size:13px;font-weight:650}.move-dialog select{height:42px;width:100%;padding:0 11px;border:1px solid #d6dae1;border-radius:10px;background:#fff}.move-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.move-dialog-actions button{min-height:39px;padding:0 15px}
@media(max-width:700px){.file-row{user-select:auto}.row-more-btn{opacity:1}.file-context-menu{width:min(230px,calc(100vw - 20px))}}


/* User tariffs */
.account-plan-button{display:inline-flex;margin-top:4px;padding:10px 14px;color:#fff!important}
.plan-user-page{max-width:1180px!important}
.plan-page-head{margin-bottom:20px}
.current-plan-card{display:grid;grid-template-columns:280px 1fr;gap:28px;padding:24px;background:#fff;border:1px solid #e5e7ea;border-radius:16px;margin-bottom:22px}
.plan-kicker{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#898e96}
.current-plan-main h2{font-size:30px;margin:7px 0 8px}
.plan-current-price{font-size:22px;font-weight:800}.plan-current-price small,.plan-price small{font-size:12px;color:#858a92;font-weight:600}
.current-plan-usage{display:grid;align-content:center}.usage-row{display:flex;justify-content:space-between;gap:16px;font-size:13px}.plan-usage-track{height:7px;background:#edf0f3;border-radius:99px;overflow:hidden;margin:10px 0 18px}.plan-usage-track span{display:block;height:100%;background:#3978f2}
.current-plan-limits{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.current-plan-limits>div{padding:12px;background:#f8f9fa;border-radius:10px}.current-plan-limits span{display:block;color:#858a92;font-size:11px;margin-bottom:4px}.current-plan-limits strong{font-size:14px}
.plan-request-pending{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;background:#fff8d7;border:1px solid #f3df76;border-radius:13px;margin:0 0 22px}.plan-request-pending strong,.plan-request-pending span{display:block}.plan-request-pending span{margin-top:4px;color:#77705d;font-size:12px}
.user-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.user-plan-card{position:relative;padding:20px;background:#fff;border:1px solid #e5e7ea;border-radius:15px;display:flex;flex-direction:column;min-height:320px}.user-plan-card.current{border-color:#f0c400;box-shadow:0 0 0 2px rgba(255,212,38,.18)}
.plan-current-badge{position:absolute;right:14px;top:14px;padding:5px 8px;border-radius:999px;background:#fff1a6;color:#685200;font-size:10px;font-weight:800}
.plan-card-top h3{font-size:20px;margin:0 0 8px}.plan-price{font-size:24px;font-weight:850}.plan-description{color:#6f747c;line-height:1.5;font-size:13px;min-height:38px}
.plan-feature-list{display:grid;gap:0;margin:12px 0 18px}.plan-feature-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #f0f1f3;font-size:13px}.plan-feature-list span{color:#777d85}
.plan-request-form{margin-top:auto}.plan-request-form button,.plan-current-button{width:100%;min-height:42px}.plan-current-button{border:0;border-radius:10px;background:#f1f2f3;color:#777;cursor:default}
.plan-history{margin-top:28px}.request-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:750}.status-pending{background:#fff4c4;color:#765f00}.status-approved{background:#e9f8ee;color:#1c7a3e}.status-rejected{background:#ffeaea;color:#a72d2d}.status-cancelled{background:#eef0f3;color:#70757c}
.request-admin-actions{display:flex;gap:7px}.request-admin-actions form{margin:0}
.admin-plan-requests{margin:0 0 26px}
@media(max-width:760px){.current-plan-card{grid-template-columns:1fr}.current-plan-limits{grid-template-columns:1fr}.plan-request-pending{align-items:stretch;flex-direction:column}}


/* Create menu */
.ui-create-wrap{position:relative;margin:4px 4px 15px}
.ui-create-wrap .ui-upload-btn{margin:0;width:100%}
.ui-create-menu{position:absolute;left:0;top:50px;z-index:500;width:240px;padding:7px;background:#fff;border:1px solid #e3e5e9;border-radius:14px;box-shadow:0 18px 50px rgba(25,31,42,.16)}
.ui-create-menu.visible{display:block}
.ui-create-menu a,.ui-create-menu button{width:100%;min-height:54px;display:flex;align-items:center;gap:12px;padding:8px 10px;border:0;border-radius:10px;background:transparent;color:#25282d;text-align:left;text-decoration:none;cursor:pointer}
.ui-create-menu a:hover,.ui-create-menu button:hover{background:#f3f4f5}
.ui-create-menu>a>span,.ui-create-menu>button>span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f1f2f4;font-size:17px}
.ui-create-menu strong,.ui-create-menu small{display:block}.ui-create-menu strong{font-size:13px}.ui-create-menu small{margin-top:2px;color:#8a8e95;font-size:11px}

/* Document editor */
.document-editor-body{overflow-x:hidden}
.document-editor-page{min-height:calc(100vh - 60px);background:#eef0f3;padding-bottom:70px}
.document-editor-top{position:sticky;top:60px;z-index:80;height:62px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 24px;background:#fff;border-bottom:1px solid #e5e7ea}
.document-title-wrap{min-width:0;flex:1}.document-title-input{width:min(560px,100%);border:0!important;background:transparent!important;box-shadow:none!important;padding:3px 0!important;font-size:18px;font-weight:700}
.document-save-status{font-size:11px;color:#7e838b}.document-save-status.dirty{color:#9a7310}.document-save-status.saving{color:#3978f2}.document-save-status.error{color:#c23434}
.document-top-actions{display:flex;align-items:center;gap:8px}.document-export-wrap{position:relative}.document-export-menu{position:absolute;right:0;top:44px;width:170px;padding:6px;background:#fff;border:1px solid #e3e5e9;border-radius:11px;box-shadow:0 12px 36px rgba(25,31,42,.14);z-index:150}.document-export-menu a,.document-export-menu button{display:block;width:100%;padding:9px 10px;border:0;background:transparent;border-radius:7px;color:#333;text-align:left;font-size:13px}.document-export-menu a:hover,.document-export-menu button:hover{background:#f3f4f5}
.document-toolbar{position:sticky;top:122px;z-index:70;min-height:48px;display:flex;align-items:center;gap:3px;flex-wrap:wrap;padding:6px 24px;background:#fff;border-bottom:1px solid #e5e7ea}
.document-toolbar button,.document-toolbar select{height:34px;padding:0 9px;border:1px solid transparent!important;border-radius:7px!important;background:#fff!important;color:#303338!important;font-size:12px}.document-toolbar button:hover,.document-toolbar select:hover{background:#f1f2f3!important}.document-toolbar select{border-color:#e2e4e8!important}.toolbar-divider{width:1px;height:24px;background:#e2e4e8;margin:0 5px}
.document-canvas{padding:34px 16px}.document-sheet,.document-public-sheet{width:min(816px,calc(100vw - 300px));min-height:1056px;margin:0 auto;padding:72px 78px;background:#fff;box-shadow:0 3px 16px rgba(32,38,48,.12);outline:none;font-family:Arial,sans-serif;font-size:15px;line-height:1.6;color:#222}
.document-sheet:focus{box-shadow:0 3px 18px rgba(32,38,48,.16),0 0 0 2px rgba(57,120,242,.12)}
.document-sheet h1,.document-public-sheet h1{font-size:30px}.document-sheet h2,.document-public-sheet h2{font-size:24px}.document-sheet h3,.document-public-sheet h3{font-size:19px}
.document-sheet table,.document-public-sheet table{border-collapse:collapse;width:100%}.document-sheet td,.document-sheet th,.document-public-sheet td,.document-public-sheet th{border:1px solid #bbb;padding:6px 8px}
.document-versions{width:min(816px,calc(100vw - 300px));margin:0 auto;padding:14px 18px;background:#fff;border-radius:10px}.document-versions summary{cursor:pointer;font-weight:700}.document-versions div{display:grid;gap:6px;margin-top:10px;color:#70757d;font-size:12px}
.document-public-page{padding:28px 20px 60px}.document-public-head{width:min(816px,calc(100vw - 300px));margin:0 auto 16px;display:flex;align-items:center;justify-content:space-between;gap:16px}.document-public-head h1{margin:0;font-size:24px}.document-public-head span{color:#858a92;font-size:11px}.document-public-head>div:last-child{display:flex;gap:8px}.document-public-sheet{min-height:700px}

/* Print only document */
@media print{
  .ui-sidebar,.ui-topbar,.document-editor-top,.document-toolbar,.document-versions{display:none!important}
  .ui-app-content{margin:0!important;padding:0!important}
  .document-editor-page,.document-canvas{background:#fff!important;padding:0!important}
  .document-sheet{width:auto!important;min-height:0!important;margin:0!important;padding:0!important;box-shadow:none!important}
}
@media(max-width:900px){
  .document-sheet,.document-public-sheet,.document-versions,.document-public-head{width:min(816px,calc(100vw - 115px))}
  .document-editor-top{padding:8px 14px}.document-toolbar{padding:6px 14px}
}
@media(max-width:640px){
  .document-editor-top{top:60px;height:auto;min-height:72px;align-items:flex-start;flex-direction:column}.document-top-actions{width:100%;overflow:auto}
  .document-toolbar{top:132px;flex-wrap:nowrap;overflow:auto}
  .document-sheet,.document-public-sheet,.document-versions,.document-public-head{width:calc(100vw - 24px)}
  .document-sheet,.document-public-sheet{padding:38px 28px;min-height:760px}.document-canvas{padding:18px 0}
  .document-public-head{align-items:flex-start;flex-direction:column}
}


/* + Создать — одинаково на всех авторизованных страницах */
.disk-create-wrap{
  margin:4px 4px 15px;
}
.disk-create-wrap .disk-upload-primary{
  width:100%;
  margin:0;
  min-height:44px;
}
.disk-create-wrap .ui-create-menu{
  left:0;
  top:50px;
}
.ui-create-wrap{
  position:relative;
}
.ui-create-menu[hidden]{
  display:none!important;
}
.ui-create-menu.visible{
  display:block!important;
}


/* Create file/folder modal */
.create-name-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:3000;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(19,23,31,.32);
  backdrop-filter:blur(3px);
  opacity:0;
  transition:opacity .16s ease;
}
.create-name-modal-backdrop[hidden]{display:none!important}
.create-name-modal-backdrop.visible{opacity:1}
.create-name-modal{
  position:relative;
  width:min(440px,calc(100vw - 32px));
  padding:26px;
  border:1px solid rgba(226,229,235,.95);
  border-radius:20px;
  background:#fff;
  box-shadow:0 28px 80px rgba(18,24,34,.22);
  transform:translateY(10px) scale(.985);
  transition:transform .16s ease;
}
.create-name-modal-backdrop.visible .create-name-modal{
  transform:translateY(0) scale(1);
}
.create-name-close{
  position:absolute;
  top:14px;
  right:14px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:9px;
  background:#f4f5f6;
  color:#676c74;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.create-name-close:hover{background:#eceef0;color:#2f3338}
.create-name-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  margin-bottom:16px;
  border-radius:14px;
  font-size:22px;
  font-weight:800;
}
.create-name-icon.document{
  background:#eef4ff;
  color:#3978f2;
}
.create-name-icon.folder{
  background:#fff6cf;
  color:#9a7600;
}
.create-name-copy h2{
  margin:0 44px 6px 0;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.create-name-copy p{
  margin:0 0 20px;
  color:#7b818a;
  font-size:13px;
  line-height:1.45;
}
.create-name-form{display:grid;gap:8px}
.create-name-label{
  color:#4d5259;
  font-size:12px;
  font-weight:700;
}
.create-name-input{
  width:100%;
  height:46px;
  padding:0 13px!important;
  border:1px solid #d9dde4!important;
  border-radius:11px!important;
  background:#fff!important;
  font-size:15px!important;
  box-shadow:none!important;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.create-name-input:focus{
  border-color:#6e99f4!important;
  box-shadow:0 0 0 4px rgba(57,120,242,.10)!important;
  outline:none;
}
.create-name-input.has-error{
  border-color:#dc5b5b!important;
  box-shadow:0 0 0 4px rgba(220,91,91,.09)!important;
}
.create-name-error{
  min-height:18px;
  color:#c33f3f;
  font-size:11px;
  font-weight:600;
}
.create-name-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:8px;
}
.create-name-actions button{
  min-height:40px;
  padding:0 16px;
  border-radius:10px;
  font-weight:700;
}
.create-name-submit{
  border:0;
  background:#ffd426;
  color:#181818;
  cursor:pointer;
}
.create-name-submit:hover{background:#f3c500}
@media(max-width:520px){
  .create-name-modal{padding:22px 18px}
  .create-name-actions{display:grid;grid-template-columns:1fr 1fr}
  .create-name-actions button{width:100%}
}


/* Rich DOCX editor controls */
.document-toolbar #fontName{min-width:120px}
.document-toolbar #fontSize{width:68px}
.doc-color-control{
  width:34px;height:34px;display:grid;place-items:center;position:relative;
  border:1px solid transparent;border-radius:7px;background:#fff;
  font-size:14px;font-weight:800;cursor:pointer;
}
.doc-color-control:hover{background:#f1f2f3}
.doc-color-control input{
  position:absolute;left:4px;right:4px;bottom:3px;width:26px!important;height:5px!important;
  padding:0!important;border:0!important;opacity:.9;cursor:pointer;
}
.doc-highlight-control{font-size:13px}
.doc-table-wrap{position:relative}
.doc-table-menu{
  position:absolute;left:0;top:39px;z-index:180;width:112px;padding:6px;
  background:#fff;border:1px solid #e2e5ea;border-radius:10px;box-shadow:0 12px 36px rgba(25,31,42,.14)
}
.doc-table-menu[hidden]{display:none!important}
.doc-table-menu button{display:block!important;width:100%!important;text-align:left!important;margin:0!important}
.document-sheet table{margin:12px 0}
.document-sheet td,.document-sheet th{min-width:70px;vertical-align:top}
.document-sheet td:focus,.document-sheet th:focus{outline:2px solid rgba(57,120,242,.18)}


/* Google Docs inspired editor shell */
.document-editor-body .ui-sidebar,
.document-editor-body .ui-topbar{
  display:none!important;
}
.document-editor-body .ui-app-content{
  margin-left:0!important;
  padding-top:0!important;
}
.document-editor-body{
  background:#f1f3f4!important;
}
.gdoc-page{
  min-height:100vh;
  background:#f1f3f4;
  padding:0;
}
.gdoc-shell{
  min-height:100vh;
}
.gdoc-topbar{
  position:sticky;
  top:0;
  z-index:120;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:64px;
  padding:10px 18px;
  background:#fff;
  border-bottom:1px solid #e2e5e9;
}
.gdoc-top-left,.gdoc-top-right{
  display:flex;
  align-items:center;
  gap:10px;
}
.gdoc-doc-meta{
  min-width:260px;
}
.gdoc-title-input{
  width:min(460px,40vw)!important;
  height:34px;
  padding:0 8px!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:18px!important;
  font-weight:600!important;
}
.gdoc-title-input:hover,
.gdoc-title-input:focus{
  background:#f8f9fa!important;
  border-color:#dfe2e6!important;
}
.gdoc-doc-subline{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:2px;
  color:#6b7280;
  font-size:12px;
}
.gdoc-sub-sep{opacity:.7}
.gdoc-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:9px;
  background:#eef2ff;
}
.gdoc-brand-icon{
  font-weight:800;
  color:#356ee8;
}
.gdoc-icon-btn,
.gdoc-chip-btn,
.gdoc-blue-btn{
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:18px;
  background:transparent;
  color:#2f3338;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.gdoc-icon-btn{
  min-width:36px;
  padding:0 10px;
  border-radius:10px;
}
.gdoc-icon-btn.small{
  min-width:28px;
  width:28px;
  height:28px;
  padding:0;
  border-radius:8px;
}
.gdoc-chip-btn{
  background:#f8f9fa;
  border-color:#e2e5ea;
}
.gdoc-blue-btn{
  background:#1a73e8;
  color:#fff;
}
.gdoc-icon-btn:hover,
.gdoc-chip-btn:hover{
  background:#f1f3f4;
}
.gdoc-blue-btn:hover{
  background:#1766cd;
}
.gdoc-toolbar-shell{
  position:sticky;
  top:64px;
  z-index:110;
  background:#fff;
  border-bottom:1px solid #e2e5e9;
}
.gdoc-toolbar-row{
  display:flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
  padding:8px 20px;
}
.gdoc-select{
  height:34px;
  padding:0 12px;
  border:1px solid #e0e3e7!important;
  border-radius:10px!important;
  background:#fff!important;
  font-size:13px!important;
  min-width:88px;
}
.gdoc-zoom-select{min-width:78px}
.gdoc-size-group{
  display:flex;
  align-items:center;
  gap:4px;
}
.gdoc-size-display{
  width:42px;
  height:30px;
  border:1px solid #e0e3e7!important;
  border-radius:8px!important;
  text-align:center;
  background:#fff!important;
  font-size:13px!important;
  font-weight:600;
}
.gdoc-hidden-select{
  position:absolute;
  pointer-events:none;
  opacity:0;
  width:0;
  height:0;
}
.gdoc-toolbar-row .toolbar-divider{
  width:1px;
  height:26px;
  margin:0 6px;
  background:#e5e7eb;
}
.gdoc-ruler-shell{
  padding:0 20px 10px;
  background:#fff;
}
.gdoc-ruler{
  max-width:980px;
  margin:0 auto;
  display:grid;
  grid-template-columns:46px 1fr 46px;
  align-items:center;
  color:#68707b;
  font-size:10px;
}
.gdoc-ruler-margin{
  height:22px;
  border-top:1px solid #dadddf;
}
.gdoc-ruler-track{
  display:grid;
  grid-template-columns:repeat(17,1fr);
  height:22px;
  border-top:1px solid #dadddf;
}
.gdoc-ruler-step{
  position:relative;
  border-left:1px solid #e2e4e8;
}
.gdoc-ruler-step::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:1px;
  height:8px;
  background:#9ca3af;
}
.gdoc-ruler-step span{
  position:absolute;
  top:-1px;
  left:6px;
}
.gdoc-canvas{
  padding:26px 16px 42px;
  background:#f1f3f4;
}
.gdoc-page-stage{
  --doc-zoom:1;
  width:calc(980px / var(--doc-zoom));
  margin:0 auto;
  transform:scale(var(--doc-zoom));
  transform-origin:top center;
  transition:transform .12s ease;
}
.gdoc-document-sheet{
  width:794px!important;
  min-height:1123px!important;
  margin:0 auto!important;
  padding:78px 72px!important;
  border:1px solid #d8dce2;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:0 2px 12px rgba(35,42,52,.10)!important;
  font-family:Arial,sans-serif;
  font-size:14.666px;
  line-height:1.65;
}
.gdoc-document-sheet:focus{
  box-shadow:0 4px 16px rgba(35,42,52,.14),0 0 0 1px rgba(26,115,232,.28)!important;
}
.gdoc-versions{
  width:min(860px,calc(100vw - 32px));
  margin:18px auto 28px;
  background:#fff;
}
.gdoc-export-wrap .document-export-menu{
  top:42px;
  right:0;
  width:230px;
}
.gdoc-page .doc-color-control{
  width:36px;height:36px;border:0;border-radius:10px;background:transparent;
}
.gdoc-page .doc-color-control:hover{background:#f1f3f4}
.gdoc-page .doc-color-control input{
  left:5px;right:5px;bottom:4px;width:24px!important;height:5px!important;
}
.gdoc-page .doc-table-menu{
  top:42px;
  border-radius:12px;
}
@media(max-width:1100px){
  .gdoc-title-input{width:min(320px,34vw)!important}
}
@media(max-width:860px){
  .gdoc-topbar{
    flex-direction:column;
    align-items:stretch;
  }
  .gdoc-top-left,.gdoc-top-right{
    width:100%;
    flex-wrap:wrap;
  }
  .gdoc-toolbar-shell{
    top:108px;
  }
  .gdoc-ruler{
    max-width:840px;
  }
  .gdoc-page-stage{
    width:auto;
    transform:none;
  }
  .gdoc-document-sheet{
    width:calc(100vw - 32px)!important;
    min-height:980px!important;
    padding:44px 28px!important;
  }
}
@media(max-width:640px){
  .gdoc-toolbar-row{
    overflow:auto;
    flex-wrap:nowrap;
    padding:8px 10px;
  }
  .gdoc-ruler-shell{
    display:none;
  }
  .gdoc-canvas{
    padding:14px 6px 24px;
  }
  .gdoc-document-sheet{
    width:calc(100vw - 12px)!important;
    padding:28px 18px!important;
  }
}
@media print{
  .gdoc-topbar,.gdoc-toolbar-shell,.gdoc-versions{display:none!important}
  .gdoc-canvas{padding:0!important}
  .gdoc-page-stage{transform:none!important;width:auto!important}
  .gdoc-document-sheet{width:auto!important;min-height:0!important;box-shadow:none!important;border:0!important}
}


/* Vertical ruler */
.gdoc-workspace{
  position:relative;
  width:max-content;
  margin:0 auto;
  display:grid;
  grid-template-columns:34px auto;
  align-items:start;
}
.gdoc-vruler{
  position:sticky;
  left:0;
  top:154px;
  width:34px;
  height:1123px;
  margin-right:8px;
  color:#68707b;
  font-size:9px;
  user-select:none;
}
.gdoc-vruler-top{
  height:20px;
  border-right:1px solid #dadddf;
}
.gdoc-vruler-track{
  position:relative;
  height:1103px;
  border-right:1px solid #dadddf;
  display:grid;
  grid-template-rows:repeat(25,1fr);
}
.gdoc-vruler-step{
  position:relative;
  border-top:1px solid #e2e4e8;
}
.gdoc-vruler-step::after{
  content:"";
  position:absolute;
  right:0;
  top:0;
  width:7px;
  height:1px;
  background:#9ca3af;
}
.gdoc-vruler-step span{
  position:absolute;
  right:11px;
  top:-6px;
  color:#6d7480;
}
@media(max-width:860px){
  .gdoc-workspace{
    display:block;
    width:auto;
  }
  .gdoc-vruler{
    display:none;
  }
}
@media print{
  .gdoc-vruler{display:none!important}
}


/* Final Google Docs-like document UI */
.gdoc-topbar-final{
  min-height:72px;
  padding:10px 18px 8px;
  align-items:flex-start;
  background:#fff;
}
.gdoc-topbar-final .gdoc-top-left{
  align-items:flex-start;
}
.gdoc-doc-logo{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#1a73e8;
  color:#fff;
  font-size:20px;
  font-weight:800;
  text-decoration:none;
  margin-top:2px;
}
.gdoc-title-input{
  width:min(520px,42vw)!important;
  height:28px!important;
  padding:1px 6px!important;
  font-size:18px!important;
  border-radius:5px!important;
}
.gdoc-menubar{
  display:flex;
  align-items:center;
  gap:2px;
  margin-top:3px;
}
.gdoc-menu-text{
  height:28px;
  padding:0 8px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#3c4043;
  font-size:13px;
  cursor:pointer;
}
.gdoc-menu-text:hover{
  background:#f1f3f4;
}
.gdoc-top-right{
  padding-top:5px;
}
.gdoc-save-status{
  color:#5f6368;
  font-size:12px;
  margin-right:4px;
}
.gdoc-round-action{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#5f6368;
  font-size:18px;
  cursor:pointer;
}
.gdoc-round-action:hover{
  background:#f1f3f4;
}
.gdoc-share-btn{
  min-height:40px;
  display:flex;
  align-items:center;
  padding:0 18px;
  border-radius:20px;
  background:#c2e7ff;
  color:#001d35;
  font-size:13px;
  font-weight:700;
}
.gdoc-file-menu{
  position:absolute;
  left:70px;
  top:64px;
  width:230px;
  padding:7px;
  background:#fff;
  border:1px solid #dadce0;
  border-radius:8px;
  box-shadow:0 8px 24px rgba(60,64,67,.22);
  z-index:250;
}
.gdoc-file-menu a,.gdoc-file-menu button{
  display:block;
  width:100%;
  padding:9px 10px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#202124;
  text-align:left;
  font-size:13px;
}
.gdoc-file-menu a:hover,.gdoc-file-menu button:hover{
  background:#f1f3f4;
}
.gdoc-toolbar-shell-final{
  top:72px;
  background:#fff;
  border-bottom:0;
}
.gdoc-toolbar-row-final{
  margin:0 16px;
  padding:6px 10px;
  min-height:48px;
  border-radius:24px;
  background:#edf2fa;
  gap:2px;
  flex-wrap:nowrap;
  overflow-x:auto;
}
.gdoc-tool{
  min-width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 7px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#3c4043;
  font-size:13px;
  cursor:pointer;
}
.gdoc-tool:hover{
  background:#dfe5ef;
}
.gdoc-tool.small{
  min-width:26px;
  width:26px;
  padding:0;
}
.gdoc-select{
  height:32px!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  padding:0 24px 0 8px!important;
  color:#3c4043!important;
  font-size:13px!important;
}
.gdoc-select:hover{
  background:#dfe5ef!important;
}
.gdoc-style-select{min-width:132px}
.gdoc-font-select{min-width:100px}
.gdoc-zoom-select{min-width:68px}
.gdoc-size-display{
  width:38px!important;
  height:28px!important;
  background:#fff!important;
  border:1px solid #cfd4dc!important;
  border-radius:5px!important;
}
.gdoc-separator{
  width:1px;
  height:22px;
  background:#cbd2dc;
  margin:0 4px;
  flex:0 0 auto;
}
.gdoc-toolbar-row-final .doc-color-control{
  min-width:32px;
  width:32px;
  height:32px;
}
.gdoc-ruler-shell-final{
  padding:9px 20px 0;
}
.gdoc-ruler{
  max-width:810px;
}
.gdoc-canvas{
  padding-top:12px!important;
}
.gdoc-workspace{
  grid-template-columns:28px auto;
}
.gdoc-vruler{
  width:28px;
  height:1123px;
  margin-right:6px;
}
.gdoc-vruler-step span{
  right:8px;
  font-size:8px;
}
.gdoc-document-sheet{
  width:794px!important;
  min-height:1123px!important;
  padding:78px 72px!important;
  box-shadow:none!important;
  border:1px solid #cfd3d8!important;
}
.gdoc-document-sheet:focus{
  box-shadow:0 0 0 1px #8ab4f8!important;
}
.document-editor-body{
  background:#f8fafd!important;
}
.gdoc-page{
  background:#f8fafd!important;
}
.gdoc-canvas{
  background:#f8fafd!important;
}
@media(max-width:900px){
  .gdoc-topbar-final{
    min-height:100px;
  }
  .gdoc-toolbar-shell-final{
    top:100px;
  }
}


/* =========================================================
   Clean office editor override
   Fixes generic site button styles leaking into the document UI
   ========================================================= */
.document-editor-body .ui-app-content button,
.document-editor-body .ui-app-content .gdoc-menu-text,
.document-editor-body .ui-app-content .gdoc-tool,
.document-editor-body .ui-app-content .gdoc-round-action{
  background:transparent!important;
  color:#3c4043!important;
  border:0!important;
  box-shadow:none!important;
}

.document-editor-body .ui-app-content .gdoc-share-btn{
  background:#c2e7ff!important;
  color:#001d35!important;
  border:0!important;
  box-shadow:none!important;
}

.document-editor-body .ui-app-content .gdoc-menu-text:hover,
.document-editor-body .ui-app-content .gdoc-tool:hover,
.document-editor-body .ui-app-content .gdoc-round-action:hover{
  background:#eef1f4!important;
}

.document-editor-body .ui-app-content .gdoc-file-menu button{
  background:transparent!important;
  color:#202124!important;
}
.document-editor-body .ui-app-content .gdoc-file-menu button:hover{
  background:#f1f3f4!important;
}

/* Header */
.gdoc-topbar-final{
  min-height:68px!important;
  padding:8px 18px 6px!important;
  border-bottom:1px solid #eceff3!important;
  box-shadow:none!important;
}
.gdoc-doc-logo{
  width:36px!important;
  height:36px!important;
  border-radius:8px!important;
  background:#1a73e8!important;
  font-size:17px!important;
}
.gdoc-title-input{
  height:26px!important;
  font-size:17px!important;
  font-weight:600!important;
}
.gdoc-menubar{
  margin-top:1px!important;
}
.gdoc-menu-text{
  height:25px!important;
  padding:0 7px!important;
  border-radius:5px!important;
  font-size:12px!important;
  font-weight:500!important;
}
.gdoc-top-right{
  padding-top:2px!important;
}
.gdoc-save-status{
  font-size:11px!important;
  color:#7a7f87!important;
}
.gdoc-share-btn{
  min-height:36px!important;
  padding:0 16px!important;
  border-radius:18px!important;
  font-size:12px!important;
}

/* Toolbar */
.gdoc-toolbar-shell-final{
  top:68px!important;
  padding-top:5px!important;
  background:#fff!important;
}
.gdoc-toolbar-row-final{
  margin:0 14px!important;
  min-height:42px!important;
  padding:4px 8px!important;
  border:1px solid #e7ebf0!important;
  border-radius:18px!important;
  background:#f7f9fc!important;
  box-shadow:none!important;
  gap:1px!important;
}
.gdoc-tool{
  min-width:30px!important;
  height:30px!important;
  padding:0 6px!important;
  border-radius:6px!important;
  font-size:12px!important;
}
.gdoc-tool.small{
  min-width:24px!important;
  width:24px!important;
  height:28px!important;
}
.gdoc-select{
  height:30px!important;
  font-size:12px!important;
  padding:0 21px 0 7px!important;
}
.gdoc-style-select{min-width:120px!important}
.gdoc-font-select{min-width:94px!important}
.gdoc-zoom-select{min-width:64px!important}
.gdoc-size-display{
  width:34px!important;
  height:26px!important;
  font-size:12px!important;
}
.gdoc-separator{
  height:20px!important;
  margin:0 3px!important;
  background:#d7dce4!important;
}
.gdoc-toolbar-row-final .doc-color-control{
  min-width:30px!important;
  width:30px!important;
  height:30px!important;
}

/* Rulers */
.gdoc-ruler-shell-final{
  padding:5px 0 0!important;
  background:#fff!important;
}
.gdoc-ruler{
  width:794px!important;
  max-width:794px!important;
  margin:0 auto!important;
  grid-template-columns:0 1fr 0!important;
  font-size:8px!important;
  color:#7f8791!important;
}
.gdoc-ruler-margin{
  display:none!important;
}
.gdoc-ruler-track{
  height:17px!important;
  border-top:1px solid #cfd4da!important;
}
.gdoc-ruler-step::before{
  height:5px!important;
  background:#aeb5bf!important;
}
.gdoc-ruler-step span{
  top:-2px!important;
  left:4px!important;
  font-size:8px!important;
}

/* Canvas + page */
.gdoc-page,
.gdoc-canvas,
.document-editor-body{
  background:#f4f6f8!important;
}
.gdoc-canvas{
  padding:8px 16px 48px!important;
}
.gdoc-workspace{
  display:grid!important;
  grid-template-columns:24px 794px!important;
  gap:4px!important;
  width:822px!important;
  margin:0 auto!important;
  align-items:start!important;
}
.gdoc-vruler{
  position:relative!important;
  top:0!important;
  left:0!important;
  width:24px!important;
  height:1123px!important;
  margin:0!important;
  color:#7f8791!important;
  font-size:8px!important;
}
.gdoc-vruler-top{
  height:0!important;
}
.gdoc-vruler-track{
  height:1123px!important;
  border-right:1px solid #cfd4da!important;
}
.gdoc-vruler-step{
  border-top:1px solid #e1e5ea!important;
}
.gdoc-vruler-step::after{
  width:5px!important;
  background:#aeb5bf!important;
}
.gdoc-vruler-step span{
  right:7px!important;
  top:-5px!important;
  font-size:8px!important;
}
.gdoc-page-stage{
  width:794px!important;
  margin:0!important;
}
.gdoc-document-sheet{
  width:794px!important;
  min-height:1123px!important;
  margin:0!important;
  padding:72px 68px!important;
  border:1px solid #cfd4da!important;
  background:#fff!important;
  box-shadow:0 1px 3px rgba(25,31,40,.08)!important;
}
.gdoc-document-sheet:focus{
  box-shadow:0 1px 3px rgba(25,31,40,.08),0 0 0 1px rgba(26,115,232,.18)!important;
}
.gdoc-versions{
  width:794px!important;
  margin:16px auto 26px!important;
  border:1px solid #e1e4e8!important;
  box-shadow:none!important;
}

/* Context menus */
.gdoc-file-menu,
.doc-table-menu{
  border:1px solid #dadce0!important;
  border-radius:8px!important;
  box-shadow:0 8px 24px rgba(60,64,67,.18)!important;
}

/* Responsive */
@media(max-width:900px){
  .gdoc-workspace{
    width:auto!important;
    grid-template-columns:1fr!important;
  }
  .gdoc-vruler{
    display:none!important;
  }
  .gdoc-page-stage{
    width:auto!important;
  }
  .gdoc-ruler{
    width:calc(100vw - 30px)!important;
    max-width:794px!important;
  }
  .gdoc-document-sheet{
    width:calc(100vw - 30px)!important;
  }
}


/* Top menus */
.gdoc-menubar{
  position:relative;
}
.gdoc-menu-wrap{
  position:relative;
}
.gdoc-dropdown-menu,
.gdoc-file-menu{
  min-width:210px;
}
.gdoc-file-menu{
  left:0!important;
  top:30px!important;
}
.gdoc-dropdown-menu button,
.gdoc-dropdown-menu a{
  font-size:13px!important;
}

/* Tooltip labels on hover */
.document-editor-body .ui-app-content [data-tooltip]{
  position:relative;
}
.document-editor-body .ui-app-content [data-tooltip]::after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%) translateY(4px);
  padding:6px 8px;
  border-radius:6px;
  background:rgba(32,33,36,.94);
  color:#fff;
  font-size:11px;
  font-weight:500;
  line-height:1.2;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease, transform .12s ease;
  z-index:500;
  box-shadow:0 4px 14px rgba(0,0,0,.18);
}
.document-editor-body .ui-app-content [data-tooltip]::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:calc(100% + 3px);
  transform:translateX(-50%) translateY(4px);
  border:5px solid transparent;
  border-top-color:rgba(32,33,36,.94);
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease, transform .12s ease;
  z-index:499;
}
.document-editor-body .ui-app-content [data-tooltip]:hover::after,
.document-editor-body .ui-app-content [data-tooltip]:hover::before,
.document-editor-body .ui-app-content [data-tooltip]:focus-visible::after,
.document-editor-body .ui-app-content [data-tooltip]:focus-visible::before{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* Do not show tooltip on menu container itself while dropdown open */
.document-editor-body .ui-app-content .gdoc-file-menu [data-tooltip]::after,
.document-editor-body .ui-app-content .gdoc-file-menu [data-tooltip]::before{
  left:12px;
  transform:translateX(0) translateY(4px);
}
.document-editor-body .ui-app-content .gdoc-file-menu [data-tooltip]:hover::after,
.document-editor-body .ui-app-content .gdoc-file-menu [data-tooltip]:hover::before{
  transform:translateX(0) translateY(0);
}


/* Fix: rulers scale together with the page */
.gdoc-ruler-shell-final{
  padding:0!important;
  height:0!important;
  overflow:visible!important;
}
.gdoc-ruler-spacer{
  height:0;
}
.gdoc-canvas{
  overflow:auto!important;
  padding-top:10px!important;
}
.gdoc-zoom-stage{
  --doc-zoom:1;
  width:822px;
  margin:0 auto;
  transition:transform .12s ease;
  will-change:transform;
}
.gdoc-top-ruler-row{
  display:grid;
  grid-template-columns:24px 794px;
  gap:4px;
  width:822px;
  margin:0 auto;
  align-items:end;
}
.gdoc-ruler-corner{
  width:24px;
  height:18px;
}
.gdoc-ruler{
  width:794px!important;
  max-width:none!important;
  height:18px;
  margin:0!important;
  display:block!important;
}
.gdoc-ruler-track{
  width:794px!important;
  height:18px!important;
  display:grid!important;
  grid-template-columns:repeat(17,1fr)!important;
  border-top:1px solid #cfd4da!important;
}
.gdoc-workspace{
  width:822px!important;
  margin:0 auto!important;
  display:grid!important;
  grid-template-columns:24px 794px!important;
  gap:4px!important;
}
.gdoc-vruler{
  position:relative!important;
  top:0!important;
  width:24px!important;
  height:1123px!important;
  margin:0!important;
}
.gdoc-vruler-track{
  height:1123px!important;
  border-right:1px solid #cfd4da!important;
  display:grid!important;
  grid-template-rows:repeat(25,1fr)!important;
}
.gdoc-page-stage{
  width:794px!important;
  margin:0!important;
  transform:none!important;
}
.gdoc-document-sheet{
  width:794px!important;
  min-height:1123px!important;
  margin:0!important;
}

/* Remove old independent scaling rules */
.gdoc-page-stage{
  --doc-zoom:1!important;
}
@media(max-width:900px){
  .gdoc-zoom-stage{
    width:822px!important;
  }
  .gdoc-top-ruler-row{
    display:grid!important;
    width:822px!important;
  }
  .gdoc-ruler{
    display:block!important;
    width:794px!important;
  }
  .gdoc-workspace{
    display:grid!important;
    width:822px!important;
    grid-template-columns:24px 794px!important;
  }
  .gdoc-vruler{
    display:block!important;
  }
  .gdoc-document-sheet{
    width:794px!important;
  }
}
@media(max-width:640px){
  .gdoc-canvas{
    overflow:auto!important;
  }
}
@media print{
  .gdoc-top-ruler-row,.gdoc-vruler{display:none!important}
  .gdoc-zoom-stage{
    transform:none!important;
    width:auto!important;
    margin:0!important;
  }
  .gdoc-workspace{
    display:block!important;
    width:auto!important;
  }
}


/* =========================================================
   Google Docs-like rulers
   ========================================================= */
.gdoc-ruler-corner{
  width:24px!important;
  height:24px!important;
  border-right:1px solid #d5d9df;
  border-bottom:1px solid #d5d9df;
  background:#f1f3f4!important;
}
.gdoc-top-ruler-row{
  align-items:start!important;
}
.gdoc-ruler{
  height:24px!important;
  overflow:visible!important;
  background:#fff!important;
}
.gdoc-ruler-track{
  position:relative!important;
  width:794px!important;
  height:24px!important;
  display:block!important;
  border-top:0!important;
  border-bottom:1px solid #d5d9df!important;
  background:
    repeating-linear-gradient(to right,
      transparent 0,
      transparent calc((100% / 21) / 4 - 1px),
      #d9dde2 calc((100% / 21) / 4 - 1px),
      #d9dde2 calc((100% / 21) / 4)
    ),
    #fff!important;
}
.gdoc-ruler-margin-zone{
  position:absolute;
  top:0;
  bottom:0;
  z-index:1;
  background:#e8eaed;
}
.gdoc-ruler-margin-zone.left{
  left:0;
  width:72px;
  border-right:1px solid #c8ccd1;
}
.gdoc-ruler-margin-zone.right{
  right:0;
  width:72px;
  border-left:1px solid #c8ccd1;
}
.gdoc-ruler-labels{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
}
.gdoc-ruler-labels span{
  position:absolute;
  top:3px;
  transform:translateX(-50%);
  color:#6f747c;
  font-size:8px;
  line-height:1;
}

/* Blue Google Docs-style indent markers */
.gdoc-ruler-marker{
  position:absolute!important;
  z-index:12!important;
  width:14px!important;
  height:14px!important;
  min-width:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  transform:translateX(-50%);
  cursor:ew-resize!important;
  box-shadow:none!important;
}
.gdoc-ruler-marker::before,
.gdoc-ruler-marker::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
}
.gdoc-ruler-marker.first-line{
  top:0;
}
.gdoc-ruler-marker.first-line::before{
  top:1px;
  width:0;
  height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:7px solid #4285f4;
}
.gdoc-ruler-marker.left-indent{
  bottom:-1px;
  height:18px!important;
}
.gdoc-ruler-marker.left-indent::before{
  bottom:0;
  width:0;
  height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-bottom:7px solid #4285f4;
}
.gdoc-ruler-marker.left-indent::after{
  bottom:7px;
  width:8px;
  height:4px;
  border-radius:1px;
  background:#4285f4;
}
.gdoc-ruler-marker.right-indent{
  bottom:-1px;
}
.gdoc-ruler-marker.right-indent::before{
  bottom:0;
  width:0;
  height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-bottom:7px solid #4285f4;
}
.gdoc-ruler-marker.dragging{
  filter:drop-shadow(0 1px 2px rgba(66,133,244,.45));
}
.gdoc-ruler-marker:hover::before{
  filter:brightness(.92);
}

/* Vertical ruler */
.gdoc-vruler{
  width:24px!important;
  background:#fff!important;
}
.gdoc-vruler-track{
  position:relative!important;
  width:24px!important;
  height:1123px!important;
  display:block!important;
  border-right:1px solid #d5d9df!important;
  background:
    repeating-linear-gradient(to bottom,
      transparent 0,
      transparent calc((100% / 29.7) / 4 - 1px),
      #dde1e6 calc((100% / 29.7) / 4 - 1px),
      #dde1e6 calc((100% / 29.7) / 4)
    ),
    #fff!important;
}
.gdoc-vruler-margin-zone{
  position:absolute;
  left:0;
  right:0;
  z-index:1;
  background:#e8eaed;
}
.gdoc-vruler-margin-zone.top{
  top:0;
  height:72px;
  border-bottom:1px solid #c8ccd1;
}
.gdoc-vruler-margin-zone.bottom{
  bottom:0;
  height:72px;
  border-top:1px solid #c8ccd1;
}
.gdoc-vruler-labels{
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
}
.gdoc-vruler-labels span{
  position:absolute;
  right:5px;
  transform:translateY(-50%);
  color:#747a82;
  font-size:7px;
  line-height:1;
}

/* Ruler and page remain a single zoomed unit */
.gdoc-zoom-stage{
  transform-origin:top center!important;
}
@media(max-width:900px){
  .gdoc-ruler-marker{display:block!important}
}
@media print{
  .gdoc-ruler-marker,.gdoc-ruler-margin-zone,.gdoc-vruler-margin-zone{display:none!important}
}


/* =========================================================
   Google Docs ruler v2
   ========================================================= */
.gdoc-ruler-corner{
  width:24px!important;height:26px!important;
  background:#f8f9fa!important;
  border-right:1px solid #d5d9df!important;
  border-bottom:1px solid #d5d9df!important;
}
.gdoc-ruler{
  height:26px!important;
  background:#fff!important;
  overflow:visible!important;
}
.gdoc-ruler-track{
  position:relative!important;
  width:794px!important;height:26px!important;
  display:block!important;
  background:#fff!important;
  border:0!important;
  border-bottom:1px solid #d5d9df!important;
  overflow:visible!important;
}
.gdoc-page-margin{
  position:absolute;top:0;bottom:0;z-index:2;
  background:#e8eaed;
  cursor:col-resize;
}
.gdoc-page-margin.left{left:0;border-right:1px solid #bdc1c6}
.gdoc-page-margin.right{right:0;border-left:1px solid #bdc1c6}
.gdoc-ruler-ticks{position:absolute;inset:0;z-index:3;pointer-events:none}
.gdoc-ruler-ticks i{
  position:absolute;bottom:0;width:1px;background:#9aa0a6;
  height:4px;
}
.gdoc-ruler-ticks i.half{height:6px}
.gdoc-ruler-ticks i.major{height:8px}
.gdoc-ruler-ticks span{
  position:absolute;bottom:9px;transform:translateX(-50%);
  color:#5f6368;font-size:8px;line-height:1;
}
.gdoc-ruler-marker{
  position:absolute!important;z-index:20!important;
  width:14px!important;height:14px!important;min-width:0!important;
  padding:0!important;border:0!important;background:transparent!important;
  transform:translateX(-50%);cursor:ew-resize!important;box-shadow:none!important;
}
.gdoc-ruler-marker.first-line{top:0!important}
.gdoc-ruler-marker.first-line::before{
  content:"";position:absolute;left:50%;top:1px;transform:translateX(-50%);
  width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid #1a73e8;
}
.gdoc-ruler-marker.left-indent{bottom:0!important;height:18px!important}
.gdoc-ruler-marker.left-indent::before{
  content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:7px solid #1a73e8;
}
.gdoc-ruler-marker.left-indent::after{
  content:"";position:absolute;left:50%;bottom:7px;transform:translateX(-50%);
  width:8px;height:4px;border-radius:1px;background:#1a73e8;
}
.gdoc-ruler-marker.right-indent{bottom:0!important}
.gdoc-ruler-marker.right-indent::before{
  content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);
  width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:7px solid #1a73e8;
}
.gdoc-ruler-marker.dragging{filter:drop-shadow(0 1px 2px rgba(26,115,232,.45))}

/* vertical */
.gdoc-vruler{width:24px!important;background:#fff!important}
.gdoc-vruler-track{
  position:relative!important;width:24px!important;height:1123px!important;
  display:block!important;background:#fff!important;
  border-right:1px solid #d5d9df!important;
}
.gdoc-v-page-margin{
  position:absolute;left:0;right:0;z-index:2;
  background:#e8eaed;cursor:row-resize;
}
.gdoc-v-page-margin.top{top:0;border-bottom:1px solid #bdc1c6}
.gdoc-v-page-margin.bottom{bottom:0;border-top:1px solid #bdc1c6}
.gdoc-vruler-ticks{position:absolute;inset:0;z-index:3;pointer-events:none}
.gdoc-vruler-ticks i{
  position:absolute;right:0;height:1px;background:#9aa0a6;width:4px;
}
.gdoc-vruler-ticks i.half{width:6px}
.gdoc-vruler-ticks i.major{width:8px}
.gdoc-vruler-ticks span{
  position:absolute;right:9px;transform:translateY(-50%);
  color:#5f6368;font-size:7px;line-height:1;
}

/* page follows persistent margins from ruler */
.gdoc-document-sheet{
  box-sizing:border-box!important;
}

/* one visual system at all zoom levels */
.gdoc-top-ruler-row,
.gdoc-workspace{
  width:822px!important;
}
.gdoc-top-ruler-row{
  display:grid!important;grid-template-columns:24px 794px!important;gap:4px!important;
}
.gdoc-workspace{
  display:grid!important;grid-template-columns:24px 794px!important;gap:4px!important;
}
@media(max-width:900px){
  .gdoc-top-ruler-row,.gdoc-workspace{display:grid!important}
  .gdoc-vruler{display:block!important}
}


/* Critical layout fix: page and vertical ruler must share the same grid row */
.gdoc-zoom-stage{
  width:822px!important;
  margin:0 auto!important;
}
.gdoc-top-ruler-row{
  display:grid!important;
  grid-template-columns:24px 794px!important;
  column-gap:4px!important;
  width:822px!important;
  margin:0!important;
  align-items:end!important;
}
.gdoc-workspace{
  display:grid!important;
  grid-template-columns:24px 794px!important;
  column-gap:4px!important;
  width:822px!important;
  margin:0!important;
  align-items:start!important;
}
.gdoc-vruler,
.gdoc-page-stage{
  grid-row:1!important;
  align-self:start!important;
}
.gdoc-vruler{grid-column:1!important}
.gdoc-page-stage{grid-column:2!important}
.gdoc-page-stage{
  position:relative!important;
  top:0!important;
  margin:0!important;
}
.gdoc-document-sheet{
  margin:0!important;
}


.word-appbar{position:sticky;top:0;z-index:160;background:#fff;border-bottom:1px solid #d9dde3;font-family:Arial,sans-serif}
.word-titlebar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#185abd;color:#fff}
.word-title-left,.word-title-right{display:flex;align-items:center;gap:9px}
.word-back{width:30px;height:30px;display:grid;place-items:center;border-radius:4px;color:#fff!important;font-size:20px}
.word-back:hover{background:rgba(255,255,255,.13)}
.word-file-icon{width:30px;height:30px;display:grid;place-items:center;background:#fff;color:#185abd;border-radius:3px;font-weight:800}
.word-title-input{width:min(520px,42vw)!important;height:30px!important;border:1px solid transparent!important;background:transparent!important;color:#fff!important;padding:0 7px!important;font-size:14px!important;font-weight:600!important;border-radius:3px!important}
.word-title-input:hover,.word-title-input:focus{border-color:rgba(255,255,255,.45)!important;background:rgba(255,255,255,.08)!important}
.word-save-status{color:#e6eefb!important;font-size:11px!important}
.word-top-btn{height:30px;display:inline-flex;align-items:center;padding:0 12px;border:1px solid rgba(255,255,255,.45)!important;border-radius:3px!important;background:transparent!important;color:#fff!important;font-size:12px!important}
.word-top-btn:hover{background:rgba(255,255,255,.12)!important}
.word-primary-btn{background:#fff!important;color:#185abd!important}
.word-primary-btn:hover{background:#eef4fc!important}
.word-tabs{position:relative;height:33px;display:flex;align-items:end;padding:0 12px;background:#fff;border-bottom:1px solid #dcdfe4}
.word-tab{height:32px!important;padding:0 13px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#333!important;font-size:12px!important;font-weight:500!important}
.word-tab:hover{background:#f3f4f6!important}
.word-tab.active{color:#185abd!important;border-bottom:2px solid #185abd!important;font-weight:600!important}
.word-file-menu{position:absolute!important;left:12px!important;top:33px!important;min-width:220px;z-index:300}
.word-ribbon{min-height:88px;background:#fff;border-bottom:1px solid #d5d9df;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.word-ribbon-panel{display:none;min-height:88px;align-items:stretch;padding:5px 10px 3px;overflow-x:auto}
.word-ribbon-panel.active{display:flex}
.word-group{position:relative;display:flex;align-items:center;gap:4px;padding:3px 10px 17px;border-right:1px solid #d8dce2;min-width:max-content}
.word-group:last-child{border-right:0}
.word-group-label{position:absolute;bottom:1px;left:0;right:0;text-align:center;color:#666d76;font-size:9px}
.word-group-actions{display:flex;align-items:center;gap:2px}
.word-font-group{display:block}
.word-font-row{display:flex;align-items:center;gap:3px;margin-bottom:4px}
.word-select{height:27px!important;padding:0 22px 0 6px!important;border:1px solid #cdd2d8!important;border-radius:2px!important;background:#fff!important;color:#222!important;font-size:11px!important}
.word-select.font{width:132px}
.word-select.size{width:52px}
.word-select.zoom{width:76px}
.word-icon-btn{min-width:27px!important;width:auto!important;height:27px!important;padding:0 6px!important;border:1px solid transparent!important;border-radius:2px!important;background:transparent!important;color:#222!important;font-size:11px!important}
.word-icon-btn:hover{border-color:#c9d3e3!important;background:#eaf2fb!important}
.word-hidden-input{display:none!important}
.word-color-btn{position:relative;width:27px;height:27px;display:grid;place-items:center;border:1px solid transparent;border-radius:2px;font-weight:700;font-size:12px}
.word-color-btn:hover{background:#eaf2fb;border-color:#c9d3e3}
.word-color-btn input{position:absolute;left:4px;right:4px;bottom:2px;width:19px!important;height:4px!important;padding:0!important;border:0!important}
.word-paragraph-grid{display:grid;grid-template-columns:repeat(4,29px);gap:3px}
.word-style-group{min-width:130px}
.word-style-select{width:118px;height:50px!important;border:1px solid #cdd2d8!important;background:#fff!important;font-size:11px!important}
.word-large-btn{min-width:58px!important;height:56px!important;padding:4px 7px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid transparent!important;border-radius:3px!important;background:transparent!important;color:#222!important;font-size:18px!important}
.word-large-btn span{font-size:10px}
.word-large-btn:hover{background:#eaf2fb!important;border-color:#c9d3e3!important}
.word-ruler-wrap{position:sticky;top:169px;z-index:100}
.document-editor-body,.gdoc-page,.gdoc-canvas{background:#e9edf2!important}
.gdoc-canvas{padding-top:18px!important}
.gdoc-document-sheet{box-shadow:0 2px 8px rgba(0,0,0,.13)!important;border:1px solid #c7cbd1!important}
.gdoc-ruler-track,.gdoc-vruler-track{background:#f9fafb!important}
.gdoc-ruler-corner{background:#e6e9ed!important}
@media(max-width:900px){.word-titlebar{height:auto;min-height:48px;flex-wrap:wrap;padding:6px 10px}.word-ribbon-panel{overflow-x:auto}.word-ruler-wrap{top:190px}}
@media print{.word-appbar,.word-ruler-wrap{display:none!important}}


.word-paragraph-options{display:flex;flex-direction:column;gap:3px;font-size:9px}
.word-paragraph-options label{display:flex;align-items:center;justify-content:space-between;gap:6px}
.word-select.mini{width:60px!important;height:24px!important;font-size:10px!important}
.word-layout-select-wrap{display:flex;flex-direction:column;gap:5px;font-size:9px}
.word-layout-select-wrap label{display:flex;align-items:center;gap:6px;justify-content:space-between}
.word-check{display:flex;align-items:center;gap:6px;font-size:11px;padding:0 8px}
.word-find-modal[hidden]{display:none!important}
.word-find-modal{position:fixed;inset:0;z-index:5000;background:rgba(0,0,0,.18);display:flex;align-items:flex-start;justify-content:flex-end;padding:80px 28px}
.word-find-card{width:320px;background:#fff;border:1px solid #cfd4db;box-shadow:0 10px 30px rgba(0,0,0,.18);border-radius:4px;padding:12px}
.word-find-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.word-find-head button{border:0!important;background:transparent!important;font-size:20px!important}
.word-find-card label{display:block;font-size:11px;margin:7px 0}
.word-find-card input{width:100%;height:30px;border:1px solid #c9ced6;border-radius:3px;padding:0 8px;margin-top:3px}
.word-find-actions{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap}
.word-find-actions button{height:30px!important;padding:0 9px!important;border:1px solid #c7ccd4!important;background:#f7f8fa!important;border-radius:3px!important;font-size:10px!important}
.word-find-status{font-size:10px;color:#666;margin-top:8px}
.gdoc-top-ruler-row.is-hidden,.gdoc-vruler.is-hidden{display:none!important}


/* Google Docs rebuild */
.document-editor-body .ui-sidebar,.document-editor-body .ui-topbar{display:none!important}
.document-editor-body .ui-app-content{margin-left:0!important;padding-top:0!important}
.document-editor-body{margin:0;background:#f8f9fa!important}
.gd-page{min-height:100vh;background:#f8f9fa}
.gd-app{min-height:100vh;font-family:Arial,sans-serif;color:#202124}
.gd-header{height:66px;display:flex;align-items:center;justify-content:space-between;padding:7px 14px;background:#fff;border-bottom:1px solid #eef0f2}
.gd-header-left,.gd-header-right{display:flex;align-items:center;gap:10px}
.gd-doc-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:#1a73e8;color:#fff}
.gd-doc-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
.gd-title-wrap{display:flex;flex-direction:column;min-width:280px}
.gd-title{width:min(520px,45vw);height:29px;border:1px solid transparent;border-radius:5px;background:transparent;padding:0 6px;font-size:18px;color:#202124}
.gd-title:hover,.gd-title:focus{border-color:#dadce0;outline:none}
.gd-menu-row{display:flex;align-items:center;gap:1px}
.gd-menu-btn{height:27px;padding:0 7px;border:0;border-radius:4px;background:transparent;color:#3c4043;font-size:12px;cursor:pointer}
.gd-menu-btn:hover{background:#f1f3f4}
.gd-save-status{font-size:11px;color:#70757a;white-space:nowrap}
.gd-header-icon{width:36px;height:36px;border:0;border-radius:50%;background:transparent;font-size:18px;cursor:pointer}
.gd-header-icon:hover{background:#f1f3f4}
.gd-share-btn{height:38px;display:flex;align-items:center;padding:0 17px;border-radius:20px;background:#c2e7ff;color:#001d35;font-size:12px;font-weight:600}
.gd-toolbar-wrap{position:sticky;top:0;z-index:130;padding:4px 12px 7px;background:#fff}
.gd-toolbar{height:46px;display:flex;align-items:center;gap:2px;padding:0 8px;border-radius:23px;background:#edf2fa;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.gd-toolbar::-webkit-scrollbar{display:none}
.gd-search-pill{height:34px;display:flex;align-items:center;gap:7px;padding:0 12px;border:0;border-radius:18px;background:#fff;color:#3c4043;font-size:12px;white-space:nowrap}
.gd-search-pill svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}
.gd-tool{position:relative;flex:0 0 auto;min-width:32px;height:32px;display:grid;place-items:center;padding:0 7px;border:0;border-radius:6px;background:transparent;color:#3c4043;font-size:13px;cursor:pointer}
.gd-tool:hover,.gd-tool.active{background:#dce6f5}
.gd-tool svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gd-tool.gd-small{min-width:28px;padding:0;font-size:18px}
.gd-format{font-size:14px}
.gd-sep{flex:0 0 auto;width:1px;height:24px;background:#cdd3dc;margin:0 5px}
.gd-select{flex:0 0 auto;height:32px;border:0;border-radius:6px;background:transparent;padding:0 24px 0 8px;color:#3c4043;font-size:12px;outline:none}
.gd-select:hover{background:#dce6f5}
.gd-zoom{width:76px}.gd-style{width:122px}.gd-font{width:96px}
.gd-font-size{width:38px;height:27px;border:1px solid #bdc1c6;border-radius:4px;background:#fff;text-align:center;font-size:12px;outline:none}
.gd-color-wrap{position:relative}
.gd-color-main{font-weight:700}
.gd-color-line{position:absolute;left:7px;right:7px;bottom:4px;height:3px;background:#000}
.gd-caret{font-size:8px;margin-left:3px}
.gd-dropdown-trigger{display:flex;grid-auto-flow:column;gap:1px}
.gd-toolbar-spacer{flex:1 0 18px}
.gd-mode-btn{height:32px;display:flex;align-items:center;gap:7px;padding:0 9px;border:0;border-radius:6px;background:transparent;color:#3c4043;font-size:12px;white-space:nowrap}
.gd-mode-btn:hover{background:#dce6f5}
.gd-mode-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
[data-tip]{position:relative}
[data-tip]::after{content:attr(data-tip);position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);z-index:1000;padding:6px 8px;border-radius:5px;background:#303134;color:#fff;font-size:10px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s}
[data-tip]:hover::after{opacity:1}
.gd-popover,.gd-topmenu{position:fixed;z-index:1000;min-width:190px;padding:6px;background:#fff;border:1px solid #dadce0;border-radius:8px;box-shadow:0 8px 24px rgba(60,64,67,.2)}
.gd-popover[hidden],.gd-topmenu[hidden]{display:none!important}
.gd-popover button,.gd-topmenu button,.gd-topmenu a{width:100%;height:32px;display:flex;align-items:center;padding:0 10px;border:0;border-radius:5px;background:transparent;color:#202124;text-align:left;font-size:12px}
.gd-popover button:hover,.gd-topmenu button:hover,.gd-topmenu a:hover{background:#f1f3f4}
.gd-pop-sep{display:block;height:1px;background:#e8eaed;margin:5px 0}
.gd-ruler-area{padding:6px 16px 48px;background:#f8f9fa;overflow:auto}
.gd-ruler-area.gd-ruler-hidden .gdoc-top-ruler-row,.gd-ruler-area.gd-ruler-hidden .gdoc-vruler{display:none!important}
.gdoc-zoom-stage{width:var(--gd-total-width,822px);margin:0 auto;transition:transform .12s ease}
.gdoc-top-ruler-row{display:grid;grid-template-columns:24px var(--gd-page-width,794px);gap:4px;width:var(--gd-total-width,822px)}
.gdoc-ruler-corner{width:24px;height:25px;background:#f1f3f4;border-right:1px solid #dadce0;border-bottom:1px solid #dadce0}
.gdoc-ruler{width:var(--gd-page-width,794px)!important;height:25px;background:#fff}
.gdoc-ruler-track{position:relative!important;width:var(--gd-page-width,794px)!important;height:25px!important;display:block!important;background:#fff!important;border-bottom:1px solid #dadce0!important}
.gdoc-workspace{display:grid!important;grid-template-columns:24px var(--gd-page-width,794px)!important;gap:4px!important;width:var(--gd-total-width,822px)!important;margin:0!important;align-items:start}
.gdoc-vruler{grid-column:1;grid-row:1;width:24px!important;height:var(--gd-page-height,1123px)!important;background:#fff}
.gdoc-vruler-track{position:relative!important;width:24px!important;height:var(--gd-page-height,1123px)!important;display:block!important;background:#fff!important;border-right:1px solid #dadce0!important}
.gdoc-page-stage{grid-column:2;grid-row:1;width:var(--gd-page-width,794px)!important;margin:0!important}
.gdoc-document-sheet{box-sizing:border-box;width:var(--gd-page-width,794px)!important;min-height:var(--gd-page-height,1123px)!important;margin:0!important;background:#fff!important;border:1px solid #cfd3d7!important;box-shadow:0 1px 3px rgba(60,64,67,.12)!important;outline:none;font-family:Arial,sans-serif;font-size:14.66px;line-height:1.6;color:#202124}
.gdoc-document-sheet:focus{box-shadow:0 1px 3px rgba(60,64,67,.12),0 0 0 1px rgba(26,115,232,.15)!important}
.gdoc-document-sheet img{max-width:100%;height:auto}
.gdoc-page-margin{position:absolute;top:0;bottom:0;z-index:2;background:#e8eaed;cursor:col-resize}
.gdoc-page-margin.left{left:0;border-right:1px solid #bdc1c6}.gdoc-page-margin.right{right:0;border-left:1px solid #bdc1c6}
.gdoc-v-page-margin{position:absolute;left:0;right:0;z-index:2;background:#e8eaed;cursor:row-resize}
.gdoc-v-page-margin.top{top:0;border-bottom:1px solid #bdc1c6}.gdoc-v-page-margin.bottom{bottom:0;border-top:1px solid #bdc1c6}
.gdoc-ruler-ticks,.gdoc-vruler-ticks{position:absolute;inset:0;z-index:3;pointer-events:none}
.gdoc-ruler-ticks i{position:absolute;bottom:0;width:1px;height:4px;background:#9aa0a6}.gdoc-ruler-ticks i.half{height:6px}.gdoc-ruler-ticks i.major{height:8px}
.gdoc-ruler-ticks span{position:absolute;bottom:9px;transform:translateX(-50%);font-size:8px;color:#5f6368}
.gdoc-vruler-ticks i{position:absolute;right:0;height:1px;width:4px;background:#9aa0a6}.gdoc-vruler-ticks i.half{width:6px}.gdoc-vruler-ticks i.major{width:8px}
.gdoc-vruler-ticks span{position:absolute;right:9px;transform:translateY(-50%);font-size:7px;color:#5f6368}
.gdoc-ruler-marker{position:absolute!important;z-index:20!important;width:14px!important;height:14px!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;transform:translateX(-50%);cursor:ew-resize!important}
.gdoc-ruler-marker.first-line{top:0!important}.gdoc-ruler-marker.first-line::before{content:"";position:absolute;left:50%;top:1px;transform:translateX(-50%);border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid #1a73e8}
.gdoc-ruler-marker.left-indent{bottom:0!important;height:18px!important}.gdoc-ruler-marker.left-indent::before{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:7px solid #1a73e8}.gdoc-ruler-marker.left-indent::after{content:"";position:absolute;left:50%;bottom:7px;transform:translateX(-50%);width:8px;height:4px;background:#1a73e8}
.gdoc-ruler-marker.right-indent{bottom:0!important}.gdoc-ruler-marker.right-indent::before{content:"";position:absolute;left:50%;bottom:0;transform:translateX(-50%);border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:7px solid #1a73e8}
.gd-comment-anchor{background:#fff3bf;border-bottom:2px solid #f9ab00}
.gd-checklist{padding-left:0}.gd-checklist>li{list-style:none}
.gd-versions{width:var(--gd-page-width,794px);margin:16px auto 30px;background:#fff;border:1px solid #dadce0;border-radius:6px;padding:10px}
.gd-collapsed .gd-toolbar{display:none}.gd-collapsed{padding-bottom:3px}
@media(max-width:900px){.gd-title{width:40vw}.gd-menu-row{display:none}.gd-header{height:54px}.gd-toolbar-wrap{padding-left:4px;padding-right:4px}.gd-toolbar{border-radius:18px}.gd-ruler-area{padding-left:4px;padding-right:4px}}
@media print{.gd-header,.gd-toolbar-wrap,.gd-popover,.gd-topmenu,.gdoc-top-ruler-row,.gdoc-vruler,.gd-versions{display:none!important}.gd-ruler-area{padding:0!important}.gdoc-zoom-stage{transform:none!important;margin:0!important;width:auto!important}.gdoc-workspace{display:block!important;width:auto!important}.gdoc-page-stage{width:auto!important}.gdoc-document-sheet{width:auto!important;min-height:0!important;border:0!important;box-shadow:none!important}}


/* Advanced Docs functionality */
.gd-contextbar{position:sticky;top:53px;z-index:125;display:flex;align-items:center;gap:6px;min-height:38px;padding:5px 14px;background:#fff;border-bottom:1px solid #e0e3e7;box-shadow:0 1px 2px rgba(60,64,67,.06)}
.gd-contextbar[hidden]{display:none!important}
.gd-contextbar strong{font-size:12px;margin-right:6px}
.gd-contextbar button{height:28px;padding:0 9px;border:1px solid #dadce0;border-radius:5px;background:#fff;font-size:11px}
.gd-contextbar button:hover{background:#f1f3f4}
.gd-comments-panel{position:fixed;right:18px;top:120px;z-index:900;width:320px;max-height:calc(100vh - 145px);display:flex;flex-direction:column;background:#fff;border:1px solid #dadce0;border-radius:10px;box-shadow:0 12px 36px rgba(60,64,67,.22)}
.gd-comments-panel[hidden]{display:none!important}
.gd-comments-head{display:flex;align-items:center;justify-content:space-between;padding:11px 13px;border-bottom:1px solid #e8eaed}
.gd-comments-head button{border:0;background:transparent;font-size:20px}
.gd-comments-list{padding:9px;overflow:auto}
.gd-comment-card{padding:10px;margin-bottom:8px;border:1px solid #e1e4e8;border-radius:8px;background:#fff}
.gd-comment-card.resolved{opacity:.55}
.gd-comment-meta{font-size:9px;color:#70757a;margin-bottom:4px}
.gd-comment-anchor-text{font-size:10px;color:#5f6368;border-left:2px solid #f9ab00;padding-left:6px;margin-bottom:6px}
.gd-comment-body{font-size:12px;line-height:1.4}
.gd-comment-card button{margin-top:8px;height:26px;padding:0 8px;border:1px solid #dadce0;border-radius:5px;background:#f8f9fa;font-size:10px}
.gd-comments-new{padding:10px;border-top:1px solid #e8eaed}
.gd-comments-new textarea{width:100%;min-height:70px;resize:vertical;border:1px solid #dadce0;border-radius:7px;padding:8px;font:12px Arial}
.gd-comments-new button{margin-top:7px;height:30px;padding:0 11px;border:0;border-radius:15px;background:#1a73e8;color:#fff;font-size:11px}
.gd-version-list{display:flex;flex-direction:column;gap:7px;margin-top:8px}
.gd-version-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px;border:1px solid #e5e7eb;border-radius:6px}
.gd-version-item span{font-size:10px;color:#5f6368}
.gd-version-item form{margin:0}
.gd-version-item button{height:26px;padding:0 8px;border:1px solid #dadce0;border-radius:5px;background:#fff;font-size:10px}
.gd-page-break-label{position:relative;height:28px;margin:16px calc(-1 * var(--page-pad-left,0px));display:flex;align-items:center;justify-content:center;color:#70757a;font-size:10px;background:linear-gradient(#f8f9fa,#f8f9fa) center/100% 2px no-repeat;pointer-events:none}
.gd-page-break-label::before{content:"";position:absolute;inset:12px 0 auto;border-top:1px dashed #c7cbd1}
.gdoc-document-sheet table{border-collapse:collapse;width:100%;margin:10px 0}
.gdoc-document-sheet td,.gdoc-document-sheet th{border:1px solid #bfc4ca;padding:6px 8px;min-width:55px;vertical-align:top}
.gdoc-document-sheet td:focus,.gdoc-document-sheet th:focus{outline:2px solid rgba(26,115,232,.22)}
.gdoc-document-sheet img{cursor:pointer;outline-offset:2px}
.gdoc-document-sheet img:hover{outline:1px solid #1a73e8}


/* Core stability UX */
.gd-link-bubble{position:fixed;z-index:1200;display:flex;align-items:center;gap:4px;padding:5px;background:#fff;border:1px solid #dadce0;border-radius:8px;box-shadow:0 8px 24px rgba(60,64,67,.2)}
.gd-link-bubble[hidden]{display:none!important}
.gd-link-bubble a,.gd-link-bubble button{height:30px;padding:0 9px;border:0;border-radius:5px;background:transparent;color:#1a73e8;font-size:11px}
.gd-link-bubble button:hover,.gd-link-bubble a:hover{background:#f1f3f4}
.gd-image-resizer{position:absolute;z-index:1100;border:2px solid #1a73e8;pointer-events:none;box-sizing:border-box}
.gd-image-resizer[hidden]{display:none!important}
.gd-resize-handle{position:absolute;width:10px;height:10px;background:#fff;border:2px solid #1a73e8;border-radius:50%;pointer-events:auto}
.gd-resize-handle.nw{left:-6px;top:-6px;cursor:nwse-resize}.gd-resize-handle.ne{right:-6px;top:-6px;cursor:nesw-resize}.gd-resize-handle.sw{left:-6px;bottom:-6px;cursor:nesw-resize}.gd-resize-handle.se{right:-6px;bottom:-6px;cursor:nwse-resize}
.gdoc-document-sheet td.gd-col-resize-hot,.gdoc-document-sheet th.gd-col-resize-hot{cursor:col-resize}
.gdoc-document-sheet.gd-drop-target{box-shadow:0 0 0 3px rgba(26,115,232,.28)!important}
.gd-doc-footer{position:sticky;bottom:0;z-index:80;height:28px;display:flex;align-items:center;gap:18px;padding:0 14px;background:#fff;border-top:1px solid #e3e6ea;color:#5f6368;font-size:10px}
.gd-popover button.active,.gd-topmenu button.active{background:#dce6f5!important;color:#174ea6}


/* True visual multi-page layout */
.gdoc-workspace{
  align-items:start!important;
}
.gdoc-page-stage{
  width:var(--gd-page-width,794px)!important;
}
.gd-pages-editor{
  width:var(--gd-page-width,794px);
  display:flex;
  flex-direction:column;
  gap:24px;
  outline:none;
}
.gd-page-sheet{
  position:relative;
  box-sizing:border-box;
  width:var(--gd-page-width,794px)!important;
  min-height:var(--gd-page-height,1123px)!important;
  height:var(--gd-page-height,1123px);
  overflow:hidden;
  flex:0 0 auto;
}
.gd-page-sheet::after{
  content:attr(data-page-number);
  position:absolute;
  right:16px;
  bottom:10px;
  color:#9aa0a6;
  font-size:9px;
  pointer-events:none;
}
.gdoc-vruler{
  height:var(--gd-page-height,1123px)!important;
}
.gdoc-vruler-track{
  height:var(--gd-page-height,1123px)!important;
}
.gd-ruler-area{
  padding-bottom:70px!important;
}
@media print{
  .gd-pages-editor{gap:0!important}
  .gd-page-sheet{
    height:auto!important;
    min-height:var(--gd-page-height,1123px)!important;
    page-break-after:always;
    overflow:visible!important;
    border:0!important;
    box-shadow:none!important;
  }
  .gd-page-sheet:last-child{page-break-after:auto}
}


/* Smart pagination */
.gd-page-sheet > p:first-child,
.gd-page-sheet > h1:first-child,
.gd-page-sheet > h2:first-child,
.gd-page-sheet > h3:first-child,
.gd-page-sheet > blockquote:first-child{
  margin-top:0;
}
.gd-page-sheet > p:last-child,
.gd-page-sheet > blockquote:last-child{
  margin-bottom:0;
}
.gd-page-sheet table{
  break-inside:auto;
}
.gd-page-sheet thead{
  display:table-header-group;
}
.gd-page-sheet tr{
  break-inside:avoid;
}
.gd-page-sheet .gd-page-break-label{
  margin-left:0!important;
  margin-right:0!important;
}


/* Editable / manually created pages */
.gd-menu-shortcut{margin-left:auto;padding-left:18px;color:#80868b;font-size:10px}
.gd-manual-page-break{
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  line-height:0!important;
  font-size:0!important;
}
.gd-page-sheet[data-manual-page="1"]::before{
  content:"";
  position:absolute;
  left:-1px;
  top:-1px;
  width:3px;
  height:26px;
  background:#1a73e8;
  opacity:.28;
  pointer-events:none;
}
.gd-page-sheet:focus{
  cursor:text;
}


/* Empty page deletion */
.gd-page-actions{
  position:sticky;
  top:53px;
  z-index:90;
  display:flex;
  justify-content:flex-end;
  padding:3px 14px;
  background:#f8f9fa;
}
.gd-page-actions button{
  height:26px;
  padding:0 9px;
  border:1px solid #dadce0;
  border-radius:5px;
  background:#fff;
  color:#5f6368;
  font-size:10px;
}
.gd-page-actions button:hover{
  background:#f1f3f4;
  color:#202124;
}


/* Advanced table pagination */
.gdoc-document-sheet td[data-gd-span-continuation="1"],
.gdoc-document-sheet th[data-gd-span-continuation="1"]{
  background:linear-gradient(to bottom,rgba(248,249,250,.7),rgba(255,255,255,0));
}
.gdoc-document-sheet tr[data-gd-row-fragment="continuation"] td,
.gdoc-document-sheet tr[data-gd-row-fragment="continuation"] th{
  border-top-style:dashed;
}


/* Exact caret bookmark used during pagination */
.gd-caret-marker{
  display:inline!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  font-size:0!important;
  line-height:0!important;
  pointer-events:none!important;
  user-select:none!important;
}


/* Reflow behavior */
.gd-page-sheet[data-hard-break="1"]::before{
  content:"";
  position:absolute;
  left:-1px;
  top:-1px;
  width:3px;
  height:26px;
  background:#1a73e8;
  opacity:.28;
  pointer-events:none;
}
.gd-hard-page-break{
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  line-height:0!important;
  font-size:0!important;
  overflow:hidden!important;
}

/* Enter-created page protection is behavioral only; no visible marker. */


/* Persistent soft page anchor */
.gd-page-anchor{
  min-height:1.6em;
}
.gd-page-anchor:empty::before{
  content:"\200B";
}


/* DOCX import */
.docx-import-page{margin:0;min-height:100vh;display:grid;place-items:center;background:#f8f9fa;font-family:Arial,sans-serif;color:#202124}
.docx-import-card{width:min(560px,calc(100vw - 32px));background:#fff;border:1px solid #dadce0;border-radius:14px;box-shadow:0 8px 28px rgba(60,64,67,.12);padding:28px}
.docx-import-card h1{margin:10px 0 8px;font-size:22px}
.docx-import-card p{color:#5f6368;font-size:13px;line-height:1.5}
.docx-import-back{color:#1a73e8;font-size:12px}
.docx-drop{display:flex;min-height:170px;margin:20px 0;align-items:center;justify-content:center;flex-direction:column;gap:8px;border:2px dashed #c8d3e4;border-radius:12px;background:#f8fbff;cursor:pointer}
.docx-drop:hover{border-color:#1a73e8;background:#f1f7ff}
.docx-drop input{display:none}
.docx-drop strong{color:#1a73e8;font-size:15px}
.docx-drop span{color:#70757a;font-size:11px}
.docx-import-card form>button{height:40px;padding:0 18px;border:0;border-radius:20px;background:#1a73e8;color:#fff;font-weight:600}


.docx-drop.is-dragging{
  border-color:#1a73e8!important;
  background:#eaf3ff!important;
}
.docx-import-action{
  display:inline-flex;
  align-items:center;
  height:38px;
  margin-top:14px;
  padding:0 16px;
  border-radius:19px;
  background:#1a73e8;
  color:#fff!important;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
}


/* Stable document tables */
.gdoc-document-sheet table,
.gd-page-sheet table,
.gd-doc-table{
  width:100%!important;
  max-width:100%!important;
  table-layout:fixed!important;
  border-collapse:collapse!important;
  box-sizing:border-box!important;
  margin:10px 0!important;
}
.gdoc-document-sheet td,
.gdoc-document-sheet th,
.gd-page-sheet td,
.gd-page-sheet th{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  white-space:normal!important;
}
.gdoc-document-sheet td img,
.gdoc-document-sheet th img{
  max-width:100%!important;
  height:auto!important;
}
.gd-table-picker-popover{
  width:206px!important;
  min-width:206px!important;
  padding:10px!important;
}
.gd-table-picker-title{
  height:24px;
  color:#3c4043;
  font-size:11px;
}
.gd-table-picker{
  display:grid;
  grid-template-columns:repeat(8,20px);
  gap:3px;
}
.gd-table-picker-cell{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  padding:0!important;
  border:1px solid #bdc1c6!important;
  border-radius:2px!important;
  background:#fff!important;
}
.gd-table-picker-cell:hover,
.gd-table-picker-cell.selected{
  border-color:#1a73e8!important;
  background:#d2e3fc!important;
}


/* v1.1.4 — tables stay inside actual text area */
.gdoc-document-sheet table,
.gd-page-sheet table,
.gd-doc-table{
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  table-layout:fixed!important;
  box-sizing:border-box!important;
}
.gdoc-document-sheet td,
.gdoc-document-sheet th,
.gd-page-sheet td,
.gd-page-sheet th{
  min-width:0!important;
  max-width:none!important;
  overflow:hidden;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  white-space:normal!important;
}


/* v1.1.5 — polish existing functions */
.gd-tool.active,.gd-tool[aria-pressed="true"]{background:#c2e7ff!important;color:#174ea6!important}
.gd-contextbar button:disabled{opacity:.45;cursor:not-allowed}
#insertCommentBtn[data-count]:not([data-count="0"])::after{content:attr(data-count);position:absolute;right:-2px;top:-3px;min-width:14px;height:14px;display:grid;place-items:center;padding:0 3px;border-radius:7px;background:#1a73e8;color:#fff;font-size:8px;font-weight:700}
.gd-doc-table td:focus,.gd-doc-table th:focus{outline:2px solid #1a73e8;outline-offset:-2px}


/* v1.1.6 — draggable ruler indents */
.gdoc-ruler-marker{
  z-index:80!important;
  pointer-events:auto!important;
  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
.gdoc-ruler-marker::before,
.gdoc-ruler-marker::after{
  pointer-events:none!important;
}
.gdoc-ruler-marker.dragging{
  z-index:120!important;
  filter:drop-shadow(0 1px 2px rgba(26,115,232,.35));
}
.gdoc-ruler-track{
  overflow:visible!important;
}
.gdoc-ruler-ticks,
.gdoc-page-margin{
  pointer-events:none!important;
}
body.gd-ruler-dragging,
body.gd-ruler-dragging *{
  cursor:ew-resize!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
