/* home.css — the start page: a docked home window (DESIGN-2.0-PLAN.md, batch 3)

   An action column on the left and, beside it, what you were working on:
   recent projects, then the videos already imported. Panels docked to the
   window like the editor's, not a centred logo over stacked buttons with two
   cards hanging off the window's edges - that composition is a landing page's,
   and it was the app's first impression.

   Until a layout has been chosen on this machine the main area holds the
   choice instead of the recents (home.js).

   Its own sheet: app.css is at its ceiling, and nothing here restyles the
   editor. Every size, radius and colour is a token (preflight's scale check
   reads this file too). */

/* the shell: under the menu bar, to the window's edges, flat */
#menubar { min-height:34px; box-sizing:border-box; }   /* one height with or without the mode switch, so this page can sit under it */
#startscreen { padding:34px 6px 0; align-items:stretch; justify-content:flex-start; background:var(--well); }
.home { flex:1 1 auto; min-height:0; display:flex; gap:6px; }

/* ---- the action column ---- */
.home-side { flex:0 0 324px; min-width:0; box-sizing:border-box; display:flex; flex-direction:column; align-items:stretch; gap:10px;
             padding:20px 18px 18px; background:var(--panel); border-radius:var(--radius-lg,9px); overflow-y:auto; }
.home-side .start-logo { justify-content:flex-start; margin:0 0 8px; }
.home-side .brand-logo.big { height:38px; margin:0; }
.home-cap { font-family:var(--f-mono); font-size:var(--fs-label); letter-spacing:.14em; text-transform:uppercase; color:var(--text2); margin:10px 0 0; }
.home-side .start-local { --gg-btn-h:34px; --gg-btn-radius:var(--radius,5px); --gg-btn-justify:flex-start; --gg-btn-pad:0 12px; }
.home-side .start-local gg-icon { --gg-icon-size:15px; color:var(--text2); }
/* "or paste a link": a label over its field, not a rule with words in the middle */
.home-side .start-or { margin:6px 0 -3px; font-size:var(--fs-control); color:var(--text2); }
.home-side .gg-start-input { height:34px; padding:0 10px; border-radius:var(--radius,5px); }
.home-side .start-go { --gg-btn-h:34px; --gg-btn-radius:var(--radius,5px); --gg-btn-pad:0 14px; }
.home-side .start-more { margin:0; }
.home-side .mo-row { flex-wrap:wrap; }
/* a new project's name and size (projopts.js): each on its label's line. The size list is as
   wide as its longest row and wrapped under "Size" like Device does; here it gives way. */
.home-side #start_proj .mo-row { flex-wrap:nowrap; }
.home-side #start_proj select { height:34px; }

/* ---- a staged file (stage.js): what it is, then the switches, then Import ---- */
.staged [data-unstaged] { display:none !important; }
.stage { display:flex; flex-direction:column; gap:4px; padding:10px 12px; background:var(--well); border-radius:var(--radius,5px); min-width:0; }
.stage-name { font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.stage-facts { font-family:var(--f-mono); font-size:var(--fs-data); color:var(--text2); }
.stage-note { font-size:var(--fs-control); line-height:1.45; color:var(--text2); }
.stage-note:empty, .stage-facts:empty { display:none; }
.stage-copy { margin-top:4px; }
/* a project with no footage: the Footage panel's empty state in place of a player with nothing in it */
.footage-empty { display:none; flex:1 1 auto; min-height:0; }
body.no-footage .footage-empty { display:flex; }
body.no-footage #playerarea { display:none; }
.stage-go { display:flex; gap:8px; }
/* Skip transcription is ticked: the transcription options are moot, and say so by fading */
.tr-off { opacity:.35; transition:opacity 120ms ease; }
.stage-go gg-button:first-child { flex:1 1 auto; }

/* ---- the main area ---- */
.home-main { flex:1 1 auto; min-width:0; box-sizing:border-box; display:flex; flex-direction:column; gap:24px;
             padding:18px 20px 20px; background:var(--panel); border-radius:var(--radius-lg,9px); overflow-x:hidden; overflow-y:auto; }
.home-main > .recents { display:flex; flex-direction:column; gap:10px; }
.home-main.choosing > .recents { display:none !important; }
.home-main:not(.choosing) > .hc { display:none; }
#recent_projects_wrap, #recent_imports_wrap { width:auto; }
.recents-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.recents-title { font-family:var(--f-head); font-weight:700; font-size:var(--fs-title); letter-spacing:-.01em; color:var(--text); white-space:nowrap; }
.recents-head .grow { flex:1 1 auto; }
.recents-list { display:flex; flex-direction:column; gap:1px; }

/* grid or list */
.rv-btn { display:flex; align-items:center; justify-content:center; width:28px; height:24px; padding:0; background:transparent; border:none; box-shadow:none;
          color:var(--text2); border-radius:var(--radius-sm,3px); cursor:default; transition:background 120ms ease, color 120ms ease; }
.rv-btn gg-icon { --gg-icon-size:14px; }
.rv-btn:hover { color:var(--text); background:var(--control); }
#rv_open { height:28px; border-radius:var(--radius,5px); }
.rv-seg { display:flex; padding:2px; background:var(--well); border-radius:var(--radius,5px); }
.rv-seg .rv-btn.on, .rv-seg .rv-btn.on:hover { background:var(--lime); color:var(--on-lime); }

/* a project as a tile: its cover, its name, when it was last touched */
.rp-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(184px, 1fr)); gap:12px; }
.rp-card { position:relative; display:flex; flex-direction:column; background:var(--card); border-radius:var(--radius-lg,9px); overflow:hidden; cursor:default;
           transition:background 120ms ease; }
