/* Application workspaces. Presentation only; app subpage routing remains in admin-app.js. */
#tab-updates { min-width: 0; }
#tab-updates .product-subnav { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 0; padding: 0; margin: 0 0 26px; overflow: visible; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
#tab-updates .product-nav-group { min-width: 0; padding: 12px; border-right: 1px solid var(--border); }
#tab-updates .product-nav-group:last-child { border-right: 0; }
#tab-updates .product-nav-group > span { display: block; padding: 0 7px 8px; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
#tab-updates .product-nav-group > div { display: flex; flex-wrap: wrap; gap: 3px; }
#tab-updates .product-subnav button { min-height: 36px; padding: 8px; margin: 0; border-radius: 7px; font-size: 11px; line-height: 1.3; background: transparent; border: 1px solid transparent; color: var(--text-muted); white-space: normal; }
#tab-updates .product-subnav button:hover { background: var(--surface-2); color: var(--text); }
#tab-updates .product-subnav button.active { background: var(--accent-soft); border-color: var(--accent-line, var(--border-strong)); color: var(--accent); box-shadow: none; }
#tab-updates .product-pane-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
#tab-updates .product-pane-heading h2 { font-size: 19px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 5px; }
#tab-updates .product-pane-heading p { color: var(--text-muted); font-size: 12px; margin: 0; line-height: 1.5; }
#tab-updates .product-pane-heading .mb-2 { margin-bottom: 0 !important; }
#tab-updates .product-overview > .stat-grid { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; gap: 0; margin-bottom: 22px; background: var(--surface); }
#tab-updates .product-overview > .stat-grid > .stat-tile { background: transparent; border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 17px 18px; }
#tab-updates .product-overview > .stat-grid > .stat-tile:last-child { border-right: 0; }
#tab-updates .product-overview .stat-tile-value { font-size: 27px; letter-spacing: -.025em; margin: 7px 0 5px; }
#tab-updates .product-overview .stat-tile-caption { font-size: 10px; line-height: 1.6; }
#tab-updates .product-activity .app-chart { height: 270px; }
#tab-updates .product-activity .section { margin-bottom: 18px; }
#tab-updates .product-version-workspace { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); gap: 0; margin: 0 0 20px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
#tab-updates .product-version-workspace > .section { border: 0; box-shadow: none; border-radius: 0; margin: 0; background: transparent; min-width: 0; }
#tab-updates .product-version-workspace > .section + .section { border-left: 1px solid var(--border); }
#tab-updates .product-version-workspace .app-chart { height: 240px; }
#tab-updates .product-details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; background: var(--surface); min-width: 0; overflow: hidden; }
#tab-updates .product-details > summary { cursor: pointer; padding: 17px 20px; list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; font-size: 13px; font-weight: 500; }
#tab-updates .product-details > summary::-webkit-details-marker { display: none; }
#tab-updates .product-details > summary::after { content: '+'; color: var(--text-muted); margin-left: auto; font-size: 17px; font-weight: 400; }
#tab-updates .product-details[open] > summary::after { content: '−'; }
#tab-updates .product-details > summary > small { font-size: 11px; font-weight: 400; color: var(--text-dim); }
#tab-updates .product-details[open] > summary { border-bottom: 1px solid var(--border); }
#tab-updates .product-details .app-grid-2 { margin: 0; gap: 0; }
#tab-updates .product-details .section { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
#tab-updates .product-details .app-grid-2 > .section + .section { border-left: 1px solid var(--border); }
#tab-updates .product-details .app-grid-2 + .app-grid-2 { border-top: 1px solid var(--border); }
#tab-updates .product-distribution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#tab-updates .product-distribution-grid > .app-grid-2 { display: contents; }
#tab-updates .product-distribution-grid .section { min-width: 0; }
#tab-updates .product-distribution-grid > .section { border-right: 1px solid var(--border); }
#tab-updates .product-details .hbar-list { max-height: 330px; overflow: auto; }
#tab-updates .product-details .section-title { font-size: 12px; }
#tab-updates .product-details .section-hint { font-size: 10px; line-height: 1.5; }
#tab-updates .product-release-jumps { display: flex; gap: 4px; width: fit-content; max-width: 100%; flex-wrap: wrap; background: var(--surface-2); padding: 4px; border-radius: 9px; margin-bottom: 20px; }
#tab-updates .product-release-jumps a { color: var(--text-muted); font-size: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; min-height: 36px; text-decoration: none; border-radius: 6px; }
#tab-updates .product-release-jumps a:hover { background: var(--surface-3); color: var(--text); }
#tab-updates .product-platform { scroll-margin-top: 85px; margin-bottom: 20px; }
#tab-updates .product-platform-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
#tab-updates .product-platform-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; color: var(--text-muted); font-size: 18px; }
#tab-updates .product-platform-heading h3 { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
#tab-updates .product-platform-heading p { margin: 0; color: var(--text-muted); font-size: 11px; }
#tab-updates .product-android-grid { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(0, 1.25fr); gap: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); margin-bottom: 12px; }
#tab-updates .product-android-grid > .section { background: transparent; margin: 0; border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
#tab-updates .product-android-grid > .section + .section { border-left: 1px solid var(--border); }
#tab-updates .product-android-grid > .section:first-child { background: var(--surface-2); }
#tab-updates .product-android-grid > .section:first-child .row > div { width: 50%; }
#tab-updates .product-android-grid #au-name { font-size: 30px !important; letter-spacing: -.03em; }
#tab-updates .product-android-grid #au-code { font-family: var(--font-mono); font-size: 21px !important; color: var(--text-muted); }
#tab-updates .product-release-workspace .section-hint { font-size: 11px; line-height: 1.6; }
#tab-updates .product-release-workspace .form-text { font-size: 10px; line-height: 1.6; }
#tab-updates .product-release-workspace .section-header { align-items: flex-start; }
#tab-updates .product-release-workspace .section-title { font-size: 13px; }
#tab-updates .product-legacy > summary { min-height: 44px; padding-block: 12px; font-size: 12px; }
#tab-updates .product-configuration { margin-top: 30px; }
#tab-updates .product-configuration > .section { border: 1px solid var(--border); border-radius: 12px; box-shadow: none; }
#tab-updates .product-configuration .col-12.mt-4 { padding-top: 20px; border-top: 1px solid var(--border); }
#tab-updates .product-configuration .col-12.d-flex { padding-top: 20px; border-top: 1px solid var(--border); margin-top: 20px; }
#tab-updates :is(summary, .product-release-jumps a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1200px) {
    #tab-updates .product-nav-group > div { flex-direction: column; }
    #tab-updates .product-subnav button { text-align: left; }
    #tab-updates .product-distribution-grid { grid-template-columns: minmax(0, 1fr); }
    #tab-updates .product-distribution-grid > .app-grid-2 { display: grid; }
    #tab-updates .product-distribution-grid > .section { border-right: 0; border-bottom: 1px solid var(--border); }
    #tab-updates .product-android-grid { grid-template-columns: minmax(0, 1fr); }
    #tab-updates .product-android-grid > .section + .section { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 767px) {
    #tab-updates .product-subnav { display: flex; flex-direction: column; }
    #tab-updates .product-nav-group { padding: 10px; border-right: 0; border-bottom: 1px solid var(--border); }
    #tab-updates .product-nav-group:last-child { border-bottom: 0; }
    #tab-updates .product-nav-group > span { font-size: 9px; padding-bottom: 4px; }
    #tab-updates .product-nav-group > div { flex-direction: row; }
    #tab-updates .product-subnav button { flex: 1; min-height: 44px; text-align: center; padding: 7px 5px; font-size: 10px; }
    #tab-updates .product-pane-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    #tab-updates .product-pane-heading h2 { font-size: 18px; }
    #tab-updates .product-overview > .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #tab-updates .product-overview > .stat-grid > .stat-tile { padding: 13px; border-bottom: 1px solid var(--border); }
    #tab-updates .product-overview > .stat-grid > .stat-tile:nth-child(even) { border-right: 0; }
    #tab-updates .product-overview > .stat-grid > .stat-tile:nth-last-child(-n+2) { border-bottom: 0; }
    #tab-updates .product-version-workspace { grid-template-columns: minmax(0, 1fr); }
    #tab-updates .product-version-workspace > .section + .section { border-left: 0; border-top: 1px solid var(--border); }
    #tab-updates .product-activity .app-chart { height: 230px; }
    #tab-updates .product-details > summary { flex-wrap: wrap; position: relative; padding: 15px 38px 15px 15px; gap: 3px; }
    #tab-updates .product-details > summary > small { width: 100%; font-size: 10px; }
    #tab-updates .product-details > summary::after { position: absolute; right: 16px; top: 15px; }
    #tab-updates .product-details .app-grid-2 { grid-template-columns: minmax(0, 1fr); }
    #tab-updates .product-details .app-grid-2 > .section + .section { border-left: 0; border-top: 1px solid var(--border); }
    #tab-updates .product-release-jumps { width: 100%; }
    #tab-updates .product-release-jumps a { flex: 1; justify-content: center; min-height: 44px; padding: 8px; font-size: 11px; }
}
