/* Shared portal layout; copied independently to the watch host. */
.oww-shared-page { --touch-size:44px; }
.oww-shared-page :is(h1,h2,h3,p,li,dd,strong) { overflow-wrap:anywhere; letter-spacing:0; }
.oww-shared-page :is(button,a,input,textarea,select):focus-visible { outline:2px solid var(--accent-primary); outline-offset:3px; }
.oww-shared-page .logo-text { font-size:21px; }
.oww-shared-page .resource-notice-icon { display:grid;place-items:center;width:44px;height:44px;margin:0 auto 12px;background:var(--bg-animation-1);color:var(--accent-primary);border-radius:8px;font-size:21px; }
.oww-shared-page #consent .agreement-modal-header { text-align:center; }
.oww-shared-page .resource-notice-links { display:flex;flex-wrap:wrap;gap:8px;margin:18px 0; }
.oww-shared-page .resource-notice-links a { min-height:44px; }
.oww-shared-page #consent .agreement-item { display:flex;align-items:flex-start;gap:10px;line-height:1.7;padding:12px;background:var(--bg-input);border-radius:8px; }
.oww-shared-page #consent .agreement-item input { width:20px;height:20px;flex:none;margin:3px 0 0; }
.oww-shared-page dialog { scrollbar-width:thin; }
.oww-shared-page .store-shell .detail-desc { overflow-wrap:anywhere; }
.oww-shared-page .acc-topic-column { display:grid;align-content:start;gap:20px;min-width:0; }
.oww-shared-page .acc-feat-icon-box:has(.desktop-link-icon) { border-radius:12px;overflow:hidden; }
.oww-shared-page .desktop-link-icon { border-radius:12px;background:#fff; }
@media (max-width:1100px) {
  .oww-shared-page :is(.header-search-toggle,.mobile-menu-btn) { display:grid;place-items:center; }
  .oww-shared-page .header .nav:not(.portal-open) { display:none!important; }
  .oww-shared-page .header-search:not(.portal-open) { display:none!important; }
  .oww-shared-page .header .nav.portal-open { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:absolute;top:100%;left:0;right:0;transform:none;opacity:1;visibility:visible;pointer-events:auto;max-height:calc(100dvh - 76px);overscroll-behavior:contain;border-radius:0 0 8px 8px; }
  .oww-shared-page .header-search.portal-open { display:block;position:absolute;top:100%;left:12px;right:12px;transform:none;opacity:1;visibility:visible;pointer-events:auto;padding:10px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:8px;z-index:6; }
  .oww-shared-page .header-search-form { width:100%; }
  .oww-shared-page .header .header-content { position:relative;min-height:64px; }
}
@media (max-width:760px) {
  .oww-shared-page { --page-padding:16px; }
  .oww-shared-page .header-content { padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));gap:6px; }
  .oww-shared-page .logo { min-width:0;gap:6px; }
  .oww-shared-page .logo-text { font-size:14px;white-space:normal;line-height:1.35; }
  .oww-shared-page .logo-icon { width:30px;height:30px;flex:0 0 30px; }
  .oww-shared-page :is(.header-search-toggle,.mobile-menu-btn) { width:40px;height:44px;min-height:44px; }
  .oww-shared-page .user-area { flex:none; }
  .oww-shared-page .user-info { padding:0; }
  .oww-shared-page .user-name { display:none; }
  .oww-shared-page .btn-login { padding:8px;min-height:44px;gap:5px;font-size:11px; }
  .oww-shared-page .header .nav.portal-open { grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px; }
  .oww-shared-page .header .nav a { min-height:64px; }
  .oww-shared-page .header-more { display:block;grid-column:1/-1; }
  .oww-shared-page .header-more-trigger { width:100%;min-height:44px; }
  .oww-shared-page .header-more-menu { position:static;display:none;transform:none;width:100%;box-shadow:none;margin-top:8px; }
  .oww-shared-page .header-more-menu.show { display:grid;grid-template-columns:1fr 1fr; }
  .oww-shared-page .header-more-menu :is(a,button) { min-height:44px;flex-direction:row;font-size:12px; }
  .oww-shared-page .store-shell main { padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));min-width:0; }
  .oww-shared-page .store-shell .document-page { padding-top:24px; }
  .oww-shared-page .store-shell h1 { font-size:30px;line-height:1.35; }
  .oww-shared-page .store-shell h2 { font-size:20px;line-height:1.5; }
  .oww-shared-page .store-shell :is(.card,.connection,.contribute) { padding:18px;border-radius:8px; }
  .oww-shared-page .store-shell :is(p,li) { font-size:14px;line-height:1.8; }
  .oww-shared-page .store-shell :is(button,.portal-button,a.primary,.agreement-btn) { min-height:44px;line-height:1.5;white-space:normal;font-size:14px;padding:10px 14px;border-radius:8px; }
  .oww-shared-page .store-shell :is(input:not([type=checkbox]):not([type=hidden]),textarea,select) { font-size:16px;min-width:0;max-width:100%; }
  .oww-shared-page .store-shell .actions { gap:8px; }
  .oww-shared-page .store-home-hero>.actions { display:flex;flex-wrap:wrap;gap:8px; }
  .oww-shared-page .store-home-hero>.actions> :is(button,a) { font-size:14px!important;flex:1 1 140px;white-space:normal;min-height:48px;padding:10px 12px!important; }
  .oww-shared-page .store-home-hero>.actions> :last-child { flex-basis:100%; }
  .oww-shared-page .store-shell .section-heading { flex-wrap:wrap;gap:12px;align-items:center; }
  .oww-shared-page .store-shell .section-heading>a { font-size:13px;white-space:normal; }
  .oww-shared-page .store-shell #filters { padding:16px;border-radius:8px; }
  .oww-shared-page .store-shell .filter-tabs { gap:6px; }
  .oww-shared-page .store-shell .filter-tabs button { font-size:12px;min-height:40px;padding:8px 11px; }
  .oww-shared-page .store-shell .search { width:100%;min-width:0;gap:8px; }
  .oww-shared-page .store-shell .search input { width:0;flex:1; }
  .oww-shared-page .store-shell #apps { gap:12px; }
  .oww-shared-page .store-shell .apk-card { border-radius:8px; }
  .oww-shared-page .store-shell .apk-card-content { gap:8px;padding:12px; }
  .oww-shared-page .store-shell .apk-card-description { font-size:12px;line-height:1.65;max-height:none; }
  .oww-shared-page .store-shell #apps[data-view=list] .apk-card-media { width:76px;flex:0 0 76px; }
  .oww-shared-page .store-shell #apps[data-view=list] .app-icon { width:48px;height:48px; }
  .oww-shared-page .store-shell .connection { display:grid;grid-template-columns:minmax(0,1fr);gap:14px; }
  .oww-shared-page .store-shell .watch-devices { grid-template-columns:minmax(0,1fr); }
  .oww-shared-page .store-shell .watch-device { min-width:0;width:100%;padding:12px;text-align:left;border-radius:8px; }
  .oww-shared-page .store-shell .watch-device-copy { min-width:0; }
  .oww-shared-page .store-shell .watch-device-copy strong { font-size:14px; }
  .oww-shared-page .store-shell .watch-device .connection-state { white-space:nowrap;flex:none; }
  .oww-shared-page .store-shell .connected-watch-bar { width:calc(100% - 24px);border-radius:8px; }
  .oww-shared-page .store-shell .connected-watch-bar>div { gap:6px; }
  .oww-shared-page .store-shell .connected-watch-bar small { flex-basis:100%;font-size:11px; }
  .oww-shared-page .store-shell .connected-watch-bar button { min-height:44px;font-size:12px;padding:8px; }
  .oww-shared-page .store-shell :is(.submit-layout,.doc-grid) { display:grid;grid-template-columns:minmax(0,1fr);gap:18px; }
  .oww-shared-page .store-shell .submit-layout-entry { display:block; }
  .oww-shared-page .store-shell .submit-steps { flex-wrap:wrap;gap:8px; }
  .oww-shared-page .store-shell .submit-steps span { flex:1 1 130px;line-height:1.6; }
  .oww-shared-page .store-shell .submission-actions>* { flex:1 1 130px; }
  .oww-shared-page .store-shell :is(.package-metadata,.detail-meta) { grid-template-columns:minmax(0,1fr);gap:4px; }
  .oww-shared-page .store-shell :is(.package-metadata,.detail-meta) dd { margin:0 0 12px;min-width:0;overflow-wrap:anywhere; }
  .oww-shared-page .store-shell .rights-confirm { display:flex;align-items:flex-start;gap:10px;padding:12px; }
  .oww-shared-page .store-shell .rights-confirm input { flex:none;width:20px;height:20px;margin:3px 0 0; }
  .oww-shared-page .store-shell .screenshots-upload .upload-pick-button { margin-left:0;min-height:44px; }
  .oww-shared-page .store-shell .screenshot-controls button { width:36px;min-height:36px;padding:0; }
  .oww-shared-page .portal-select { display:block;width:100%;min-width:0; }
  .oww-shared-page .portal-select-menu { min-width:100%;width:100%;max-width:100%; }
  .oww-shared-page .portal-select-option { white-space:normal;min-height:44px; }
  .oww-shared-page .store-shell dialog { width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:20px;border-radius:8px; }
  .oww-shared-page .store-shell .agreement-modal { padding:0; }
  .oww-shared-page .agreement-modal-header,.oww-shared-page .agreement-modal-body { padding:20px; }
  .oww-shared-page .agreement-modal-header h2 { font-size:21px; }
  .oww-shared-page .agreement-modal-footer { padding:16px 20px;display:grid;grid-template-columns:1fr 1fr;gap:8px; }
  .oww-shared-page .store-shell #jobs { bottom:max(12px,env(safe-area-inset-bottom));padding:16px;border-radius:8px;max-height:48dvh;overscroll-behavior:contain; }
  .oww-shared-page .store-shell #jobs .job-status { font-size:14px; }
  .oww-shared-page .footer { display:block;height:auto;min-height:0;max-height:none;padding-bottom:max(24px,env(safe-area-inset-bottom)); }
  .oww-shared-page .footer-content { flex:none;height:auto;align-content:start;gap:24px 16px;grid-template-columns:1fr 1fr; }
  .oww-shared-page .footer-brand { grid-column:1/-1; }
  .oww-shared-page .footer-links a { display:flex;align-items:center;min-height:40px; }
  .oww-shared-page .footer-bottom { flex-wrap:wrap;gap:12px; }
  .oww-shared-page .footer-bottom p { width:100%;line-height:1.8; }
  .oww-shared-page .portal-themes button { min-height:44px; }
  .oww-shared-page .portal-top { width:44px;height:44px;padding:0;bottom:max(12px,env(safe-area-inset-bottom)); }
  .oww-shared-page :is(.verification-modal,.vip-required-modal,.confirm-modal) { max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow-y:auto; }
}
@media (max-width:359px) {
  .oww-shared-page .header-content { gap:4px;padding-left:8px;padding-right:8px; }
  .oww-shared-page .logo-text { font-size:12px; }
  .oww-shared-page .logo-icon { width:26px;height:26px;flex-basis:26px; }
  .oww-shared-page .store-shell main { padding-left:12px;padding-right:12px; }
  .oww-shared-page .store-shell .agreement-modal-footer { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) { .oww-shared-page *, .oww-shared-page *::before, .oww-shared-page *::after { scroll-behavior:auto!important;animation:none!important;transition:none!important; } }
