/* Agency Pad - centered landscape tablet shell overrides for the cloned Pad UI */

body.agency-pad-ui #phone-container {
    left: calc(50% + var(--phone-pos-x));
    top: calc(50% + var(--phone-pos-y));
    right: auto;
    bottom: auto;
    transform: translate(-50%, calc(-50% + 14vh)) scale(var(--phone-scale, 1));
    transform-origin: center center;
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1),
        opacity 0.3s ease,
        left 0.3s ease,
        top 0.3s ease;
}

body.agency-pad-ui #phone-container.visible {
    transform: translate(-50%, -50%) scale(var(--phone-scale, 1));
    opacity: 1;
}

body.agency-pad-ui #phone-container.peek {
    transform: translate(-50%, calc(-50% + 42vh)) scale(var(--phone-scale, 1));
    opacity: 1;
}

body.agency-pad-ui #phone-container.peek.visible {
    transform: translate(-50%, -50%) scale(var(--phone-scale, 1));
}

body.agency-pad-ui #phone-frame {
    --home-indicator-clearance: 70px;
    --app-content-bottom-clearance: calc(var(--home-indicator-clearance) + 30px);
    --app-content-edge-spacer: calc(var(--home-indicator-clearance) + 22px);
    --liquid-screen-top-clearance: 98px;
    width: 1100px;
    height: 760px;
    top: 0;
    border-radius: 42px;
    border-width: 1.8px;
    /* Smooth wallpaper upscaling — prevents pixelation of 640px images on 1100px frame */
    image-rendering: auto;
    -webkit-image-rendering: auto;
    box-shadow:
        0 48px 108px rgba(0, 0, 0, 0.52),
        0 0 0 1px var(--shell-inner-ring),
        0 0 0 4px var(--shell-outer-ring),
        0 18px 42px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 var(--shell-top-highlight),
        inset 0 -1px 0 var(--shell-bottom-shadow),
        inset 1px 0 0 var(--shell-left-highlight),
        inset -1px 0 0 var(--shell-right-shadow);
}

body.agency-pad-ui #phone-frame::before {
    border-radius: inherit;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        inset 0 0 0 5px rgba(255, 255, 255, 0.03),
        inset 0 24px 30px rgba(255, 255, 255, 0.05),
        inset 0 -24px 34px rgba(0, 0, 0, 0.18);
}

body.agency-pad-ui #screen-container,
body.agency-pad-ui #lock-screen,
body.agency-pad-ui #home-screen,
body.agency-pad-ui .app-screen {
    border-radius: 34px;
}
/* Website demo ONLY: the iframe renders the pad at a scaled transform,
   which exposes the 8px gap between phone-frame's 42px outer radius and
   the screens' 34px radius as light rectangular corner patches. Mock-nui
   tags the iframe body with .web-demo so we can bump the radius ONLY in
   the landing demo — the FiveM NUI stays pixel-perfect and untouched. */
body.web-demo.agency-pad-ui #screen-container,
body.web-demo.agency-pad-ui #lock-screen,
body.web-demo.agency-pad-ui #home-screen,
body.web-demo.agency-pad-ui .app-screen,
body.web-demo.agency-pad-ui #_pad-wp-smooth,
body.web-demo.agency-pad-ui #_pad-wp-smooth-inner {
    border-radius: 40px !important;
}
body.web-demo.agency-pad-ui #phone-frame {
    border-radius: 40px !important;
}

body.agency-pad-ui #dynamic-island {
    top: 16px;
    width: 164px;
    height: 36px;
    border-radius: 26px;
}

body.agency-pad-ui .di-cutout-core {
    width: 96px;
    height: 28px;
}

body.agency-pad-ui .di-camera {
    left: calc(50% - 31px);
}

body.agency-pad-ui .di-sensor-ir {
    left: calc(50% + 26px);
}

body.agency-pad-ui .di-sensor-dot {
    left: calc(50% + 39px);
}

body.agency-pad-ui #di-faceid-border {
    top: 10px;
    left: 50%;
    width: 168px;
    height: 40px;
    transform: translateX(-50%);
}

body.agency-pad-ui #di-faceid-border.success {
    transform: translateX(-50%) scale(0.82);
}

/* ── Face ID overlay: align with the wider pad dynamic-island ── */
body.agency-pad-ui #faceid-overlay {
    top: 10px;
    width: 210px;
    padding: 56px 18px 22px;
    transform-origin: 50% 24px;
    border-radius: 36px;
}

body.agency-pad-ui #faceid-overlay.visible {
    transform: translateX(-50%) translateY(0) scale(1);
}

body.agency-pad-ui #faceid-overlay.success {
    width: 164px;
    padding: 34px 14px 16px;
    border-radius: 28px;
    transform: translateX(-50%) translateY(2px) scale(0.88);
}

body.agency-pad-ui #status-bar {
    padding: 24px 56px 0;
}

body.agency-pad-ui #status-time,
body.agency-pad-ui #status-icons {
    font-size: 15px;
}

body.agency-pad-ui .hw-btn,
body.agency-pad-ui .hw-btn-action,
body.agency-pad-ui .hw-btn-vol-up,
body.agency-pad-ui .hw-btn-vol-down,
body.agency-pad-ui .hw-btn-power {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
body.agency-pad-ui .hw-btn {
    border-radius: 0 0 4px 4px;
    top: -7px;
}

body.agency-pad-ui .hw-btn-action {
    width: 74px;
    height: 8px;
    left: 118px;
}

body.agency-pad-ui .hw-btn-vol-up {
    width: 76px;
    height: 8px;
    left: auto;
    right: 244px;
}

body.agency-pad-ui .hw-btn-vol-down {
    width: 76px;
    height: 8px;
    left: auto;
    right: 154px;
}

body.agency-pad-ui .hw-btn-power {
    width: 104px;
    height: 8px;
    right: 38px;
}

body.agency-pad-ui #hw-volume-hud {
    left: auto;
    right: 34px;
    top: 94px;
}

body.agency-pad-ui #cc-swipe-zone {
    width: 42%;
    height: 94px;
}

body.agency-pad-ui #nc-swipe-zone {
    width: 30%;
    height: 94px;
}

body.agency-pad-ui #cc-panel,
body.agency-pad-ui #nc-panel {
    top: 18px;
    bottom: 18px;
    width: 432px;
    max-height: calc(100% - 36px);
    padding: 18px 18px 22px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(22, 26, 34, 0.94), rgba(12, 14, 19, 0.88));
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
}

body.agency-pad-ui #cc-panel {
    left: auto;
    right: 18px;
    transform: translate3d(18%, -110%, 0) scale(0.96);
}

body.agency-pad-ui #control-center.visible #cc-panel {
    transform: translate3d(0, 0, 0) scale(1);
}

body.agency-pad-ui #control-center.closing #cc-panel {
    transform: translate3d(18%, -110%, 0) scale(0.96);
}

body.agency-pad-ui #nc-panel {
    left: 18px;
    right: auto;
    transform: translate3d(0, -118%, 0) scale(0.96);
}

body.agency-pad-ui #notification-center.visible #nc-panel {
    transform: translate3d(0, 0, 0) scale(1);
}

body.agency-pad-ui #notification-center.closing #nc-panel {
    transform: translate3d(0, -118%, 0) scale(0.96);
}

body.agency-pad-ui .cc-handle,
body.agency-pad-ui .nc-handle {
    margin: 4px auto 14px;
}

body.agency-pad-ui .cc-top {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 2px;
}

body.agency-pad-ui .cc-top-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body.agency-pad-ui .cc-top-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.44);
}

body.agency-pad-ui .cc-top-title {
    font-size: 24px;
    letter-spacing: -0.8px;
}

body.agency-pad-ui .cc-top-edit {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

body.agency-pad-ui .cc-top-edit:active {
    transform: scale(0.94);
    background: rgba(255, 255, 255, 0.14);
}

body.agency-pad-ui .cc-grid {
    gap: 12px;
    padding-bottom: 4px;
}

body.agency-pad-ui .keychain-ui-pad {
    padding: 24px 24px calc(var(--app-content-bottom-clearance, 70px) + 24px);
    min-height: 100%;
}

body.agency-pad-ui .keychain-shell.keychain-shell-pad {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

body.agency-pad-ui .keychain-sidebar,
body.agency-pad-ui .keychain-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

body.agency-pad-ui .keychain-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.agency-pad-ui .keychain-metric {
    min-height: 110px;
    border-radius: 26px;
}

body.agency-pad-ui .keychain-toolbar {
    gap: 14px;
}

body.agency-pad-ui .keychain-search {
    min-height: 58px;
    border-radius: 26px;
}

body.agency-pad-ui .keychain-group-card {
    padding: 18px 20px;
    border-radius: 30px;
}

body.agency-pad-ui .keychain-entry {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 16px;
}

body.agency-pad-ui .keychain-entry-side {
    justify-content: center;
    min-width: 260px;
}

body.agency-pad-ui .keychain-entry-title {
    font-size: 21px;
}

body.agency-pad-ui .keychain-entry-email {
    font-size: 14px;
}

body.agency-pad-ui .keychain-password-card {
    padding: 16px 18px;
    border-radius: 22px;
}

body.agency-pad-ui .keychain-action {
    min-height: 48px;
    border-radius: 18px;
}

body.agency-pad-ui .keychain-empty {
    min-height: 320px;
    border-radius: 34px;
}

/* Keychain light mode – Pad */
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-ui { color: #000; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-hero {
    background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(242,244,255,0.96));
    border-color: rgba(0,0,0,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 8px rgba(0,0,0,0.04);
}
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-hero::before { opacity: 0.06; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-kicker { color: rgba(0,0,0,0.48); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-title { color: #000; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-copy { color: rgba(0,0,0,0.52); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-link-btn { background: linear-gradient(135deg,#007aff,#0056cc); color: #fff; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-metric {
    border-color: rgba(0,0,0,0.08); background: rgba(255,255,255,0.92); color: #000;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 4px rgba(0,0,0,0.04);
}
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-metric:hover,
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-metric.active {
    border-color: rgba(0,122,255,0.32); background: linear-gradient(145deg,rgba(0,122,255,0.08),rgba(88,86,214,0.06));
}
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-metric-label { color: rgba(0,0,0,0.42); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-metric-value { color: #000; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-filter { border-color: rgba(0,0,0,0.08); background: rgba(255,255,255,0.92); color: rgba(0,0,0,0.62); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-filter.active { border-color: rgba(0,122,255,0.38); background: linear-gradient(135deg,rgba(0,122,255,0.12),rgba(88,86,214,0.1)); color: #007aff; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-search { border-color: rgba(0,0,0,0.08); background: rgba(255,255,255,0.92); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-search i { color: rgba(0,0,0,0.36); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-search input { color: #000; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-group-title { color: rgba(0,0,0,0.48); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-group-card {
    background: linear-gradient(180deg,rgba(255,255,255,0.96),rgba(248,249,255,0.92)), rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.08); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 2px 8px rgba(0,0,0,0.04);
}
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-entry { border-top-color: rgba(0,0,0,0.06); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-entry-title { color: #000; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-entry-subtitle { color: rgba(0,0,0,0.52); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-entry-email { color: rgba(0,0,0,0.42); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-pill { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.52); border-color: rgba(0,0,0,0.08); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-pill.is-accent { background: rgba(0,122,255,0.1); color: #007aff; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-pill.is-success { background: rgba(52,199,89,0.1); color: #248a3d; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-password-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.06); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-field-label { color: rgba(0,0,0,0.42); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-password-value { color: #000; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-action { background: rgba(0,0,0,0.04); color: rgba(0,0,0,0.68); border-color: rgba(0,0,0,0.06); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-action-primary { background: rgba(0,122,255,0.12); color: #007aff; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-action-success { background: rgba(52,199,89,0.12); color: #248a3d; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-empty {
    background: linear-gradient(180deg,rgba(255,255,255,0.96),rgba(248,249,255,0.92)), rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.08);
}
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-empty i { color: rgba(0,0,0,0.18); }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-empty-title { color: #000; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .keychain-empty-copy { color: rgba(0,0,0,0.46); }

body.agency-pad-ui .cc-toggle-group {
    gap: 8px;
    padding: 10px;
    border-radius: 22px;
}

body.agency-pad-ui .cc-toggle {
    min-height: 82px;
    gap: 6px;
}

body.agency-pad-ui .cc-toggle-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

body.agency-pad-ui .cc-toggle-label {
    font-size: 11px;
}

body.agency-pad-ui .cc-music-widget,
body.agency-pad-ui .cc-slider-row,
body.agency-pad-ui .cc-tile,
body.agency-pad-ui .cc-tile-wide {
    border-radius: 18px;
}

body.agency-pad-ui .cc-music-widget {
    padding: 12px;
}

body.agency-pad-ui .cc-row {
    gap: 10px;
}

body.agency-pad-ui .cc-tile {
    padding: 12px;
    min-height: 68px;
}

body.agency-pad-ui .cc-slider-row {
    padding: 12px 14px;
}

body.agency-pad-ui .cc-utils {
    gap: 10px;
}

body.agency-pad-ui .cc-util-btn {
    min-height: 70px;
    font-size: 20px;
}

body.agency-pad-ui #home-indicator {
    width: 228px;
    height: 6px;
    bottom: 14px;
    border-radius: 999px;
}

body.agency-pad-ui #home-screen {
    padding: 72px 42px 28px;
}

body.agency-pad-ui #home-clock {
    font-size: 86px;
    letter-spacing: -4.5px;
    margin-top: 0;
}

body.agency-pad-ui #lock-screen .lock-notification-stack,
body.agency-pad-ui #lock-notification-list {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

body.agency-pad-ui #home-screen .widget-grid,
body.agency-pad-ui #home-screen .home-widget-grid,
body.agency-pad-ui #home-screen .app-grid,
body.agency-pad-ui #home-screen .home-app-grid,
body.agency-pad-ui #home-screen .apps-grid,
body.agency-pad-ui #app-pages-container {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

body.agency-pad-ui .app-page,
body.agency-pad-ui #app-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px 18px;
    padding: 0 10px;
}

body.agency-pad-ui .app-header,
body.agency-pad-ui .screen-header {
    padding-left: 30px;
    padding-right: 30px;
}

body.agency-pad-ui .app-content {
    padding-left: 22px;
    padding-right: 22px;
}

body.agency-pad-ui #home-screen {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    grid-template-areas:
        "clock apps"
        "date apps"
        "dock apps"
        "label dots";
    column-gap: 30px;
    row-gap: 10px;
    align-items: start;
}

body.agency-pad-ui #home-clock {
    grid-area: clock;
    text-align: left;
    align-self: end;
    font-size: 96px;
    line-height: 0.9;
}

body.agency-pad-ui #home-date {
    grid-area: date;
    margin: 0;
    text-align: left;
    font-size: 16px;
}

body.agency-pad-ui #app-pages-container {
    grid-area: apps;
    min-height: 0;
    height: 100%;
}

body.agency-pad-ui #page-dots {
    grid-area: dots;
    justify-content: flex-start;
    padding: 2px 0 0;
}

body.agency-pad-ui #home-dock {
    grid-area: dock;
    width: 100%;
    margin: 12px 0 0;
    justify-content: space-between;
    align-self: end;
}

body.agency-pad-ui #home-os-label {
    grid-area: label;
    margin: 0;
    padding: 0;
    transform: none;
    text-align: left;
    align-self: start;
}

body.agency-pad-ui .app-page,
body.agency-pad-ui #app-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px 20px;
    padding: 4px 0;
}

body.agency-pad-ui .app-page .hw-widget-grid-item {
    grid-column: span 2;
}

body.agency-pad-ui .app-icon-label {
    max-width: 96px;
    font-size: 12px;
}

body.agency-pad-ui .dock-label {
    font-size: 11px;
}

body.agency-pad-ui #generic-app-content:not(.generic-game-mode) {
    display: grid;
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    padding: 24px;
    text-align: left;
}

body.agency-pad-ui #generic-app-content:not(.generic-game-mode) .generic-app-hero {
    position: sticky;
    top: 0;
    align-items: flex-start;
    text-align: left;
    padding: 24px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
}

body.agency-pad-ui #generic-app-content:not(.generic-game-mode) .generic-app-desc {
    max-width: none;
}

body.agency-pad-ui #generic-app-content:not(.generic-game-mode) #generic-app-body {
    width: 100%;
    padding: 0;
}

body.agency-pad-ui #generic-app-content.generic-garage-mode {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px 18px;
    min-height: 0;
}

body.agency-pad-ui #generic-app-content.generic-garage-mode .generic-app-hero {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 28px;
}

body.agency-pad-ui #generic-app-content.generic-garage-mode .generic-app-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 24px;
}

body.agency-pad-ui #generic-app-content.generic-garage-mode .generic-app-name {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
}

body.agency-pad-ui #generic-app-content.generic-garage-mode .generic-app-desc {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    max-width: 520px;
}

body.agency-pad-ui #generic-app-content.generic-garage-mode #generic-app-body {
    flex: 1;
    min-height: 0;
    display: flex;
}

body.agency-pad-ui .generic-data-stage {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    box-sizing: border-box;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .generic-data-stage--single,
body.agency-pad-ui .generic-data-stage--stacked {
    max-width: 920px;
    margin: 0 auto;
}

body.agency-pad-ui .garage-pad-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

body.agency-pad-ui .garage-pad-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.agency-pad-ui .garage-pad-summary-card,
body.agency-pad-ui .garage-pad-list-shell,
body.agency-pad-ui .garage-pad-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(9, 14, 24, 0.74);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 42px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(26px) saturate(155%);
    -webkit-backdrop-filter: blur(26px) saturate(155%);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-summary-card,
body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-list-shell,
body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.86)),
        rgba(255, 255, 255, 0.9);
    border-color: rgba(17, 24, 39, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 16px 34px rgba(35, 52, 84, 0.1);
}

body.agency-pad-ui .garage-pad-summary-card {
    padding: 14px 16px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.agency-pad-ui .garage-pad-summary-card span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-summary-card span {
    color: rgba(17, 24, 39, 0.48);
}

body.agency-pad-ui .garage-pad-summary-card strong {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.06em;
    color: #fff;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-summary-card strong {
    color: var(--text-primary);
}

body.agency-pad-ui .garage-pad-list-shell {
    flex: 1;
    min-height: 0;
    border-radius: 28px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.agency-pad-ui .garage-pad-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

body.agency-pad-ui .garage-pad-list-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-list-title {
    color: var(--text-primary);
}

body.agency-pad-ui .garage-pad-list-sub {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-list-sub {
    color: var(--text-secondary);
}

body.agency-pad-ui .garage-pad-list {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
}

body.agency-pad-ui .garage-pad-card {
    border-radius: 24px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.agency-pad-ui .garage-pad-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.agency-pad-ui .garage-pad-card-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.agency-pad-ui .garage-pad-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #5856d6, #4240b0);
    box-shadow: 0 12px 24px rgba(88, 86, 214, 0.24);
}

body.agency-pad-ui .garage-pad-card-copy {
    min-width: 0;
}

body.agency-pad-ui .garage-pad-card-name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-card-name {
    color: var(--text-primary);
}

body.agency-pad-ui .garage-pad-card-plate {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.52);
    letter-spacing: 0.04em;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-card-plate {
    color: var(--text-secondary);
}

body.agency-pad-ui .garage-pad-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

body.agency-pad-ui .garage-pad-status {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .garage-pad-status.is-stored {
    background: rgba(52, 199, 89, 0.18);
    color: #8ff0a8;
}

body.agency-pad-ui .garage-pad-status.is-out {
    background: rgba(255, 159, 10, 0.18);
    color: #ffc775;
}

body.agency-pad-ui .garage-pad-spawn-btn {
    min-height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.84), rgba(88, 86, 214, 0.76));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: Inter, sans-serif;
    white-space: nowrap;
    box-shadow: 0 12px 22px rgba(10, 132, 255, 0.18);
}

body.agency-pad-ui .garage-pad-spawn-btn.is-cooldown {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    box-shadow: none;
}

body.agency-pad-ui .garage-pad-spawn-btn.is-success {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.88), rgba(48, 209, 88, 0.76));
}

body.agency-pad-ui .garage-pad-spawn-btn.is-error {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.9), rgba(255, 111, 105, 0.8));
}

body.agency-pad-ui .garage-pad-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.agency-pad-ui .garage-pad-metric {
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

body.agency-pad-ui .garage-pad-metric span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

body.agency-pad-ui .garage-pad-metric strong {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

body.agency-pad-ui .garage-pad-metric-accent {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.18), rgba(10, 132, 255, 0.14));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-metric {
    background: rgba(17, 24, 39, 0.04);
    border-color: rgba(17, 24, 39, 0.06);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-metric span {
    color: rgba(17, 24, 39, 0.5);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .garage-pad-metric strong {
    color: var(--text-primary);
}

body.agency-pad-ui .garage-pad-empty,
body.agency-pad-ui .garage-pad-loading {
    flex: 1;
    min-height: 220px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

body.agency-pad-ui .garage-pad-empty i {
    font-size: 34px;
    opacity: 0.36;
}

body.agency-pad-ui .garage-pad-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

body.agency-pad-ui .garage-pad-empty-sub {
    max-width: 340px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 1200px) {
    body.agency-pad-ui .garage-pad-summary,
    body.agency-pad-ui .garage-pad-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.agency-pad-ui .garage-pad-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.agency-pad-ui .generic-data-footer {
    padding-top: 16px;
    border-top: 1px solid var(--separator);
}

body.agency-pad-ui #generic-app-content.generic-game-mode {
    background:
        radial-gradient(circle at top left, rgba(10, 132, 255, 0.1), transparent 34%),
        radial-gradient(circle at top right, rgba(94, 92, 230, 0.12), transparent 32%),
        #02050b;
}

body.agency-pad-ui .generic-casino-stage,
body.agency-pad-ui .roulette-stage {
    width: 100%;
    max-width: 100%;
    padding: 40px 60px 50px;
    gap: 32px;
}

body.agency-pad-ui .generic-casino-stage--wide {
    width: 100%;
    max-width: 100%;
}

body.agency-pad-ui .generic-casino-reels {
    gap: 24px;
    transform: scale(1.6);
    margin: 40px 0 50px;
}

body.agency-pad-ui .generic-casino-balance,
body.agency-pad-ui .roulette-balance {
    font-size: 24px;
    font-weight: 800;
}

body.agency-pad-ui .generic-casino-result {
    font-size: 22px;
}

body.agency-pad-ui .generic-casino-bet-row {
    gap: 18px;
}

body.agency-pad-ui .generic-casino-bets {
    gap: 18px;
}

body.agency-pad-ui .generic-casino-bet-chip {
    min-width: 90px;
    padding: 16px 24px;
    font-size: 18px;
    border-radius: 16px;
}

body.agency-pad-ui .generic-casino-info {
    font-size: 16px;
}

body.agency-pad-ui .generic-casino-spin-btn,
body.agency-pad-ui .generic-casino-action-btn {
    padding: 22px 60px;
    font-size: 20px;
    border-radius: 20px;
    min-width: 300px;
}

body.agency-pad-ui .roulette-wheel-wrap {
    transform: scale(1.5);
    margin: 30px 0 40px;
}

body.agency-pad-ui .generic-casino-color-row {
    gap: 18px;
}

body.agency-pad-ui .generic-casino-color-btn {
    padding: 16px 36px;
    font-size: 18px;
    border-radius: 16px;
}

body.agency-pad-ui .generic-casino-dice-wrap {
    transform: scale(1.4);
    margin: 20px 0;
}

body.agency-pad-ui .generic-casino-coin-wrap {
    transform: scale(1.5);
    margin: 30px 0;
}

/* Casino/Gambling apps light mode */
#phone-frame:not(.dark-mode) .generic-casino-stage,
#phone-frame:not(.dark-mode) .roulette-stage {
    background: linear-gradient(180deg, #f0f2f8 0%, #e6eaf4 100%) !important;
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .generic-casino-stage div,
#phone-frame:not(.dark-mode) .generic-casino-stage span,
#phone-frame:not(.dark-mode) .generic-casino-stage p,
#phone-frame:not(.dark-mode) .generic-casino-stage strong,
#phone-frame:not(.dark-mode) .generic-casino-stage button,
#phone-frame:not(.dark-mode) .roulette-stage div,
#phone-frame:not(.dark-mode) .roulette-stage span,
#phone-frame:not(.dark-mode) .roulette-stage p,
#phone-frame:not(.dark-mode) .roulette-stage strong,
#phone-frame:not(.dark-mode) .roulette-stage button {
    color: #1c1c1e !important;
}

body.agency-pad-ui .generic-casino-stage--wide {
    width: min(100%, 860px);
}

body.agency-pad-ui .generic-casino-reels,
body.agency-pad-ui .generic-casino-bets,
body.agency-pad-ui .generic-casino-bet-row {
    gap: 12px;
}

body.agency-pad-ui .flappy-shell {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 12px 14px 16px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    overflow: hidden;
}

body.agency-pad-ui .flappy-panel {
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(9, 14, 24, 0.74);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 54px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
}

body.agency-pad-ui .flappy-sidebar {
    height: 100%;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

body.agency-pad-ui .flappy-brand-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.agency-pad-ui .flappy-brand-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
    background: linear-gradient(145deg, #ffe27a, #ffb347);
    box-shadow: 0 16px 36px rgba(255, 180, 71, 0.26);
}

body.agency-pad-ui .flappy-kicker,
body.agency-pad-ui .flappy-stage-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

body.agency-pad-ui .flappy-title {
    margin-top: 2px;
    font-size: 30px;
    line-height: 0.98;
    letter-spacing: -0.06em;
    font-weight: 900;
    color: #fff;
}

body.agency-pad-ui .flappy-copy {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.7);
}

body.agency-pad-ui .flappy-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.agency-pad-ui .flappy-stat-card {
    padding: 12px 12px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.agency-pad-ui .flappy-stat-card span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

body.agency-pad-ui .flappy-stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    color: #fff;
}

body.agency-pad-ui .flappy-control-card {
    margin-top: auto;
    padding: 14px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(20, 31, 52, 0.82), rgba(11, 16, 27, 0.92)),
        linear-gradient(135deg, rgba(100, 210, 255, 0.18), rgba(127, 90, 240, 0.12) 72%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

body.agency-pad-ui .flappy-control-card.running {
    background:
        linear-gradient(180deg, rgba(15, 36, 53, 0.82), rgba(9, 18, 29, 0.92)),
        linear-gradient(135deg, rgba(52, 199, 89, 0.18), rgba(100, 210, 255, 0.12) 72%);
}

body.agency-pad-ui .flappy-control-card.crashed {
    background:
        linear-gradient(180deg, rgba(44, 24, 36, 0.86), rgba(18, 12, 20, 0.94)),
        linear-gradient(135deg, rgba(255, 95, 109, 0.24), rgba(255, 183, 71, 0.1) 70%);
}

body.agency-pad-ui .flappy-status-chip {
    align-self: flex-start;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8bddff;
    background: rgba(100, 210, 255, 0.14);
}

body.agency-pad-ui .flappy-control-card.running .flappy-status-chip {
    color: #84f1a9;
    background: rgba(52, 199, 89, 0.16);
}

body.agency-pad-ui .flappy-control-card.crashed .flappy-status-chip {
    color: #ffb4c0;
    background: rgba(255, 95, 109, 0.18);
}

body.agency-pad-ui .flappy-state-title {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: #fff;
}

body.agency-pad-ui .flappy-hi-inline,
body.agency-pad-ui .flappy-state-copy {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.7);
}

body.agency-pad-ui .flappy-hint-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

body.agency-pad-ui .flappy-hint-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 700;
}

body.agency-pad-ui .flappy-start-btn {
    margin-top: 2px;
    min-height: 48px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #4cd964, #34a853);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 14px 28px rgba(52, 168, 83, 0.3);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.agency-pad-ui .flappy-start-btn:active {
    transform: scale(0.98);
}

body.agency-pad-ui .flappy-stage-shell {
    min-height: 0;
    height: 100%;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

body.agency-pad-ui .flappy-stage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
}

body.agency-pad-ui .flappy-stage-title {
    margin-top: 2px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
}

body.agency-pad-ui .flappy-stage-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.agency-pad-ui .flappy-stage-status,
body.agency-pad-ui .flappy-score-pill {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .flappy-stage-status {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

body.agency-pad-ui .flappy-score-pill {
    min-width: 68px;
    font-size: 24px;
    letter-spacing: -0.05em;
    color: #fff;
    background: linear-gradient(135deg, rgba(100, 210, 255, 0.2), rgba(127, 90, 240, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.agency-pad-ui .flappy-stage {
    margin: 0;
    flex: 1;
    min-height: 0;
    height: 100%;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

body.agency-pad-ui .flappy-stage-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(5, 16, 24, 0.08), rgba(5, 16, 24, 0) 16%, rgba(5, 16, 24, 0) 82%, rgba(5, 16, 24, 0.12));
    z-index: 1;
}

body.agency-pad-ui .flappy-stage-tip {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 18, 29, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.agency-pad-ui .flappy-stage-tip.active {
    transform: translateX(-50%) translateY(-2px);
}

@media (max-height: 860px) {
    body.agency-pad-ui .flappy-shell {
        height: 100%;
        max-height: 100%;
        grid-template-columns: 238px minmax(0, 1fr);
        padding-bottom: 12px;
    }

    body.agency-pad-ui .flappy-brand-icon {
        width: 66px;
        height: 66px;
        font-size: 30px;
    }

    body.agency-pad-ui .flappy-title {
        font-size: 27px;
    }

    body.agency-pad-ui .flappy-copy,
    body.agency-pad-ui .flappy-hi-inline,
    body.agency-pad-ui .flappy-state-copy {
        font-size: 11px;
        line-height: 1.38;
    }

    body.agency-pad-ui .flappy-stat-card strong {
        font-size: 24px;
    }

    body.agency-pad-ui .flappy-state-title {
        font-size: 18px;
    }

    body.agency-pad-ui .flappy-start-btn {
        min-height: 44px;
    }

    body.agency-pad-ui .flappy-stage-title {
        font-size: 22px;
    }

    body.agency-pad-ui .flappy-stage-status,
    body.agency-pad-ui .flappy-score-pill {
        min-height: 38px;
    }
}

body.agency-pad-ui .g2048-stage {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

body.agency-pad-ui .g2048-shell {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    align-items: center;
    padding: 0 40px;
}

body.agency-pad-ui .g2048-head {
    align-items: flex-start;
    gap: 24px;
}

body.agency-pad-ui .g2048-title {
    font-size: 96px;
    font-weight: 900;
}

body.agency-pad-ui .g2048-stats {
    gap: 16px;
    width: 100%;
}

body.agency-pad-ui .g2048-stat {
    padding: 22px 24px;
    border-radius: 22px;
}

body.agency-pad-ui .g2048-stat span {
    font-size: 13px;
    letter-spacing: 0.8px;
}

body.agency-pad-ui .g2048-stat strong {
    font-size: 42px;
}

body.agency-pad-ui .g2048-board {
    width: 480px !important;
    height: 480px !important;
    max-width: none !important;
    border-radius: 32px;
    padding: 18px;
    gap: 16px;
    justify-self: center;
}

body.agency-pad-ui .g2048-cell {
    border-radius: 18px;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
}

body.agency-pad-ui #g2048-msg {
    grid-column: 1;
    font-size: 18px;
}

body.agency-pad-ui #g2048-new {
    grid-column: 1;
    justify-self: start;
    min-width: 280px;
    padding: 22px 48px;
    font-size: 22px;
    border-radius: 22px;
}

body.agency-pad-ui #app-dialer .dialer-liquid-shell {
    padding: 58px 24px calc(var(--home-indicator-clearance) + 10px);
}

body.agency-pad-ui #app-dialer .dialer-liquid-toolbar,
body.agency-pad-ui #app-dialer .dialer-liquid-hero,
body.agency-pad-ui #app-dialer .dialer-search-shell,
body.agency-pad-ui #app-dialer .dialer-liquid-body,
body.agency-pad-ui #app-dialer .dialer-floating-footer {
    width: min(100%, 860px);
    margin-left: auto;
    margin-right: auto;
}

body.agency-pad-ui #app-dialer .dialer-liquid-hero {
    padding: 0 0 6px;
    text-align: left;
}

body.agency-pad-ui #app-dialer .dialer-liquid-title {
    font-size: 40px;
}

body.agency-pad-ui #app-dialer .dialer-search-shell {
    margin: 10px auto 14px;
}

body.agency-pad-ui #app-dialer #dialer-favorites-view,
body.agency-pad-ui #app-dialer #dialer-recents-view,
body.agency-pad-ui #app-dialer #dialer-contacts-view {
    padding-left: 0;
    padding-right: 0;
}

body.agency-pad-ui #app-dialer .dialer-keypad-shell {
    max-width: 760px;
    margin: 0 auto;
}

body.agency-pad-ui #app-postbox .mail-liquid-shell {
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
    padding-left: 26px;
    padding-right: 26px;
}

body.agency-pad-ui #app-postbox .mail-app-content {
    min-height: 100%;
    background:
        radial-gradient(circle at 12% 8%, rgba(var(--device-accent-rgb), 0.16), transparent 26%),
        radial-gradient(circle at 88% 14%, rgba(106, 112, 255, 0.16), transparent 24%),
        radial-gradient(circle at 78% 84%, rgba(56, 164, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(7, 10, 18, 0.96), rgba(12, 16, 26, 0.88));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-postbox .mail-app-content {
    background:
        radial-gradient(circle at 14% 6%, rgba(var(--device-accent-rgb), 0.14), transparent 26%),
        radial-gradient(circle at 86% 84%, rgba(139, 97, 255, 0.1), transparent 30%),
        linear-gradient(180deg, #f9fbff 0%, #eef3fb 100%);
}

body.agency-pad-ui #app-postbox .mail-root {
    min-height: 100%;
}

body.agency-pad-ui #phone-frame.dark-mode #app-postbox .mail-liquid-shell {
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.035), transparent 24%),
        linear-gradient(180deg, rgba(8, 10, 18, 0.36), rgba(8, 10, 18, 0.08));
}

body.agency-pad-ui #app-police-mdt,
body.agency-pad-ui #app-ems-mdt,
body.agency-pad-ui #app-mechanic-mdt {
    display: grid !important;
    grid-template-columns: 282px 1fr;
    grid-template-rows: auto 1fr;
    background:
        radial-gradient(circle at 10% 6%, rgba(var(--device-accent-rgb), 0.22), transparent 22%),
        radial-gradient(circle at 92% 88%, rgba(100, 140, 255, 0.16), transparent 24%),
        radial-gradient(circle at 55% 35%, rgba(var(--device-accent-rgb), 0.06), transparent 40%),
        linear-gradient(180deg, rgba(9, 12, 21, 0.99), rgba(6, 9, 16, 0.97));
}

body.agency-pad-ui #app-police-mdt > .app-header,
body.agency-pad-ui #app-ems-mdt > .app-header,
body.agency-pad-ui #app-mechanic-mdt > .app-header {
    grid-column: 1 / -1;
}

