/* Personal tier board: the hierarchy is the interface. */
.top.glass-rail{position:static;width:min(960px,calc(100% - 48px));margin:0 auto;padding:18px 0;border:0;border-radius:0;box-shadow:none;background:none;backdrop-filter:none}
.top.glass-rail::before,.top.glass-rail::after{display:none}
.top .logo{font-size:20px;letter-spacing:-.7px}
main#content{width:min(960px,calc(100% - 48px));margin:30px auto 48px}
.taste-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px}
.taste-heading h1{font-size:32px;font-weight:600;letter-spacing:-1.3px;line-height:1.2;margin:0 0 8px}
.taste-heading p{color:var(--subtle);margin:0;font-size:14px}
.taste-heading>.btn{flex-shrink:0;min-height:44px;padding:11px 20px}
.board-storage{margin:0 0 20px;color:var(--subtle);font-size:12px}
.board-storage a{color:inherit;text-underline-offset:3px}
#board-status:empty{display:none}
#board-status{margin-bottom:12px;color:var(--subtle);font-size:13px}
.tier-board{border-top:1px solid var(--line)}
.tier-row{display:grid;grid-template-columns:48px minmax(0,1fr) 32px;align-items:center;gap:16px;min-height:64px;padding:12px 0;border-bottom:1px solid var(--line)}
.tier-label{display:grid;place-items:center;width:40px;height:40px;margin:0;border-radius:9px;font-size:17px;font-weight:600;letter-spacing:-.5px;color:#30343B}
.tier-1{--tier-color:#EBC8CB}.tier-2{--tier-color:#ECD3BE}.tier-3{--tier-color:#E9DCB0}.tier-4{--tier-color:#CFE1BD}.tier-5{--tier-color:#BCDDD1}.tier-6{--tier-color:#C6DAEA}.tier-7{--tier-color:#D0CEEA}.tier-8{--tier-color:#DDDFE4}
.tier-label,.tier-choice{background:var(--tier-color)}
.tier-items{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;min-width:0}
.tier-add{width:32px;height:40px;border:0;border-radius:8px;background:none;color:var(--subtle);font-size:22px;font-weight:400}
.tier-add:hover{background:var(--field);color:var(--acc)}
.taste-card{width:90px;padding:0;min-width:0;text-align:left;color:var(--ink);background:none;border:0;border-radius:10px;transition:transform .15s ease}
.taste-card:hover{transform:translateY(-2px)}
.product-photo{position:relative;display:grid;place-items:center;overflow:hidden;background:#F8FAFC;border-radius:10px;isolation:isolate}
.taste-card .product-photo{width:90px;height:86px}
.product-photo img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;padding:7px;z-index:1}
.photo-placeholder{color:#687381;font-size:23px;font-weight:500;line-height:1}
.taste-card .product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;font-weight:500;line-height:1.35;margin-top:6px;overflow-wrap:anywhere}
.taste-card .product-brand{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:var(--subtle);margin-top:2px}
.taste-dialog{position:fixed;inset:8dvh 0 auto;margin:0 auto;padding:24px;width:min(560px,calc(100% - 32px));max-height:85dvh;overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:var(--popup-shadow)}
.taste-dialog::backdrop{background:rgba(5,12,22,.42);backdrop-filter:blur(3px)}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.dialog-heading h2{margin:0;font-size:21px;font-weight:600;letter-spacing:-.5px}
.dialog-close{display:grid;place-items:center;background:none;border:0;color:var(--subtle);font-size:26px;border-radius:8px;width:36px;height:36px;flex-shrink:0}
.dialog-close:hover{background:var(--field)}
.picker-search{display:flex;gap:8px}
.picker-search input{width:100%;min-width:0;min-height:46px;border-radius:10px;border:1px solid var(--line);padding:10px 12px;color:var(--ink);background:var(--field);font-size:16px}
.picker-search .btn{padding:9px 14px;flex-shrink:0}
.picker-tools{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;margin:14px 0 6px;font-size:13px}
.picker-tools a,.editor-actions a{color:var(--acc);text-underline-offset:3px}
.picker-hint{font-size:11px;color:var(--subtle);margin:4px 0 12px}
.picker-message{font-size:13px;color:var(--subtle);margin:16px 0 8px}
.picker-message:empty{display:none}
.picker-message.is-error,#board-status.is-error{color:var(--error)}
.picker-results{margin-top:12px}
.picker-result{display:flex;align-items:center;gap:14px;width:100%;min-width:0;text-align:left;color:var(--ink);background:none;border:0;border-top:1px solid var(--line);padding:12px 0;border-radius:0}
.picker-result:hover{background:var(--field)}
.picker-result .product-photo{width:62px;height:62px;flex-shrink:0}
.picker-result .result-copy{display:block;flex:1;min-width:0}
.picker-result .product-name{display:block;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.picker-result .product-brand{display:block;color:var(--subtle);font-size:12px;margin-top:4px;overflow-wrap:anywhere}
.result-tier{font-size:12px;color:var(--acc);padding:0 5px}
.editor-product{display:flex;align-items:center;gap:16px;margin-bottom:24px;min-width:0}
.editor-product .product-photo{width:88px;height:88px;flex-shrink:0}
.editor-product .product-name{font-size:17px;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.editor-product .product-brand{display:block;color:var(--subtle);font-size:13px;margin-top:5px;overflow-wrap:anywhere}
.tier-choices{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}
.tier-choice{border:2px solid transparent;border-radius:9px;min-height:44px;color:#30343B;font-weight:600;font-size:15px;padding:6px 0}
.tier-choice[aria-pressed=true]{border-color:var(--ink);box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--acc)}
.editor-actions{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin-top:24px;font-size:12px}
.editor-actions .btn{margin-right:auto}
.editor-actions .remove-entry{color:var(--error)}
footer{width:min(960px,calc(100% - 48px));margin:0 auto;padding:16px 0 24px;justify-content:space-between;border:0;font-size:11px;gap:8px 20px}
footer small{font-size:10px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){
  .top.glass-rail{width:calc(100% - 32px);padding:13px 0;min-height:54px}
  .top nav{gap:12px}.top .logo{font-size:19px}.top .lnk{font-size:12px}
  main#content{width:calc(100% - 32px);margin-top:22px}
  .taste-heading{gap:12px;align-items:flex-start;flex-direction:column;margin-bottom:14px}
  .taste-heading h1{font-size:28px}.taste-heading p{font-size:13px}
  .taste-heading>.btn{width:100%;min-height:44px;padding:10px 16px}
  .board-storage{font-size:11px;line-height:1.6;margin-bottom:16px}
  .tier-row{grid-template-columns:36px minmax(0,1fr) 28px;gap:10px;padding:10px 0;min-height:58px}
  .tier-label{width:34px;height:36px;font-size:15px;border-radius:8px}
  .tier-items{gap:10px}.taste-card{width:76px}.taste-card .product-photo{width:76px;height:76px}
  .tier-add{width:28px;min-height:40px}
  .taste-dialog{padding:18px;width:calc(100% - 24px);max-height:90dvh;border-radius:15px}
  .dialog-heading{margin-bottom:16px}.dialog-heading h2{font-size:20px}
  .tier-choices{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .editor-actions{gap:14px}.editor-actions .btn{width:100%}
  footer{width:calc(100% - 32px);flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){.taste-card{transition:none}.taste-card:hover{transform:none}}
