:root{--bg:#fcf7f8;--paper:#fff;--pink:#f6e4eb;--rose:#a33965;--ink:#352730;--muted:#796771;--line:#eddee5;--green:#27664e;--amber:#936019;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ba5a84;outline-offset:3px}button{border:0;background:none}a{color:inherit}::selection{background:#efd0df}input{accent-color:var(--rose)}.app{max-width:1220px;margin:auto;padding:0 44px}header{height:104px;display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font:29px Georgia,serif;letter-spacing:3px}.flower{font:42px Georgia;color:#a95678}.brand small{display:block;font:9px "Segoe UI",sans-serif;letter-spacing:2px;margin-top:5px}.demo{margin-left:auto;font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center}.demo i{width:6px;height:6px;border-radius:50%;background:#ad6584}.avatar{width:38px;height:38px;border-radius:50%;background:var(--pink);font-size:12px;font-weight:650}.heading{display:flex;justify-content:space-between;align-items:center;padding:36px 0 30px}h1{font:36px Georgia,serif;margin:0 0 10px;letter-spacing:-.7px}.heading p{margin:0;color:var(--muted);font-size:14px}.day-label{text-align:right;font-size:12px;color:var(--muted)}.day-label span{display:block;font-size:20px;color:var(--ink);margin-top:5px}.toolbar{display:flex;gap:22px;align-items:center;justify-content:space-between}.dates{display:flex;gap:5px;background:#f1e9ed;border-radius:11px;padding:4px}.dates button,.calendar{padding:10px 13px;border-radius:8px;font-size:13px;white-space:nowrap}.dates .selected{background:white;box-shadow:0 2px 5px #4a28300b;font-weight:650}.dates span{margin-left:5px;color:var(--muted)}.calendar{position:relative;cursor:pointer;display:flex;align-items:center}.calendar input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.search{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);padding:0 13px;border-radius:10px;min-width:330px;height:43px}.search svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.6}.search input{width:100%;border:0;outline:none;background:none;font-size:13px;color:var(--ink)}input::placeholder{color:#82717b}.search button{font-size:22px}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-top:25px}.tabs button{padding:16px 0;position:relative;font-size:14px;color:var(--muted);white-space:nowrap}.tabs button.active{color:var(--rose);font-weight:650}.tabs button.active:after{content:"";position:absolute;height:3px;bottom:-1px;left:0;right:0;background:var(--rose);border-radius:3px}.count{background:#f0e7ec;padding:2px 7px;border-radius:5px;font-size:11px;margin-left:6px}.active .count{background:#efd6e1}.list-toolbar{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);padding:10px 0}.unpaid{display:flex;gap:6px;align-items:center;cursor:pointer}.orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:border-color .18s,transform .18s}.card:hover{border-color:#d6a6bb;transform:translateY(-2px)}.card-head{display:flex;justify-content:space-between;align-items:center;padding:15px 18px 12px;font-size:12px}.order-number{font-weight:700;letter-spacing:.3px}.status{font-size:11px;color:var(--muted);display:flex;gap:6px;align-items:center}.status i{width:6px;height:6px;border-radius:50%;background:#b77a93}.status.s1 i{background:#729981}.status.s2 i{background:#aaa}.card-main{display:grid;grid-template-columns:100px 1fr;gap:15px;padding:0 18px;cursor:pointer;width:100%;text-align:left}.card-main img{width:100px;height:112px;object-fit:cover;border-radius:9px;background:var(--pink)}h3{font-size:17px;line-height:1.3;margin:3px 0 8px;font-weight:650}.time{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:6px}.time small{font-size:11px;color:var(--muted);font-weight:400}.delivery{font-size:12px;color:var(--muted);line-height:1.5;margin-top:8px}.address{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.payment-row{display:flex;align-items:center;justify-content:space-between;padding:15px 18px 13px}.paid{font-size:11px;background:#edf5f0;color:var(--green);padding:5px 8px;border-radius:5px;font-weight:600}.notpaid{background:#fff3e3;color:#8a5611}.amount{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}.amount small{font-weight:400;font-size:11px;color:var(--muted)}.card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #f2e9ee;padding:11px 18px}.note-button{font-size:12px;display:flex;align-items:center;gap:5px;color:var(--rose);padding:9px 0}.note-button svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.6}.primary{border-radius:8px;padding:11px 16px;background:var(--rose);color:white;font-size:12px;font-weight:650}.primary:hover{background:#8e2f58}.next{background:var(--pink);color:#853652;border-radius:8px;padding:10px 15px;font-size:12px;font-weight:650}.next:hover{background:#efd1de}.secondary{border:1px solid var(--line);padding:10px 14px;border-radius:8px;font-size:12px}.no-note{font-size:11px;color:var(--muted)}.empty{grid-column:1/-1;text-align:center;background:white;border:1px dashed #dcc4cf;border-radius:14px;padding:60px 20px}.empty h2{font:26px Georgia;margin:0 0 12px}.empty p{font-size:14px;color:var(--muted)}footer{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px 0 35px}footer button{text-decoration:underline;text-underline-offset:3px;font-size:11px;white-space:nowrap}dialog{border:0;color:var(--ink);padding:0;background:white;border-radius:16px;box-shadow:0 24px 100px #30202838;max-height:92dvh;width:520px;max-width:calc(100% - 24px)}dialog::backdrop{background:#35273066}.detail-image{width:100%;height:260px;object-fit:cover;display:block}.detail-top{position:relative}.close{position:absolute;top:14px;right:14px;background:white;width:34px;height:34px;border-radius:50%;font-size:24px;z-index:2;box-shadow:0 2px 9px #35273014}.detail-body{padding:24px}.detail-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.detail-body h2{font:29px Georgia;margin:10px 0 6px}.muted{color:var(--muted);font-size:12px}.detail-grid{margin-top:22px;display:grid;gap:0}.field{padding:14px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:110px 1fr;gap:14px;font-size:13px;line-height:1.55}.field>span{color:var(--muted);font-size:12px}.field a{color:var(--rose);text-underline-offset:3px}.field strong{font-weight:600}.field select{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:#fff;font-size:13px}.detail-bottom{display:flex;justify-content:space-between;gap:10px;margin-top:16px}.detail-bottom button{flex:1}.history{font-size:11px;color:var(--muted);margin-top:20px}.detail-note{white-space:pre-wrap;font-size:14px;line-height:1.7;background:var(--bg);padding:16px;border-radius:8px}.detail-note p{margin:0}#note{padding:36px;text-align:center;background:#fff9fb}#note h2{font:27px Georgia}#note-text{white-space:pre-wrap;font:20px/1.6 Georgia;margin:28px 0}.note-icon{font-size:32px;color:var(--rose)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#352730;color:#fff;border-radius:10px;padding:13px 20px;box-shadow:0 6px 24px #35273022;z-index:10;display:none;font-size:13px;max-width:calc(100% - 24px);width:max-content}#toast button{color:#f5b4cf;text-decoration:underline;margin-left:12px}.show{display:block!important}::-webkit-scrollbar{width:7px}::-webkit-scrollbar-thumb{background:#dbc4cf;border-radius:7px}@media(min-width:1250px){.orders{grid-template-columns:repeat(3,minmax(0,1fr))}.card-main{grid-template-columns:85px 1fr;gap:12px}.card-main img{width:85px;height:108px}.card-main h3{font-size:15px}.time{font-size:14px}.time small{display:none}}@media(max-width:650px){.app{padding:0 18px}header{height:80px;gap:10px}.brand{font-size:23px;gap:7px}.flower{font-size:33px}.brand small{font-size:7px;letter-spacing:1.5px}.demo{font-size:0}.demo i{width:7px;height:7px}.heading{padding:25px 0 22px}h1{font-size:28px;max-width:260px;line-height:1.1;letter-spacing:-.5px}.heading p{font-size:12px;max-width:240px;line-height:1.5}.day-label{display:none}.toolbar{flex-direction:column;gap:12px;align-items:stretch}.dates{align-self:flex-start}.search{min-width:0}.tabs{gap:0;justify-content:space-between;margin-top:10px}.tabs button{font-size:12px}.count{margin-left:3px;padding:2px 5px}.orders{grid-template-columns:1fr;gap:13px}.list-toolbar{font-size:11px}.card-main{grid-template-columns:100px 1fr}.card-main img{height:108px}.time small{font-size:10px}footer{display:block;line-height:1.7}footer button{display:block;padding:8px 0}dialog#details{max-width:100%;width:100%;margin:auto 0 0;max-height:95dvh;border-radius:18px 18px 0 0}.detail-image{height:240px}.detail-body{padding:20px}.field{grid-template-columns:95px 1fr}.detail-body h2{font-size:26px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Responsive controls stay readable and easy to tap on narrow phones. */
:root{font-family:"Segoe UI",Arial,sans-serif}
.brand small{font-size:11px;letter-spacing:1px}
.time{flex-wrap:wrap;white-space:nowrap;gap:4px 8px}
.time small{white-space:nowrap}
.card-main>div{min-width:0}
.next,.primary,.secondary,.note-button,.avatar,.close{min-height:44px}
.avatar,.close{min-width:44px}
.tabs{position:sticky;top:0;background:var(--bg);z-index:3}
.tabs button{min-height:48px}
.detail-bottom{position:sticky;bottom:0;background:white;padding:12px 0 max(12px,env(safe-area-inset-bottom))}
@media(max-width:650px){
 .brand small{font-size:10px;letter-spacing:1px}
 .app{padding:0 16px}
 .search{height:48px}
 .search input,.field select{font-size:16px}
 .dates button,.calendar{min-height:44px;display:flex;align-items:center;padding:10px 12px}
 .tabs{gap:18px;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}
 .tabs button{font-size:14px;flex-shrink:0}
 .tabs::-webkit-scrollbar{display:none}
 .time{align-items:flex-start;flex-direction:column;gap:3px}
 .time small{font-size:11px}
 .card-main{grid-template-columns:88px minmax(0,1fr);gap:12px}
 .card-main img{width:88px;height:112px}
 .card-head,.payment-row,.card-actions{padding-left:14px;padding-right:14px}
 .card-main{padding:0 14px}
 .delivery{font-size:13px}
 .paid,.status,.no-note{font-size:12px}
 .unpaid{min-height:44px}
 .unpaid input{width:18px;height:18px}
 .next,.primary,.secondary,.note-button{font-size:13px}
 .field{grid-template-columns:1fr;gap:6px;font-size:15px}
 .field>span{font-size:13px}
 .detail-image{height:280px;object-fit:contain;background:var(--bg)}
 #toast{bottom:calc(16px + env(safe-area-inset-bottom));line-height:1.5}
}
@media(min-width:651px) and (max-width:900px){.app{padding:0 24px}.toolbar{gap:12px}.search{min-width:240px}.card-main{grid-template-columns:80px minmax(0,1fr);gap:12px}.card-main img{width:80px}.time small{display:block}}
@media(hover:none){.card:hover{transform:none}}
