:root {
  color-scheme: light;
  --navy: #172554;
  --navy-2: #1e3a8a;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --cyan: #0891b2;
  --ink: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --success: #027a48;
  --success-bg: #ecfdf3;
  --warning: #b54708;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, .18);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #eef2f7; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #f4f7fb 0, #eef2f7 100%); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 2px; }
.hidden { display: none !important; }
.mobile-only { display: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .75rem 1rem; background: #fff; color: var(--navy); border-radius: 10px; box-shadow: var(--shadow-lg); }
.skip-link:focus { top: 1rem; }

.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; padding: .75rem clamp(1rem, 3vw, 2.5rem); color: #fff; background: rgba(23, 37, 84, .96); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px 14px 14px 5px; background: linear-gradient(145deg, #60a5fa, #22d3ee); box-shadow: inset 0 1px rgba(255,255,255,.55), 0 8px 24px rgba(34, 211, 238, .2); transform: rotate(-4deg); }
.brand-mark span { transform: rotate(4deg); font-weight: 900; font-size: 1.45rem; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong { font-size: 1.15rem; line-height: 1.15; letter-spacing: -.02em; }
.brand-copy small { color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; min-width: 0; }
.icon-button, .avatar-button { border: 0; cursor: pointer; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.09); color: inherit; transition: .18s ease; }
.icon-button:hover, .avatar-button:hover { background: rgba(255,255,255,.17); transform: translateY(-1px); }
.avatar-button { border-radius: 50%; background: linear-gradient(145deg, #38bdf8, #2563eb); color: white; font-weight: 800; }
.command-button { height: 40px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 0 .55rem 0 .85rem; display: inline-flex; align-items: center; gap: 1rem; background: rgba(255,255,255,.07); color: #e2e8f0; cursor: pointer; }
kbd { font-family: inherit; font-size: .72rem; background: rgba(255,255,255,.13); padding: .23rem .4rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 -1px rgba(0,0,0,.12); }
.badge { display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px; padding: .28rem .65rem; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-offline { color: #fee2e2; background: rgba(190, 18, 60, .25); }
.badge-online { color: #d1fae5; background: rgba(5, 150, 105, .26); }
.badge-plan { color: #dbeafe; background: rgba(37, 99, 235, .28); border: 1px solid rgba(147,197,253,.2); }
.badge-owner { color: #fef3c7; background: linear-gradient(90deg, rgba(180,83,9,.45), rgba(234,179,8,.28)); border: 1px solid rgba(253,230,138,.28); }

.button { border: 0; border-radius: 12px; min-height: 42px; padding: .72rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 750; cursor: pointer; transition: .18s ease; text-decoration: none; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 8px 20px rgba(37,99,235,.23); }
.button-secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.topbar .button-secondary { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); box-shadow: none; }
.button-ghost { color: var(--navy-2); background: transparent; }
.button-danger { color: #fff; background: var(--danger); }
.text-button { border: 0; padding: .3rem; background: transparent; color: var(--blue); font-weight: 750; cursor: pointer; }

.app-shell { width: min(1540px, 100%); margin: 0 auto; padding: clamp(1rem, 2.2vw, 2rem); }
.hero { min-height: 300px; padding: clamp(1.4rem, 3vw, 3rem); border-radius: 26px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; gap: 2rem; color: #fff; background: radial-gradient(circle at 84% 18%, rgba(34,211,238,.22), transparent 25%), radial-gradient(circle at 58% 90%, rgba(96,165,250,.16), transparent 32%), linear-gradient(135deg, #172554 0%, #1e3a8a 64%, #164e63 100%); box-shadow: 0 24px 60px rgba(23, 37, 84, .16); }
.eyebrow { margin: 0 0 .45rem; font-size: .72rem; letter-spacing: .12em; font-weight: 850; color: #5b77a6; }
.hero .eyebrow { color: #93c5fd; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(2rem, 4vw, 4rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: #67e8f9; }
.hero-copy > p:not(.eyebrow) { max-width: 690px; margin: 1.1rem 0 1.4rem; color: #dbeafe; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero .button-secondary { border-color: rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.1); box-shadow: none; }
.hero .button-ghost { color: #bae6fd; }
.hero-visual { position: relative; min-height: 220px; display: grid; place-items: center; }
.visual-window { width: min(390px, 90%); aspect-ratio: 1.55; padding: .8rem; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(255,255,255,.1); box-shadow: 0 32px 70px rgba(0,0,0,.25); transform: perspective(900px) rotateY(-8deg) rotateX(4deg); backdrop-filter: blur(12px); }
.visual-bar { display: flex; gap: .35rem; height: 18%; align-items: center; }
.visual-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.visual-grid { height: 78%; display: grid; grid-template-columns: 25% 1fr; gap: .65rem; }
.visual-nav { border-radius: 10px; background: rgba(255,255,255,.09); }
.visual-content { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.visual-content span { border-radius: 10px; background: linear-gradient(145deg, rgba(255,255,255,.23), rgba(255,255,255,.07)); }
.float-chip { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; font-weight: 900; box-shadow: 0 15px 35px rgba(0,0,0,.24); animation: float 5s ease-in-out infinite; }
.chip-word { background: #185abd; left: 3%; top: 18%; }
.chip-excel { background: #107c41; right: 2%; top: 8%; animation-delay: -1s; }
.chip-powerpoint { background: #c43e1c; right: 7%; bottom: 2%; animation-delay: -2.1s; }
.chip-cloud { background: #0284c7; left: 9%; bottom: 4%; animation-delay: -.7s; }
@keyframes float { 50% { transform: translateY(-8px) rotate(2deg); } }

.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin: 1.2rem 0; }
.app-card { min-height: 92px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; gap: .85rem; padding: 1rem; text-align: left; background: #fff; cursor: pointer; box-shadow: var(--shadow-sm); transition: .18s ease; }
.app-card:hover { transform: translateY(-3px); border-color: #cbd5e1; box-shadow: 0 14px 30px rgba(15,23,42,.09); }
.app-card .app-icon { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; font-size: 1.15rem; font-weight: 900; }
.app-card.word .app-icon { background: #185abd; }.app-card.excel .app-icon { background: #107c41; }.app-card.powerpoint .app-icon { background: #c43e1c; }.app-card.folder .app-icon { background: #d97706; }
.app-card > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.app-card strong { font-size: .95rem; }.app-card small { margin-top: .2rem; color: var(--muted); }

.workspace { min-height: 650px; display: grid; grid-template-columns: 240px minmax(0,1fr); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 50px rgba(15,23,42,.08); overflow: visible; }
.sidebar { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; background: linear-gradient(180deg, #f8fafc, #f1f5f9); border-right: 1px solid var(--line); border-radius: 24px 0 0 24px; }
.sidebar nav { display: flex; flex-direction: column; gap: .3rem; }
.nav-item { width: 100%; border: 0; border-radius: 11px; padding: .72rem .8rem; display: flex; align-items: center; gap: .65rem; background: transparent; color: #475467; font-weight: 680; text-align: left; cursor: pointer; }
.nav-item span { width: 22px; text-align: center; color: #64748b; }
.nav-item:hover { background: #eaf0f7; color: var(--navy); }
.nav-item.active { color: #fff; background: linear-gradient(135deg, #1e3a8a, #2563eb); box-shadow: 0 8px 18px rgba(37,99,235,.2); }
.nav-item.active span { color: #fff; }
.sidebar-divider { height: 1px; background: var(--line); margin: .55rem .2rem; }
.sidebar-note { margin-top: .75rem; padding: .85rem; border: 1px solid #dbe4ef; border-radius: 12px; background: rgba(255,255,255,.7); display: flex; flex-direction: column; gap: .2rem; }
.sidebar-note strong { font-size: .78rem; }.sidebar-note span { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.owner-note { margin-top: auto; border-color: #fde68a; background: #fffbeb; }
.owner-note strong { color: #92400e; }
.content-panel { min-width: 0; padding: clamp(1rem, 2.2vw, 1.75rem); }
.content-toolbar { min-height: 70px; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.title-stack h2 { margin: 0; font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -.035em; }.title-stack p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.breadcrumbs { min-height: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; color: var(--muted); font-size: .78rem; }
.breadcrumbs button { border: 0; padding: 0; background: transparent; color: var(--blue); cursor: pointer; }
.toolbar-actions { display: flex; align-items: center; gap: .5rem; }
.content-panel .icon-button { background: #f2f4f7; color: var(--ink); }
.search-box { width: min(340px, 38vw); height: 42px; display: flex; align-items: center; gap: .55rem; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search-box:focus-within { border-color: #93c5fd; box-shadow: 0 0 0 3px #dbeafe; }
.search-box span { color: #64748b; }.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }

.notice { margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid #bfdbfe; border-radius: 12px; color: #1e40af; background: #eff6ff; }
.notice.success { color: #067647; background: #ecfdf3; border-color: #abefc6; }.notice.error { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.loading { min-height: 80px; display: flex; align-items: center; justify-content: center; gap: .7rem; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 3px solid #dbeafe; border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.stat-card { min-height: 92px; border: 1px solid var(--line); border-radius: 15px; padding: 1rem; display: flex; align-items: center; gap: .8rem; background: linear-gradient(145deg, #fff, #f8fafc); }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); font-weight: 900; }
.stat-card div { display: flex; flex-direction: column; }.stat-card strong { font-size: 1.35rem; }.stat-card small { color: var(--muted); }
.dashboard-grid { margin-top: .9rem; display: grid; grid-template-columns: minmax(0,1.6fr) minmax(270px,.7fr); gap: .9rem; }
.panel-card { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; background: #fff; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }.panel-heading h3 { margin: 0; font-size: 1.05rem; }
.activity-list { margin-top: .65rem; display: flex; flex-direction: column; }
.activity-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .72rem .15rem; border-top: 1px solid #f0f2f5; }
.activity-item:first-child { border-top: 0; }.activity-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; font-weight: 850; }.activity-copy { min-width: 0; display: flex; flex-direction: column; }.activity-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }.activity-copy small,.activity-time { color: var(--muted); font-size: .75rem; }.activity-time { white-space: nowrap; }
.resume-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .8rem; }.resume-actions button { border: 1px solid var(--line); border-radius: 13px; padding: .75rem; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: .7rem; text-align: left; background: #f8fafc; cursor: pointer; }.resume-actions button:hover { border-color: #bfdbfe; background: #eff6ff; }.resume-actions span { grid-row: 1/3; align-self: center; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: #dbeafe; }.resume-actions b { font-size: .86rem; }.resume-actions small { color: var(--muted); }
.file-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; overflow: visible; }
.file-row { position: relative; min-height: 68px; display: flex; align-items: center; border-top: 1px solid #eef0f3; background: #fff; }
.file-row:first-child { border-top: 0; border-radius: 15px 15px 0 0; }.file-row:last-child { border-radius: 0 0 15px 15px; }.file-row:only-child { border-radius: 15px; }.file-row:hover { background: #f8fafc; }
.file-main { min-width: 0; flex: 1; align-self: stretch; border: 0; display: flex; align-items: center; gap: .8rem; padding: .65rem .85rem; text-align: left; background: transparent; cursor: pointer; }
.file-type-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #fff !important; background: #64748b; font-size: .78rem; font-weight: 900; }
.file-meta { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }.file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }.file-details { color: var(--muted); }
.file-actions { position: relative; padding-right: .55rem; display: flex; align-items: center; gap: .2rem; }.file-actions .icon-button { width: 36px; height: 36px; background: transparent; }.favorite-button.active { color: #d97706; }
.menu { position: absolute; top: 42px; right: .5rem; z-index: 20; min-width: 190px; padding: .35rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); }
.menu button { width: 100%; border: 0; border-radius: 8px; padding: .6rem .7rem; text-align: left; background: transparent; cursor: pointer; }.menu button:hover { background: #f2f4f7; }.danger-text { color: var(--danger) !important; }
.empty-state { min-height: 280px; border: 1px dashed #cbd5e1; border-radius: 16px; display: grid; place-items: center; align-content: center; text-align: center; padding: 2rem; color: var(--muted); }.empty-state h3 { color: var(--ink); margin: .6rem 0 .2rem; }.empty-state p { margin: 0; }.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; color: var(--blue); background: #eff6ff; font-size: 1.6rem; }
.workspace-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }.workspace-card { min-height: 180px; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: .65rem; background: linear-gradient(150deg,#fff,#f8fafc); }.workspace-card-header { display: flex; justify-content: space-between; gap: .8rem; }.workspace-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#2563eb,#0891b2); }.workspace-card h3 { margin: 0; font-size: 1rem; }.workspace-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }.workspace-card small { margin-top: auto; color: var(--muted); }.workspace-card-actions { display: flex; gap: .45rem; }.workspace-card-actions button { border: 0; border-radius: 8px; padding: .45rem .6rem; background: #eef2f7; cursor: pointer; font-size: .78rem; }

.dialog, .command-dialog { width: min(620px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: var(--shadow-lg); }
.dialog::backdrop, .command-dialog::backdrop { background: rgba(15,23,42,.58); backdrop-filter: blur(3px); }.dialog form { padding: 1.2rem; }.dialog-small { width: min(470px, calc(100vw - 2rem)); }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .8rem; }.dialog-header h2 { margin: 0; font-size: 1.35rem; }.dialog-header .icon-button { color: var(--ink); background: #f2f4f7; }
.dialog-copy { color: var(--muted); line-height: 1.55; }.field { display: flex; flex-direction: column; gap: .4rem; margin: .85rem 0; }.field > span { font-size: .82rem; font-weight: 750; }.field input,.field select,.field textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; padding: .72rem .8rem; color: var(--ink); background: #fff; resize: vertical; }.copy-row { display: flex; gap: .5rem; }.copy-row input { min-width: 0; }.check-row { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); font-size: .86rem; }.check-row input { margin-top: .15rem; }.dialog-actions { margin-top: 1.1rem; display: flex; justify-content: flex-end; gap: .55rem; }.setup-help { margin-top: 1rem; color: var(--muted); font-size: .86rem; }.setup-help li { margin: .4rem 0; }.account-card { display: flex; align-items: center; gap: .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; }.account-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#0ea5e9,#2563eb); font-weight: 850; }.account-card div:last-child { display: flex; flex-direction: column; }.account-card span { color: var(--muted); font-size: .82rem; }.entitlement-card { margin-top: .8rem; display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border-radius: 14px; background: #f8fafc; border: 1px solid var(--line); }.entitlement-card > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #92400e; background: #fef3c7; }.entitlement-card p { margin: .25rem 0 0; color: var(--muted); line-height: 1.45; font-size: .82rem; }.owner-protection { padding: .75rem; border-radius: 11px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; font-size: .82rem; line-height: 1.45; }
.workspace-choices { display: flex; flex-direction: column; gap: .5rem; }.workspace-choice { border: 1px solid var(--line); border-radius: 11px; padding: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: #fff; cursor: pointer; }.workspace-choice:hover { border-color: #93c5fd; background: #eff6ff; }
.command-dialog { width: min(680px, calc(100vw - 2rem)); top: -18vh; }.command-dialog form { padding: .6rem; }.command-search { height: 52px; display: flex; align-items: center; gap: .65rem; padding: 0 .75rem; border-bottom: 1px solid var(--line); }.command-search input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 1rem; }.command-search kbd { color: var(--muted); background: #f2f4f7; border-color: #e4e7ec; }.command-list { max-height: 420px; overflow: auto; padding: .5rem; }.command-item { width: 100%; border: 0; border-radius: 10px; padding: .72rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: transparent; text-align: left; cursor: pointer; }.command-item:hover,.command-item.active { background: #eff6ff; }.command-item span { display: flex; align-items: center; gap: .7rem; }.command-item i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: #dbeafe; font-style: normal; }.command-item small { color: var(--muted); }

@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .command-button span { display: none; }.command-button { gap: 0; }
  .connectionBadge { max-width: 180px; overflow: hidden; }
}
@media (max-width: 820px) {
  .mobile-only { display: inline-grid; }
  .topbar { min-height: 64px; padding: .55rem .75rem; }.brand-copy small { display: none; }.brand-mark { width: 38px; height: 38px; }.top-actions { gap: .3rem; }.top-actions .badge-online,.top-actions .badge-offline { display: none; }.command-button { display: none; }
  .app-shell { padding: .75rem; }.hero { grid-template-columns: 1fr; min-height: auto; border-radius: 20px; }.hero-visual { display: none; }.hero h1 { font-size: clamp(2rem,10vw,3.3rem); }
  .workspace { grid-template-columns: 1fr; border-radius: 20px; position: relative; }.sidebar { position: fixed; z-index: 100; inset: 64px auto 0 0; width: min(285px, 86vw); border-radius: 0; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(15,23,42,.2); }.sidebar.open { transform: translateX(0); }.sidebar-backdrop { position: fixed; z-index: 90; inset: 64px 0 0; background: rgba(15,23,42,.45); }
  .content-panel { padding: 1rem; }.content-toolbar { flex-direction: column; }.toolbar-actions,.search-box { width: 100%; }.dashboard-grid { grid-template-columns: 1fr; }.workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-copy strong { font-size: 1rem; }.top-actions .badge-plan { display: none; }.top-actions .button { display: none; }
  .hero { padding: 1.25rem; }.hero h1 { line-height: 1.03; }.hero-actions .button { width: 100%; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }.app-card { min-height: 110px; padding: .8rem; flex-direction: column; align-items: flex-start; }.app-card .app-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }.stat-card { padding: .75rem; }.stat-icon { display: none; }
  .activity-item { grid-template-columns: 38px minmax(0,1fr); }.activity-time { grid-column: 2; }
  .file-actions .favorite-button { display: none; }.file-main { padding-left: .6rem; }.file-type-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .copy-row { flex-direction: column; }.dialog-actions { flex-wrap: wrap; }.dialog-actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }


/* v0.4.0 — synchronisation, forfaits et centre propriétaire */
.sync-status { min-height: 34px; border: 1px solid #cbd5e1; border-radius: 999px; padding: .35rem .65rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); background: #fff; cursor: pointer; font-size: .76rem; font-weight: 750; }
.sync-status.syncing { color: #1d4ed8; border-color: #93c5fd; background: #eff6ff; }
.sync-status.synced { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.sync-status.pending { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.sync-status.error { color: #b42318; border-color: #fecaca; background: #fef2f2; }
.sync-card { margin-top: .8rem; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: #fff; }
.sync-card > div { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }.sync-card span { color: var(--muted); font-size: .8rem; }
.account-limit { margin: .75rem 0 0; padding: .65rem .75rem; border-radius: 10px; color: var(--muted); background: #f8fafc; font-size: .82rem; }
.owner-console-hero { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem; border: 1px solid #fde68a; border-radius: 16px; background: linear-gradient(135deg,#fffbeb,#fff); }
.owner-console-hero > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg,#d97706,#92400e); }.owner-console-hero p { margin: .25rem 0 0; color: var(--muted); font-size: .82rem; }
.owner-console-grid { margin-top: .85rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }.owner-console-grid article { min-height: 86px; padding: .8rem; border: 1px solid var(--line); border-radius: 13px; display: flex; flex-direction: column; justify-content: space-between; background: #f8fafc; }.owner-console-grid small { color: var(--muted); }.owner-console-grid strong { overflow-wrap: anywhere; font-size: .86rem; }
.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }.plan-card { min-height: 260px; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; background: #fff; }.plan-card > span { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .08em; }.plan-card h3 { margin: .6rem 0; font-size: 1.5rem; }.plan-card h3 small { font-size: .75rem; color: var(--muted); }.plan-card p { color: var(--muted); line-height: 1.5; font-size: .84rem; }.plan-card .button { margin-top: auto; }.plan-card.featured { border-color: #93c5fd; background: linear-gradient(160deg,#eff6ff,#fff); }.plan-card.owner-plan { border-color: #fcd34d; background: linear-gradient(160deg,#fffbeb,#fff); }.button-owner { color: #fff; background: linear-gradient(145deg,#d97706,#92400e); }
@media (max-width: 820px) { .owner-console-grid,.plan-grid { grid-template-columns: 1fr 1fr; }.sync-status { display: none; } }
@media (max-width: 560px) { .owner-console-grid,.plan-grid { grid-template-columns: 1fr; }.sync-card { align-items: stretch; flex-direction: column; }.sync-card .button { width: 100%; } }


/* v0.6.0 — mises à jour PWA contrôlées */
.update-settings-row { margin-top: .9rem; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #f8fafc; }
.update-settings-row span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.update-dialog form { text-align: center; }
.update-dialog .dialog-copy { text-align: left; }
.update-hero { width: 68px; height: 68px; margin: 0 auto .85rem; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#2563eb,#164e63); font-size: 2rem; box-shadow: 0 16px 34px rgba(37,99,235,.25); }
.update-dialog h2 { margin: .2rem 0 .8rem; }
.update-notes { margin: .75rem 0 1rem; padding: .9rem 1rem .9rem 2rem; border: 1px solid #dbeafe; border-radius: 12px; text-align: left; color: #334155; background: #f8fbff; }
.update-notes li + li { margin-top: .45rem; }
@media (max-width: 560px) { .update-settings-row { align-items: stretch; flex-direction: column; }.update-settings-row .button { width: 100%; } }
