/* Narin Alimi · Soft pink + sky mobile interface
   Clean responsive layout for iPhone-size viewports.
   All alert logic stays in existing JavaScript. */
:root{
  color-scheme:light;
  --ink:#344151;--muted:#718092;--subtle:#8f9caf;
  --line:#e6edf3;--panel:#fff;--bg:#f8fbff;
  --pink:#d88eb2;--pink-dark:#96577a;--pink-tint:#fff0f6;
  --sky:#7daecf;--sky-dark:#487e9f;--sky-tint:#ebf6ff;
  --shadow:0 4px 16px rgba(86,105,129,.045);
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
}
*{box-sizing:border-box}
html{min-width:320px;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;background:var(--bg)}
body{margin:0;min-width:320px;max-width:100%;overflow-x:hidden;color:var(--ink);
  background:linear-gradient(180deg,#eff8ff 0,#fdf8fc 260px,#f8fbfe 100%);font-size:14px;line-height:1.55}
button,input,textarea,select,summary{font:inherit}
button,a,summary{-webkit-tap-highlight-color:transparent}
button{touch-action:manipulation;cursor:pointer}
button:disabled{opacity:.57;cursor:wait}
a{color:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:2px solid #6cafd6;outline-offset:3px}
.shell{width:100%;max-width:596px;padding:calc(14px + env(safe-area-inset-top,0px)) 15px max(40px,env(safe-area-inset-bottom,0px));margin:0 auto}
h1,h2,h3,p{overflow-wrap:break-word}
h1,h2,h3{letter-spacing:-.035em}
button{border:0;border-radius:12px;font-size:14px;font-weight:750;min-height:44px;padding:10px 15px;max-width:100%}
input,textarea{border:1px solid #dce6ef;background:#fff;border-radius:11px;color:var(--ink);
  width:100%;max-width:100%;min-width:0;font-size:16px;line-height:1.45;outline-offset:2px;padding:12px 13px}
input::placeholder,textarea::placeholder{color:#a4aebc}
textarea{resize:vertical;min-height:76px}
button:active,.narin-service:active{transform:scale(.995)}
button:not(:disabled):hover{filter:brightness(.98)}
/* Compact mobile tab navigation */
.page-nav,.nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 13px;align-items:center}
.page-nav a,.nav a{min-width:0;text-align:center;min-height:42px;display:flex;align-items:center;
  justify-content:center;border-radius:11px;padding:8px 4px;background:#fff;border:1px solid #e7edf4;
  text-decoration:none;color:#607287;font-size:13px;font-weight:720;white-space:nowrap}
.page-nav a[aria-current="page"],.nav a[aria-current="page"]{
  color:#985b7d;background:#ffe8f2;border-color:#f3d5e3}
.page-nav a:hover,.nav a:hover{border-color:#d1dfe9}
/* Shared headers */
.hero{border:1px solid #e3edf3;background:linear-gradient(120deg,#e9f5ff 0%,#fff5fa 100%);
  border-radius:20px;padding:20px 18px;margin:0 0 12px;box-shadow:none;overflow:hidden}
.hero:before,.hero:after{display:none}
.hero-content{position:relative}
.hero-row,.hero-title,.hero-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hero-row>div,.hero-head>div{min-width:0;flex:1}
.hero-row h1,.hero-title h1,.hero-head h1{font-size:24px;font-weight:820;margin:3px 0 5px;line-height:1.22;color:#394b5e}
.hero h1{font-size:24px;font-weight:820;color:#394b5e;line-height:1.25;margin:3px 0 5px}
.hero p,.hero-sub{font-size:13px;line-height:1.55;color:#71829a;margin:5px 0 0}
.hero-stamp,.hero .bear,.hero-head img{width:53px;height:53px;min-width:53px;flex:0 0 53px;object-fit:cover;
  background:rgba(255,255,255,.77);border-radius:15px;box-shadow:none;transform:none}
.micro,.mini,.eyebrow,.narin-eyebrow{font-size:10px;line-height:1.4;letter-spacing:1px;color:#b27998;font-weight:790}
.hero-sub{margin:6px 0}
.connection{display:flex;gap:7px;align-items:center;flex-wrap:wrap;
  border-top:1px solid rgba(145,172,190,.25);padding-top:11px;margin-top:12px}
.connection-label{font-size:12px;color:#657a8e;font-weight:670}
.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#92bacf}
.pill{display:inline-flex;align-items:center;justify-content:center;
  padding:6px 9px;background:#f0f4f8;color:#668197;border-radius:9px;
  border:1px solid #e6edf3;font-size:11px;line-height:1.2;font-weight:760;max-width:100%;white-space:normal;text-align:center}
.pill.ok{background:#e9f7ef;color:#3b7b62;border-color:#dcece2}
.pill.warn{background:#fff0e7;color:#a66b43;border-color:#ffe2cf}
.connection .pill{background:#fff;border:1px solid #ddebf3}
.connection .pill.ok{background:#e9f7ef}
.connection .pill.warn{background:#fff0e7}
/* Home */
.narin-brandline{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:2px 0 14px;padding:0 1px}
.narin-brand{display:flex;align-items:center;gap:9px;text-decoration:none}
.narin-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:11px;
  background:var(--pink-tint);color:#cb7e9f;font-size:23px;line-height:1}
.narin-brand b{display:block;font-size:15px;font-weight:840;letter-spacing:-.5px}
.narin-brand small{display:block;font-size:9px;letter-spacing:.9px;color:var(--subtle);font-weight:730}
.narin-created{font-size:11px;color:#8291a2;white-space:nowrap}
body[data-page="home"] .hero{padding:22px 19px 18px;margin-bottom:17px}
body[data-page="home"] .hero-head{align-items:center}
body[data-page="home"] .hero-head h1{font-size:26px;letter-spacing:-.06em;margin:5px 0}
body[data-page="home"] .hero-head p{max-width:25em;font-size:12.5px;line-height:1.5}
body[data-page="home"] .hero-head img{width:61px;height:61px;flex-basis:61px;border-radius:16px}
.narin-channels{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}
.narin-channels span{border-radius:7px;font-size:11px;color:#668198;font-weight:660;
  background:rgba(255,255,255,.7);padding:5px 8px;border:1px solid rgba(217,229,239,.85)}
.narin-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 9px}
.narin-section-title h2{font-size:16px;font-weight:820;margin:0}
.narin-section-title span{font-size:11px;color:#91a0b0}
.narin-services{display:grid;grid-template-columns:1fr;gap:9px}
.narin-service{display:grid;grid-template-columns:43px minmax(0,1fr) 20px;align-items:center;gap:12px;
  border:1px solid #e2ebf1;border-radius:16px;padding:15px 14px;background:#fff;
  box-shadow:var(--shadow);text-decoration:none;min-width:0}
.narin-service-symbol{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;
  background:var(--sky-tint);color:var(--sky-dark);font-size:20px;line-height:1}
.narin-service[data-tone="pink"] .narin-service-symbol{background:var(--pink-tint);color:var(--pink-dark)}
.narin-service h3{font-size:16px;font-weight:810;line-height:1.3;color:#37485c;margin:0 0 4px}
.narin-service p{font-size:12px;line-height:1.45;color:var(--muted);margin:0}
.narin-service .meta{display:none}
.narin-go{font-size:22px;color:#adbac8;align-self:center}
.narin-help{margin:15px 1px 0;padding:10px 12px;border:1px solid #e6edf4;
  background:rgba(255,255,255,.75);border-radius:12px;display:flex;gap:9px;align-items:flex-start}
.narin-help i{font-style:normal;color:#c68eab}
.narin-help strong{font-size:12px;font-weight:770;display:block;color:#526a7e}
.narin-help p{font-size:11px;line-height:1.55;color:#8190a2;margin:2px 0 0}
/* Unified content panels */
body[data-page="queue"] .queue,
body[data-page="products"] .box,
body[data-page="stock"] .panel{
  background:var(--panel);border:1px solid #e4ebf2;border-radius:17px;
  padding:17px 16px;margin:11px 0;box-shadow:var(--shadow);min-width:0
}
body[data-page="products"] .box h2,body[data-page="stock"] .panel h2{
  color:#405369;font-size:16px;font-weight:810;margin:0 0 8px}
.help,.helptext,.muted,.note,.pc-remote-hint{
  color:#718093;font-size:12px;line-height:1.6;margin:5px 0 11px}
.field-label,.field{font-size:13px;font-weight:740;color:#526477;display:block;margin:11px 0 7px}
/* Queue overview cards */
.queue.live{border-left:3px solid #a4cfe7!important}
.queue.plus{border-left:3px solid #efb6d0!important}
.queue:before,.queue:after{display:none}
.queue-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.queue-identity{display:flex;align-items:center;gap:9px;min-width:0}
.queue-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;
  background:#eaf6ff;font-size:17px;flex:0 0 36px}
.plus .queue-icon{background:#fff0f6}
.queue-label{display:none}
.queue h2{font-size:15px;font-weight:800;margin:0;color:#3d5265}
.queue-top>.pill{flex:0 0 auto}
.queue .status{display:flex;flex-direction:column;justify-content:center;
  min-height:68px;margin:10px 0 7px;padding:13px 14px;border-radius:12px;
  border:1px solid #e9eff4;background:#f8fbfe;font-size:15px;line-height:1.5;
  font-weight:720;color:#486a83;white-space:pre-line;overflow-wrap:anywhere}
.queue.plus .status{background:#fff9fc;border-color:#f6e8f0;color:#9e5c7b}
.queue .pill{background:#edf6fc;color:#4d829f}
.queue.plus .pill{background:#fff0f6;color:#a9678a}
.queue .pill.ok,.queue.plus .pill.ok{background:#e9f7ef;color:#397963}
.queue .pill.warn,.queue.plus .pill.warn{background:#fff1e8;color:#a97049}
.queue-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.queue-stat{display:flex;flex-direction:column;gap:2px;min-width:0}
.queue-stat+.queue-stat{border-left:1px solid #dfe8f0;padding-left:14px}
.queue-stat span{font-size:11px;line-height:1.4;font-weight:600;color:#8795a4}
.queue-stat strong{font-size:23px;line-height:1.3;font-weight:820;letter-spacing:-1px;color:#437d9e;font-variant-numeric:tabular-nums;white-space:nowrap}
.queue.plus .queue-stat strong{color:#af678e}
.queue-ahead{margin-top:8px;font-size:12px;font-weight:780;color:#506e83}
.updated,.queue-diagnostics{font-size:11px;line-height:1.55;color:#8696a8;margin:5px 0;white-space:pre-line;overflow-wrap:anywhere}
.forecast{border:0;background:#f8f9fb;border-radius:10px;padding:9px 10px;
  color:#77869a;font-size:11px;line-height:1.6;margin:7px 0 0}
.forecast.active{color:#a66685;background:#fff3f8}
.queue-more{border-top:1px solid #edf1f5;margin-top:8px}
.queue-more summary{padding:10px 0 2px;min-height:38px;color:#6f8497;font-size:12px;font-weight:690}
.queue-more[open] summary{padding-bottom:9px}
.queue-more .queue-diagnostics{margin-top:3px}
/* Queue recovery, authentication and settings */
.phone-rescue{background:#fff;border:1px solid #e9e7ee;border-left:3px solid #dba0ba;
  border-radius:16px;padding:15px 16px;margin:11px 0;box-shadow:var(--shadow)}
.phone-rescue strong{font-size:14px;font-weight:790;color:#4a5e72}
.phone-rescue p{margin:6px 0 10px;font-size:12px;line-height:1.55;color:#758599}
.phone-rescue button{width:100%;background:#d88eb2;color:white}
.phone-rescue .result{min-height:1em;white-space:pre-line;overflow-wrap:anywhere}
.queue-auth-note{margin:12px 0;border:1px solid #efdfeb;background:#fffafd;
  border-radius:13px;padding:0 14px;color:#765b70}
.queue-auth-note>summary{font-size:12px;font-weight:750;color:#946c81;padding:12px 0}
.queue-auth-note p{font-size:12px;line-height:1.65;margin:2px 0 10px}
.queue-auth-links{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 13px}
.queue-auth-links a{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;
  min-height:40px;border-radius:9px;padding:7px;background:#fff0f6;color:#a16687;font-size:11px;font-weight:770}
.setup details,.more-info{background:#fff;border:1px solid #e5ecf2;border-radius:15px;margin-top:12px;overflow:hidden}
details>summary{list-style:none;cursor:pointer}
details>summary::-webkit-details-marker{display:none}
.setup summary,.more-info>summary{min-height:46px;display:flex;align-items:center;justify-content:space-between;
  padding:12px 15px;color:#4d6578;font-size:13px;font-weight:770}
.setup summary:after,.more-info>summary:after,.queue-more summary:after{content:"⌄";font-size:19px;color:#8fa3b5;line-height:1;margin-left:auto}
.details-inner,.more-info .details-inner{padding:13px 15px 16px;border-top:1px solid #ecf0f4}
.actions,.code-row{display:flex;gap:8px;margin-top:8px;min-width:0}
.actions>*{min-width:0}
.actions button{flex:1;background:#d992b4;color:#fff}
.actions button.alt,.remote-soft{background:#f0f4f7!important;color:#5e7689!important}
.nickname-setting,.remote-controls,.product-keywords{border-top:1px solid #eef1f4;margin-top:17px;padding-top:15px}
.nickname-setting .actions button,.pc-identity .actions button{flex:0 0 auto}
.pc-identity-status{font-size:13px;color:#5c7690;font-weight:790;margin:6px 0}
.remote-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}
.remote-actions button{font-size:12px;padding:8px;min-width:0;background:#e5f2fb;color:#557a97}
.remote-actions .remote-pink{background:#fff0f6;color:#9f6986}
.remote-actions .remote-soft{grid-column:1/-1}
.remote-feedback,#info{font-size:11px;line-height:1.6;color:#728da2;margin:8px 0 0;overflow-wrap:anywhere;white-space:pre-line}
.pc-lowload-row{display:flex;align-items:flex-start;gap:9px;padding:10px 2px;
  font-weight:680;color:#526d82;font-size:12px;cursor:pointer}
.pc-lowload-row input,.toggle input{width:19px;height:19px;min-width:19px;flex:0 0 19px;accent-color:#d58cae;margin-top:2px}
.pc-lowload-row small{display:block;color:#8192a3;font-weight:480;margin-top:4px;line-height:1.5;font-size:11px}
.product-keywords textarea{display:block;margin:8px 0}
.product-keywords>button{width:100%;background:#d88eb2;color:white}
.queue .tip,.tip{display:flex;gap:9px;padding:9px 2px;margin:10px 2px;align-items:flex-start}
.tip-icon{display:grid;place-items:center;width:27px;height:27px;flex:0 0 27px;background:#edf6fc;border-radius:9px}
.tip p{margin:0;color:#8190a3;font-size:11px;line-height:1.6}
.tip strong{color:#536b7f}
/* Products */
.brand-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.brand{min-width:0;background:#eef7ff;padding:12px 11px;border-radius:11px;
  color:#5684a4;font-size:13px;font-weight:760}
.brand.pink{background:#fff0f6;color:#ac6c8e}
.brand small{display:block;margin:2px 0 0;color:#8295a5;font-size:11px;font-weight:530}
.product-controls{margin-top:0}
.product-controls .keyword-box{margin:9px 0 11px}
.product-controls .keyword-box textarea{margin:0}
.product-controls .keyword-box>.help{margin:6px 0 0}
.toggle{display:flex;gap:10px;align-items:flex-start;margin:12px 0;border-radius:11px;
  padding:11px 12px;background:#fff6fa;color:#6e6172;cursor:pointer}
.toggle strong{display:block;font-size:12px;font-weight:780;color:#835972}
.toggle small{display:block;font-size:11px;line-height:1.55;color:#8f8792;margin-top:3px}
.connection-fields{border-top:1px solid #edf1f4;padding-top:11px;margin-top:13px}
.code-row input{flex:1;min-width:0}
.code-row button{flex:0 0 auto;white-space:nowrap;background:#e2f2fc;color:#4a829f;padding:9px 12px}
.code-status{font-size:11px;color:#718c9e;line-height:1.55;overflow-wrap:anywhere;margin:8px 0 0}
#show-pc-code{background:transparent;border:0;color:#7590a7;font-size:11px;min-height:30px;padding:5px 0;text-decoration:underline;text-underline-offset:2px}
.product-controls .save{margin-top:12px}
.save{width:100%;background:#d88eb2;color:#fff;font-weight:760}
.feedback{min-height:1px;font-size:11px;line-height:1.6;color:#6c8498;margin:7px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.box[data-pc-recovery]{border-left:3px solid #dba4bc!important}
.box[data-pc-recovery] .save{background:#e3a5c1}
.compact-info{font-size:12px;color:#75879b;margin:0 0 8px;line-height:1.6}
/* Sold-out */
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.chips span{border-radius:8px;padding:5px 8px;background:rgba(255,255,255,.75);font-size:11px;
  font-weight:700;color:#9a6d85}
.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.feature{border-radius:12px;padding:13px 11px;background:#eff8ff;min-width:0}
.feature.pink{background:#fff2f8}
.feature-icon{display:inline-block;font-size:19px;margin:0 0 5px}
.feature strong{display:block;color:#567488;font-size:12px;font-weight:780}
.feature.pink strong{color:#a76788}
.feature p{font-size:11px;line-height:1.55;color:#8392a0;margin:4px 0 0}
.status-list{display:grid;gap:9px}
body[data-page="stock"] .status{display:flex;align-items:flex-start;gap:10px;background:#f7fafc;
  border-radius:11px;padding:11px}
body[data-page="stock"] .status strong{display:block;font-size:12px;color:#536a7e}
body[data-page="stock"] .status span:not(.dot){display:block;font-size:11px;line-height:1.65;color:#8190a1;margin:3px 0 0}
.dot{display:inline-block;width:8px;height:8px;flex:0 0 8px;margin:6px 0 0;border-radius:50%;background:#e6a2c2}
.dot.sky{background:#88b6d3}
.pc-remote-row{display:flex;gap:7px;min-width:0;margin:9px 0}
.pc-remote-row input{flex:1;min-width:0}
.pc-remote-row button{background:#e3f2fd;color:#517f9c;white-space:nowrap;padding:8px 11px}
.pc-remote-run{width:100%;background:#d88eb2;color:white}
.pc-remote-feedback{font-size:11px;line-height:1.6;color:#6d8598;margin:8px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.links a{display:flex;justify-content:center;align-items:center;text-align:center;
  min-height:43px;background:#ebf7ff;text-decoration:none;border-radius:10px;
  color:#4f809f;font-size:12px;font-weight:760;padding:8px}
.links a.plus{background:#fff0f6;color:#a76c8d}
body[data-page="stock"] details:not(.more-info){margin:11px 0 0;border-top:1px solid #ecf1f5}
body[data-page="stock"] details:not(.more-info)>summary{font-weight:720;color:#637c90;font-size:12px;padding:10px 0}
body[data-page="stock"] ol{padding-left:20px;font-size:12px;line-height:1.8;color:#718499}
body[data-page="stock"] .note{background:#f4f9fe;padding:11px;border-radius:10px;margin:0}
.stock-scope{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}
.stock-scope span{display:inline-flex;padding:5px 8px;border-radius:8px;color:#8a6780;background:#fff2f8;font-size:11px}
.stock-summary{display:flex;gap:8px;align-items:center;justify-content:space-between}
/* Details & creator signature — position identical to bebepik.narin.day */
.creator-footer{text-align:center;margin:28px 0 0;padding:20px 0 6px;
  border-top:1px solid #ece7ed}
.creator-label{display:block;color:#9b7c91;font-size:12px;font-weight:650;letter-spacing:.02em}
.creator-signature{display:block;width:158px;height:auto;max-width:50%;margin:8px auto 0;opacity:.92}
@media (min-width:640px){
  .shell{padding:28px 23px 50px}
  body[data-page="home"] .narin-services{grid-template-columns:1fr}
  .hero{padding:24px}
}
@media (max-width:374px){
  .shell{padding:12px 12px max(36px,env(safe-area-inset-bottom,0px))}
  .hero{padding:17px 14px}
  .narin-service{padding:13px 11px;gap:9px;grid-template-columns:39px minmax(0,1fr) 16px}
  .narin-service-symbol{width:39px;height:39px}
  .page-nav a,.nav a{font-size:12px;min-height:40px}
  .feature-grid{grid-template-columns:1fr 1fr}
  .brand-list{grid-template-columns:1fr 1fr}
  .code-row button,.pc-remote-row button{padding:9px}
  .queue-stat strong{font-size:21px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}


/* Broadcast fourth service: five tabs fit comfortably within iPhone's width. */
.page-nav,.nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.page-nav a,.nav a{font-size:12px;padding:8px 2px}
.broadcast-panel{background:#fff;border:1px solid #e3edf3;border-radius:17px;padding:17px 16px;margin:11px 0;box-shadow:var(--shadow)}
.broadcast-panel h2{font-size:16px;font-weight:810;letter-spacing:-.03em;color:#405369;margin:0 0 9px}
.broadcast-panel p{font-size:12px;line-height:1.7;color:#718093;margin:7px 0}
.broadcast-badge{display:inline-flex;align-items:center;border-radius:8px;background:#eaf6ff;color:#4d819e;font-size:11px;font-weight:780;padding:6px 9px}
.broadcast-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.broadcast-card{background:#f0f8ff;border-radius:11px;padding:12px;min-width:0}
.broadcast-card:nth-child(2){background:#fff0f6}
.broadcast-card strong{display:block;color:#5484a4;font-size:13px;font-weight:780}
.broadcast-card:nth-child(2) strong{color:#a76b8a}
.broadcast-card p{font-size:11px;line-height:1.5;margin:5px 0 0}
.broadcast-steps{margin:7px 0 0;padding:0 0 0 20px;color:#667f93;font-size:12px;line-height:1.85}
.broadcast-steps li{padding:4px 0}
.broadcast-note{display:flex;align-items:flex-start;gap:8px;background:#fff6fa;border-radius:11px;padding:12px;color:#8d7083;font-size:11px;line-height:1.65}
.broadcast-note span{flex:1}
.broadcast-extra{display:block;margin-top:9px;background:#f4f9fd;padding:11px 12px;border-radius:10px}
.broadcast-extra a{color:#5988a5;text-underline-offset:3px}
body[data-page="broadcast"] .hero{border-color:#e9e5ee}
@media(max-width:374px){.page-nav,.nav{gap:4px}.page-nav a,.nav a{font-size:11px;letter-spacing:-.035em}}
