/* Shared controls, followed by the layout used on phones and small tablets. */
.owner-login{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 15px;border:1px solid #b8c6af;border-radius:8px;font-size:13px;background:#edf1e7;white-space:nowrap}
.owner-login:hover{background:#e2e9da}
.owner-login svg,.customer-mobile-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.customer-mobile-nav,.repair-mobile-list,.mobile-nav-label{display:none}
#admin-nav .desktop-nav-label{font-size:12px;width:auto}
#admin-nav .mobile-nav-label{display:none}
.auth-card .inline-note{margin-top:22px}
.editor-open{overflow:hidden}
.editor-dialog[open] #editor-content{display:flex;flex-direction:column;max-height:88vh;max-height:88dvh}
.editor-header{flex-shrink:0}
.editor-body{overflow-y:auto;overscroll-behavior:contain;min-height:0}
#editor-content>.editor-footer{flex-shrink:0;margin:0;padding:16px 28px;border-top:1px solid var(--line);background:#fff}
.sidebar .brand span{min-width:0}
.sidebar .brand b{overflow-wrap:anywhere}
.repair-flow{margin-top:26px;padding-bottom:26px;border-bottom:1px solid var(--line)}
.repair-flow>h3,.flow-preview>h3{font-size:15px;margin-bottom:16px}
.repair-progress{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.progress-step{display:flex;align-items:center;gap:10px;padding:13px 12px;border:1px solid #e5e9e0;border-radius:9px;background:#fafbf8;min-width:0}
.progress-marker{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#e9ede4;color:#a0aa96;font-size:10px;flex-shrink:0}
.progress-copy{display:grid;gap:6px;min-width:0}
.progress-copy strong{font-size:12px;font-weight:500;color:#94a08a;line-height:1.5}
.progress-copy small{font-size:10px;color:#a1aa97}
.progress-step.complete{background:#f0f5ec;border-color:#dce7d3}
.progress-step.complete .progress-marker{background:#dce9d2;color:#42713e;font-size:15px}
.progress-step.complete strong,.progress-step.complete small{color:#5d7b4d}
.progress-step.current{background:#f4f7ef;border-color:#729365;box-shadow:inset 0 0 0 1px #72936533}
.progress-step.current .progress-marker{background:var(--green);color:#fff}
.progress-step.current strong,.progress-step.current small{color:var(--green)}
.repair-progress.cancelled{display:block;background:#f3f1eb;border:1px solid #e6e1d4;border-radius:9px;padding:16px}
.repair-progress.cancelled p{font-size:14px;color:#82765d}
.repair-progress.cancelled small{font-size:12px;color:#9a8f7b;line-height:1.9;display:block;margin-top:5px}
.flow-preview{min-width:0;padding:18px;background:#fafbf8;border:1px solid var(--line);border-radius:9px}
.flow-preview>h3{margin-bottom:7px;font-size:14px}
.flow-preview>p{font-size:11px;color:#89987b;line-height:1.9;margin-bottom:16px}
.flow-preview .repair-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.flow-preview .progress-step{padding:11px 10px;gap:9px}
.overview-search{display:flex;gap:10px;margin:0 0 22px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:11px}
.overview-search input{min-width:0;font-size:14px}
.overview-search .button{padding-left:22px;padding-right:22px}
.stats-panel>summary{cursor:pointer;list-style:none;min-height:44px;margin-bottom:0}
.stats-panel>summary::-webkit-details-marker,.flow-preview>summary::-webkit-details-marker,.optional-fields>summary::-webkit-details-marker{display:none}
.stats-panel[open]>summary{margin-bottom:20px}
.stats-panel summary>span:after{content:'⌄';margin-left:10px}
.stats-panel[open] summary>span:after{content:'⌃'}
.quick-filters{display:flex;gap:8px;flex-wrap:wrap;padding:0 23px 20px}
.quick-filters button{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fafbf7;color:#738765;font-size:12px;min-height:40px}
.quick-filters button>span{font-size:10px;color:#899c7b}
.quick-filters button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}
.quick-filters button[aria-pressed=true]>span{color:#e2eadb}
.settings-save-bar{margin-top:15px}
.contact-editor-grid{align-items:start}
.contact-editor{min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fafbf7}
.contact-editor legend{padding:0 8px;font-size:15px;font-weight:600}
.contact-editor-rows{display:grid;gap:14px}
.contact-editor-row{min-width:0;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}
.contact-row-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.contact-row-heading strong{font-size:13px}
.contact-row-heading button{min-height:36px;min-width:44px;font-size:13px}
.contact-row-fields{display:grid;gap:14px}
.contact-row-fields label{min-width:0}
.contact-row-fields input{font-size:16px}
.contact-add-button{margin-top:14px;min-height:44px;gap:8px;font-size:13px;white-space:normal}
.contact-add-button:disabled{cursor:default}
.customer-page .visit-section{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(30px,6vw,80px);align-items:start}
.visit-section>div,.visit-section>.taobao-card{min-width:0}
.store-details{line-height:1.8}
.store-details>div{grid-template-columns:5em minmax(0,1fr);align-items:start;gap:16px}
.store-details dt,.store-details dd{line-height:1.8;overflow-wrap:anywhere}
.store-contact-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.store-contact-item{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:10px;min-width:0}
.store-contact-label{font-size:.9em;color:var(--muted);overflow-wrap:anywhere;max-width:100%}
.store-contact-value{min-width:0;overflow-wrap:anywhere;max-width:100%}
a.store-contact-value{display:inline-block;min-height:44px}
.repair-identity p{font-size:12px;margin-top:7px}
.repair-identity p>span{color:#839675;margin-left:8px}
.repair-registration>summary{font-size:11px;color:#809273;cursor:pointer;margin-top:9px;line-height:2;min-height:32px}
.repair-registration[open]>small{display:block}
.progress-summary{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid #dbe8d2;border-radius:8px;background:#f0f6eb;padding:12px 14px;font-size:13px;color:#5a7d45}
.progress-summary small{color:#899c7b;font-size:11px}
.flow-preview>summary,.optional-fields>summary{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:13px;font-weight:500;cursor:pointer;list-style:none;min-height:26px}
.flow-preview>summary:after,.optional-fields>summary:after{content:'＋';font-weight:400;color:#809373}
.flow-preview[open]>summary:after,.optional-fields[open]>summary:after{content:'−'}
.flow-preview[open]>summary{margin-bottom:16px}
.optional-fields{border:1px solid var(--line);border-radius:9px;padding:15px 18px;background:#fafbf8}
.optional-fields summary>span{font-size:11px;font-weight:400;color:#96a38a;margin-right:auto}
.optional-fields[open]>label{margin-top:16px}
.next-status-button{border:1px solid #b7cba9;color:#4b7039;background:#eef5e8;min-height:42px;padding:10px 13px;border-radius:8px;font-size:12px;display:flex;justify-content:space-between;gap:14px;align-items:center;width:100%;margin-top:10px}
.next-status-button:hover{background:#e5efdd}
.activity-card.has-cover{grid-template-columns:1fr}
.activity-cover{background:#edf0e7;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.activity-cover img{width:100%;height:auto;display:block}
.admin-activity-cover{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px;margin-bottom:20px}
.activity-image-editor{padding:18px;border:1px solid var(--line);border-radius:11px;background:#fafbf7;min-width:0}
.activity-image-editor>h3{font-size:14px;margin-bottom:14px}
.activity-image-preview{border:1px dashed #c6d3bc;border-radius:9px;overflow:hidden;background:#eef2e8;min-height:130px;display:flex;align-items:center;justify-content:center}
.activity-image-preview img{max-width:100%;max-height:300px;width:auto;height:auto;object-fit:contain;display:block}
#activity-image-empty{text-align:center;padding:28px 15px;color:#94a486}
#activity-image-empty>span{font-size:27px;color:#759264}
#activity-image-empty p{font-size:12px;margin-top:7px}
.activity-image-actions{display:flex;align-items:center;gap:20px;margin-top:14px}
.activity-image-actions .button{font-size:13px;min-height:44px;padding:11px 15px;font-weight:400;cursor:pointer}
.activity-image-actions .link-button{font-size:12px;min-height:44px}
.activity-image-editor .field-hint{margin-top:10px}

@media(max-width:820px){
  :root{scroll-padding-top:86px}
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  input,select,textarea{font-size:16px!important;min-height:48px}
  input[type="checkbox"]{min-height:24px;min-width:24px}
  button,a,input,select,textarea{touch-action:manipulation}
  .button{min-height:48px;font-size:15px;padding:13px 20px}
  .link-button,.text-link{min-height:44px;display:inline-flex;align-items:center;font-size:14px}
  .container{width:calc(100% - 36px)}
  .preview-strip{font-size:10px;height:30px;gap:6px;letter-spacing:0}
  .strip-divider{margin:0 2px}
  .site-header{height:72px;position:sticky;top:0;z-index:20;background:var(--paper);width:100%;padding:0 18px;gap:14px;border-bottom:1px solid #e5e9dfb3}
  .site-header .brand{min-width:0;gap:9px}
  .site-header .brand>span{min-width:0}
  .site-header .brand b{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
  .site-header .brand img{width:35px;height:35px;flex-shrink:0}
  .site-header .brand small{font-size:7px;letter-spacing:.08em}
  .site-header nav{display:none}
  .owner-login{font-size:13px;min-height:44px;flex-shrink:0;padding:0 12px;gap:7px}
  .owner-login svg{width:18px;height:18px}
  .hero{grid-template-columns:1.15fr .85fr;gap:12px;min-height:0;padding-top:20px;padding-bottom:22px}
  .hero-copy{min-width:0;padding:0}
  .hero-copy .eyebrow{font-size:10px;letter-spacing:.02em;line-height:1.7;gap:7px}
  .hero-copy .eyebrow>span{width:12px;flex-shrink:0}
  .hero h1{font-size:clamp(30px,7.9vw,43px);line-height:1.38;margin:13px 0 12px;letter-spacing:.02em}
  .hero-copy>p{font-size:13px;line-height:1.8;color:#75816d;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:340px}
  .hero-actions,.hero-note{display:none}
  .hero-art{height:207px;border-radius:80px 80px 12px 12px;width:100%}
  .watch{transform:translate(-50%,-50%) rotate(-20deg) scale(.47)}
  .art-orbit.orbit-one{width:148px;height:148px}
  .art-orbit.orbit-two{width:190px;height:190px}
  .art-label,.art-caption,.art-plus{display:none}
  .query-wrap{padding:20px;gap:16px;grid-template-columns:1fr;border-radius:14px;scroll-margin-top:86px}
  .query-intro .eyebrow{font-size:9px}
  .query-intro h2{font-size:20px;line-height:1.5;margin:8px 0}
  .query-intro p{font-size:13px;line-height:1.8}
  .query-input{display:grid;grid-template-columns:24px minmax(0,1fr);border:0;padding:0;background:transparent;gap:10px 0}
  .query-input>span{height:48px;display:grid;place-items:center;border:1px solid #d5ddcf;border-right:0;border-radius:8px 0 0 8px;background:#fbfcf9;font-size:24px}
  .query-input input{height:48px;padding:10px 10px 10px 4px;border:1px solid #d5ddcf;border-left:0;border-radius:0 8px 8px 0;background:#fbfcf9;letter-spacing:.02em}
  .query-input .button{grid-column:1/-1;width:100%;min-height:48px;font-size:15px;gap:15px}
  .query-input:focus-within{outline:0}
  .query-input input:focus{box-shadow:inset 0 0 0 1px #527f67}
  .query-hint{display:flex;flex-direction:column;align-items:flex-start;margin-top:10px;gap:2px}
  .query-hint>span{font-size:11px;line-height:1.7;color:#8a9580}
  .query-hint button{font-size:13px;min-height:44px}
  .form-error{font-size:13px}
  .customer-mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:30;border-top:1px solid #dfe5d7;background:#fffffff7;backdrop-filter:blur(16px);padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));box-shadow:0 -3px 20px #1d402708}
  .customer-mobile-nav>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px;font-size:12px;color:#7a8871;border-radius:9px}
  .customer-mobile-nav>a[aria-current]{background:#eef2e8;color:#234c3e;font-weight:600}
  .customer-mobile-nav>a:last-child{color:#315a43}
  .customer-mobile-nav svg{height:22px;width:22px}
  .section{padding-top:44px;padding-bottom:44px}
  .section-heading h2{font-size:24px}
  .section-heading>.subtle,.section-heading>p{font-size:12px;line-height:1.8;max-width:120px}
  .section-heading>p{margin-top:19px}
  .service-grid{grid-template-columns:1fr;gap:14px}
  .service-card{padding:23px;display:grid;grid-template-columns:40px minmax(0,1fr);gap:0 15px}
  .service-symbol{grid-column:1;grid-row:1/3;font-size:32px;padding-top:4px}
  .service-card h3{grid-column:2;font-size:17px;margin:0 20px 10px 0}
  .service-card p{grid-column:2;font-size:14px;line-height:1.9}
  .service-card p br{display:none}
  .service-num{font-size:12px;top:25px;right:20px}
  .service-footer{grid-column:1/-1;font-size:12px;margin-top:20px}
  .activity-grid{grid-template-columns:1fr;gap:18px}
  .activity-card{grid-template-columns:1fr}
  .activity-art{min-height:112px;padding:20px 24px}
  .activity-art>span{font-size:25px;white-space:normal}
  .activity-art>small{font-size:11px;left:24px;bottom:18px}
  .activity-ring{right:0;bottom:-75px;width:215px;height:215px}
  .activity-content{padding:22px}
  .activity-content .tag,.tag{font-size:11px}
  .activity-content time{font-size:12px;margin-top:13px}
  .activity-content h3{font-size:18px;margin-top:13px}
  .activity-content p{font-size:14px;color:#7f8975}
  .customer-page .visit-section{grid-template-columns:minmax(0,1fr);gap:30px}
  .visit-section h2{font-size:25px}
  .visit-description{font-size:14px}
  .store-details{font-size:14px;gap:16px}
  .store-details>div{grid-template-columns:5em minmax(0,1fr);gap:12px}
  .store-details dd{overflow-wrap:anywhere}
  .taobao-card{padding:27px}
  .taobao-card h3{font-size:22px;line-height:1.6;overflow-wrap:anywhere}
  .taobao-top{font-size:13px}
  .taobao-card p{font-size:14px}
  .taobao-card>small{font-size:12px}
  .taobao-placeholder{font-size:13px}
  .site-footer{padding-top:24px;padding-bottom:24px;flex-wrap:wrap;gap:14px}
  .site-footer>a{min-height:44px;display:flex;align-items:center;font-size:13px}
  .site-footer p{font-size:12px;width:100%;order:3}
  .repair-result{scroll-margin-top:86px;padding:23px 20px;margin-top:18px}
  .result-top{flex-direction:column;align-items:flex-start;gap:12px}
  .result-top h2{font-size:23px;line-height:1.6}
  .result-top .eyebrow{font-size:8px}
  .result-top .badge{font-size:13px;padding:8px 11px}
  .order-code{font-size:12px;line-height:1.8}
  .order-code code{font-size:12px;overflow-wrap:anywhere}
  .result-body{grid-template-columns:1fr;gap:28px}
  .repair-flow>h3,.flow-preview>h3{font-size:16px}
  .repair-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .progress-step{padding:13px 10px;gap:9px}
  .progress-copy strong{font-size:13px}
  .progress-copy small{font-size:11px}
  .progress-marker{width:27px;height:27px;font-size:11px}
  .flow-preview{padding:16px 13px}
  .flow-preview>p{font-size:12px}
  .flow-preview .progress-step{padding:10px 8px;gap:7px}
  .flow-preview .progress-marker{width:23px;height:23px;font-size:10px}
  .flow-preview .progress-copy strong{font-size:12px}
  .flow-preview .progress-copy small{font-size:10px}
  .repair-progress.cancelled small{font-size:13px}
  .result-summary .subtle{font-size:13px}
  .result-summary>strong{font-size:29px}
  .result-summary p{font-size:13px;line-height:1.9}
  .result-summary a{font-size:14px;margin-top:12px}
  .timeline-title{font-size:16px}
  .timeline-head strong{font-size:14px}
  .timeline-head time{font-size:12px}
  .timeline p{font-size:14px;line-height:1.9;color:#7c8970}
  .timeline li{padding-left:22px;padding-bottom:25px}
  .badge{font-size:12px;padding:7px 10px}
  .empty-message{font-size:14px}
  .toast{font-size:14px;bottom:calc(84px + env(safe-area-inset-bottom,0px));line-height:1.8;width:max-content}

  /* Store owner workspace: bottom navigation and readable repair cards. */
  .admin-body{padding-bottom:0}
  .auth-screen{padding:82px 18px 35px;display:block;min-height:100svh}
  .back-home{top:18px;left:22px;min-height:44px;display:flex;align-items:center;font-size:14px}
  .auth-card{padding:27px 24px;margin:0 auto;width:min(460px,100%);border-radius:15px}
  .auth-card .brand img{width:43px;height:43px}
  .auth-card .brand small{font-size:11px;letter-spacing:.04em}
  .auth-card h1{font-size:23px;line-height:1.5}
  .auth-card>p{font-size:14px;line-height:1.9}
  .auth-card form label{font-size:14px;margin-bottom:21px}
  .auth-card .button{font-size:16px;min-height:50px}
  .field-hint{font-size:12px;line-height:1.9}
  .auth-footnote{font-size:12px;line-height:1.9}
  .inline-note{font-size:13px;line-height:1.9}
  .admin-shell{display:block;padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
  .sidebar{position:sticky;top:0;z-index:25;width:100%;height:64px;padding:0 16px;flex-direction:row;align-items:center;justify-content:space-between;border-right:0;border-bottom:1px solid var(--line);background:#fff}
  .sidebar>.brand{padding:0;gap:9px;min-width:0;max-width:54%}
  .sidebar .brand img{width:35px;height:35px;flex-shrink:0}
  .sidebar .brand b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.02em}
  .sidebar .brand small{font-size:10px;letter-spacing:0}
  .sidebar-caption,.sidebar-bottom .local-label{display:none}
  .sidebar-bottom{position:static;padding:0;margin:0;display:flex;gap:7px;align-items:center}
  .sidebar-bottom>a,.sidebar-bottom>#profile-entry,.sidebar-bottom>#logout{min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:12px!important;margin:0;padding:0 7px;text-decoration:none;white-space:nowrap}
  .sidebar-bottom>#logout{color:#7e8b73}
  .sidebar nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;top:auto;bottom:0;left:0;right:0;gap:2px;margin:0;padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));background:#fffffff7;border-top:1px solid var(--line);box-shadow:0 -3px 20px #1d402708}
  #admin-nav.has-owner-management{grid-template-columns:repeat(6,minmax(0,1fr))}
  .sidebar nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:54px;padding:6px;font-size:12px;border-radius:8px;text-align:center}
  #admin-nav .desktop-nav-label{display:none}
  #admin-nav .mobile-nav-label{display:block;font-size:12px;width:auto;font-weight:inherit}
  #admin-nav .admin-nav-icon{width:auto;font-size:22px;height:24px;line-height:24px}
  .admin-main{margin-left:0}
  .admin-topbar{display:none}
  .owner-chip{font-size:12px}
  .admin-content{padding:20px 16px 26px}
  .page-heading{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:18px}
  .page-heading h1{font-size:25px;line-height:1.5}
  .page-heading p{font-size:13px;line-height:1.9;margin-top:6px}
  .heading-actions{width:100%;gap:10px;display:flex}
  .page-heading .heading-actions>.button{flex:1;min-width:0;width:auto;font-size:15px;min-height:46px;gap:9px}
  .page-heading .heading-actions>.button.outline{display:inline-flex;flex:0 0 38%;background:#fff}
  .owner-manage-panel{padding:18px}.owner-manage-heading{align-items:stretch;flex-direction:column}.owner-manage-heading>.button{width:100%;min-height:48px}.owner-invite-result{grid-template-columns:1fr}.owner-invite-result .button{width:100%;min-height:46px}.owner-invite-result input{font-size:14px}.owner-manage-panel .table-scroll{margin:0 -18px}.owner-manage-note{margin:14px 0 0}
  .owner-manage-panel table,.owner-manage-panel tbody{display:block;white-space:normal}.owner-manage-panel thead{display:none}.owner-manage-panel tr{display:grid;grid-template-columns:minmax(0,1fr) auto;border-top:1px solid var(--line);padding:12px 18px;gap:8px 12px}.owner-manage-panel td{display:block;border:0;padding:0!important;min-width:0;font-size:12px;overflow-wrap:anywhere}.owner-manage-panel td strong{font-size:14px}.owner-manage-panel td small{font-size:11px}.owner-manage-panel td:nth-child(2){grid-row:2;grid-column:1/-1}.owner-manage-panel td:last-child{grid-column:2;grid-row:1;align-self:center}.owner-manage-panel td button{min-height:44px;font-size:13px}.owner-manage-heading p,.owner-invite-result p,.owner-manage-note,.owner-invite-result small{font-size:12px}
  .admin-demo-note{font-size:11px;line-height:1.8;align-items:center;margin-bottom:14px}
  .admin-demo-note>span{font-size:10px;flex-shrink:0;margin-top:1px}
  .metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 16px}
  .metric{padding:14px 6px;text-align:center;min-height:91px}
  .metric>span{font-size:11px;white-space:nowrap}
  .metric>strong{font-size:27px;margin:9px 0 0;line-height:1.2}
  .metric>small,.metric .metric-icon{display:none!important}
  .metric-icon{font-size:18px!important;right:15px;top:17px}
  .dashboard-grid{grid-template-columns:1fr;gap:16px}
  .overview-search{margin:0 0 17px;padding:10px;gap:8px}
  .overview-search input{height:46px;min-height:46px;padding:10px}
  .overview-search .button{font-size:14px;min-height:46px;padding:10px 17px}
  .followup-panel{order:-1}
  .stats-panel{padding:11px 18px}
  .stats-panel>summary h2{font-size:14px}
  .stats-panel>summary>span{font-size:11px}
  .stats-panel[open]{padding-bottom:20px}
  .panel:not(.stats-panel){padding:18px}
  .panel-heading{gap:12px;align-items:flex-start}
  .panel-heading h2{font-size:16px;flex-shrink:0}
  .panel-heading>span{font-size:11px;line-height:1.7;text-align:right}
  .distribution{gap:22px;min-height:150px}
  .donut{height:125px;width:125px}
  .donut>span{font-size:11px}
  .chart-legend{gap:17px;max-width:none}
  .legend-row{font-size:12px;gap:8px}
  .followup-row{padding:12px 10px;gap:10px;min-height:65px}
  .followup-row>span:nth-child(2){min-width:0}
  .followup-row strong{font-size:14px;line-height:1.7;overflow-wrap:anywhere}
  .followup-row small{font-size:12px;line-height:1.7}
  .followup-row>span:last-child{font-size:12px;flex-shrink:0}
  .table-panel{overflow:visible;background:transparent;border:0;border-radius:0}
  .table-toolbar{padding:12px 2px 17px;gap:10px}
  .table-toolbar h2{font-size:17px}
  .table-toolbar p{font-size:12px;line-height:1.9}
  .table-toolbar button.link-button{font-size:13px;white-space:nowrap;flex-shrink:0}
  .repair-desktop-table{display:none}
  .repair-mobile-list{display:grid;gap:14px}
  .repair-card{padding:17px;background:#fff;border:1px solid var(--line);border-radius:12px;min-width:0}
  .repair-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
  .repair-card-heading>div{min-width:0}
  .repair-card h3{font-size:16px;line-height:1.6;overflow-wrap:anywhere}
  .repair-model{font-size:14px;font-weight:400;color:#7d8b74}
  .repair-card-heading p{font-size:13px;color:#78886c;line-height:1.8;margin-top:6px;overflow-wrap:anywhere}
  .repair-card-heading p .tag{font-size:10px;margin-left:8px;vertical-align:middle}
  .repair-card-code{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:12px;color:#89967d;font-size:12px}
  .repair-card-code code{font-size:11px;overflow-wrap:anywhere}
  .repair-card-code .tag{font-size:10px;padding:3px 6px}
  .repair-card dl{display:grid;gap:10px;margin:16px 0 18px}
  .repair-card dl>div{display:flex;gap:15px;justify-content:space-between;align-items:baseline;font-size:13px;line-height:1.8}
  .repair-card dt{color:#99a38e;flex-shrink:0}
  .repair-card dd{margin:0;color:#536d46;overflow-wrap:anywhere;text-align:right}
  .repair-card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #edf0e7;padding-top:12px;margin-top:12px}
  .repair-card-footer>span{font-size:12px;color:#89967d;line-height:1.8}
  .repair-card-footer>span>b{display:block;font-size:11px;font-weight:400}
  .repair-card-footer .button{min-height:44px;font-size:13px;padding:10px 13px;gap:10px}
  .repair-search-panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:4px}
  .repair-search-panel .table-toolbar{padding:0 0 10px}
  .repair-search-panel .table-toolbar h2{font-size:15px}
  .filter-row{padding:0 0 12px;display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .filter-row input{grid-column:1/-1;max-width:none}
  .filter-row select{max-width:none;min-width:0;padding:10px}
  .quick-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:0}
  .quick-filters button{flex-direction:column;gap:5px;padding:9px 2px;font-size:11px;min-height:51px}
  .quick-filters button>span{font-size:12px;font-weight:600}
  .table-caption{font-size:12px;padding:17px 2px;border:0;line-height:1.8}
  .form-section{padding:23px 20px}
  .form-section h2{font-size:18px}
  .form-section>p{font-size:13px;line-height:1.9}
  .form-grid{grid-template-columns:1fr;gap:22px}
  .form-grid .span-two{grid-column:auto}
  .settings-form label,.editor-body label{font-size:14px}
  .settings-save-bar{position:sticky;bottom:calc(76px + env(safe-area-inset-bottom,0px));padding:12px;background:#f5f6f1f5;border:1px solid var(--line);border-radius:11px;z-index:12}
  .settings-save-bar>.button{width:100%}
  .activity-admin-grid{grid-template-columns:1fr;gap:16px}
  .admin-activity{padding:23px 20px}
  .admin-activity h2{font-size:19px}
  .admin-activity p{font-size:14px}
  .admin-activity-footer{font-size:11px;gap:10px}
  .admin-activity-footer .link-button{font-size:13px}
  .editor-dialog{width:100%;height:min(100dvh,var(--editor-viewport-height,100dvh));max-width:none;max-height:100dvh;border:0;border-radius:0;margin:0;inset:var(--editor-viewport-top,0px) 0 auto;padding:0}
  .editor-dialog[open] #editor-content{height:100%;max-height:none}
  .editor-header{padding:14px 16px;padding-top:calc(14px + env(safe-area-inset-top,0px));align-items:flex-start;gap:8px}
  .editor-header>div{min-width:0}
  .editor-header h2{font-size:19px;line-height:1.6}
  .editor-header p{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
  .close-dialog{min-width:44px;min-height:44px;border:1px solid #e1e6d8;border-radius:9px;flex-shrink:0;color:#6e8260}
  .editor-body{flex:1;padding:18px 16px 25px;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
  #editor-content>.editor-footer{padding:13px 20px calc(13px + env(safe-area-inset-bottom,0px));display:flex;gap:12px}
  .editor-footer .button{min-height:50px;font-size:16px;padding:13px 18px}
  .editor-footer .button.primary{flex:1}
  .editor-footer .button.outline{min-width:90px}
  .repair-identity{font-size:15px;padding:14px 16px;margin-bottom:18px;overflow-wrap:anywhere}
  .repair-identity p{font-size:13px;line-height:1.8}
  .repair-identity p>span{margin-left:5px;font-size:12px}
  .repair-registration>summary{min-height:36px;font-size:12px;margin-top:7px;display:flex;align-items:center}
  .repair-registration>summary:before{content:'＋';margin-right:8px}
  .repair-registration[open]>summary:before{content:'−'}
  .repair-registration>summary::-webkit-details-marker{display:none}
  .editor-body .form-grid{gap:17px}
  .status-edit-field [data-next-status]{margin-top:9px}
  .next-status-button{font-size:13px;min-height:44px;margin-top:0}
  .progress-summary{font-size:13px;padding:11px 13px;flex-wrap:wrap;gap:5px 10px}
  .progress-summary small{font-size:11px}
  .flow-preview>summary,.optional-fields>summary{font-size:14px;min-height:30px}
  .optional-fields{padding:13px}
  .optional-fields>summary>span{font-size:11px}
  .editor-dialog .field-hint{font-size:11px;line-height:1.8}
  .repair-identity small{font-size:13px;margin-top:6px;line-height:1.9}
  .share-area{padding:18px}
  .share-area p{font-size:13px}
  .share-area input{font-size:14px!important}
  .share-buttons{flex-wrap:wrap;gap:5px 20px}
  .share-buttons .link-button,.share-buttons a{font-size:13px;min-height:44px;display:inline-flex;align-items:center}
  .share-warning{font-size:12px;line-height:1.9}
  .editor-history{margin-top:28px;padding-top:25px}
  .checkbox-label{gap:12px;min-height:48px}
  .activity-image-editor{padding:16px}
  .activity-image-editor>h3{font-size:16px}
  .activity-image-preview img{max-height:260px}
  #activity-image-empty p{font-size:14px}
  .activity-image-actions{gap:17px;flex-wrap:wrap}
  .activity-image-actions .button{font-size:14px;min-height:48px}
  .activity-image-actions .link-button{font-size:13px;min-height:48px}
}

@media(max-width:360px){
  .site-header .brand b{max-width:140px;font-size:17px}
  .owner-login{padding:0 10px;font-size:12px}
  .hero{gap:8px;grid-template-columns:1.2fr .8fr}
  .hero-art{height:190px}
  .watch{transform:translate(-50%,-50%) rotate(-20deg) scale(.43)}
  .hero-copy .eyebrow{font-size:9px}
  .query-wrap{padding:18px}
  .query-intro h2{font-size:19px}
  .sidebar{padding-left:14px;padding-right:14px}
  .sidebar>.brand{max-width:51%;gap:7px}
  .sidebar .brand b{font-size:16px}
  .sidebar-bottom{gap:0}
  .sidebar-bottom>a,.sidebar-bottom>#profile-entry,.sidebar-bottom>#logout{font-size:11px!important;padding:0 6px}
  .distribution{gap:15px}
  .donut{width:110px;height:110px}
  .legend-row{font-size:11px}
  .followup-row{flex-wrap:wrap}
  .repair-card{padding:18px}
  .repair-card-footer .button{font-size:12px;padding:10px;gap:7px}
}
