/* Rayor Docs — styles. Thème clair par défaut, sombre via [data-theme="dark"]. */
:root {
  --bg: #f8f9fa;
  --panel: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --accent: #1a73e8;
  --accent-soft: #e8f0fe;
  --shadow: 0 1px 3px rgba(60,64,67,.18);
  --doc-blue: #4285f4;
  --slides-amber: #f4b400;
  --sheet-green: #0f9d58;
  --hover: #f1f3f4;
}
[data-theme="dark"] {
  --bg: #131314;
  --panel: #1e1f20;
  --ink: #e8eaed;
  --muted: #9aa0a6;
  --line: #3c4043;
  --accent: #8ab4f8;
  --accent-soft: #1f3358;
  --shadow: 0 1px 3px rgba(0,0,0,.5);
  --hover: #28292a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
a { color: var(--accent); }
button { font-family: inherit; }
[hidden] { display: none !important; }

.btn {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  color: var(--ink); padding: 8px 16px; font-size: 14px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.btn:hover { background: var(--hover); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
[data-theme="dark"] .btn-primary { color: #131314; }
.btn-ghost { background: transparent; }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 10px; }
.w100 { width: 100%; margin-top: 8px; }
.icon-btn {
  border: 0; background: transparent; cursor: pointer; font-size: 17px;
  width: 38px; height: 38px; border-radius: 50%; color: var(--muted);
}
.icon-btn:hover { background: var(--hover); }
.muted { color: var(--muted); }

.doc-c    { background: var(--doc-blue); }
.slides-c { background: var(--slides-amber); }
.sheet-c  { background: var(--sheet-green); }

/* ============ Landing ============ */
.landing { display: flex; min-height: 100vh; align-items: center; justify-content: center; text-align: center; }
.land-wrap { max-width: 860px; padding: 48px 20px; }
.land-logo { display: flex; align-items: center; justify-content: center; gap: 14px; }
.land-logo img { border-radius: 14px; }
.land-logo h1 { font-size: 38px; margin: 0; font-weight: 400; }
.land-logo h1 span { color: var(--accent); font-weight: 700; }
.land-tag { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 18px 0 28px; }
.land-cards { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; justify-content: center; }
.land-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; width: 240px; text-align: left; box-shadow: var(--shadow);
}
.land-card h3 { margin: 12px 0 6px; }
.land-card p { color: var(--muted); margin: 0; line-height: 1.5; }
.lc-ico {
  width: 46px; height: 46px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 24px; color: #fff;
}
.land-foot { margin-top: 42px; color: var(--muted); font-size: 13px; }

/* ============ Barre du haut (accueil) ============ */
.topbar {
  display: flex; align-items: center; gap: 18px; padding: 8px 16px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 20px; }
.brand img { border-radius: 8px; }
.brand b { color: var(--accent); }
.search {
  flex: 1; max-width: 640px; display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: 24px; padding: 9px 18px; color: var(--muted);
}
.search input { flex: 1; border: 0; background: transparent; outline: 0; font-size: 15px; color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.avatar-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; overflow: hidden;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Accueil ============ */
.home-body { display: flex; min-height: calc(100vh - 57px); }
.sidenav { width: 232px; padding: 16px 10px; flex-shrink: 0; }
.newbtn {
  display: flex; align-items: center; gap: 10px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px;
  padding: 13px 20px; font-size: 15px; cursor: pointer; margin-bottom: 16px; color: var(--ink);
}
.newbtn:hover { background: var(--hover); }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-radius: 0 20px 20px 0;
  color: var(--ink); text-decoration: none; margin-bottom: 2px; font-size: 14px;
}
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.files { flex: 1; padding: 22px 28px; max-width: 1280px; }
.create-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.create-card {
  display: flex; align-items: center; gap: 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; cursor: pointer;
  color: var(--ink); text-align: left; min-width: 210px;
}
.create-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.create-card small { color: var(--muted); display: block; }
.cc-ico {
  width: 40px; height: 40px; border-radius: 10px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.files-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.files-head h2 { font-size: 16px; font-weight: 600; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; cursor: pointer; position: relative; outline-color: var(--accent);
}
.card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.card-prev { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 42px; opacity: .92; }
.card-meta { padding: 10px 12px; }
.card-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { color: var(--muted); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-more {
  position: absolute; top: 6px; right: 6px; border: 0; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; background: rgba(255,255,255,.85); color: #333; font-size: 16px;
}
.card-more:hover { background: #fff; }
.empty { color: var(--muted); text-align: center; padding: 60px 0; font-size: 15px; }

.ctx, .dropdown {
  position: absolute; z-index: 200; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.18); padding: 6px; min-width: 220px;
}
.dropdown { position: fixed; }
.ctx button, .dropdown button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 9px 12px; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--ink);
}
.ctx button:hover, .dropdown button:hover:not(:disabled) { background: var(--hover); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

/* ============ Éditeur : entête ============ */
.ed-top {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.ed-logo {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 21px; text-decoration: none; flex-shrink: 0; color: #fff;
}
.ed-meta { flex: 1; min-width: 0; }
.ed-titlerow { display: flex; align-items: center; gap: 6px; }
#docTitle {
  font-size: 17px; border: 1px solid transparent; border-radius: 6px; padding: 3px 8px;
  background: transparent; color: var(--ink); min-width: 80px; max-width: 420px; width: 100%;
}
#docTitle:hover { border-color: var(--line); }
#docTitle:focus { border-color: var(--accent); outline: 0; }
.ed-titlerow .icon-btn { width: 30px; height: 30px; font-size: 15px; }
.ed-titlerow .icon-btn.on { color: #f4b400; }
.save-state { color: var(--muted); font-size: 12px; white-space: nowrap; }
.save-state.ok { color: var(--sheet-green); }
.save-state.err { color: #d93025; }
.ed-menubar { display: flex; gap: 2px; margin-top: 2px; }
.ed-menubar button {
  border: 0; background: transparent; padding: 3px 10px; border-radius: 6px;
  cursor: pointer; color: var(--muted); font-size: 13px;
}
.ed-menubar button:hover { background: var(--hover); }
.ed-right { display: flex; align-items: center; gap: 10px; }
.ro-badge {
  background: var(--hover); color: var(--muted); border-radius: 14px;
  padding: 4px 12px; font-size: 12px; white-space: nowrap;
}
.presence { display: flex; gap: 4px; }
.pres {
  width: 32px; height: 32px; border-radius: 50%; position: relative;
  border: 2px solid var(--pc, var(--accent)); overflow: visible; display: block;
}
.pres img, .pres i {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: flex;
  align-items: center; justify-content: center; font-style: normal; background: var(--pc); color: #fff; font-size: 13px;
}
.pres-edit {
  position: absolute; bottom: -4px; right: -4px; background: var(--pc); color: #fff;
  border-radius: 50%; width: 15px; height: 15px; font-size: 9px; display: flex;
  align-items: center; justify-content: center; font-weight: 400;
}

/* ============ Barre d'outils ============ */
.toolbar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 14px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 57px; z-index: 55;
}
.toolbar button {
  border: 0; background: transparent; min-width: 32px; height: 30px; border-radius: 6px;
  cursor: pointer; font-size: 14px; color: var(--ink); padding: 0 7px;
}
.toolbar button:hover { background: var(--hover); }
.toolbar button.act { background: var(--accent-soft); color: var(--accent); }
.toolbar select {
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  color: var(--ink); height: 30px; padding: 0 6px; font-size: 13px;
}
.tb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.tb-color {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 30px; border-radius: 6px; cursor: pointer; font-size: 14px;
}
.tb-color:hover { background: var(--hover); }
.tb-color input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.readonly .toolbar { opacity: .55; pointer-events: none; }
body.readonly.type-sheet .toolbar { opacity: 1; pointer-events: auto; } /* barre de formule lisible */
body.readonly #fxInput { pointer-events: auto; }

/* ============ Éditeur de texte ============ */
.doc-stage { padding: 28px 12px 80px; display: flex; justify-content: center; }
.doc-page {
  background: #fff; color: #202124; width: 100%; max-width: 850px; min-height: 1000px;
  box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 3px;
  padding: 84px 90px; outline: 0; line-height: 1.65; font-family: Georgia, "Times New Roman", serif; font-size: 15.5px;
}
[data-theme="dark"] .doc-page { background: #1e1f20; color: #e8eaed; }
.doc-page h1 { font-size: 30px; margin: 22px 0 10px; }
.doc-page h2 { font-size: 23px; margin: 18px 0 8px; }
.doc-page h3 { font-size: 18px; margin: 14px 0 6px; }
.doc-page p { margin: 0 0 10px; }
.doc-page img { max-width: 100%; }
.doc-page a { color: var(--doc-blue); }
.doc-page blockquote { border-left: 3px solid var(--line); margin: 10px 0; padding: 2px 14px; color: var(--muted); }
.doc-page pre { background: var(--hover); border-radius: 8px; padding: 12px; overflow: auto; font-size: 13px; }
.doc-foot {
  position: fixed; bottom: 0; left: 0; right: 0; padding: 6px 16px;
  background: var(--panel); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
}

/* ============ Présentations ============ */
.slides-stage { display: flex; height: calc(100vh - 102px); }
.filmstrip {
  width: 186px; overflow-y: auto; padding: 14px 10px; border-right: 1px solid var(--line);
  background: var(--panel); flex-shrink: 0;
}
.thumb { margin-bottom: 12px; cursor: pointer; display: flex; gap: 6px; align-items: flex-start; }
.th-num { color: var(--muted); font-size: 11px; width: 14px; padding-top: 2px; }
.th-box {
  width: 148px; height: 83px; border: 2px solid var(--line); border-radius: 4px;
  overflow: hidden; position: relative; background: #fff;
}
.thumb.active .th-box { border-color: var(--accent); }
.canvas-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 26px; overflow: auto; }
.slide-canvas {
  width: min(92%, 920px); aspect-ratio: 16/9; position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,.22); border-radius: 4px; overflow: hidden; background: #fff;
}
.slide-inner { position: absolute; inset: 0; }
.sl-el { position: absolute; user-select: none; }
.slide-canvas .sl-el { cursor: move; }
.sl-text { white-space: pre-wrap; overflow: hidden; line-height: 1.25; padding: 2px; }
.sl-el img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.sl-el.selected { outline: 2px solid var(--accent); }
.sl-el.editing { cursor: text; user-select: text; outline: 2px dashed var(--accent); }
.sl-handle {
  position: absolute; right: -6px; bottom: -6px; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%; cursor: nwse-resize; display: none;
}
.sl-el.selected .sl-handle { display: block; }
.th-box .sl-handle { display: none; }
.present {
  position: fixed; inset: 0; background: #000; z-index: 500;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.present-slide { position: relative; overflow: hidden; }
.present-nav {
  position: fixed; bottom: 14px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.55); font-size: 13px;
}

/* ============ Tableur ============ */
.cellref {
  min-width: 52px; text-align: center; background: var(--hover); border-radius: 6px;
  padding: 6px 8px; font-weight: 600; font-size: 13px;
}
.fx { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--panel); color: var(--ink); min-width: 160px; }
.fx:focus { border-color: var(--accent); outline: 0; }
.sheet-stage { display: flex; flex-direction: column; height: calc(100vh - 102px); }
.sheet-scroll { flex: 1; overflow: auto; background: var(--panel); }
table.sheet { border-collapse: collapse; table-layout: fixed; }
.sheet th, .sheet td {
  border: 1px solid var(--line); font-weight: 400; font-size: 13px;
  padding: 0 6px; height: 24px; overflow: hidden; white-space: nowrap;
}
.sheet thead th {
  background: var(--bg); color: var(--muted); text-align: center; font-size: 11px;
  position: sticky; top: 0; z-index: 3; width: 96px; min-width: 96px;
}
.sheet tbody th {
  background: var(--bg); color: var(--muted); text-align: center; font-size: 11px;
  position: sticky; left: 0; z-index: 2; width: 44px; min-width: 44px;
}
.sheet .rc-corner { position: sticky; left: 0; top: 0; z-index: 4; width: 44px; min-width: 44px; }
.sheet td { background: var(--panel); color: var(--ink); cursor: cell; }
.sheet td.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.sheet td.s-b { font-weight: 700; }
.sheet td.s-err { color: #d93025; font-weight: 600; }
.sheet td.editing { padding: 0; }
.cell-input {
  width: 100%; height: 100%; border: 0; outline: 2px solid var(--accent); outline-offset: -2px;
  padding: 0 6px; font-size: 13px; font-family: inherit; background: var(--panel); color: var(--ink);
}
.sheet-tabs {
  display: flex; gap: 2px; padding: 5px 10px; background: var(--panel);
  border-top: 1px solid var(--line); overflow-x: auto;
}
.stab, .stab-add {
  border: 0; background: transparent; padding: 6px 16px; border-radius: 8px 8px 0 0;
  cursor: pointer; font-size: 13px; color: var(--muted); white-space: nowrap;
}
.stab.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.stab:hover, .stab-add:hover { background: var(--hover); }

/* ============ Modales ============ */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-box {
  background: var(--panel); border-radius: 14px; padding: 22px; width: 100%;
  max-width: 480px; max-height: 86vh; overflow-y: auto; position: relative; box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.modal-box h3 { margin: 0 36px 16px 0; font-size: 17px; }
.modal-x {
  position: absolute; top: 12px; right: 12px; border: 0; background: transparent;
  font-size: 16px; cursor: pointer; color: var(--muted); width: 32px; height: 32px; border-radius: 50%;
}
.modal-x:hover { background: var(--hover); }
.me-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.me-head small { display: block; color: var(--muted); }
.me-avatar { width: 52px; height: 52px; border-radius: 50%; }

.share-add { display: flex; gap: 8px; margin-bottom: 14px; }
.share-add input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--bg); color: var(--ink); }
.share-add select, .sl-row select, .sp-sel {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--panel); color: var(--ink); font-size: 13px;
}
.share-person { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.share-person:last-child { border-bottom: 0; }
.sp-av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-weight: 700;
}
.sp-av img { width: 100%; height: 100%; object-fit: cover; }
.sp-meta { flex: 1; min-width: 0; }
.sp-meta small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; }
.sp-role { color: var(--muted); font-size: 12px; }
.share-link { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-link small { color: var(--muted); }
.sl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sl-url { display: flex; gap: 8px; margin-bottom: 8px; }
.sl-url input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; background: var(--bg); color: var(--ink); }

