/* Phone-first app layout. Wide screens show the same compact app canvas. */
:root{--app-width:520px}
html{background:var(--tone-ede9f4, #ede9f4)}
body{background:var(--tone-ede9f4, #ede9f4)}
.app-shell{display:block;max-width:var(--app-width);min-height:100dvh;margin:0 auto;background:var(--tone-f8f7fc, #f8f7fc);box-shadow:0 0 60px var(--tone-5f48750d, #5f48750d);position:relative}
.sidebar{display:none}
.workspace{margin:0;width:100%;min-width:0}
.topbar{height:66px;padding:0 20px;position:sticky;top:0;z-index:25;background:#ffffffed;backdrop-filter:blur(16px);border-color:var(--tone-f0ebf6, #f0ebf6)}
.breadcrumb,.today-label{display:none}
.mobile-brand{display:flex;align-items:center;gap:9px;font-size:25px;font-weight:850;letter-spacing:-1.2px}
.brand-mark.small{width:30px;height:30px;border-radius:11px}
.brand-mark.small i{top:10px;left:8px;width:3px;height:4px}
.brand-mark.small i+i{left:19px}
.brand-mark.small b{left:9px;top:17px;width:12px;height:5px}
.topbar-right{gap:9px}
.kakao-button{font-size:10px;padding:11px 10px;min-height:37px;border-radius:10px;gap:6px}
.kakao-bubble{width:14px;height:12px}
.mobile-profile{height:34px;width:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--tone-efe7f8, #efe7f8);color:var(--tone-8d6ca7, #8d6ca7);font-size:10px;font-weight:650;flex-shrink:0}
.demo-bar{padding:8px 20px;font-size:10px;align-items:flex-start;gap:9px;line-height:1.65}
.demo-bar strong,.demo-bar button{font-size:10px}
.demo-description{display:block;font-size:9px;padding-left:12px}
.demo-bar button{margin-top:1px;white-space:nowrap}
main{padding:25px 20px 99px;max-width:none}
.page-heading{display:block;margin-bottom:19px}
.page-heading .eyebrow{font-size:8px;letter-spacing:1.7px;margin-bottom:7px}
h1{font-size:28px;letter-spacing:-1.5px;gap:10px;line-height:1.45}
.title-flower{font-size:31px}
.page-heading p{font-size:12px;color:var(--tone-887693, #887693);line-height:1.7;margin-top:5px}
.heading-actions{display:flex;width:100%;gap:9px;margin-top:18px}
.heading-actions .button{min-height:45px;flex:1;font-size:12px;border-radius:12px;padding:12px}
.button{min-height:44px;font-size:12px;padding:12px 15px}
.button svg{width:16px;height:16px}
.mobile-group-wrap{display:flex;align-items:center;gap:9px;margin-bottom:16px}
.mobile-group-wrap label{margin:0;font-size:11px;font-weight:500;color:var(--tone-9b85a9, #9b85a9);white-space:nowrap}
.mobile-group-wrap select{width:auto;min-width:0;max-width:calc(100% - 90px);flex:1;min-height:42px;padding:10px 12px;background:#fff;border:1px solid var(--tone-e9e0f2, #e9e0f2);color:var(--tone-745785, #745785);font-size:16px;border-radius:11px}
.new-mobile-group{width:41px;height:41px;background:var(--tone-efe8f8, #efe8f8);color:var(--tone-8e6aab, #8e6aab);border:1px solid var(--tone-e6daf2, #e6daf2);border-radius:11px}
.new-mobile-group svg{width:18px;height:18px}
.hero-strip{grid-template-columns:minmax(0,1fr) 151px;min-height:193px;border-radius:19px;margin:0 0 20px}
.next-meeting{padding:22px 18px;min-width:0}
.mini-label{font-size:10px;gap:5px;margin-bottom:11px}
.next-meeting-title{gap:7px;align-items:center}
.next-meeting h2{font-size:19px;line-height:1.5;letter-spacing:-.7px;overflow-wrap:anywhere}
.dday{font-size:9px;padding:4px 6px}
.next-meeting p{font-size:10px;line-height:1.85;margin-top:9px;max-width:245px;color:var(--tone-8f789e, #8f789e);overflow-wrap:anywhere}
.text-link{font-size:10px;line-height:1.7;gap:5px;margin-top:13px;min-height:28px;text-align:left}
.group-summary{display:none}
.hero-character-art{width:151px;min-height:193px;margin:0;transform:none}
.hero-character-art .paper-calendar{left:62px;top:45px;width:79px;height:106px}
.hero-character-art .paper-calendar:before{height:18px}
.hero-character-art .paper-calendar>span{font-size:4px;letter-spacing:.6px}
.hero-character-art .paper-calendar strong{font-size:34px;line-height:1.4}
.hero-character-art .paper-calendar i{font-size:18px;right:9px;bottom:10px}
.hero-character-art .little-note{left:48px;top:23px;font-size:6px;letter-spacing:1px}
.hero-character-art .spark-one{right:4px;top:18px;font-size:16px}
.hero-character-art .spark-two{left:0;top:66px;font-size:11px}
.hero-owner{left:-23px;bottom:15px;width:158px;height:167px}
.hero-owner img{width:158px;height:158px;bottom:11px}
.owner-ground{width:62px;height:7px;left:46px;bottom:23px}
.owner-badge{font-size:10px;padding:6px 8px;gap:4px;max-width:146px}
.owner-badge>span:nth-child(2){max-width:98px}
.owner-badge svg{width:10px;height:10px}
.owner-change-hint{display:none}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.calendar-card{border-radius:18px}
.calendar-toolbar{padding:20px 16px 17px;gap:8px}
.month-nav{gap:3px;min-width:0}
.month-nav h2{font-size:18px;margin-right:8px;letter-spacing:-.6px}
.month-nav .icon-button{height:33px;width:28px}
.calendar-tools{gap:9px}
.small-button{min-height:31px;font-size:10px;padding:7px 11px}
.view-pill{display:none}
.weekdays{margin:0 10px;font-size:10px;padding-bottom:12px}
.calendar-grid{padding:4px 7px 2px}
.day-cell{min-height:69px;padding:6px 2px 4px;gap:3px;border-radius:7px}
.date-number{font-size:11px;width:23px;height:23px;border-radius:8px;margin:0 0 2px 3px}
.calendar-chip{font-size:9px;padding:2px 3px;line-height:1.45}
.more-events{font-size:8px}
.calendar-legend{gap:12px;padding:15px 13px 17px;font-size:8px;line-height:1.6}
.legend-dot{height:4px;width:4px}
.day-column{display:block}
.day-card{padding:22px;border-radius:18px}
.day-heading{margin-bottom:19px}
.day-heading h2{font-size:19px;line-height:1.5}
.section-label{font-size:11px}
.day-count{font-size:11px}
.event-mini{padding:18px 16px;border-radius:14px;margin-bottom:13px}
.event-mini-head{font-size:11px}
.event-mini-head button{padding:6px;margin:-6px}
.event-title-button{font-size:15px;margin:10px 0 13px;line-height:1.6}
.event-meta{font-size:12px;line-height:1.75;margin:5px 0}
.event-meta svg{width:14px;height:14px}
.rsvp-summary{font-size:11px;margin-top:15px;padding-top:14px}
.rsvp-summary .avatar{width:25px;height:25px;font-size:8px}
.rsvp-controls{gap:7px;margin-top:15px}
.rsvp-controls button{min-height:41px;padding:10px 3px;font-size:11px;border-radius:9px}
.add-day-event{min-height:45px;font-size:12px;border-radius:11px}
.little-tip{padding:18px;margin-top:16px;border-radius:15px}
.little-tip strong{font-size:12px}.little-tip p{font-size:11px}
.mobile-nav{display:flex;position:fixed;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:var(--app-width);bottom:0;padding:11px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--tone-ece4f4, #ece4f4);background:#ffffffed;backdrop-filter:blur(16px);z-index:35;justify-content:space-around}
.mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:44px;min-width:84px;font-size:10px;color:var(--tone-a593b3, #a593b3)}
.mobile-nav button.active{color:var(--purple)}
.mobile-nav svg{width:22px;height:22px}
.main-footer{font-size:9px;margin:28px 0 0}.main-footer button{font-size:9px}
.listing-view{padding:22px 18px}.listing-heading h2{font-size:18px}.listing-heading>span{font-size:10px}
.upcoming-item{gap:13px;padding:20px 0}.upcoming-item>.category-label{display:none}
.upcoming-content>strong{font-size:14px}.upcoming-meta{font-size:11px}
.groups-grid{grid-template-columns:minmax(0,1fr);gap:16px}
.group-card{padding:24px;min-height:235px}.group-card h2{font-size:19px}
.group-card-footer{font-size:11px}.group-card-footer .small-button{font-size:11px}
.new-group-card{min-height:140px;font-size:12px}
.toast{max-width:calc(min(100%,520px) - 32px);bottom:87px;font-size:11px;padding:13px 17px;text-align:center}
dialog,#groupDialog,#characterDialog{inset:auto auto 0 50%;transform:translateX(-50%);margin:0;width:100%;max-width:var(--app-width);max-height:91dvh;padding:25px 23px 24px;border-radius:24px 24px 0 0;box-shadow:0 -15px 70px var(--tone-362a5926, #362a5926);overscroll-behavior:contain}
dialog:before{content:"";width:34px;height:4px;border-radius:5px;background:var(--tone-e2d6ed, #e2d6ed);display:block;margin:-12px auto 20px}
.dialog-top{margin-bottom:22px;gap:12px}.dialog-top h2{font-size:21px;line-height:1.5}
.dialog-top .icon-button{width:38px;height:38px;margin-top:-4px}
label{font-size:12px;margin:18px 0 9px}
input:not([type=hidden]),select,textarea{font-size:16px;padding:12px;min-width:0;max-width:100%}
input::placeholder,textarea::placeholder{font-size:12px}
input[type=date],input[type=time],input[type=datetime-local]{font-size:16px;min-height:46px}
.input-with-icon input{padding-left:38px}
.input-with-icon>[data-icon]{top:14px}
.form-grid{gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.form-grid>div{min-width:0}
.form-hint{font-size:11px;line-height:1.85}
.dialog-actions{position:sticky;bottom:-24px;z-index:4;margin:22px -1px -1px;padding:16px 0 max(12px,env(safe-area-inset-bottom));background:#fff;box-shadow:0 -8px 12px #ffffffd9;gap:9px}
.dialog-actions .button{font-size:12px;min-height:46px;border-radius:12px}
.character-choices{gap:12px}
.character-option-card img{height:134px}
.character-option-card strong{font-size:13px}
.character-option-card small{font-size:11px}
.character-choices.compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.compact .character-option-card img{height:88px}
.compact .character-option-card strong{font-size:10px}
.section-help{font-size:11px}.checkbox-row{font-size:12px;min-height:36px}
.friend-option{min-height:57px}.friend-option strong{font-size:13px}
.friend-add-button{min-height:43px;font-size:12px}
.friend-picker-done{min-height:36px}
input[type=checkbox]{width:20px!important;height:20px!important;min-width:20px!important}
.friend-chip{font-size:12px;padding-right:10px}
.friend-chip button{padding:6px;margin:-3px -5px -3px 0}
.friend-chip button svg{height:14px;width:14px}
.invitation-notice,.info-note{font-size:11px;line-height:1.9}
#invitationMessage{font-size:14px;line-height:1.85}
.detail-meta{font-size:13px}.detail-note{font-size:13px}
.detail-rsvp .rsvp-controls button{min-height:43px}
.detail-actions .button{min-height:43px}
@media(max-width:420px){
  main{padding:23px 17px 95px}
  .topbar{padding:0 18px}.demo-bar{padding-left:18px;padding-right:18px}
  h1{font-size:26px}.title-flower{font-size:28px}
  .hero-strip{grid-template-columns:minmax(0,1fr) 132px}
  .next-meeting{padding:21px 15px}
  .next-meeting h2{font-size:17px}
  .hero-character-art{width:132px}
  .hero-character-art .paper-calendar{left:50px;width:73px;height:101px}
  .hero-character-art .little-note{left:33px}
  .hero-owner{left:-25px;width:149px;height:162px}
  .hero-owner img{width:149px;height:153px}
  .owner-badge{font-size:9px;max-width:135px;padding:6px 7px}
  .owner-badge>span:nth-child(2){max-width:88px}
  .day-cell{min-height:64px}.calendar-chip{font-size:8px}
  .calendar-legend{gap:9px;font-size:8px;padding-left:12px;padding-right:10px}
  .day-card{padding:20px}
  dialog,#groupDialog,#characterDialog{padding:25px 20px 23px}
  .compact .character-option-card img{height:76px}
  .compact .character-option-card strong{font-size:9px}
}
@media(max-width:350px){
  .topbar{padding:0 14px}.topbar-right{gap:6px}.kakao-button{font-size:9px;padding:10px 8px}
  .mobile-brand{font-size:23px}.mobile-profile{width:30px;height:30px}
  main{padding-left:13px;padding-right:13px}h1{font-size:24px}
  .hero-strip{grid-template-columns:minmax(0,1fr) 115px}
  .hero-character-art{width:115px}.hero-character-art .paper-calendar{left:34px}
  .hero-owner{left:-28px;width:136px}.hero-owner img{width:136px}
  .next-meeting{padding-left:12px;padding-right:7px}.next-meeting h2{font-size:16px}
  .owner-badge{max-width:128px}.owner-badge>span:nth-child(2){max-width:81px}
  .month-nav h2{font-size:16px;margin-right:4px}.calendar-toolbar{padding-left:12px;padding-right:12px}
  .calendar-legend{gap:7px;font-size:7px}.calendar-chip{font-size:7px}
  .character-choices.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .compact .character-option-card img{height:100px}.compact .character-option-card strong{font-size:11px}
}
/* Comfortable refresh target and group-specific hero colors, independent of personal theme. */
.demo-bar{align-items:center}.demo-bar>span{min-width:0}.demo-bar button[data-action="refresh"]{min-width:90px;min-height:44px;padding:10px 12px;margin:0;flex-shrink:0;justify-content:center;gap:5px;font-size:12px;font-weight:600;border-radius:11px;border:1px solid var(--line);background:#ffffffa6;touch-action:manipulation}.demo-bar button[data-action="refresh"] svg{width:15px;height:15px}
.hero-strip{background:var(--group-wash,#f0eafa);border-color:var(--group-accent,#aa91e2)}.hero-strip .next-meeting h2,.hero-strip .next-meeting p,.hero-strip .mini-label,.hero-strip .text-link,.hero-strip .owner-badge,.hero-strip .owner-badge svg,.hero-strip .group-summary{color:var(--group-ink,#695482)}.hero-strip .pulse-dot,.hero-strip .paper-calendar:before,.hero-strip .summary-divider{background:var(--group-accent,#aa91e2)}.hero-strip .dday{background:#ffffffb8;color:var(--group-ink,#695482)}.hero-strip .art-spark,.hero-strip .little-note,.hero-strip .paper-calendar strong{color:var(--group-ink,#695482)}.hero-strip .owner-badge{border-color:var(--group-accent,#aa91e2)}.hero-strip .owner-ground{background:var(--group-accent,#aa91e2);opacity:.18}
/* Personal character reminder, always above the bottom navigation. */
.appointment-buddy{position:fixed;right:max(14px,calc((100vw - var(--app-width))/2 + 14px));bottom:calc(82px + env(safe-area-inset-bottom,0px));z-index:30;display:flex;flex-direction:column;align-items:flex-end;gap:5px;max-width:calc(100vw - 28px);pointer-events:none}.buddy-speech{position:relative;max-width:228px;border:1px solid var(--line);border-radius:19px 19px 5px 19px;background:#fffffff5;box-shadow:0 6px 24px #3524451a;pointer-events:auto}.buddy-open{display:block;width:100%;padding:13px 42px 13px 14px;text-align:left;border-radius:19px;color:var(--ink)}.buddy-open>span{display:block;font-size:11px;color:var(--purple);margin-bottom:5px}.buddy-open strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:13px;line-height:1.55}.buddy-open small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:5px}.buddy-close{position:absolute;right:1px;top:1px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:var(--purple)}.buddy-close svg{width:16px;height:16px}.appointment-buddy-art{width:84px;height:96px;animation:buddy-float 3.8s ease-in-out infinite;filter:drop-shadow(0 5px 4px #35244512)}.appointment-buddy-art img,.appointment-buddy-art svg{display:block;width:100%;height:100%;object-fit:contain}.buddy-restore{margin-top:12px;width:100%}body:has(dialog[open]) .appointment-buddy{display:none}@keyframes buddy-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* Keep native form text readable without focus zoom on phones. */
@media(max-width:420px){
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .poll-date-add{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .poll-date-add>input{width:100%}
}
@media(max-width:350px){
  .poll-date-add{grid-template-columns:minmax(0,1fr)}
  .poll-date-add>button{width:100%;min-height:44px}
}
