:root{
  --bg:#fbfaf6;
  --text:#20211f;
  --muted:#77776f;
  --line:#ebe4d9;
  --soft:#f7f4ee;
  --accent:#7f9f7e;
  --accent-2:#5f7f5f;
  --ok:#7f9f7e;
  --warn:#c7a65a;
  --radius:22px;
  --shadow:0 18px 46px rgba(76,64,42,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Pretendard","Noto Sans KR",Segoe UI,sans-serif}
button,input,textarea,select{font:inherit}
button{border:0;background:none;cursor:pointer;color:inherit}
a{color:inherit}
.hidden{display:none!important}
.app-shell{max-width:520px;margin:0 auto;min-height:100svh;padding:18px 16px 88px}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 2px 16px}
.brand{display:flex;align-items:center;gap:10px}
.logo{width:44px;height:44px;border-radius:16px;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:900;letter-spacing:-.04em;box-shadow:0 8px 22px rgba(127,159,126,.22)}
.brand-title{font-size:20px;font-weight:850;letter-spacing:-.04em;line-height:1.1}
.brand-sub{font-size:12px;color:var(--muted);margin-top:3px}
.status{display:flex;align-items:center;gap:6px;font-size:12px;background:var(--soft);border:1px solid var(--line);padding:7px 10px;border-radius:999px;white-space:nowrap}
.dot{width:7px;height:7px;border-radius:50%;background:var(--warn)}
.dot.ok{background:var(--ok)}
.card{background:#fffdf9;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;margin:14px 0}
.flat-card{background:var(--soft);border:1px solid var(--line);border-radius:18px;padding:14px;margin:10px 0}
.h1{font-size:28px;line-height:1.15;font-weight:900;letter-spacing:-.06em;margin:10px 0 8px}
.h2{font-size:18px;font-weight:850;letter-spacing:-.04em;margin:0 0 10px}
.p{font-size:14px;line-height:1.55;color:var(--muted);margin:6px 0}
.row{display:flex;align-items:center;gap:8px}
.col{display:flex;flex-direction:column;gap:8px}
.spread{display:flex;justify-content:space-between;align-items:center;gap:12px}
.input,textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:16px;padding:13px 14px;outline:none}
.input:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(127,159,126,.13)}
textarea{min-height:120px;resize:vertical;line-height:1.5}
.btn{border-radius:16px;padding:13px 15px;font-weight:800;letter-spacing:-.03em;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn.secondary{background:#fffdf9;color:var(--accent-2);border:1px solid var(--line)}
.btn.ghost{background:var(--soft);color:var(--muted)}
.btn.accent{background:var(--accent);color:#fff}
.btn.small{font-size:13px;padding:9px 12px;border-radius:13px}
.btn.full{width:100%}
.btn:disabled{opacity:.45;cursor:not-allowed}
.login-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.tabs{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);width:min(520px,calc(100% - 24px));background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border:1px solid var(--line);box-shadow:0 18px 42px rgba(0,0,0,.13);border-radius:24px;padding:8px;display:grid;grid-template-columns:repeat(3,1fr);z-index:10}
.tab{padding:11px 4px;border-radius:17px;font-size:13px;font-weight:800;color:var(--muted)}
.tab.active{background:var(--accent);color:#fff}
.today-title{font-size:32px;line-height:1;font-weight:950;letter-spacing:-.07em}
.week-badge{background:rgba(127,159,126,.18);color:var(--accent-2);border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800}
.progress-wrap{height:10px;background:var(--soft);border-radius:999px;overflow:hidden;margin-top:12px;border:1px solid var(--line)}
.progress-bar{height:100%;background:var(--accent);border-radius:999px;width:0%;transition:width .25s ease}
.check-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.check-item{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff}
.check-btn{width:27px;height:27px;border-radius:9px;border:1.8px solid #cfcfcf;display:grid;place-items:center;flex:0 0 auto;font-size:16px}
.check-item.done{background:#fafafa;color:#8b8b8b}
.check-item.done .check-btn{background:var(--accent);border-color:var(--accent);color:#fff}
.item-emoji{width:34px;height:34px;border-radius:12px;background:var(--soft);display:grid;place-items:center;flex:0 0 auto}
.item-text{flex:1;font-size:15px;font-weight:750;letter-spacing:-.03em}
.empty{padding:24px 12px;text-align:center;color:var(--muted);line-height:1.5}
.days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.day-chip{border:1px solid var(--line);border-radius:14px;padding:10px 0;text-align:center;font-size:13px;font-weight:800;background:#fff;color:#777}
.day-chip.active{background:#e8f0e5;color:#3f5f3f;border-color:#b9cfb4}
.item-row{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:16px;padding:12px;margin-top:8px}
.item-row-left{display:flex;align-items:center;gap:10px;min-width:0}
.item-row-text{font-weight:750;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item-row-meta{font-size:12px;color:var(--muted);margin-top:3px}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stat-box{background:var(--soft);border:1px solid var(--line);border-radius:18px;padding:14px}
.stat-num{font-size:27px;font-weight:950;letter-spacing:-.06em}
.stat-label{font-size:12px;color:var(--muted);margin-top:3px}
.week-row{margin:13px 0}
.week-row .spread{font-size:13px;font-weight:800}
.guide-list{margin:8px 0 0;padding-left:18px;color:var(--muted);font-size:14px;line-height:1.7}
.toast{position:fixed;left:50%;bottom:92px;transform:translateX(-50%);background:var(--accent-2);color:#fff;padding:12px 15px;border-radius:999px;font-size:13px;font-weight:750;box-shadow:0 12px 36px rgba(76,64,42,.18);z-index:20;max-width:calc(100% - 32px);text-align:center}
.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.34);display:grid;place-items:end center;z-index:30;padding:14px}
.modal{width:min(520px,100%);background:#fff;border-radius:26px;padding:18px;box-shadow:var(--shadow)}
.modal h3{margin:0 0 8px;font-size:20px;letter-spacing:-.05em}
.modal .close{margin-top:12px}
.install-fab{position:fixed;left:50%;bottom:78px;transform:translateX(-50%);z-index:9;border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 13px;font-size:12px;font-weight:800;box-shadow:0 12px 28px rgba(0,0,0,.1)}
hr{border:0;border-top:1px solid var(--line);margin:16px 0}
.small-note{font-size:12px;color:var(--muted);line-height:1.5}
@media (min-width:700px){
  .app-shell{padding-top:28px}
  .install-fab{bottom:84px}
}


.routine-summary{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:14px;
  margin:0 0 14px;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
}
.routine-summary-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.routine-summary-title{
  font-size:17px;
  font-weight:900;
  letter-spacing:-.04em;
}
.routine-summary-meta{
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}
.routine-summary-goal{
  margin-top:10px;
  padding:10px 12px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:14px;
  font-size:13px;
  font-weight:750;
  line-height:1.45;
  color:#333;
}


#pushStatusText{
  margin-top:10px;
}


.tools-card{
  padding-bottom:18px;
}
.tools-summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.tools-summary::-webkit-details-marker{
  display:none;
}
.tools-arrow{
  flex:0 0 auto;
  font-size:14px;
  font-weight:900;
  color:var(--muted);
  padding:10px 14px;
  border-radius:999px;
  background:#f7f7f7;
}
#toolsDetails[open] .tools-arrow{
  font-size:0;
}
#toolsDetails[open] .tools-arrow::after{
  content:"접기";
  font-size:14px;
}
.tool-stack{
  display:grid;
  gap:14px;
  margin-top:18px;
}
.inner-tool{
  margin-top:12px;
  background:#fff;
}


/* auth-v1.3 UI diet */
body{background:linear-gradient(180deg,#fbfaf6 0%, #fffdf9 100%)}
.topbar{padding:6px 2px 18px}
.brand-sub,.status{display:none!important}
.brand-title{font-size:21px}
.logo{background:linear-gradient(135deg,#789875,#9caf93)}

.routine-summary{background:#fffdf9;border-color:#ebe4d9;box-shadow:0 12px 32px rgba(76,64,42,.06)}
.routine-summary-title{font-size:18px}
.routine-summary-goal{
  margin-top:14px;
  padding:12px 14px;
  background:#fbfaf6;
  border:1px solid #eee7dc;
  border-radius:16px;
  font-size:15px;
  font-weight:780;
  color:#33352f;
}

.add-only{width:44px;height:44px;border-radius:999px;font-size:22px;line-height:1;padding:0;background:rgba(127,159,126,.16);color:var(--accent-2)}
.daily-delete{width:24px;height:24px;border-radius:999px;color:#b9b2a8;background:transparent;font-size:18px;line-height:1;display:grid;place-items:center;flex:0 0 auto}
.daily-delete:hover{background:#f3efe8;color:#8d8171}

.settings-page{display:block}
.settings-title{font-size:24px;font-weight:900;letter-spacing:-.05em;text-align:center;margin:6px 0 24px}
.settings-group{margin:24px 0}
.settings-group-title{font-size:15px;font-weight:850;letter-spacing:-.03em;margin:0 0 10px;color:#272822}
.settings-card{background:#fffdf9;border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 34px rgba(76,64,42,.06);padding:14px;display:grid;gap:12px}
.setting-field{display:grid;gap:7px}
.setting-field span{font-size:13px;color:var(--muted);font-weight:750}
.setting-field.compact{grid-template-columns:92px 1fr;align-items:center;gap:10px}
.setting-field.compact span{font-size:13px}
.simple-list{padding:0;overflow:hidden;gap:0;display:block}
.simple-row{width:100%;display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid var(--line);font-weight:780;letter-spacing:-.03em;text-align:left;background:#fffdf9;color:#23241f}
.simple-row:last-child{border-bottom:0}
.simple-row span:last-child{color:#9b958d;font-weight:800}
.muted-row{color:#555;cursor:default}
.muted-row span:last-child{font-size:13px;font-weight:700}
.simple-details summary{list-style:none;cursor:pointer}
.simple-details summary::-webkit-details-marker{display:none}
.simple-details[open] summary span:last-child{transform:rotate(90deg)}
.mini-action{font-size:12px;font-weight:800;color:var(--accent-2);background:#fffdf9;border:1px solid var(--line);border-radius:999px;padding:7px 10px}
.mini-action.danger{color:#a99f92}
.salon-signature{display:flex;justify-content:center;align-items:center;margin:36px 0 8px;opacity:.42}
.salon-signature img{width:22px;height:22px;border-radius:50%;object-fit:cover;filter:saturate(.75) contrast(.9)}
.install-fab{display:none!important}


/* auth-v1.4 stats diet */
.stats-hero .h2{
  margin-bottom:14px;
}
.collapse-card{
  display:block;
}
.collapse-card summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:16px;
  font-weight:850;
  letter-spacing:-.04em;
}
.collapse-card summary::-webkit-details-marker{
  display:none;
}
.collapse-arrow{
  color:var(--accent-2);
  width:30px;
  height:30px;
  border-radius:999px;
  background:rgba(127,159,126,.13);
  display:grid;
  place-items:center;
  font-weight:900;
  transition:transform .2s ease;
}
.collapse-card[open] .collapse-arrow{
  transform:rotate(90deg);
}
.collapse-content{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
#summaryBox{
  margin-top:12px;
  min-height:190px;
  font-size:13px;
  background:#fffdf9;
}
#summaryActions{
  margin-top:10px;
  justify-content:flex-end;
}


/* auth-v1.5 AI Pro gate */
.pro-report-card{
  width:100%;
  border:1px solid var(--line);
  text-align:left;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  cursor:pointer;
  background:linear-gradient(180deg, #fffdf9 0%, #fbfaf6 100%);
}
.pro-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:17px;
  font-weight:900;
  letter-spacing:-.04em;
  color:var(--ink);
}
.pro-pill{
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
  color:#ffffff;
  background:var(--accent);
  border-radius:999px;
  padding:4px 8px;
  line-height:1;
}
.modal-kicker{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:5px 10px;
  background:rgba(127,159,126,.16);
  color:var(--accent-2);
  font-size:12px;
  font-weight:900;
  margin-bottom:10px;
}
.pro-modal h3{
  margin-top:0;
}
.pro-feature-list{
  display:grid;
  gap:8px;
  margin:14px 0;
}
.pro-feature-list div{
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  background:#fffdf9;
  font-size:13px;
  font-weight:700;
  color:var(--ink);
}


/* auth-v1.6 cleanup */
.subtle-notice{
  font-size:12px;
  color:var(--muted);
  background:rgba(127,159,126,.10);
  border:1px solid rgba(127,159,126,.16);
  border-radius:14px;
  padding:10px 12px;
  line-height:1.45;
}


/* v1.10-verified */
.salon-signature {
  display: none !important;
}


.pro-section-title {
  margin: 14px 0 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}


.ai-report-preview {
  display: grid;
  gap: 10px;
}

.ai-report-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.65);
}

.ai-report-section h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
}

.ai-report-section p {
  margin: 6px 0;
  line-height: 1.55;
  color: var(--muted);
  font-size: 14px;
}

.ai-report-section strong {
  color: var(--ink);
}


.analysis-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.55);
}

.analysis-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.analysis-details .pro-feature-list {
  margin-top: 10px;
}


/* v1.19-scrollable-report */
.modal-backdrop {
  align-items: flex-start;
  overflow-y: auto;
  padding: 24px 16px;
}

.modal {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pro-modal {
  margin-bottom: 24px;
}

.ai-report-preview {
  padding-bottom: 8px;
}




/* v1.24-daily-coaching-card */
.daily-coaching-card {
  border-color: rgba(67, 119, 91, 0.20);
}

.daily-coaching-card .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-coaching-card .collapse-content {
  padding-top: 4px;
}


/* v1.28-daily-coaching-depth */
.daily-coaching-detail {
  display: grid;
  gap: 10px;
}

.coach-line {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
}

.coach-line span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  color: var(--accent);
}

.coach-line p {
  margin: 0;
  line-height: 1.5;
}


/* v1.36-pro-gating-ready */
.pro-lock-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.7);
}

.pro-lock-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.pro-lock-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}


/* v1.37-ai-report-system */
.locked-report-card {
  opacity: 0.92;
}

.locked-report-card .small-note {
  margin-top: 6px;
}


/* v1.38-report-group-card */
.report-system-card .pro-title {
  margin-bottom: 6px;
}

.report-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.report-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.58);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.report-row strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
}

.report-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.report-row.locked {
  opacity: 0.78;
}

.lock-mark {
  font-size: 17px;
  opacity: 0.75;
}


/* v1.39-report-group-force */
.report-system-card .pro-title {
  margin-bottom: 6px;
}

.report-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.report-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.58);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.report-row strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
}

.report-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.report-row.locked {
  opacity: 0.78;
}

.lock-mark {
  font-size: 17px;
  opacity: 0.75;
}


/* v1.41-coaching-scenario-test */
.dev-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(120,120,120,0.12);
  color: var(--muted);
}

.scenario-test-card {
  border-style: dashed;
  opacity: 0.92;
}

.scenario-sample-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.scenario-sample {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.62);
}

.scenario-sample h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 900;
}


/* v1.48-recovery-subbranch-examples */
.sub-example-box {
  margin-top: 10px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.45);
}

.sub-example-box > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--accent);
}