.hist-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hist-row:last-child { border-bottom: 0; }
.hist-row small { display: block; color: var(--muted); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #323232; color: #fff; border-radius: 10px; padding: 11px 20px;
  font-size: 14px; z-index: 600; box-shadow: 0 4px 16px rgba(0,0,0,.3); max-width: 90vw;
}

/* ============ Collaboration temps réel ============ */
/* Présence cliquable (mode suivre) */
.pres { cursor: pointer; transition: transform .1s ease; }
.pres:hover { transform: scale(1.08); }
.pres.following { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--pc, var(--accent)); }

/* Bannière « Vous suivez X » */
.follow-banner {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--pc, var(--accent)); color: #fff; border-radius: 22px;
  padding: 7px 7px 7px 16px; display: flex; align-items: center; gap: 10px;
  z-index: 600; box-shadow: 0 6px 20px rgba(0,0,0,.32); font-size: 13px; font-weight: 500;
}
.follow-banner .fb-name { font-weight: 700; }
.follow-banner button {
  border: 0; background: rgba(255,255,255,.25); color: #fff; border-radius: 16px;
  padding: 5px 13px; cursor: pointer; font-size: 12px; font-weight: 600;
}
.follow-banner button:hover { background: rgba(255,255,255,.4); }

/* Curseurs distants — éditeur de texte */
.rc-cursors { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 5; }
.rc-caret { position: absolute; width: 2px; z-index: 6; animation: rc-blink 1.1s step-end infinite; }
.rc-caret .rc-label {
  position: absolute; top: -15px; left: -1px; color: #fff; font-size: 10px; line-height: 1;
  padding: 2px 5px; border-radius: 4px 4px 4px 0; white-space: nowrap;
  font-family: "Segoe UI", Roboto, Arial, sans-serif; font-weight: 600;
}
.rc-sel { position: absolute; opacity: .2; border-radius: 2px; z-index: 5; }
@keyframes rc-blink { 50% { opacity: .35; } }

