/* Demand portal only; preserve the existing markup, content and interactions. */
.device:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]){
  --brand:#b5262d;--brand-hover:#9d2027;--brand-soft:#faf0ee;--brand-border:#e6cfcb;
  --blue:var(--brand);--muted:#85817f;--page-gutter:24px;
  background:#fff;background-image:none;color:#24201f;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .status{color:#292725}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .brandbar{height:54px;background:#fff;border-bottom:1px solid #eee9e5}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .header-main h2{color:#24201f;font-weight:650}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .subhead button{color:#24201f}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) #view{padding:0 var(--page-gutter) 28px;background:#fff;scrollbar-width:none}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) #view::-webkit-scrollbar{display:none}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .page{animation:none}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .home-indicator:after{background:#242020}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) button:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) #toast{background:#322b28ed;border-radius:8px}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) :is(.primary,.secondary){min-height:48px;padding:12px 16px;border:1px solid var(--brand);border-radius:6px;font-size:15px;font-weight:500;line-height:1.6;box-shadow:none}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .primary{background:var(--brand);color:#fff}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .secondary{background:#fff;border-color:#ded8d3;color:#716963}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .endnote{font-size:11px;line-height:1.8;color:#9b928c;margin-top:24px}

/* Intro and search keep every existing label and control. */
[data-today-page="demands"] .service-banner{background:none;border:0;border-bottom:1px solid #e8e3df;border-radius:0;padding:26px 0;margin:0;min-height:0}
[data-today-page="demands"] .mini-eyebrow{color:var(--brand);font-size:12px;letter-spacing:1px}
[data-today-page="demands"] .service-banner strong{color:#24201f;font-size:24px;line-height:1.5;font-weight:650;margin-top:10px;letter-spacing:-.5px}
[data-today-page="demands"] .banner-link{color:#85817f;font-size:13px;margin-top:12px}
[data-today-page="demands"] .banner-art{display:none}
[data-today-page="demands"] .demand-list-banner{aspect-ratio:395/121;height:auto;margin:12px 0 0;border-radius:12px;overflow:hidden;background:#eef5ff}
[data-today-page="demands"] .demand-list-banner img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
[data-today-page="demands"] .demand-search-row{gap:8px;margin-top:22px}
[data-today-page="demands"] .market-search{min-height:48px;padding:0 12px;gap:8px;background:#f6f6f5;border:1px solid #e8e3df;border-radius:8px}
[data-today-page="demands"] .market-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 2px #b5262d12}
[data-today-page="demands"] .market-search>.ico{color:var(--muted);flex-shrink:0}
[data-today-page="demands"] .market-search input{color:#24201f;min-height:44px}
[data-today-page="demands"] .market-search input::placeholder{color:#8a827d}
[data-today-page="demands"] .market-search button{min-height:44px;font-weight:500}
[data-today-page="demands"] .market-search button[data-svc]{color:var(--muted)}
[data-today-page="demands"] .filter-trigger{width:44px;min-height:48px;border:1px solid #e8e3df;border-radius:8px;color:#85817f;background:#fff}
[data-today-page="demands"] .filter-trigger.active{color:var(--brand);background:var(--brand-soft);border-color:var(--brand-border)}
[data-today-page="demands"] .demand-filter-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#faf9f7;border:1px solid #e8e3df;border-radius:8px;padding:14px}
[data-today-page="demands"] .demand-filter-panel label{color:#8b817b;line-height:1.6}
[data-today-page="demands"] .demand-filter-panel select{min-height:42px;border:1px solid #e8e3df;border-radius:5px;background:#fff;color:#544c47;padding:8px;outline-color:var(--brand)}
[data-today-page="demands"] .demand-filter-panel button{grid-column:1/-1;justify-self:end;min-height:36px;padding:6px 10px}
[data-today-page="demands"] .demand-filter-overlay{position:absolute;inset:0;z-index:30;display:flex;align-items:flex-end}
[data-today-page="demands"] .demand-filter-mask{position:absolute;inset:0;width:100%;height:100%;background:#241d1a70;border-radius:0}
[data-today-page="demands"] .demand-filter-sheet{position:relative;width:100%;padding:20px 20px 28px;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -16px 40px #241d1a18;animation:demand-sheet-in .22s ease both}
[data-today-page="demands"] .demand-filter-sheet header{display:flex;align-items:center;justify-content:space-between;padding-bottom:13px;border-bottom:1px solid #eee9e5}
[data-today-page="demands"] .demand-filter-sheet h3{font-size:18px;line-height:1.5;font-weight:650;color:#24201f}
[data-today-page="demands"] .demand-filter-sheet header button{width:36px;height:36px;border-radius:50%;background:#f5f3f1;color:#776e69;font-size:24px;line-height:1}
[data-today-page="demands"] .demand-type-options{display:grid;margin-top:5px}
[data-today-page="demands"] .demand-type-options button{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 3px;border-bottom:1px solid #f2eeeb;text-align:left;font-size:14px;color:#4a423d}
[data-today-page="demands"] .demand-type-options button:last-child{border-bottom:0}
[data-today-page="demands"] .demand-type-options i{width:18px;height:18px;border:1px solid #cfc5bf;border-radius:50%;position:relative}
[data-today-page="demands"] .demand-type-options button.active{color:var(--brand);font-weight:600}
[data-today-page="demands"] .demand-type-options button.active i{border-color:var(--brand)}
[data-today-page="demands"] .demand-type-options button.active i:after{content:"";position:absolute;inset:4px;border-radius:50%;background:var(--brand)}
[data-today-page="demands"] #market-results{margin-top:12px}
@keyframes demand-sheet-in{from{transform:translateY(28px);opacity:.6}to{transform:translateY(0);opacity:1}}
[data-today-page="demands"] .list-summary{font-size:13px;color:#8a827d;margin:25px 0 0;padding-bottom:12px;border-bottom:1px solid #e8e3df}
[data-today-page="demands"] .list-summary>span{font-size:17px;color:#24201f;font-weight:600}

/* Open lists: title, type, description, company and contact stay visible. */
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .demand-list-results{display:block;width:100%}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .demand-card{padding:22px 0;margin:0;background:none;border:0;border-bottom:1px solid #e8e3df;border-radius:0;box-shadow:none;color:#24201f}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .demand-card-title{flex-direction:column;align-items:flex-start;gap:9px;margin-bottom:12px}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .demand-card-title strong{font-size:19px;font-weight:650;line-height:1.6;letter-spacing:-.3px}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .type-badge{background:#faf0ee;color:#b5262d;border:1px solid #eedbd7;border-radius:3px;padding:2px 7px;font-size:11px;line-height:1.6}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .card-description{font-size:14px;line-height:1.85;color:#7c7570}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .demand-company{font-size:12px;line-height:1.8;color:#8a827d;margin-top:16px}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .demand-card-footer{border:0;padding-top:0;margin-top:8px;color:#8a827d;gap:12px}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .demand-card-footer>span:last-child{color:#b5262d}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .market-empty{padding:52px 0;color:#8a827d}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .market-empty>.ico{color:#b5aaa3}
:is([data-today-page="demands"],[data-today-page="demand-mine"]) .market-empty h3{color:#4d4540;font-size:18px;font-weight:600}
[data-today-page="demand-mine"] .demand-status-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:8px 0 0;border-bottom:1px solid #e8e3df;overflow:visible}
[data-today-page="demand-mine"] .demand-status-filters button{position:relative;padding:16px 0;min-height:48px;border:0;border-radius:0;background:none;font-size:13px;color:#85817f;text-align:center}
[data-today-page="demand-mine"] .demand-status-filters button.active{color:var(--brand);font-weight:600}
[data-today-page="demand-mine"] .demand-status-filters button.active:after{content:'';position:absolute;bottom:-1px;left:calc(50% - 10px);width:20px;height:2px;background:var(--brand)}

/* Publishing: the reference layout, adapted to the current warm-white and government-red VI. */
.device[data-today-page="demand-new"]{--page-gutter:16px;background:#f5f3f1}
[data-today-page="demand-new"] #view{padding:0 0 88px;background:#f5f3f1}
[data-today-page="demand-new"] #service-demand-form{display:block}
[data-today-page="demand-new"] .demand-publish-hero{position:relative;display:flex;align-items:flex-end;min-height:156px;padding:42px var(--page-gutter) 24px;overflow:hidden;background:linear-gradient(135deg,#fbf3f0 0%,#f7e9e5 58%,#f2ded9 100%)}
[data-today-page="demand-new"] .demand-publish-hero>div{position:relative;z-index:1;min-width:0}
[data-today-page="demand-new"] .demand-publish-hero h2{font-size:24px;line-height:1.35;font-weight:700;letter-spacing:-.6px;color:#24201f}
[data-today-page="demand-new"] .demand-publish-hero h2 span{color:var(--brand)}
[data-today-page="demand-new"] .demand-publish-hero p{margin-top:5px;font-size:13px;line-height:1.65;color:#746b66}
[data-today-page="demand-new"] .demand-publish-art{position:absolute;right:8px;top:16px;width:116px;height:104px;fill:#fff9;stroke:#c85a5f;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 8px 10px #8d1d2415);transform:rotate(-4deg)}
[data-today-page="demand-new"] .demand-publish-art .demand-art-pen{fill:#b5262d22;stroke:#b5262d;stroke-width:3}
[data-today-page="demand-new"] .demand-publish-card{margin:12px var(--page-gutter) 0;padding:16px;background:#fff;border:1px solid #eee9e5;border-radius:12px;box-shadow:0 3px 12px #3a262005}
[data-today-page="demand-new"] .demand-publish-selects{margin-top:-10px;position:relative;z-index:2}
[data-today-page="demand-new"] .form-section-heading{display:block;margin:0 0 14px;padding-left:10px;border-left:3px solid var(--brand)}
[data-today-page="demand-new"] .form-section-heading h3{font-size:17px;font-weight:700;line-height:1.4;color:#24201f}
[data-today-page="demand-new"] .demand-form-group{display:grid;gap:12px;padding:0;background:none;border:0;border-radius:0;overflow:visible}
[data-today-page="demand-new"] .demand-field{position:relative;display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:0 8px;min-height:64px;padding:12px 16px;border:0;border-radius:8px;background:#f7f6f5;color:#544c47}
[data-today-page="demand-new"] .demand-field>span{color:#3f3935;font-size:14px;white-space:nowrap}
[data-today-page="demand-new"] .demand-field em{margin-left:2px;color:var(--brand)}
[data-today-page="demand-new"] .demand-field :is(input,select,textarea){min-width:0;width:100%;padding:5px 0;border:0;background:transparent;color:#24201f;font-size:14px;line-height:1.7;outline-color:var(--brand)}
[data-today-page="demand-new"] .demand-field :is(input,textarea)::placeholder{color:#9a9088}
[data-today-page="demand-new"] .demand-field select{appearance:none;padding-right:24px;background:linear-gradient(45deg,transparent 50%,#a49992 50%) calc(100% - 8px) 55%/6px 6px no-repeat,linear-gradient(135deg,#a49992 50%,transparent 50%) calc(100% - 3px) 55%/6px 6px no-repeat}
[data-today-page="demand-new"] .demand-field select:has(option[value='']:checked){color:#9a9088}
[data-today-page="demand-new"] .demand-field-textarea{display:block;min-height:208px;padding:16px}
[data-today-page="demand-new"] .demand-field-textarea>span{display:block;margin-bottom:4px}
[data-today-page="demand-new"] .demand-field textarea{display:block;min-height:128px;margin:0;padding:0;resize:none;line-height:1.75}
[data-today-page="demand-new"] .field-error{grid-column:1/-1;color:var(--brand);font-size:11px;line-height:1.5}
[data-today-page="demand-new"] .demand-field-textarea .field-error{display:block}
[data-today-page="demand-new"] .demand-field [aria-invalid=true]{outline:1px solid #df8c8c;outline-offset:2px;background:#fff7f7}
[data-today-page="demand-new"] .description-count{position:absolute;right:30px;bottom:28px;margin:0;color:#9a9088;font-size:11px;line-height:1}
[data-today-page="demand-new"] .demand-publish-card:has(.description-count){position:relative}
[data-today-page="demand-new"] #demand-nav{display:none!important}
[data-today-page="demand-new"] .demand-publish-footer{position:absolute;left:0;right:0;bottom:max(17px,env(safe-area-inset-bottom));z-index:8;padding:12px 20px 14px;background:#fff;border-top:1px solid #eee9e5;box-shadow:0 -8px 18px #3a262009}
[data-today-page="demand-new"] .publish-button{width:100%;min-height:54px;margin:0;border-radius:999px;font-size:17px;font-weight:650}
[data-today-page="demand-new"] .draft-note{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[data-today-page="demand-success"] .publish-success{padding-top:40px}
[data-today-page="demand-success"] .success-icon{width:64px;height:64px;border:1px solid var(--brand-border);background:var(--brand-soft);font-size:30px}
[data-today-page="demand-success"] .publish-success>h2{font-size:26px;font-weight:650;color:#24201f}
[data-today-page="demand-success"] .publish-success>p{color:#7c7570;line-height:1.8}
[data-today-page="demand-success"] .publish-success .box{padding:20px;margin:28px 0 22px;border:1px solid #e8e3df;border-radius:8px;box-shadow:none;animation:none}
[data-today-page="demand-success"] .publish-success .box>small{font-size:12px;color:#8b817b}
[data-today-page="demand-success"] .publish-success .box h3{font-size:19px;line-height:1.6;color:#24201f}
[data-today-page="demand-success"] .tag{color:var(--brand);background:var(--brand-soft);border-radius:3px}
[data-today-page="demand-success"] .text-action{color:#716963;min-height:44px;margin-top:12px}
[data-today-page="demand-success"] .publish-success>small{color:#9b928c;line-height:1.8;margin-top:20px}

/* Portal tabs follow the main reading navigation. */
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) #demand-nav{background:#fff;border-top:1px solid #e8e3df;padding:0 12px;min-height:64px}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) #demand-nav button{position:relative;min-height:64px;border-radius:0;gap:5px;color:#8a827d;font-size:12px;background:none}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) #demand-nav button.active{color:var(--brand);background:none}
:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) #demand-nav button.active:before{content:'';position:absolute;top:-1px;left:calc(50% - 11px);height:2px;width:22px;background:var(--brand)}
@media(hover:hover){
  :is([data-today-page="demands"],[data-today-page="demand-mine"]) .demand-card:hover strong{color:var(--brand)}
  :is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .primary:not(:disabled):hover{background:var(--brand-hover)}
}
@media(max-width:350px){
  .device:is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]){--page-gutter:20px}
  [data-today-page="demands"] .service-banner strong{font-size:22px}
  :is([data-today-page="demands"],[data-today-page="demand-mine"],[data-today-page="demand-new"],[data-today-page="demand-success"]) .header-main h2{font-size:16px}
  [data-today-page="demand-new"] .demand-field{grid-template-columns:minmax(0,1fr);gap:6px;padding:12px 0}
  [data-today-page="demand-new"] .demand-field :is(input,select){min-height:36px}
}

@media(max-width:350px){
  .device[data-today-page="demand-new"]{--page-gutter:12px}
  [data-today-page="demand-new"] .demand-publish-hero{min-height:144px;padding-top:34px}
  [data-today-page="demand-new"] .demand-publish-hero h2{font-size:21px}
  [data-today-page="demand-new"] .demand-publish-art{right:-4px;width:102px}
  [data-today-page="demand-new"] .demand-field{grid-template-columns:84px minmax(0,1fr);gap:0 7px;padding:11px 13px}
  [data-today-page="demand-new"] .demand-field-textarea{display:block;padding:14px}
}