body.agency-pad-ui .mdt-pad-sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 18px 28px;
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body.agency-pad-ui .mdt-pad-stage {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 24px 32px;
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-police-mdt,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-ems-mdt,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-mechanic-mdt {
    background:
        radial-gradient(circle at 8% 4%, rgba(var(--device-accent-rgb), 0.16), transparent 22%),
        radial-gradient(circle at 90% 90%, rgba(85, 150, 255, 0.12), transparent 26%),
        radial-gradient(circle at 50% 40%, rgba(var(--device-accent-rgb), 0.04), transparent 38%),
        linear-gradient(180deg, #f5f8ff 0%, #e8eef9 100%);
}

body.agency-pad-ui #app-police-mdt .app-header,
body.agency-pad-ui #app-ems-mdt .app-header,
body.agency-pad-ui #app-mechanic-mdt .app-header {
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(180deg, rgba(9, 12, 18, 0.92), rgba(13, 17, 26, 0.78));
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

body.agency-pad-ui #app-police-mdt .app-header.police {
    background:
        radial-gradient(circle at 18% 50%, rgba(0, 122, 255, 0.32), transparent 38%),
        radial-gradient(circle at 80% 40%, rgba(48, 100, 220, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(6, 32, 78, 0.88), rgba(10, 16, 26, 0.88));
}

body.agency-pad-ui #app-ems-mdt .app-header.ems,
body.agency-pad-ui #app-mechanic-mdt .app-header.ems {
    background:
        radial-gradient(circle at 18% 50%, rgba(255, 59, 48, 0.32), transparent 38%),
        radial-gradient(circle at 80% 40%, rgba(220, 48, 48, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(70, 14, 16, 0.90), rgba(10, 16, 26, 0.88));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-police-mdt .app-header.police {
    background:
        radial-gradient(circle at 18% 50%, rgba(0, 122, 255, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(235, 242, 255, 0.96), rgba(220, 232, 255, 0.92));
    border-bottom-color: rgba(31, 52, 84, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-ems-mdt .app-header.ems {
    background:
        radial-gradient(circle at 18% 50%, rgba(255, 59, 48, 0.14), transparent 38%),
        linear-gradient(135deg, rgba(255, 240, 240, 0.96), rgba(255, 228, 228, 0.92));
    border-bottom-color: rgba(84, 31, 31, 0.08);
}

/* Mechanic MDT uses an orange accent (different from EMS red). The HTML still
   applies `.ems` for legacy reasons, so we override with a higher-specificity
   selector keyed on the mechanic app id. */
body.agency-pad-ui #app-mechanic-mdt .app-header.ems {
    background:
        radial-gradient(circle at 18% 50%, rgba(255, 149, 0, 0.32), transparent 38%),
        radial-gradient(circle at 80% 40%, rgba(255, 149, 0, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(68, 40, 12, 0.90), rgba(10, 16, 26, 0.88));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-mechanic-mdt .app-header.ems {
    background:
        radial-gradient(circle at 18% 50%, rgba(255, 149, 0, 0.14), transparent 38%),
        linear-gradient(135deg, rgba(255, 248, 236, 0.96), rgba(255, 240, 220, 0.92));
    border-bottom-color: rgba(120, 80, 20, 0.08);
}

body.agency-pad-ui #app-police-mdt .app-header .app-title,
body.agency-pad-ui #app-ems-mdt .app-header .app-title,
body.agency-pad-ui #app-mechanic-mdt .app-header .app-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.agency-pad-ui .mdt-pad-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 18px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 12%, rgba(var(--device-accent-rgb), 0.06), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.agency-pad-ui .mdt-pad-sidebar::-webkit-scrollbar { width: 3px; }
body.agency-pad-ui .mdt-pad-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-pad-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); }

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-pad-sidebar {
    border-right-color: rgba(26, 40, 68, 0.08);
    background:
        radial-gradient(circle at 50% 12%, rgba(var(--device-accent-rgb), 0.06), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(241, 246, 255, 0.66));
}

body.agency-pad-ui .mdt-side-hero,
body.agency-pad-ui .mdt-side-snapshot,
body.agency-pad-ui .mdt-tab,
body.agency-pad-ui .mdt-pane,
body.agency-pad-ui .mdt-toolbar-panel,
body.agency-pad-ui .mdt-dashboard-card,
body.agency-pad-ui .mdt-mini-tile,
body.agency-pad-ui .mdt-command-button {
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02),
        0 20px 40px rgba(0, 0, 0, 0.18),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, border-color 200ms ease;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-side-hero,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-side-snapshot,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-tab,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-pane,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-toolbar-panel,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-dashboard-card,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-mini-tile,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-command-button {
    border-color: rgba(31, 52, 84, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4),
        0 16px 32px rgba(67, 96, 143, 0.12),
        0 3px 10px rgba(67, 96, 143, 0.06);
}

body.agency-pad-ui .mdt-side-hero {
    border-radius: 28px;
    padding: 20px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-side-hero {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.88));
}

body.agency-pad-ui .mdt-side-hero.police {
    background:
        radial-gradient(circle at 90% 6%, rgba(0, 122, 255, 0.36), transparent 26%),
        radial-gradient(circle at 10% 90%, rgba(48, 100, 220, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(15, 22, 40, 0.90), rgba(11, 17, 29, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(0, 122, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02),
        0 20px 40px rgba(0, 0, 0, 0.18),
        0 0 60px rgba(0, 122, 255, 0.06);
}

body.agency-pad-ui .mdt-side-hero.ems {
    background:
        radial-gradient(circle at 90% 6%, rgba(255, 59, 48, 0.36), transparent 26%),
        radial-gradient(circle at 10% 90%, rgba(220, 48, 48, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(28, 16, 18, 0.92), rgba(13, 16, 24, 0.88));
    box-shadow:
        inset 0 1px 0 rgba(255, 59, 48, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02),
        0 20px 40px rgba(0, 0, 0, 0.18),
        0 0 60px rgba(255, 59, 48, 0.06);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-side-hero.police {
    background:
        radial-gradient(circle at 90% 8%, rgba(0, 122, 255, 0.22), transparent 28%),
        radial-gradient(circle at 10% 88%, rgba(48, 100, 220, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(240, 246, 255, 0.98), rgba(228, 238, 255, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 16px 32px rgba(0, 80, 180, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-side-hero.ems {
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 59, 48, 0.18), transparent 28%),
        radial-gradient(circle at 10% 88%, rgba(220, 48, 48, 0.06), transparent 30%),
        linear-gradient(180deg, rgba(255, 244, 244, 0.98), rgba(255, 236, 236, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 16px 32px rgba(180, 40, 40, 0.06);
}

body.agency-pad-ui .mdt-side-eyebrow,
body.agency-pad-ui .mdt-page-kicker {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

body.agency-pad-ui .mdt-side-hero h2 {
    margin: 10px 0 8px;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 800;
    color: var(--text-primary);
}

body.agency-pad-ui .mdt-side-hero p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
}

body.agency-pad-ui .mdt-side-snapshot {
    border-radius: 24px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-side-snapshot {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 255, 0.82));
}

body.agency-pad-ui .mdt-side-stat {
    min-width: 0;
    border-radius: 20px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-side-stat {
    background: rgba(89, 123, 191, 0.06);
}

body.agency-pad-ui .mdt-side-stat span,
body.agency-pad-ui .mdt-dashboard-card span,
body.agency-pad-ui .mdt-mini-tile span {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

body.agency-pad-ui .mdt-side-stat strong {
    display: block;
    margin-top: 10px;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    color: var(--text-primary);
}

body.agency-pad-ui .mdt-tab {
    appearance: none;
    width: 100%;
    border-radius: 22px;
    padding: 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-tab {
    background: rgba(89, 123, 191, 0.05);
}

body.agency-pad-ui .mdt-tab:hover {
    transform: translateY(-1px);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-tab:hover {
    background: rgba(89, 123, 191, 0.10);
}

body.agency-pad-ui .mdt-tab.active {
    color: #fff;
    border-color: rgba(var(--device-accent-rgb), 0.40);
    background:
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.30), rgba(86, 130, 255, 0.22));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 8px 24px rgba(var(--device-accent-rgb), 0.16),
        0 0 40px rgba(var(--device-accent-rgb), 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-tab.active {
    color: #16335e;
    border-color: rgba(var(--device-accent-rgb), 0.28);
    background:
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.22), rgba(125, 166, 255, 0.18));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 6px 20px rgba(var(--device-accent-rgb), 0.10);
}

body.agency-pad-ui .mdt-tab i {
    width: 18px;
    text-align: center;
}

body.agency-pad-ui .mdt-pad-stage {
    padding: 24px 24px 32px;
}

body.agency-pad-ui .mdt-tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
}

body.agency-pad-ui .mdt-tab-content::-webkit-scrollbar { width: 3px; }
body.agency-pad-ui .mdt-tab-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-tab-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); }

body.agency-pad-ui .mdt-tab-content.active {
    display: flex;
    animation: mdtTabFadeIn 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mdtTabFadeIn {
    from { opacity: 0; transform: translateY(8px) scale(0.99); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

body.agency-pad-ui .mdt-page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-radius: 30px;
    padding: 24px 26px;
    background:
        radial-gradient(circle at 88% 10%, rgba(var(--device-accent-rgb), 0.32), transparent 24%),
        radial-gradient(circle at 12% 85%, rgba(var(--device-accent-rgb), 0.10), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.16),
        0 0 80px rgba(var(--device-accent-rgb), 0.04);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-page-hero {
    background:
        radial-gradient(circle at 88% 10%, rgba(var(--device-accent-rgb), 0.20), transparent 26%),
        radial-gradient(circle at 12% 85%, rgba(var(--device-accent-rgb), 0.06), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 255, 0.92));
    border-color: rgba(31, 52, 84, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 20px 40px rgba(67, 96, 143, 0.10);
}

body.agency-pad-ui .mdt-page-hero.compact {
    padding-bottom: 20px;
}

body.agency-pad-ui .mdt-page-hero.police {
    background:
        radial-gradient(circle at 86% 12%, rgba(0, 122, 255, 0.22), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

body.agency-pad-ui .mdt-page-hero.ems {
    background:
        radial-gradient(circle at 86% 12%, rgba(255, 59, 48, 0.20), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-page-hero.police {
    background:
        radial-gradient(circle at 86% 12%, rgba(0, 122, 255, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 255, 0.90));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-page-hero.ems {
    background:
        radial-gradient(circle at 86% 12%, rgba(255, 59, 48, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 255, 0.90));
}

body.agency-pad-ui .mdt-page-hero h1 {
    margin: 10px 0 8px;
    font-size: 40px;
    line-height: 1;
    font-weight: 800;
    color: var(--text-primary);
}

body.agency-pad-ui .mdt-page-hero p {
    max-width: 620px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

body.agency-pad-ui .mdt-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.agency-pad-ui .mdt-page-actions > .mdt-select {
    width: auto;
    min-width: 210px;
}

body.agency-pad-ui .mdt-pill-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 12px 15px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

body.agency-pad-ui .mdt-pill-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-pill-btn {
    border-color: rgba(31, 52, 84, 0.10);
    background: rgba(255, 255, 255, 0.94);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-pill-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(31, 52, 84, 0.14);
}

body.agency-pad-ui .mdt-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.agency-pad-ui .mdt-dashboard-card {
    border-radius: 24px;
    padding: 18px 18px 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}

body.agency-pad-ui .mdt-dashboard-card:hover {
    transform: translateY(-2px) scale(1.01);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-dashboard-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(241, 246, 255, 0.86));
}

body.agency-pad-ui .mdt-dashboard-card strong {
    display: block;
    margin-top: 12px;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: var(--text-primary);
}

body.agency-pad-ui .mdt-dashboard-card.ems {
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 59, 48, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-dashboard-card.ems {
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 59, 48, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 255, 0.84));
}

body.agency-pad-ui .mdt-dashboard-card small {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
}

body.agency-pad-ui .mdt-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.78fr);
    gap: 14px;
    min-height: 0;
    flex: 1;
}

body.agency-pad-ui .mdt-body-grid.single {
    grid-template-columns: minmax(0, 1fr);
}

body.agency-pad-ui .mdt-pane {
    min-width: 0;
    min-height: 0;
    border-radius: 28px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
    position: relative;
    overflow: visible;
}

body.agency-pad-ui .mdt-pane::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    top: -40px;
    right: -40px;
    border-radius: 999px;
    background: rgba(var(--device-accent-rgb), 0.06);
    filter: blur(50px);
    pointer-events: none;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-pane {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 246, 255, 0.88));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-pane::before {
    background: rgba(var(--device-accent-rgb), 0.04);
}

body.agency-pad-ui .mdt-pane-rail {
    gap: 12px;
}

body.agency-pad-ui .mdt-pane-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.agency-pad-ui .mdt-pane-head h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.08;
    font-weight: 800;
    color: var(--text-primary);
}

body.agency-pad-ui .mdt-pane-head p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

body.agency-pad-ui .mdt-inline-count,
body.agency-pad-ui .mdt-chip-status {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-inline-count,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-chip-status {
    background: rgba(89, 123, 191, 0.10);
}

body.agency-pad-ui .mdt-stack-list {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-height: 100%;
    padding-right: 4px;
}

body.agency-pad-ui .mdt-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.agency-pad-ui .mdt-mini-tile {
    border-radius: 22px;
    padding: 14px 14px 12px;
    background: rgba(255, 255, 255, 0.04);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-mini-tile {
    background: rgba(89, 123, 191, 0.06);
}

body.agency-pad-ui .mdt-mini-tile strong {
    display: block;
    margin-top: 12px;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    color: var(--text-primary);
}

body.agency-pad-ui .mdt-command-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.agency-pad-ui .mdt-command-button {
    appearance: none;
    width: 100%;
    border-radius: 20px;
    padding: 14px 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease, box-shadow 200ms ease;
}

body.agency-pad-ui .mdt-command-button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.07);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-command-button {
    background: rgba(255, 255, 255, 0.94);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-command-button:hover {
    background: rgba(255, 255, 255, 0.98);
}

body.agency-pad-ui .mdt-command-button i {
    width: 16px;
    margin-top: 2px;
    color: rgba(var(--device-accent-rgb), 0.95);
}

body.agency-pad-ui .mdt-command-button span {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-secondary);
}

body.agency-pad-ui .mdt-toolbar-panel {
    border-radius: 26px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-toolbar-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(242, 246, 255, 0.88));
}

body.agency-pad-ui .mdt-inline-toggles {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.agency-pad-ui .mdt-search-toggle {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

body.agency-pad-ui .mdt-search-toggle {
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

body.agency-pad-ui .mdt-search-toggle:hover {
    transform: translateY(-1px);
}

body.agency-pad-ui .mdt-search-toggle.active {
    background:
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.32), rgba(86, 130, 255, 0.20));
    color: #fff;
    border-color: rgba(var(--device-accent-rgb), 0.40);
    box-shadow: 0 6px 20px rgba(var(--device-accent-rgb), 0.14);
}

body.agency-pad-ui .mdt-inline-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 8px;
}

body.agency-pad-ui .mdt-inline-search.single {
    max-width: 720px;
}

body.agency-pad-ui .mdt-form-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.agency-pad-ui .mdt-form-grid {
    display: grid;
    gap: 8px;
}

body.agency-pad-ui .mdt-form-grid.two,
body.agency-pad-ui .mdt-form-grid.intake {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.agency-pad-ui .mdt-form-grid.bolo {
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: start;
}

body.agency-pad-ui .mdt-input,
body.agency-pad-ui .mdt-select {
    width: 100%;
    min-width: 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.45;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

body.agency-pad-ui .mdt-select option {
    background: #1c1c1e;
    color: #fff;
}

body.agency-pad-ui .mdt-input:focus,
body.agency-pad-ui .mdt-select:focus {
    outline: none;
    border-color: rgba(var(--device-accent-rgb), 0.40);
    box-shadow: 0 0 0 3px rgba(var(--device-accent-rgb), 0.10), 0 0 24px rgba(var(--device-accent-rgb), 0.06);
    background: rgba(255, 255, 255, 0.07);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-input,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-select {
    border-color: rgba(31, 52, 84, 0.10);
    background: rgba(255, 255, 255, 0.95);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-select option {
    background: #fff;
    color: #1c1c1e;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-input:focus,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-select:focus {
    border-color: rgba(var(--device-accent-rgb), 0.36);
    box-shadow: 0 0 0 3px rgba(var(--device-accent-rgb), 0.08), 0 0 20px rgba(var(--device-accent-rgb), 0.04);
    background: rgba(255, 255, 255, 0.98);
}

body.agency-pad-ui .mdt-input::placeholder {
    color: var(--text-tertiary);
}

body.agency-pad-ui .mdt-textarea {
    min-height: 120px;
    resize: vertical;
}

body.agency-pad-ui .mdt-textarea.compact {
    min-height: 110px;
}

body.agency-pad-ui .mdt-textarea.tall {
    min-height: 150px;
}

body.agency-pad-ui .mdt-textarea.xl {
    min-height: 180px;
}

body.agency-pad-ui .mdt-button-row,
body.agency-pad-ui .mdt-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.agency-pad-ui .mdt-button-row > *,
body.agency-pad-ui .mdt-card-actions > * {
    flex: 1 1 0;
}

body.agency-pad-ui .mdt-form-stack > .mdt-btn-primary,
body.agency-pad-ui .mdt-form-stack > .mdt-btn-secondary {
    width: 100%;
}

body.agency-pad-ui .mdt-btn-primary,
body.agency-pad-ui .mdt-btn-secondary,
body.agency-pad-ui .mdt-action-primary,
body.agency-pad-ui .mdt-action-ghost {
    appearance: none;
    border: none;
    border-radius: 18px;
    padding: 13px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 140ms ease, filter 160ms ease, opacity 160ms ease;
}

body.agency-pad-ui .mdt-btn-primary,
body.agency-pad-ui .mdt-action-primary {
    background: linear-gradient(135deg, #52b3ff, #4f7dff);
    color: #fff;
    box-shadow:
        0 14px 28px rgba(45, 115, 255, 0.24),
        0 0 40px rgba(45, 115, 255, 0.10);
    position: relative;
    overflow: hidden;
}

body.agency-pad-ui .mdt-btn-primary::before,
body.agency-pad-ui .mdt-action-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
    pointer-events: none;
}

body.agency-pad-ui .mdt-btn-primary.ems-accent {
    background: linear-gradient(135deg, #ff7a72, #ff4738);
    box-shadow:
        0 14px 28px rgba(255, 59, 48, 0.24),
        0 0 40px rgba(255, 59, 48, 0.10);
}

body.agency-pad-ui .mdt-btn-secondary,
body.agency-pad-ui .mdt-action-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-btn-secondary,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-action-ghost {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(31, 52, 84, 0.08);
}

body.agency-pad-ui .mdt-btn-primary:hover,
body.agency-pad-ui .mdt-btn-secondary:hover,
body.agency-pad-ui .mdt-action-primary:hover,
body.agency-pad-ui .mdt-action-ghost:hover {
    transform: translateY(-1px);
}

body.agency-pad-ui .mdt-card,
body.agency-pad-ui .mdt-protocol-card {
    border-radius: 24px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 32px rgba(0, 0, 0, 0.12);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, border-color 200ms ease;
}

body.agency-pad-ui .mdt-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 22px 44px rgba(0, 0, 0, 0.16),
        0 0 40px rgba(var(--device-accent-rgb), 0.04);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-card,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-protocol-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 255, 0.90));
    border-color: rgba(31, 52, 84, 0.10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 12px 28px rgba(67, 96, 143, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-card:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.86),
        0 18px 36px rgba(67, 96, 143, 0.12);
}

body.agency-pad-ui .mdt-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

body.agency-pad-ui .mdt-card-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-primary);
}

body.agency-pad-ui .mdt-card-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.agency-pad-ui .mdt-badge-high {
    background: rgba(255, 84, 84, 0.18);
    color: #ff8e8e;
}

body.agency-pad-ui .mdt-badge-medium {
    background: rgba(71, 144, 255, 0.18);
    color: #8cbcff;
}

body.agency-pad-ui .mdt-badge-low {
    background: rgba(90, 220, 147, 0.14);
    color: #91f0b4;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-badge-high {
    background: rgba(255, 76, 76, 0.12);
    color: #c83a33;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-badge-medium {
    background: rgba(54, 121, 255, 0.10);
    color: #225ccf;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-badge-low {
    background: rgba(54, 181, 98, 0.10);
    color: #267f43;
}

body.agency-pad-ui .mdt-card-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

body.agency-pad-ui .mdt-card-detail i {
    width: 14px;
    margin-right: 8px;
    color: var(--text-tertiary);
}

body.agency-pad-ui .mdt-unit-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 22px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, background 200ms ease;
}

body.agency-pad-ui .mdt-unit-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-unit-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(31, 52, 84, 0.10);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-unit-card:hover {
    background: rgba(255, 255, 255, 0.98);
}

body.agency-pad-ui .mdt-unit-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

body.agency-pad-ui .mdt-unit-name {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
    color: #fff !important;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-unit-name {
    color: #1c1c1e !important;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-unit-callsign {
    color: rgba(0,0,0,0.45) !important;
}

body.agency-pad-ui .mdt-unit-status {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

body.agency-pad-ui .mdt-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
}

body.agency-pad-ui .mdt-status-available { background: #4cd964; box-shadow: 0 0 8px rgba(76, 217, 100, 0.5); }
body.agency-pad-ui .mdt-status-busy { background: #ffcc00; box-shadow: 0 0 8px rgba(255, 204, 0, 0.4); }
body.agency-pad-ui .mdt-status-emergency { background: #ff453a; box-shadow: 0 0 8px rgba(255, 69, 58, 0.5); animation: mdtPulseEmergency 1.4s ease-in-out infinite; }
body.agency-pad-ui .mdt-status-offline { background: rgba(255,255,255,0.24); }

@keyframes mdtPulseEmergency {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 69, 58, 0.4); }
    50% { box-shadow: 0 0 14px rgba(255, 69, 58, 0.7); }
}

body.agency-pad-ui .mdt-protocol-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

body.agency-pad-ui .mdt-protocol-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
}

body.agency-pad-ui .mdt-empty-state {
    min-height: 180px;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.02);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mdt-empty-state {
    border-color: rgba(31, 52, 84, 0.10);
    background: rgba(255, 255, 255, 0.84);
}

body.agency-pad-ui .mdt-empty-state i {
    font-size: 20px;
}

body.agency-pad-ui #app-police-mdt .back-btn,
body.agency-pad-ui #app-ems-mdt .back-btn,
body.agency-pad-ui #app-mechanic-mdt .back-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-police-mdt .back-btn,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-ems-mdt .back-btn,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-mechanic-mdt .back-btn {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(31, 52, 84, 0.08);
}

@media (max-width: 1160px) {
    body.agency-pad-ui #app-police-mdt,
    body.agency-pad-ui #app-ems-mdt,
    body.agency-pad-ui #app-mechanic-mdt {
        grid-template-columns: 236px minmax(0, 1fr);
    }

    body.agency-pad-ui .mdt-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.agency-pad-ui .mdt-body-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.agency-pad-ui #app-wallet .app-content {
    padding: 0 24px 28px !important;
}

body.agency-pad-ui #app-wallet .wallet-shell {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 18px 0 56px;
}

body.agency-pad-ui #app-wallet .wallet-balance-card-v2,
body.agency-pad-ui #app-wallet .wallet-tabs {
    grid-column: 1;
}

body.agency-pad-ui #app-wallet .wallet-panel-stage {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: relative;
    min-height: calc(100vh - 260px);
    height: calc(100vh - 260px);
    overflow: hidden;
}

body.agency-pad-ui #app-wallet #wallet-balance-card,
body.agency-pad-ui #app-wallet .wallet-tabs,
body.agency-pad-ui #app-wallet .wallet-panel-stage,
body.agency-pad-ui #app-wallet .wallet-panel {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

body.agency-pad-ui #app-wallet .wallet-tab {
    transform: translateY(0);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

body.agency-pad-ui #app-wallet .wallet-tab.active {
    transform: translateY(-2px);
}

body.agency-pad-ui #app-wallet .wallet-panel {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    inset: 0;
    padding-right: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 18px, 0) scale(0.988);
    filter: blur(14px);
    transition:
        opacity 0.24s ease,
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.34s ease,
        visibility 0s linear 0.34s;
    will-change: transform, opacity, filter;
}

body.agency-pad-ui #app-wallet .wallet-panel.active,
body.agency-pad-ui #app-wallet .wallet-panel.is-leaving-to-left,
body.agency-pad-ui #app-wallet .wallet-panel.is-leaving-to-right {
    visibility: visible;
    transition-delay: 0s, 0s, 0s, 0s;
}

body.agency-pad-ui #app-wallet .wallet-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

body.agency-pad-ui #app-wallet .wallet-panel.active.is-entering-from-right {
    opacity: 0.01;
    transform: translate3d(34px, 0, 0) scale(0.988);
    filter: blur(18px);
}

body.agency-pad-ui #app-wallet .wallet-panel.active.is-entering-from-left {
    opacity: 0.01;
    transform: translate3d(-34px, 0, 0) scale(0.988);
    filter: blur(18px);
}

body.agency-pad-ui #app-wallet .wallet-panel.is-leaving-to-left {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-28px, 0, 0) scale(0.985);
    filter: blur(18px);
}

body.agency-pad-ui #app-wallet .wallet-panel.is-leaving-to-right {
    opacity: 0;
    pointer-events: none;
    transform: translate3d(28px, 0, 0) scale(0.985);
    filter: blur(18px);
}

body.agency-pad-ui #app-weather .app-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 28px 56px;
    display: grid;
    grid-template-columns: minmax(320px, 400px) minmax(420px, 540px);
    grid-template-areas:
        "current insight"
        "current regions";
    justify-content: center;
    align-items: start;
    gap: 18px 28px;
    box-sizing: border-box;
}

body.agency-pad-ui #app-weather .weather-current,
body.agency-pad-ui #app-weather .ai-insight-card {
    margin: 0;
}

body.agency-pad-ui #app-weather .weather-current {
    grid-area: current;
    position: static;
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 380px;
    min-height: 420px;
    padding: 40px 26px;
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 54px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

body.agency-pad-ui #app-weather .weather-icon {
    margin-bottom: 10px;
}

body.agency-pad-ui #app-weather .weather-temp {
    font-size: 84px;
    line-height: 0.95;
}

body.agency-pad-ui #app-weather .weather-desc {
    font-size: 24px;
}

body.agency-pad-ui #app-weather .weather-location {
    font-size: 16px;
}

body.agency-pad-ui #app-weather .ai-insight-card {
    grid-area: insight;
    align-self: start;
    justify-self: center;
    width: 100%;
    max-width: 540px;
    min-height: 220px;
    border-radius: 30px;
}

body.agency-pad-ui #app-weather .app-content > div:last-child {
    grid-area: regions;
    margin: 0 !important;
    padding: 18px 20px 20px !important;
    width: 100%;
    max-width: 540px;
    justify-self: center;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 42px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

body.agency-pad-ui #app-weather .app-content > div:last-child > div:first-child {
    margin-bottom: 14px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    text-shadow: 0 1px 10px rgba(18, 33, 56, 0.12);
}

body.agency-pad-ui #app-weather #weather-regions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: none;
}

body.agency-pad-ui #app-weather #weather-regions-list > div,
body.agency-pad-ui #app-weather .app-content > div:last-child button {
    background: rgba(22, 32, 48, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: rgba(255, 255, 255, 0.94) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui #app-weather #weather-regions-list span,
body.agency-pad-ui #app-weather .app-content > div:last-child button span,
body.agency-pad-ui #app-weather .app-content > div:last-child button i {
    color: rgba(255, 255, 255, 0.94) !important;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .app-content > div:last-child > div:first-child {
    color: rgba(33, 55, 86, 0.7) !important;
    text-shadow: none;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather #weather-regions-list > div,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .app-content > div:last-child button {
    background: rgba(255, 255, 255, 0.42) !important;
    border-color: rgba(99, 132, 174, 0.18) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 24px rgba(58, 96, 142, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather #weather-regions-list span,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .app-content > div:last-child button span,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .app-content > div:last-child button i {
    color: #2a5fd7 !important;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .weather-current,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .ai-insight-card,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .app-content > div:last-child {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 251, 255, 0.68)),
        rgba(255, 255, 255, 0.72);
    border-color: rgba(81, 126, 173, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 18px 42px rgba(58, 96, 142, 0.14);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .weather-temp {
    color: #1c1c1e;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .weather-desc {
    color: rgba(28, 28, 30, 0.7);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .weather-location {
    color: rgba(28, 28, 30, 0.5);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .weather-icon i {
    color: rgba(28, 28, 30, 0.6);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .ai-insight-card .ai-insight-badge {
    color: #7c5cff;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-weather .ai-insight-card .ai-insight-text {
    color: #1c1c1e;
}

@media (max-width: 1180px) {
    body.agency-pad-ui #app-weather .app-content {
        grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr);
        gap: 16px 22px;
    }
}

@media (max-width: 1040px) {
    body.agency-pad-ui #app-weather .app-content {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "current"
            "insight"
            "regions";
        justify-content: stretch;
    }

    body.agency-pad-ui #app-weather .weather-current,
    body.agency-pad-ui #app-weather .ai-insight-card,
    body.agency-pad-ui #app-weather .app-content > div:last-child {
        max-width: none;
    }
}

body.agency-pad-ui #app-agencycloud .agencycloud-app-content {
    padding: 18px 20px calc(var(--app-content-bottom-clearance, 70px) + 18px);
    overflow-y: auto;
    scrollbar-width: none;
}

body.agency-pad-ui #app-agencycloud .agencycloud-app-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.agency-pad-ui #app-agencycloud .agencycloud-shell {
    max-width: 1220px;
    margin: 0 auto;
    gap: 20px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-hero {
    padding: 22px 24px;
    border-radius: 30px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-layout {
    grid-template-columns: minmax(0, 1.34fr) minmax(320px, 0.82fr);
    gap: 18px;
    align-items: start;
}

body.agency-pad-ui #app-agencycloud .agencycloud-stack {
    grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
    grid-auto-rows: min-content;
    gap: 18px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-stack > .agencycloud-panel:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

body.agency-pad-ui #app-agencycloud .agencycloud-stack > .agencycloud-panel:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

body.agency-pad-ui #app-agencycloud .agencycloud-stack > .agencycloud-panel:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

body.agency-pad-ui #app-agencycloud .agencycloud-panel,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-panel {
    border-radius: 26px;
    padding: 18px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-panel-title,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-panel-title {
    font-size: 17px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-panel-sub,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-panel-sub {
    margin-top: 5px;
    line-height: 1.48;
}

body.agency-pad-ui #app-agencycloud .agencycloud-side-panel {
    gap: 16px;
    position: sticky;
    top: 0;
    align-self: start;
}

body.agency-pad-ui #app-agencycloud .agencycloud-side-copy {
    gap: 8px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-side-title {
    font-size: 22px;
    line-height: 1.18;
}

body.agency-pad-ui #app-agencycloud .agencycloud-side-sub {
    font-size: 14px;
    line-height: 1.55;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-shell {
    gap: 16px;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-hero {
    padding: 20px 22px;
    border-radius: 28px;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
    gap: 20px;
    align-items: start;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-card {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-side-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    position: static;
    align-self: start;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-side-copy {
    grid-column: auto;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-side-stats,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-actions {
    margin-top: 0;
}

body.agency-pad-ui #app-agencycloud .agencycloud-category-card,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-card {
    min-height: 0;
    overflow: hidden;
    padding: 16px;
    border-radius: 22px;
    gap: 12px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-category-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-category-head,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: start;
}

body.agency-pad-ui #app-agencycloud .agencycloud-category-copy,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-copy {
    min-width: 0;
}

body.agency-pad-ui #app-agencycloud .agencycloud-category-label,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-label {
    font-size: 17px;
    line-height: 1.16;
}

body.agency-pad-ui #app-agencycloud .agencycloud-category-meta,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-meta {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.42;
}

body.agency-pad-ui #app-agencycloud .agencycloud-category-icon,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    box-shadow: none;
    flex: 0 0 auto;
    justify-self: end;
    align-self: start;
}

body.agency-pad-ui #app-agencycloud .agencycloud-category-value,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-value {
    font-size: 38px;
    line-height: 0.95;
}

body.agency-pad-ui #app-agencycloud .agencycloud-category-action-copy,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-action-copy {
    font-size: 13px;
    line-height: 1.36;
}

body.agency-pad-ui #app-agencycloud .agencycloud-asset-list,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-asset-list {
    gap: 12px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-asset-row,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-asset-row {
    border-radius: 22px;
    padding: 14px 16px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-empty-state,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-empty-state {
    border-radius: 22px;
    padding: 18px 16px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-action-stack,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-action-stack {
    gap: 16px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-sync-card,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-sync-card {
    padding: 15px 16px;
    border-radius: 22px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-sync-copy strong,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-sync-copy strong {
    font-size: 15px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-sync-copy span,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-sync-copy span {
    font-size: 13px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-tier-block,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-tier-block {
    gap: 12px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-tier-list,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-tier-list {
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
}

body.agency-pad-ui #app-agencycloud .agencycloud-tier-card,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-tier-card {
    border-radius: 22px;
    padding: 16px 17px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-tier-line strong,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-tier-line strong {
    font-size: 16px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-tier-meta,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-tier-meta {
    font-size: 13px;
}

body.agency-pad-ui #app-agencycloud .agencycloud-tier-btn,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-tier-btn {
    min-height: 44px;
    border-radius: 16px;
}

body.agency-pad-ui #settings-page-cloud {
    overflow-y: auto;
    padding-right: 4px;
}

body.agency-pad-ui #app-settings #settings-page-cloud .settings-group {
    padding-bottom: 24px;
}

#phone-frame:not(.dark-mode) #app-agencycloud,
#phone-frame:not(.dark-mode) #settings-page-cloud {
    --cloud-card: rgba(255, 255, 255, 0.82);
    --cloud-card-strong: rgba(255, 255, 255, 0.94);
    --cloud-border: rgba(138, 168, 206, 0.22);
    --cloud-shadow: 0 18px 42px rgba(58, 96, 142, 0.12);
    --cloud-text: #0f1d2d;
    --cloud-muted: rgba(55, 76, 96, 0.62);
    --cloud-subtle: rgba(55, 76, 96, 0.38);
    --cloud-accent: #2f7cff;
    color: #0f1d2d;
}

#phone-frame:not(.dark-mode) #app-agencycloud .agencycloud-title,
#phone-frame:not(.dark-mode) #app-agencycloud .agencycloud-summary,
#phone-frame:not(.dark-mode) #app-agencycloud .agencycloud-side-title {
    color: #0f1d2d;
}

#phone-frame:not(.dark-mode) #app-agencycloud .app-header {
    background: linear-gradient(135deg, rgba(47, 124, 255, 0.92), rgba(76, 198, 255, 0.88));
    border-bottom: 1px solid rgba(47, 124, 255, 0.18);
}

#phone-frame:not(.dark-mode) #app-agencycloud .app-title,
#phone-frame:not(.dark-mode) #app-agencycloud .back-btn,
#phone-frame:not(.dark-mode) #app-agencycloud .back-btn i,
#phone-frame:not(.dark-mode) #app-agencycloud .back-btn span {
    color: #fff;
}

body.agency-pad-ui #phone-frame.dark-mode #app-agencycloud,
body.agency-pad-ui #phone-frame.dark-mode #settings-page-cloud {
    --cloud-card: rgba(18, 24, 37, 0.82);
    --cloud-card-strong: rgba(24, 31, 46, 0.94);
    --cloud-border: rgba(255, 255, 255, 0.08);
    --cloud-shadow: 0 24px 52px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1180px) {
    body.agency-pad-ui #app-agencycloud .agencycloud-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body.agency-pad-ui #app-agencycloud .agencycloud-stack,
    body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-side-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    body.agency-pad-ui #app-agencycloud .agencycloud-stack > .agencycloud-panel:nth-child(1),
    body.agency-pad-ui #app-agencycloud .agencycloud-stack > .agencycloud-panel:nth-child(2),
    body.agency-pad-ui #app-agencycloud .agencycloud-stack > .agencycloud-panel:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }
}

body.agency-pad-ui #app-music .mu-search-bar,
body.agency-pad-ui #app-music .mu-url-bar {
    border-radius: 28px;
    overflow: hidden;
}

body.agency-pad-ui #app-music .mu-search-bar input,
body.agency-pad-ui #app-music .mu-url-bar input {
    border-radius: 24px;
}

body.agency-pad-ui #app-music .mu-search-bar button,
body.agency-pad-ui #app-music .mu-url-bar button {
    border-radius: 22px;
}

body.agency-pad-ui #app-calculator .app-header {
    padding-bottom: 8px;
}

body.agency-pad-ui #app-calculator .calc-container {
    width: min(100%, 1008px);
    max-width: 1008px;
    margin: 0 auto;
    min-height: 0;
    height: calc(100% - 16px);
    padding: 18px 18px calc(var(--app-content-bottom-clearance, 54px) + 2px);
    border-radius: 34px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    box-sizing: border-box;
}

body.agency-pad-ui #app-calculator .calc-container::before {
    border-radius: 34px;
}

body.agency-pad-ui #app-calculator .calc-display {
    min-height: 142px;
    padding: 14px 28px 16px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: clamp(62px, 6vw, 74px);
    line-height: 1;
    letter-spacing: -0.06em;
    overflow: visible;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.12);
}

body.agency-pad-ui #app-calculator .calc-tablet-tools {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

body.agency-pad-ui #app-calculator .calc-tablet-tools .calc-btn {
    min-height: 56px;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

body.agency-pad-ui #app-calculator .calc-pad-tablet {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    grid-auto-rows: minmax(74px, 80px);
    align-content: start;
}

body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn {
    min-height: 78px;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 22px;
    font-size: 23px;
    font-weight: 600;
    line-height: 1;
    display: grid;
    place-items: center;
    padding: 0 0 2px;
}

body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn.func {
    font-size: 20px;
}

body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn.op {
    font-size: 30px;
    font-weight: 700;
}

body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn.zero {
    grid-column: span 2;
}