/* Cellules distantes — tableur */
.rc-cells { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.rc-cell { position: absolute; border: 2px solid var(--pc); box-sizing: border-box; }
.rc-celllab {
  position: absolute; top: -15px; left: -2px; color: #fff; font-size: 10px; line-height: 1;
  padding: 2px 5px; border-radius: 4px 4px 4px 0; white-space: nowrap; font-weight: 600;
}

/* Présentations — élément sélectionné par autrui + pastilles sur le film */
.rc-elname {
  position: absolute; top: -16px; left: -2px; color: #fff; font-size: 10px; line-height: 1;
  padding: 2px 5px; border-radius: 4px 4px 4px 0; white-space: nowrap; font-weight: 600; pointer-events: none;
}
.rc-thumbpres { display: flex; gap: 3px; margin-top: 3px; }
.rc-thumbpres i { width: 9px; height: 9px; border-radius: 50%; display: block; }

/* ============ Impression ============ */
@media print {
  .ed-top, .toolbar, .doc-foot, .filmstrip, .sheet-tabs, .modal, .dropdown, .toast,
  .rc-cursors, .rc-cells, .follow-banner { display: none !important; }
  body { background: #fff; }
  .doc-stage { padding: 0; }
  .doc-page { box-shadow: none; border: 0; min-height: 0; padding: 0; max-width: none; }
  .slides-stage { height: auto; display: block; }
  .canvas-wrap { padding: 0; display: block; }
  .slide-canvas { width: 100%; box-shadow: none; page-break-after: always; }
  .sheet-stage { height: auto; }
  .sheet-scroll { overflow: visible; }
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .sidenav { width: 64px; }
  .nav-item { justify-content: center; padding: 10px; border-radius: 12px; }
  .nav-item span + * { display: none; }
  .nav-item { font-size: 0; }
  .nav-item span { font-size: 17px; }
  .newbtn { padding: 12px; justify-content: center; font-size: 0; }
  .files { padding: 14px; }
  .doc-page { padding: 40px 26px; }
  .filmstrip { width: 120px; }
  .th-box { width: 86px; height: 48px; }
  .ed-menubar { display: none; }
  .search { display: none; }
  .brand span { display: none; }
}