.rp-card:hover { background:var(--control); }
.rp-card.active { background:var(--card-sel); }
.rp-card img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; background:#000; }
/* no cover yet: the shape of what will be there (a vertical frame), not the name's initial */
.rp-ph { width:100%; aspect-ratio:16/9; align-items:center; justify-content:center; background:var(--well); }
.rp-ph::before { content:""; height:66%; aspect-ratio:var(--ph-ar, 9 / 16); background:var(--control); border-radius:var(--radius-sm,3px); }   /* --ph-ar: the project's own shape, when it is known (core.js) */
.rp-body { padding:9px 11px 10px; min-width:0; }
.rp-name { font-size:var(--fs-body); font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rp-meta { font-family:var(--f-mono); font-size:var(--fs-label); color:var(--text2); margin-top:3px; }
.rp-x { position:absolute; top:6px; right:6px; display:none; align-items:center; justify-content:center;
        width:22px; height:22px; padding:0; border:none; border-radius:var(--radius,5px); cursor:default;
        background:color-mix(in srgb, var(--well) 78%, transparent); color:var(--text); }
.rp-card:hover .rp-x { display:flex; }

/* the same projects as a list, and the imports as a table: column captions, then the kit's list rows */
.home-row > .gg-lr-name { flex:1 1 auto; min-width:0; }   /* the captions over them are the kit's .gg-list-cols */
.home-row.gg-list-row { min-height:34px; }
.home-c-when { flex:0 0 150px; font-family:var(--f-mono); font-size:var(--fs-data); color:var(--text2); white-space:nowrap; }
.home-c-dir { flex:0 0 260px; min-width:0; color:var(--text2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-c-size { flex:0 0 90px; font-family:var(--f-mono); font-size:var(--fs-data); color:var(--text2); white-space:nowrap; }
.home-c-act { flex:0 0 268px; display:flex; justify-content:flex-end; gap:6px; }
.home-c-hide { flex:0 0 26px; display:flex; justify-content:flex-end; }
.home-hide { display:flex; align-items:center; justify-content:center; width:22px; height:22px; padding:0; background:transparent; border:none; box-shadow:none;
             color:var(--text2); border-radius:var(--radius,5px); cursor:default; opacity:0; }
.home-row:hover .home-hide, .home-hide:focus-visible { opacity:1; }
.home-hide:hover { background:var(--raise-hi); color:var(--text); }
#recents_list .home-row.gg-list-row { min-height:42px; }

/* ---- the status row: language and version, where the editor's status bar is ---- */
.start-corner { order:9; position:static; flex:0 0 26px; display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:0 8px;
                font-family:var(--f-mono); font-size:var(--fs-data); color:var(--text2); }
.start-corner .gg-start-ver { position:static; font-size:var(--fs-data); color:var(--text2); }
.start-corner .sep { color:var(--muted); font-size:var(--fs-data); }
.start-settings { background:none; border:none; cursor:default; color:var(--text2); --gg-icon-size:16px; padding:4px; border-radius:var(--radius,5px); line-height:0; }
.start-settings:hover { color:var(--text); background:var(--control); }

/* ---- the first-launch layout choice ---- */
.hc { display:flex; flex-direction:column; gap:22px; padding:12px 12px 0; }
.hc-head { display:flex; flex-direction:column; gap:6px; }
.hc-title { margin:0; font-family:var(--f-head); font-size:var(--fs-head); font-weight:700; letter-spacing:-.01em; color:var(--text); }
.hc-sub { margin:0; font-size:var(--fs-read); color:var(--text2); }
.hc-cards { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; max-width:1040px; }
.hc-card { display:flex; flex-direction:column; align-items:stretch; gap:8px; padding:16px; background:var(--card); border:none; border-radius:var(--radius-lg,9px);
           box-shadow:none; color:var(--text); font-family:var(--f-body); font-weight:500; text-align:left; white-space:normal; cursor:default; transition:background 120ms ease; }
.hc-card:hover { background:var(--control); }
.hc-card:focus-visible { outline:none; box-shadow:0 0 0 2px var(--lime); }
.hc-name { font-family:var(--f-head); font-size:var(--fs-title); font-weight:700; letter-spacing:-.01em; margin-top:6px; }
.hc-desc { font-size:var(--fs-body); line-height:1.45; color:var(--text2); }
/* a drawing of the layout: panels (.hc-p) on the window's ground, with bars and lines inside */
.hc-dia { flex:0 0 268px; display:flex; flex-direction:column; gap:5px; height:268px; box-sizing:border-box; padding:8px; background:var(--well); border-radius:var(--radius,5px); }
.hc-row { flex:1 1 auto; min-height:0; display:flex; gap:5px; }
.hc-col { display:flex; flex-direction:column; gap:5px; }
.hc-p { box-sizing:border-box; display:flex; flex-direction:column; gap:6px; padding:7px; background:var(--panel); border-radius:var(--radius-sm,3px); }
.hc-p > i, .hc-p > u, .hc-p > b { display:block; background:var(--control); border-radius:var(--radius-sm,3px); }
.hc-p > u { height:5px; background:var(--raise-hi); }
.hc-p > .sel { background:var(--lime); }
.hc-canvas { align-items:center; justify-content:center; }
.hc-canvas > b { height:78%; aspect-ratio:9/16; background:var(--raise-hi); }
/* the Transcript editor: clips, the footage and its words, the frame, and the strip under them */
.hc-te .hc-list { flex:0 0 17%; } .hc-te .hc-list > i { height:20px; }
.hc-te .hc-src { flex:1 1 auto; min-width:0; } .hc-te .hc-src > b { height:76px; flex:0 0 auto; }
.hc-te .hc-src > u:nth-of-type(1) { width:92%; } .hc-te .hc-src > u:nth-of-type(2) { width:78%; } .hc-te .hc-src > u:nth-of-type(3) { width:56%; }
.hc-te .hc-src > u:nth-of-type(4) { width:84%; } .hc-te .hc-src > u:nth-of-type(5) { width:61%; }
.hc-te .hc-canvas { flex:0 0 34%; }
.hc-strip { flex:0 0 34px; flex-direction:row; align-items:center; gap:5px; padding:0 7px; }
.hc-strip > i { height:14px; } .hc-strip > i:nth-child(1) { width:16%; } .hc-strip > i:nth-child(2) { width:24%; } .hc-strip > i:nth-child(3) { width:11%; }
/* the Traditional editor: a project list, a viewer, two docks, and a timeline of layers */
.hc-tr .hc-rows > u { height:8px; background:var(--control); }
.hc-tr .hc-row > .hc-rows { flex:0 0 24%; }
.hc-tr .hc-rows > u:nth-child(1) { width:70%; background:var(--raise-hi); } .hc-tr .hc-rows > u:nth-child(2) { width:88%; } .hc-tr .hc-rows > u:nth-child(3) { width:58%; }
.hc-tr .hc-rows > u:nth-child(4) { width:76%; } .hc-tr .hc-rows > u:nth-child(5) { width:64%; }
.hc-tr .hc-canvas { flex:1 1 auto; min-width:0; }
.hc-tr .hc-col { flex:0 0 26%; } .hc-tr .hc-col > .hc-rows { flex:1 1 0; }
.hc-tl { flex:0 0 92px; justify-content:center; gap:6px; padding:0 7px; }
.hc-tl > i { height:12px; background:var(--raise-hi); }
.hc-tl > i:nth-child(1) { width:26%; margin-left:58%; } .hc-tl > i:nth-child(2) { width:20%; margin-left:40%; }
.hc-tl > i:nth-child(3) { width:34%; margin-left:46%; } .hc-tl > i:nth-child(4) { width:44%; margin-left:12%; }

/* narrower than the two columns need: the action column gives way first, then the cards stack */
@media (max-width: 900px) { .home-side { flex-basis:280px; } .hc-cards { grid-template-columns:minmax(0, 1fr); } .home-c-dir, .home-c-size { display:none; } .home-c-act { flex-basis:auto; } }