body.agency-pad-ui #app-calculator .calc-btn {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -10px 24px rgba(0, 0, 0, 0.08),
        0 12px 26px rgba(0, 0, 0, 0.12);
    border-width: 1px;
    line-height: 1;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-calculator .calc-btn {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.76),
        inset 0 -12px 28px rgba(35, 46, 71, 0.05),
        0 12px 24px rgba(35, 46, 71, 0.08);
}

body.agency-pad-ui #app-calculator .calc-btn i {
    font-size: 19px;
    transform: translateY(-1px);
}

body.agency-pad-ui #app-calculator .calc-sup {
    display: inline-block;
    font-size: 0.62em;
    vertical-align: super;
    margin-left: 1px;
}

body.agency-pad-ui #app-calculator .calc-frac {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0.92;
    position: relative;
    min-width: 28px;
}

body.agency-pad-ui #app-calculator .calc-frac::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    top: 50%;
    height: 1.5px;
    background: currentColor;
    transform: translateY(-50%);
    opacity: 0.75;
}

@media (max-height: 860px) {
    body.agency-pad-ui #app-calculator .calc-container {
        padding-bottom: calc(var(--app-content-bottom-clearance, 54px) - 2px);
        gap: 8px;
    }

    body.agency-pad-ui #app-calculator .calc-display {
        min-height: 118px;
        font-size: clamp(54px, 5vw, 66px);
    }

    body.agency-pad-ui #app-calculator .calc-tablet-tools .calc-btn {
        min-height: 50px;
        border-radius: 17px;
    }

    body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn {
        min-height: 70px;
        border-radius: 20px;
        font-size: 21px;
    }
}

body.agency-pad-ui #app-contacts .contacts-liquid-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 44px 18px calc(var(--app-content-bottom-clearance, 54px) + 6px);
    gap: 16px;
}

body.agency-pad-ui #app-contacts .contacts-topbar {
    padding: 10px 4px 0;
    margin-bottom: 22px;
}

body.agency-pad-ui #app-contacts .contacts-title {
    font-size: 38px;
    letter-spacing: -0.05em;
}

body.agency-pad-ui #app-contacts .contacts-subtitle {
    font-size: 14px;
    max-width: 420px;
    line-height: 1.45;
}

body.agency-pad-ui #app-contacts .contacts-self-card,
body.agency-pad-ui #app-contacts .contacts-row {
    min-height: 102px;
    border-radius: 24px;
    padding: 18px 20px;
}

body.agency-pad-ui #app-contacts .contacts-self-avatar,
body.agency-pad-ui #app-contacts .contacts-row-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 18px;
    font-size: 22px;
}

body.agency-pad-ui #app-contacts .contacts-self-title,
body.agency-pad-ui #app-contacts .contacts-row-title {
    font-size: 20px;
}

body.agency-pad-ui #app-contacts .contacts-self-sub,
body.agency-pad-ui #app-contacts .contacts-self-number,
body.agency-pad-ui #app-contacts .contacts-row-sub {
    font-size: 13px;
}

body.agency-pad-ui #app-contacts .contacts-row-call,
body.agency-pad-ui #app-contacts .contacts-self-action {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 16px;
}

body.agency-pad-ui #app-contacts .contacts-floating-footer {
    max-width: 960px;
    margin: 0 auto;
    padding-top: 10px;
}

body.agency-pad-ui #app-contacts .contacts-search-shell {
    min-height: 56px;
    border-radius: 24px;
}

body.agency-pad-ui #app-contacts .contacts-search-input {
    font-size: 15px;
}

body.agency-pad-ui #app-contacts .contacts-primary-fab {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 22px;
    font-size: 22px;
}

body.agency-pad-ui #app-contacts .contacts-directory-shell {
    gap: 18px;
    padding-top: 4px;
}

body.agency-pad-ui #app-contacts .contacts-letter-heading {
    font-size: 17px;
    padding-left: 8px;
}

body.agency-pad-ui #app-contacts .contacts-letter-stack {
    gap: 12px;
}

body.agency-pad-ui #app-contacts .contacts-locked-state,
body.agency-pad-ui #app-dialer .contacts-locked-state,
body.agency-pad-ui #app-buzz .contacts-locked-state {
    max-width: 760px;
    margin: 54px auto 0;
    padding: 30px 28px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(9, 14, 24, 0.74);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 54px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(26px) saturate(155%);
    -webkit-backdrop-filter: blur(26px) saturate(155%);
    text-align: center;
}

body.agency-pad-ui #app-contacts .contacts-locked-icon,
body.agency-pad-ui #app-dialer .contacts-locked-icon,
body.agency-pad-ui #app-buzz .contacts-locked-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, #62d0ff, #8c7dff);
    box-shadow: 0 16px 34px rgba(98, 117, 255, 0.22);
}

body.agency-pad-ui #app-contacts .contacts-locked-title,
body.agency-pad-ui #app-dialer .contacts-locked-title,
body.agency-pad-ui #app-buzz .contacts-locked-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
}

body.agency-pad-ui #app-contacts .contacts-locked-copy,
body.agency-pad-ui #app-dialer .contacts-locked-copy,
body.agency-pad-ui #app-buzz .contacts-locked-copy {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

body.agency-pad-ui #app-contacts .contacts-locked-btn,
body.agency-pad-ui #app-dialer .contacts-locked-btn,
body.agency-pad-ui #app-buzz .contacts-locked-btn {
    margin-top: 18px;
    min-height: 54px;
    padding: 0 18px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #58a6ff, #7c5cff);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: Inter, sans-serif;
}

body.agency-pad-ui #app-dialer.dialer-locked .dialer-liquid-hero,
body.agency-pad-ui #app-buzz.buzz-locked .buzz-hub-hero {
    margin-bottom: 20px;
}

body.agency-pad-ui #app-dialer.dialer-locked .dialer-liquid-body {
    display: block;
}

body.agency-pad-ui #app-dialer.dialer-locked #recents-list,
body.agency-pad-ui #app-buzz.buzz-locked #buzz-chat-list {
    min-height: 420px;
}

body.agency-pad-ui #app-crypto .app-content,
body.agency-pad-ui #app-stocks .app-content,
body.agency-pad-ui #app-crypto-detail .app-content,
body.agency-pad-ui #app-stock-detail .app-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 24px 56px !important;
    box-sizing: border-box;
}

body.agency-pad-ui .crypto-balance,
body.agency-pad-ui .stocks-balance,
body.agency-pad-ui .stocks-overview,
body.agency-pad-ui .stock-detail-chart-wrap,
body.agency-pad-ui .crypto-detail-hero,
body.agency-pad-ui .stock-detail-hero,
body.agency-pad-ui .crypto-holdings,
body.agency-pad-ui .stock-holdings,
body.agency-pad-ui .ai-insight-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.agency-pad-ui #crypto-list,
body.agency-pad-ui #stocks-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
}

body.agency-pad-ui .crypto-actions,
body.agency-pad-ui .stock-actions {
    padding: 0 0 12px;
}

body.agency-pad-ui .crypto-trade-row,
body.agency-pad-ui .stock-trade-row {
    padding: 0 0 12px;
}

body.agency-pad-ui #app-music > .app-content {
    padding: 0 20px 22px !important;
    background:
        radial-gradient(circle at 16% 0%, rgba(103, 129, 255, 0.18), transparent 24%),
        radial-gradient(circle at 84% 10%, rgba(255, 88, 120, 0.14), transparent 22%),
        linear-gradient(180deg, rgba(3, 8, 18, 0.98), rgba(8, 10, 16, 0.94));
}

body.agency-pad-ui .mu-now-playing {
    max-width: 100%;
    margin: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) minmax(220px, 280px);
    grid-template-areas:
        "top top top"
        "card playback side";
    gap: 16px;
    padding: 10px 0 0;
}

body.agency-pad-ui .mu-now-top-actions {
    grid-area: top;
    position: static;
}

body.agency-pad-ui .mu-now-card {
    grid-area: card;
    padding: 20px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.agency-pad-ui .mu-playback-card {
    grid-area: playback;
    padding: 20px 24px 18px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.agency-pad-ui .mu-artwork-wrap {
    max-width: 320px;
}

body.agency-pad-ui .mu-track-info {
    text-align: left;
}

body.agency-pad-ui .mu-foryou-shell,
body.agency-pad-ui .mu-browse-shell,
body.agency-pad-ui .mu-playlists-header,
body.agency-pad-ui .mu-playlists-grid,
body.agency-pad-ui .mu-playlist-detail,
body.agency-pad-ui .mu-song-list {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

body.agency-pad-ui .mu-pad-hero,
body.agency-pad-ui .mu-foryou-section,
body.agency-pad-ui .mu-pad-panel,
body.agency-pad-ui .mu-search-bar,
body.agency-pad-ui .mu-url-bar,
body.agency-pad-ui .mu-now-card,
body.agency-pad-ui .mu-playback-card,
body.agency-pad-ui .mu-playing-side,
body.agency-pad-ui .mu-playlists-header,
body.agency-pad-ui .mu-playlists-grid,
body.agency-pad-ui .mu-playlist-detail {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(12, 16, 24, 0.64);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 54px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(30px) saturate(155%);
    -webkit-backdrop-filter: blur(30px) saturate(155%);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-music > .app-content {
    background:
        radial-gradient(circle at 16% 0%, rgba(103, 129, 255, 0.08), transparent 24%),
        radial-gradient(circle at 84% 10%, rgba(255, 88, 120, 0.06), transparent 22%),
        linear-gradient(180deg, rgba(245, 247, 255, 0.98), rgba(242, 242, 247, 0.96)) !important;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-hero,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-foryou-section,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-panel,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-search-bar,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-url-bar,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-now-card,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-playback-card,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-playing-side,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-playlists-header,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-playlists-grid,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-playlist-detail {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 255, 0.82)),
        rgba(255, 255, 255, 0.88);
    border-color: rgba(17, 24, 39, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 18px 42px rgba(35, 52, 84, 0.12);
}

body.agency-pad-ui .mu-foryou-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0 6px;
}

body.agency-pad-ui .mu-pad-hero {
    border-radius: 34px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
}

body.agency-pad-ui .mu-pad-hero::before {
    content: '';
    position: absolute;
    inset: -24% auto auto -8%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 210, 255, 0.28), transparent 68%);
    pointer-events: none;
}

body.agency-pad-ui .mu-pad-hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-top: 14px;
    position: relative;
    z-index: 1;
}

body.agency-pad-ui .mu-pad-hero-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #fff;
}

body.agency-pad-ui .mu-pad-hero-sub {
    margin-top: 8px;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-hero-title {
    color: #121826;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-hero-sub {
    color: rgba(18, 24, 38, 0.62);
}

body.agency-pad-ui .mu-pad-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.agency-pad-ui .mu-hero-action,
body.agency-pad-ui .mu-session-action,
body.agency-pad-ui .mu-pad-station-card,
body.agency-pad-ui .mu-browse-chip {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.agency-pad-ui .mu-hero-action,
body.agency-pad-ui .mu-session-action {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #64d2ff, #7f5af0);
    box-shadow: 0 16px 28px rgba(100, 210, 255, 0.18);
}

body.agency-pad-ui .mu-hero-action.secondary,
body.agency-pad-ui .mu-session-action.secondary,
body.agency-pad-ui .mu-browse-chip,
body.agency-pad-ui .mu-pad-station-card {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: none;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-hero-action.secondary,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-session-action.secondary,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-browse-chip,
body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-station-card {
    color: #121826;
    background: rgba(17, 24, 39, 0.06);
}

body.agency-pad-ui .mu-hero-action:active,
body.agency-pad-ui .mu-session-action:active,
body.agency-pad-ui .mu-pad-station-card:active,
body.agency-pad-ui .mu-browse-chip:active {
    transform: scale(0.98);
}

body.agency-pad-ui .mu-hero-action:disabled {
    opacity: 0.56;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

body.agency-pad-ui .mu-foryou-layout,
body.agency-pad-ui .mu-browse-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 16px;
    align-items: start;
}

body.agency-pad-ui .mu-foryou-section,
body.agency-pad-ui .mu-browse-main,
body.agency-pad-ui .mu-browse-side,
body.agency-pad-ui .mu-playing-side {
    min-height: 0;
}

body.agency-pad-ui .mu-foryou-section {
    border-radius: 30px;
    padding: 18px;
}

body.agency-pad-ui .mu-foryou-side,
body.agency-pad-ui .mu-browse-side,
body.agency-pad-ui .mu-playing-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.agency-pad-ui .mu-pad-panel {
    border-radius: 28px;
    padding: 16px;
}

body.agency-pad-ui .mu-pad-panel-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

body.agency-pad-ui .mu-pad-panel-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

body.agency-pad-ui .mu-pad-panel-sub {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-panel-title {
    color: #121826;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-panel-sub {
    color: rgba(18, 24, 38, 0.56);
}

body.agency-pad-ui .mu-pad-stations,
body.agency-pad-ui .mu-browse-chip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.agency-pad-ui .mu-pad-station-card {
    min-height: 96px;
    padding: 14px;
    border-radius: 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

body.agency-pad-ui .mu-pad-station-card::before {
    content: '';
    position: absolute;
    inset: auto -22px -24px auto;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 210, 255, 0.22), transparent 72%);
    pointer-events: none;
}

body.agency-pad-ui .mu-pad-station-meta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-station-meta {
    background: rgba(17, 24, 39, 0.06);
    color: rgba(18, 24, 38, 0.62);
}

body.agency-pad-ui .mu-pad-station-title {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.agency-pad-ui .mu-pad-station-sub {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-station-sub {
    color: rgba(18, 24, 38, 0.54);
}

body.agency-pad-ui .mu-pad-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.agency-pad-ui .mu-pad-mini-track {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

body.agency-pad-ui .mu-pad-mini-track.active {
    box-shadow: 0 0 0 1px rgba(100, 210, 255, 0.45);
}

body.agency-pad-ui .mu-pad-mini-track img,
body.agency-pad-ui .mu-pad-mini-thumb {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .mu-pad-mini-copy {
    min-width: 0;
}

body.agency-pad-ui .mu-pad-mini-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.agency-pad-ui .mu-pad-mini-sub {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-mini-title {
    color: #121826;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-pad-mini-sub {
    color: rgba(18, 24, 38, 0.54);
}

body.agency-pad-ui .mu-pad-session-card,
body.agency-pad-ui .mu-now-session {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.agency-pad-ui .mu-session-badge {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(100, 210, 255, 0.14);
    color: #8bddff;
}

body.agency-pad-ui .mu-session-badge.live {
    background: rgba(52, 199, 89, 0.16);
    color: #7df09d;
}

body.agency-pad-ui .mu-session-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.agency-pad-ui .mu-session-pill {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

body.agency-pad-ui .mu-session-pill span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

body.agency-pad-ui .mu-session-pill strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    color: #fff;
}

body.agency-pad-ui .mu-session-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.agency-pad-ui .mu-playing-side {
    grid-area: side;
}

body.agency-pad-ui .mu-browse-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.agency-pad-ui .mu-browse-chip {
    min-height: 44px;
    border-radius: 16px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
}

body.agency-pad-ui .mu-search-bar,
body.agency-pad-ui .mu-url-bar {
    margin: 0;
}

body.agency-pad-ui .mu-playback-card .mu-extra-controls {
    margin-top: 14px;
}

body.agency-pad-ui .mu-now-card,
body.agency-pad-ui .mu-playback-card,
body.agency-pad-ui .mu-playing-side {
    border-radius: 30px;
}

body.agency-pad-ui .mu-track-title {
    font-size: 28px;
}

body.agency-pad-ui .mu-track-artist {
    font-size: 14px;
}

body.agency-pad-ui #app-vidflow .vf-app-content {
    padding: 14px 18px 20px !important;
    background:
        radial-gradient(circle at 14% 2%, rgba(124, 92, 255, 0.2), transparent 22%),
        radial-gradient(circle at 86% 12%, rgba(100, 210, 255, 0.18), transparent 20%),
        linear-gradient(180deg, rgba(3, 8, 18, 0.98), rgba(8, 10, 16, 0.94));
}

body.agency-pad-ui #app-vidflow .vf-shell {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

body.agency-pad-ui #app-vidflow .vf-search-bar,
body.agency-pad-ui #app-vidflow .vf-player-wrap,
body.agency-pad-ui #app-vidflow .vf-hero-card,
body.agency-pad-ui #app-vidflow .vf-continue-card,
body.agency-pad-ui #app-vidflow .vf-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(12, 16, 24, 0.64);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 54px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(30px) saturate(155%);
    -webkit-backdrop-filter: blur(30px) saturate(155%);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-app-content {
    background:
        radial-gradient(circle at 14% 2%, rgba(124, 92, 255, 0.06), transparent 22%),
        radial-gradient(circle at 86% 12%, rgba(100, 210, 255, 0.05), transparent 20%),
        linear-gradient(180deg, rgba(245, 247, 255, 0.98), rgba(242, 242, 247, 0.96)) !important;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-search-bar,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-player-wrap,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-hero-card,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-continue-card,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 255, 0.88)),
        rgba(255, 255, 255, 0.92);
    border-color: rgba(17, 24, 39, 0.08);
}

body.agency-pad-ui #app-vidflow .vf-search-bar {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 26px;
    background-color: transparent;
}

body.agency-pad-ui #app-vidflow .vf-search-bar input {
    min-height: 48px;
    border-radius: 16px;
    padding: 0 18px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-search-bar input {
    background: rgba(17, 24, 39, 0.05);
    color: #121826;
}

body.agency-pad-ui #app-vidflow .vf-search-bar button,
body.agency-pad-ui #app-vidflow .vf-close-btn,
body.agency-pad-ui #app-vidflow .vf-chip {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

body.agency-pad-ui #app-vidflow .vf-search-bar button,
body.agency-pad-ui #app-vidflow .vf-close-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff436f, #ff7a54);
    box-shadow: 0 16px 30px rgba(255, 88, 120, 0.22);
}

body.agency-pad-ui #app-vidflow .vf-player-wrap {
    overflow: hidden;
    border-radius: 30px;
}

body.agency-pad-ui #app-vidflow .vf-now-playing {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    padding: 14px 18px 18px;
}

body.agency-pad-ui #app-vidflow .vf-np-kicker,
body.agency-pad-ui #app-vidflow .vf-card-kicker,
body.agency-pad-ui #app-vidflow .vf-section-sub {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.agency-pad-ui #app-vidflow .vf-np-kicker,
body.agency-pad-ui #app-vidflow .vf-card-kicker,
body.agency-pad-ui #app-vidflow .vf-section-sub {
    color: rgba(255, 255, 255, 0.52);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-np-kicker,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-card-kicker,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-section-sub {
    color: rgba(18, 24, 38, 0.52);
}

body.agency-pad-ui #app-vidflow .vf-home {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.agency-pad-ui #app-vidflow .vf-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 16px;
}

body.agency-pad-ui #app-vidflow .vf-hero-card,
body.agency-pad-ui #app-vidflow .vf-continue-card {
    min-height: 210px;
    border-radius: 30px;
    padding: 22px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

body.agency-pad-ui #app-vidflow .vf-hero-card::before,
body.agency-pad-ui #app-vidflow .vf-continue-card::before {
    content: '';
    position: absolute;
    inset: auto -12% -24% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
    pointer-events: none;
}

body.agency-pad-ui #app-vidflow .vf-card-title,
body.agency-pad-ui #app-vidflow .vf-section-title {
    margin-top: 10px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
}

body.agency-pad-ui #app-vidflow .vf-card-sub {
    margin-top: 8px;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-card-title,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-section-title {
    color: #121826;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-card-sub {
    color: rgba(18, 24, 38, 0.58);
}

body.agency-pad-ui #app-vidflow .vf-chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.agency-pad-ui #app-vidflow .vf-chip {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-vidflow .vf-chip {
    color: #121826;
    background: rgba(17, 24, 39, 0.06);
}

body.agency-pad-ui #app-vidflow .vf-sections-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.agency-pad-ui #app-vidflow .vf-section-results {
    grid-column: 1 / -1;
}

body.agency-pad-ui #app-vidflow .vf-section {
    border-radius: 28px;
    padding: 16px;
}

body.agency-pad-ui #app-vidflow .vf-section-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

body.agency-pad-ui #app-vidflow .vf-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
}

body.agency-pad-ui #app-vidflow .vf-video-item {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui #app-vidflow .vf-video-thumb {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
}

body.agency-pad-ui #app-vidflow .vf-video-title {
    font-size: 14px;
}

body.agency-pad-ui #app-vidflow .vf-results {
    overflow: visible;
}

body.agency-pad-ui #pictogram-content {
    padding: 0 20px 18px;
    box-sizing: border-box;
}

body.agency-pad-ui #pictogram-content .pg-container {
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
}

body.agency-pad-ui #pictogram-content .pg-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

body.agency-pad-ui #pictogram-content .pg-topbar,
body.agency-pad-ui #pictogram-content .pg-stories-wrap,
body.agency-pad-ui #pictogram-content .pg-tab-bar,
body.agency-pad-ui #pictogram-content .pg-live-rail,
body.agency-pad-ui #pictogram-content .pg-section-head {
    grid-column: 1 / -1;
}

body.agency-pad-ui #pictogram-content .pg-post {
    margin: 0;
}

body.agency-pad-ui #pictogram-content .pg-post-image {
    aspect-ratio: 4 / 3;
}

body.agency-pad-ui #pictogram-content .pg-stories-rail {
    padding: 4px 4px 10px;
}

body.agency-pad-ui .maps-app-content {
    height: 100%;
    padding: 18px;
    box-sizing: border-box;
}

body.agency-pad-ui .maps-stage {
    border-radius: 30px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

body.agency-pad-ui .maps-topglass {
    left: 18px;
    right: 108px;
    top: 18px;
}

body.agency-pad-ui .maps-side-rail {
    top: 20px;
    right: 20px;
}

body.agency-pad-ui .maps-bottom-toolbar {
    left: 20px;
    right: auto;
    bottom: 20px;
    width: 340px;
}

body.agency-pad-ui .maps-sheet {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: 360px;
    max-height: calc(100% - 120px);
    border-radius: 28px;
}

body.agency-pad-ui .settings-app-content {
    padding: 0 24px 56px;
}

body.agency-pad-ui .settings-shell {
    max-width: 1040px;
    margin: 0 auto;
}

body.agency-pad-ui .settings-page.active#settings-main {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

body.agency-pad-ui .settings-page.active#settings-main .settings-main-lead,
body.agency-pad-ui .settings-page.active#settings-main .settings-profile-card,
body.agency-pad-ui .settings-page.active#settings-main .settings-search-pill,
body.agency-pad-ui .settings-page.active#settings-main .settings-search-empty {
    grid-column: 1;
}

body.agency-pad-ui .settings-page.active#settings-main .settings-group {
    grid-column: 2;
    margin-bottom: 18px;
}

body.agency-pad-ui .settings-page.active:not(#settings-main) {
    max-width: 960px;
    margin: 0 auto;
}

body.agency-pad-ui #app-agencyai .app-header {
    padding-bottom: 0;
    display: none;
}

body.agency-pad-ui #app-agencyai .ai-chat-container.pad-ai-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0;
    padding: 48px 0 0 0;
    align-items: stretch;
    min-height: 0;
    height: 100%;
}

body.agency-pad-ui .pad-ai-sidebar,
body.agency-pad-ui .pad-ai-main {
    min-height: 0;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.agency-pad-ui .pad-ai-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        rgba(10, 14, 24, 0.42);
    backdrop-filter: blur(30px) saturate(155%);
    -webkit-backdrop-filter: blur(30px) saturate(155%);
}

body.agency-pad-ui .pad-ai-main {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
        rgba(7, 10, 18, 0.22);
    backdrop-filter: blur(30px) saturate(155%);
    -webkit-backdrop-filter: blur(30px) saturate(155%);
}

body.agency-pad-ui .pad-ai-insights {
    display: none !important;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-sidebar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 255, 0.86)),
        rgba(245, 247, 255, 0.88);
    border-right-color: rgba(29, 29, 31, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-main {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 255, 0.92)),
        rgba(255, 255, 255, 0.94);
}

body.agency-pad-ui .pad-ai-sidebar {
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    gap: 10px;
    overflow-y: auto;
}

body.agency-pad-ui .pad-ai-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

body.agency-pad-ui .pad-ai-stage-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.agency-pad-ui .pad-ai-eyebrow,
body.agency-pad-ui .pad-ai-stage-kicker,
body.agency-pad-ui .pad-ai-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-eyebrow,
body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-stage-kicker,
body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-card-label {
    color: rgba(29, 29, 31, 0.42);
}

body.agency-pad-ui .pad-ai-sidebar-title,
body.agency-pad-ui .pad-ai-thread-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-primary);
}

body.agency-pad-ui .pad-ai-sidebar-sub,
body.agency-pad-ui .pad-ai-thread-meta,
body.agency-pad-ui .pad-ai-insight-copy {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

body.agency-pad-ui .pad-ai-icon-btn,
body.agency-pad-ui .pad-ai-ghost-btn {
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-icon-btn,
body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-ghost-btn {
    background: rgba(0, 0, 0, 0.05);
}

body.agency-pad-ui .pad-ai-icon-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    font-size: 13px;
}

body.agency-pad-ui .pad-ai-ghost-btn {
    padding: 0 10px;
    min-height: 34px;
}

body.agency-pad-ui .pad-ai-ghost-btn.danger {
    color: #ff6b63;
}

body.agency-pad-ui .pad-ai-icon-btn:hover,
body.agency-pad-ui .pad-ai-ghost-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-icon-btn:hover,
body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-ghost-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

body.agency-pad-ui .pad-ai-ghost-btn:disabled,
body.agency-pad-ui .pad-ai-icon-btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

body.agency-pad-ui .ai-thread-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

body.agency-pad-ui .ai-thread-item {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .ai-thread-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

body.agency-pad-ui .ai-thread-item:hover {
    transform: none;
    background: rgba(124, 92, 255, 0.08);
    border-color: rgba(124, 92, 255, 0.15);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .ai-thread-item:hover {
    background: rgba(124, 92, 255, 0.06);
    border-color: rgba(124, 92, 255, 0.12);
}

body.agency-pad-ui .ai-thread-item.active {
    border-color: rgba(124, 92, 255, 0.4);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(124, 92, 255, 0.08));
    box-shadow: 0 4px 16px rgba(124, 92, 255, 0.12);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .ai-thread-item.active {
    border-color: rgba(124, 92, 255, 0.3);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(124, 92, 255, 0.04));
    box-shadow: 0 4px 16px rgba(124, 92, 255, 0.08);
}

body.agency-pad-ui .ai-thread-item-top,
body.agency-pad-ui .ai-thread-item-meta,
body.agency-pad-ui .ai-session-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.agency-pad-ui .ai-thread-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

body.agency-pad-ui .ai-thread-item-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

body.agency-pad-ui .ai-thread-item-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
}

body.agency-pad-ui .ai-thread-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.agency-pad-ui .ai-thread-badge.synced {
    background: rgba(52, 199, 89, 0.16);
    color: #7ce5a2;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .ai-thread-badge {
    background: rgba(0, 0, 0, 0.05);
}

body.agency-pad-ui .ai-thread-item-preview {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.agency-pad-ui .pad-ai-main {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    height: 100%;
    overflow: hidden;
}

body.agency-pad-ui .pad-ai-stage-copy {
    min-width: 0;
}

body.agency-pad-ui .pad-ai-stage-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

body.agency-pad-ui .pad-ai-conversation-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    border-radius: 0;
    border: none;
    background: transparent;
    overflow: hidden;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-conversation-shell {
    background: transparent;
    border-color: transparent;
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-welcome {
    padding: 60px 48px 28px;
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-suggestions {
    justify-content: flex-start;
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-messages {
    padding: 20px 28px 24px;
    gap: 14px;
    flex: 1;
    overflow-y: auto;
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-msg {
    max-width: 68%;
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-msg.user {
    background: rgba(124, 92, 255, 0.18);
    border: 1px solid rgba(124, 92, 255, 0.12);
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-msg.ai {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-conversation-shell .ai-msg.user {
    background: rgba(124, 92, 255, 0.12);
    border-color: rgba(124, 92, 255, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-conversation-shell .ai-msg.ai {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.04);
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-ride-paid-card {
    margin: 0 18px 12px;
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-input-bar {
    padding: 14px 24px 20px;
    background: rgba(10, 14, 22, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-conversation-shell .ai-input-bar {
    background: rgba(245, 247, 255, 0.8);
    border-top-color: rgba(0, 0, 0, 0.06);
}

body.agency-pad-ui .pad-ai-insights {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
}

body.agency-pad-ui .pad-ai-insight-card {
    border-radius: 22px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-insight-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(0, 0, 0, 0.06);
}

body.agency-pad-ui .ai-session-stats {
    flex-wrap: wrap;
    justify-content: flex-start;
}

body.agency-pad-ui .ai-insight-stat {
    min-width: 86px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .ai-insight-stat {
    background: rgba(0, 0, 0, 0.04);
}

body.agency-pad-ui .ai-insight-stat strong {
    font-size: 17px;
    color: var(--text-primary);
}

body.agency-pad-ui .ai-insight-stat span {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.agency-pad-ui .ai-insight-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.agency-pad-ui .ai-insight-action {
    width: 100%;
    border: 0;
    border-radius: 18px;
    padding: 12px 14px;
    text-align: left;
    background: linear-gradient(135deg, rgba(90, 200, 250, 0.18), rgba(0, 122, 255, 0.1));
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .ai-insight-action {
    background: linear-gradient(135deg, rgba(90, 200, 250, 0.16), rgba(0, 122, 255, 0.08));
}

@media (max-width: 1700px), (max-height: 980px) {
    body.agency-pad-ui #phone-frame {
        width: 980px;
        height: 692px;
    }

    body.agency-pad-ui #dynamic-island {
        width: 174px;
        height: 40px;
    }

    body.agency-pad-ui .di-cutout-core {
        width: 102px;
        height: 32px;
    }

    body.agency-pad-ui #di-faceid-border {
        width: 176px;
        height: 44px;
    }

    body.agency-pad-ui #home-screen {
        padding: 68px 36px 24px;
    }

    body.agency-pad-ui #home-clock {
        font-size: 80px;
    }

    body.agency-pad-ui #home-screen .widget-grid,
    body.agency-pad-ui #home-screen .home-widget-grid,
    body.agency-pad-ui #home-screen .app-grid,
    body.agency-pad-ui #home-screen .home-app-grid,
    body.agency-pad-ui #home-screen .apps-grid,
    body.agency-pad-ui #app-pages-container {
        max-width: 780px;
    }

    body.agency-pad-ui .app-page,
    body.agency-pad-ui #app-grid {
        gap: 24px 16px;
    }

    body.agency-pad-ui #app-agencyai .ai-chat-container.pad-ai-shell {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 0;
        padding: 0;
    }

    body.agency-pad-ui .pad-ai-thread-title {
        font-size: 18px;
    }

    body.agency-pad-ui .pad-ai-stage-actions {
        gap: 6px;
    }

    body.agency-pad-ui .pad-ai-ghost-btn {
        padding: 0 8px;
    }
}

@media (max-width: 1400px), (max-height: 820px) {
    body.agency-pad-ui #phone-frame {
        width: 860px;
        height: 612px;
        border-radius: 38px;
    }

    body.agency-pad-ui #screen-container,
    body.agency-pad-ui #lock-screen,
    body.agency-pad-ui #home-screen,
    body.agency-pad-ui .app-screen {
        border-radius: 30px;
    }

    body.agency-pad-ui #dynamic-island {
        width: 156px;
        height: 38px;
        top: 16px;
    }

    body.agency-pad-ui .di-cutout-core {
        width: 92px;
        height: 30px;
    }

    body.agency-pad-ui .di-camera {
        left: calc(50% - 31px);
    }

    body.agency-pad-ui .di-sensor-ir {
        left: calc(50% + 28px);
    }

    body.agency-pad-ui .di-sensor-dot {
        left: calc(50% + 41px);
    }

    body.agency-pad-ui #di-faceid-border {
        width: 168px;
        height: 42px;
    }

    body.agency-pad-ui #status-bar {
        padding: 22px 44px 0;
    }

    body.agency-pad-ui .hw-btn-action {
        height: 44px;
        top: 118px;
    }

    body.agency-pad-ui .hw-btn-vol-up {
        height: 76px;
        top: 186px;
    }

    body.agency-pad-ui .hw-btn-vol-down {
        height: 76px;
        top: 278px;
    }

    body.agency-pad-ui .hw-btn-power {
        height: 112px;
        top: 192px;
    }

    body.agency-pad-ui #hw-volume-hud {
        left: 24px;
        top: 170px;
    }

    body.agency-pad-ui #home-indicator {
        width: 188px;
    }

    body.agency-pad-ui #home-screen {
        padding: 64px 28px 22px;
    }

    body.agency-pad-ui #home-clock {
        font-size: 72px;
        letter-spacing: -3.8px;
    }

    body.agency-pad-ui #lock-screen .lock-notification-stack,
    body.agency-pad-ui #lock-notification-list {
        max-width: 620px;
    }

    body.agency-pad-ui #home-screen .widget-grid,
    body.agency-pad-ui #home-screen .home-widget-grid,
    body.agency-pad-ui #home-screen .app-grid,
    body.agency-pad-ui #home-screen .home-app-grid,
    body.agency-pad-ui #home-screen .apps-grid,
    body.agency-pad-ui #app-pages-container {
        max-width: 700px;
    }

    body.agency-pad-ui .app-page,
    body.agency-pad-ui #app-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 22px 14px;
        padding: 0 6px;
    }

    body.agency-pad-ui .app-header,
    body.agency-pad-ui .screen-header {
        padding-left: 24px;
        padding-right: 24px;
    }

    body.agency-pad-ui .app-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.agency-pad-ui #app-agencyai .ai-chat-container.pad-ai-shell {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 0;
    }

    body.agency-pad-ui .pad-ai-stage-bar {
        flex-direction: column;
        align-items: stretch;
    }

    body.agency-pad-ui .pad-ai-stage-actions {
        justify-content: flex-start;
    }

    body.agency-pad-ui .pad-ai-conversation-shell .ai-msg {
        max-width: 85%;
    }
}

/* Refinement pass: larger centered home, cleaner shell controls, wider setup flow */

body.agency-pad-ui #home-indicator {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

body.agency-pad-ui #home-indicator.lock-hidden {
    display: none !important;
    pointer-events: none !important;
}

body.agency-pad-ui #home-bar {
    margin: 0 auto;
}

body.agency-pad-ui .hw-btn {
    top: -7px;
    height: 8px;
    border-radius: 0 0 4px 4px;
    border: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.14) 0%, transparent 30%),
        linear-gradient(180deg, var(--button-mid) 0%, var(--button-start) 100%);
    box-shadow:
        inset 0 -1px 1px var(--button-highlight),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 1px 2px var(--button-shadow-hard);
}

body.agency-pad-ui .hw-btn::before {
    inset: 0;
    height: auto;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.04) 40%, transparent 60%, rgba(0,0,0,0.12) 100%);
    opacity: 1;
}

body.agency-pad-ui .hw-btn::after {
    top: auto;
    bottom: auto;
    left: 6px;
    right: 6px;
    top: 50%;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    opacity: 0.5;
}

body.agency-pad-ui .hw-btn:active {
    transform: translateY(1px) scaleY(0.7);
}

body.agency-pad-ui .hw-btn-action {
    width: 74px;
    left: 112px;
}

body.agency-pad-ui .hw-btn-vol-up {
    width: 70px;
    right: 226px;
}

body.agency-pad-ui .hw-btn-vol-down {
    width: 70px;
    right: 146px;
}

body.agency-pad-ui .hw-btn-power {
    width: 98px;
    right: 30px;
}

body.agency-pad-ui #cc-swipe-zone {
    width: 38%;
    height: 108px;
}

body.agency-pad-ui #nc-swipe-zone {
    width: 26%;
    height: 108px;
}

body.agency-pad-ui #cc-panel,
body.agency-pad-ui #nc-panel {
    top: 58px;
    bottom: 24px;
    border-radius: 34px;
}

body.agency-pad-ui #cc-panel {
    width: 404px;
    right: 30px;
}

body.agency-pad-ui #nc-panel {
    width: 350px;
    left: 30px;
}

body.agency-pad-ui .cc-grid {
    gap: 14px;
}

body.agency-pad-ui .cc-toggle-group {
    padding: 12px;
    gap: 10px;
}

body.agency-pad-ui .cc-toggle {
    min-height: 88px;
}

body.agency-pad-ui .cc-toggle-icon {
    width: 50px;
    height: 50px;
}

body.agency-pad-ui #home-screen {
    width: 100%;
    max-width: 1042px;
    min-height: 100%;
    margin: 0 auto;
    padding: 78px 34px 30px;
    box-sizing: border-box;
    grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto auto;
    grid-template-areas:
        "clock apps"
        "date apps"
        ". apps"
        "dock apps"
        "label dots";
    column-gap: 22px;
    row-gap: 12px;
    align-content: stretch;
}

