/* The reference art is split into a room backdrop, a bow, floral sprigs and
   an SVG lace tile. All controls and copy remain real HTML and Flask data. */
body.reference-ui{
  --paper:#fff8f9;--ink:#642b32;--muted:#9a737d;--accent:#d4507c;
  --accent-hover:#c0446d;--soft:#ffe6ed;--pale:#fff4f6;--border:#f4c4d0;
  color:var(--ink);background:#fbe7e9 url('visual/room-backdrop.webp') center top / max(100vw, 1672px) auto no-repeat;
}
.reference-ui .ui-arrow{
  display:inline-block;vertical-align:middle;width:18px;height:18px;flex:none;
  stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
.reference-ui .public-header nav .ui-arrow{margin-left:7px;width:16px;height:16px}
.reference-ui .search-form button .ui-arrow{margin-left:9px;width:16px;height:16px}
.reference-ui .board-card-copy .ui-arrow{width:19px;height:19px}
.reference-ui .hero-link .hero-link-arrow .ui-arrow{width:18px;height:18px}
.reference-ui .container{width:min(1290px,calc(100% - 64px))}
.reference-ui .announcement{
  height:44px;display:flex;justify-content:center;align-items:flex-start;
  background:transparent;color:#c75c7c;padding:7px 12px 0;font-size:12px;
  letter-spacing:.04em;position:relative;z-index:2;
}
.reference-ui .announcement span{padding:0 7px}
body.reference-ui .public-header{
  height:106px;padding:0 52px;position:relative;z-index:2;
  background:rgba(fff,250,251,.12);
}
.reference-ui .brand{gap:15px;font-size:30px;letter-spacing:.06em;color:#55232b}
.reference-ui .brand small{font-size:13px;letter-spacing:.2em;color:#a46e79;margin-top:-1px}
.reference-ui .brand-symbol{font-size:56px;width:52px;height:58px;color:#ee4e7f}
.reference-ui .logo{height:58px;width:58px}
.reference-ui .public-header nav{gap:42px;font-size:16px;align-items:center}
.reference-ui .public-header nav a:last-child{color:#df4a76}
.reference-ui .public-header nav a:hover,.reference-ui .category-tabs a:hover{color:#bd365f}
.reference-ui .home-container{position:relative;width:min(1310px,calc(100% - 32px))}
.reference-ui .ambient-script{
  position:absolute;left:-146px;top:64px;z-index:1;pointer-events:none;
  transform:rotate(-12deg);font:italic 26px/1.25 'Segoe Script','Brush Script MT',cursive;
  color:#e6879b;text-align:center;text-shadow:0 1px #fff;
}
.reference-ui .home-container .hero{
  display:grid;grid-template-columns:565px minmax(0,1fr);gap:19px;
  width:100%;height:472px;min-height:0;padding:13px 13px 13px 15px;margin-left:11px;
  position:relative;overflow:visible;
  border:2px solid rgba(255,255,255,.96);border-radius:36px;
  background:rgba(255,248,249,.78);
  box-shadow:0 12px 30px #b55a7433,inset 0 0 0 2px #f8d1dc;
}
.reference-ui .home-container .hero::after{
  content:'';position:absolute;inset:auto 18px -8px 18px;height:32px;
  background:url('visual/lace-trim.svg') repeat-x left center/180px 34px;
  pointer-events:none;opacity:.94;z-index:4;
}
.reference-ui .hero-ribbon{
  position:absolute;width:92px;height:68px;object-fit:contain;
  top:-26px;left:36.5%;z-index:5;pointer-events:none;
  filter:drop-shadow(0 4px 5px #c45f7a55);
}
.reference-ui .home-container .hero-copy{
  min-width:0;height:442px;padding:32px 39px 35px;
  border:1px solid rgba(248,194,209,.9);border-radius:27px;
  background:rgba(255,251,251,.88);box-shadow:inset 0 0 0 4px #fff6f7;
  display:flex;flex-direction:column;align-items:flex-start;
}
.reference-ui .skin-pearl .home-container .hero-copy{background:rgba(255,251,251,.88)}
.reference-ui .home-container .hero-copy::before,
.reference-ui .home-container .hero-copy::after{
  content:'';position:absolute;pointer-events:none;
  background:url('visual/flower-sprig.webp') center/contain no-repeat;opacity:.94;
}
.reference-ui .home-container .hero-copy::before{width:62px;height:90px;left:-13px;top:116px;transform:rotate(-18deg)}
.reference-ui .home-container .hero-copy::after{width:70px;height:99px;right:8px;top:auto;bottom:2px;transform:rotate(19deg)}
.reference-ui .hero .eyebrow{font-size:13px;letter-spacing:.04em;color:#e44770;font-weight:700;gap:10px}
.reference-ui .eyebrow i{background:#e44770;width:8px;height:8px}
.reference-ui .hero h1{
  font-family:'Songti SC','Noto Serif CJK SC','SimSun',serif;
  font-size:48px;line-height:1.2;letter-spacing:.025em;font-weight:500;
  margin:24px 0 6px;color:#5b1e24;white-space:nowrap;overflow-wrap:normal;
}
.reference-ui .hero-copy>p{font-size:19px;letter-spacing:.02em;color:#94727a;max-width:100%}
.reference-ui .hero-actions{
  display:grid;grid-template-columns:repeat(2,228px);gap:13px 14px;
  margin-top:29px;margin-left:11px;max-width:calc(100% - 11px);
}
.reference-ui .hero-link{
  width:228px;height:62px;min-width:0;margin:0;padding:8px 15px 8px 24px;
  position:relative;justify-content:space-between;gap:10px;
  background:linear-gradient(180deg,#e26a8b 0%,#d7527d 56%,#ce4b76 100%);
  border:2px solid #f9bccc;border-radius:34px;color:#fff;
  box-shadow:0 5px 10px #bb4e7340,inset 0 2px 0 #ffcad8;
  font-family:'Songti SC','SimSun',serif;
}
.reference-ui .hero-link::before{
  content:'';position:absolute;left:14px;top:-18px;width:48px;height:33px;
  background:url('visual/lace-bow.webp') center/contain no-repeat;pointer-events:none;
}
.reference-ui .hero-link-heart{font-size:28px;line-height:1;flex:0 0 27px}
.reference-ui .hero-link .hero-link-text{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reference-ui .hero-link .hero-link-arrow{
  margin:0;width:36px;height:36px;flex:0 0 36px;
  background:rgba(255,255,255,.18);font-size:21px;
}
.reference-ui a.hero-link:hover{background:#c84970;transform:translateY(-2px)}
.reference-ui .owner{
  margin-top:auto;padding-top:13px;color:#e97495;font-size:17px;
  font-family:'Segoe Script','KaiTi',cursive;letter-spacing:.08em;
}
.reference-ui .owner-heart{background:none;font-size:28px;color:#ea5b83}
.reference-ui .home-container .hero-photo{
  min-width:0;height:442px;min-height:0;border-radius:28px;
  margin:0;border:0;overflow:hidden;background:#f6dadc;box-shadow:0 0 0 2px #fff;
}
.reference-ui .hero-photo>img{object-position:center center}
.reference-ui .hero-photo-script{
  position:absolute;top:36px;right:66px;z-index:2;transform:rotate(-9deg);
  color:#fff;text-shadow:0 2px 7px #7d374c9c;
  font:italic 26px/1.12 'Segoe Script','Brush Script MT',cursive;
  pointer-events:none;text-align:center;
}
.reference-ui .photo-label{
  right:20px;bottom:23px;padding:8px 17px;border-radius:22px;
  background:#fffaf5ea;color:#693542;font:15px 'Songti SC','SimSun',serif;
  box-shadow:0 3px 13px #5d303333;
}
.reference-ui .home-container .collection{
  position:relative;margin-top:17px;margin-left:4px;width:calc(100% - 8px);
  min-height:304px;padding:27px 35px 29px;
  background:rgba(255,250,251,.94);border:2px solid #fff;border-radius:29px;
  box-shadow:0 12px 30px #b55a742e,inset 0 0 0 2px #fbd8e1;
}
.reference-ui .home-container .collection::before,
.reference-ui .home-container .collection::after{
  content:'';position:absolute;left:12px;right:12px;width:auto;height:29px;
  background:url('visual/lace-trim.svg') left center/180px 34px repeat-x;
  opacity:.94;pointer-events:none;z-index:1;transform:none;
}
.reference-ui .home-container .collection::before{top:-12px}
.reference-ui .home-container .collection::after{bottom:-13px}
.reference-ui .collection-ribbon{
  width:88px;height:61px;object-fit:contain;position:absolute;
  right:85px;top:-32px;z-index:2;pointer-events:none;
}
.reference-ui .home-container .section-head{
  margin:0 45px 34px;padding:0;
  border-bottom:1px dashed #f5c5d3;
}
.reference-ui .section-head .eyebrow{font-size:13px;letter-spacing:.1em;color:#dd5b7d}
.reference-ui .section-head h2{
  font:500 31px/1.35 'Songti SC','SimSun',serif;
  color:#61292f;letter-spacing:.03em;margin-top:4px;
}
.reference-ui .heading-heart{color:#ea6e92;margin-left:12px;font-size:35px}
.reference-ui .collection-count{font-size:13px;color:#e0678a}
.reference-ui .search-form{
  height:61px;min-height:61px;max-width:calc(100% - 88px);
  margin:0 45px;padding:5px 6px 5px 29px;border:1px solid #f4c4d0;
  border-radius:35px;background:rgba(255,255,255,.96);
  box-shadow:inset 0 1px 4px #ecc5cb55;
}
.reference-ui .search-form input{font-size:16px}
.reference-ui .search-form input::placeholder{color:#bb969e}
.reference-ui .search-form button{
  min-width:153px;border-radius:28px;font-size:18px;
  font-family:'Songti SC','SimSun',serif;
  background:linear-gradient(180deg,#e36b8e,#cf4c76);box-shadow:inset 0 2px #ffcfda;
}
.reference-ui .search-icon{height:18px;width:18px;border-color:#b27a88;margin-right:22px}
.reference-ui .search-icon::after{background:#b27a88}
.reference-ui .home-container .filters{margin:14px 0 0 7px;align-items:center;gap:8px}
.reference-ui .home-container .category-tabs{
  flex:1;justify-content:flex-start;align-items:center;gap:48px;
  overflow:visible;flex-wrap:wrap;
}
.reference-ui .category-tabs a{
  position:relative;padding:8px 18px;border-radius:28px;
  color:#5f3f45;font-size:16px;line-height:1.4;
}
.reference-ui .category-tabs a:not(:last-child)::after{
  content:'';width:20px;height:20px;position:absolute;right:-34px;top:50%;
  transform:translateY(-50%);background:url('visual/flower-chip.svg') center/contain no-repeat;
  pointer-events:none;
}
.reference-ui .category-tabs .board-tab::after{display:none}
.reference-ui .category-tabs a.active{color:#d04b73;background:#ffe8ef;border-color:#ed91aa}
.reference-ui .home-container .category-tabs .board-tab{padding:8px 23px;border-color:#ec8ba7}
.reference-ui .home-container .category-tabs .board-tab{margin-right:0}
.reference-ui .home-container .category-tabs .board-tab::before{font-size:22px}
.reference-ui .board-grid,.reference-ui .clothes-grid{position:relative;z-index:2}
.reference-ui .board-card,.reference-ui .clothes-card .card-photo{
  border-radius:20px;border-color:#f4bfce;box-shadow:0 8px 20px #b95d7430;
}
.reference-ui .board-card{background:#fffafa}
.reference-ui .empty-state{background:rgba(255,252,252,.8);border-radius:22px}
.reference-ui .board-empty{margin-top:55px}
.reference-ui .site-footer{
  width:min(800px,calc(100% - 64px));max-width:800px;
  display:flex;flex-direction:column;align-items:center;gap:12px;
  margin:30px auto 32px;padding:24px 30px 27px;
  border:1px solid #f3d0db;border-radius:22px;
  background:rgba(255,250,251,.9);box-shadow:0 8px 24px #b95d7412;
  text-align:center;line-height:1.65;
}
.reference-ui .site-footer>div{width:100%;max-width:100%;margin:0}
.reference-ui .footer-brand{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:16px}
.reference-ui .site-footer p{margin:5px 0 0;color:#9b737d}
.reference-ui .site-footer>div:last-child{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 9px;
  margin:0;padding-top:12px;border-top:1px dashed #f1ccd7;text-align:center;
}
.reference-ui .site-footer>div:last-child p{flex:0 0 100%;margin:0 0 2px}
.reference-ui .site-footer .footer-dot{margin:0}

@media(max-width:1350px){
  .reference-ui .home-container .hero{grid-template-columns:minmax(0,44%) minmax(0,1fr)}
  .reference-ui .hero-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .reference-ui .hero-link{width:100%}
  .reference-ui .hero h1{font-size:clamp(30px,3.3vw,46px)}
  .reference-ui .category-tabs a{padding-inline:12px}
}
@media(max-width:900px){
  body.reference-ui{background-size:auto 941px;background-position:center top}
  .reference-ui .container{width:calc(100% - 36px)}
  body.reference-ui .public-header{padding:0 15px}
  .reference-ui .home-container .hero{height:auto;grid-template-columns:1fr;gap:12px}
  .reference-ui .home-container .hero-copy{height:auto;min-height:360px}
  .reference-ui .home-container .hero-photo{height:400px}
  .reference-ui .hero-ribbon{left:calc(50% - 46px)}
  .reference-ui .ambient-script{display:none}
}
@media(max-width:640px){
  body.reference-ui{background:#fff0f2 url('visual/room-backdrop.webp') center top / auto 500px no-repeat}
  .reference-ui .announcement{height:34px;font-size:11px;padding-top:5px}
  body.reference-ui .public-header{height:82px;padding:0 5px}
  .reference-ui .brand{font-size:17px;gap:6px;white-space:nowrap}
  .reference-ui .brand small{font-size:9px;letter-spacing:.1em}
  .reference-ui .brand-symbol{width:38px;height:43px;font-size:42px}
  .reference-ui .public-header nav{font-size:13px;gap:0}
  .reference-ui .home-container .hero{display:flex;flex-direction:column-reverse;margin-left:0;padding:8px;border-radius:27px;gap:8px}
  .reference-ui .home-container .hero-photo{height:260px;min-height:0;border-radius:21px}
  .reference-ui .home-container .hero-copy{min-height:0;padding:24px 18px 22px;border-radius:20px}
  .reference-ui .hero .eyebrow{font-size:11px}
  .reference-ui .hero h1{font-size:clamp(25px,7vw,33px);white-space:normal;margin:12px 0 9px}
  .reference-ui .hero-copy>p{font-size:14px}
  .reference-ui .hero-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px;margin-top:27px}
  .reference-ui .hero-actions .hero-link{height:49px;padding:6px 6px!important;gap:3px!important}
  .reference-ui .hero-link::before{width:32px;height:23px;top:-13px;left:6px}
  .reference-ui .hero-link-heart{font-size:18px;flex-basis:17px}
  .reference-ui .hero-actions .hero-link-text{font-size:12px!important;text-overflow:clip}
  .reference-ui .hero-link .hero-link-arrow{height:24px;width:24px;flex-basis:24px;font-size:15px}
  .reference-ui .owner{font-size:12px;padding-top:18px}
  .reference-ui .hero-photo-script{font-size:16px;right:18px;top:22px}
  .reference-ui .hero-photo-script{display:none}
  .reference-ui .home-container .hero-copy::before,.reference-ui .home-container .hero-copy::after{display:none}
  .reference-ui .photo-label{font-size:12px;right:10px;bottom:10px}
  .reference-ui .hero-ribbon{width:62px;height:48px;top:-23px;left:auto;right:30px}
  .reference-ui .home-container .collection{margin:16px 0 0;width:100%;padding:22px 13px;border-radius:25px}
  .reference-ui .collection-ribbon{width:60px;height:46px;right:20px;top:-24px}
  .reference-ui .home-container .section-head{margin:0 5px 15px;padding:4px 0 8px}
  .reference-ui .section-head .eyebrow{font-size:11px}
  .reference-ui .section-head h2{font-size:25px}
  .reference-ui .heading-heart{font-size:26px}
  .reference-ui .collection-count{font-size:11px}
  .reference-ui .search-form{max-width:100%;margin:0;height:53px;min-height:53px;padding-left:14px}
  .reference-ui .search-form input{font-size:12px}
  .reference-ui .search-form button{min-width:87px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:7px 8px;font-size:13px;white-space:nowrap}
  .reference-ui .search-form button .ui-arrow{margin:0;width:14px;height:14px}
  .reference-ui .search-icon{width:14px;height:14px;margin-right:9px}
  .reference-ui .home-container .filters{margin:14px 0 20px;display:block}
  .reference-ui .home-container .category-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:0;width:100%}
  .reference-ui .home-container .category-tabs a,
  .reference-ui .home-container .category-tabs .board-tab{
    grid-column:span 2;display:flex;align-items:center;justify-content:center;min-width:0;min-height:40px;
    margin:0;padding:6px 5px;border:1px solid #f3d1dc;border-radius:15px;
    background:rgba(255,251,252,.86);font-size:12px;text-align:center;
    white-space:normal;line-height:1.25;
  }
  .reference-ui .home-container .category-tabs a.active{background:#ffe8ef;border-color:#ed91aa}
  .reference-ui .home-container .category-tabs a::after{display:none}
  .reference-ui .home-container .category-tabs .board-tab::before{font-size:17px;margin-right:3px}
  .reference-ui .home-container .category-tabs a:nth-last-child(2):nth-child(3n + 1){grid-column:2 / span 2}
  .reference-ui .home-container .category-tabs a:last-child:nth-child(3n + 2){grid-column:4 / span 2}
  .reference-ui .home-container .category-tabs a:last-child:nth-child(3n + 1){grid-column:3 / span 2}
  .reference-ui .site-footer{
    width:calc(100% - 36px);margin:20px auto 26px;padding:18px 18px 20px;
    display:flex;flex-direction:column;align-items:center;gap:10px;
    text-align:center;background:rgba(255,250,251,.91);border:1px solid #f3d0db;
    box-shadow:0 8px 22px #b95d7414;
  }
  .reference-ui .site-footer>div{width:100%;max-width:100%;margin:0}
  .reference-ui .footer-brand{display:inline-flex;align-items:center;gap:6px;font-size:16px;line-height:1.4}
  .reference-ui .site-footer p{margin:5px 0 0;color:#9b737d;font-size:12px;line-height:1.65}
  .reference-ui .site-footer>div:last-child{
    margin:0;padding-top:10px;border-top:1px dashed #f1ccd7;
    display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
    gap:4px 8px;text-align:center;
  }
  .reference-ui .site-footer>div:last-child p{flex:0 0 100%;margin:0 0 2px}
  .reference-ui .site-footer .footer-dot{margin:0}
  .reference-ui .board-grid{gap:12px}
  .reference-ui .clothes-card .card-photo .status-pill{left:auto;right:8px;top:8px}
}
