/* File browser: neutral chrome, visual files and persistent product navigation. */
.app{grid-template-columns:224px minmax(0,1fr)}.sidebar{padding:18px 10px 12px;background:#f8f8f8;border-right:1px solid var(--line);gap:0}.sidebar .brand{margin:0 10px 23px}.workspace-label{margin:0 8px 16px;font-size:12px;gap:9px}.workspace-label small{font-size:10px}.workspace-mark{height:30px;width:30px;border-radius:7px}.sidebar .wide{font-size:12px;padding:10px;border-radius:7px;margin-bottom:16px}.side-nav{gap:3px}.side-nav button{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:5px;font-size:12px}.side-nav button[aria-current]{background:#eae8f1;color:var(--text)}.ui-icon{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sidebar-bottom{padding:12px 3px 0}.device-short{padding:9px;font-size:10px;border-radius:6px}.account{padding-top:12px;margin-top:12px;font-size:12px}.account .avatar{width:27px;height:27px}.recent-label{margin:21px 12px 8px;font-size:9px}.history{min-height:40px}.history button{font-size:11px;padding:9px 12px}.topbar{height:54px;padding:0 28px;border-bottom:1px solid var(--line);gap:16px}.topbar>div{font-size:12px;min-width:0}.topbar #page-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .theme-toggle{font-size:11px;padding:7px 9px;border-radius:6px}.topbar .quiet-link{font-size:11px}
.project-sidebar{padding-top:18px;margin-top:15px;border-top:1px solid var(--line);flex-shrink:0}.sidebar-section-heading{display:flex;justify-content:space-between;align-items:center;padding:0 9px;font-size:9px;letter-spacing:1px;color:var(--muted)}.sidebar-section-heading button{font-size:19px;padding:1px 6px}.project-filters{display:flex;flex-direction:column;gap:3px;flex-wrap:nowrap;max-height:35vh;overflow:auto;margin:6px 0 0}.project-filters .project-link{display:flex;align-items:center;gap:9px;width:100%;padding:8px 10px;background:transparent;border:0;border-radius:5px;color:var(--text);font-size:11px;text-align:left;min-height:32px}.project-link .project-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1}.project-number{color:var(--muted);font-size:10px}.project-filters .project-link[aria-pressed=true],.project-filters .project-link:hover{background:#eae8f1;color:var(--text)}
.file-browser{padding:28px;max-width:none;margin:0;min-width:0}.file-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.file-heading h1{font-size:22px;letter-spacing:-.5px;line-height:1.25;margin:0;font-weight:600}.file-heading a{padding:8px 12px;border-radius:6px;font-size:11px;text-decoration:none}.file-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.file-tabs,.file-controls{display:flex;align-items:center;gap:9px}.file-tabs button{background:#eeeef0;border:0;color:var(--text);border-radius:5px;padding:7px 10px;font-size:11px}.file-tabs>span{font-size:11px}.file-search{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:6px;padding:0 10px;color:var(--muted);height:32px;max-width:300px}.file-search input{width:210px;background:transparent!important;border:0;padding:6px 0;font-size:11px;min-width:0;outline-offset:3px}.file-search input:focus{box-shadow:none}.file-controls select{padding:7px 8px;font-size:11px;border-radius:6px;width:auto;height:32px}.file-layout{display:flex;border:1px solid var(--line);border-radius:5px;padding:2px;gap:2px}.file-layout button{display:flex;align-items:center;justify-content:center;padding:4px;border:0;border-radius:3px;color:var(--muted);background:transparent}.file-layout button[aria-pressed=true]{background:#eae8f1;color:var(--text)}
.file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,232px),1fr));gap:var(--space-6) var(--space-5)}.file-card{position:relative;border:1px solid var(--line);border-radius:10px;background:#fff;min-width:0;transition:border-color .15s,box-shadow .15s}.file-card:hover{border-color:#aaa;box-shadow:0 3px 12px #00000009}.file-open{color:inherit;text-decoration:none;display:block;border-radius:9px;overflow:hidden}.file-open:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.file-cover{aspect-ratio:1.65;position:relative;overflow:hidden;background:#f1f1f1;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--line)}.file-thumbnail{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.file-cover-fallback{width:100%;height:100%;padding:24px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;background:linear-gradient(135deg,#282828,#191919);color:#fff;position:relative}.file-cover-fallback:after{content:'';position:absolute;inset:60% 0 0 45%;opacity:.1;background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);background-size:24px 24px;pointer-events:none}.file-cover-fallback img{height:23px;width:23px;object-fit:contain;margin-bottom:auto}.cover-project{font-size:9px;opacity:.75;margin-top:14px}.cover-title{font-size:17px;line-height:1.3;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:6px 0}.cover-caption{font-size:9px;opacity:.65}.file-info{display:flex;align-items:center;gap:10px;padding:14px 42px 14px 13px;height:65px}.file-type{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:5px;color:#fff;background:#1c99f6;flex:none}.file-type[data-kind=generated]{background:#8462de}.file-type .ui-icon{height:13px;width:13px}.file-text{min-width:0}.file-text h2{font-size:11px;font-weight:500;margin:0 0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.4}.file-text p{font-size:10px;color:var(--muted);margin:0}.file-menu-trigger{position:absolute;right:9px;bottom:18px;padding:5px;display:flex;border:0;background:transparent;color:var(--muted);border-radius:4px}.file-menu-trigger:hover{background:#eee}.file-menu-trigger:focus-visible{outline:2px solid var(--brand)}.file-menu{position:absolute;top:calc(100% - 15px);right:9px;z-index:4;border:1px solid var(--line);padding:5px;background:#fff;box-shadow:0 6px 25px #0002;border-radius:7px;width:180px}.file-menu button{background:transparent;border:0;width:100%;text-align:left;font-size:12px;border-radius:4px;padding:10px;color:var(--text)}.file-menu button:hover{background:#f1f1f1}.file-menu .file-delete{color:#b42f36}.files-empty{grid-column:1/-1;padding:80px 24px;text-align:center;color:var(--muted)}.files-empty>.ui-icon{height:36px;width:36px}.files-empty h2{font-size:18px;font-weight:500;color:var(--text)}.files-empty p{font-size:13px}
.file-grid[data-layout=list]{grid-template-columns:1fr;gap:8px}.file-grid[data-layout=list] .file-open{display:flex;align-items:center}.file-grid[data-layout=list] .file-cover{width:100px;height:64px;aspect-ratio:auto;flex:none;border-bottom:0;border-right:1px solid var(--line)}.file-grid[data-layout=list] .file-cover-fallback{padding:8px}.file-grid[data-layout=list] .cover-title{font-size:10px;margin:2px 0}.file-grid[data-layout=list] .file-cover-fallback img{width:12px;height:12px;margin:0}.file-grid[data-layout=list] .cover-project,.file-grid[data-layout=list] .cover-caption{display:none}.file-grid[data-layout=list] .file-text h2{font-size:12px}.file-grid[data-layout=list] .file-info{flex:1}
[data-theme=dark] .sidebar{background:#202020}[data-theme=dark] .file-card,[data-theme=dark] .file-menu{background:#242424}[data-theme=dark] .file-cover{background:#2b2b2b}[data-theme=dark] .file-tabs button,[data-theme=dark] .file-layout button[aria-pressed=true],[data-theme=dark] .project-filters .project-link[aria-pressed=true],[data-theme=dark] .project-filters .project-link:hover,[data-theme=dark] .side-nav button[aria-current],[data-theme=dark] .file-menu-trigger:hover,[data-theme=dark] .file-menu button:hover{background:#333;color:var(--text)}[data-theme=dark] .file-card:hover{border-color:#666}[data-theme=dark] .file-menu .file-delete{color:#f39b9b}[data-theme=dark] .project-filters .project-link{color:var(--text)}
.side-nav{margin:10px 0 8px}.file-text h2{font-size:12px;letter-spacing:0}.file-text p{font-size:11px}.project-filters .project-link{font-size:12px}.project-sidebar{min-width:0;max-width:100%}.project-filters{width:100%;min-width:0}.app[data-view=designs] .main-shell,.app[data-view=designs] .sidebar{background:#fff}[data-theme=dark] .app[data-view=designs] .main-shell{background:#191919}[data-theme=dark] .app[data-view=designs] .sidebar{background:#202020}.app[data-view=designs] .project-sidebar{display:flex;flex-direction:column;flex:1;min-height:0;flex-shrink:1;padding-top:12px;margin-top:12px}.app[data-view=designs] .project-filters{max-height:none;min-height:0}.app[data-view=designs] .recent-label,.app[data-view=designs] .history{display:none}
@media(min-width:1750px){.file-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1050px){.file-toolbar{flex-wrap:wrap}.file-controls{flex:1;justify-content:flex-end}.file-search{flex:1;max-width:260px}.file-search input{width:100%}}
@media(max-width:700px){.app{grid-template-columns:1fr}.sidebar{height:auto;position:static;display:block;padding:12px 16px}.sidebar .brand{margin:0 0 12px}.sidebar .workspace-label{display:none}.sidebar .wide{margin-bottom:8px}.side-nav{display:flex;flex-direction:row;gap:6px}.side-nav button{justify-content:center;flex:1;padding:8px 4px;font-size:10px}.project-sidebar{padding-top:10px;margin-top:10px}.project-filters{flex-direction:row;max-height:80px;overflow:auto}.project-filters .project-link{width:auto;flex-shrink:0;max-width:190px}.sidebar-section-heading{font-size:9px}.app[data-view=designs] .recent-label{display:none}.file-browser{padding:20px 16px}.file-heading{margin-bottom:20px;gap:10px}.file-heading h1{font-size:19px}.file-heading a{font-size:10px;padding:8px}.file-toolbar{gap:12px}.file-controls{flex-wrap:wrap;justify-content:flex-start;flex-basis:100%;gap:8px}.file-search{max-width:none;flex-basis:100%}.file-controls select{max-width:180px}.file-layout{margin-left:auto}.file-grid{gap:var(--space-5) var(--space-4)}.topbar{height:auto;min-height:54px;padding:12px 16px;gap:8px}}
@media(max-width:700px){.sidebar{display:flex;flex-direction:row;gap:10px}.sidebar .brand{margin:0 auto 0 0}.sidebar>.wide{margin:0;width:auto}.side-nav{order:2;flex-basis:100%;margin:5px 0 0}.app[data-view=designs] .project-sidebar{order:3;flex:1 1 100%;margin-top:0}.sidebar-bottom{order:4;flex-basis:100%}.app[data-view=designs] #mobile-history{display:none}.app[data-view=designs] #page-title{display:block;font-size:11px}.project-filters .project-link{font-size:11px}}

.handoff-context{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;font-family:inherit;font-size:13px;line-height:1.6;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:12px}

.history-extra{display:flex;flex-direction:column;gap:3px}
/* 09/11: "Meus" and "Do time", only for whoever administers the platform. Same column as the list below it. */
.history-scope{display:flex;gap:2px;margin:0 0 8px;padding:2px;border:1px solid var(--line);border-radius:8px;background:#f1eef6;flex-shrink:0}
.history-scope[hidden]{display:none}
.history-scope button{flex:1 1 0;min-width:0;padding:6px 8px;border:0;border-radius:6px;background:transparent;font-size:11px;font-weight:600;line-height:1.4;color:#6d657d;cursor:pointer}
.history-scope button:hover{color:var(--brand)}
.history-scope button[aria-pressed=true]{background:#fff;color:var(--brand);box-shadow:0 1px 2px #20113e1a}
.history-scope button:focus-visible,.history-team-search:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.history-team-search{width:100%;box-sizing:border-box;flex-shrink:0;margin:0 0 6px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font:inherit;font-size:11px;color:inherit}
.history-team-summary{margin:0 0 4px;padding:0 10px;flex-shrink:0;font-size:10px;line-height:1.4;color:var(--muted)}
.history-team-list{display:flex;flex-direction:column;gap:3px}
.app[data-view] .history .history-row.is-team>button:first-child{display:flex;flex-direction:column;align-items:stretch;gap:1px;padding-right:10px}
.history-title,.history-owner{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-owner{font-size:10px;line-height:1.4;color:var(--muted)}
.history .history-row.is-team>button[aria-current] .history-owner,.history .history-row.is-team>button:hover .history-owner{color:inherit;opacity:.75}
[data-theme=dark] .history-scope{background:#ffffff0d;border-color:#3c3446}
[data-theme=dark] .history-scope button[aria-pressed=true]{background:#ffffff1a;color:#fff;box-shadow:none}
[data-theme=dark] .history-team-search{background:transparent;border-color:#3c3446}
/* On a phone the list lives in the topbar selector; the team, which that selector does not have, shows here when chosen. */
@media(max-width:700px){
  .app .history-scope:not([hidden]){display:flex;order:5;flex-basis:100%;margin:0}
  .app[data-history=time] .history{display:flex;order:6;flex-basis:100%;max-height:55vh;overflow:auto}
}
.history .history-toggle{color:var(--brand);font-weight:600}
[data-theme=dark] .history .history-toggle{color:var(--brand)}

.workspace-tools{position:relative;flex:none;color:var(--text,#292536)}
.workspace-tools>summary{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;list-style:none;cursor:pointer;color:var(--muted)}
.workspace-tools>summary::-webkit-details-marker{display:none}
.workspace-tools>summary span,.workspace-tools-links>a>span:first-child{display:flex;flex:none}
.workspace-tools>summary .ui-icon{width:19px;height:19px;stroke-width:3}
.workspace-tools>summary:hover,.workspace-tools[open]>summary{background:#eeebf3;color:var(--text,#292536)}
.workspace-tools>summary:focus-visible{outline:3px solid #b9a9ec;outline-offset:3px}
.workspace-tools-links{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:272px;max-width:calc(100vw - 32px);padding:7px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 8px 28px #00000018}
.workspace-tools-label{display:block;padding:9px 10px 7px;font-size:9px;font-weight:600;letter-spacing:1px;color:var(--muted)}
.workspace-tools-links>a[hidden]{display:none}
.workspace-tools-links>a{display:flex;align-items:center;gap:10px;padding:11px 10px;border-radius:5px;color:inherit;text-decoration:none;font-size:12px}
.workspace-tools-links>a:hover,.workspace-tools-links>a[aria-current=page]{background:#f3f1f7}
.workspace-tools-links small{display:block;margin-top:3px;font-size:10px}
[data-theme=dark] .workspace-tools-links{background:#242424}
[data-theme=dark] .workspace-tools>summary:hover,[data-theme=dark] .workspace-tools[open]>summary,[data-theme=dark] .workspace-tools-links>a:hover,[data-theme=dark] .workspace-tools-links>a[aria-current=page]{background:#333;color:var(--text)}
@media(max-width:700px){.workspace-tools>summary{width:36px;height:36px}}
/* 30/10: each conversation archives on its own; the box icon shows on hover or focus, always on touch screens. */
.history-row{position:relative;display:flex;min-width:0;flex-shrink:0}
/* The home sets the padding of these buttons with a longer selector (home.css); the icon needs its room on every view. */
.app[data-view] .history .history-row>button:first-child{flex:1;min-width:0;padding-right:36px}
.history .history-archive{position:absolute;top:50%;right:4px;transform:translateY(-50%);width:28px;height:28px;padding:0;display:grid;place-items:center;color:#7b7587;background:transparent}
.history .history-archive:hover{background:#ffffff;color:var(--brand)}
.history .history-archive::before{content:'';width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='5' rx='1'/%3E%3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8'/%3E%3Cpath d='M10 12h4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='5' rx='1'/%3E%3Cpath d='M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8'/%3E%3Cpath d='M10 12h4'/%3E%3C/svg%3E") center/contain no-repeat}
@media (hover:hover){.history .history-archive{opacity:0}.history-row:hover .history-archive,.history-row:focus-within .history-archive{opacity:1}}
.history-undo{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;margin:0 0 4px;padding:8px 10px;border-radius:8px;background:#f1edf8;font-size:11px;color:#42384b;flex-shrink:0}
.history-undo span{min-width:0;overflow-wrap:anywhere}
.history .history-undo button{padding:2px 4px;font-weight:700;color:var(--brand);text-decoration:underline;background:transparent}
[data-theme=dark] .history-undo{background:#ffffff0d;color:var(--text)}
[data-theme=dark] .history .history-undo button{color:#c4b5fd}

/* 12/11: the name of a request is its subject; the stage is a small tag under it, beside when. Same row in "Meus" and "Do time". */
.app[data-view] .history .history-row.has-stage>button:first-child{display:flex;flex-direction:column;align-items:stretch;gap:3px}
.history-meta{display:flex;align-items:center;gap:6px;min-width:0}
.history-meta .history-owner{flex:1 1 auto}
.history-stage{flex:none;padding:0 6px;border-radius:999px;font-size:9px;font-weight:600;line-height:16px;letter-spacing:.2px;color:#5b4a8b;background:#eeeaf6}
.history-stage[data-stage="Definição"]{color:#2f5d8a;background:#e6eff8}
.history-stage[data-stage="Telas"]{color:#2c6b4f;background:#e4f2eb}
.history-stage[data-stage="Melhoria"]{color:#8a5a12;background:#f8eedc}
.history-stage[data-stage="Figma"]{color:#8a3d63;background:#f6e6ef}
.history-stage[data-stage="Código"],.history-stage[data-stage="React"]{color:#4b5563;background:#eceef1}
.history .history-row.has-stage>button[aria-current] .history-owner,.history .history-row.has-stage>button:hover .history-owner{color:inherit;opacity:.75}
[data-theme=dark] .history-stage{color:#d8ccff;background:#ffffff14}
[data-theme=dark] .history-stage[data-stage="Definição"]{color:#b7d3f2}
[data-theme=dark] .history-stage[data-stage="Telas"]{color:#a9dcc3}
[data-theme=dark] .history-stage[data-stage="Melhoria"]{color:#efcf98}
[data-theme=dark] .history-stage[data-stage="Figma"]{color:#f0b9d4}
.history-search[hidden],.history-team-summary[hidden]{display:none}
/* On a phone the list lives in the topbar selector: the search stays, and its results show here while she searches. */
@media(max-width:700px){
  .app[data-view=chat][data-history=meus] .history{display:flex;order:6;flex-basis:100%;max-height:55vh;overflow:auto;min-height:0}
  .app[data-view=chat][data-history=meus]:not([data-history-query="1"]) .history>:not(.history-search){display:none}
}
/* The name is what she reads first: up to two lines before the ellipsis. */
.app[data-view] .history .history-row.has-stage .history-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;overflow-wrap:anywhere;line-height:1.4}