body.agency-pad-ui #home-clock {
    font-size: 114px;
    letter-spacing: -5.6px;
    line-height: 0.92;
    margin-top: 12px;
    align-self: end;
}

body.agency-pad-ui #home-date {
    margin-top: 2px;
    font-size: 18px;
    max-width: 260px;
}

body.agency-pad-ui #home-screen .widget-grid,
body.agency-pad-ui #home-screen .home-widget-grid,
body.agency-pad-ui #home-screen .app-grid,
body.agency-pad-ui #home-screen .home-app-grid,
body.agency-pad-ui #home-screen .apps-grid,
body.agency-pad-ui #app-pages-container {
    width: 100%;
    max-width: none;
}

body.agency-pad-ui #app-pages-container {
    display: flex;
    align-items: flex-start;
}

body.agency-pad-ui .app-page,
body.agency-pad-ui #app-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 32px 24px;
    padding: 8px 4px 0;
    justify-items: center;
}

body.agency-pad-ui .app-page .hw-widget-grid-item {
    width: 100%;
}

body.agency-pad-ui .app-icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    font-size: 34px;
    margin-bottom: 8px;
}

body.agency-pad-ui .app-icon-label {
    max-width: 110px;
    font-size: 13px;
    font-weight: 600;
}

body.agency-pad-ui #home-dock {
    justify-content: flex-start;
    gap: 18px;
    padding: 18px 20px 16px;
    margin: 18px 0 0;
    border-radius: 36px;
}

body.agency-pad-ui .dock-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    font-size: 30px;
}

body.agency-pad-ui .dock-label {
    font-size: 12px;
    font-weight: 600;
}

body.agency-pad-ui #home-os-label {
    padding-top: 12px;
    font-size: 11px;
    letter-spacing: 0.22em;
}

body.agency-pad-ui #page-dots {
    padding-top: 10px;
}

body.agency-pad-ui .hw-widget {
    padding: 16px 18px;
    border-radius: 24px;
}

body.agency-pad-ui .hw-widget.hw-small,
body.agency-pad-ui .hw-widget.hw-medium {
    min-height: 96px;
}

body.agency-pad-ui .hw-widget-value {
    font-size: 26px;
}

body.agency-pad-ui .hw-music-art {
    width: 50px;
    height: 50px;
    border-radius: 14px;
}

body.agency-pad-ui .hw-music-title {
    font-size: 14px;
}

body.agency-pad-ui .hw-music-artist,
body.agency-pad-ui .hw-widget-sub,
body.agency-pad-ui .hw-widget-label {
    font-size: 12px;
}

body.agency-pad-ui .settings-app-content {
    padding: 0 24px 62px;
}

body.agency-pad-ui .settings-shell {
    max-width: 1080px;
}

body.agency-pad-ui .settings-page.active#settings-main {
    grid-template-columns: minmax(300px, 356px) minmax(0, 1fr);
    gap: 24px;
}

body.agency-pad-ui .settings-page.active#settings-main .settings-group {
    margin-bottom: 22px;
}

body.agency-pad-ui .settings-page.active:not(#settings-main) {
    max-width: 1020px;
}

body.agency-pad-ui #app-settings .settings-main-title {
    font-size: 52px;
}

body.agency-pad-ui #app-settings .settings-item {
    min-height: 74px;
}

body.agency-pad-ui #app-agencyai .app-header {
    display: none;
}

body.agency-pad-ui #app-agencyai .ai-chat-container.pad-ai-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0;
    padding: 58px 0 0 0;
    height: 100%;
}

body.agency-pad-ui .pad-ai-icon-btn,
body.agency-pad-ui .pad-ai-ghost-btn {
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    border-radius: 10px;
    font-size: 12px;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-icon-btn,
body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-ghost-btn {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.04);
}

body.agency-pad-ui .pad-ai-icon-btn:hover,
body.agency-pad-ui .pad-ai-ghost-btn:hover {
    background: rgba(124, 92, 255, 0.12);
    border-color: rgba(124, 92, 255, 0.2);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-icon-btn:hover,
body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-ghost-btn:hover {
    background: rgba(124, 92, 255, 0.08);
    border-color: rgba(124, 92, 255, 0.15);
}

body.agency-pad-ui .pad-ai-conversation-shell {
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-conversation-shell {
    background: transparent;
    border-color: transparent;
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-welcome {
    padding: 72px 56px 36px;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(124, 92, 255, 0.12), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(90, 200, 250, 0.08), transparent 40%);
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-suggestions {
    gap: 10px;
}

body.agency-pad-ui #app-agencyai .ai-suggest-btn {
    border: 1px solid rgba(124, 92, 255, 0.15);
    background: rgba(124, 92, 255, 0.08);
    box-shadow: 0 4px 12px rgba(124, 92, 255, 0.06);
    color: var(--text-primary);
    border-radius: 12px;
    transition: all 0.2s ease;
}

body.agency-pad-ui #app-agencyai .ai-suggest-btn:hover {
    background: rgba(124, 92, 255, 0.16);
    border-color: rgba(124, 92, 255, 0.25);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-agencyai .ai-suggest-btn {
    border-color: rgba(124, 92, 255, 0.12);
    background: rgba(124, 92, 255, 0.06);
}

body.agency-pad-ui .pad-ai-conversation-shell .ai-input-bar {
    padding: 14px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 14, 22, 0.5);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-conversation-shell .ai-input-bar {
    border-top-color: rgba(0, 0, 0, 0.06);
    background: rgba(245, 247, 255, 0.82);
}

body.agency-pad-ui #app-agencyai #ai-input {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-agencyai #ai-input {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
}

body.agency-pad-ui #app-agencyai #ai-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c5cff, #a78bfa);
    box-shadow: 0 8px 20px rgba(124, 92, 255, 0.3);
    transition: all 0.2s ease;
}

body.agency-pad-ui #app-agencyai #ai-send-btn:hover {
    box-shadow: 0 10px 24px rgba(124, 92, 255, 0.4);
    transform: translateY(-1px);
}

/* Stage bar (top bar in main panel) */
body.agency-pad-ui .pad-ai-stage-bar {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-ai-stage-bar {
    border-bottom-color: rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.4);
}

body.agency-pad-ui .pad-ai-stage-actions {
    gap: 6px;
}

body.agency-pad-ui .pad-ai-ghost-btn {
    padding: 0 10px;
    min-height: 34px;
}

body.agency-pad-ui #setup-overlay .setup-step {
    align-items: center;
    padding: 76px 72px 60px;
    gap: 18px;
}

body.agency-pad-ui #setup-overlay .setup-title {
    font-size: 34px;
    max-width: 680px;
    margin-inline: auto;
}

body.agency-pad-ui #setup-overlay .setup-desc {
    max-width: 620px;
    font-size: 16px;
    margin-inline: auto;
}

body.agency-pad-ui #setup-overlay .setup-btn,
body.agency-pad-ui #setup-overlay .setup-perf-card {
    max-width: 360px;
    width: min(100%, 360px);
    margin-inline: auto;
    align-self: center;
}

body.agency-pad-ui #setup-overlay .setup-locale-step {
    align-items: center;
    justify-content: center;
    padding: 64px 72px 92px;
    gap: 18px;
}

body.agency-pad-ui #setup-overlay .setup-locale-shell {
    width: min(100%, 980px);
    max-width: 980px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 20px;
    margin: 6px auto 0;
    overflow: visible;
    padding: 2px 0 10px;
    flex: 0 0 auto;
}

body.agency-pad-ui #setup-overlay .setup-locale-group {
    min-height: 100%;
    padding: 20px 18px 18px;
}

body.agency-pad-ui #setup-overlay .setup-locale-group-title {
    margin-left: 0;
    text-align: center;
}

body.agency-pad-ui #setup-overlay .setup-language-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.agency-pad-ui #setup-overlay .setup-timezone-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-height: 320px;
}

body.agency-pad-ui #setup-overlay .setup-locale-step .setup-btn {
    margin-top: 4px;
}

body.agency-pad-ui #setup-overlay .setup-step:not(.setup-locale-step) .setup-btn {
    margin-top: 18px;
}

body.agency-pad-ui #setup-theme-picker {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px !important;
    width: min(100%, 860px);
    margin: 24px auto 8px !important;
}

body.agency-pad-ui #setup-step-theme .setup-theme-option > div {
    width: 100% !important;
    max-width: 220px;
    height: 240px !important;
    margin: 0 auto;
    border-radius: 26px !important;
}

body.agency-pad-ui #setup-wallpaper-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: min(100%, 860px) !important;
    max-width: min(100%, 860px) !important;
    max-height: 320px !important;
    margin: 20px auto 4px !important;
}

body.agency-pad-ui #setup-wallpaper-grid .wallpaper-option {
    min-height: 110px;
    border-radius: 22px;
}

body.agency-pad-ui #setup-step-1 .setup-numpad,
body.agency-pad-ui #setup-step-2 .setup-numpad {
    width: 318px;
    gap: 16px;
}

body.agency-pad-ui #setup-step-1 .setup-numpad .passcode-key,
body.agency-pad-ui #setup-step-2 .setup-numpad .passcode-key {
    width: 92px;
    height: 92px;
    font-size: 34px;
}

body.agency-pad-ui #setup-step-1 .setup-passcode-display .passcode-dot,
body.agency-pad-ui #setup-step-2 .setup-passcode-display .passcode-dot {
    width: 18px;
    height: 18px;
}

body.agency-pad-ui #setup-step-3 .setup-faceid-container {
    width: 196px;
    height: 196px;
    border-radius: 46px;
    overflow: hidden !important;
}

body.agency-pad-ui #setup-step-4 #setup-carrier-list {
    width: min(100%, 840px) !important;
    max-height: 360px !important;
    margin: 20px auto 6px !important;
}

body.agency-pad-ui #setup-step-update > div[style*="width:80%"] {
    width: min(100%, 640px) !important;
}

body.agency-pad-ui #setup-overlay .setup-step-indicator {
    bottom: 24px;
}

@media (max-width: 1700px), (max-height: 980px) {
    body.agency-pad-ui #home-screen {
        max-width: 948px;
        padding: 72px 28px 28px;
        grid-template-columns: minmax(280px, 332px) minmax(0, 1fr);
    }

    body.agency-pad-ui #home-clock {
        font-size: 98px;
    }

    body.agency-pad-ui .app-page,
    body.agency-pad-ui #app-grid {
        gap: 28px 20px;
    }

    body.agency-pad-ui .app-icon-circle {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }

    body.agency-pad-ui .dock-icon-circle {
        width: 66px;
        height: 66px;
        font-size: 28px;
    }

    body.agency-pad-ui #setup-overlay .setup-step {
        padding: 64px 56px 52px;
    }

    body.agency-pad-ui #setup-wallpaper-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        width: min(100%, 760px) !important;
        max-width: min(100%, 760px) !important;
    }
}

@media (max-width: 1400px), (max-height: 820px) {
    body.agency-pad-ui .hw-btn {
        top: -6px;
        height: 7px;
    }

    body.agency-pad-ui .hw-btn-action {
        width: 70px;
        height: 7px;
        left: 108px;
        top: -6px;
    }

    body.agency-pad-ui .hw-btn-vol-up {
        width: 68px;
        height: 7px;
        right: 214px;
        top: -6px;
    }

    body.agency-pad-ui .hw-btn-vol-down {
        width: 68px;
        height: 7px;
        right: 138px;
        top: -6px;
    }

    body.agency-pad-ui .hw-btn-power {
        width: 96px;
        height: 7px;
        right: 28px;
        top: -6px;
    }

    body.agency-pad-ui #hw-volume-hud {
        left: auto;
        right: 24px;
        top: 82px;
    }

    body.agency-pad-ui #cc-panel {
        width: 364px;
        right: 20px;
    }

    body.agency-pad-ui #nc-panel {
        width: 320px;
        left: 20px;
    }

    body.agency-pad-ui #home-screen {
        max-width: 820px;
        padding: 66px 24px 24px;
        grid-template-columns: minmax(236px, 280px) minmax(0, 1fr);
        column-gap: 16px;
    }

    body.agency-pad-ui #home-clock {
        font-size: 78px;
        letter-spacing: -4px;
    }

    body.agency-pad-ui .app-page,
    body.agency-pad-ui #app-grid {
        gap: 24px 18px;
    }

    body.agency-pad-ui .app-icon-circle {
        width: 66px;
        height: 66px;
        font-size: 30px;
        border-radius: 20px;
    }

    body.agency-pad-ui .dock-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    body.agency-pad-ui #home-dock {
        gap: 14px;
        padding: 15px 16px 14px;
    }

    body.agency-pad-ui #setup-overlay .setup-step {
        padding: 56px 38px 48px;
    }

    body.agency-pad-ui #setup-overlay .setup-title {
        font-size: 29px;
    }

    body.agency-pad-ui #setup-overlay .setup-locale-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.agency-pad-ui #setup-overlay .setup-language-grid,
    body.agency-pad-ui #setup-overlay .setup-timezone-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.agency-pad-ui #setup-step-1 .setup-numpad,
    body.agency-pad-ui #setup-step-2 .setup-numpad {
        width: 276px;
    }

    body.agency-pad-ui #setup-step-1 .setup-numpad .passcode-key,
    body.agency-pad-ui #setup-step-2 .setup-numpad .passcode-key {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

/* Final tablet pass: unified home surface + full-width overlays */

body.agency-pad-ui #widget-picker-btn {
    left: 50% !important;
    top: 30px !important;
    transform: translateX(-50%);
}

body.agency-pad-ui #cc-swipe-zone,
body.agency-pad-ui #nc-swipe-zone {
    top: 0;
    height: 132px;
    width: 50%;
}

body.agency-pad-ui #cc-swipe-zone {
    left: auto;
    right: 0;
}

body.agency-pad-ui #nc-swipe-zone {
    left: 0;
    right: auto;
}

body.agency-pad-ui #home-screen {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 74px 30px 28px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas:
        "clock"
        "date"
        "apps"
        "dots"
        "dock";
    row-gap: 10px;
    column-gap: 0;
    justify-items: center;
    align-content: stretch;
}

body.agency-pad-ui #home-clock {
    grid-area: clock;
    margin: 0;
    max-width: none;
    text-align: center;
    align-self: end;
    font-size: 112px;
    letter-spacing: -5.2px;
    line-height: 0.9;
}

body.agency-pad-ui #home-date {
    grid-area: date;
    margin: 0 0 8px;
    max-width: none;
    text-align: center;
    font-size: 17px;
}

body.agency-pad-ui #home-screen .widget-grid,
body.agency-pad-ui #home-screen .home-widget-grid,
body.agency-pad-ui #home-screen .app-grid,
body.agency-pad-ui #home-screen .home-app-grid,
body.agency-pad-ui #home-screen .apps-grid,
body.agency-pad-ui #app-pages-container {
    width: min(100%, 860px);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

body.agency-pad-ui #app-pages-container {
    grid-area: apps;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

body.agency-pad-ui #app-pages-track {
    width: 100%;
}

body.agency-pad-ui .app-page,
body.agency-pad-ui #app-grid {
    width: min(100%, 760px);
    max-width: 760px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
    padding: 12px 6px 0;
    justify-content: center;
    justify-items: center;
    margin: 0 auto;
}

body.agency-pad-ui .app-page .hw-widget-grid-item {
    width: 100%;
}

body.agency-pad-ui #page-dots {
    grid-area: dots;
    width: 100%;
    justify-content: center;
    padding: 10px 0 4px;
}

body.agency-pad-ui #home-dock {
    grid-area: dock;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: min(100%, 980px);
    max-width: 980px;
    margin: 0 auto;
    gap: 12px;
    padding: 20px 24px 16px;
    justify-items: center;
    align-items: start;
    border-radius: 38px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 22px 50px rgba(5, 10, 24, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(44px) saturate(190%);
    -webkit-backdrop-filter: blur(44px) saturate(190%);
}

body.agency-pad-ui .dock-icon {
    width: 100%;
    max-width: 94px;
    gap: 8px;
}

body.agency-pad-ui .dock-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 21px;
    font-size: 29px;
    margin: 0 auto;
}

body.agency-pad-ui .dock-label {
    width: 100%;
    max-width: 100%;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.agency-pad-ui #home-os-label {
    display: none;
}

body.agency-pad-ui #cc-panel,
body.agency-pad-ui #nc-panel {
    top: 18px;
    right: 18px;
    bottom: 18px;
    left: 18px;
    width: auto;
    max-height: none;
    padding: 22px 24px 24px;
    border-radius: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(18, 22, 34, 0.9), rgba(10, 12, 20, 0.82));
    box-shadow:
        0 32px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui #cc-panel {
    transform: translate3d(0, -112%, 0) scale(0.985);
    transform-origin: top right;
}

body.agency-pad-ui #control-center.visible #cc-panel {
    transform: translate3d(0, 0, 0) scale(1);
}

body.agency-pad-ui #control-center.closing #cc-panel {
    transform: translate3d(0, -112%, 0) scale(0.985);
}

body.agency-pad-ui #nc-panel {
    transform: translate3d(0, -118%, 0) scale(0.985);
    transform-origin: top left;
}

body.agency-pad-ui #notification-center.visible #nc-panel {
    transform: translate3d(0, 0, 0) scale(1);
}

body.agency-pad-ui #notification-center.closing #nc-panel {
    transform: translate3d(0, -118%, 0) scale(0.985);
}

body.agency-pad-ui .cc-handle,
body.agency-pad-ui .nc-handle {
    margin: 4px auto 16px;
}

body.agency-pad-ui .cc-top,
body.agency-pad-ui .nc-header {
    padding: 0 4px;
    margin-bottom: 18px;
}

body.agency-pad-ui .cc-top {
    align-items: flex-start;
    justify-content: space-between;
}

body.agency-pad-ui .cc-top-kicker {
    font-size: 11px;
    letter-spacing: 0.16em;
}

body.agency-pad-ui .cc-top-title,
body.agency-pad-ui .nc-title {
    font-size: 31px;
    letter-spacing: -1px;
}

body.agency-pad-ui .cc-top-edit,
body.agency-pad-ui #nc-clear-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

body.agency-pad-ui .cc-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(78px, 1fr));
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 0;
    align-content: stretch;
}

body.agency-pad-ui .cc-grid > :nth-child(1) {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
}

body.agency-pad-ui .cc-grid > :nth-child(2) {
    grid-column: 5 / span 8;
    grid-row: 1;
}

body.agency-pad-ui .cc-grid > :nth-child(3) {
    grid-column: 5 / span 8;
    grid-row: 2;
}

body.agency-pad-ui .cc-grid > :nth-child(4) {
    grid-column: 1 / span 4;
    grid-row: 3;
}

body.agency-pad-ui .cc-grid > :nth-child(5) {
    grid-column: 5 / span 8;
    grid-row: 3;
}

body.agency-pad-ui .cc-grid > :nth-child(6) {
    grid-column: 1 / span 6;
    grid-row: 4;
}

body.agency-pad-ui .cc-grid > :nth-child(7) {
    grid-column: 7 / span 6;
    grid-row: 4;
}

body.agency-pad-ui .cc-grid > :nth-child(8) {
    grid-column: 1 / span 7;
    grid-row: 5;
}

body.agency-pad-ui .cc-grid > :nth-child(9) {
    grid-column: 8 / span 5;
    grid-row: 5;
}

body.agency-pad-ui .cc-toggle-group,
body.agency-pad-ui .cc-music-widget,
body.agency-pad-ui .cc-tile,
body.agency-pad-ui .cc-tile-wide,
body.agency-pad-ui .cc-slider-row {
    height: 100%;
    min-height: 0;
    border-radius: 26px;
}

body.agency-pad-ui .cc-toggle-group {
    padding: 18px;
    gap: 14px;
}

body.agency-pad-ui .cc-toggle {
    justify-content: center;
    gap: 10px;
}

body.agency-pad-ui .cc-toggle-icon {
    width: 58px;
    height: 58px;
    font-size: 22px;
}

body.agency-pad-ui .cc-toggle-label {
    font-size: 12px;
    font-weight: 600;
}

body.agency-pad-ui .cc-music-widget {
    padding: 18px;
    gap: 14px;
}

body.agency-pad-ui .cc-music-art {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 18px;
    font-size: 20px;
}

body.agency-pad-ui .cc-music-title {
    font-size: 15px;
}

body.agency-pad-ui .cc-music-artist {
    font-size: 12px;
}

body.agency-pad-ui .cc-music-controls {
    gap: 8px;
}

body.agency-pad-ui .cc-music-controls button {
    font-size: 18px;
    padding: 10px;
    color: var(--pad-cc-tint);
}

body.agency-pad-ui .cc-music-controls button:active {
    color: var(--pad-cc-tint);
    opacity: 0.7;
}

body.agency-pad-ui .cc-row,
body.agency-pad-ui .cc-tile-row {
    height: 100%;
    gap: 16px;
}

body.agency-pad-ui .cc-tile,
body.agency-pad-ui .cc-tile-wide {
    padding: 18px 20px;
    gap: 10px;
}

body.agency-pad-ui .cc-tile-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 15px;
}

body.agency-pad-ui .cc-tile-label,
body.agency-pad-ui .cc-airdrop-title {
    font-size: 14px;
    font-weight: 600;
}

body.agency-pad-ui .cc-airdrop-status {
    font-size: 12px;
}

body.agency-pad-ui .cc-slider-row {
    padding: 16px 18px;
    gap: 14px;
}

body.agency-pad-ui .cc-slider-icon {
    width: 24px;
    font-size: 18px;
}

body.agency-pad-ui .cc-slider {
    height: 8px;
}

body.agency-pad-ui .cc-utils {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-content: stretch;
    gap: 14px;
}

body.agency-pad-ui .cc-util-btn {
    aspect-ratio: auto;
    min-height: 88px;
    border-radius: 26px;
    font-size: 28px;
}

body.agency-pad-ui #nc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 4px 0 8px;
    align-content: start;
}

body.agency-pad-ui .nc-item {
    min-height: 126px;
    padding: 18px;
    gap: 14px;
    border-radius: 24px;
}

body.agency-pad-ui .nc-empty {
    grid-column: 1 / -1;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
    font-size: 15px;
}

@media (max-width: 1500px), (max-height: 880px) {
    body.agency-pad-ui #home-screen {
        padding: 70px 22px 24px;
    }

    body.agency-pad-ui #home-clock {
        font-size: 94px;
        letter-spacing: -4.4px;
    }

    body.agency-pad-ui #app-pages-container {
        width: min(100%, 760px);
        max-width: 760px;
    }

    body.agency-pad-ui .app-page,
    body.agency-pad-ui #app-grid {
        width: min(100%, 676px);
        max-width: 676px;
        gap: 26px 18px;
    }

    body.agency-pad-ui #home-dock {
        width: min(100%, 860px);
        max-width: 860px;
        gap: 10px;
        padding: 16px 18px 14px;
    }

    body.agency-pad-ui .dock-icon {
        max-width: 82px;
    }

    body.agency-pad-ui .dock-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }

    body.agency-pad-ui .dock-label {
        font-size: 10px;
    }

    body.agency-pad-ui #cc-panel,
    body.agency-pad-ui #nc-panel {
        top: 14px;
        right: 14px;
        bottom: 14px;
        left: 14px;
        padding: 18px 18px 20px;
    }

    body.agency-pad-ui .cc-top-title,
    body.agency-pad-ui .nc-title {
        font-size: 27px;
    }

    body.agency-pad-ui .cc-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        grid-template-rows: repeat(6, minmax(68px, 1fr));
        gap: 14px;
    }

    body.agency-pad-ui .cc-grid > :nth-child(1) {
        grid-column: 1 / span 4;
        grid-row: 1 / span 2;
    }

    body.agency-pad-ui .cc-grid > :nth-child(2) {
        grid-column: 5 / span 4;
        grid-row: 1;
    }

    body.agency-pad-ui .cc-grid > :nth-child(3) {
        grid-column: 5 / span 4;
        grid-row: 2;
    }

    body.agency-pad-ui .cc-grid > :nth-child(4) {
        grid-column: 1 / span 4;
        grid-row: 3;
    }

    body.agency-pad-ui .cc-grid > :nth-child(5) {
        grid-column: 5 / span 4;
        grid-row: 3;
    }

    body.agency-pad-ui .cc-grid > :nth-child(6) {
        grid-column: 1 / span 4;
        grid-row: 4;
    }

    body.agency-pad-ui .cc-grid > :nth-child(7) {
        grid-column: 5 / span 4;
        grid-row: 4;
    }

    body.agency-pad-ui .cc-grid > :nth-child(8) {
        grid-column: 1 / -1;
        grid-row: 5;
    }

    body.agency-pad-ui .cc-grid > :nth-child(9) {
        grid-column: 1 / -1;
        grid-row: 6;
    }

    body.agency-pad-ui .cc-utils {
        gap: 10px;
    }

    body.agency-pad-ui .cc-util-btn {
        min-height: 76px;
        font-size: 24px;
    }

    body.agency-pad-ui #nc-list {
        grid-template-columns: 1fr;
    }
}

/* Final tablet settings split-view refinement */
body.agency-pad-ui #app-settings {
    --pad-settings-border: rgba(var(--device-accent-rgb), 0.18);
    --pad-settings-border-strong: rgba(var(--device-accent-rgb), 0.34);
    --pad-settings-glow: rgba(var(--device-accent-rgb), 0.12);
    --pad-settings-panel:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 255, 0.88)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.08), rgba(255, 255, 255, 0.18) 72%);
    --pad-settings-panel-strong:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.92)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.16), rgba(255, 255, 255, 0.12) 72%);
    --pad-settings-panel-soft:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(251, 252, 255, 0.7)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.08), rgba(255, 255, 255, 0.08) 68%);
    --pad-settings-shadow:
        0 28px 64px rgba(31, 39, 60, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 0 0 1px rgba(var(--device-accent-rgb), 0.04);
    --pad-settings-shadow-soft:
        0 20px 44px rgba(32, 40, 59, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
    background:
        radial-gradient(circle at 12% 0%, rgba(var(--device-accent-rgb), 0.12), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(var(--device-accent-rgb), 0.08), transparent 26%),
        linear-gradient(180deg, rgba(244, 246, 252, 0.98), rgba(233, 237, 245, 0.98));
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings {
    --pad-settings-border: rgba(var(--device-accent-rgb), 0.22);
    --pad-settings-border-strong: rgba(var(--device-accent-rgb), 0.42);
    --pad-settings-glow: rgba(var(--device-accent-rgb), 0.18);
    --pad-settings-panel:
        linear-gradient(180deg, rgba(34, 38, 49, 0.84), rgba(18, 22, 31, 0.78)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.14), rgba(14, 18, 26, 0.88) 74%);
    --pad-settings-panel-strong:
        linear-gradient(180deg, rgba(38, 43, 56, 0.92), rgba(18, 22, 31, 0.82)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.24), rgba(12, 16, 24, 0.9) 74%);
    --pad-settings-panel-soft:
        linear-gradient(180deg, rgba(26, 31, 42, 0.8), rgba(17, 21, 30, 0.76)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.14), rgba(16, 20, 28, 0.78) 70%);
    --pad-settings-shadow:
        0 30px 72px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(var(--device-accent-rgb), 0.08);
    --pad-settings-shadow-soft:
        0 22px 48px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background:
        radial-gradient(circle at 14% 0%, rgba(var(--device-accent-rgb), 0.16), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(var(--device-accent-rgb), 0.12), transparent 22%),
        linear-gradient(180deg, rgba(9, 12, 19, 0.98), rgba(13, 16, 24, 0.98));
}

body.agency-pad-ui #app-settings .app-header {
    padding: 68px 30px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.16)),
        linear-gradient(90deg, rgba(var(--device-accent-rgb), 0.08), rgba(255, 255, 255, 0) 48%, rgba(var(--device-accent-rgb), 0.05));
    border-bottom: 1px solid rgba(var(--device-accent-rgb), 0.12);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .app-header {
    background:
        linear-gradient(180deg, rgba(26, 30, 42, 0.9), rgba(19, 23, 33, 0.4)),
        linear-gradient(90deg, rgba(var(--device-accent-rgb), 0.12), rgba(255, 255, 255, 0) 52%, rgba(var(--device-accent-rgb), 0.08));
    border-bottom-color: rgba(var(--device-accent-rgb), 0.16);
}

body.agency-pad-ui #app-settings .back-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 24px;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(31, 39, 57, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.16), rgba(255, 255, 255, 0.12) 74%);
    border: 1px solid rgba(var(--device-accent-rgb), 0.18);
    box-shadow: 0 14px 28px rgba(var(--device-accent-rgb), 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .back-btn {
    color: rgba(246, 248, 255, 0.94);
    background:
        linear-gradient(180deg, rgba(36, 42, 55, 0.84), rgba(20, 24, 34, 0.74)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.22), rgba(12, 16, 24, 0.88) 72%);
    border-color: rgba(var(--device-accent-rgb), 0.24);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui #app-settings .app-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

body.agency-pad-ui .settings-app-content {
    padding: 0 30px 74px;
}

body.agency-pad-ui #app-settings .settings-shell {
    max-width: 1240px;
    margin: 0 auto;
}

body.agency-pad-ui #app-settings #settings-main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(330px, 382px) minmax(0, 1fr);
    gap: 24px 30px;
    align-items: start;
}

body.agency-pad-ui #app-settings #settings-main::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 382px;
    border-radius: 40px;
    background: var(--pad-settings-panel);
    border: 1px solid var(--pad-settings-border);
    box-shadow: var(--pad-settings-shadow);
    pointer-events: none;
}

body.agency-pad-ui #app-settings #settings-main > * {
    position: relative;
    z-index: 1;
}

body.agency-pad-ui #app-settings #settings-main .settings-main-lead,
body.agency-pad-ui #app-settings #settings-main .settings-profile-card,
body.agency-pad-ui #app-settings #settings-main .settings-search-pill,
body.agency-pad-ui #app-settings #settings-main .settings-search-empty {
    grid-column: 1;
    margin-left: 18px;
    margin-right: 18px;
}

body.agency-pad-ui #app-settings #settings-main .settings-main-lead {
    padding: 30px 26px 8px;
}

body.agency-pad-ui #app-settings #settings-main .settings-group {
    grid-column: 2;
    width: min(100%, 720px);
    margin: 0 auto 20px;
}

body.agency-pad-ui #app-settings .settings-main-title {
    font-size: 64px;
    line-height: 0.9;
    letter-spacing: -0.09em;
}

body.agency-pad-ui #app-settings .settings-main-sub {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.45;
    max-width: 300px;
}

body.agency-pad-ui #app-settings .settings-group-title {
    padding: 0 14px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

body.agency-pad-ui #app-settings .settings-profile-card,
body.agency-pad-ui #app-settings .settings-info-banner,
body.agency-pad-ui #app-settings .settings-about-hero,
body.agency-pad-ui #app-settings .settings-search-pill,
body.agency-pad-ui #app-settings .settings-search-empty,
body.agency-pad-ui #app-settings .settings-item,
body.agency-pad-ui #app-settings .wallpaper-url-section {
    background: var(--pad-settings-panel-soft);
    border: 1px solid var(--pad-settings-border);
    box-shadow: var(--pad-settings-shadow-soft);
    backdrop-filter: blur(28px) saturate(165%);
    -webkit-backdrop-filter: blur(28px) saturate(165%);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-profile-card,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-info-banner,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-about-hero,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-search-pill,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-search-empty,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-item,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .wallpaper-url-section {
    background: var(--pad-settings-panel-soft);
}

body.agency-pad-ui #app-settings .settings-profile-card {
    gap: 18px;
    margin-top: 2px;
    padding: 22px 22px;
    border-radius: 34px;
}

body.agency-pad-ui #app-settings .settings-profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    font-size: 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.46),
        0 14px 30px rgba(var(--device-accent-rgb), 0.18);
}

body.agency-pad-ui #app-settings .settings-profile-name,
body.agency-pad-ui #app-settings .settings-info-banner-title,
body.agency-pad-ui #app-settings .settings-about-owner-name {
    font-size: 28px;
    letter-spacing: -0.07em;
}

body.agency-pad-ui #app-settings .settings-profile-sub,
body.agency-pad-ui #app-settings .settings-info-banner-sub,
body.agency-pad-ui #app-settings .settings-about-owner-sub,
body.agency-pad-ui #app-settings .settings-item-note {
    font-size: 13px;
    line-height: 1.45;
}

body.agency-pad-ui #app-settings .settings-profile-arrow {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.14), rgba(255, 255, 255, 0.1) 74%);
    border: 1px solid rgba(var(--device-accent-rgb), 0.16);
    color: rgba(31, 39, 57, 0.66);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-profile-arrow {
    background:
        linear-gradient(180deg, rgba(35, 41, 54, 0.88), rgba(20, 24, 33, 0.76)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.18), rgba(15, 19, 27, 0.12) 72%);
    color: rgba(246, 248, 255, 0.68);
}

body.agency-pad-ui #app-settings .settings-search-pill {
    min-height: 60px;
    padding: 0 20px;
    border-radius: 999px;
    margin-bottom: 18px;
}

body.agency-pad-ui #app-settings .settings-search-pill input {
    font-size: 16px;
    font-weight: 700;
}

body.agency-pad-ui #app-settings .settings-search-empty {
    min-height: 108px;
    border-radius: 28px;
}

body.agency-pad-ui #app-settings .settings-item {
    min-height: 82px;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    border-radius: 30px !important;
}

body.agency-pad-ui #app-settings .settings-nav-item {
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

body.agency-pad-ui #app-settings .settings-nav-item.is-selected {
    border-color: var(--pad-settings-border-strong) !important;
    background: var(--pad-settings-panel-strong) !important;
    box-shadow:
        0 22px 44px rgba(var(--device-accent-rgb), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-nav-item.is-selected {
    box-shadow:
        0 24px 46px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(var(--device-accent-rgb), 0.08);
}

body.agency-pad-ui #app-settings .settings-item.settings-toggle-row {
    gap: 20px;
}

body.agency-pad-ui #app-settings .settings-row-copy {
    gap: 5px;
}

body.agency-pad-ui #app-settings .settings-label {
    font-size: 18px;
    letter-spacing: -0.03em;
}

body.agency-pad-ui #app-settings .settings-value {
    font-size: 14px;
    font-weight: 700;
}

body.agency-pad-ui #app-settings .settings-nav-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    font-size: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 12px 24px rgba(var(--device-accent-rgb), 0.12);
}

body.agency-pad-ui #app-settings .settings-select,
body.agency-pad-ui #app-settings .settings-slider-container,
body.agency-pad-ui #app-settings .wallpaper-url-input,
body.agency-pad-ui #app-settings .wallpaper-url-apply {
    border-radius: 22px;
}

body.agency-pad-ui #app-settings .settings-select,
body.agency-pad-ui #app-settings .wallpaper-url-input {
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(var(--device-accent-rgb), 0.16);
    background-color: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.agency-pad-ui #app-settings .settings-select {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233c3c43' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 10px;
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-select,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .wallpaper-url-input {
    background-color: rgba(30, 34, 44, 0.78);
    border-color: rgba(var(--device-accent-rgb), 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 10px;
}

body.agency-pad-ui #app-settings .settings-link-btn,
body.agency-pad-ui #app-settings .wallpaper-url-apply {
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid rgba(var(--device-accent-rgb), 0.2);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.96), rgba(var(--device-accent-rgb), 0.72)),
        rgba(79, 141, 255, 0.92);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.03em;
    box-shadow:
        0 18px 34px rgba(var(--device-accent-rgb), 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.agency-pad-ui #app-settings .agency-toggle {
    width: 58px;
    height: 34px;
    border-radius: 17px;
    background: rgba(136, 145, 158, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .agency-toggle {
    background: rgba(101, 109, 126, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui #app-settings .agency-toggle.active {
    background:
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.92), rgba(var(--device-accent-rgb), 0.72));
}

body.agency-pad-ui #app-settings .agency-toggle::after {
    width: 30px;
    height: 30px;
    top: 2px;
    left: 2px;
    box-shadow: 0 8px 16px rgba(15, 18, 25, 0.18);
}

body.agency-pad-ui #app-settings .agency-toggle.active::after {
    transform: translateX(24px);
}

body.agency-pad-ui #app-settings .language-selector,
body.agency-pad-ui #app-settings #timezone-selector {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
    gap: 12px !important;
}

body.agency-pad-ui #app-settings #timezone-selector {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