.sub-example-item {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.sub-example-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.sub-example-item b {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  color: var(--ink);
}

.sub-example-item p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sub-example-item em {
  display: block;
  font-style: normal;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

/* v1.51-overload-examples-fixed */

/* v1.53-restart-examples-fixed */


/* v1.55-dev-test-cleanup */
.dev-setting-row {
  color: var(--muted);
}

.dev-setting-row .dev-pill {
  margin-left: auto;
}


/* v1.57-dev-row-style-fix */
.dev-setting-row {
  width: 100%;
  min-height: 68px;
  padding: 0 18px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.dev-setting-row .setting-row-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dev-setting-row .dev-pill {
  flex: 0 0 auto;
  margin-left: 0;
  transform: translateY(-1px);
}

.dev-setting-row .chev {
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}


/* v1.58-real-coaching-detail */
.dev-current-branch {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(130, 160, 130, 0.10);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.dev-current-branch strong {
  color: var(--ink);
  font-weight: 900;
}

/* v1.77-pro-lock-card-polish */
.pro-lock-card {
  background: linear-gradient(180deg, rgba(128, 157, 128, 0.08), rgba(255, 252, 246, 0.72));
  border: 1px solid rgba(128, 157, 128, 0.22);
  box-shadow: 0 10px 28px rgba(70, 58, 42, 0.045);
}

.pro-lock-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.pro-lock-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(128, 157, 128, 0.13);
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.pro-lock-head strong {
  display: block;
  margin: 0;
  line-height: 1.35;
}

.pro-lock-card > p {
  margin-top: 0;
  padding-left: 35px;
}

/* v1.78-pro-value-note */
.pro-value-note {
  margin: 12px 4px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* v1.79-pro-note-in-card */
.pro-lock-card .pro-value-note {
  margin: 12px 0 0 35px;
  padding-top: 12px;
  border-top: 1px solid rgba(128, 157, 128, 0.16);
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.pro-modal > .pro-value-note {
  display: none;
}

/* v1.80-pro-note-layout-polish */
.pro-lock-card .pro-value-note {
  margin: 12px 0 0 0;
  padding: 12px 0 0 0;
  border-top: 1px solid rgba(128, 157, 128, 0.16);
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  max-width: none;
}

.pro-lock-card .pro-value-note::before {
  content: "";
}

/* v1.81-pro-guide-a */
.pro-guide-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 16px;
}

.pro-guide-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 254, 251, 0.74);
}

.pro-guide-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(128, 157, 128, 0.13);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.pro-guide-item strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.pro-guide-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pro-guide-value {
  margin: 16px 2px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* v1.82-pro-guide-button-fix */

/* v1.83-pro-guide-context */
.pro-guide-modal .pro-modal h3 {
  line-height: 1.32;
}

.pro-guide-modal .small-note {
  line-height: 1.6;
}

/* v1.84-pro-start-ready-modal */
.pro-ready-card {
  background: linear-gradient(180deg, rgba(128, 157, 128, 0.08), rgba(255, 252, 246, 0.72));
  border: 1px solid rgba(128, 157, 128, 0.22);
  box-shadow: 0 10px 28px rgba(70, 58, 42, 0.045);
  border-radius: 19px;
  padding: 18px 17px;
  margin: 18px 0 16px;
}

.pro-ready-card > p {
  margin: 0 0 0 35px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.pro-ready-card .pro-value-note {
  margin: 12px 0 0 0;
  padding: 12px 0 0 0;
  border-top: 1px solid rgba(128, 157, 128, 0.16);
}

/* v1.87-pro-pricing-modal */
.pro-pricing-modal .pro-modal {
  max-width: 520px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 14px;
}

.pricing-plan {
  position: relative;
  padding: 16px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.78);
  overflow: hidden;
}

.pricing-plan.pro {
  border-color: rgba(128, 157, 128, 0.34);
  background: linear-gradient(180deg, rgba(128, 157, 128, 0.08), rgba(255, 252, 246, 0.72));
  box-shadow: 0 10px 28px rgba(70, 58, 42, 0.045);
}

.pricing-badge {
  display: inline-flex;
  height: 25px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(128, 157, 128, 0.13);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.pricing-badge.muted {
  color: var(--muted);
  background: rgba(120, 110, 96, 0.08);
}

.pricing-plan h4 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.pricing-plan p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.pricing-price {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.pricing-year {
  margin: -2px 0 10px;
  color: var(--accent);
  font-size: 11.8px;
  font-weight: 800;
  line-height: 1.4;
}

.pricing-plan ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
}

.pricing-plan li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12.4px;
  line-height: 1.42;
}

.pricing-plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}

.pricing-note {
  margin: 12px 2px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

@media (max-width: 520px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* v1.89-billing-plan-toggle */
.billing-options {
  display: grid;
  gap: 8px;
  margin: 12px 0 12px;
}

.billing-option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 254, 251, 0.82);
  padding: 11px 12px;
  display: grid;
  gap: 3px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.billing-option span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-option strong {
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.billing-option em {
  font-style: normal;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.billing-option.active {
  border-color: rgba(128, 157, 128, 0.52);
  background: rgba(128, 157, 128, 0.10);
  box-shadow: 0 8px 20px rgba(80, 113, 80, 0.08);
}

.billing-option.active span,
.billing-option.active em {
  color: var(--accent);
}

.billing-option:focus-visible {
  outline: 2px solid rgba(128, 157, 128, 0.46);
  outline-offset: 2px;
}

/* v1.90-free-card-balance */
.pricing-free-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(120, 110, 96, 0.12);
  color: var(--muted);
  font-size: 12.2px;
  line-height: 1.45;
}

/* v1.93-selected-plan-ready */
.selected-plan-box {
  margin: 13px 0 0 35px;
  padding: 12px 13px;
  border-radius: 15px;
  border: 1px solid rgba(128, 157, 128, 0.20);
  background: rgba(128, 157, 128, 0.08);
}

.selected-plan-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 3px;
}

.selected-plan-box strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

/* v1.94-payment-ready-note */
.payment-ready-note {
  margin: 10px 0 0 35px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.74);
  border: 1px solid rgba(232, 223, 211, 0.88);
  color: var(--muted);
  font-size: 12.2px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* v1.97-coaching-routine-lock-polish */
.pro-lock-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 13px;
  line-height: 1;
  opacity: 0.72;
  transform: translateY(-1px);
}

/* v2.02-settings-routine-accordion */
.routine-list-details {
  margin-top: 14px;
}

.routine-list-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 17px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.86);
  color: var(--text);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(70, 58, 42, 0.035);
}

.routine-list-summary::-webkit-details-marker {
  display: none;
}

.routine-list-count {
  color: var(--accent);
  background: rgba(128, 157, 128, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 900;
}

.routine-list-chevron {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.routine-list-details[open] .routine-list-chevron {
  transform: rotate(90deg);
}

.routine-list-body {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}

.routine-list-body .item-row {
  margin: 0;
}

.routine-list-details:not([open]) {
  margin-bottom: 2px;
}
