@layer base, desktop, window, content, preview, dialogs, responsive;
@layer base {
  :root { color-scheme: light; --ink: #293d33; --muted: #737b70; --paper: #f9f8f1; --green: #245d48; --border: #d7d9cc; font-family: Arial, Helvetica, sans-serif; color: var(--ink); font-size: 14px; }
  * { box-sizing: border-box; }
  body { margin: 0; height: 100dvh; overflow: hidden; background: #267f7a; }
  button, input { font: inherit; }
  button, a, input { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; color: inherit; }
  button:disabled { cursor: wait; opacity: .65; }
  button:focus-visible, a:focus-visible { outline: 2px dashed #176c5f; outline-offset: 4px; }
  input:focus-visible { outline: 2px solid #176c5f; outline-offset: 3px; }
  [hidden] { display: none !important; }
  a { color: var(--green); }
  button { border-radius: 0; }
  .button-arrow { display: block; width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; stroke-linejoin: miter; }
  .retro-button { border: 1px solid #5e6a5e; box-shadow: inset 1px 1px #fffef3, inset -1px -1px #8b9386; background: #e9e9df; }
  .retro-button:active { box-shadow: inset 1px 1px #8b9386, inset -1px -1px #fffef3; transform: translateY(1px); }
}
@layer desktop {
  body { display: flex; align-items: center; justify-content: center; padding: 28px 80px 78px 124px; background-image: radial-gradient(ellipse at 60% 30%, #358e87 0%, transparent 65%), linear-gradient(120deg, #227974, #2e837b); }
  .desktop-grain { position: fixed; inset: 0; opacity: .13; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.7' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
  .desktop-icons { position: fixed; top: 40px; left: 14px; display: grid; gap: 28px; width: 88px; }
  .desktop-icon { display: flex; align-items: center; flex-direction: column; gap: 7px; padding: 8px 2px; border: 1px solid transparent; background: none; color: #fffdee; font-size: 11px; line-height: 1.5; text-shadow: 1px 1px #255951; }
  .desktop-icon:hover, .desktop-icon:focus-visible { background: #216a6680; border: 1px dotted #d1e6d1; outline: none; }
  .desktop-icon img { image-rendering: pixelated; filter: drop-shadow(2px 3px 0 #175f5750); }
  .taskbar { position: fixed; bottom: 0; left: 0; right: 0; height: 41px; display: flex; align-items: center; gap: 9px; padding: 4px 8px; background: #d8d9cd; border-top: 2px solid #f7f7e9; box-shadow: 0 -1px #7d8c7c; z-index: 10; font-size: 12px; }
  .start-button { display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; height: 30px; font-size: 14px; }
  .taskbar-divider { width: 2px; height: 27px; border-left: 1px solid #99a08f; border-right: 1px solid #ffffee; margin: 0 1px; }
  .task-button { display: flex; align-items: center; gap: 8px; height: 28px; width: 192px; text-align: left; border: 1px solid #8c9686; box-shadow: inset 1px 1px #a0a997, 1px 1px #f8f8ea; font-weight: bold; background: #e7e8dc; }
  .task-button.minimized { box-shadow: inset 1px 1px #fff, inset -1px -1px #8c9686; background: #d8d9cd; font-weight: normal; }
  .system-tray { margin-left: auto; border: 1px solid #a0a995; box-shadow: 1px 1px #fff; display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 11px; color: #53634f; font-size: 11px; }
  .tray-dot { height: 7px; width: 7px; background: #497958; border: 1px solid #2d5d3b; box-shadow: 1px 1px #eff6de; }
  .system-tray time { margin-left: 15px; color: #384a3b; font-size: 12px; }
}
@layer window {
  .app-window { position: relative; display: flex; flex-direction: column; width: 1120px; min-width: 0; max-width: 100%; max-height: 100%; border: 1px solid #1d493f; background: var(--paper); padding: 4px; box-shadow: inset 1px 1px #fffef1, inset -1px -1px #8d9987, 7px 8px 0 #175a5340, 0 20px 55px #104a4526; }
  .app-window > .title-bar, .menu-bar, .status-bar { flex-shrink: 0; }
  .title-bar { background: linear-gradient(90deg, #255943, #3f7760); min-height: 30px; padding: 3px 4px 3px 7px; display: flex; align-items: center; justify-content: space-between; color: #fffdf0; font-size: 12px; letter-spacing: .15px; }
  .window-title { display: flex; align-items: center; gap: 8px; font-weight: bold; min-width: 0; }
  .window-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .window-title img, .window-actions { flex-shrink: 0; }
  .window-actions { display: flex; gap: 3px; margin-left: 8px; }
  .window-actions button, .dialog-close { width: 21px; height: 20px; border: 1px solid #233d2c; background: #d8ddcd; box-shadow: inset 1px 1px #fffef0, inset -1px -1px #8e9b83; display: grid; place-items: center; padding: 0; color: #284330; }
  .window-actions button:active { box-shadow: inset 1px 1px #75866b; }
  .window-actions .close-window { font: bold 20px/1 Arial; margin-left: 1px; padding-bottom: 2px; }
  .minimize-icon { border-bottom: 2px solid; width: 8px; height: 8px; }
  .maximize-icon { width: 10px; height: 9px; border: 1px solid; border-top: 2px solid; }
  [aria-pressed=true] .maximize-icon { box-shadow: 2px -2px 0 -1px #d8ddcd, 2px -2px 0 0 currentColor; }
  .menu-bar { display: flex; height: 32px; align-items: center; gap: 0; padding: 0 7px; border-bottom: 1px solid #d7dace; background: #eeeee4; font-size: 12px; }
  .menu-trigger { padding: 5px 10px; border: 1px solid transparent; background: none; font-size: 12px; }
  .menu-trigger:hover, .menu-trigger[aria-expanded=true] { background: #dee3d6; border-color: #a5b29d; }
  .menu-wrapper { position: relative; }
  .menu-dropdown { position: absolute; top: 27px; left: 0; padding: 4px; min-width: 230px; border: 1px solid #71816b; background: #eeeee4; box-shadow: 3px 3px #1d493f33; z-index: 8; }
  .menu-dropdown button { width: 100%; border: none; text-align: left; padding: 10px; background: none; font-size: 12px; display: flex; justify-content: space-between; }
  .menu-dropdown button:hover { background: #255943; color: #fff; }
  .status-bar { display: flex; align-items: center; min-height: 25px; padding: 0 8px; gap: 10px; border: 1px solid; border-color: #c1c6b8 #fffff4 #fffff4 #c1c6b8; background: #eeeee4; font: 10px 'Courier New', monospace; color: #6c7763; }
  #status-message { flex: 1; }
  .status-era { border-left: 1px solid #c9cebf; padding: 4px 11px; letter-spacing: .4px; white-space: nowrap; }
  .resize-grip { color: #a2ae98; }
  .popup-open-tab { display: none; }
}
@layer content {
  .app-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 28px 36px 0; }
  .brand-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
  .brand-title { margin: 0; font: inherit; }
  .wordmark { font-family: Georgia, 'Times New Roman', serif; font-weight: bold; font-size: 39px; letter-spacing: -2px; text-decoration: none; line-height: 1; text-shadow: 1px 2px #33333315; }
  .wordmark span:nth-child(4n+1) { color: #375d9e; }
  .wordmark span:nth-child(4n+2) { color: #b74d3d; }
  .wordmark span:nth-child(4n+3) { color: #bc952d; }
  .wordmark span:nth-child(4n) { color: #477b49; }
  .wordmark-space { letter-spacing: 0; font-size: 18px; }
  .power-control { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 11px; color: #51654c; position: relative; }
  .power-led { width: 6px; height: 6px; background: #5c8e4f; border-radius: 50%; box-shadow: 0 0 0 3px #e5eddb; margin-right: 2px; }
  .power-led.off { background: #8c9084; box-shadow: 0 0 0 3px #e7e8e1; }
  .power-control input { position: absolute; right: 0; opacity: 0; width: 33px; height: 20px; cursor: pointer; }
  .switch-track { width: 33px; height: 19px; border-radius: 12px; border: 1px solid #acb7a5; background: #ccd2c4; margin-left: 2px; padding: 2px; transition: background .15s; }
  .switch-track::after { content: ''; display: block; width: 13px; height: 13px; border-radius: 50%; background: #fffef2; box-shadow: 0 1px 2px #183b3340; transition: transform .15s; }
  .power-control input:checked + .switch-track { background: #426e4e; border-color: #426e4e; }
  .power-control input:checked + .switch-track::after { transform: translateX(13px); }
  .power-control input:focus-visible + .switch-track { outline: 2px dashed #176c5f; outline-offset: 3px; }
  .intro { margin: 24px 0 25px; }
  .tagline { font: 36px/1.15 Georgia, 'Times New Roman', serif; letter-spacing: -1.1px; font-weight: normal; }
  .no-script-note { padding: 12px; border: 1px solid var(--border); font-size: 12px; line-height: 1.5; }
  .website-pitch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin: -7px 0 28px; padding-bottom: 23px; border-bottom: 1px solid var(--border); }
  .pitch-copy { flex: 1 1 350px; }
  .pitch-copy p { margin: 7px 0 0; color: #67705e; font-size: 12px; line-height: 1.65; }
  .pitch-copy .pitch-lead { margin: 0; font-size: 14px; color: var(--ink); }
  .product-details { display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 0; margin: 12px 0 0; list-style: none; font: 10px 'Courier New', monospace; color: #627956; }
  .product-details li::before { content: '✓ '; }
  .download-panel { flex: 0 1 280px; max-width: 100%; text-align: center; }
  .download-button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 15px; min-height: 46px; width: 100%; border: 1px solid #204e39; box-shadow: inset 1px 1px #6b8e70, inset -1px -1px #19462d, 2px 2px #cfdbc3; background: #2e654e; color: #fffef0; font-size: 12px; text-decoration: none; line-height: 1.4; }
  .download-button:hover { background: #245740; }
  .download-button:active { transform: translate(1px, 1px); }
  .download-button img { flex-shrink: 0; }
  .download-button > .button-arrow { margin-left: auto; }
  #download-note { margin: 9px 0 0; font: 10px/1.5 'Courier New', monospace; color: #67705e; }
  .extension .website-pitch, .popup .website-pitch { display: none; }
  @media (max-width: 760px) { .website-pitch { margin-top: -10px; } .download-panel { flex-basis: 100%; } }
  .workspace { display: grid; grid-template-columns: 304px minmax(0, 1fr); gap: 34px; }
  .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 14px; min-height: 20px; }
  h2 { margin: 0; font-size: 12px; font-weight: bold; display: flex; gap: 9px; align-items: center; }
  .step-number { font: 9px 'Courier New', monospace; color: #8e9782; border: 1px solid #d5dbca; padding: 3px 4px; }
  .tiny-label { font: 8px 'Courier New', monospace; color: #8c9580; letter-spacing: .3px; }
  .year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
  [data-year="2001"] { --swatch: #cbdcf9; }
  [data-year="2007"] { --swatch: #cce6c4; }
  [data-year="2010"] { --swatch: #e4cfee; }
  [data-year="2011"] { --swatch: #ffedaf; }
  [data-year="2013"] { --swatch: #f7d7cb; }
  [data-year="2014"] { --accent: #a66c00; }
  [data-year="2016"], [data-year="2017"] { --accent: #26713d; }
  .year-card { min-width: 0; position: relative; padding: 12px 7px 10px; background: #fdfdf7; border: 1px solid #d8dccf; box-shadow: 1px 1px #e9ecdf; text-align: center; transition: background .12s, border-color .12s; }
  .year-card:hover { border-color: #849877; background: #f1f4e7; }
  .year-card[aria-checked=true] { background: #eef2e4; border: 1px solid #658151; box-shadow: inset 0 0 0 1px #658151; }
  .year-card[aria-checked=true]::after { content: '✓'; position: absolute; top: 4px; right: 5px; color: #51713d; font-size: 10px; font-weight: bold; }
  .year-swatch { height: 10px; width: 28px; display: block; margin: 0 auto 7px; border: 1px solid #00000013; background: var(--swatch); }
  .year-swatch.solid { width: 16px; height: 10px; color: #fff; font: 7px/9px Arial; background: var(--accent); border: none; }
  .year-swatch.outline { width: 16px; color: var(--accent); border-color: var(--accent); font: 7px/8px Arial; background: none; }
  .year-swatch.plain { width: 16px; color: #30342f; border: none; font: bold 8px/10px Arial; background: none; }
  .year-number { display: block; font: bold 16px Georgia, serif; letter-spacing: .4px; }
  .year-name { display: block; font-size: 8px; margin-top: 5px; color: #838976; white-space: nowrap; }
  .lucky-button { width: 100%; height: 39px; display: flex; gap: 9px; justify-content: center; align-items: center; font-size: 12px; margin-top: 12px; position: relative; }
  .dice { font-size: 22px; line-height: 1; color: #657351; }
  .lucky-arrow { position: absolute; right: 12px; color: #8a947c; font-size: 20px; }
  .lucky-caption { color: #919684; text-align: center; font-size: 9px; margin: 9px 0 19px; }
  .finishing-touches { border: none; border-top: 1px solid #dfe2d4; padding: 10px 0 4px; margin: 0 0 16px; }
  .finishing-touches legend { padding: 0 8px 0 0; color: #859079; font: 9px 'Courier New', monospace; }
  .finishing-touches label { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 10px; cursor: pointer; }
  input[type=checkbox] { accent-color: #426c4e; }
  .finishing-touches input { width: 13px; height: 13px; margin: 0; }
  .control-hint { width: 13px; height: 13px; border: 1px solid #b9c2ad; color: #8b987c; border-radius: 50%; text-align: center; font-size: 9px; margin-left: auto; }
  .apply-button { background: #2e654e; border: 1px solid #204e39; box-shadow: inset 1px 1px #6b8e70, inset -1px -1px #19462d, 2px 2px 0 #cfdbc3; color: #fffef0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; height: 41px; font-size: 12px; }
  .apply-button:hover { background: #245740; }
  .apply-button:active { transform: translate(1px, 1px); box-shadow: inset 1px 1px #19462d; }
  .apply-button > .button-arrow { margin-left: auto; }
  .apply-button img { margin-left: auto; }
  .apply-button { padding: 0 13px; }
  .apply-caption { margin: 9px 0 0; color: #909887; font-size: 9px; text-align: center; min-height: 13px; }
  .app-footer { margin-top: 18px; padding: 12px 0 14px; border-top: 1px solid #dedfd2; display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 10px; color: #7e8873; }
  .app-footer button { border: none; background: none; padding: 3px 0; font-size: 10px; color: #627956; text-decoration: underline; text-underline-offset: 3px; }
  .app-footer button span { text-decoration: none; margin-left: 5px; }
}
@layer preview {
  .browser-preview { border: 1px solid #abb8a0; box-shadow: 3px 3px 0 #e4e8d9; background: #fff; overflow: hidden; }
  .preview-chrome { height: 33px; display: flex; align-items: flex-end; justify-content: space-between; background: #e6e9de; padding: 5px 9px 0; border-bottom: 1px solid #d2d8c8; }
  .browser-tab { display: flex; align-items: center; gap: 6px; border: 1px solid #c6cebb; border-bottom: none; background: #f6f7ef; padding: 7px 10px 6px; font-size: 9px; width: 152px; position: relative; top: 1px; }
  .browser-tab > span { margin-left: auto; color: #8b947e; font-size: 12px; }
  .preview-era { font: 8px 'Courier New', monospace; margin-bottom: 10px; color: #798771; }
  .address-bar { display: flex; align-items: center; gap: 11px; background: #f6f7ef; height: 34px; border-bottom: 1px solid #dbe0d1; padding: 0 10px; font-size: 9px; color: #88937d; }
  .nav-arrows { font-size: 14px; white-space: nowrap; word-spacing: 6px; color: #71866a; }
  .nav-arrows > span { color: #bcc4b0; }
  .address-bar > div { display: flex; gap: 7px; align-items: center; border: 1px solid #dde2d5; background: #fff; padding: 5px 7px; flex: 1; min-width: 0; }
  .address-bar > div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 8px; }
  .address-bar svg { width: 10px; height: 10px; fill: none; stroke: #8c9a80; flex-shrink: 0; }
  .address-star { font-size: 20px; color: #a8b297; }
  .search-preview { --ad-bg: #fff8df; --ad-accent: #997000; background: white; color: #333; }
  .search-header { display: flex; align-items: center; gap: 18px; padding: 21px 20px 12px; }
  .google-wordmark { font: bold 29px/1 Georgia, serif; letter-spacing: -2px; text-shadow: 1px 2px 1px #0002; white-space: nowrap; }
  .google-wordmark span:nth-child(1), .google-wordmark span:nth-child(4) { color: #315ba4; }
  .google-wordmark span:nth-child(2), .google-wordmark span:nth-child(6) { color: #c04232; }
  .google-wordmark span:nth-child(3) { color: #d6a720; }
  .google-wordmark span:nth-child(5) { color: #368244; }
  .google-bang { color: #315ba4; font-size: 25px; }
  .sample-query { flex: 1; min-width: 0; border: 1px solid #c5c9bd; box-shadow: inset 1px 1px #00000008; height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; font-size: 10px; }
  .search-tabs { padding: 0 20px; display: flex; gap: 22px; border-bottom: 1px solid #e8e9e3; font-size: 9px; color: #85877e; }
  .search-tabs span { padding: 0 0 8px; }
  .search-tabs .current { color: #42668e; border-bottom: 2px solid #6e8eac; }
  .search-results { padding: 0 20px; }
  .results-count { font-size: 8px; color: #93958b; margin: 12px 0 11px; }
  .results-count span { color: #a6a99f; }
  .sample-ad { background: var(--ad-bg); padding: 8px 12px 12px; border: 1px solid color-mix(in srgb, var(--ad-accent) 14%, transparent); transition: background .15s; }
  .sample-disclosure { display: flex; align-items: center; justify-content: space-between; height: 16px; color: #807c69; font-size: 8px; margin-bottom: 3px; }
  #ad-badge { color: #5e5d4a; font-size: 8px; }
  .search-preview[data-kind=solid] #ad-badge { color: #fff; background: var(--badge-bg); padding: 2px 4px; border-radius: 1px; }
  .search-preview[data-kind=outline] #ad-badge { color: var(--ad-accent); border: 1px solid; padding: 1px 3px; border-radius: 2px; }
  .search-preview[data-kind=plain] #ad-badge { font-weight: bold; color: #202124; }
  .ad-info { color: #a3a08d; }
  .result-url { font-size: 8px; color: #3e7b3f; margin: 5px 0 4px; }
  .result-url > span { color: #8b957e; }
  .result-title { display: block; color: #293ea0; font: 12px/1.3 Arial, sans-serif; text-decoration: underline; text-underline-offset: 1px; }
  .search-result p { font-size: 9px; line-height: 1.6; color: #5e6157; margin: 5px 0 0; }
  .sitelinks { display: flex; gap: 7px; font-size: 8px; margin-top: 7px; }
  .sitelinks a { color: #425ab0; text-decoration: none; }
  .sitelinks span { color: #a2a492; }
  .wide-only { display: none; }
  .organic-result { padding: 14px 12px 2px; }
  .sample-watermark { text-align: center; padding: 15px 10px 14px; font: 8px 'Courier New', monospace; color: #a6ab9c; }
  .preview-footer { background: #f1f3e9; border-top: 1px solid #d9dfce; min-height: 34px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9px; color: #627354; }
  .preview-footer > span { display: flex; align-items: center; gap: 6px; }
  .preview-footer strong { font-weight: normal; }
  .colour-chip { width: 10px; height: 10px; background: #fff8df; border: 1px solid #bcba9d; }
  .compare-control { display: flex; align-items: center; gap: 4px; cursor: pointer; font-size: 8px; }
  .compare-control input { width: 11px; height: 11px; margin: 0; }
  .era-note { display: flex; align-items: flex-start; gap: 9px; color: #8c927d; font-size: 10px; line-height: 1.6; margin-top: 14px; }
  .era-note p { margin: 0; max-width: 400px; }
  .note-sparkle { color: #9ba78c; font-size: 18px; line-height: 1; }
  .search-preview.modern .google-wordmark { font-family: Arial, sans-serif; text-shadow: none; letter-spacing: -2px; font-size: 28px; }
  .search-preview.modern .google-bang { display: none; }
  .search-preview.modern .sample-ad { background: #fff; border-color: transparent; }
  .search-preview.modern #ad-badge { background: none; color: #252525; font-weight: bold; padding: 0; border: none; font-size: 9px; }
  .search-preview.modern .result-url { color: #414141; }
  .search-preview.modern .sample-query { border-radius: 20px; border-color: #dadce0; }
  .search-preview.no-blue .sample-ad .result-title, .search-preview.modern .result-title { color: #1a0dab; text-decoration: none; }
}
@layer dialogs {
  .retro-dialog { padding: 4px; border: 1px solid #284d39; box-shadow: inset 1px 1px white, 6px 6px #123d384d; background: #f7f7eb; color: var(--ink); width: 470px; max-width: calc(100% - 32px); }
  .retro-dialog::backdrop { background: #14382d73; }
  #dialog-content { padding: 17px 22px 5px; font-size: 12px; line-height: 1.7; }
  #dialog-content h3 { font: 23px Georgia, serif; margin: 0 0 14px; }
  #dialog-content p { margin: 0 0 13px; color: #627059; }
  #dialog-content ol { padding-left: 19px; color: #627059; }
  #dialog-content li { padding-left: 5px; margin: 9px 0; }
  #dialog-content code { background: #e8ecde; padding: 2px 4px; font-size: 11px; }
  #dialog-content .help-note { padding: 10px 12px; background: #eceedd; border-left: 2px solid #a4b588; font-size: 11px; }
  .retro-dialog form { display: flex; justify-content: flex-end; padding: 0 22px 17px; }
  .retro-dialog form button { min-width: 83px; padding: 7px 14px; font-size: 12px; }
  .toast { position: fixed; bottom: 59px; left: 50%; transform: translateX(-50%); max-width: min(420px, calc(100% - 30px)); padding: 13px 19px; background: #f7f7e8; border: 1px solid #64815a; box-shadow: 3px 3px 0 #164e4560; font-size: 12px; color: #2e6044; text-align: center; z-index: 20; }
}
@layer responsive {
  @media (min-height: 950px) and (min-width: 1100px) { body { padding-bottom: 78px; } .app-content { padding-top: 25px; } .intro { margin-top: 24px; margin-bottom: 25px; } }
  @media (max-width: 1200px) { body { padding: 35px 30px 90px 110px; } .app-content { padding: 25px 26px 0; } .workspace { grid-template-columns: 280px minmax(0, 1fr); gap: 24px; } .result-title { font-size: 11px; } .wide-only { display: none; } .search-header { gap: 12px; } .tagline { font-size: 32px; } .search-result p { font-size: 8px; } }
  @media (max-width: 1000px) { .desktop-icons { display: none; } body { padding-left: 28px; padding-right: 28px; } .workspace { gap: 22px; grid-template-columns: 260px minmax(0, 1fr); } .tiny-label { font-size: 7px; } .preview-footer { align-items: flex-start; } .compare-control span { max-width: 60px; line-height: 1.3; } }
  @media (max-width: 760px) { body { display: block; padding: 20px 16px 100px; } .app-window { margin: auto; width: 100%; max-width: 570px; } .app-content { padding: 24px 23px 0; } .workspace { grid-template-columns: 1fr; gap: 27px; } .year-grid { gap: 8px; } .year-card { padding: 12px 8px; } .year-name { font-size: 9px; } .year-swatch { display: inline-block; vertical-align: middle; margin: 0 8px 0 0; height: 9px; width: 18px; } .year-number { display: inline; font-size: 17px; } .year-name { margin-top: 6px; } .intro { margin: 25px 0; } .tagline { font-size: 30px; } .lucky-caption { margin-bottom: 17px; } .finishing-touches { margin-bottom: 17px; } .finishing-touches label { font-size: 11px; } .result-title { font-size: 13px; } .search-result p { font-size: 10px; } .result-url { font-size: 9px; } .sample-watermark { font-size: 8px; } .compare-control span { max-width: none; } .tray-label { display: none; } .status-era { display: none; } .app-footer { font-size: 9px; flex-wrap: wrap; } .window-title { font-size: 11px; } }
  @media (max-width: 430px) { .title-extra { display: none; } .power-control { gap: 5px; font-size: 9px; } .wordmark { font-size: 29px; } .app-content { padding: 23px 17px 0; } .tagline { font-size: 27px; } .search-results { padding: 0 12px; } .search-header { padding-left: 13px; padding-right: 13px; } .preview-footer { padding-left: 9px; padding-right: 9px; } .sample-query { font-size: 9px; padding: 0 8px; } .google-wordmark { font-size: 25px; } .address-bar { gap: 7px; } .address-star { display: none; } .task-button { width: 135px; } .system-tray { padding: 0 7px; } .system-tray time { margin-left: 0; } .app-footer { margin-top: 18px; } }
  /* Let phones scroll the page normally instead of a small nested desktop pane. */
  @media (max-width: 760px), (max-height: 500px) and (pointer: coarse) {
    html:not(.popup) body { height: auto; min-height: 100dvh; overflow: auto; display: block; padding: max(12px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
    .app-window { width: 100%; max-width: 570px; max-height: none; margin: auto; }
    .app-content { overflow: visible; padding: 24px 17px 0; }
    .workspace { grid-template-columns: minmax(0, 1fr); gap: 27px; }
    .controls, .preview-section, .pitch-copy { min-width: 0; }
    .desktop-icons, .status-era, .title-extra { display: none; }
    .year-name { white-space: normal; line-height: 1.35; }
    .preview-footer { flex-wrap: wrap; align-items: center; }
    .compare-control { font-size: 11px; }
    .compare-control span { max-width: none; }
    .search-tabs { gap: 16px; }
    .sitelinks { flex-wrap: wrap; }
    .result-url { overflow-wrap: anywhere; }
    .app-footer { flex-wrap: wrap; }
    .status-bar { padding-block: 6px; line-height: 1.4; }
    .taskbar { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); padding-bottom: calc(4px + env(safe-area-inset-bottom)); height: calc(41px + env(safe-area-inset-bottom)); }
    .task-button { flex: 0 1 135px; min-width: 0; }
    .system-tray { flex-shrink: 0; }
    .tray-label { display: none; }
    .toast { bottom: calc(64px + env(safe-area-inset-bottom)); width: max-content; }
    /* Keep the actual styled ad in sight while the year cards scroll beneath it. */
    html:not(.popup) .workspace { display: flex; flex-direction: column; gap: 16px; }
    html:not(.popup) .preview-section { order: -1; position: sticky; top: env(safe-area-inset-top); z-index: 2; background: var(--paper); padding: 8px 0; margin-top: -8px; }
    html:not(.popup) .preview-section > .section-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    html:not(.popup) .preview-section :is(.address-bar, .search-header, .search-tabs, .results-count, .organic-result, .sample-watermark, .era-note, .sitelinks) { display: none; }
    html:not(.popup) .preview-chrome { height: 28px; }
    html:not(.popup) .preview-era { margin-bottom: 7px; }
    html:not(.popup) .search-results { padding: 8px; }
    html:not(.popup) .sample-ad { padding: 6px 9px 9px; }
    html:not(.popup) .preview-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 0 8px; gap: 8px; }
    html:not(.popup) .preview-footer > span { min-width: 0; }
    html:not(.popup) .colour-chip { flex-shrink: 0; }
    html:not(.popup) .compare-control { min-height: 44px; font-size: 10px; }
    html:not(.popup) .compare-control span { max-width: 85px; line-height: 1.3; }
    html:not(.popup) .controls :is(button, input) { scroll-margin-top: calc(var(--mobile-preview-height, 230px) + 12px); scroll-margin-bottom: 76px; }
    html:not(.popup) .maximized .preview-section { top: 0; }
  }
  @media (min-width: 600px) and (max-height: 500px) and (pointer: coarse) {
    html:not(.popup) .app-window { max-width: 900px; }
    html:not(.popup) .workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
    html:not(.popup) .controls { grid-column: 1; grid-row: 1; }
    html:not(.popup) .preview-section { grid-column: 2; grid-row: 1; align-self: start; }
    html:not(.popup) .controls :is(button, input) { scroll-margin-top: 12px; }
  }
  @media (pointer: coarse) {
    html:not(.popup) .window-actions button, .dialog-close { width: 44px; height: 44px; }
    .menu-bar { height: auto; min-height: 44px; }
    .menu-trigger, .menu-dropdown button { min-height: 44px; }
    .menu-dropdown { top: 100%; }
    .power-control, .compare-control, .finishing-touches label { min-height: 44px; }
    .power-control input { height: 44px; margin: 0; }
    .finishing-touches input, .compare-control input { width: 18px; height: 18px; flex-shrink: 0; }
    .lucky-button, .apply-button, .app-footer button, .app-footer a, .retro-dialog form button { min-height: 44px; }
    .app-footer a { display: inline-flex; align-items: center; }
    .taskbar { height: calc(54px + env(safe-area-inset-bottom)); padding-bottom: calc(4px + env(safe-area-inset-bottom)); gap: 6px; }
    .start-button, .task-button { height: 44px; }
    .title-extra { display: none; }
  }
  .retro-dialog { max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; }
  /* Shared by native fullscreen and the fallback for browsers that disallow it. */
  html.window-fullscreen body { height: 100dvh; overflow: hidden; padding: 0; }
  .window-fullscreen .desktop-icons, .window-fullscreen .taskbar { visibility: hidden; }
  .app-window.maximized { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; z-index: 11; border: 0; padding: max(4px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left)); }
  .maximized .app-content { overflow-y: auto; overscroll-behavior-y: contain; }
  .window-fullscreen .toast { bottom: calc(36px + env(safe-area-inset-bottom)); }
  .popup { width: 430px; min-width: 430px; }
  .popup body { height: auto; overflow: visible; display: block; padding: 0; background: var(--paper); }
  .popup .desktop-grain, .popup .desktop-icons, .popup .taskbar, .popup .window-actions, .popup .menu-bar, .popup .intro, .popup .preview-section, .popup .app-footer, .popup .status-era, .popup .resize-grip { display: none; }
  .popup .app-window { display: block; width: 430px; max-width: 430px; max-height: none; border: 0; box-shadow: none; margin: 0; padding: 3px; }
  .popup .title-extra { display: inline; }
  .popup .title-bar { min-height: 25px; font-size: 10px; }
  .popup .app-content { padding: 16px 23px 10px; }
  .popup .brand-row { margin-bottom: 17px; }
  .popup .wordmark { font-size: 34px; }
  .popup .workspace { display: block; }
  .popup .year-card { padding: 9px 5px; }
  .popup .year-swatch { display: inline-block; vertical-align: middle; margin: 0 7px 0 0; width: 19px; }
  .popup .year-swatch.solid, .popup .year-swatch.outline, .popup .year-swatch.plain { width: 16px; }
  .popup .year-number { display: inline; }
  .popup .year-name { font-size: 9px; }
  .popup .lucky-button { height: 34px; margin-top: 10px; }
  .popup .lucky-caption { margin: 7px 0 12px; }
  .popup .finishing-touches { padding-top: 7px; margin-bottom: 12px; }
  .popup .finishing-touches label { font-size: 11px; margin-top: 7px; }
  .popup .status-bar { min-height: 22px; padding: 4px 8px; font-size: 9px; }
  .popup .popup-open-tab { display: flex; justify-content: center; gap: 10px; width: 100%; border: 0; padding: 9px; background: #ecefe1; color: #4f7146; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
  .popup .toast { bottom: 16px; width: 370px; font-size: 11px; }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
}