body.agency-pad-ui #app-settings .language-option {
    min-height: 82px;
    padding: 14px 12px !important;
    border-radius: 22px;
    border: 1px solid rgba(var(--device-accent-rgb), 0.14);
    background: var(--pad-settings-panel-soft);
    box-shadow: var(--pad-settings-shadow-soft);
}

body.agency-pad-ui #app-settings .language-option.active {
    border-color: var(--pad-settings-border-strong);
    background: var(--pad-settings-panel-strong);
    box-shadow:
        0 18px 34px rgba(var(--device-accent-rgb), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.agency-pad-ui #app-settings .frame-finish-selector {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

body.agency-pad-ui #app-settings .frame-finish-option,
body.agency-pad-ui #app-settings .appearance-option,
body.agency-pad-ui #app-settings .hw-toggle-item,
body.agency-pad-ui #app-settings .lock-style-btn {
    border-color: rgba(var(--device-accent-rgb), 0.14);
    background: var(--pad-settings-panel-soft);
    box-shadow: var(--pad-settings-shadow-soft);
}

body.agency-pad-ui #app-settings .frame-finish-option.active,
body.agency-pad-ui #app-settings .appearance-option.active,
body.agency-pad-ui #app-settings .hw-toggle-item:has(input:checked),
body.agency-pad-ui #app-settings .lock-style-btn.active {
    border-color: var(--pad-settings-border-strong);
    background: var(--pad-settings-panel-strong);
    box-shadow:
        0 18px 34px rgba(var(--device-accent-rgb), 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    color: rgba(24, 33, 49, 0.96);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .frame-finish-option.active,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .appearance-option.active,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .hw-toggle-item:has(input:checked),
body.agency-pad-ui #phone-frame.dark-mode #app-settings .lock-style-btn.active {
    color: rgba(247, 249, 255, 0.96);
}

body.agency-pad-ui #app-settings .settings-shell.has-detail {
    display: grid;
    grid-template-columns: minmax(320px, 372px) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main {
    align-self: start;
    position: sticky;
    top: 0;
    display: block;
    padding: 18px;
    border-radius: 40px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main::before {
    inset: 0;
    width: auto;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-lead,
body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-profile-card,
body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-search-pill,
body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-search-empty,
body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-group {
    grid-column: auto;
    width: 100%;
    margin: 0 0 14px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-lead {
    padding: 12px 10px 6px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-title {
    font-size: 36px;
    line-height: 0.94;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-sub {
    max-width: none;
    font-size: 13px;
    margin-top: 10px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-group-title {
    padding: 0 12px 8px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-item,
body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-profile-card {
    min-height: 74px;
    border-radius: 26px !important;
    padding: 16px 18px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail > .settings-page.active:not(#settings-main) {
    display: block;
    max-width: none;
    padding: 24px 24px 30px;
    border-radius: 40px;
    background: var(--pad-settings-panel);
    border: 1px solid var(--pad-settings-border);
    box-shadow: var(--pad-settings-shadow);
}

body.agency-pad-ui #app-settings .settings-shell.has-detail > .settings-page.active:not(#settings-main) .settings-group {
    width: min(100%, 760px);
    margin: 0 auto 22px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail > .settings-page.active:not(#settings-main) .settings-group-title {
    padding-left: 6px;
}

body.agency-pad-ui #app-settings .appearance-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.agency-pad-ui #app-settings .appearance-option {
    min-height: 208px;
    padding: 16px 14px 14px;
    border-radius: 28px;
    gap: 12px;
    align-items: stretch;
}

body.agency-pad-ui #app-settings .appearance-preview {
    width: 100%;
    height: 134px;
    border-radius: 28px;
    border-width: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 16px 28px rgba(18, 22, 32, 0.18);
}

body.agency-pad-ui #app-settings .appearance-preview::before {
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 54px;
    height: 10px;
    border-radius: 999px;
}

body.agency-pad-ui #app-settings .appearance-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, transparent 0 16px, rgba(255, 255, 255, 0.04) 16px 17px, transparent 17px 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 241, 248, 0.9)) 16px 28px / 36% 32px no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 241, 248, 0.88)) 16px 68px / 36% 26px no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 244, 250, 0.94)) right 16px top 28px / 44% 66px no-repeat,
        linear-gradient(180deg, rgba(20, 26, 39, 0.16), rgba(20, 26, 39, 0.06)) center bottom 14px / 72px 7px no-repeat;
    pointer-events: none;
}

body.agency-pad-ui #app-settings .appearance-preview.light-preview {
    background:
        radial-gradient(circle at 18% 18%, rgba(var(--device-accent-rgb), 0.16), transparent 30%),
        linear-gradient(180deg, #f7f9fc 0%, #edf2f8 54%, #fbfdff 100%);
}

body.agency-pad-ui #app-settings .appearance-preview.light-preview::before {
    background: rgba(14, 18, 24, 0.9);
}

body.agency-pad-ui #app-settings .appearance-preview.light-preview::after {
    background:
        linear-gradient(180deg, transparent 0 16px, rgba(83, 96, 118, 0.08) 16px 17px, transparent 17px 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 241, 248, 0.96)) 16px 28px / 36% 32px no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 242, 248, 0.9)) 16px 68px / 36% 26px no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 250, 0.96)) right 16px top 28px / 44% 66px no-repeat,
        linear-gradient(180deg, rgba(21, 31, 49, 0.14), rgba(21, 31, 49, 0.05)) center bottom 14px / 74px 7px no-repeat;
}

body.agency-pad-ui #app-settings .appearance-preview.dark-preview {
    background:
        radial-gradient(circle at 20% 22%, rgba(var(--device-accent-rgb), 0.16), transparent 30%),
        linear-gradient(180deg, #202531 0%, #0f131b 58%, #090c12 100%);
}

body.agency-pad-ui #app-settings .appearance-preview.dark-preview::before {
    background: rgba(58, 63, 72, 0.92);
}

body.agency-pad-ui #app-settings .appearance-preview.dark-preview::after {
    background:
        linear-gradient(180deg, transparent 0 16px, rgba(255, 255, 255, 0.05) 16px 17px, transparent 17px 100%),
        linear-gradient(180deg, rgba(41, 47, 60, 0.96), rgba(24, 29, 38, 0.96)) 16px 28px / 36% 32px no-repeat,
        linear-gradient(180deg, rgba(37, 43, 54, 0.96), rgba(21, 25, 33, 0.94)) 16px 68px / 36% 26px no-repeat,
        linear-gradient(180deg, rgba(31, 36, 46, 0.98), rgba(13, 17, 24, 0.96)) right 16px top 28px / 44% 66px no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)) center bottom 14px / 74px 7px no-repeat;
}

body.agency-pad-ui #app-settings .appearance-preview.auto-preview {
    background:
        radial-gradient(circle at 20% 18%, rgba(var(--device-accent-rgb), 0.16), transparent 28%),
        linear-gradient(180deg, #f6f9fd 0%, #eef3f9 47%, #1e2430 53%, #0a0d13 100%);
}

body.agency-pad-ui #app-settings .appearance-preview.auto-preview::before {
    background: rgba(25, 29, 37, 0.88);
}

body.agency-pad-ui #app-settings .appearance-preview.auto-preview::after {
    background:
        linear-gradient(180deg, transparent 0 16px, rgba(111, 124, 146, 0.1) 16px 17px, transparent 17px 48%, rgba(255, 255, 255, 0.06) 48% 49%, transparent 49px 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 242, 248, 0.92)) 16px 28px / 36% 30px no-repeat,
        linear-gradient(180deg, rgba(41, 47, 60, 0.96), rgba(23, 28, 37, 0.94)) 16px 66px / 36% 28px no-repeat,
        linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(238, 242, 248, 0.94)) right 16px top 28px / 44% 30px no-repeat,
        linear-gradient(180deg, rgba(31, 36, 46, 0.98), rgba(12, 16, 23, 0.96)) right 16px top 64px / 44% 30px no-repeat,
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)) center bottom 14px / 74px 7px no-repeat;
}

body.agency-pad-ui #app-settings .appearance-label {
    text-align: center;
    font-size: 17px;
    font-weight: 800;
}

body.agency-pad-ui #app-settings .appearance-check {
    width: 24px;
    height: 24px;
    margin: 0 auto;
}

body.agency-pad-ui #app-settings .hw-widget-toggles,
body.agency-pad-ui #app-settings .lock-clock-styles {
    gap: 12px;
}

body.agency-pad-ui #app-settings .hw-toggle-item,
body.agency-pad-ui #app-settings .lock-style-btn {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
}

body.agency-pad-ui #app-settings .settings-slider-container {
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(var(--device-accent-rgb), 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.56)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.08), rgba(255, 255, 255, 0.06) 70%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-slider-container {
    background:
        linear-gradient(180deg, rgba(35, 40, 52, 0.82), rgba(21, 25, 35, 0.72)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.14), rgba(15, 19, 27, 0.08) 72%);
    border-color: rgba(var(--device-accent-rgb), 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 1500px), (max-height: 880px) {
    body.agency-pad-ui #app-settings .settings-app-content {
        padding: 0 22px 58px;
    }

    body.agency-pad-ui #app-settings #settings-main {
        grid-template-columns: minmax(300px, 344px) minmax(0, 1fr);
        gap: 20px 24px;
    }

    body.agency-pad-ui #app-settings #settings-main::before {
        width: 344px;
    }

    body.agency-pad-ui #app-settings .settings-shell.has-detail {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 22px;
    }

    body.agency-pad-ui #app-settings .settings-main-title {
        font-size: 56px;
    }
}

body.agency-pad-ui #app-notes,
body.agency-pad-ui #app-notes-editor {
    background:
        radial-gradient(circle at 12% 0%, rgba(var(--device-accent-rgb), 0.12), transparent 28%),
        linear-gradient(180deg, rgba(248, 246, 251, 0.98), rgba(239, 237, 245, 0.98)) !important;
}

body.agency-pad-ui #phone-frame.dark-mode #app-notes,
body.agency-pad-ui #phone-frame.dark-mode #app-notes-editor {
    background:
        radial-gradient(circle at 12% 0%, rgba(var(--device-accent-rgb), 0.16), transparent 26%),
        linear-gradient(180deg, rgba(18, 20, 28, 0.98), rgba(12, 14, 20, 0.98)) !important;
}

body.agency-pad-ui .notes-app-shell,
body.agency-pad-ui .notes-editor-shell {
    width: min(100%, 1140px);
    margin: 0 auto;
}

body.agency-pad-ui .notes-app-shell {
    padding: 62px 34px 28px;
}

body.agency-pad-ui .notes-round-btn,
body.agency-pad-ui .notes-compose-btn,
body.agency-pad-ui .notes-done-btn {
    width: 66px;
    height: 66px;
    border-radius: 33px;
}

body.agency-pad-ui .notes-pill-btn {
    min-width: 78px;
    height: 66px;
    border-radius: 33px;
}

body.agency-pad-ui .notes-hero {
    margin-top: 28px;
    margin-bottom: 30px;
}

body.agency-pad-ui .notes-hero-title {
    font-size: 74px;
}

body.agency-pad-ui .notes-hero-sub {
    font-size: 20px;
}

body.agency-pad-ui .notes-list-view {
    gap: 30px;
}

body.agency-pad-ui .notes-group-label {
    font-size: 23px;
}

body.agency-pad-ui .notes-group-card {
    border-radius: 34px;
}

body.agency-pad-ui .notes-entry {
    gap: 18px;
    padding: 22px 24px;
}

body.agency-pad-ui .note-title {
    font-size: 22px;
}

body.agency-pad-ui .note-preview {
    font-size: 16px;
}

body.agency-pad-ui .notes-entry-thumb {
    width: 78px;
    min-width: 78px;
    height: 78px;
    border-radius: 24px;
}

body.agency-pad-ui .notes-bottom-bar {
    width: min(100%, 760px);
    margin-left: auto;
    margin-right: auto;
    bottom: 24px;
}

body.agency-pad-ui .notes-search-shell {
    min-height: 76px;
    border-radius: 38px;
}

body.agency-pad-ui .notes-editor-shell {
    padding: 62px 34px 30px;
}

body.agency-pad-ui .notes-editor-stage {
    margin-top: 28px;
}

body.agency-pad-ui .notes-editor-surface {
    padding: 32px 30px 34px;
    border-radius: 38px;
}

body.agency-pad-ui #note-editor-title {
    font-size: 54px;
}

body.agency-pad-ui #note-editor-content {
    min-height: 520px;
    font-size: 20px;
}

body.agency-pad-ui .notes-editor-toolbar {
    min-height: 78px;
    padding: 12px 16px;
    border-radius: 38px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.agency-pad-ui .notes-toolbar-btn {
    width: 100%;
    height: 56px;
    border-radius: 20px;
}

body.agency-pad-ui .notes-editor-paper {
    min-height: 560px;
    border-radius: 30px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12)),
        repeating-linear-gradient(180deg, transparent, transparent 39px, rgba(var(--device-accent-rgb), 0.08) 39px, rgba(var(--device-accent-rgb), 0.08) 40px);
    border: 1px solid rgba(var(--device-accent-rgb), 0.12);
}

body.agency-pad-ui #phone-frame.dark-mode .notes-editor-paper {
    background:
        linear-gradient(180deg, rgba(28, 32, 43, 0.46), rgba(28, 32, 43, 0.18)),
        repeating-linear-gradient(180deg, transparent, transparent 39px, rgba(var(--device-accent-rgb), 0.08) 39px, rgba(var(--device-accent-rgb), 0.08) 40px);
    border-color: rgba(var(--device-accent-rgb), 0.16);
}

body.agency-pad-ui #note-editor-content {
    min-height: 100%;
    padding: 12px 18px 18px;
    background: transparent;
    position: relative;
    z-index: 1;
}

body.agency-pad-ui .notes-ink-layer {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    z-index: 2;
}

body.agency-pad-ui .notes-editor-shell.is-draw-open .notes-ink-layer,
body.agency-pad-ui .notes-editor-shell.is-draw-open .notes-draw-controls {
    display: block;
}

body.agency-pad-ui .notes-editor-shell.is-draw-open .notes-ink-layer {
    pointer-events: auto;
}

body.agency-pad-ui .notes-editor-shell.is-draw-open #note-editor-content {
    pointer-events: none;
    user-select: none;
    caret-color: transparent;
}

body.agency-pad-ui .notes-draw-controls {
    --notes-ink-color: #f2c94c;
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: none;
    min-width: 320px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.66);
    box-shadow: 0 16px 34px rgba(53, 57, 74, 0.12);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

body.agency-pad-ui #phone-frame.dark-mode .notes-draw-controls {
    background: rgba(30, 34, 44, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .notes-draw-clear {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(var(--device-accent-rgb), 0.14);
    color: var(--notes-text);
    font-size: 14px;
    font-weight: 700;
}

body.agency-pad-ui .notes-draw-controls-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

body.agency-pad-ui #notes-draw-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

body.agency-pad-ui .notes-draw-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}

body.agency-pad-ui .notes-draw-color,
body.agency-pad-ui .notes-draw-swatch {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: var(--note-ink-preview, #ffffff);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 10px 22px rgba(17, 17, 20, 0.16);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.agency-pad-ui .notes-draw-color::after,
body.agency-pad-ui .notes-draw-swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
    pointer-events: none;
}

body.agency-pad-ui .notes-draw-color-more {
    border: none;
    background:
        conic-gradient(from 180deg, #ff6b6b, #ffd93d, #6bcB77, #4d96ff, #845ef7, #ff6b6b);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 12px 24px rgba(20, 24, 36, 0.2);
}

body.agency-pad-ui .notes-draw-color-more-fill {
    position: absolute;
    inset: 7px;
    border-radius: 999px;
    background: var(--notes-ink-color);
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 4px 10px rgba(20, 24, 36, 0.16);
    z-index: 1;
}

body.agency-pad-ui .notes-draw-color.active,
body.agency-pad-ui .notes-draw-swatch.active,
body.agency-pad-ui .notes-draw-color-more.active,
body.agency-pad-ui .notes-draw-color-more.menu-open {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(var(--device-accent-rgb), 0.18), 0 12px 24px rgba(17, 17, 20, 0.2);
}

body.agency-pad-ui .notes-draw-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: 320px;
    padding: 16px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 22px 42px rgba(23, 27, 39, 0.18);
    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);
}

body.agency-pad-ui .notes-draw-menu[hidden] {
    display: none !important;
}

body.agency-pad-ui #phone-frame.dark-mode .notes-draw-menu {
    background: rgba(25, 29, 39, 0.94);
    border-color: rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .notes-draw-menu-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

body.agency-pad-ui .notes-draw-menu-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(var(--device-accent-rgb), 0.72);
}

body.agency-pad-ui .notes-draw-menu-title {
    margin-top: 4px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--notes-text);
}

body.agency-pad-ui .notes-draw-menu-value {
    min-width: 88px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(var(--device-accent-rgb), 0.1);
    color: var(--notes-text);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.06em;
}

body.agency-pad-ui .notes-draw-menu-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

body.agency-pad-ui .notes-draw-picker-row {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(var(--device-accent-rgb), 0.08);
    border: 1px solid rgba(var(--device-accent-rgb), 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--notes-text);
    font-size: 14px;
    font-weight: 700;
}

body.agency-pad-ui #notes-draw-color-picker {
    width: 88px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
}

body.agency-pad-ui #notes-draw-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

body.agency-pad-ui #notes-draw-color-picker::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.74);
    border-radius: 16px;
}

body.agency-pad-ui .tycoon-stage,
body.agency-pad-ui .tictactoe-stage {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 22px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.28);
}

body.agency-pad-ui .tycoon-stage {
    background:
        radial-gradient(circle at top left, rgba(31, 182, 255, 0.24), transparent 30%),
        radial-gradient(circle at top right, rgba(88, 86, 214, 0.22), transparent 30%),
        linear-gradient(180deg, #071521, #020913 72%);
}

body.agency-pad-ui .tycoon-shell {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    overflow: auto;
}

body.agency-pad-ui .tycoon-hero,
body.agency-pad-ui .tycoon-side-card,
body.agency-pad-ui .tycoon-card,
body.agency-pad-ui .tictactoe-sidebar,
body.agency-pad-ui .tictactoe-board-panel {
    background: rgba(7, 16, 28, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

body.agency-pad-ui .tycoon-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-radius: 28px;
}

body.agency-pad-ui .tycoon-hero-copy {
    max-width: 520px;
}

body.agency-pad-ui .tycoon-kicker,
body.agency-pad-ui .tictactoe-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

body.agency-pad-ui .tycoon-title,
body.agency-pad-ui .tictactoe-title {
    margin-top: 10px;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.06em;
    color: #fff;
}

body.agency-pad-ui .tycoon-copy,
body.agency-pad-ui .tictactoe-copy {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
}

body.agency-pad-ui .tycoon-hero-stats {
    width: min(100%, 390px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.agency-pad-ui .tycoon-stat-card,
body.agency-pad-ui .tictactoe-stat-card {
    padding: 14px 16px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .tycoon-stat-card span,
body.agency-pad-ui .tictactoe-stat-card span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

body.agency-pad-ui .tycoon-stat-card strong,
body.agency-pad-ui .tictactoe-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
}

body.agency-pad-ui .tycoon-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    min-height: 0;
}

body.agency-pad-ui .tycoon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
}

body.agency-pad-ui .tycoon-card {
    border-radius: 26px;
    padding: 18px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.agency-pad-ui .tycoon-card.is-locked {
    opacity: 0.78;
}

body.agency-pad-ui .tycoon-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.agency-pad-ui .tycoon-card-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

body.agency-pad-ui .tycoon-card-sub {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
}

body.agency-pad-ui .tycoon-card-badge {
    min-width: 72px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
}

body.agency-pad-ui .tycoon-meter {
    height: 11px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .tycoon-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--tycoon-accent), rgba(255, 255, 255, 0.92));
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.12);
}

body.agency-pad-ui .tycoon-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.agency-pad-ui .tycoon-meta-pill {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .tycoon-meta-pill span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

body.agency-pad-ui .tycoon-meta-pill strong {
    display: block;
    margin-top: 7px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

body.agency-pad-ui .tycoon-upgrade-btn,
body.agency-pad-ui .tycoon-primary-btn,
body.agency-pad-ui .tycoon-secondary-btn,
body.agency-pad-ui .tycoon-reset-btn,
body.agency-pad-ui .tictactoe-primary-btn,
body.agency-pad-ui .tictactoe-secondary-btn,
body.agency-pad-ui .tictactoe-segment,
body.agency-pad-ui .tictactoe-chip {
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.agency-pad-ui .tycoon-upgrade-btn:active,
body.agency-pad-ui .tycoon-primary-btn:active,
body.agency-pad-ui .tycoon-secondary-btn:active,
body.agency-pad-ui .tycoon-reset-btn:active,
body.agency-pad-ui .tictactoe-primary-btn:active,
body.agency-pad-ui .tictactoe-secondary-btn:active,
body.agency-pad-ui .tictactoe-segment:active,
body.agency-pad-ui .tictactoe-chip:active {
    transform: scale(0.97);
}

body.agency-pad-ui .tycoon-upgrade-btn {
    margin-top: auto;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--tycoon-accent), #f5fbff);
    color: #071521;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

body.agency-pad-ui .tycoon-upgrade-btn.is-muted {
    opacity: 0.62;
}

body.agency-pad-ui .tycoon-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.agency-pad-ui .tycoon-side-card {
    border-radius: 24px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.agency-pad-ui .tycoon-side-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

body.agency-pad-ui .tycoon-primary-btn,
body.agency-pad-ui .tictactoe-primary-btn {
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #64d2ff, #7f5af0);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(100, 210, 255, 0.18);
}

body.agency-pad-ui .tycoon-secondary-btn,
body.agency-pad-ui .tycoon-reset-btn,
body.agency-pad-ui .tictactoe-secondary-btn,
body.agency-pad-ui .tictactoe-segment,
body.agency-pad-ui .tictactoe-chip {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

body.agency-pad-ui .tycoon-feed {
    min-height: 94px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.6;
}

body.agency-pad-ui .tycoon-unlock {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.58);
}

body.agency-pad-ui .tycoon-reset-btn {
    color: rgba(255, 255, 255, 0.82);
}

body.agency-pad-ui .tictactoe-stage {
    margin: 14px 18px 18px;
    background:
        radial-gradient(circle at top left, rgba(124, 92, 255, 0.26), transparent 30%),
        radial-gradient(circle at bottom right, rgba(100, 210, 255, 0.2), transparent 28%),
        linear-gradient(180deg, #090f1d, #03060c 72%);
}

body.agency-pad-ui .tictactoe-shell {
    height: 100%;
    display: grid;
    grid-template-columns: 312px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
}

body.agency-pad-ui .tictactoe-sidebar,
body.agency-pad-ui .tictactoe-board-panel {
    min-height: 0;
    border-radius: 24px;
    padding: 18px;
}

body.agency-pad-ui .tictactoe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.agency-pad-ui .tictactoe-title {
    margin-top: 8px;
    font-size: 34px;
}

body.agency-pad-ui .tictactoe-copy {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
}

body.agency-pad-ui .tictactoe-mode-row,
body.agency-pad-ui .tictactoe-difficulty-row,
body.agency-pad-ui .tictactoe-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.agency-pad-ui .tictactoe-difficulty-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.agency-pad-ui .tictactoe-difficulty-row.is-hidden {
    display: none;
}

body.agency-pad-ui .tictactoe-segment.active,
body.agency-pad-ui .tictactoe-chip.active {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.96), rgba(100, 210, 255, 0.94));
    box-shadow: 0 16px 28px rgba(124, 92, 255, 0.18);
}

body.agency-pad-ui .tictactoe-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.agency-pad-ui .tictactoe-stat-card {
    padding: 12px 14px 14px;
}

body.agency-pad-ui .tictactoe-stat-card strong {
    margin-top: 6px;
    font-size: 24px;
}

body.agency-pad-ui .tictactoe-board-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

body.agency-pad-ui .tictactoe-status {
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-align: center;
}

body.agency-pad-ui .tictactoe-status[data-tone="x"] {
    color: #64d2ff;
}

body.agency-pad-ui .tictactoe-status[data-tone="o"] {
    color: #ff7ab8;
}

body.agency-pad-ui .tictactoe-status[data-tone="draw"],
body.agency-pad-ui .tictactoe-status[data-tone="thinking"] {
    color: #ffe58d;
}

body.agency-pad-ui .tictactoe-grid {
    width: min(100%, 470px, calc(100vh - 360px));
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.agency-pad-ui .tictactoe-cell {
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: clamp(66px, 6.8vw, 82px);
    font-weight: 900;
    letter-spacing: -0.08em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.agency-pad-ui .tictactoe-cell:not(:disabled):hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

body.agency-pad-ui .tictactoe-cell.mark-x {
    color: #64d2ff;
}

body.agency-pad-ui .tictactoe-cell.mark-o {
    color: #ff7ab8;
}

body.agency-pad-ui .tictactoe-cell.is-win {
    background: rgba(255, 229, 141, 0.14);
    box-shadow: 0 0 0 2px rgba(255, 229, 141, 0.35), 0 20px 34px rgba(0, 0, 0, 0.22);
    transform: scale(1.03);
}

body.agency-pad-ui .tictactoe-footnote {
    max-width: 470px;
    text-align: center;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.64);
}

body.agency-pad-ui .tictactoe-primary-btn {
    min-height: 50px;
}

body.agency-pad-ui .tictactoe-secondary-btn,
body.agency-pad-ui .tictactoe-segment,
body.agency-pad-ui .tictactoe-chip {
    min-height: 44px;
    font-size: 13px;
}

/* ── TicTacToe Light Mode ── */
#phone-frame:not(.dark-mode) .tictactoe-stage {
    background:
        radial-gradient(circle at top left, rgba(124, 92, 255, 0.1), transparent 30%),
        radial-gradient(circle at bottom right, rgba(100, 210, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #f4f6fc 0%, #eef1f8 100%) !important;
    margin: 0 !important;
    padding: 14px 18px 18px;
    border-radius: 0 !important;
}

#phone-frame:not(.dark-mode) .tictactoe-sidebar,
#phone-frame:not(.dark-mode) .tictactoe-board-panel {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(38, 60, 100, 0.08);
}

#phone-frame:not(.dark-mode) .tictactoe-sidebar {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .tictactoe-kicker {
    color: rgba(124, 92, 255, 0.7);
}

#phone-frame:not(.dark-mode) .tictactoe-title {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .tictactoe-desc {
    color: rgba(28, 28, 30, 0.55);
}

#phone-frame:not(.dark-mode) .tictactoe-cell {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

#phone-frame:not(.dark-mode) .tictactoe-cell:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.07);
}

#phone-frame:not(.dark-mode) .tictactoe-cell.is-win {
    background: rgba(255, 200, 50, 0.12);
}

#phone-frame:not(.dark-mode) .tictactoe-cell.mark-x {
    color: #0066cc;
}

#phone-frame:not(.dark-mode) .tictactoe-cell.mark-o {
    color: #cc3366;
}

#phone-frame:not(.dark-mode) .tictactoe-status[data-tone="x"] {
    color: #0066cc;
}

#phone-frame:not(.dark-mode) .tictactoe-status[data-tone="o"] {
    color: #cc3366;
}

#phone-frame:not(.dark-mode) .tictactoe-status[data-tone="draw"],
#phone-frame:not(.dark-mode) .tictactoe-status[data-tone="thinking"] {
    color: #997700;
}

#phone-frame:not(.dark-mode) .tictactoe-stat-card {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

#phone-frame:not(.dark-mode) .tictactoe-stat-card span,
#phone-frame:not(.dark-mode) .tictactoe-stat-label {
    color: rgba(28, 28, 30, 0.45);
}

#phone-frame:not(.dark-mode) .tictactoe-stat-card strong,
#phone-frame:not(.dark-mode) .tictactoe-stat-val {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .tictactoe-status {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .tictactoe-segment,
#phone-frame:not(.dark-mode) .tictactoe-chip,
#phone-frame:not(.dark-mode) .tictactoe-secondary-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(28, 28, 30, 0.7);
}

#phone-frame:not(.dark-mode) .tictactoe-segment.active,
#phone-frame:not(.dark-mode) .tictactoe-chip.active {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.92), rgba(100, 210, 255, 0.88));
    color: #fff;
    border-color: rgba(124, 92, 255, 0.3);
}

#phone-frame:not(.dark-mode) .tictactoe-primary-btn {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.92), rgba(100, 210, 255, 0.88));
    color: #fff;
}

#phone-frame:not(.dark-mode) .tictactoe-board-panel {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.06);
}

#phone-frame:not(.dark-mode) .tictactoe-hint {
    color: rgba(28, 28, 30, 0.4);
}

/* ── 2048 Light Mode ── */
#phone-frame:not(.dark-mode) .g2048-stage {
    background: linear-gradient(180deg, #f4f6fc 0%, #eef1f8 100%) !important;
}

#phone-frame:not(.dark-mode) .g2048-stat {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .g2048-board {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
}

#phone-frame:not(.dark-mode) .g2048-cell {
    background: rgba(0, 0, 0, 0.04);
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .g2048-title {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .g2048-stat-label {
    color: rgba(28, 28, 30, 0.5);
}

#phone-frame:not(.dark-mode) .g2048-stat-val {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .g2048-new-game {
    background: linear-gradient(135deg, #ff9500, #ff7b00);
    color: #fff;
}

/* ── Sky Hopper Light Mode ── */
#phone-frame:not(.dark-mode) .flappy-stage {
    background: linear-gradient(180deg, #f0f4ff 0%, #e8eef8 100%) !important;
}

#phone-frame:not(.dark-mode) .flappy-sidebar {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .flappy-kicker {
    color: rgba(28, 28, 30, 0.5);
}

#phone-frame:not(.dark-mode) .flappy-title {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .flappy-desc {
    color: rgba(28, 28, 30, 0.55);
}

#phone-frame:not(.dark-mode) .flappy-stat {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

#phone-frame:not(.dark-mode) .flappy-stat-label {
    color: rgba(28, 28, 30, 0.45);
}

#phone-frame:not(.dark-mode) .flappy-stat-val {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .flappy-result-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .flappy-hint {
    color: rgba(28, 28, 30, 0.4);
}

#phone-frame:not(.dark-mode) .flappy-shell {
    background: linear-gradient(180deg, #f0f4ff 0%, #e8eef8 100%) !important;
}

#phone-frame:not(.dark-mode) .flappy-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.85)) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 12px 32px rgba(38, 60, 100, 0.08) !important;
}

#phone-frame:not(.dark-mode) .flappy-control-card,
#phone-frame:not(.dark-mode) .flappy-control-card.running,
#phone-frame:not(.dark-mode) .flappy-control-card.crashed {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 248, 255, 0.8)) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Force all text dark in flappy light mode */
#phone-frame:not(.dark-mode) .flappy-shell div,
#phone-frame:not(.dark-mode) .flappy-shell span,
#phone-frame:not(.dark-mode) .flappy-shell p,
#phone-frame:not(.dark-mode) .flappy-shell strong,
#phone-frame:not(.dark-mode) .flappy-shell h1,
#phone-frame:not(.dark-mode) .flappy-shell h2,
#phone-frame:not(.dark-mode) .flappy-shell h3,
#phone-frame:not(.dark-mode) .flappy-shell button {
    color: #1c1c1e !important;
}

#phone-frame:not(.dark-mode) .flappy-stage-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.85)) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.agency-pad-ui #app-crypto .app-content,
body.agency-pad-ui #app-crypto-detail .app-content,
body.agency-pad-ui #app-stocks .app-content,
body.agency-pad-ui #app-stock-detail .app-content {
    padding: 18px 22px 52px !important;
    max-width: 1220px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

body.agency-pad-ui .pad-market-shell,
body.agency-pad-ui .pad-market-detail-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.agency-pad-ui .pad-market-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.9fr);
    gap: 18px;
    padding: 24px 26px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(5, 9, 18, 0.28);
}

body.agency-pad-ui .pad-market-hero-crypto {
    background: linear-gradient(135deg, rgba(98, 126, 234, 0.26), rgba(34, 197, 94, 0.12) 62%, rgba(15, 23, 42, 0.74));
}

body.agency-pad-ui .pad-market-hero-stocks {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.26), rgba(94, 92, 230, 0.12) 62%, rgba(15, 23, 42, 0.74));
}

body.agency-pad-ui .pad-market-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.agency-pad-ui .pad-market-badge {
    align-self: flex-start;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.agency-pad-ui .pad-market-hero h2 {
    margin: 0;
    font-size: 40px;
    line-height: 1;
    color: #fff;
}

body.agency-pad-ui .pad-market-hero p {
    margin: 0;
    max-width: 640px;
    color: rgba(235, 240, 255, 0.78);
    font-size: 16px;
    line-height: 1.6;
}

body.agency-pad-ui .pad-market-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.agency-pad-ui .pad-market-stat-card,
body.agency-pad-ui .pad-market-metric-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(9, 13, 24, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

body.agency-pad-ui .pad-market-stat-card span,
body.agency-pad-ui .pad-market-metric-card span,
body.agency-pad-ui .pad-market-balance-row span,
body.agency-pad-ui .pad-market-order-preview span,
body.agency-pad-ui .pad-market-panel-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(205, 214, 232, 0.56);
}

body.agency-pad-ui .pad-market-stat-card strong,
body.agency-pad-ui .pad-market-metric-card strong,
body.agency-pad-ui .pad-market-balance-row strong,
body.agency-pad-ui .pad-market-order-preview strong {
    font-size: 28px;
    line-height: 1.05;
    color: #fff;
}

body.agency-pad-ui .pad-market-stat-card small,
body.agency-pad-ui .pad-market-metric-card small,
body.agency-pad-ui .pad-market-balance-row small {
    font-size: 13px;
    color: rgba(215, 223, 240, 0.68);
}

body.agency-pad-ui .pad-market-dashboard,
body.agency-pad-ui .pad-market-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 18px;
    align-items: start;
}

body.agency-pad-ui .pad-market-panel {
    border-radius: 28px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(20, 26, 42, 0.9), rgba(10, 14, 25, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(7, 10, 18, 0.3);
}

body.agency-pad-ui .pad-market-panel-head,
body.agency-pad-ui .pad-market-detail-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

body.agency-pad-ui .pad-market-panel-head h3,
body.agency-pad-ui .pad-market-detail-hero h2 {
    margin: 6px 0 0;
    color: #fff;
}

body.agency-pad-ui .pad-market-panel-head p,
body.agency-pad-ui .pad-market-detail-hero p {
    margin: 6px 0 0;
    color: rgba(215, 223, 240, 0.68);
    line-height: 1.5;
}

body.agency-pad-ui .pad-market-range-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

body.agency-pad-ui .pad-market-range-btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(235, 240, 255, 0.78);
    border-radius: 999px;
    min-width: 52px;
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

body.agency-pad-ui .pad-market-range-btn.active {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.92), rgba(97, 92, 255, 0.92));
    color: #fff;
    border-color: rgba(143, 188, 255, 0.72);
    box-shadow: 0 10px 24px rgba(53, 108, 255, 0.22);
}

body.agency-pad-ui .pad-market-panel canvas {
    width: 100%;
    height: 290px;
    display: block;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(17, 25, 40, 0.44), rgba(11, 18, 30, 0.18)),
        radial-gradient(circle at top, rgba(54, 103, 255, 0.14), transparent 55%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui .pad-market-chart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    color: rgba(215, 223, 240, 0.62);
    font-size: 13px;
}

body.agency-pad-ui .pad-market-balance-stack,
body.agency-pad-ui .pad-market-metric-grid {
    display: grid;
    gap: 12px;
}

body.agency-pad-ui .pad-market-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

body.agency-pad-ui .pad-market-balance-row,
body.agency-pad-ui .pad-market-order-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .pad-market-funding-box {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.agency-pad-ui .pad-market-funding-box label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(235, 240, 255, 0.82);
}

body.agency-pad-ui .pad-market-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

body.agency-pad-ui .pad-market-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.agency-pad-ui .pad-market-action {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}

body.agency-pad-ui .pad-market-action.primary {
    background: linear-gradient(135deg, #0a84ff, #5e5ce6);
    border-color: rgba(143, 188, 255, 0.6);
}

body.agency-pad-ui .pad-market-action:hover,
body.agency-pad-ui .pad-market-range-btn:hover,
body.agency-pad-ui .pad-market-quick:hover {
    transform: translateY(-1px);
}

body.agency-pad-ui .pad-market-quick-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.agency-pad-ui .pad-market-quick {
    min-height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(235, 240, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

body.agency-pad-ui .pad-market-ai-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(118, 94, 255, 0.16), rgba(50, 32, 108, 0.14));
    border: 1px solid rgba(170, 144, 255, 0.18);
}

body.agency-pad-ui .pad-market-ai-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #f1edff;
    font-size: 14px;
    font-weight: 700;
}

