/* PersonalOS 21 — Phase 2 Google Sheets workspace. Uses shared semantic theme tokens. */
.p21-sheets-hero{display:flex;align-items:center;gap:18px;padding:22px 24px;margin:0 0 16px;border:1px solid var(--pos20-color-border);border-radius:var(--pos20-radius-lg);background:linear-gradient(135deg,var(--pos20-color-surface),var(--pos20-color-surface-raised));box-shadow:var(--pos20-elevation-1);min-width:0}
.p21-sheets-hero-mark{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:16px;background:var(--pos20-color-accent-soft);color:var(--pos20-color-accent);font-size:29px;font-weight:800}
.p21-sheets-hero>div:nth-child(2){min-width:0;flex:1}
.p21-sheets-eyebrow{font-size:10px;font-weight:800;letter-spacing:.13em;color:var(--pos20-color-muted)}
.p21-sheets-hero h2{margin:4px 0 5px;color:var(--pos20-color-text);font-size:clamp(20px,2.5vw,27px);line-height:1.2}
.p21-sheets-hero p{margin:0;max-width:760px;color:var(--pos20-color-muted);font-size:13px;line-height:1.55}
.p21-sheets-storage-badge{flex:0 0 auto;padding:7px 10px;border:1px solid var(--pos20-color-border);border-radius:999px;background:var(--pos20-color-surface);color:var(--pos20-color-muted);font-size:11px;font-weight:700;white-space:nowrap}
.p21-sheets-card{min-width:0;overflow:hidden}
.p21-sheets-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:14px;min-width:0}
.p21-sheets-search{display:flex;align-items:center;gap:8px;flex:1;min-width:180px;max-width:560px;padding-left:12px;border:1px solid var(--pos20-color-border);border-radius:var(--pos20-radius-md);background:var(--pos20-color-surface-raised);color:var(--pos20-color-muted)}
.p21-sheets-search>span{font-size:20px;line-height:1}
.p21-sheets-search input{border:0!important;box-shadow:none!important;background:transparent!important;min-width:0}
.p21-sheets-count{color:var(--pos20-color-muted);font-size:12px;white-space:nowrap}
.p21-sheets-list{display:grid;gap:9px}
.p21-sheet-row{display:flex;align-items:center;gap:13px;min-width:0;padding:13px 14px;border:1px solid var(--pos20-color-border);border-radius:var(--pos20-radius-md);background:var(--pos20-color-surface);transition:border-color var(--pos20-motion-fast) var(--pos20-motion-ease),transform var(--pos20-motion-fast) var(--pos20-motion-ease)}
.p21-sheet-row:hover{border-color:var(--pos20-color-accent);transform:translateY(-1px)}
.p21-sheet-row[hidden]{display:none!important}
.p21-sheet-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:color-mix(in srgb,#16a36a 12%,var(--pos20-color-surface));color:#16875a;font-size:23px;font-weight:800}
.p21-sheet-meta{flex:1;min-width:0}
.p21-sheet-meta h3{margin:0 0 4px;color:var(--pos20-color-text);font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.p21-sheet-meta p{margin:0 0 3px;color:var(--pos20-color-muted);font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.p21-sheet-meta small{display:block;color:var(--pos20-color-muted);font-size:10px;overflow-wrap:anywhere}
.p21-sheet-permission{font-weight:700}.p21-sheet-permission.can-edit{color:var(--pos20-color-success)}.p21-sheet-permission.read-only,.p21-sheet-permission.not-verified{color:var(--pos20-color-warning)}
.p21-sheet-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.p21-sheet-actions a{text-decoration:none;white-space:nowrap}
.p21-sheets-empty,.p21-sheets-loading,.p21-sheets-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:205px;padding:28px 18px;text-align:center;border:1px dashed var(--pos20-color-border-strong);border-radius:var(--pos20-radius-md);background:var(--pos20-color-surface-raised)}
.p21-sheets-empty-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:10px;border-radius:15px;background:var(--pos20-color-accent-soft);color:var(--pos20-color-accent);font-size:27px}
.p21-sheets-empty h3,.p21-sheets-error strong{margin:0 0 6px;color:var(--pos20-color-text);font-size:15px}
.p21-sheets-empty p,.p21-sheets-error p{max-width:620px;margin:0 0 13px;color:var(--pos20-color-muted);font-size:12px;line-height:1.6}
.p21-sheets-loading{flex-direction:row;gap:9px;min-height:140px;color:var(--pos20-color-muted);font-size:13px}
.p21-sheets-error{border-color:color-mix(in srgb,var(--pos20-color-danger) 35%,var(--pos20-color-border))}
.p21-sheets-error strong{color:var(--pos20-color-danger)}
.p21-sheets-no-match{margin:12px 0 0;padding:12px;text-align:center;color:var(--pos20-color-muted);font-size:12px}
.p21-sheets-footnote{margin:15px 0 0;padding:10px 12px;border-radius:var(--pos20-radius-sm);background:var(--pos20-color-surface-raised);color:var(--pos20-color-muted);font-size:11px;line-height:1.55}
@media(max-width:760px){.p21-sheets-hero{align-items:flex-start;flex-wrap:wrap;padding:17px;gap:12px}.p21-sheets-hero-mark{width:44px;height:44px;flex-basis:44px;border-radius:13px;font-size:24px}.p21-sheets-storage-badge{margin-left:56px}.p21-sheets-toolbar{align-items:stretch;flex-direction:column}.p21-sheets-search{max-width:none}.p21-sheet-row{align-items:flex-start;flex-wrap:wrap}.p21-sheet-meta{flex:1 1 calc(100% - 58px)}.p21-sheet-actions{width:100%;padding-left:55px}.p21-sheet-actions a{flex:1;text-align:center}.p21-sheet-actions .icon-button{flex:0 0 40px}}
@media(prefers-reduced-motion:reduce){.p21-sheet-row{transition:none}.p21-sheet-row:hover{transform:none}}
