:root {
  --g-blue: #4285f4;
  --g-red: #ea4335;
  --g-yellow: #fbbc05;
  --g-green: #34a853;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --bg: #fff;
  --ok: #188038;
  --warn: #e37400;
  --bad: #d93025;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
a { color: #1a73e8; text-decoration: none; }
.g-logo { font-size: 68px; font-weight: 500; letter-spacing: -2px; line-height: 1; user-select: none; }
.g-logo i { font-style: normal; }
.g-logo .b { color: var(--g-blue); }
.g-logo .r { color: var(--g-red); }
.g-logo .y { color: var(--g-yellow); }
.g-logo .g { color: var(--g-green); }
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 12px 20px; font-size: 13px; color: var(--muted); }
.topbar button, .topbar .btn {
  background: var(--g-blue); color: #fff; border: 0; border-radius: 4px; padding: 8px 16px; cursor: pointer; font-size: 14px;
}
.topbar .ghost { background: transparent; color: var(--muted); border: 0; }
.google-home { min-height: calc(100vh - 52px); display: flex; flex-direction: column; align-items: center; padding: 11vh 16px 40px; }
.search-box {
  margin-top: 28px; width: min(584px, 92vw); height: 46px; display: flex; align-items: center;
  border: 1px solid #dfe1e5; border-radius: 24px; padding: 0 16px; background: #fff;
  box-shadow: 0 1px 3px rgba(32,33,36,.08);
}
.search-box:focus-within { box-shadow: 0 1px 6px rgba(32,33,36,.28); border-color: transparent; }
.search-box input { flex: 1; border: 0; outline: none; font-size: 16px; background: transparent; }
.search-box .go { background: none; color: var(--g-blue); border: 0; font-weight: 600; cursor: pointer; }
.shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 4px; width: min(680px, 96vw); margin-top: 36px; }
.tile {
  width: 112px; min-height: 108px; border: 0; background: transparent; border-radius: 8px;
  cursor: pointer; padding: 12px 8px 8px; color: var(--text);
}
.tile:hover { background: #e8e8e9; }
.tile .icon {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: #fff;
}
.tile .name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .ops { display: none; gap: 6px; justify-content: center; margin-top: 4px; }
.tile:hover .ops { display: flex; }
.tile .ops button { border: 0; background: #fff; border-radius: 4px; font-size: 11px; padding: 2px 6px; cursor: pointer; color: var(--muted); }
.add-form { width: min(584px, 92vw); margin-top: 28px; color: var(--muted); font-size: 13px; }
.add-form input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
header.appbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
h1 { font-size: 20px; margin: 0; font-weight: 500; }
.sub { color: var(--muted); font-size: 13px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
button, .btn { background: var(--g-blue); color: #fff; border: 0; border-radius: 4px; padding: 8px 14px; cursor: pointer; font-size: 13px; }
button.ghost, .btn.ghost { background: #f8f9fa; color: #3c4043; border: 1px solid var(--line); }
button.bad { background: var(--g-red); }
input, textarea, select { background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; width: 100%; }
label { display: block; font-size: 13px; margin: 10px 0 4px; }
.help { color: var(--muted); font-size: 12px; margin: 4px 0 0; line-height: 1.5; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.ok { background: #e6f4ea; color: var(--ok); }
.warn { background: #fef7e0; color: var(--warn); }
.bad { background: #fce8e6; color: var(--bad); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.login-page { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: min(400px, 92vw); }
.login-card .go { width: 100%; margin-top: 12px; padding: 10px; }
.auth-switch { display: flex; gap: 8px; margin: 12px 0 4px; }
.auth-switch button { flex: 1; background: #f8f9fa; color: #3c4043; border: 1px solid var(--line); }
.auth-switch button.on { background: #e8f0fe; color: #1967d2; border-color: #d2e3fc; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.env-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.env-card h3 { margin: 0 0 8px; }
.env-card .open-main { width: 100%; margin-top: 12px; }
pre { white-space: pre-wrap; background: #f8f9fa; padding: 12px; border-radius: 8px; overflow: auto; font-size: 12px; }
.browser { position: fixed; inset: 0; display: flex; flex-direction: column; background: #fff; }
.browser-top { background: #dee1e6; color: #202124; }
.caption { display: none; }
.tabs { display: flex; gap: 0; padding: 6px 8px 0 8px; overflow-x: auto; background: #dee1e6; }
.tab {
  background: #dee1e6; border: 0; border-radius: 8px 8px 0 0; padding: 8px 16px; font-size: 12px;
  max-width: 220px; white-space: nowrap; overflow: hidden; cursor: pointer; color: #202124; margin-right: 4px;
}
.tab.on { background: #fff; }
.chrome-bar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: #fff; border-bottom: 1px solid #e8eaed; }
.chrome-bar button { background: #fff; color: #5f6368; min-width: 32px; height: 32px; border-radius: 16px; padding: 0; border: 0; font-size: 16px; }
.chrome-bar button:hover { background: #f1f3f4; }
.omnibox { flex: 1; height: 34px; border-radius: 18px; background: #e9eef6; border: 0; color: #202124; padding: 0 16px; }
.screen-wrap { flex: 1; background: #fff; min-height: 0; }
.screen-wrap canvas { width: 100%; height: 100%; object-fit: contain; background: #fff; cursor: default; }
.boot { position: absolute; inset: 48px 0 0; display: flex; align-items: center; justify-content: center; color: #5f6368; }
.notice { font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } .g-logo { font-size: 48px; } }