/* ── Stocks / Crypto Light Mode ── */
#phone-frame:not(.dark-mode) .pad-market-hero {
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 42px rgba(38, 60, 100, 0.1);
}

#phone-frame:not(.dark-mode) .pad-market-hero-stocks {
    background:
        linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(94, 92, 230, 0.05) 62%, rgba(245, 248, 255, 0.9));
}

#phone-frame:not(.dark-mode) .pad-market-hero-crypto {
    background:
        linear-gradient(135deg, rgba(98, 126, 234, 0.1), rgba(34, 197, 94, 0.05) 62%, rgba(245, 252, 248, 0.9));
}

#phone-frame:not(.dark-mode) .pad-market-hero h2 {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .pad-market-hero p {
    color: rgba(28, 28, 30, 0.6);
}

#phone-frame:not(.dark-mode) .pad-market-badge {
    background: rgba(10, 132, 255, 0.12);
    color: #0a84ff;
}

#phone-frame:not(.dark-mode) .pad-market-stat-card,
#phone-frame:not(.dark-mode) .pad-market-metric-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
}

#phone-frame:not(.dark-mode) .pad-market-stat-card span,
#phone-frame:not(.dark-mode) .pad-market-metric-card span,
#phone-frame:not(.dark-mode) .pad-market-balance-row span,
#phone-frame:not(.dark-mode) .pad-market-order-preview span,
#phone-frame:not(.dark-mode) .pad-market-panel-kicker {
    color: rgba(28, 28, 30, 0.45);
}

#phone-frame:not(.dark-mode) .pad-market-stat-card strong,
#phone-frame:not(.dark-mode) .pad-market-metric-card strong,
#phone-frame:not(.dark-mode) .pad-market-balance-row strong,
#phone-frame:not(.dark-mode) .pad-market-order-preview strong {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .pad-market-stat-card small,
#phone-frame:not(.dark-mode) .pad-market-metric-card small,
#phone-frame:not(.dark-mode) .pad-market-balance-row small {
    color: rgba(28, 28, 30, 0.5);
}

#phone-frame:not(.dark-mode) .pad-market-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 255, 0.82));
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 32px rgba(38, 60, 100, 0.08);
}

#phone-frame:not(.dark-mode) .pad-market-panel-head h3,
#phone-frame:not(.dark-mode) .pad-market-detail-hero h2 {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .pad-market-panel-head p,
#phone-frame:not(.dark-mode) .pad-market-detail-hero p {
    color: rgba(28, 28, 30, 0.55);
}

#phone-frame:not(.dark-mode) .pad-market-range-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(28, 28, 30, 0.6);
}

#phone-frame:not(.dark-mode) .pad-market-range-btn.active {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.92), rgba(88, 86, 214, 0.88));
    color: #fff;
    border-color: rgba(10, 132, 255, 0.4);
}

#phone-frame:not(.dark-mode) .pad-market-panel canvas {
    background:
        linear-gradient(180deg, rgba(245, 248, 255, 0.6), rgba(240, 244, 252, 0.3));
    border-color: rgba(0, 0, 0, 0.06);
}

#phone-frame:not(.dark-mode) .pad-market-chart-meta {
    color: rgba(28, 28, 30, 0.5);
}

#phone-frame:not(.dark-mode) .pad-market-balance-row,
#phone-frame:not(.dark-mode) .pad-market-order-preview {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

#phone-frame:not(.dark-mode) .pad-market-funding-box label {
    color: rgba(28, 28, 30, 0.7);
}

#phone-frame:not(.dark-mode) .pad-market-input {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .pad-market-action {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .pad-market-action.primary {
    background: linear-gradient(135deg, #0a84ff, #5e5ce6);
    color: #fff;
    border-color: rgba(10, 132, 255, 0.4);
}

#phone-frame:not(.dark-mode) .pad-market-quick {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    color: rgba(28, 28, 30, 0.65);
}

#phone-frame:not(.dark-mode) .pad-market-ai-card {
    background: linear-gradient(180deg, rgba(118, 94, 255, 0.08), rgba(50, 32, 108, 0.04));
    border-color: rgba(118, 94, 255, 0.12);
}

#phone-frame:not(.dark-mode) .pad-market-ai-head {
    color: #5e5ce6;
}

#phone-frame:not(.dark-mode) .pad-market-ai-card p {
    color: rgba(28, 28, 30, 0.6);
}

/* Stock/Crypto cards, board items, positions */
#phone-frame:not(.dark-mode) .pad-market-position-card,
#phone-frame:not(.dark-mode) .pad-market-board-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .pad-market-position-card strong,
#phone-frame:not(.dark-mode) .pad-market-board-card strong {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .pad-market-position-card small,
#phone-frame:not(.dark-mode) .pad-market-board-card small {
    color: rgba(28, 28, 30, 0.5);
}

#phone-frame:not(.dark-mode) .pad-market-empty {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(28, 28, 30, 0.45);
}

#phone-frame:not(.dark-mode) .pad-market-grid {
    color: #1c1c1e;
}

/* Detail page */
#phone-frame:not(.dark-mode) .pad-market-detail-brand strong {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .pad-market-detail-brand small {
    color: rgba(28, 28, 30, 0.5);
}

#phone-frame:not(.dark-mode) .pad-market-detail-price {
    color: #1c1c1e;
}

#phone-frame:not(.dark-mode) .pad-market-detail-meta {
    color: rgba(28, 28, 30, 0.5);
}

/* Positive/negative colors stay visible on light */
#phone-frame:not(.dark-mode) .positive {
    color: #1a8a38 !important;
}

#phone-frame:not(.dark-mode) .negative {
    color: #cc2d25 !important;
}

body.agency-pad-ui .pad-market-ai-card p {
    margin: 0;
    color: rgba(236, 230, 255, 0.78);
    line-height: 1.55;
}

body.agency-pad-ui .pad-market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

body.agency-pad-ui .pad-market-position-list,
body.agency-pad-ui .pad-market-board {
    display: grid;
    gap: 12px;
}

body.agency-pad-ui .pad-market-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.agency-pad-ui .pad-market-position-card,
body.agency-pad-ui .pad-market-board-card {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

body.agency-pad-ui .pad-market-board-card {
    flex-direction: column;
    align-items: stretch;
}

body.agency-pad-ui .pad-market-position-top,
body.agency-pad-ui .pad-market-board-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.agency-pad-ui .pad-market-board-bottom,
body.agency-pad-ui .pad-market-position-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

body.agency-pad-ui .pad-market-position-card strong,
body.agency-pad-ui .pad-market-board-card strong {
    color: #fff;
}

body.agency-pad-ui .pad-market-position-card small,
body.agency-pad-ui .pad-market-board-card small {
    color: rgba(215, 223, 240, 0.62);
}

body.agency-pad-ui .pad-market-coin,
body.agency-pad-ui .pad-market-chip {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(145deg, var(--market-accent), rgba(10, 14, 25, 0.48));
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.agency-pad-ui .pad-market-coin.large,
body.agency-pad-ui .pad-market-chip.large {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 28px;
}

body.agency-pad-ui .pad-market-detail-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

body.agency-pad-ui .pad-market-empty {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(215, 223, 240, 0.68);
    line-height: 1.6;
}

body.agency-pad-ui .positive {
    color: #34c759 !important;
}

body.agency-pad-ui .negative {
    color: #ff6961 !important;
}

body.agency-pad-ui #app-appstore .app-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 22px 16px !important;
    box-sizing: border-box;
}

body.agency-pad-ui #appstore-header {
    padding: 0 !important;
    background: transparent !important;
}

body.agency-pad-ui .pad-store-header-shell {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 4px 10px;
}

body.agency-pad-ui .pad-store-header-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.agency-pad-ui .pad-store-header-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(215, 223, 240, 0.5);
}

body.agency-pad-ui .pad-store-header-copy strong {
    font-size: 34px;
    line-height: 1;
    color: #fff;
}

body.agency-pad-ui .pad-store-header-copy small {
    font-size: 14px;
    color: rgba(215, 223, 240, 0.64);
}

body.agency-pad-ui .pad-store-header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 320px;
    padding: 0 16px;
    height: 52px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(215, 223, 240, 0.6);
}

body.agency-pad-ui .pad-store-header-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
}

body.agency-pad-ui .pad-store-layout {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.agency-pad-ui .pad-store-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 106px;
}

body.agency-pad-ui .pad-store-nav {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: min(600px, calc(100% - 44px));
    padding: 8px;
    border-radius: 24px;
    background: rgba(9, 14, 24, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 56px rgba(5, 8, 14, 0.34);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

body.agency-pad-ui .pad-store-nav-btn {
    min-height: 54px;
    border: none;
    border-radius: 18px;
    background: transparent;
    color: rgba(215, 223, 240, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

body.agency-pad-ui .pad-store-nav-btn i {
    font-size: 18px;
}

body.agency-pad-ui .pad-store-nav-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@keyframes storeCardFadeIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

body.agency-pad-ui .pad-store-feature-card,
body.agency-pad-ui .pad-store-inline-card,
body.agency-pad-ui .pad-store-category-card {
    box-shadow: 0 18px 36px rgba(7, 10, 18, 0.18);
    animation: storeCardFadeIn 0.45s cubic-bezier(0.32, 0.72, 0, 1) backwards;
}

body.agency-pad-ui .pad-store-feature-card { animation-delay: 0.05s; }
body.agency-pad-ui .pad-store-feature-card:nth-child(2) { animation-delay: 0.12s; }
body.agency-pad-ui .pad-store-feature-card:nth-child(3) { animation-delay: 0.19s; }

body.agency-pad-ui .pad-store-feature-card:hover,
body.agency-pad-ui .pad-store-inline-card:hover,
body.agency-pad-ui .pad-store-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(7, 10, 18, 0.24);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.agency-pad-ui .pad-store-feature-card,
body.agency-pad-ui .pad-store-inline-card,
body.agency-pad-ui .pad-store-category-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.agency-pad-ui .pad-store-inline-scroll {
    padding-bottom: 6px !important;
}

body.agency-pad-ui .pad-store-inline-card {
    min-width: 320px !important;
    max-width: 360px !important;
    border-radius: 18px !important;
}

body.agency-pad-ui #app-appstore-detail .app-content {
    padding: 18px 22px 52px !important;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

body.agency-pad-ui #app-appstore-detail .store-detail-hero {
    align-items: flex-start;
    padding: 8px 0 18px;
}

body.agency-pad-ui #app-appstore-detail .store-detail-actions {
    position: static;
    bottom: auto;
    padding: 0 0 16px;
    margin-top: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 1180px) {
    body.agency-pad-ui .pad-market-hero,
    body.agency-pad-ui .pad-market-dashboard,
    body.agency-pad-ui .pad-market-detail-shell,
    body.agency-pad-ui .pad-market-grid,
    body.agency-pad-ui .pad-market-board {
        grid-template-columns: minmax(0, 1fr);
    }

    body.agency-pad-ui .pad-store-header-shell {
        flex-direction: column;
        align-items: stretch;
    }

    body.agency-pad-ui .pad-store-header-search {
        min-width: 0;
    }
}

body.agency-pad-ui #status-icons .fa-battery-full {
    display: none !important;
}

body.agency-pad-ui #status-icons {
    gap: 8px;
}

body.agency-pad-ui #home-screen {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 58px 18px 16px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas:
        "clock"
        "date"
        "apps"
        "dots"
        "dock";
    row-gap: 4px;
    justify-items: center;
    align-content: start;
}

body.agency-pad-ui #home-clock {
    grid-area: clock;
    margin: 0;
    font-size: 88px;
    letter-spacing: -4.2px;
    line-height: 0.88;
    text-align: center;
}

body.agency-pad-ui #home-date {
    grid-area: date;
    margin: 0 0 2px;
    font-size: 16px;
    text-align: center;
}

body.agency-pad-ui #home-os-label {
    display: none !important;
}

body.agency-pad-ui #page-dots {
    grid-area: dots;
    display: flex !important;
    width: 100%;
    min-height: 10px;
    justify-content: center;
    padding: 2px 0 0;
}

body.agency-pad-ui #app-pages-container,
body.agency-pad-ui #home-screen .widget-grid,
body.agency-pad-ui #home-screen .home-widget-grid,
body.agency-pad-ui #home-screen .app-grid,
body.agency-pad-ui #home-screen .home-app-grid,
body.agency-pad-ui #home-screen .apps-grid {
    grid-area: apps;
    width: min(100%, 860px);
    max-width: 860px;
    margin: 0 auto;
}

body.agency-pad-ui #app-pages-container {
    min-height: 0;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

body.agency-pad-ui #app-pages-track {
    width: 100%;
}

body.agency-pad-ui .app-page,
body.agency-pad-ui #app-grid {
    width: min(100%, 820px);
    max-width: 820px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 18px;
    padding: 4px 0 0;
    justify-content: center;
    justify-items: center;
    align-content: start;
    margin: 0 auto;
}

body.agency-pad-ui .app-page .hw-widget-grid-item {
    width: 100%;
}

body.agency-pad-ui .hw-widget {
    padding: 12px 14px;
    border-radius: 22px;
}

body.agency-pad-ui .hw-widget.hw-small,
body.agency-pad-ui .hw-widget.hw-medium {
    min-height: 80px;
}

body.agency-pad-ui .hw-widget-header {
    margin-bottom: 5px;
}

body.agency-pad-ui .hw-widget-value {
    font-size: 21px;
}

body.agency-pad-ui .app-icon {
    gap: 3px;
}

body.agency-pad-ui .app-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    font-size: 30px;
    margin-bottom: 4px;
}

body.agency-pad-ui .app-icon-label {
    max-width: 88px;
    font-size: 12px;
    line-height: 1.12;
}

body.agency-pad-ui #home-dock {
    grid-area: dock;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: min(100%, 920px);
    max-width: 920px;
    margin: 8px auto 0;
    gap: 8px;
    padding: 14px 16px 10px;
    justify-items: center;
    align-items: start;
    border-radius: 34px;
}

body.agency-pad-ui .dock-icon {
    width: 100%;
    max-width: 76px;
    gap: 6px;
}

body.agency-pad-ui .dock-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 24px;
    margin: 0 auto;
}

body.agency-pad-ui .dock-label {
    width: 100%;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
}

/* Final pad settings + hardware refinement */
body.agency-pad-ui #app-settings {
    --pad-settings-sidebar-width: 438px;
    --pad-settings-card-radius: 28px;
}

body.agency-pad-ui #app-settings .settings-app-content {
    padding: 0 36px 78px;
}

body.agency-pad-ui #app-settings .settings-shell {
    width: min(100%, 1500px);
    max-width: 1500px;
    padding: 18px 0 30px;
}

body.agency-pad-ui #app-settings #settings-main {
    grid-template-columns: var(--pad-settings-sidebar-width) minmax(0, 1fr);
    gap: 20px 26px;
}

body.agency-pad-ui #app-settings #settings-main::before {
    width: var(--pad-settings-sidebar-width);
    border-radius: 36px;
}

body.agency-pad-ui #app-settings #settings-main .settings-main-lead,
body.agency-pad-ui #app-settings #settings-main .settings-profile-card,
body.agency-pad-ui #app-settings #settings-main .settings-search-pill,
body.agency-pad-ui #app-settings #settings-main .settings-search-empty {
    margin-left: 18px;
    margin-right: 18px;
}

body.agency-pad-ui #app-settings #settings-main .settings-main-lead {
    padding: 24px 10px 8px;
}

body.agency-pad-ui #app-settings .settings-main-title {
    font-size: 58px;
    line-height: 0.92;
    letter-spacing: -0.08em;
}

body.agency-pad-ui #app-settings .settings-main-sub {
    max-width: 340px;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.45;
}

body.agency-pad-ui #app-settings #settings-main .settings-group {
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail {
    grid-template-columns: var(--pad-settings-sidebar-width) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main {
    width: 100%;
    min-width: 0;
    padding: 18px;
    border-radius: 36px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main::before {
    border-radius: 36px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-lead,
body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-profile-card,
body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-search-pill,
body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-search-empty,
body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-group {
    margin-left: 0;
    margin-right: 0;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-lead {
    padding: 14px 6px 8px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-title {
    font-size: 40px;
    line-height: 0.94;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-sub {
    max-width: none;
    font-size: 13px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail > .settings-page.active:not(#settings-main) {
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 28px 28px 34px;
    border-radius: 36px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail > .settings-page.active:not(#settings-main) .settings-group {
    width: 100%;
    max-width: none;
    margin: 0 0 20px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail > #settings-page-general.active,
body.agency-pad-ui #app-settings .settings-shell.has-detail > #settings-page-about.active {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
    align-content: start;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail > #settings-page-general.active .settings-info-banner,
body.agency-pad-ui #app-settings .settings-shell.has-detail > #settings-page-about.active .settings-about-hero {
    grid-column: 1 / -1;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail > #settings-page-general.active .settings-group:last-child {
    grid-column: 1 / -1;
}

body.agency-pad-ui #app-settings .settings-profile-card,
body.agency-pad-ui #app-settings .settings-info-banner,
body.agency-pad-ui #app-settings .settings-about-hero,
body.agency-pad-ui #app-settings .settings-search-pill,
body.agency-pad-ui #app-settings .settings-search-empty,
body.agency-pad-ui #app-settings .settings-item,
body.agency-pad-ui #app-settings .wallpaper-url-section {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.1), rgba(255, 255, 255, 0.08) 72%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 20px 38px rgba(40, 51, 78, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-profile-card,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-info-banner,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-about-hero,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-search-pill,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-search-empty,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-item,
body.agency-pad-ui #phone-frame.dark-mode #app-settings .wallpaper-url-section {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.16), rgba(18, 23, 32, 0.8) 74%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 22px 42px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui #app-settings .settings-profile-card {
    gap: 16px;
    padding: 18px;
    border-radius: 32px;
}

body.agency-pad-ui #app-settings .settings-search-pill {
    min-height: 58px;
    padding: 0 18px;
    border-radius: 999px;
}

body.agency-pad-ui #app-settings .settings-search-empty {
    min-height: 92px;
    border-radius: 26px;
}

body.agency-pad-ui #app-settings .settings-item {
    min-height: 76px;
    padding: 16px 18px;
    margin-bottom: 10px;
    border-radius: var(--pad-settings-card-radius) !important;
}

body.agency-pad-ui #app-settings .settings-item.settings-toggle-row {
    justify-content: space-between;
}

body.agency-pad-ui #app-settings .settings-label {
    font-size: 17px;
    line-height: 1.15;
}

body.agency-pad-ui #app-settings .settings-item-note,
body.agency-pad-ui #app-settings .settings-value {
    font-size: 13px;
}

body.agency-pad-ui #app-settings .settings-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    font-size: 17px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 10px 18px rgba(0, 0, 0, 0.12);
}

body.agency-pad-ui #app-settings .settings-profile-arrow {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: var(--text-tertiary);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-profile-arrow {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

body.agency-pad-ui #app-settings .settings-nav-item {
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

body.agency-pad-ui #app-settings .settings-nav-item.is-selected {
    transform: translateX(4px);
    border-color: rgba(var(--device-accent-rgb), 0.34) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.22)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.18), rgba(255, 255, 255, 0.1) 72%) !important;
    box-shadow:
        0 20px 38px rgba(var(--device-accent-rgb), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

body.agency-pad-ui #phone-frame.dark-mode #app-settings .settings-nav-item.is-selected {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.26), rgba(18, 23, 32, 0.82) 74%) !important;
    box-shadow:
        0 24px 42px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .hw-btn {
    top: -6px;
    height: 7px;
    border-radius: 0 0 3px 3px;
    transform-origin: center top;
    border: none;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.14) 0%, transparent 30%),
        linear-gradient(180deg, var(--button-mid) 0%, var(--button-start) 100%);
    box-shadow:
        inset 0 -1px 1px var(--button-highlight),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 1px 2px var(--button-shadow-hard);
}

body.agency-pad-ui .hw-btn::before {
    inset: 0;
    height: auto;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.04) 40%, transparent 60%, rgba(0,0,0,0.12) 100%);
    opacity: 1;
}

body.agency-pad-ui .hw-btn::after {
    top: 50%;
    bottom: auto;
    left: 6px;
    right: 6px;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    opacity: 0.5;
}

body.agency-pad-ui .hw-btn:active {
    transform: translateY(1px) scaleY(0.7);
}

body.agency-pad-ui .hw-btn-action {
    width: 34px;
    height: 7px;
    left: 122px;
}

body.agency-pad-ui .hw-btn-action.silent {
    box-shadow:
        inset 0 -1px 1px var(--button-highlight),
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 1px 2px var(--button-shadow-hard);
}

body.agency-pad-ui .hw-btn-vol-up {
    width: 52px;
    height: 7px;
    right: 224px;
}

body.agency-pad-ui .hw-btn-vol-down {
    width: 52px;
    height: 7px;
    right: 160px;
}

body.agency-pad-ui .hw-btn-power {
    width: 74px;
    height: 7px;
    right: 38px;
}

@media (max-width: 1500px), (max-height: 880px) {
    body.agency-pad-ui #app-settings {
        --pad-settings-sidebar-width: 392px;
    }

    body.agency-pad-ui #app-settings .settings-app-content {
        padding: 0 24px 60px;
    }

    body.agency-pad-ui #app-settings .settings-shell {
        width: min(100%, 1340px);
        max-width: 1340px;
    }

    body.agency-pad-ui #app-settings .settings-main-title {
        font-size: 52px;
    }

    body.agency-pad-ui #app-settings .settings-shell.has-detail > #settings-page-general.active,
    body.agency-pad-ui #app-settings .settings-shell.has-detail > #settings-page-about.active {
        grid-template-columns: minmax(0, 1fr);
    }

    body.agency-pad-ui .hw-btn {
        top: -5px;
        height: 6px;
    }

    body.agency-pad-ui .hw-btn-action {
        width: 32px;
        height: 6px;
        left: 114px;
    }

    body.agency-pad-ui .hw-btn-vol-up {
        width: 48px;
        height: 6px;
        right: 214px;
    }

    body.agency-pad-ui .hw-btn-vol-down {
        width: 48px;
        height: 6px;
        right: 154px;
    }

    body.agency-pad-ui .hw-btn-power {
        width: 70px;
        height: 6px;
        right: 36px;
    }
}

/* Final pad control center + notification center liquid glass refinement */
body.agency-pad-ui #phone-frame {
    --pad-cc-panel-bg:
        linear-gradient(180deg, rgba(20, 24, 34, 0.36), rgba(10, 12, 20, 0.18)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.12), rgba(255, 255, 255, 0.04) 72%);
    --pad-cc-panel-border: rgba(255, 255, 255, 0.16);
    --pad-cc-panel-shadow:
        0 28px 64px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --pad-cc-card-bg:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 72%);
    --pad-cc-card-border: rgba(255, 255, 255, 0.18);
    --pad-cc-card-shadow:
        0 14px 34px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --pad-cc-tint: rgba(255, 255, 255, 0.78);
    --pad-cc-muted: rgba(255, 255, 255, 0.56);
    --pad-cc-track: rgba(255, 255, 255, 0.16);
    --pad-cc-backdrop: rgba(5, 8, 14, 0.2);
    --pad-cc-backdrop-filter: blur(54px) saturate(210%) brightness(0.82);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) {
    --pad-cc-panel-bg:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(247, 249, 255, 0.2)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.1), rgba(255, 255, 255, 0.18) 72%);
    --pad-cc-panel-border: rgba(255, 255, 255, 0.42);
    --pad-cc-panel-shadow:
        0 22px 48px rgba(19, 29, 48, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.48);
    --pad-cc-card-bg:
        linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.46)),
        linear-gradient(135deg, rgba(var(--device-accent-rgb), 0.07), rgba(255, 255, 255, 0.12) 72%);
    --pad-cc-card-border: rgba(255, 255, 255, 0.52);
    --pad-cc-card-shadow:
        0 16px 32px rgba(35, 46, 71, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.62);
    --pad-cc-tint: rgba(26, 34, 48, 0.94);
    --pad-cc-muted: rgba(58, 69, 88, 0.66);
    --pad-cc-track: rgba(24, 32, 46, 0.12);
    --pad-cc-backdrop: rgba(244, 247, 255, 0.12);
    --pad-cc-backdrop-filter: blur(52px) saturate(190%) brightness(1.04);
}

body.agency-pad-ui #cc-backdrop,
body.agency-pad-ui #nc-backdrop {
    background: var(--pad-cc-backdrop);
    backdrop-filter: var(--pad-cc-backdrop-filter);
    -webkit-backdrop-filter: var(--pad-cc-backdrop-filter);
}

body.agency-pad-ui #cc-panel,
body.agency-pad-ui #nc-panel {
    background: var(--pad-cc-panel-bg);
    border: 1px solid var(--pad-cc-panel-border);
    box-shadow: var(--pad-cc-panel-shadow);
    backdrop-filter: blur(34px) saturate(170%);
    -webkit-backdrop-filter: blur(34px) saturate(170%);
}

body.agency-pad-ui .cc-handle,
body.agency-pad-ui .nc-handle {
    background: rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 3px 12px rgba(0, 0, 0, 0.18);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-handle,
body.agency-pad-ui #phone-frame:not(.dark-mode) .nc-handle {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 3px 10px rgba(32, 42, 58, 0.08);
}

body.agency-pad-ui .cc-top-kicker {
    color: var(--pad-cc-muted);
}

body.agency-pad-ui .cc-top-title,
body.agency-pad-ui .nc-title {
    color: var(--pad-cc-tint);
}

body.agency-pad-ui .cc-top-edit,
body.agency-pad-ui #nc-clear-btn {
    border: 1px solid var(--pad-cc-card-border);
    background: var(--pad-cc-card-bg);
    color: var(--pad-cc-tint);
    box-shadow: var(--pad-cc-card-shadow);
    backdrop-filter: blur(24px) saturate(175%);
    -webkit-backdrop-filter: blur(24px) saturate(175%);
}

body.agency-pad-ui .cc-top-edit:active,
body.agency-pad-ui #nc-clear-btn:active {
    transform: scale(0.95);
    filter: brightness(1.04);
}

body.agency-pad-ui .cc-toggle-group,
body.agency-pad-ui .cc-music-widget,
body.agency-pad-ui .cc-tile,
body.agency-pad-ui .cc-tile-wide,
body.agency-pad-ui .cc-slider-row,
body.agency-pad-ui .cc-util-btn,
body.agency-pad-ui .nc-item,
body.agency-pad-ui .nc-empty {
    background: var(--pad-cc-card-bg);
    border: 1px solid var(--pad-cc-card-border);
    box-shadow: var(--pad-cc-card-shadow);
    backdrop-filter: blur(28px) saturate(185%);
    -webkit-backdrop-filter: blur(28px) saturate(185%);
}

body.agency-pad-ui .cc-toggle-group {
    padding: 16px;
    gap: 12px;
    border-radius: 24px;
}

body.agency-pad-ui .cc-toggle {
    gap: 8px;
}

body.agency-pad-ui .cc-toggle-icon,
body.agency-pad-ui .cc-tile-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--pad-cc-tint);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-toggle-icon,
body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-tile-icon {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(255, 255, 255, 0.54);
    color: rgba(26, 34, 48, 0.7);
}

/* DND active: purple */
body.agency-pad-ui #phone-frame:not(.dark-mode) #cc-dnd.active .cc-tile-icon {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.94), rgba(88, 86, 214, 0.78));
    border-color: rgba(88, 86, 214, 0.34);
    color: #fff;
    box-shadow: 0 8px 20px rgba(88, 86, 214, 0.3), inset 0 1px 0 rgba(255,255,255,0.22);
}

/* Silent active: red */
body.agency-pad-ui #phone-frame:not(.dark-mode) #cc-silent.active .cc-tile-icon {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.94), rgba(255, 59, 48, 0.78));
    border-color: rgba(255, 59, 48, 0.34);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.3), inset 0 1px 0 rgba(255,255,255,0.22);
}

/* Workspace active: green */
body.agency-pad-ui #phone-frame:not(.dark-mode) #cc-performance-mode.active .cc-tile-icon {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.94), rgba(52, 199, 89, 0.78));
    border-color: rgba(52, 199, 89, 0.34);
    color: #fff;
    box-shadow: 0 8px 20px rgba(52, 199, 89, 0.3), inset 0 1px 0 rgba(255,255,255,0.22);
}

