/* Rozzom Cloud prototype: app-style layout (own look, not affiliated with any other brand) */
.cloud { max-width: none !important; padding: 0 !important; background: #f6f8fb; --cloud-accent:#0b6b3a; --cloud-accent-soft:#e2f3ea; --cloud-text:#1f2937; --cloud-sub:#5b6573; --cloud-line:#e1e5ea; --cloud-r:16px; color: var(--cloud-text); font-family: "Google Sans","Segoe UI",Roboto,system-ui,-apple-system,sans-serif; }
.cloud h1, .cloud h2, .cloud h3 { font-family: inherit; color: var(--cloud-text); }
.cloud-app[data-app="drive"]  { --cloud-accent:#1a73c8; --cloud-accent-soft:#e3effc; }
.cloud-app[data-app="photos"] { --cloud-accent:#c2410c; --cloud-accent-soft:#fdeadd; }
.cloud-app[data-app="docs"]   { --cloud-accent:#2563eb; --cloud-accent-soft:#e4ecfd; }
.cloud-app[data-app="sheets"] { --cloud-accent:#0b8043; --cloud-accent-soft:#dff3e7; }
.cloud-app[data-app="videos"] { --cloud-accent:#b4235a; --cloud-accent-soft:#fbe4ee; }
.cloud-app[data-app="mail"]   { --cloud-accent:#6d4aff; --cloud-accent-soft:#ece8ff; }
.cloud-app[data-app="ai"]     { --cloud-accent:#7c3aed; --cloud-accent-soft:#f0e7fe; }


.cloud-main { position: relative; overflow-x: clip; padding: 1rem 1rem 3rem; min-width: 0; }
@media (min-width: 52rem) { .cloud-main { padding: 1.4rem 2rem 3rem; } }
.cloud-top { display: flex; align-items: center; gap: .9rem; margin-bottom: .6rem; }
.cloud-appicon { width: 2.8rem; height: 2.8rem; border-radius: 14px; background: var(--cloud-accent-soft); color: var(--cloud-accent); display: grid; place-items: center; flex: none; }
.cloud-appicon svg { width: 1.6rem; height: 1.6rem; }
.cloud-top h1 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.cloud-top .tagline { margin: .1rem 0 0; font-size: .92rem; color: var(--cloud-sub); max-width: none; }
.cloud-note { font-size: .82rem; color: var(--cloud-sub); background: #fff; border: 1px solid var(--cloud-line); border-radius: 12px; padding: .5rem .8rem; margin: 0 0 1rem; max-width: none; }

/* buttons: pills */
.cloud .btn { border-radius: 999px; background: var(--cloud-accent); color: #fff; border: 1px solid var(--cloud-accent); padding: .5rem 1.1rem; font-weight: 600; box-shadow: none; text-decoration: none; cursor: pointer; font-family: inherit; font-size: .95rem; }
.cloud .btn:hover { filter: brightness(1.08); }
.cloud .btn.btn-ghost { background: #fff; color: var(--cloud-accent); border-color: var(--cloud-line); }
.cloud .btn.btn-ghost:hover { background: var(--cloud-accent-soft); filter: none; }
.cloud .btn.btn-fab { background: #fff; color: var(--cloud-text); border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.12); padding: .75rem 1.4rem; font-size: 1rem; }
.cloud .btn.btn-fab:hover { box-shadow: 0 3px 8px rgba(0,0,0,.25); background: var(--cloud-accent-soft); }
.cloud .btn:disabled { opacity: .5; cursor: not-allowed; }
.cloud :focus-visible { outline: 3px solid var(--cloud-accent); outline-offset: 2px; }

/* vault */
.vault-form { max-width: 26rem; background: #fff; border: 1px solid var(--cloud-line); border-radius: 24px; padding: 1.6rem; margin: 1.2rem 0; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.vault-form h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.vault-form label { display: block; font-weight: 600; margin: .9rem 0 .3rem; font-size: .9rem; }
.vault-form input, .rc-input, .rc-area, .rc-select { width: 100%; font: inherit; padding: .65rem .9rem; border: 1px solid #c3cad3; border-radius: 12px; background: #fff; color: var(--cloud-text); box-sizing: border-box; }
.vault-form input:focus, .rc-input:focus, .rc-area:focus, .rc-select:focus { outline: 2px solid var(--cloud-accent); outline-offset: 0; border-color: var(--cloud-accent); }
.vault-form button { margin-top: 1rem; }
.vault-msg { color: #b3261e; min-height: 1.4em; margin: .6rem 0 0; }
.vault-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin: 0 0 1rem; padding: .35rem .5rem .35rem 1rem; background: #fff; border: 1px solid var(--cloud-line); border-radius: 999px; font-size: .88rem; color: var(--cloud-sub); }

.rc-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; }
.rc-drop { border: 2px dashed #b6c0cc; border-radius: var(--cloud-r); padding: 1.6rem; text-align: center; background: #fff; margin: .8rem 0; color: var(--cloud-sub); }
.rc-drop.over { background: var(--cloud-accent-soft); border-color: var(--cloud-accent); }
.rc-empty { color: var(--cloud-sub); padding: 1rem 0; }
.rc-status { color: var(--cloud-sub); font-size: .88rem; min-height: 1.4em; }
.rc-actions { white-space: nowrap; }
.rc-actions button, .rc-link { background: none; border: 0; padding: .25rem .6rem; color: var(--cloud-accent); font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; }
.rc-actions button:hover, .rc-link:hover { background: var(--cloud-accent-soft); }
.rc-raw { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; word-break: break-all; background: #eef1f5; padding: .5rem .7rem; border-radius: 10px; margin: .4rem 0; }
.rc-check { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.cloud input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--cloud-accent); }

/* Drive: file list */
.cloud .table-wrap { background: #fff; border: 1px solid var(--cloud-line); border-radius: var(--cloud-r); overflow: auto; margin: .6rem 0; }
.cloud .spec-table { width: 100%; border-collapse: collapse; background: transparent; border: 0; }
.cloud .spec-table th { background: #fff; color: var(--cloud-sub); font-size: .8rem; font-weight: 600; text-align: left; padding: .7rem .9rem; border: 0; border-bottom: 1px solid var(--cloud-line); }
.cloud .spec-table td { padding: .65rem .9rem; border: 0; border-bottom: 1px solid #eef1f5; }
.cloud .spec-table tr:last-child td { border-bottom: 0; }
.cloud .spec-table tbody tr:hover { background: #f3f6fa; }

/* Photos */
.photo-grid { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .35rem; grid-template-columns: repeat(auto-fill, minmax(var(--photo-min, 8.5rem), 1fr)); }
.photo-grid li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #e3e8ee; }
.photo-grid img, .photo-grid video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: transform .15s; }
.photo-grid li:hover img { transform: scale(1.03); }
.photo-grid .del { position: absolute; top: .4rem; right: .4rem; background: rgba(255,255,255,.95); border: 0; border-radius: 999px; padding: .2rem .65rem; cursor: pointer; font: inherit; font-size: .8rem; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.photo-grid .play { position: absolute; left: .4rem; bottom: .4rem; background: rgba(0,0,0,.7); color: #fff; border-radius: 999px; padding: .1rem .55rem; font-size: .8rem; pointer-events: none; }
.photo-grid .tick { position: absolute; top: .4rem; left: .4rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(255,255,255,.9); border: 2px solid var(--cloud-accent); display: none; box-sizing: border-box; }
.photo-grid.selecting .tick { display: block; }
.photo-grid.selecting .del { display: none; }
.photo-grid.selecting li { cursor: pointer; }
.photo-grid li.picked { outline: 4px solid var(--cloud-accent); outline-offset: -4px; }
.photo-grid li.picked .tick { background: var(--cloud-accent); }
.photo-grid li.picked .tick::after { content: "\2713"; color: #fff; position: absolute; inset: 0; display: grid; place-items: center; font-size: .95rem; }
.nopreview { display: grid; place-items: center; text-align: center; height: 100%; padding: .5rem; font-size: .8rem; color: var(--cloud-sub); cursor: pointer; }
dialog.lightbox { border: 0; padding: 0; max-width: 96vw; background: transparent; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.85); }
dialog.lightbox img, dialog.lightbox video { max-width: 96vw; max-height: 86vh; display: block; margin: 0 auto; border-radius: 12px; background: #000; }
dialog.lightbox video[hidden], dialog.lightbox img[hidden] { display: none; }
dialog.lightbox button { display: block; margin: .6rem auto 0; }
#picker { background: #fff !important; border-radius: 24px !important; }

/* split list + editor (Docs, Sheets, Videos, Mail) */
.rc-split { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .rc-split { grid-template-columns: 16rem 1fr; } }
.rc-split > * { min-width: 0; }
.rc-list { list-style: none; padding: .4rem; margin: 0; border: 1px solid var(--cloud-line); border-radius: var(--cloud-r); background: #fff; max-height: 30rem; overflow: auto; }
.rc-list li button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 12px; padding: .6rem .8rem; font: inherit; cursor: pointer; color: var(--cloud-text); }
.rc-list li button:hover { background: #f3f6fa; }
.rc-list li button[aria-current="true"] { background: var(--cloud-accent-soft); color: var(--cloud-accent); font-weight: 700; }
.rc-list small { display: block; color: var(--cloud-sub); font-weight: 400; }
.rc-area { min-height: 20rem; resize: vertical; line-height: 1.6; background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.18); border: 0; padding: 1.4rem 1.6rem; }

/* Sheets */
.sheet-scroll { overflow: auto; max-height: 30rem; border: 1px solid var(--cloud-line); border-radius: 12px; background: #fff; }
.sheet { border-collapse: collapse; font-size: .92rem; }
.sheet th { background: #f1f3f4; color: var(--cloud-sub); font-size: .78rem; font-weight: 500; padding: .3rem .5rem; border: 1px solid #dadce0; position: sticky; top: 0; }
.sheet td { border: 1px solid #e3e5e8; padding: 0; }
.sheet input { width: 6.5rem; border: 0; padding: .35rem .45rem; font: inherit; background: #fff; box-sizing: border-box; border-radius: 0; }
.sheet input:focus { outline: 2px solid var(--cloud-accent); outline-offset: -2px; }

/* Videos */
.rc-video { width: 100%; max-height: 28rem; background: #000; border-radius: var(--cloud-r); }
.cloud canvas { max-width: 100%; border-radius: var(--cloud-r); background: #000; }

/* Mail */
.rc-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin: 0 0 .8rem; }
.rc-tabs button { padding: .45rem 1rem; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 500; cursor: pointer; color: var(--cloud-text); }
.rc-tabs button:hover { background: #eaeef3; }
.rc-tabs button[aria-pressed="true"] { background: var(--cloud-accent-soft); color: var(--cloud-accent); font-weight: 700; }
.rc-mailbody { white-space: pre-wrap; background: #fff; border: 1px solid var(--cloud-line); border-radius: 12px; padding: 1rem; }

/* AI chat */
.rc-chat { border: 1px solid var(--cloud-line); border-radius: 20px; background: #fff; padding: 1rem; min-height: 12rem; max-height: 28rem; overflow: auto; }
.rc-msg { margin: 0 0 .8rem; padding: .7rem 1rem; border-radius: 18px; max-width: 46rem; line-height: 1.5; }
.rc-msg.you { background: var(--cloud-accent-soft); margin-left: auto; border-bottom-right-radius: 6px; width: fit-content; }
.rc-msg.bot { background: #f1f3f4; border-bottom-left-radius: 6px; }
.rc-msg small { display: block; color: var(--cloud-sub); }
.rc-ask { margin-top: .8rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.rc-ask .rc-input { flex: 1; min-width: 12rem; border-radius: 999px; padding: .75rem 1.2rem; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); border-color: transparent; }
.rc-model { border: 1px solid var(--cloud-line); border-radius: 20px; background: #fff; padding: 1rem 1.3rem; margin: 1.2rem 0; }
.rc-model h2 { font-size: 1.1rem; }
.rc-mode { border: 1px solid var(--cloud-line); border-radius: 16px; padding: .6rem 1rem; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.rc-mode legend { font-weight: 700; padding: 0 .4rem; }
.rc-mode label { display: inline-flex; gap: .4rem; align-items: center; }

#rc-toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 2rem); background: #202124; color: #fff; padding: .7rem 1.2rem; border-radius: 8px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50; }
#rc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* hub launcher */
.cloud-hub { max-width: var(--wrap); margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.launcher { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.launcher a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.2rem .8rem; background: #fff; border: 1px solid var(--cloud-line); border-radius: 20px; color: var(--cloud-text); text-decoration: none; height: 100%; box-sizing: border-box; transition: box-shadow .15s, transform .15s; }
.launcher a:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-2px); }
.launcher .tile { width: 3.2rem; height: 3.2rem; border-radius: 16px; display: grid; place-items: center; background: var(--tc-soft); color: var(--tc); }
.launcher .tile svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.launcher strong { font-size: 1.05rem; }
.launcher small { color: var(--cloud-sub); font-size: .82rem; line-height: 1.35; }

.cloud[data-size="large"] { font-size: 1.125rem; }
.cloud-app[data-app="account"] { --cloud-accent:#0b6b3a; --cloud-accent-soft:#e2f3ea; }
.acc-card { background: #fff; border: 1px solid var(--cloud-line); border-radius: 20px; padding: 1.2rem 1.4rem; margin: 0 0 1rem; max-width: 36rem; }
.acc-card h2 { font-size: 1.1rem; margin: 1.2rem 0 .3rem; }
.acc-card h2:first-child { margin-top: 0; }
.acc-card label { display: block; font-weight: 600; margin: .8rem 0 .3rem; font-size: .9rem; }

/* Notes search bar */
.nsearch { position: relative; display: flex; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.nsearch[hidden] { display: none; }
.nsearch .rc-input { flex: 1 1 auto; min-width: 0; border-radius: 999px; padding: .55rem 1rem; background: #fff; }
.nsearch-out { position: absolute; z-index: 20; top: calc(100% + .4rem); left: 0; right: 0; max-height: 60vh; overflow: auto; background: #fff; border: 1px solid var(--cloud-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: .6rem .9rem; }
.nsearch-out[hidden] { display: none; }
.nsearch-out ul { margin: 0; padding: 0; list-style: none; }
.nsearch-out li { padding: .5rem 0; border-top: 1px solid var(--cloud-line); }
.nsearch-out li:first-child { border-top: 0; }
.nsearch-out li small { display: block; color: var(--cloud-sub); margin-top: .2rem; }
.nsearch-out li small a { margin-left: .5rem; }
.nsearch-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }

/* the hidden attribute must always win over button/flex display rules */
.cloud [hidden] { display: none !important; }

/* lists from Ask, and the instructions editor */
.rc-asklist { margin: .4rem 0 0; padding: 0; list-style: none; }
.rc-asklist li { padding: .35rem 0; border-top: 1px solid var(--cloud-line); }
.rc-asklist li:first-child { border-top: 0; }
.rc-asklist li small { display: block; color: var(--cloud-sub); }
.nsearch-ask ul { margin: .4rem 0 0; padding: 0; list-style: none; }
.rc-skill { border: 1px solid var(--cloud-line); border-radius: 12px; padding: .7rem; margin: 0 0 .7rem; background: #fff; }
.rc-skillhead { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.rc-skillhead .rc-input { flex: 1 1 12rem; min-width: 0; }
.rc-skill .rc-area { width: 100%; box-sizing: border-box; }

/* file cards in answers */
.rc-cards { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.rc-card { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border: 1px solid var(--cloud-line); border-radius: .6rem; background: rgba(255,255,255,.6); }
.rc-badge { flex: none; min-width: 2.6rem; text-align: center; font: 700 .72rem/1 system-ui, sans-serif; letter-spacing: .03em; padding: .5rem .3rem; border-radius: .45rem; color: #fff; background: #607d8b; }
.rc-badge.b-p { background: #c62828; } .rc-badge.b-d { background: #1565c0; } .rc-badge.b-s { background: #2e7d32; } .rc-badge.b-i { background: #8e24aa; }
.rc-badge.b-v { background: #ef6c00; } .rc-badge.b-m { background: #00838f; } .rc-badge.b-f { background: #607d8b; }
.rc-cardtxt { flex: 1 1 auto; min-width: 0; }
.rc-cardtxt a { font-weight: 600; overflow-wrap: anywhere; }
.rc-cardtxt small { display: block; color: var(--cloud-sub); }
.rc-cardact { flex: none; display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.rc-chip { font-size: .82rem; padding: .25rem .6rem; border: 1px solid var(--cloud-line); border-radius: 999px; text-decoration: none; white-space: nowrap; background: #fff; }
.rc-chip:hover, .rc-chip:focus-visible { background: rgba(0,0,0,.06); }
.rc-files { margin-top: .6rem; }
.rc-msg .out p { margin: .3rem 0; } .rc-msg .out ul { margin: .3rem 0 .3rem 1.2rem; padding: 0; }
@media (max-width: 560px) { .rc-card { flex-wrap: wrap; } .rc-cardact { width: 100%; justify-content: flex-start; } }
@media (prefers-color-scheme: dark) { .rc-card { background: rgba(255,255,255,.05); } .rc-chip { background: transparent; } }

.rc-mode label.rc-wait::after { content: ' (starting…)'; color: var(--cloud-sub); }

.rc-mode input:disabled { pointer-events: none; }
.rc-mode label { cursor: pointer; }

.rc-build { margin: 1.5rem 0 0; font-size: .75rem; color: var(--cloud-sub); opacity: .7; }

/* chat history dropdown in the menu bar */
.rc-histq { margin: .4rem 0; max-width: 28rem; }
.rc-list li .rc-snip { color: var(--cloud-sub); font-weight: 400; font-size: .85rem; }

.cloud-app { display: block; min-height: 70vh; }
.rc-histq { margin: .4rem 0; max-width: none; width: 100%; }

/* top bar: logo + Rozzom Cloud on the left; Apps menu and Account on the right */
.cloud-bar { --cb-text:#1f2937; --cb-sub:#5b6573; --cb-line:#e1e5ea; position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 1rem; background: #fff; border-bottom: 1px solid var(--cb-line); font-family: "Google Sans","Segoe UI",Roboto,system-ui,-apple-system,sans-serif; color: var(--cb-text); }
.cb-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: #0b3d1f; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; min-width: 0; }
.cb-logo { width: 2.5rem; height: 2.5rem; object-fit: contain; flex: none; }
.cb-title { white-space: nowrap; }
.cb-right { display: flex; align-items: center; gap: .6rem; }
.cb-menu { position: relative; }
.cb-menu > summary { list-style: none; }
.cb-menu > summary::-webkit-details-marker { display: none; }
.cb-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.6rem; padding: .35rem .95rem; border: 1px solid var(--cb-line); border-radius: 999px; background: #fff; color: var(--cb-text); font-weight: 600; font-size: .95rem; cursor: pointer; user-select: none; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.cb-btn:hover { background: #f3f6fa; }
.cb-menu[open] > .cb-btn { background: #eef6f1; border-color: #9ccfb2; }
.cb-appbtn { background: linear-gradient(135deg,#0b6b3a,#16a05a); color: #fff; border-color: #0b6b3a; }
.cb-appbtn:hover { background: linear-gradient(135deg,#0a5f34,#128f50); }
.cb-menu[open] > .cb-appbtn { background: linear-gradient(135deg,#0a5f34,#128f50); border-color: #0a5f34; }
.cb-btn svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cb-appbtn .cb-chev { width: .9rem; height: .9rem; transition: transform .15s; }
.cb-menu[open] .cb-chev { transform: rotate(180deg); }
.cb-pop { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 50; background: #fff; border: 1px solid var(--cb-line); border-radius: 18px; box-shadow: 0 12px 32px rgba(15,23,42,.18); padding: .6rem; }
.cb-grid { display: grid; grid-template-columns: repeat(3, 6.2rem); gap: .3rem; }
.cb-tile { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .7rem .3rem; border-radius: 14px; text-decoration: none; color: var(--cb-text); font-size: .85rem; font-weight: 600; text-align: center; }
.cb-tile:hover, .cb-tile:focus-visible { background: var(--s); }
.cb-tile[aria-current="page"] { background: var(--s); outline: 2px solid var(--c); outline-offset: -2px; }
.cb-ico { width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--s); color: var(--c); display: grid; place-items: center; }
.cb-ico svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cb-list { min-width: 13rem; display: flex; flex-direction: column; padding: .35rem; }
.cb-list a, .cb-list button { display: block; width: 100%; text-align: left; padding: .6rem .85rem; border: 0; border-radius: 10px; background: none; color: var(--cb-text); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.cb-list a:hover, .cb-list button:hover { background: #f3f6fa; }
.cb-list [aria-current="page"] { background: #e2f3ea; color: #0b6b3a; font-weight: 700; }
@media (max-width: 40rem) {
  .cloud-bar { padding: .4rem .6rem; }
  .cb-title { font-size: 1.02rem; }
  .cb-logo { width: 2.1rem; height: 2.1rem; }
  .cb-acctbtn #cb-name { display: none; }
  .cb-grid { grid-template-columns: repeat(3, 1fr); width: min(19.5rem, calc(100vw - 1.5rem)); }
  .cb-menu { position: static; }
  .cb-pop { right: .6rem; }
}

/* Rozzom AI: chat history sidebar (this page only) */
.ai-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 1rem; align-items: start; }
@media (min-width: 60rem) { .ai-layout { grid-template-columns: 16.5rem minmax(0,1fr); } }
.ai-side { background: #fff; border: 1px solid var(--cloud-line); border-radius: var(--cloud-r); padding: .8rem; min-width: 0; }
@media (min-width: 60rem) { .ai-side { position: sticky; top: 4.4rem; max-height: calc(100vh - 5.5rem); display: flex; flex-direction: column; } }
.ai-side-h { margin: 0 0 .6rem; font-size: 1.05rem; }
.ai-side .btn { width: 100%; }
.ai-side .rc-list { border: 0; padding: 0; margin-top: .4rem; max-height: 14rem; }
@media (min-width: 60rem) { .ai-side .rc-list { max-height: none; flex: 1; min-height: 6rem; } }
.ai-main { min-width: 0; }
.ai-side .rc-list li { display: flex; align-items: flex-start; gap: .2rem; }
.ai-side .rc-list li button[data-id] { flex: 1; min-width: 0; }
.ai-side .rc-list li { border-bottom: 1px solid var(--cloud-line); }
.ai-side .rc-list li:last-child { border-bottom: 0; }
.ai-side .rc-list li button[data-id] { overflow-wrap: anywhere; line-height: 1.3; padding: .55rem .5rem; }
.ai-side .rc-list li button[data-id] small { font-size: .78rem; line-height: 1.3; margin-top: .15rem; }
.ai-side .rc-list li .rc-link { width: auto !important; flex: none; font-size: .8rem; padding: .5rem .4rem; color: var(--cloud-sub); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.ai-side .rc-status:empty { display: none; }

/* ---- Proton-style app icons: soft gradient tile, white glyph ---- */
.cb-ico { width: 2.9rem; height: 2.9rem; border-radius: 16px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 58%, #fff) 0%, var(--c) 62%, color-mix(in srgb, var(--c) 82%, #000) 100%); box-shadow: 0 6px 14px -6px var(--c), inset 0 1px 0 rgba(255,255,255,.35); }
.cb-ico svg { width: 1.55rem; height: 1.55rem; stroke-width: 1.8; }
.cb-tile:hover .cb-ico, .cb-tile:focus-visible .cb-ico { transform: translateY(-1px); }
.cloud-appicon { width: 3.2rem; height: 3.2rem; border-radius: 16px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--cloud-accent) 58%, #fff) 0%, var(--cloud-accent) 62%, color-mix(in srgb, var(--cloud-accent) 82%, #000) 100%); box-shadow: 0 6px 14px -6px var(--cloud-accent), inset 0 1px 0 rgba(255,255,255,.35); }
.cloud-appicon svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- users, recovery phrase ---- */
.vault-users { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.vault-form .vault-user { display: flex; align-items: center; gap: .8rem; width: 100%; margin: 0; padding: .6rem .9rem; border: 1px solid var(--cloud-line); border-radius: 16px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; text-align: left; color: var(--cloud-text); }
.vault-form .vault-user:hover, .vault-form .vault-user:focus-visible { border-color: var(--cloud-accent); background: var(--cloud-accent-soft); }
.vu-av { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #6d4aff, #1a73c8); font-weight: 700; flex: none; }
.vault-form .linkbtn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--cloud-accent); text-decoration: underline; cursor: pointer; }
.vault-links { margin: 1rem 0 0; font-size: .9rem; }
.rc-phrase { list-style: none; counter-reset: ph; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem .8rem; padding: .9rem 1rem; margin: 1rem 0; background: var(--cloud-accent-soft); border-radius: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 600; }
.rc-phrase li { counter-increment: ph; display: flex; gap: .45rem; align-items: baseline; }
.rc-phrase li::before { content: counter(ph) '.'; color: var(--cloud-sub); font-weight: 400; min-width: 1.5rem; text-align: right; }
.rc-userlist { margin: .5rem 0 0; padding-left: 1.2rem; }
.rc-dlg { border: 1px solid var(--cloud-line); border-radius: 20px; padding: 1.4rem; max-width: 26rem; width: calc(100% - 2rem); }
.rc-dlg::backdrop { background: rgba(0,0,0,.4); }

/* ---- Drive: sidebar with folders and storage meter ---- */
.drive-layout { display: grid; grid-template-columns: 14rem 1fr; gap: 1.5rem; align-items: start; }
.drive-side { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1.2rem; }
.drive-side nav { display: flex; flex-direction: column; gap: .15rem; }
.drive-side nav button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .9rem; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; color: var(--cloud-text); cursor: pointer; text-align: left; }
.drive-side nav button:hover { background: rgba(0,0,0,.05); }
.drive-side nav button[aria-current="page"] { background: var(--cloud-accent-soft); color: var(--cloud-accent); }
.dn-ico svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.dn-count { margin-left: auto; min-width: 1.4rem; padding: 0 .4rem; text-align: center; font-size: .78rem; border-radius: 999px; background: var(--cloud-accent); color: #fff; }
.drive-meter { padding: .2rem .9rem; font-size: .85rem; color: var(--cloud-sub); }
.dm-bar { height: .5rem; border-radius: 999px; background: #dde3ea; overflow: hidden; }
.dm-bar span { display: block; height: 100%; width: 0; background: var(--cloud-accent); border-radius: 999px; }
.drive-meter p { margin: .5rem 0 0; }
.drive-title { margin: 0 0 .8rem; font-size: 1.3rem; }
.drive-main { min-width: 0; }
@media (max-width: 720px) { .drive-layout { grid-template-columns: 1fr; } .drive-side { position: static; } .drive-side nav { flex-direction: row; flex-wrap: wrap; } .drive-side nav button { width: auto; } .rc-phrase { grid-template-columns: repeat(2, 1fr); } }

.drive-main .rc-actions { white-space: normal; min-width: 13rem; }
.drive-main .spec-table td:nth-child(4), .drive-main .spec-table td:nth-child(5) { white-space: nowrap; }

/* ---- folders in Drive, search results, training controls ---- */
.drive-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: 0 0 .6rem; font-size: .95rem; }
.drive-crumbs button { background: none; border: 0; padding: .1rem .2rem; color: var(--cloud-accent, #0b6b3a); cursor: pointer; font: inherit; text-decoration: underline; }
.dfi { display: inline-flex; vertical-align: middle; margin-right: .4rem; }
.dfi svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dpath { color: #5b6b62; }
#nfform { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .5rem; }
#nfform .rc-input { width: 14rem; max-width: 100%; }
.rs-hits { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .6rem; }
.rs-hits li { border: 1px solid #d5ded8; border-radius: .6rem; padding: .5rem .7rem; background: #fff; }
.rs-hits li > a { font-weight: 600; text-decoration: none; display: inline-flex; gap: .45rem; align-items: baseline; }
.rs-n { display: inline-flex; align-items: center; justify-content: center; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; background: var(--cloud-accent-soft, #e2f3ea); color: var(--cloud-accent, #0b6b3a); font-size: .75rem; font-weight: 700; }
.rs-snip { margin: .3rem 0 0; font-size: .92rem; line-height: 1.45; }
.rs-snip mark, .rs-hits mark { background: #fff1a8; color: inherit; padding: 0 .1rem; border-radius: .15rem; }
.rc-trlist { list-style: none; margin: .4rem 0 0; padding: 0; max-height: 18rem; overflow: auto; display: grid; gap: .25rem; }
.rc-trlist small { color: #5b6b62; }
.rc-off { opacity: .55; }
#trainbox .rc-check { display: flex; gap: .5rem; align-items: center; margin: .4rem 0; }
@media (prefers-color-scheme: dark) { .rs-hits li { background: #1b211e; border-color: #34403a; } .rs-snip mark, .rs-hits mark { background: #6b5d12; color: #fff; } }

/* chat attachments */
.rc-atts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin-top: .6rem; }
.rc-att { display: inline-flex; align-items: center; gap: .4rem; background: var(--cloud-accent-soft); border-radius: 999px; padding: .25rem .4rem .25rem .8rem; max-width: 100%; }
.rc-att .rc-attn { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.rc-att small { color: var(--cloud-sub); }
.rc-att button { border: 0; background: #fff; border-radius: 999px; padding: .2rem .6rem; font: inherit; font-size: .8rem; cursor: pointer; }
.rc-attnote { flex-basis: 100%; color: var(--cloud-sub); }

/* document panel on the Rozzom AI page (like a canvas beside the chat) */
.ai-doc { background: #fff; border: 1px solid var(--cloud-line); border-radius: var(--cloud-r); display: flex; flex-direction: column; min-width: 0; }
.ai-doc[hidden] { display: none; }
.ai-doc-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; padding: .7rem .9rem; border-bottom: 1px solid var(--cloud-line); }
.ai-doc-title { flex: 1; min-width: 8rem; margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.ai-doc-st { flex-basis: 100%; color: var(--cloud-sub); font-size: .85rem; }
.ai-doc-st:empty { display: none; }
.ai-doc-body { padding: 1rem 1.2rem; overflow: auto; flex: 1; line-height: 1.55; }
.ai-doc-body h1, .ai-doc-body h2, .ai-doc-body h3 { margin: .8rem 0 .3rem; }
.ai-doc-tools { display: flex; flex-wrap: wrap; gap: .4rem; padding: .6rem .9rem; border-top: 1px solid var(--cloud-line); }
.rc-files .rc-opendoc { margin-top: .4rem; }
@media (min-width: 80rem) {
  .ai-layout.has-doc { grid-template-columns: 16.5rem minmax(0, 1fr) minmax(24rem, 32rem); }
  .ai-doc { position: sticky; top: 4.4rem; max-height: calc(100vh - 5.5rem); }
}
@media (max-width: 79.99rem) {
  .ai-doc { position: fixed; top: 0; right: 0; bottom: 0; width: min(36rem, 100%); z-index: 60; border-radius: 0; box-shadow: -8px 0 30px rgba(0,0,0,.25); }
}

/* file/code view in the document panel */
.ai-doc-view { display: inline-flex; gap: .25rem; }
.ai-doc-view .btn[aria-pressed="true"] { background: var(--cloud-accent-soft); color: var(--cloud-accent); font-weight: 700; }
.ai-doc-frame { width: 100%; height: 62vh; border: 1px solid var(--cloud-line); border-radius: 12px; background: #fff; }
.ai-doc-code { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: .82rem/1.5 ui-monospace, Consolas, "Courier New", monospace; }
.ai-doc-body img { max-width: 100%; height: auto; border-radius: 12px; }
.rc-card .rc-cardtxt a, .rc-card .rc-badge { cursor: pointer; }
.ai-doc [hidden] { display: none !important; }

/* the one sentence that best answers a question */
.rs-best { margin: .5rem 0; padding: .6rem .8rem; border-left: 4px solid var(--cloud-accent); background: var(--cloud-accent-soft); border-radius: 10px; }
.rs-best small { display: block; color: var(--cloud-sub); }

/* very narrow phones: keep "Rozzom Cloud" from running under the Apps button (2026-11-18) */
@media (max-width: 24rem) {
  .cb-brand { gap: .45rem; font-size: 1rem; }
  .cb-title { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; }
  .cb-logo { width: 1.9rem; height: 1.9rem; }
  .cb-right { gap: .35rem; flex: none; }
  .cb-btn { padding: .3rem .7rem; min-height: 2.4rem; }
}
