/* Browse and publish share a single category tree. */
.header-inner{gap:28px}.desktop-nav{gap:24px}.header-actions{gap:14px}.language-control{display:flex;gap:5px;align-items:center}.language-control svg{width:17px;height:17px;color:var(--muted)}.language-control select{border:0;background:transparent;max-width:100px;padding:8px 2px;font-size:12px;color:var(--ink)}
.catalog-tabs{gap:28px}.catalog-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;padding:0 0 8px}.filter-label{display:flex;gap:7px;align-items:center;font-size:12px;color:var(--muted);min-width:0}.filter-label select{border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font-size:12px;padding:8px 9px;max-width:210px;min-width:0}.free-check{display:flex;gap:6px;align-items:center;font-size:12px;cursor:pointer}.free-check input{accent-color:var(--red)}.filter-help{font-size:11px;color:var(--muted);margin:0 0 14px}.active-filters{display:flex;flex-wrap:wrap;gap:7px;margin:5px 0 18px}.active-filters button{border:0;background:var(--rose);color:var(--red);border-radius:5px;padding:6px 9px;font-size:11px}.active-filters button span{margin-left:8px}.active-filters .text-link{background:none}.catalog-note-row{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px;align-items:flex-start}.catalog-note-row .catalog-note{margin:0;line-height:1.65}.catalog-note-row .text-link{white-space:nowrap;font-size:11px}.catalog-note-row svg{width:14px;height:14px}.feed-top{margin-top:14px}.empty-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:16px}.product-card h3{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:42px;line-height:1.5}.product-photo img{object-fit:contain;background:#f0eee9}.media-count{position:absolute;left:8px;bottom:8px;display:flex;align-items:center;gap:4px;background:#fffffff0;border-radius:5px;padding:4px 6px;font-size:10px}.media-count svg{width:12px;height:12px}.product-card .condition{font-size:10px}.product-card .item-place{margin-top:8px}.product-card .item-place span{white-space:nowrap}.mine-actions{flex-wrap:wrap;align-items:center}.mine-actions select{font-size:12px;border:1px solid var(--line);border-radius:6px;padding:8px;background:#fff;min-width:0;max-width:130px}.draft-banner{background:var(--rose);padding:14px 18px;border-radius:8px;display:flex;justify-content:space-between;gap:12px;margin-bottom:22px;font-size:13px}.draft-note{margin-top:16px}.wanted-school{margin-bottom:24px}.wanted-card>p{white-space:pre-wrap}.community-qr{display:block;width:100%;max-width:380px;height:auto;margin:18px auto;border-radius:9px}.detail-copy{white-space:pre-wrap}.site-footer{flex-wrap:wrap}.research-card>div{min-width:0}.research-card h3{overflow-wrap:anywhere}

@media(max-width:1100px){.desktop-nav{gap:17px}.header-inner{gap:18px}.header-actions{gap:10px}.profile-link>span:last-child{display:none}}
@media(max-width:900px){.desktop-nav{display:none}.header-inner{height:70px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;justify-content:space-around;background:#fff;border-top:1px solid var(--line);padding:8px 7px calc(8px + env(safe-area-inset-bottom));z-index:100}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;position:relative;font-size:11px;min-height:42px;min-width:49px}.mobile-nav a[aria-current=page]{color:var(--red)}body{padding-bottom:68px}}
@media(max-width:700px){.header-inner{height:62px;gap:10px}.brand img{width:112px}.header-actions{gap:9px}.profile-link{display:none}.language-control select{max-width:85px;font-size:11px}.language-control svg{display:none}.header-actions .button{padding:8px 10px}.header-actions .button span{display:none}.catalog-controls{gap:8px 10px}.filter-label{font-size:11px;gap:5px}.filter-label select{font-size:11px;max-width:145px;padding:7px}.filter-help{font-size:10px}.catalog-tabs{margin-top:0;gap:24px}.catalog-tabs button{font-size:13px}.filter-row{max-width:100%;margin-bottom:13px}.filter-row .chip{flex-shrink:0}.search-hints{display:flex;flex-wrap:wrap;margin-bottom:20px;gap:10px}.search-hints [data-community]{margin-left:auto;font-size:10px}.home-intro h1{font-size:25px}.product-card h3{font-size:12px;min-height:36px}.price small{font-size:10px}.catalog-note-row{gap:8px}.catalog-note-row .catalog-note{font-size:10px;max-width:65%}.catalog-note-row .text-link{font-size:10px}.mine-actions .button{font-size:11px;padding:6px 8px}.mine-actions select{font-size:11px;max-width:110px}.profile-tabs{gap:15px;flex-wrap:wrap}.profile-tabs button{font-size:12px}.draft-banner{font-size:12px;flex-wrap:wrap}.form-actions{flex-wrap:wrap}.language-control{max-width:90px}}
@media(max-width:350px){.header-inner,.site-main,.site-footer,.preview-strip>div{margin-left:12px;margin-right:12px}.preview-strip>div{gap:7px}.preview-strip>div>span{font-size:9px}.catalog-controls{gap:8px}.filter-label select{max-width:125px}.search-hints>span{display:none}.search-hints [data-community]{margin-left:0}}

.market-layout>section,.market-rail,.rail-card{min-width:0}.rail-card .button{max-width:100%;white-space:normal}.rail-card h3{overflow-wrap:anywhere}
@media(max-width:1000px){.market-layout{grid-template-columns:minmax(0,1fr)}.market-rail{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.feed-top{gap:10px;flex-wrap:wrap}.catalog-tabs{scrollbar-width:thin}.site-footer{overflow-wrap:anywhere}}

.wanted-management{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.wanted-management select{min-width:0;max-width:150px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:7px;font-size:12px}

.preview-strip>div{flex-wrap:wrap;align-items:center}#syncPreview{order:3;flex-basis:100%;text-align:left;white-space:normal;border-top:1px solid #ffffff35;padding-top:6px}@media(max-width:700px){.wanted-management{grid-column:1/-1}}

.feedback-entry{display:flex;align-items:center;gap:5px;border:0;background:transparent;padding:8px 0;font-size:12px;color:var(--muted)}.feedback-entry:hover{color:var(--red)}.feedback-entry svg{width:18px;height:18px}#profileFeedback{margin-left:auto}#myArrangements{margin-left:0}@media(max-width:700px){.feedback-entry{padding:8px}.feedback-entry span{display:none}.header-actions{gap:4px}#profileFeedback{margin-left:0}}

/* Keep the task above the fold; detailed content remains easy to scan. */
.site-main{padding-top:26px}.page-heading{margin-bottom:20px;align-items:center}.page-heading h1{font-size:30px;letter-spacing:-.8px}.page-heading p{margin-top:6px}.home-intro{margin-bottom:20px}.home-intro h1{font-size:30px}.home-intro p{font-size:13px}.search-hints{margin-bottom:18px}.catalog-tabs{margin-bottom:15px}.catalog-controls{gap:8px 16px}.filter-row{margin-bottom:15px}.filter-label select{min-height:38px}.filter-help{margin-bottom:10px}.active-filters button{min-height:34px}.catalog-note-row{margin-bottom:14px}.wanted-school{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.wanted-count{color:var(--muted);font-size:12px;white-space:nowrap}.wanted-card{padding:21px}.wanted-card h3{font-size:17px;line-height:1.5;margin-bottom:10px}.wanted-card>p{min-height:0}.wanted-card .wanted-budget{font-size:18px;margin-top:17px}.wanted-foot>span{min-width:0}.empty p{max-width:420px;margin:8px auto 20px}.profile-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin;padding-top:4px;gap:25px}.profile-tabs button{flex:none;min-height:44px}.profile-tabs::-webkit-scrollbar{height:3px}.profile-tabs::-webkit-scrollbar-thumb{background:#ded8cf;border-radius:4px}

/* Publishing: only the fields scroll; heading and submit actions stay visible. */
dialog:has(#itemForm),dialog:has(#wantedForm){overflow:hidden;max-height:90dvh}
dialog:has(#itemForm) .dialog-inner,dialog:has(#wantedForm) .dialog-inner{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:90dvh;min-height:0;padding:24px}
dialog:has(#itemForm) .dialog-heading,dialog:has(#wantedForm) .dialog-heading{margin-bottom:18px}
#itemForm,#wantedForm{display:grid;grid-template-rows:minmax(0,1fr) auto auto auto;min-height:0;overflow:hidden}
#itemForm>.form-grid,#wantedForm>.form-grid{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:3px 8px 12px 3px;scrollbar-width:thin;scroll-padding-block:8px}
#itemForm>.form-hint,#wantedForm>.form-hint{font-size:11px;line-height:1.5;margin:10px 0 0}
#itemForm>.form-error,#wantedForm>.form-error{margin-top:4px;min-height:0;max-height:60px;overflow-y:auto;font-size:12px;line-height:1.5}
#itemForm>.form-error:empty,#wantedForm>.form-error:empty{display:none}
#itemForm>.form-actions,#wantedForm>.form-actions{margin-top:12px;padding-top:14px;border-top:1px solid var(--line);background:#fff;gap:12px}
#itemForm>.form-actions .primary,#wantedForm>.form-actions .primary{min-width:120px}

@media(max-width:700px){.site-main{padding-top:20px}.page-heading h1,.home-intro h1{font-size:25px}.page-heading p{font-size:12px;line-height:1.6}.home-intro{gap:12px;margin-bottom:15px}.home-intro .campus-select{align-self:flex-start}.search-hints{margin-bottom:15px}.catalog-tabs{gap:21px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.catalog-tabs button{flex:none}.catalog-controls{gap:8px 12px}.filter-label select{min-height:36px}.active-filters{gap:6px;margin-bottom:12px}.wanted-school{margin-bottom:12px}.wanted-count{font-size:11px}.wanted-card{padding:19px}.wanted-card h3{font-size:16px}.wanted-card p{font-size:13px}.profile-tabs{gap:22px;flex-wrap:nowrap;margin-bottom:20px}.profile-tabs button{font-size:13px;min-height:44px}.draft-banner{margin-bottom:14px}.empty{padding:34px 20px}.empty h3{font-size:17px}.empty p{font-size:12px}.page-heading>.button{min-height:42px}
dialog:has(#itemForm),dialog:has(#wantedForm){width:calc(100% - 24px);max-height:calc(100dvh - 24px)}
dialog:has(#itemForm) .dialog-inner,dialog:has(#wantedForm) .dialog-inner{padding:20px;max-height:calc(100dvh - 24px)}
dialog:has(#itemForm) .dialog-heading h2,dialog:has(#wantedForm) .dialog-heading h2{font-size:21px}
#itemForm>.form-grid,#wantedForm>.form-grid{gap:14px;padding-right:5px}
#itemForm>.form-actions,#wantedForm>.form-actions{flex-wrap:nowrap;gap:10px;padding-top:12px}
#itemForm>.form-actions>.button,#wantedForm>.form-actions>.button{flex:1;min-width:0;min-height:44px;font-size:13px;padding:10px}
}