body.agency-pad-ui #cc-airplane .cc-toggle-icon.active {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.94), rgba(255, 149, 0, 0.76));
    border-color: rgba(255, 149, 0, 0.34);
    color: #fff;
    box-shadow:
        0 10px 24px rgba(255, 149, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.agency-pad-ui #cc-wifi .cc-toggle-icon.active {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.96), rgba(56, 189, 248, 0.82));
    border-color: rgba(10, 132, 255, 0.4);
    color: #fff;
    box-shadow:
        0 10px 24px rgba(10, 132, 255, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.agency-pad-ui #cc-bluetooth .cc-toggle-icon.active {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.96), rgba(124, 92, 255, 0.82));
    border-color: rgba(99, 102, 241, 0.4);
    color: #fff;
    box-shadow:
        0 10px 24px rgba(99, 102, 241, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.agency-pad-ui #cc-cellular .cc-toggle-icon.active {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.96), rgba(45, 212, 191, 0.82));
    border-color: rgba(52, 199, 89, 0.38);
    color: #fff;
    box-shadow:
        0 10px 24px rgba(52, 199, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.agency-pad-ui .cc-toggle-label,
body.agency-pad-ui .cc-music-artist,
body.agency-pad-ui .cc-airdrop-status,
body.agency-pad-ui .cc-slider-icon,
body.agency-pad-ui .nc-time,
body.agency-pad-ui .nc-empty,
body.agency-pad-ui .notif-text {
    color: var(--pad-cc-muted);
}

body.agency-pad-ui .cc-music-title,
body.agency-pad-ui .cc-airdrop-title,
body.agency-pad-ui .cc-tile-label,
body.agency-pad-ui .notif-title {
    color: var(--pad-cc-tint);
}

body.agency-pad-ui .cc-music-art {
    background: rgba(118, 118, 128, 0.2);
    color: var(--pad-cc-muted);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-music-art {
    background: rgba(24, 32, 46, 0.08);
}

body.agency-pad-ui .cc-tile,
body.agency-pad-ui .cc-tile-wide {
    padding: 16px 18px;
    border-radius: 22px;
}

body.agency-pad-ui .cc-tile:active,
body.agency-pad-ui .cc-tile-wide:active,
body.agency-pad-ui .cc-util-btn:active {
    transform: scale(0.97);
}

body.agency-pad-ui .cc-slider-row {
    padding: 14px 16px;
    border-radius: 22px;
}

body.agency-pad-ui .cc-slider {
    background: var(--pad-cc-track);
}

body.agency-pad-ui .cc-slider::-webkit-slider-thumb {
    background: linear-gradient(180deg, #ffffff 0%, #eceff6 100%);
    box-shadow: 0 4px 12px rgba(15, 19, 27, 0.18), 0 0 0 1px rgba(18, 23, 32, 0.06);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-slider::-webkit-slider-thumb {
    box-shadow: 0 4px 12px rgba(35, 46, 71, 0.14), 0 0 0 1px rgba(18, 23, 32, 0.04);
}

body.agency-pad-ui .cc-utils {
    gap: 12px;
}

body.agency-pad-ui .cc-util-btn {
    min-height: 84px;
    border-radius: 24px;
    font-size: 26px;
}

body.agency-pad-ui .cc-util-btn.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
    border-color: rgba(255, 255, 255, 0.58);
    color: #0c1320;
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-util-btn {
    color: rgba(26, 34, 48, 0.65);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-util-btn.active {
    box-shadow: 0 14px 28px rgba(47, 72, 115, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Agency Drop light mode */
body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-airdrop-title {
    color: rgba(26, 34, 48, 0.88);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-airdrop-status {
    color: rgba(26, 34, 48, 0.5);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-airdrop-icon {
    color: rgba(26, 34, 48, 0.6);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #cc-airdrop.active .cc-airdrop-icon {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.94), rgba(56, 189, 248, 0.82));
    color: #fff;
}

/* CC tile labels in light mode */
body.agency-pad-ui #phone-frame:not(.dark-mode) .cc-tile-label {
    color: rgba(26, 34, 48, 0.7);
}

body.agency-pad-ui #nc-list {
    gap: 12px;
}

body.agency-pad-ui .nc-item {
    min-height: 118px;
    padding: 16px;
    border-radius: 22px;
}

body.agency-pad-ui .nc-item.important {
    border-color: rgba(255, 204, 0, 0.46);
    box-shadow:
        0 18px 36px rgba(255, 171, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.agency-pad-ui .nc-empty {
    min-height: 200px;
    border-radius: 22px;
}

@media (max-width: 1500px), (max-height: 880px) {
    body.agency-pad-ui #cc-panel,
    body.agency-pad-ui #nc-panel {
        backdrop-filter: blur(30px) saturate(165%);
        -webkit-backdrop-filter: blur(30px) saturate(165%);
    }

    body.agency-pad-ui .cc-toggle-group,
    body.agency-pad-ui .cc-music-widget,
    body.agency-pad-ui .cc-tile,
    body.agency-pad-ui .cc-tile-wide,
    body.agency-pad-ui .cc-slider-row,
    body.agency-pad-ui .cc-util-btn,
    body.agency-pad-ui .nc-item,
    body.agency-pad-ui .nc-empty {
        border-radius: 20px;
    }

    body.agency-pad-ui .cc-toggle-group {
        padding: 14px;
        gap: 10px;
    }

    body.agency-pad-ui .cc-tile,
    body.agency-pad-ui .cc-tile-wide,
    body.agency-pad-ui .cc-slider-row {
        padding: 14px 16px;
    }

    body.agency-pad-ui .cc-util-btn {
        min-height: 76px;
        font-size: 24px;
    }

    body.agency-pad-ui .nc-item {
        min-height: 108px;
        padding: 14px;
    }
}

/* Final pad calculator refinement */
body.agency-pad-ui #app-calculator .calc-container {
    width: min(100%, 1020px);
    margin: 0 auto;
    padding: 14px 16px 16px;
    border-radius: 36px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

body.agency-pad-ui #app-calculator .calc-display {
    min-height: 0;
    flex-shrink: 1;
    padding: 16px 24px 10px;
    border-radius: 28px;
    font-size: clamp(48px, 5.5vw, 78px);
    letter-spacing: -2.4px;
    line-height: 0.88;
}

body.agency-pad-ui #app-calculator .calc-tablet-tools {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
    flex-shrink: 0;
}

body.agency-pad-ui #app-calculator .calc-tablet-tools .calc-btn {
    width: 100%;
    max-width: none;
    min-height: 54px;
    border-radius: 20px;
    aspect-ratio: auto;
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    align-items: center;
    justify-content: center;
}

body.agency-pad-ui #app-calculator .calc-pad-tablet {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    grid-auto-rows: minmax(0, 1fr);
    padding-top: 8px;
    flex: 1;
    min-height: 0;
}

body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn {
    width: 100%;
    max-width: none;
    min-height: 0;
    height: 100%;
    border-radius: 26px;
    aspect-ratio: auto;
    justify-self: stretch;
    align-self: stretch;
    font-size: 34px;
    line-height: 1;
    padding: 0;
    align-items: center;
    justify-content: center;
}

body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn.func {
    font-size: 28px;
}

body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn.op {
    font-size: 36px;
}

body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn.zero {
    grid-column: span 2;
    justify-content: flex-start;
    padding-left: 28px;
}

body.agency-pad-ui #phone-frame.dark-mode #app-calculator .calc-tablet-tools .calc-btn {
    color: rgba(255, 255, 255, 0.96);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

@media (max-width: 1500px), (max-height: 880px) {
    body.agency-pad-ui #app-calculator .calc-container {
        width: min(100%, 920px);
        padding: 12px 14px 14px;
    }

    body.agency-pad-ui #app-calculator .calc-display {
        padding: 14px 20px 8px;
        font-size: clamp(44px, 5vw, 68px);
    }

    body.agency-pad-ui #app-calculator .calc-tablet-tools {
        gap: 7px;
    }

    body.agency-pad-ui #app-calculator .calc-tablet-tools .calc-btn {
        min-height: 48px;
        font-size: 19px;
        border-radius: 18px;
    }

    body.agency-pad-ui #app-calculator .calc-pad-tablet {
        gap: 7px;
    }

    body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn {
        font-size: 30px;
        border-radius: 22px;
    }

    body.agency-pad-ui #app-calculator .calc-pad-tablet .calc-btn.func {
        font-size: 24px;
    }
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-store-header-kicker {
    color: rgba(73, 87, 109, 0.72);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-store-header-copy strong {
    color: #101828;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-store-header-copy small {
    color: rgba(81, 94, 116, 0.82);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-store-header-search {
    background: rgba(248, 250, 255, 0.88);
    border-color: rgba(43, 62, 86, 0.09);
    color: rgba(91, 104, 126, 0.82);
    box-shadow: 0 16px 34px rgba(37, 52, 72, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-store-header-search input {
    color: #101828;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-store-header-search input::placeholder {
    color: rgba(95, 107, 128, 0.76);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-store-nav {
    background: rgba(248, 250, 255, 0.76);
    border-color: rgba(43, 62, 86, 0.09);
    box-shadow: 0 24px 44px rgba(37, 52, 72, 0.12);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-store-nav-btn {
    color: rgba(79, 92, 113, 0.82);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .pad-store-nav-btn.active {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 24px rgba(37, 52, 72, 0.1);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-appstore-detail .store-detail-actions {
    background: linear-gradient(180deg, rgba(242, 246, 252, 0) 0%, rgba(242, 246, 252, 0.84) 24%, rgba(248, 250, 255, 0.98) 100%);
}

body.agency-pad-ui #game-mode-banner {
    top: 68px;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 18px;
    font-size: 14px;
    letter-spacing: 0.4px;
    box-shadow: 0 16px 34px rgba(44, 104, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.agency-pad-ui #game-mode-banner i {
    font-size: 15px;
}

body.agency-pad-ui .di-game-mode {
    gap: 10px;
    font-size: 14px;
}

body.agency-pad-ui .di-game-mode i {
    font-size: 14px;
}

body.agency-pad-ui #dynamic-island.game-mode-active {
    width: 278px;
    height: 46px;
}

body.agency-pad-ui .tycoon-shell {
    height: 100%;
    padding-bottom: 34px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

body.agency-pad-ui .tycoon-stage {
    touch-action: pan-y;
}

body.agency-pad-ui .tycoon-grid-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

body.agency-pad-ui .tycoon-objectives-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.agency-pad-ui .tycoon-highlight-card,
body.agency-pad-ui .tycoon-objective-card,
body.agency-pad-ui .tycoon-momentum-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

body.agency-pad-ui .tycoon-highlight-card {
    padding: 16px 18px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.agency-pad-ui .tycoon-highlight-card span,
body.agency-pad-ui .tycoon-objective-title,
body.agency-pad-ui .tycoon-momentum-card span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

body.agency-pad-ui .tycoon-highlight-card strong,
body.agency-pad-ui .tycoon-momentum-card strong {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
}

body.agency-pad-ui .tycoon-highlight-meter,
body.agency-pad-ui .tycoon-objective-meter {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui .tycoon-highlight-meter span,
body.agency-pad-ui .tycoon-objective-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, #64d2ff, #7f5af0);
    box-shadow: 0 0 18px rgba(100, 210, 255, 0.18);
}

body.agency-pad-ui .tycoon-objectives {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.agency-pad-ui .tycoon-objective-card {
    padding: 15px 16px 16px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.agency-pad-ui .tycoon-objective-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.agency-pad-ui .tycoon-objective-copy,
body.agency-pad-ui .tycoon-objective-meta span,
body.agency-pad-ui .tycoon-momentum-card small {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
}

body.agency-pad-ui .tycoon-objective-badge {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

body.agency-pad-ui .tycoon-objective-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.agency-pad-ui .tycoon-objective-meta strong {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

body.agency-pad-ui .tycoon-momentum {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.agency-pad-ui .tycoon-momentum-card {
    min-width: 0;
    padding: 16px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.agency-pad-ui .tycoon-side-card .tycoon-primary-btn,
body.agency-pad-ui .tycoon-side-card .tycoon-secondary-btn,
body.agency-pad-ui .tycoon-side-card .tycoon-reset-btn {
    width: 100%;
}

body.agency-pad-ui .tycoon-primary-btn:disabled,
body.agency-pad-ui .tycoon-secondary-btn:disabled,
body.agency-pad-ui .tycoon-reset-btn:disabled,
body.agency-pad-ui .tycoon-upgrade-btn:disabled {
    cursor: default;
    opacity: 0.62;
}

body.agency-pad-ui .tycoon-feed {
    min-height: 108px;
}

@media (max-width: 1320px) {
    body.agency-pad-ui .tycoon-main {
        grid-template-columns: minmax(0, 1fr);
    }

    body.agency-pad-ui .tycoon-objectives-bar,
    body.agency-pad-ui .tycoon-momentum {
        grid-template-columns: 1fr;
    }
}

/* Final settings alignment fix */
body.agency-pad-ui #app-settings {
    --pad-settings-sidebar-width: 448px;
    --pad-settings-main-gap: 24px;
}

body.agency-pad-ui #app-settings .settings-app-content {
    padding: 0 28px 74px;
}

body.agency-pad-ui #app-settings .settings-shell {
    width: min(100%, 1160px);
    max-width: 1160px;
    margin: 0 auto;
    padding: 18px 0 28px;
}

body.agency-pad-ui #app-settings #settings-main {
    display: grid;
    grid-template-columns: var(--pad-settings-sidebar-width) minmax(0, 1fr);
    gap: var(--pad-settings-main-gap);
    align-items: start;
}

body.agency-pad-ui #app-settings #settings-main::before {
    display: none !important;
}

body.agency-pad-ui #app-settings #settings-main > * {
    position: static;
    z-index: auto;
}

body.agency-pad-ui #app-settings .settings-main-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: start;
    padding: 20px 18px 18px;
    border-radius: 36px;
    background: var(--pad-settings-panel);
    border: 1px solid var(--pad-settings-border);
    box-shadow: var(--pad-settings-shadow);
}

body.agency-pad-ui #app-settings .settings-main-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 6px;
}

body.agency-pad-ui #app-settings .settings-main-sidebar .settings-main-lead,
body.agency-pad-ui #app-settings .settings-main-sidebar .settings-profile-card,
body.agency-pad-ui #app-settings .settings-main-sidebar .settings-search-pill,
body.agency-pad-ui #app-settings .settings-main-sidebar .settings-search-empty,
body.agency-pad-ui #app-settings .settings-main-sidebar .settings-sidebar-stack {
    width: 100%;
    margin: 0 !important;
    grid-column: auto !important;
}

body.agency-pad-ui #app-settings .settings-main-sidebar .settings-main-lead {
    padding: 6px 10px 4px;
}

body.agency-pad-ui #app-settings .settings-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
}

body.agency-pad-ui #app-settings .settings-sidebar-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(10, 14, 22, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 42px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    border-radius: 28px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    color: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.agency-pad-ui #app-settings .settings-sidebar-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 22px 48px rgba(0, 0, 0, 0.22);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.86)),
        rgba(255, 255, 255, 0.9);
    border-color: rgba(17, 24, 39, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.84),
        0 16px 34px rgba(35, 52, 84, 0.1);
    color: var(--text-primary);
}

body.agency-pad-ui #app-settings .settings-sidebar-card-head,
body.agency-pad-ui #app-settings .settings-sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.agency-pad-ui #app-settings .settings-sidebar-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-kicker {
    color: rgba(17, 24, 39, 0.46);
}

body.agency-pad-ui #app-settings .settings-sidebar-title {
    margin-top: 2px;
    font-size: 24px;
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-title {
    color: var(--text-primary);
}

body.agency-pad-ui #app-settings .settings-sidebar-copy {
    font-size: 13px;
    line-height: 1.52;
    color: rgba(255, 255, 255, 0.68);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-copy {
    color: var(--text-secondary);
}

body.agency-pad-ui #app-settings .settings-sidebar-pill,
body.agency-pad-ui #app-settings .settings-sidebar-badge {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-pill,
body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-badge {
    color: var(--text-secondary);
    background: rgba(17, 24, 39, 0.06);
}

body.agency-pad-ui #app-settings .settings-sidebar-pill.active {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.92), rgba(124, 92, 255, 0.78));
    color: #fff;
}

body.agency-pad-ui #app-settings .settings-sidebar-arrow {
    color: rgba(255, 255, 255, 0.42);
    font-size: 15px;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-arrow {
    color: rgba(17, 24, 39, 0.4);
}

body.agency-pad-ui #app-settings .settings-sidebar-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-progress {
    background: rgba(17, 24, 39, 0.05);
    border-color: rgba(17, 24, 39, 0.06);
}

body.agency-pad-ui #app-settings .settings-sidebar-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #58a6ff, #7c5cff);
    transition: width 0.22s ease;
}

body.agency-pad-ui #app-settings .settings-sidebar-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.agency-pad-ui #app-settings .settings-sidebar-metric {
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-metric {
    background: rgba(17, 24, 39, 0.04);
    border-color: rgba(17, 24, 39, 0.06);
}

body.agency-pad-ui #app-settings .settings-sidebar-metric span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-metric span {
    color: rgba(17, 24, 39, 0.48);
}

body.agency-pad-ui #app-settings .settings-sidebar-metric strong {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    color: #fff;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #app-settings .settings-sidebar-metric strong {
    color: var(--text-primary);
}

body.agency-pad-ui #app-settings .settings-main-content .settings-group {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    grid-column: auto !important;
}

body.agency-pad-ui #app-settings .settings-main-content .settings-group-title {
    padding: 0 10px 10px;
}

body.agency-pad-ui #app-settings .settings-main-content .settings-item:last-child {
    margin-bottom: 0;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail {
    display: grid;
    grid-template-columns: var(--pad-settings-sidebar-width) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main {
    display: block;
    align-self: start;
    position: sticky;
    top: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-sidebar {
    padding: 18px 16px 16px;
    border-radius: 32px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-content {
    gap: 14px;
    padding-top: 14px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-title {
    font-size: 36px;
    line-height: 0.94;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-main-sub {
    max-width: none;
    margin-top: 10px;
    font-size: 13px;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-item,
body.agency-pad-ui #app-settings .settings-shell.has-detail #settings-main .settings-profile-card {
    min-height: 74px;
    padding: 16px 18px;
    border-radius: 26px !important;
}

body.agency-pad-ui #app-settings .settings-shell.has-detail > .settings-page.active:not(#settings-main) {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 24px 24px 30px;
    border-radius: 40px;
    background: var(--pad-settings-panel);
    border: 1px solid var(--pad-settings-border);
    box-shadow: var(--pad-settings-shadow);
}

body.agency-pad-ui #app-settings .settings-shell.has-detail > .settings-page.active:not(#settings-main) .settings-group {
    width: 100%;
    max-width: none;
    margin: 0 0 20px;
}

@media (max-width: 1220px) {
    body.agency-pad-ui #app-settings {
        --pad-settings-sidebar-width: 404px;
        --pad-settings-main-gap: 20px;
    }

    body.agency-pad-ui #app-settings .settings-app-content {
        padding: 0 22px 68px;
    }
}

/* Agency Tycoon polish */
body.agency-pad-ui .tycoon-stage {
    isolation: isolate;
}

body.agency-pad-ui .tycoon-stage::before,
body.agency-pad-ui .tycoon-stage::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.34;
    filter: blur(96px);
    animation: tycoonAmbientFloat 16s ease-in-out infinite;
}

body.agency-pad-ui .tycoon-stage::before {
    top: -14%;
    left: -10%;
    width: 44%;
    height: 56%;
    background: radial-gradient(circle, rgba(100, 210, 255, 0.34), transparent 72%);
}

body.agency-pad-ui .tycoon-stage::after {
    right: -14%;
    bottom: -20%;
    width: 48%;
    height: 62%;
    background: radial-gradient(circle, rgba(127, 90, 240, 0.3), transparent 74%);
    animation-duration: 20s;
    animation-direction: reverse;
}

body.agency-pad-ui .tycoon-stage.is-campaign-live::before {
    opacity: 0.5;
    filter: blur(104px) saturate(132%);
}

body.agency-pad-ui .tycoon-stage.is-summit-live::after {
    opacity: 0.56;
    filter: blur(112px) saturate(145%);
}

body.agency-pad-ui .tycoon-fx-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

body.agency-pad-ui .tycoon-shell {
    position: relative;
    z-index: 3;
}

body.agency-pad-ui .tycoon-hero,
body.agency-pad-ui .tycoon-stat-card,
body.agency-pad-ui .tycoon-side-card,
body.agency-pad-ui .tycoon-card,
body.agency-pad-ui .tycoon-feed,
body.agency-pad-ui .tycoon-highlight-card,
body.agency-pad-ui .tycoon-objective-card,
body.agency-pad-ui .tycoon-momentum-card {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease, filter 0.28s ease;
}

body.agency-pad-ui .tycoon-stat-card.is-live,
body.agency-pad-ui .tycoon-side-card.is-live,
body.agency-pad-ui .tycoon-feed.is-live,
body.agency-pad-ui .tycoon-highlight-card.is-live,
body.agency-pad-ui .tycoon-objective-card.is-live,
body.agency-pad-ui .tycoon-momentum-card.is-live {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 38px rgba(2, 9, 19, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.agency-pad-ui .tycoon-card.is-live {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(100, 210, 255, 0.26);
    box-shadow: 0 18px 40px rgba(100, 210, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

body.agency-pad-ui .tycoon-card.is-unlock {
    transform: translateY(-6px) scale(1.016);
    border-color: rgba(127, 90, 240, 0.34);
    box-shadow: 0 20px 46px rgba(127, 90, 240, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.agency-pad-ui .tycoon-card.is-operational .tycoon-card-badge {
    color: var(--tycoon-accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.agency-pad-ui .tycoon-stage.is-chain-live .tycoon-hero,
body.agency-pad-ui .tycoon-stage.is-chain-live .tycoon-side-card:first-child {
    border-color: rgba(100, 210, 255, 0.18);
    box-shadow: 0 18px 42px rgba(100, 210, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.agency-pad-ui .tycoon-stage.is-celebrating {
    animation: tycoonStageCelebrate 1.06s ease;
}

body.agency-pad-ui .tycoon-stage.is-resetting {
    animation: tycoonStageReset 0.84s ease;
}

body.agency-pad-ui .tycoon-meter span,
body.agency-pad-ui .tycoon-highlight-meter span,
body.agency-pad-ui .tycoon-objective-meter span {
    position: relative;
    transition: width 0.44s cubic-bezier(0.22, 1, 0.36, 1), filter 0.28s ease;
}

body.agency-pad-ui .tycoon-meter span::after,
body.agency-pad-ui .tycoon-highlight-meter span::after,
body.agency-pad-ui .tycoon-objective-meter span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: tycoonMeterShimmer 2.8s linear infinite;
}

body.agency-pad-ui .tycoon-upgrade-btn,
body.agency-pad-ui .tycoon-primary-btn {
    position: relative;
    overflow: hidden;
}

body.agency-pad-ui .tycoon-upgrade-btn::after,
body.agency-pad-ui .tycoon-primary-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.26) 38%, transparent 62%);
    transform: translateX(-130%);
    animation: tycoonButtonSweep 4.4s linear infinite;
    pointer-events: none;
}

body.agency-pad-ui .tycoon-upgrade-btn.is-muted::after,
body.agency-pad-ui .tycoon-primary-btn:disabled::after,
body.agency-pad-ui .tycoon-secondary-btn:disabled::after {
    display: none;
}

body.agency-pad-ui .tycoon-burst {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 16, 29, 0.76);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    opacity: 0;
    transform: translate(-50%, 0) scale(0.84);
    transition: transform 1.02s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

body.agency-pad-ui .tycoon-burst.is-visible {
    opacity: 1;
    transform: translate(calc(-50% + var(--tycoon-burst-x, 0px)), var(--tycoon-burst-y, -96px)) scale(1);
}

body.agency-pad-ui .tycoon-burst--cash {
    background: linear-gradient(135deg, rgba(100, 210, 255, 0.9), rgba(37, 99, 235, 0.86));
}

body.agency-pad-ui .tycoon-burst--boost {
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.92), rgba(100, 210, 255, 0.88));
}

body.agency-pad-ui .tycoon-burst--milestone {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.9), rgba(16, 185, 129, 0.84));
}

body.agency-pad-ui .tycoon-burst--summit {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.94), rgba(251, 113, 133, 0.9));
}

body.agency-pad-ui .tycoon-burst--reset {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.9), rgba(71, 85, 105, 0.86));
}

@keyframes tycoonAmbientFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(24px, 18px, 0) scale(1.06);
    }
}

@keyframes tycoonMeterShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(130%);
    }
}

@keyframes tycoonButtonSweep {
    0%,
    68% {
        transform: translateX(-130%);
    }
    86%,
    100% {
        transform: translateX(150%);
    }
}

@keyframes tycoonStageCelebrate {
    0%,
    100% {
        transform: scale(1);
        filter: saturate(1);
    }
    32% {
        transform: scale(1.008);
        filter: saturate(1.08);
    }
    68% {
        transform: scale(1.004);
        filter: saturate(1.04);
    }
}

@keyframes tycoonStageReset {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    40% {
        transform: scale(0.992);
        filter: brightness(0.92);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

body.agency-pad-ui .gameshub-header {
    padding-inline: 20px;
}

body.agency-pad-ui .gameshub-refresh-btn {
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 14px 30px rgba(8,12,24,0.2);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .gameshub-refresh-btn {
    border-color: rgba(29, 42, 61, 0.1);
    background: rgba(255,255,255,0.78);
    color: #142131;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 14px 30px rgba(50,65,92,0.12);
}

body.agency-pad-ui .gameshub-content {
    padding: 0 !important;
    overflow: hidden !important;
}

body.agency-pad-ui .gameshub-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.agency-pad-ui .gameshub-brand-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(79, 70, 229, 0.08)),
        rgba(9, 14, 26, 0.62);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .gameshub-brand-strip {
    border-bottom-color: rgba(22,34,49,0.08);
    background:
        linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(79, 70, 229, 0.06)),
        rgba(248, 250, 255, 0.82);
}

body.agency-pad-ui .gameshub-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c5cff, #4f46e5);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.28);
}

body.agency-pad-ui .gameshub-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-left: auto;
    text-align: right;
}

body.agency-pad-ui .gameshub-brand-copy strong {
    font-size: 17px;
    font-weight: 800;
    color: rgba(255,255,255,0.96);
}

body.agency-pad-ui .gameshub-brand-copy span {
    font-size: 12px;
    color: rgba(255,255,255,0.58);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .gameshub-brand-copy strong {
    color: #162130;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .gameshub-brand-copy span {
    color: rgba(22,34,49,0.54);
}

body.agency-pad-ui .gameshub-frame-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    background: linear-gradient(180deg, rgba(6,10,18,0.76), rgba(10,15,28,0.96));
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .gameshub-frame-stage {
    background: linear-gradient(180deg, rgba(244,247,255,0.92), rgba(236,241,250,1));
}

body.agency-pad-ui .gameshub-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #0a1020;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .gameshub-frame {
    background: #ffffff;
}

body.agency-pad-ui .gameshub-loading-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    background:
        radial-gradient(circle at 50% 22%, rgba(124, 92, 255, 0.22), transparent 30%),
        linear-gradient(180deg, rgba(7,11,18,0.52), rgba(8,12,22,0.86));
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 3;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .gameshub-loading-state {
    background:
        radial-gradient(circle at 50% 22%, rgba(124, 92, 255, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(248,250,255,0.74), rgba(239,243,252,0.92));
}

body.agency-pad-ui .gameshub-loading-state.done {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
}

body.agency-pad-ui .gameshub-loading-orb {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    background: linear-gradient(135deg, #7c5cff, #4f46e5);
    box-shadow: 0 20px 46px rgba(79, 70, 229, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

body.agency-pad-ui .gameshub-loading-state strong {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255,255,255,0.96);
}

body.agency-pad-ui .gameshub-loading-state p {
    max-width: 360px;
    margin: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.62);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .gameshub-loading-state strong {
    color: #162130;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .gameshub-loading-state p {
    color: rgba(22,34,49,0.58);
}

body.agency-pad-ui .gameshub-shell-blocked {
    align-items: center;
    justify-content: center;
    padding: 30px;
}

body.agency-pad-ui .gameshub-blocked-card {
    width: min(100%, 560px);
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 60px rgba(6,10,18,0.24);
}

body.agency-pad-ui .gameshub-blocked-card h2 {
    margin: 16px 0 10px;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 900;
}

body.agency-pad-ui .gameshub-blocked-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: inherit;
    opacity: 0.74;
}

body.agency-pad-ui .gameshub-blocked-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

body.agency-pad-ui .gameshub-inline-btn {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.08);
    color: inherit;
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 700;
    cursor: pointer;
}

body.agency-pad-ui .gameshub-inline-btn.primary {
    border-color: rgba(124, 92, 255, 0.26);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.96), rgba(79, 70, 229, 0.96));
    color: #fff;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .gameshub-inline-btn {
    border-color: rgba(22,34,49,0.1);
    background: rgba(255,255,255,0.84);
}

body.agency-pad-ui #notification-area {
    top: 62px !important;
    left: 50% !important;
    right: auto !important;
    width: min(620px, calc(100% - 260px)) !important;
    max-width: 620px !important;
    transform: translateX(-50%) !important;
    align-items: stretch !important;
    gap: 10px !important;
}

body.agency-pad-ui .phone-notification {
    width: 100% !important;
    max-width: 620px !important;
    min-width: 0 !important;
    align-self: center;
    padding: 14px 16px !important;
    border-radius: 24px !important;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.agency-pad-ui .phone-notification .notif-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 17px;
}

body.agency-pad-ui .phone-notification .notif-title {
    font-size: 14px;
    font-weight: 700;
}

body.agency-pad-ui .phone-notification .notif-text {
    font-size: 12.5px;
    line-height: 1.45;
}

body.agency-pad-ui .phone-notification > div:last-child {
    flex-shrink: 0;
}

@media (max-width: 1280px) {
    body.agency-pad-ui #notification-area {
        top: 58px !important;
        width: min(540px, calc(100% - 180px)) !important;
        max-width: 540px !important;
    }

    body.agency-pad-ui .phone-notification {
        max-width: 540px !important;
    }
}

body.agency-pad-ui #app-music.music-now-playing-mode > .app-content {
    overflow: hidden !important;
}

body.agency-pad-ui #app-music.music-now-playing-mode #mu-tab-playing {
    overflow: hidden !important;
    min-height: 0;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-now-playing {
    max-width: 1112px;
    height: 100%;
    min-height: 0;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-areas:
        "top top"
        "card side"
        "card playback";
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 8px 0 calc(var(--home-indicator-clearance, 34px) - 16px);
    align-items: stretch;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-now-top-actions {
    min-height: 56px;
    gap: 12px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-glass-chip {
    min-height: 46px;
    padding: 0 18px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-top-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 17px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-now-card {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px;
    align-content: stretch;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-artwork-wrap {
    width: min(100%, 290px);
    max-width: 290px;
    margin: auto;
    align-self: center;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-artwork,
body.agency-pad-ui #app-music.music-now-playing-mode .mu-video-container {
    border-radius: 30px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-track-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 2px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-track-title {
    font-size: 24px;
    line-height: 1.02;
    -webkit-line-clamp: 3;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-track-artist {
    margin-top: 0;
    font-size: 15px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-playback-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "progress"
        "volume"
        "controls";
    gap: 10px;
    padding: 14px 18px;
    align-content: center;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-time-row {
    grid-area: progress;
    margin: 0;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-progress-bar {
    height: 22px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-controls {
    grid-area: controls;
    margin-top: 0;
    align-self: center;
    gap: 10px;
    padding: 0 8px;
    justify-content: center;
}

body.agency-pad-ui #app-music.music-now-playing-mode #mu-shuffle {
    margin-right: auto;
}

body.agency-pad-ui #app-music.music-now-playing-mode #mu-repeat {
    margin-left: auto;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-ctrl-btn {
    width: 48px;
    height: 48px;
    border-radius: 17px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-play-btn {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    font-size: 26px;
    box-shadow: 0 16px 32px rgba(255, 84, 105, 0.28);
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-extra-controls {
    grid-area: volume;
    margin-top: 0;
    align-items: stretch;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-volume-wrap {
    justify-content: center;
    min-height: 0;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 20px;
    border: none !important;
    box-shadow: none !important;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-volume-head {
    font-size: 13px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-volume-row {
    gap: 12px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-playing-side {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 14px;
    min-height: 0;
    align-items: stretch;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-playing-side > .mu-pad-panel {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: none !important;
    box-shadow: none !important;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-playing-side {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-pad-panel-head {
    margin-bottom: 10px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-pad-panel-title {
    font-size: 17px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-pad-panel-sub {
    font-size: 11.5px;
    line-height: 1.4;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-pad-mini-list {
    gap: 8px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-pad-mini-track {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
    border-radius: 16px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-pad-mini-track img,
body.agency-pad-ui #app-music.music-now-playing-mode .mu-pad-mini-thumb {
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-pad-mini-title {
    font-size: 12px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-pad-mini-sub {
    margin-top: 3px;
    font-size: 10px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-now-session {
    gap: 10px;
}

body.agency-pad-ui #mu-tab-playlists {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 14px 0 calc(var(--home-indicator-clearance, 34px) - 12px);
    gap: 16px;
}

body.agency-pad-ui .mu-playlists-header {
    border-radius: 30px;
    padding: 18px 20px;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

body.agency-pad-ui .mu-create-playlist-btn {
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(252, 60, 68, 0.22);
}

body.agency-pad-ui .mu-playlists-grid {
    border-radius: 30px;
    min-height: 420px;
    padding: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

body.agency-pad-ui .mu-playlist-card {
    border-radius: 26px;
    min-height: 176px;
    padding: 18px 18px 16px;
    background:
        radial-gradient(circle at 88% 12%, rgba(252, 60, 68, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        rgba(12, 16, 24, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 20px 38px rgba(0,0,0,0.22);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .mu-playlist-card {
    background:
        radial-gradient(circle at 88% 12%, rgba(252, 60, 68, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,249,255,0.86)),
        rgba(255,255,255,0.9);
    border-color: rgba(17,24,39,0.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.84),
        0 16px 30px rgba(35,52,84,0.12);
}

body.agency-pad-ui .mu-playlist-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    margin-bottom: 14px;
    font-size: 22px;
}

body.agency-pad-ui .mu-playlist-card-name {
    font-size: 18px;
    line-height: 1.12;
    white-space: normal;
}

body.agency-pad-ui .mu-playlist-card-count {
    margin-top: 8px;
    font-size: 12px;
}

body.agency-pad-ui .mu-playlist-card-delete {
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
}

body.agency-pad-ui .mu-playlist-detail {
    border-radius: 30px;
    overflow: hidden;
    min-height: 540px;
}

body.agency-pad-ui .mu-playlist-detail-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.agency-pad-ui .mu-playlist-back-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.agency-pad-ui .mu-playlist-detail-name {
    font-size: 24px;
    line-height: 1.08;
}

body.agency-pad-ui .mu-playlist-play-all {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
}

body.agency-pad-ui #mu-tab-playlists .mu-empty {
    border-radius: 26px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
}

body.agency-pad-ui #phone-frame:not(.dark-mode) #mu-tab-playlists .mu-empty {
    background: rgba(255,255,255,0.65);
    border-color: rgba(17,24,39,0.08);
}

body.agency-pad-ui #app-dialer .dialer-liquid-shell {
    padding: 42px 24px calc(var(--home-indicator-clearance) + 12px);
}

body.agency-pad-ui #app-dialer .dialer-liquid-toolbar,
body.agency-pad-ui #app-dialer .dialer-liquid-hero,
body.agency-pad-ui #app-dialer .dialer-search-shell,
body.agency-pad-ui #app-dialer .dialer-liquid-body,
body.agency-pad-ui #app-dialer .dialer-floating-footer {
    width: min(100%, 980px);
}

body.agency-pad-ui #app-dialer .dialer-liquid-title {
    font-size: 48px;
}

body.agency-pad-ui #app-dialer .dialer-liquid-subtitle {
    font-size: 13px;
}

body.agency-pad-ui #app-dialer .dialer-liquid-body {
    min-height: 0;
}

body.agency-pad-ui #app-dialer .dialer-row {
    padding: 16px 18px;
    border-radius: 28px;
}

body.agency-pad-ui #app-dialer .dialer-avatar {
    width: 64px;
    height: 64px;
    font-size: 26px;
}

body.agency-pad-ui #app-dialer .dialer-row-main {
    font-size: 20px;
}

body.agency-pad-ui #app-dialer .dialer-row-sub,
body.agency-pad-ui #app-dialer .dialer-row-time {
    font-size: 14px;
}

body.agency-pad-ui #app-dialer .dialer-call-shortcut,
body.agency-pad-ui #app-dialer .dialer-recent-delete {
    width: 62px;
    height: 62px;
}

body.agency-pad-ui #app-dialer .dialer-nav-pill {
    max-width: 468px;
    min-height: 74px;
    border-radius: 38px;
}

body.agency-pad-ui #app-dialer .dialer-nav-btn {
    border-radius: 32px;
}

body.agency-pad-ui #app-dialer .dialer-nav-btn i {
    font-size: 23px;
}

body.agency-pad-ui #app-dialer.keypad-mode .dialer-liquid-hero {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    min-height: auto;
    max-height: none;
    height: auto;
    margin: 0;
    padding: 0 0 10px;
    overflow: visible;
}

body.agency-pad-ui #app-dialer.keypad-mode .dialer-liquid-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   KEYPAD — Tablet-optimized layout
   Two-column grid: Display (left) + Keypad (right)
   ═══════════════════════════════════════════════════════════════ */

body.agency-pad-ui #app-dialer .dialer-keypad-shell {
    max-width: 920px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    /* Tight top padding so the first keypad row is never clipped by the app
       title. The floating nav pill is absolutely positioned and clears the
       bottom via the generous bottom padding. */
    padding: 12px 40px calc(var(--home-indicator-clearance) + 110px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "entry grid"
        "actions grid";
    gap: 20px 40px;
    /* Top-align so the keypad starts just below the shell padding — centered
       alignment pushed the taller keypad grid above the visible area. */
    align-items: start;
    justify-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

body.agency-pad-ui #app-dialer .dialer-keypad-entry {
    grid-area: entry;
    min-height: 0;
    margin-bottom: 0;
    margin-top: 60px;
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-right: 10px;
}

body.agency-pad-ui #app-dialer .dialer-keypad-display {
    max-width: 100%;
    text-align: center;
    font-size: 56px;
    min-height: 68px;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
    word-break: break-all;
}

body.agency-pad-ui #app-dialer .dialer-keypad-match {
    text-align: center;
    font-size: 16px;
    min-height: 22px;
    opacity: 0.6;
}

body.agency-pad-ui #app-dialer .dialer-keypad-delete {
    margin-top: 6px;
    width: 48px;
    height: 48px;
    font-size: 18px;
}

body.agency-pad-ui #app-dialer .dialer-keypad-grid {
    grid-area: grid;
    max-width: 380px;
    width: 100%;
    gap: 14px 18px;
    justify-items: center;
    align-self: start;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

body.agency-pad-ui #app-dialer .dial-key {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    font-family: Inter, sans-serif;
}

body.agency-pad-ui #app-dialer .dial-key-main {
    font-size: 34px;
    font-weight: 300;
}

body.agency-pad-ui #app-dialer .dial-key-sub {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

body.agency-pad-ui #app-dialer .dialer-keypad-actions {
    grid-area: actions;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-right: 10px;
}

body.agency-pad-ui #app-dialer .dialer-call-main {
    width: 84px;
    height: 84px;
    font-size: 32px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.32);
}

body.agency-pad-ui #app-dialer .dialer-call-main:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(52, 199, 89, 0.42);
}

body.agency-pad-ui #app-dialer .dialer-call-main:active {
    transform: scale(0.97);
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-session-badge {
    padding: 7px 11px;
    font-size: 10px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-session-meta {
    gap: 8px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-session-pill {
    padding: 10px 12px;
    border-radius: 16px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-session-pill strong {
    margin-top: 5px;
    font-size: 15px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-session-actions {
    gap: 8px;
}

body.agency-pad-ui #app-music.music-now-playing-mode .mu-session-action {
    flex: 1 1 calc(50% - 4px);
    min-height: 46px;
    padding: 0 14px;
    font-size: 12px;
}

@media (max-width: 1280px) {
    body.agency-pad-ui #app-music.music-now-playing-mode .mu-now-playing {
        grid-template-columns: 308px minmax(0, 1fr);
        gap: 12px;
    }

    body.agency-pad-ui #app-music.music-now-playing-mode .mu-playback-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "progress"
            "controls"
            "volume";
        gap: 14px;
    }

    body.agency-pad-ui #app-music.music-now-playing-mode .mu-playing-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.agency-pad-ui #app-music.music-now-playing-mode .mu-artwork-wrap {
        width: min(100%, 270px);
        max-width: 270px;
    }

body.agency-pad-ui #app-music.music-now-playing-mode .mu-track-title {
        font-size: 22px;
    }
}

body.agency-pad-ui #home-indicator {
    left: 50% !important;
    right: auto !important;
    bottom: 18px !important;
    width: 228px !important;
    height: 38px !important;
    transform: translateX(-50%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: transparent;
    touch-action: none;
}

body.agency-pad-ui #home-bar {
    width: 146px;
    height: 5px;
    margin: 0 auto;
    border-radius: 999px;
    transform: translateY(-1px);
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.16);
}

body.agency-pad-ui #home-indicator.on-home #home-bar {
    width: 122px;
    opacity: 0.4;
}

body.agency-pad-ui #home-indicator.cc-active #home-bar {
    width: 136px;
}

body.agency-pad-ui #home-indicator:active #home-bar,
body.agency-pad-ui #home-indicator.swiping #home-bar {
    transform: translateY(-3px);
}

/* VidFlow — final tablet surface refinement */
body.agency-pad-ui #app-vidflow .vf-app-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 12px 16px 16px !important;
}

body.agency-pad-ui #app-vidflow .vf-shell {
    width: 100%;
    max-width: none;
    flex: 1;
    min-height: 0;
    gap: 14px;
}

body.agency-pad-ui #app-vidflow .vf-search-bar {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 28px;
}

body.agency-pad-ui #app-vidflow .vf-search-bar input {
    min-height: 52px;
    padding: 0 20px;
    font-size: 16px;
}

body.agency-pad-ui #app-vidflow .vf-search-bar button {
    width: 52px;
    height: 52px;
    border-radius: 18px;
}

body.agency-pad-ui #app-vidflow .vf-player-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.82fr);
    align-items: stretch;
    min-height: 364px;
}

body.agency-pad-ui #app-vidflow #vf-player {
    min-height: 100%;
    background: rgba(3, 6, 12, 0.82);
}

body.agency-pad-ui #app-vidflow .vf-player-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 364px;
    aspect-ratio: auto;
}

body.agency-pad-ui #app-vidflow .vf-now-playing {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

body.agency-pad-ui #app-vidflow .vf-home {
    flex: 1;
    min-height: 0;
    gap: 14px;
}

body.agency-pad-ui #app-vidflow .vf-hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.9fr);
    gap: 14px;
    align-items: stretch;
}

body.agency-pad-ui #app-vidflow.vf-layout-no-continue .vf-hero-grid {
    grid-template-columns: minmax(0, 1fr);
}

body.agency-pad-ui #app-vidflow .vf-hero-card,
body.agency-pad-ui #app-vidflow .vf-continue-card {
    min-height: 228px;
    padding: 24px 26px;
}

body.agency-pad-ui #app-vidflow.vf-layout-no-continue .vf-featured-card {
    min-height: 244px;
}

body.agency-pad-ui #app-vidflow .vf-card-title {
    max-width: 720px;
    font-size: 34px;
    line-height: 1.05;
}

body.agency-pad-ui #app-vidflow .vf-card-sub {
    max-width: 640px;
    font-size: 15px;
}

body.agency-pad-ui #app-vidflow .vf-chip-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

body.agency-pad-ui #app-vidflow .vf-chip {
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
    font-size: 13px;
}

body.agency-pad-ui #app-vidflow .vf-sections-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 14px;
    align-content: start;
}

body.agency-pad-ui #app-vidflow.vf-layout-no-recent .vf-sections-grid {
    grid-template-columns: minmax(0, 1fr);
}

body.agency-pad-ui #app-vidflow.vf-layout-no-recent .vf-section-latest {
    grid-column: 1 / -1;
}

body.agency-pad-ui #app-vidflow .vf-section {
    min-height: 0;
    padding: 18px;
}

body.agency-pad-ui #app-vidflow .vf-section-head {
    margin-bottom: 16px;
}

body.agency-pad-ui #app-vidflow .vf-section-title {
    margin-top: 0;
    font-size: 22px;
    line-height: 1.08;
}

body.agency-pad-ui #app-vidflow .vf-section-sub {
    font-size: 11px;
}

body.agency-pad-ui #app-vidflow .vf-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.agency-pad-ui #app-vidflow .vf-section-recent .vf-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.agency-pad-ui #app-vidflow .vf-section-latest .vf-media-grid,
body.agency-pad-ui #app-vidflow .vf-section-results .vf-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.agency-pad-ui #app-vidflow.vf-layout-no-recent .vf-section-latest .vf-media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.agency-pad-ui #app-vidflow .vf-video-item {
    gap: 12px;
    min-height: 100%;
    padding: 14px;
    border-radius: 24px;
}

body.agency-pad-ui #app-vidflow .vf-video-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
}

body.agency-pad-ui #app-vidflow .vf-video-title {
    font-size: 15px;
    line-height: 1.35;
}

body.agency-pad-ui #app-vidflow .vf-video-channel {
    font-size: 12px;
}

body.agency-pad-ui #app-vidflow .vf-results {
    padding: 2px 0 0;
    overflow: visible;
}

body.agency-pad-ui #app-vidflow:not(.vf-layout-has-search-results) .vf-section-results {
    padding-bottom: 14px;
}

body.agency-pad-ui #app-vidflow:not(.vf-layout-has-search-results) .vf-section-results .mu-empty {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1280px) {
    body.agency-pad-ui #app-vidflow .vf-player-wrap {
        grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.9fr);
    }

    body.agency-pad-ui #app-vidflow .vf-hero-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.88fr);
    }

    body.agency-pad-ui #app-vidflow .vf-chip-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.agency-pad-ui #app-vidflow.vf-layout-no-recent .vf-section-latest .vf-media-grid,
    body.agency-pad-ui #app-vidflow .vf-section-results .vf-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1140px) {
    body.agency-pad-ui #app-vidflow .vf-player-wrap,
    body.agency-pad-ui #app-vidflow .vf-hero-grid,
    body.agency-pad-ui #app-vidflow .vf-sections-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.agency-pad-ui #app-vidflow .vf-media-grid,
    body.agency-pad-ui #app-vidflow .vf-section-latest .vf-media-grid,
    body.agency-pad-ui #app-vidflow .vf-section-results .vf-media-grid,
    body.agency-pad-ui #app-vidflow.vf-layout-no-recent .vf-section-latest .vf-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.agency-pad-ui #app-music .mu-tabs {
    gap: 10px;
    padding: 8px;
    margin: 10px 10px 0;
    border-radius: 999px;
}

body.agency-pad-ui #app-music .mu-tab {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
}

body.agency-pad-ui #app-music .mu-search-bar,
body.agency-pad-ui #app-music .mu-url-bar {
    padding-left: 10px;
    padding-right: 10px;
    gap: 10px;
}

body.agency-pad-ui #app-music .mu-search-bar input,
body.agency-pad-ui #app-music .mu-url-bar input {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 22px;
}

body.agency-pad-ui #app-music .mu-search-bar button,
body.agency-pad-ui #app-music .mu-url-bar button {
    width: 50px;
    min-width: 50px;
    border-radius: 20px;
}

body.agency-pad-ui #app-music .mu-glass-chip {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
}

body.agency-pad-ui #app-music .mu-top-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 20px;
}

body.agency-pad-ui #app-music .mu-pad-panel,
body.agency-pad-ui #app-music .mu-now-card,
body.agency-pad-ui #app-music .mu-playback-card,
body.agency-pad-ui #app-music .mu-playing-side {
    border-radius: 32px;
}

body.agency-pad-ui .clock-app-root {
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 16px 24px calc(var(--app-content-bottom-clearance, 70px) + 6px);
    gap: 14px;
    overflow: hidden;
}

body.agency-pad-ui .clock-toolbar {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    gap: 12px;
}

body.agency-pad-ui .clock-toolbar-btn,
body.agency-pad-ui .clock-toolbar-icon {
    min-height: 52px;
    border-radius: 28px;
}

body.agency-pad-ui .clock-toolbar-btn {
    min-width: 132px;
    padding: 0 18px;
    font-size: 22px;
}

body.agency-pad-ui .clock-toolbar-icon {
    width: 52px;
    height: 52px;
    font-size: 24px;
}

body.agency-pad-ui .clock-content {
    max-width: 100%;
    min-height: 0;
    overflow: hidden;
}

body.agency-pad-ui .clock-tab-content.active {
    height: 100%;
    min-height: 0;
}

body.agency-pad-ui .clock-page {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    padding-right: 4px;
    padding-bottom: 8px;
    scrollbar-width: none;
}

body.agency-pad-ui .clock-page::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.agency-pad-ui .clock-page-title {
    font-size: 58px;
    line-height: 0.96;
}

body.agency-pad-ui .clock-page-subtitle {
    font-size: 13px;
    min-height: 16px;
}

body.agency-pad-ui .clock-world-page,
body.agency-pad-ui .clock-stopwatch-page,
body.agency-pad-ui .clock-timer-page {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    gap: 16px;
}

body.agency-pad-ui .clock-world-hero-card {
    min-height: 248px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 26px 28px 24px;
}

body.agency-pad-ui .clock-world-time {
    font-size: 66px;
    line-height: 0.96;
}

body.agency-pad-ui .clock-world-hero-time {
    font-size: 104px;
    line-height: 0.88;
}

body.agency-pad-ui .clock-world-list,
body.agency-pad-ui .clock-alarm-list {
    width: 100%;
    min-height: 0;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
}

body.agency-pad-ui .clock-stopwatch-laps {
    width: 100%;
    min-height: 0;
    flex: 1;
    overflow: hidden;
    overflow-y: auto;
    padding: 4px 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.12);
    scrollbar-width: none;
}

body.agency-pad-ui .clock-stopwatch-laps::-webkit-scrollbar {
    display: none;
}

body.agency-pad-ui .clock-stopwatch-laps:empty {
    display: none;
}

body.agency-pad-ui #phone-frame:not(.dark-mode) .clock-stopwatch-laps {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

body.agency-pad-ui .clock-world-row,
body.agency-pad-ui .clock-alarm-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 16px;
    padding: 14px 20px;
    min-height: 68px;
}

body.agency-pad-ui .clock-alarm-main {
    min-width: 0;
}

body.agency-pad-ui .clock-alarm-toggle {
    justify-self: end;
}

body.agency-pad-ui .clock-world-city {
    font-size: 24px;
}

body.agency-pad-ui .clock-world-meta {
    font-size: 13px;
}

body.agency-pad-ui .clock-empty-state.compact {
    min-height: 72px;
}

body.agency-pad-ui .clock-alarm-hero {
    max-width: 860px;
    padding-top: 8px;
}

body.agency-pad-ui .clock-alarm-hero-time {
    margin-top: 12px;
    font-size: 84px;
}

body.agency-pad-ui .clock-alarm-hero-copy {
    font-size: 16px;
}

body.agency-pad-ui .clock-alarm-time {
    font-size: 42px;
    line-height: 1.1;
}

body.agency-pad-ui .clock-alarm-label {
    font-size: 16px;
}

body.agency-pad-ui .clock-stopwatch-page {
    justify-content: flex-start;
}

body.agency-pad-ui .clock-timer-page {
    justify-content: flex-start;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

body.agency-pad-ui .clock-stopwatch-time,
body.agency-pad-ui .clock-timer-time {
    font-size: 94px;
    line-height: 0.92;
}

body.agency-pad-ui .clock-action-pair {
    gap: 18px;
    margin-top: 2px;
}

body.agency-pad-ui .clock-circle-btn {
    width: 98px;
    height: 98px;
    font-size: 19px;
}

body.agency-pad-ui .clock-timer-picker-shell {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    gap: 10px;
}

body.agency-pad-ui .clock-timer-wheel {
    height: 210px;
}

body.agency-pad-ui .clock-wheel-spacer {
    height: 78px;
}

body.agency-pad-ui .clock-wheel-item {
    height: 46px;
    font-size: 32px;
}

body.agency-pad-ui .clock-wheel-item.active {
    font-size: 40px;
}

body.agency-pad-ui .clock-timer-settings {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

body.agency-pad-ui .clock-timer-recent-title,
body.agency-pad-ui .clock-timer-presets {
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.agency-pad-ui .clock-tabs-bottom {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: 8px;
    border-radius: 30px;
}

body.agency-pad-ui .clock-tab {
    min-height: 78px;
    font-size: 14px;
    gap: 6px;
}

body.agency-pad-ui .clock-tab i {
    font-size: 26px;
}

body.agency-pad-ui .clock-alarm-overlay {
    padding: 26px 34px 34px;
}

body.agency-pad-ui .clock-alarm-overlay-card {
    max-width: 840px;
    gap: 28px;
}

body.agency-pad-ui .clock-alarm-overlay-capsule {
    width: min(48%, 300px);
    min-height: 56px;
}

body.agency-pad-ui .clock-alarm-overlay-kicker {
    font-size: 26px;
    gap: 16px;
}

body.agency-pad-ui .clock-alarm-overlay-time {
    font-size: 180px;
}

body.agency-pad-ui .clock-alarm-overlay-snooze {
    max-width: 760px;
    min-height: 112px;
    font-size: 34px;
}

body.agency-pad-ui .clock-alarm-slide {
    max-width: 760px;
    min-height: 128px;
    border-radius: 40px;
}

body.agency-pad-ui .clock-alarm-slide-copy {
    font-size: 32px;
}

body.agency-pad-ui .clock-alarm-slide-handle {
    width: 98px;
    height: 98px;
    font-size: 30px;
}

/* ─── Business / Organizations App ────────────────────────────────── */

body.agency-pad-ui .biz-app-content {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.agency-pad-ui .biz-app-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body.agency-pad-ui .biz-root {
    position: relative;
    min-height: 100%;
}

body.agency-pad-ui .biz-shell {
    display: flex;
    flex-direction: column;
    padding: 58px 20px 24px;
    gap: 12px;
    padding-bottom: calc(var(--app-content-bottom-clearance, 70px) + 24px);
}

body.agency-pad-ui .biz-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.agency-pad-ui .biz-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.agency-pad-ui .biz-round {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
}

body.agency-pad-ui .biz-round:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

body.agency-pad-ui .biz-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.18s;
}

body.agency-pad-ui .biz-pill:hover {
    background: rgba(255,255,255,0.12);
}

body.agency-pad-ui .biz-hero {
    padding: 8px 0 4px;
}

body.agency-pad-ui .biz-hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

body.agency-pad-ui .biz-hero p {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    margin: 4px 0 0;
}

body.agency-pad-ui .biz-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.agency-pad-ui .biz-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.52);
    font-size: 12px;
    font-weight: 500;
}

body.agency-pad-ui .biz-board {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.agency-pad-ui .biz-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}

body.agency-pad-ui .biz-row:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.1);
}

body.agency-pad-ui .biz-row-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid transparent;
    flex-shrink: 0;
    overflow: hidden;
}

body.agency-pad-ui .biz-row-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

body.agency-pad-ui .biz-row-copy {
    flex: 1;
    min-width: 0;
}

body.agency-pad-ui .biz-row-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.agency-pad-ui .biz-row-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

body.agency-pad-ui .biz-row-side {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.2);
    font-size: 13px;
}

body.agency-pad-ui .biz-row-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
}

body.agency-pad-ui .biz-org-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.biz-about-text {
    font-size: 14px;
    color: rgba(255,255,255,0.62);
    line-height: 1.45;
}

body.agency-pad-ui .biz-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 240px;
    color: rgba(255,255,255,0.22);
    font-size: 15px;
}

body.agency-pad-ui .biz-empty i {
    font-size: 32px;
    opacity: 0.5;
}

/* ── Detail view ── */

body.agency-pad-ui .biz-detail-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0 8px;
}

body.agency-pad-ui .biz-detail-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid transparent;
    flex-shrink: 0;
    overflow: hidden;
}

body.agency-pad-ui .biz-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

body.agency-pad-ui .biz-detail-info h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

body.agency-pad-ui .biz-detail-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 2px 0 0;
}

body.agency-pad-ui .biz-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 0;
    overflow-x: auto;
}

body.agency-pad-ui .biz-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.38);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.18s, border-color 0.18s;
    white-space: nowrap;
}

body.agency-pad-ui .biz-tab:hover {
    color: rgba(255,255,255,0.6);
}

body.agency-pad-ui .biz-tab.active {
    color: #fff;
    border-bottom-color: #30d158;
}

/* ── Section / Card ── */

body.agency-pad-ui .biz-section {
    margin-top: 16px;
}

body.agency-pad-ui .biz-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.34);
    margin-bottom: 8px;
    padding: 0 2px;
}

body.agency-pad-ui .biz-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
}

body.agency-pad-ui .biz-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    min-height: 44px;
    cursor: pointer;
    transition: background 0.15s;
}

body.agency-pad-ui .biz-card-row:hover {
    background: rgba(255,255,255,0.03);
}

body.agency-pad-ui .biz-card-row + .biz-card-row {
    border-top: 1px solid rgba(255,255,255,0.04);
}

body.agency-pad-ui .biz-card-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
}

body.agency-pad-ui .biz-card-row-left i {
    width: 18px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

body.agency-pad-ui .biz-card-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.2);
    font-size: 13px;
}

body.agency-pad-ui .biz-card-row-right .value {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    font-weight: 500;
}

/* ── Finance card ── */

body.agency-pad-ui .biz-finance-card {
    background: linear-gradient(135deg, rgba(48,209,88,0.1), rgba(48,209,88,0.03));
    border: 1px solid rgba(48,209,88,0.12);
    border-radius: 16px;
    padding: 20px;
    margin-top: 8px;
}

body.agency-pad-ui .biz-finance-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

body.agency-pad-ui .biz-finance-amount {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 4px 0 16px;
    letter-spacing: -0.5px;
}

body.agency-pad-ui .biz-finance-row {
    display: flex;
    gap: 20px;
}

body.agency-pad-ui .biz-finance-stat-val {
    font-size: 16px;
    font-weight: 600;
}

body.agency-pad-ui .biz-finance-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}

/* ── Employee rows ── */

body.agency-pad-ui .biz-emp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

body.agency-pad-ui .biz-emp-row + .biz-emp-row {
    border-top: 1px solid rgba(255,255,255,0.04);
}

body.agency-pad-ui .biz-emp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
}

body.agency-pad-ui .biz-emp-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

body.agency-pad-ui .biz-emp-role {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    margin-top: 1px;
}

body.agency-pad-ui .biz-emp-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

body.agency-pad-ui .biz-emp-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

body.agency-pad-ui .biz-emp-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

body.agency-pad-ui .biz-emp-btn.danger:hover {
    background: rgba(255,69,58,0.2);
    color: #ff453a;
}

/* ── Product rows ── */

body.agency-pad-ui .biz-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

body.agency-pad-ui .biz-product-row + .biz-product-row {
    border-top: 1px solid rgba(255,255,255,0.04);
}

body.agency-pad-ui .biz-product-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    flex-shrink: 0;
}

body.agency-pad-ui .biz-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

body.agency-pad-ui .biz-product-price {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    margin-top: 1px;
}

body.agency-pad-ui .biz-product-stock {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}

/* ── Overlay / Sheet ── */

body.agency-pad-ui .biz-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s;
}

body.agency-pad-ui .biz-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

body.agency-pad-ui .biz-sheet {
    width: 100%;
    max-height: 88%;
    background: rgba(28,28,30,0.96);
    border-radius: 20px 20px 0 0;
    padding: 24px 22px 28px;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

body.agency-pad-ui .biz-overlay.visible .biz-sheet {
    transform: translateY(0);
}

body.agency-pad-ui .biz-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

body.agency-pad-ui .biz-sheet-head h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

body.agency-pad-ui .biz-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.agency-pad-ui .biz-sheet-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.42);
    line-height: 1.45;
    margin-bottom: 16px;
}

body.agency-pad-ui .biz-field {
    margin-bottom: 14px;
}

body.agency-pad-ui .biz-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

body.agency-pad-ui .biz-field input,
body.agency-pad-ui .biz-field select,
body.agency-pad-ui .biz-field textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s;
    box-sizing: border-box;
}

body.agency-pad-ui .biz-field input:focus,
body.agency-pad-ui .biz-field select:focus,
body.agency-pad-ui .biz-field textarea:focus {
    border-color: rgba(48,209,88,0.4);
}

body.agency-pad-ui .biz-field textarea {
    resize: vertical;
    min-height: 70px;
}

body.agency-pad-ui .biz-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* ── Category grid ── */

body.agency-pad-ui .biz-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

body.agency-pad-ui .biz-cat-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}

body.agency-pad-ui .biz-cat-option:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}

body.agency-pad-ui .biz-cat-option.active {
    border-color: rgba(48,209,88,0.5);
    background: rgba(48,209,88,0.08);
}

body.agency-pad-ui .biz-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

body.agency-pad-ui .biz-cat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    text-align: center;
    font-weight: 500;
}

/* ── Logo upload ── */

body.agency-pad-ui .biz-logo-upload {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

body.agency-pad-ui .biz-logo-preview {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.25);
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
}

body.agency-pad-ui .biz-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.agency-pad-ui .biz-logo-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.28);
    margin-top: 4px;
}

/* ── Status ── */

body.agency-pad-ui .biz-status {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    min-height: 20px;
    margin: 6px 0;
    text-align: center;
    transition: color 0.18s;
}

body.agency-pad-ui .biz-status.error {
    color: #ff453a;
}

body.agency-pad-ui .biz-status.success {
    color: #30d158;
}

/* ── Sheet actions ── */

body.agency-pad-ui .biz-sheet-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

body.agency-pad-ui .biz-sheet-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.12s;
}

body.agency-pad-ui .biz-sheet-btn:active {
    transform: scale(0.97);
}

body.agency-pad-ui .biz-sheet-btn.primary {
    background: #30d158;
    color: #000;
}

body.agency-pad-ui .biz-sheet-btn.secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
}

/* ── Org type selector ── */

body.agency-pad-ui .biz-org-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

body.agency-pad-ui .biz-org-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px 10px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

body.agency-pad-ui .biz-org-type-btn:hover {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
}

body.agency-pad-ui .biz-org-type-btn i {
    font-size: 20px;
    margin-bottom: 2px;
}

body.agency-pad-ui .biz-org-type-btn small {
    font-size: 11px;
    opacity: 0.6;
    font-weight: 400;
}

/* ── Gang Missions ── */

body.agency-pad-ui .biz-mission-active,
body.agency-pad-ui .biz-mission-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

body.agency-pad-ui .biz-mission-active + .biz-mission-active,
body.agency-pad-ui .biz-mission-row + .biz-mission-row {
    border-top: 1px solid rgba(255,255,255,0.04);
}

body.agency-pad-ui .biz-mission-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

body.agency-pad-ui .biz-mission-info {
    flex: 1;
    min-width: 0;
}

body.agency-pad-ui .biz-mission-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

body.agency-pad-ui .biz-mission-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    margin-top: 2px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.agency-pad-ui .biz-mission-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.32);
}

body.agency-pad-ui .biz-mission-meta i {
    margin-right: 3px;
}

body.agency-pad-ui .biz-mission-progress-bar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    margin-top: 6px;
    overflow: hidden;
}

body.agency-pad-ui .biz-mission-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

body.agency-pad-ui .biz-mission-timer {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-top: 4px;
}

body.agency-pad-ui .biz-mission-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

body.agency-pad-ui .biz-mission-status.running {
    background: rgba(255,69,58,0.15);
    color: #ff453a;
}

body.agency-pad-ui .biz-mission-status.cooldown {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
}

/* ── Business Charts ── */
.biz-chart-section {
    margin-top: 12px;
}

.biz-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.biz-chart-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.34);
}

.biz-chart-wrap {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px 12px 10px;
    position: relative;
}

.biz-chart-canvas {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.biz-chart-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.biz-chart-range-btn,
.biz-chart-type-btn,
.biz-chart-metric-btn {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.42);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.biz-chart-range-btn:hover,
.biz-chart-type-btn:hover,
.biz-chart-metric-btn:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}

.biz-chart-range-btn.active {
    background: rgba(48,209,88,0.14);
    border-color: rgba(48,209,88,0.3);
    color: #30d158;
}

.biz-chart-type-btn.active {
    background: rgba(10,132,255,0.14);
    border-color: rgba(10,132,255,0.3);
    color: #0a84ff;
}

.biz-chart-metric-btn.active {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.biz-chart-separator {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.08);
    margin: 0 2px;
}

.biz-chart-legend {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.biz-chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}

.biz-chart-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: rgba(255,255,255,0.2);
    font-size: 13px;
    font-style: italic;
}

/* ─── BUSINESS APP: Complete Light Mode + Liquid Glass ─── */

#phone-frame:not(.dark-mode) .biz-shell {
    background:
        radial-gradient(circle at 20% 6%, rgba(48, 209, 88, 0.11), transparent 30%),
        radial-gradient(circle at 82% 88%, rgba(90, 200, 250, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fcf9 0%, #eef3f0 100%);
    color: #151b25;
}

/* Hero text */
#phone-frame:not(.dark-mode) .biz-hero p {
    color: rgba(21, 27, 37, 0.45);
}

#phone-frame:not(.dark-mode) .biz-detail-info p {
    color: rgba(21, 27, 37, 0.45);
}

/* Section titles */
#phone-frame:not(.dark-mode) .biz-section-title {
    color: rgba(21, 27, 37, 0.38);
}

/* Glass buttons / pills / chips */
#phone-frame:not(.dark-mode) .biz-round {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,252,248,0.88)),
        rgba(255,255,255,0.82);
    border-color: rgba(146,178,156,0.18);
    color: #151b25;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.58),
        0 8px 20px rgba(38,72,48,0.06);
}

#phone-frame:not(.dark-mode) .biz-pill {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,252,248,0.88)),
        rgba(255,255,255,0.82);
    border-color: rgba(146,178,156,0.18);
    color: #151b25;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.58),
        0 4px 12px rgba(38,72,48,0.05);
}

#phone-frame:not(.dark-mode) .biz-stat-chip {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246,252,248,0.86)),
        rgba(255,255,255,0.78);
    border-color: rgba(146,178,156,0.14);
    color: rgba(21, 27, 37, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 4px 12px rgba(38,72,48,0.04);
}

/* Glass cards (elevated) */
#phone-frame:not(.dark-mode) .biz-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.88), rgba(250,253,251,0.82));
    border-color: rgba(146,178,156,0.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 4px 16px rgba(38,72,48,0.05);
}

/* Glass rows (hub list) */
#phone-frame:not(.dark-mode) .biz-row {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.86), rgba(250,253,251,0.8));
    border-color: rgba(146,178,156,0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        0 2px 10px rgba(38,72,48,0.04);
}

#phone-frame:not(.dark-mode) .biz-row:hover {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,253,251,0.9));
    border-color: rgba(146,178,156,0.2);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.55),
        0 6px 20px rgba(38,72,48,0.07);
}

#phone-frame:not(.dark-mode) .biz-row-badge {
    background: rgba(0,0,0,0.05);
    color: rgba(21,27,37,0.55);
}

/* Glass finance card */
#phone-frame:not(.dark-mode) .biz-finance-card {
    background:
        linear-gradient(135deg, rgba(48,209,88,0.08), rgba(48,209,88,0.02)),
        linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,253,251,0.84));
    border-color: rgba(48,209,88,0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.45),
        0 4px 16px rgba(38,72,48,0.05);
}

#phone-frame:not(.dark-mode) .biz-finance-label {
    color: rgba(21,27,37,0.42);
}

#phone-frame:not(.dark-mode) .biz-finance-stat-label {
    color: rgba(21,27,37,0.38);
}

/* Card row text */
#phone-frame:not(.dark-mode) .biz-card-row-left {
    color: rgba(21,27,37,0.75);
}

#phone-frame:not(.dark-mode) .biz-card-row-left i {
    color: rgba(21,27,37,0.4);
}

#phone-frame:not(.dark-mode) .biz-card-row-right {
    color: rgba(21,27,37,0.22);
}

#phone-frame:not(.dark-mode) .biz-card-row-right .value {
    color: rgba(21,27,37,0.5);
}

#phone-frame:not(.dark-mode) .biz-card-row:hover {
    background: rgba(0,0,0,0.03);
}

#phone-frame:not(.dark-mode) .biz-card-row + .biz-card-row {
    border-top-color: rgba(0,0,0,0.05);
}

/* Tabs */
#phone-frame:not(.dark-mode) .biz-tabs {
    border-bottom-color: rgba(0,0,0,0.06);
}

#phone-frame:not(.dark-mode) .biz-tab {
    color: rgba(21,27,37,0.38);
}

#phone-frame:not(.dark-mode) .biz-tab:hover {
    color: rgba(21,27,37,0.6);
}

#phone-frame:not(.dark-mode) .biz-tab.active {
    color: #151b25;
    border-bottom-color: #30d158;
}

/* Overlay + sheet */
#phone-frame:not(.dark-mode) .biz-overlay {
    background: rgba(0,0,0,0.25);
}

#phone-frame:not(.dark-mode) .biz-sheet {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.97), rgba(246,249,252,0.95));
    border-color: rgba(146,156,178,0.14);
    box-shadow:
        0 -12px 40px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

#phone-frame:not(.dark-mode) .biz-sheet-copy {
    color: rgba(21,27,37,0.48);
}

#phone-frame:not(.dark-mode) .biz-sheet-close {
    background: rgba(0,0,0,0.06);
    color: rgba(21,27,37,0.5);
}

/* Form fields */
#phone-frame:not(.dark-mode) .biz-field label {
    color: rgba(21,27,37,0.4);
}

/* Category grid */
#phone-frame:not(.dark-mode) .biz-cat-option {
    border-color: rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.6);
}

#phone-frame:not(.dark-mode) .biz-cat-option:hover {
    border-color: rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.8);
}

#phone-frame:not(.dark-mode) .biz-cat-option.active {
    border-color: rgba(48,209,88,0.5);
    background: rgba(48,209,88,0.06);
}

#phone-frame:not(.dark-mode) .biz-cat-label {
    color: rgba(21,27,37,0.55);
}

/* Logo */
#phone-frame:not(.dark-mode) .biz-logo-preview {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.08);
    color: rgba(21,27,37,0.3);
}

#phone-frame:not(.dark-mode) .biz-logo-hint {
    color: rgba(21,27,37,0.3);
}

/* Status */
#phone-frame:not(.dark-mode) .biz-status {
    color: rgba(21,27,37,0.42);
}

/* Primary button: green glass */
#phone-frame:not(.dark-mode) .biz-sheet-btn.primary {
    background: linear-gradient(135deg, rgba(48,209,88,0.96), rgba(52,199,89,0.92));
    border-color: rgba(48,209,88,0.32);
    color: #fff;
    box-shadow:
        0 12px 24px rgba(48,209,88,0.18),
        inset 0 1px 0 rgba(255,255,255,0.22);
}

/* Employee section */
#phone-frame:not(.dark-mode) .biz-emp-role {
    color: rgba(21,27,37,0.4);
}

#phone-frame:not(.dark-mode) .biz-emp-avatar {
    background: rgba(0,0,0,0.06);
    color: rgba(21,27,37,0.45);
}

#phone-frame:not(.dark-mode) .biz-emp-btn {
    background: rgba(0,0,0,0.04);
    color: rgba(21,27,37,0.4);
}

#phone-frame:not(.dark-mode) .biz-emp-btn:hover {
    background: rgba(0,0,0,0.08);
    color: #151b25;
}

#phone-frame:not(.dark-mode) .biz-emp-row + .biz-emp-row {
    border-top-color: rgba(0,0,0,0.05);
}

/* Product section */
#phone-frame:not(.dark-mode) .biz-product-price {
    color: rgba(21,27,37,0.42);
}

#phone-frame:not(.dark-mode) .biz-product-stock {
    color: rgba(21,27,37,0.38);
}

#phone-frame:not(.dark-mode) .biz-product-icon {
    background: rgba(0,0,0,0.04);
}

#phone-frame:not(.dark-mode) .biz-product-row + .biz-product-row {
    border-top-color: rgba(0,0,0,0.05);
}

/* Row meta */
#phone-frame:not(.dark-mode) .biz-row-meta {
    color: rgba(21,27,37,0.4);
}

#phone-frame:not(.dark-mode) .biz-row-side {
    color: rgba(21,27,37,0.22);
}

/* Mission elements */
#phone-frame:not(.dark-mode) .biz-mission-name {
    color: #151b25;
}

#phone-frame:not(.dark-mode) .biz-mission-desc {
    color: rgba(21,27,37,0.42);
}

#phone-frame:not(.dark-mode) .biz-mission-meta {
    color: rgba(21,27,37,0.35);
}

#phone-frame:not(.dark-mode) .biz-mission-timer {
    color: rgba(21,27,37,0.38);
}

#phone-frame:not(.dark-mode) .biz-mission-progress-bar {
    background: rgba(0,0,0,0.06);
}

/* About description text */
#phone-frame:not(.dark-mode) .biz-about-text {
    color: rgba(21,27,37,0.58);
}

/* Empty state */
#phone-frame:not(.dark-mode) .biz-empty {
    color: rgba(21,27,37,0.25);
}

/* Chart light mode */
#phone-frame:not(.dark-mode) .biz-chart-title {
    color: rgba(21,27,37,0.38);
}

#phone-frame:not(.dark-mode) .biz-chart-wrap {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.88), rgba(250,253,251,0.82));
    border-color: rgba(146,178,156,0.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.5),
        0 4px 16px rgba(38,72,48,0.05);
}

#phone-frame:not(.dark-mode) .biz-chart-range-btn,
#phone-frame:not(.dark-mode) .biz-chart-type-btn,
#phone-frame:not(.dark-mode) .biz-chart-metric-btn {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
    color: rgba(21,27,37,0.42);
}

#phone-frame:not(.dark-mode) .biz-chart-range-btn:hover,
#phone-frame:not(.dark-mode) .biz-chart-type-btn:hover,
#phone-frame:not(.dark-mode) .biz-chart-metric-btn:hover {
    background: rgba(0,0,0,0.06);
    color: rgba(21,27,37,0.65);
}

#phone-frame:not(.dark-mode) .biz-chart-range-btn.active {
    background: rgba(48,209,88,0.1);
    border-color: rgba(48,209,88,0.25);
    color: #1a8a38;
}

#phone-frame:not(.dark-mode) .biz-chart-type-btn.active {
    background: rgba(10,132,255,0.08);
    border-color: rgba(10,132,255,0.22);
    color: #0a6fcc;
}

#phone-frame:not(.dark-mode) .biz-chart-metric-btn.active {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
    color: #151b25;
}

#phone-frame:not(.dark-mode) .biz-chart-separator {
    background: rgba(0,0,0,0.08);
}

#phone-frame:not(.dark-mode) .biz-chart-legend {
    color: rgba(21,27,37,0.42);
}

#phone-frame:not(.dark-mode) .biz-chart-no-data {
    color: rgba(21,27,37,0.22);
}

/* ═══════════════════════════════════════════════════════════════
   YELLOW PAGES (Gelbe Seiten) — Services App
   ═══════════════════════════════════════════════════════════════ */

.yp-app {
    background: linear-gradient(160deg, #ffd60a 0%, #ff9500 100%) !important;
}

.yp-header {
    background: rgba(255,214,10,0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

.yp-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yp-header-icon {
    font-size: 18px;
    color: #1c1c1e;
}

.yp-header .app-title {
    color: #1c1c1e !important;
    font-weight: 800 !important;
    font-size: 18px !important;
}

.yp-content {
    background: #f5f5f7 !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    overflow-y: auto !important;
}

/* Dark mode */
.dark-mode .yp-content {
    background: #1c1c1e !important;
}

.dark-mode .yp-app {
    background: linear-gradient(160deg, #3a3000 0%, #2a1800 100%) !important;
}

.dark-mode .yp-header {
    background: rgba(58,48,0,0.85) !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
}

.dark-mode .yp-header-icon,
.dark-mode .yp-header .app-title {
    color: #ffd60a !important;
}

/* Search */
.yp-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.yp-search-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: rgba(0,0,0,0.3);
    pointer-events: none;
}

.dark-mode .yp-search-icon {
    color: rgba(255,255,255,0.3);
}

.yp-search-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    font-size: 14px;
    color: #1c1c1e;
    outline: none;
    transition: border-color 0.2s;
}

.yp-search-input:focus {
    border-color: #ffd60a;
    box-shadow: 0 0 0 3px rgba(255,214,10,0.2);
}

.dark-mode .yp-search-input {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}

.dark-mode .yp-search-input:focus {
    border-color: #ffd60a;
    box-shadow: 0 0 0 3px rgba(255,214,10,0.15);
}

/* Categories */
.yp-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.yp-categories::-webkit-scrollbar { display: none; }

.yp-cat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #6e6e73;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.yp-cat-btn.active {
    font-weight: 700;
}

.dark-mode .yp-cat-btn {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* Listing cards */
.yp-listings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yp-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.yp-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.dark-mode .yp-card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}

.yp-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.yp-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.dark-mode .yp-card-avatar {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}

.yp-card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
}

.yp-card-info {
    flex: 1;
    min-width: 0;
}

.yp-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1c1c1e;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark-mode .yp-card-title {
    color: #fff;
}

.yp-card-biz {
    font-size: 12px;
    color: #8e8e93;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yp-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #30d158;
    white-space: nowrap;
    flex-shrink: 0;
}

.yp-card-desc {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark-mode .yp-card-desc {
    color: rgba(255,255,255,0.5);
}

.yp-card-contact {
    font-size: 12px;
    color: #007aff;
    margin-bottom: 8px;
}

.yp-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yp-card-cat {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid;
}

/* Empty state */
.yp-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8e8e93;
}

.yp-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.3;
}

.dark-mode .yp-empty {
    color: rgba(255,255,255,0.3);
}

/* Loading */
.yp-loading {
    text-align: center;
    padding: 30px;
    color: #8e8e93;
    font-size: 14px;
}

.dark-mode .yp-loading {
    color: rgba(255,255,255,0.4);
}

/* Emergency section */
.yp-section-divider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0,0,0,0.03);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #6e6e73;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.2s;
}

.yp-section-divider:hover {
    background: rgba(0,0,0,0.06);
}

.dark-mode .yp-section-divider {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
}

.dark-mode .yp-section-divider:hover {
    background: rgba(255,255,255,0.08);
}

.yp-chevron {
    font-size: 12px;
    transition: transform 0.3s;
}

.yp-emergency-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yp-em-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
}

.dark-mode .yp-em-card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}

.yp-em-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid;
}

.yp-em-info {
    flex: 1;
    min-width: 0;
}

.yp-em-name {
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 1px;
}

.dark-mode .yp-em-name {
    color: #fff;
}

.yp-em-desc {
    font-size: 12px;
    color: #8e8e93;
}

.yp-em-call {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.yp-em-call:hover {
    transform: scale(1.1);
}

/* Business YP items */
.biz-yp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    background: rgba(0,0,0,0.02);
    margin-bottom: 8px;
}

.dark-mode .biz-yp-item {
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

/* ═══════════════════════════════════════════════════════════════
   DARKNET TABS & SERVICES
   ═══════════════════════════════════════════════════════════════ */

.dn-tabs {
    display: flex;
    background: #000;
    border-bottom: 1px solid rgba(0,255,0,0.15);
    font-family: monospace;
}

.dn-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: none;
    background: transparent;
    color: rgba(0,255,0,0.4);
    font-size: 12px;
    font-weight: 600;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dn-tab.active {
    color: #00ff00;
    border-bottom-color: #00ff00;
    background: rgba(0,255,0,0.05);
}

.dn-tab:hover:not(.active) {
    color: rgba(0,255,0,0.7);
    background: rgba(0,255,0,0.03);
}

.dn-tab-content {
    overflow-y: auto;
}

/* Darknet service cards */
.dn-svc-card {
    background: rgba(0,255,0,0.04);
    border: 1px solid rgba(0,255,0,0.12);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    font-family: monospace;
}

.dn-svc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.dn-svc-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    border: 1px solid;
}

.dn-svc-info {
    flex: 1;
    min-width: 0;
}

.dn-svc-title {
    font-size: 14px;
    font-weight: 700;
    color: #00ff00;
    margin-bottom: 2px;
}

.dn-svc-org {
    font-size: 11px;
    color: rgba(0,255,0,0.4);
}

.dn-svc-price {
    font-size: 13px;
    font-weight: 700;
    color: #f7931a;
    white-space: nowrap;
    flex-shrink: 0;
}

.dn-svc-desc {
    font-size: 12px;
    color: rgba(0,255,0,0.5);
    line-height: 1.4;
    margin-bottom: 8px;
}

.dn-svc-contact {
    font-size: 11px;
    color: rgba(0,255,0,0.4);
}
