



#screenCreate{padding:0 0 0;position:fixed;top:0;left:0;right:0;bottom:0;z-index:200;background:var(--bg);transform:translateY(100%);transition:transform .32s cubic-bezier(.4,0,.2,1);overflow-y:auto;padding-top:env(safe-area-inset-top,0px);pointer-events:none;max-width:480px;margin:0 auto;}
#screenCreate.open{transform:translateY(0);pointer-events:auto;}


#createScrollBtns{
  position:fixed;
  right:max(14px,env(safe-area-inset-right));
  bottom:calc(104px + env(safe-area-inset-bottom));
  z-index:250;
  display:flex;
  flex-direction:column;
  gap:8px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  transform:translateY(4px);
}
#createScrollBtns.visible{opacity:1;transform:translateY(0);}
.create-scroll-btn{
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--border2);
  background:color-mix(in srgb,var(--surface) 88%,var(--accent) 12%);
  color:var(--t1);
  font-size:17px;
  font-weight:800;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 16px rgba(0,0,0,.14);
  backdrop-filter:blur(10px);
  pointer-events:none;
}
#createScrollBtns.visible .create-scroll-btn:not(:disabled){pointer-events:auto;}
.create-scroll-btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
.create-scroll-btn:disabled{opacity:.36;cursor:default;box-shadow:none;}



.edit-overlay{position:fixed;inset:0;z-index:400;background:rgba(0,0,0,.72);display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s;}
.edit-overlay.open{opacity:1;pointer-events:auto;}

.edit-field{margin-bottom:12px;}
.edit-field label{display:block;font-size:12px;font-weight:700;color:var(--t2);letter-spacing:.06em;text-transform:uppercase;margin-bottom:5px;}
.edit-field input,.edit-field textarea{width:100%;background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:11px 14px;font-size:15px;font-family:var(--font);color:var(--t1);outline:none;transition:border-color .15s;resize:none;}
.edit-field input:focus,.edit-field textarea:focus{border-color:var(--accent);}
.edit-field input::placeholder,.edit-field textarea::placeholder{color:var(--t5);}
.edit-counter{text-align:right;font-size:11px;color:var(--t5);margin-top:4px;transition:color .15s;}
.edit-counter.warn{color:var(--warn);}
.edit-counter.over{color:var(--danger);font-weight:700;}
.edit-field input.invalid,.edit-field textarea.invalid{border-color:var(--danger);}
.link-row{display:flex;align-items:center;gap:6px;margin-bottom:8px;}
.link-select{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 8px;font-size:14px;font-family:var(--font);color:var(--t1);outline:none;transition:border-color .15s;flex-shrink:0;}
.link-select:focus{border-color:var(--accent);}
.link-url{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 10px;font-size:14px;font-family:var(--font);color:var(--t1);outline:none;transition:border-color .15s;flex:1;min-width:0;}
.link-url:focus{border-color:var(--accent);}
.link-url.invalid{border-color:var(--danger);}

.link-help-text{
  margin:2px 2px 0;
  font-size:11px;
  line-height:1.55;
  color:var(--t4);
}
.link-url:disabled{
  opacity:.7;
  cursor:not-allowed;
}


.create-topbar{
  display:grid;grid-template-columns:minmax(72px,1fr) auto minmax(72px,1fr);
  align-items:center;gap:8px;
  padding:10px 14px;border-bottom:1px solid var(--border);
  position:sticky;top:0;background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none;z-index:10;
}
.create-back{
  display:inline-flex;align-items:center;gap:5px;justify-self:start;
  min-height:32px;padding:0 4px;
  font-size:14px;color:var(--t3);cursor:pointer;
  border:none;background:transparent;font-family:var(--font);
  transition:color .15s, background .15s;
}
.create-back:hover{color:var(--t1);}
.create-back:focus-visible,.create-preview-btn:focus-visible{outline:2px solid var(--accent2);outline-offset:2px;}
.create-back svg{width:16px;height:16px;flex:0 0 auto;}
.create-title{font-size:15px;font-weight:700;color:var(--t1);text-align:center;white-space:nowrap;}
.create-preview-btn{
  justify-self:end;
  background:rgba(74,85,104,.10);border:1px solid rgba(74,85,104,.22);
  border-radius:99px;padding:6px 11px;min-height:32px;
  font-size:11px;font-weight:700;color:var(--t2);
  cursor:pointer;font-family:var(--font);
  display:inline-flex;align-items:center;gap:5px;
}
.create-preview-btn:hover{background:rgba(74,85,104,.15);color:var(--t1);}
.create-preview-btn svg{flex:0 0 auto;}

.create-body{padding:14px 16px 18px;}

.create-writing-guide-card{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:
    linear-gradient(135deg, var(--surface2), var(--surface));
  border:1px solid var(--border2);
  border-radius:16px;
  padding:11px 12px;
  margin:0 0 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 2px 10px rgba(0,0,0,.08);
}
.create-writing-guide-text{min-width:0;display:flex;flex-direction:column;gap:2px;}
.create-writing-guide-title{font-size:12px;font-weight:900;color:var(--t1);letter-spacing:-.01em;line-height:1.4;}
.create-writing-guide-sub{font-size:10px;color:var(--t3);line-height:1.5;}
.create-writing-guide-btn{
  flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--border2);
  background:var(--accent);
  color:var(--on-accent);
  border-radius:999px;
  padding:7px 11px;
  min-height:32px;
  font-family:var(--font);
  font-size:11px;
  font-weight:900;
  cursor:pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 2px 8px rgba(0,0,0,.12);
}
.create-writing-guide-btn:hover{filter:brightness(1.04);}
.create-writing-guide-btn:active{transform:scale(.97);}
.section{margin-bottom:20px;}
.section-label{
  font-size:11px;font-weight:700;letter-spacing:.1em;
  color:var(--t2);text-transform:uppercase;
  margin-bottom:8px;display:flex;align-items:center;gap:7px;
}
.section-label::before{
  content:'';display:block;width:3px;height:11px;border-radius:2px;
  background:var(--accent);
}
.section-note{font-size:11px;font-weight:400;color:var(--t3);text-transform:none;letter-spacing:0;}


.create-body{
  padding:14px 14px 18px;
}
.create-section-card{
  position:relative;
  margin:0 0 18px;
  padding:14px;
  border:1px solid var(--border2);
  border-radius:22px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--bg2)), var(--surface));
  box-shadow:0 8px 20px rgba(15,23,42,.045);
}
.create-section-card + .create-section-card{
  margin-top:18px;
}
.create-section-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:12px;
}
.create-section-num{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:26px;
  padding:0 8px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  background:color-mix(in srgb, var(--accent) 9%, var(--bg3));
  color:var(--accent);
  font-family:var(--mono);
  font-size:11px;
  font-weight:900;
  line-height:1;
}
.create-section-title-wrap{
  flex:1;
  min-width:0;
}
.create-section-card .section-label{
  margin:0;
  font-size:13px;
  letter-spacing:.06em;
  color:var(--t1);
  line-height:1.35;
}
.create-section-card .section-label::before{
  display:none;
}
.create-section-card .section-note{
  margin-left:2px;
  color:var(--t4);
  font-size:11px;
  letter-spacing:0;
}
.create-section-desc{
  margin-top:3px;
  color:var(--t4);
  font-size:12px;
  line-height:1.55;
}
.create-section-card .profile-card,
.create-section-card .history-item,
.create-section-card .hl-card{
  background:color-mix(in srgb, var(--surface) 84%, var(--bg2));
  border-color:var(--border);
}
.create-section-card .profile-card{
  padding:13px;
}
.create-section-card .history-list{
  gap:9px;
}
.create-section-card .highlight-grid{
  gap:8px;
}
.create-section-card .add-btn{
  margin-top:12px;
  box-shadow:none;
  background:var(--bg3);
  border-style:dashed;
  color:var(--t2);
}
.create-section-card .add-btn:hover{
  background:var(--surface);
  box-shadow:none;
}
.create-section-card .help-btn{
  width:19px;
  height:19px;
  font-size:11px;
  margin-left:4px;
}
@media (max-width:360px){
  .create-body{padding-left:12px;padding-right:12px;}
  .create-section-card{padding:12px;border-radius:20px;}
  .create-section-head{gap:8px;}
  .create-section-num{min-width:31px;height:24px;font-size:10px;padding:0 7px;}
  .create-section-desc{font-size:11.5px;}
}


.help-btn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--accent);color:var(--surface);font-size:12px;font-weight:700;border:none;cursor:pointer;padding:0;margin-left:6px;line-height:1;font-family:var(--font);vertical-align:middle;flex-shrink:0;transition:transform .15s,opacity .15s;box-shadow:0 1px 3px rgba(0,0,0,.12);}
.help-btn:hover,.help-btn:active{opacity:0.85;transform:scale(1.08);}


.profile-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;}
.profile-icon-row{display:flex;align-items:center;gap:14px;margin-bottom:14px;}
.icon-picker{
  width:60px;height:60px;border-radius:50%;
  background:var(--accent);border:0;padding:3px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;flex-shrink:0;font-size:24px;
  position:relative;overflow:visible;transition:filter .15s, box-shadow .15s;
}
.icon-picker #iconDisplay{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border-radius:50%;background:var(--bg3);overflow:hidden;}
.icon-picker #iconDisplay img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block;}
.icon-picker:hover{filter:brightness(.98);}
.icon-picker input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:3;border-radius:50%;}
.icon-picker .icon-picker-edit{
  position:absolute;
  right:0;
  bottom:0;
  width:24px;
  height:24px;
  border-radius:50%;
  background:rgba(18,24,38,.72);
  border:2px solid var(--surface);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 10px rgba(0,0,0,.18);
  pointer-events:none;
  z-index:4;
}
.icon-picker .icon-picker-edit svg{width:12px;height:12px;display:block;}
.icon-hint{font-size:13px;color:var(--t2);line-height:1.5;}

.icon-hint-sub{font-size:11px;color:var(--t4);line-height:1.45;margin-top:4px;}
.icon-clear-btn{
  margin-top:7px;
  border:1px solid var(--border2);
  background:var(--surface);
  color:var(--t2);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:700;
  font-family:var(--font);
  cursor:pointer;
}
.icon-clear-btn:hover,.icon-clear-btn:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 40%, var(--border2));
  color:var(--accent);
  outline:none;
}
.form-field{margin-bottom:10px;}
.form-field:last-child{margin-bottom:0;}
.form-field label{display:block;font-size:10px;font-weight:700;color:var(--t2);letter-spacing:.06em;margin-bottom:5px;text-transform:uppercase;}
.form-input{
  width:100%;background:var(--bg2);
  border:1px solid var(--border);border-radius:var(--radius-sm);
  padding:10px 12px;font-size:16px;font-family:var(--font);
  color:var(--t1);outline:none;transition:border-color .15s;
}
.form-input:focus{border-color:var(--accent);}
.form-input::placeholder{color:var(--t5);}
.char-count{text-align:right;font-size:12px;color:var(--t4);margin-top:4px;font-family:var(--mono);}


.history-list{display:flex;flex-direction:column;gap:10px;}
.history-item{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;
  transition:border-color .2s;animation:fadeUp .22s ease;
}
.history-item.hi-flash{border-color:var(--accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 20%,transparent);transition:border-color .1s,box-shadow .1s;}
.history-item.hi-flash-out{border-color:var(--border);box-shadow:none;transition:border-color .6s,box-shadow .6s;}
@keyframes fadeUp{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:translateY(0);}}

.hi-header{display:flex;align-items:center;gap:10px;padding:11px 14px 9px;border-bottom:1px solid var(--border);cursor:pointer;user-select:none;transition:background .15s;}
@media(hover:hover){.hi-header:hover{background:var(--bg2);}}
.hi-header:active{background:var(--bg2);}
.hi-header-info{flex:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:6px;overflow:hidden;}
.hi-header-preview{font-size:12px;color:var(--t3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0;}
.hi-toggle{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:1px solid var(--border2);color:var(--accent);flex-shrink:0;margin-right:2px;}

.hi-edit-overlay{position:fixed;inset:0;z-index:8500;background:rgba(0,0,0,.55);display:flex;flex-direction:column;opacity:0;pointer-events:none;transition:opacity .2s;touch-action:none;}
.hi-edit-overlay.open{opacity:1;pointer-events:auto;touch-action:auto;}
.hi-edit-sheet{background:var(--surface);width:100%;height:100%;display:flex;flex-direction:column;transform:translateY(6px);transition:transform .22s cubic-bezier(.4,0,.2,1);}
.hi-edit-overlay.open .hi-edit-sheet{transform:translateY(0);}
.hi-edit-nav{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;border-bottom:1px solid var(--border);flex-shrink:0;gap:10px;}
.hi-edit-nav-title{font-size:15px;font-weight:700;color:var(--t1);min-width:0;flex:1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hi-edit-back,.hi-edit-save{min-height:34px;border-radius:999px;cursor:pointer;font-family:var(--font);transition:background .15s,border-color .15s,color .15s;}
.hi-edit-back{font-size:13px;color:var(--accent);background:var(--bg2);border:1px solid var(--border);padding:6px 10px 6px 8px;display:flex;align-items:center;gap:4px;flex-shrink:0;}
.hi-edit-save{font-size:13px;font-weight:700;color:var(--on-accent);background:var(--accent);border:1px solid color-mix(in srgb,var(--accent) 75%,var(--border));padding:6px 14px;flex-shrink:0;}
@media(hover:hover){.hi-edit-back:hover{background:var(--bg3);border-color:var(--border2);}.hi-edit-save:hover{filter:brightness(1.04);}}
.hi-edit-body{flex:1;overflow-y:auto;padding:15px 0 15px;overscroll-behavior:contain;}
.hi-del{width:26px;height:26px;border-radius:50%;border:1px solid var(--border);background:transparent;color:var(--t4);cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center;transition:all .15s;}
.hi-del:hover{border-color:var(--accent2);color:var(--accent2);background:var(--bg3);}

.hi-field{padding:10px 14px;display:flex;flex-direction:column;gap:5px;border-bottom:1px solid var(--border);}
.hi-field-last{border-bottom:none;padding-bottom:0;}
.hi-field-label{font-size:9px;font-weight:700;color:var(--t2);letter-spacing:.07em;text-transform:uppercase;}

.spinner-wrap{display:flex;align-items:center;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;}
.spin-btn{width:44px;height:46px;border:none;background:var(--bg3);color:var(--t1);font-size:20px;cursor:pointer;font-weight:300;transition:all .12s;display:flex;align-items:center;justify-content:center;border-radius:8px;}
.spin-btn:hover{background:var(--surface);color:var(--accent);}
.spin-num{flex:1;text-align:center;font-size:20px;font-weight:700;font-family:var(--mono);color:var(--t1);background:transparent;border:none;outline:none;min-width:0;}
.spin-presets{flex-wrap:wrap;gap:5px;margin-top:6px;padding:20px 0;}
.spin-preset{font-size:11px;padding:4px 11px;border-radius:99px;background:var(--bg3);border:1px solid var(--border);color:var(--t2);cursor:pointer;transition:all .12s;white-space:nowrap;}
.spin-preset:hover{background:var(--bg3);border-color:var(--accent);color:var(--t1);}

.hi-textarea{width:100%;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px;font-size:14px;font-family:var(--font);color:var(--t1);outline:none;resize:none;transition:border-color .15s;min-height:50px;line-height:1.5;}
.hi-textarea:focus{border-color:var(--accent);}
.hi-textarea::placeholder{color:var(--t5);font-size:13px;}
.hi-char-count{font-size:10px;color:var(--t4);font-variant-numeric:tabular-nums;flex-shrink:0;transition:color .15s;}
.hi-char-count.warn{color:var(--warn);}
.hi-textarea.warn{border-color:var(--danger);}
.hi-detail-btn{display:inline-flex;align-items:center;align-self:flex-start;gap:4px;margin:15px 0 15px 0;font-size:11px;font-weight:700;padding:5px 12px;border-radius:99px;background:var(--bg3);border:1px solid var(--border2);color:var(--accent);cursor:pointer;font-family:var(--font);transition:all .15s;}
.hi-detail-btn:hover{background:var(--bg3);}
.hi-detail-area{max-height:0;overflow:hidden;transition:max-height .28s cubic-bezier(.4,0,.2,1);}
.hi-detail-area.open{max-height:520px;}
.hi-img-add-btn{display:flex;align-items:center;gap:6px;width:100%;margin-top:15px;padding:9px 12px;background:var(--bg3);border:1px dashed var(--border2);border-radius:10px;color:var(--t3);font-size:13px;cursor:pointer;font-family:var(--font);transition:background .15s;}
.hi-img-add-btn:hover{background:var(--surface);}
.hi-img-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;}
.hi-img-thumb{position:relative;width:80px;height:60px;border-radius:8px;overflow:hidden;flex-shrink:0;}
.hi-img-thumb img{width:100%;height:100%;object-fit:cover;}
.hi-img-thumb-del{position:absolute;top:2px;right:2px;background:rgba(0,0,0,.6);border:none;border-radius:50%;width:18px;height:18px;color:#fff;font-size:11px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;}
.tl-img-slider{display:flex;gap:8px;overflow-x:auto;padding:4px 0 8px;scrollbar-width:none;margin-top:8px;}
.tl-img-slider::-webkit-scrollbar{display:none;}
.tl-img-slider:has(> .tl-img-slide:only-child){justify-content:center;}
.tl-img-slide{flex-shrink:0;width:180px;height:120px;border-radius:10px;overflow:hidden;}
.tl-img-slide img{width:100%;height:100%;object-fit:cover;cursor:pointer;}

.add-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:var(--radius);border:1px solid var(--border2);background:linear-gradient(135deg,color-mix(in srgb,var(--surface2) 88%,var(--accent) 12%),color-mix(in srgb,var(--surface) 92%,var(--accent) 8%));color:var(--t2);font-size:13px;font-weight:700;font-family:var(--font);cursor:pointer;transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .15s;margin-top:18px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 12%,transparent),0 8px 18px rgba(0,0,0,.10);}
.add-btn svg{color:var(--accent);filter:drop-shadow(0 0 5px color-mix(in srgb,var(--accent) 26%,transparent));}
.add-btn:hover{border-color:var(--accent);color:var(--t1);background:linear-gradient(135deg,color-mix(in srgb,var(--surface2) 78%,var(--accent) 22%),color-mix(in srgb,var(--surface) 84%,var(--accent) 16%));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 22%,transparent),0 10px 22px rgba(0,0,0,.14);}
.add-btn:active{transform:translateY(1px);}

.highlight-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;}
.hl-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px;transition:border-color .15s;}
.hl-card:focus-within{border-color:var(--border2);}
.hl-card-labelrow{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.hl-card-lbl{font-size:9px;font-weight:700;color:var(--t2);letter-spacing:.06em;text-transform:uppercase;}
.hl-edit-btn{background:var(--hl-bg);border:1px solid var(--border);padding:3px 6px;border-radius:4px;cursor:pointer;color:var(--t3);font-size:11px;line-height:1;transition:all .15s;font-family:var(--font);}
.hl-edit-btn:hover{color:var(--accent);border-color:var(--accent);}
.hl-input{width:100%;background:transparent;border:none;border-bottom:1px solid var(--border);padding:4px 0;font-size:13px;font-family:var(--font);color:var(--t1);outline:none;transition:border-color .15s;}
.hl-input:focus{border-color:var(--accent);}
.hl-input::placeholder{color:var(--t5);font-size:12px;}
.hl-img-row{display:flex;align-items:center;gap:7px;margin-top:7px;min-height:28px;}
.hl-img-add-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;background:transparent;border:1px dashed var(--border2);border-radius:7px;color:var(--t4);font-size:11px;cursor:pointer;font-family:var(--font);flex-shrink:0;transition:background .15s,color .15s,border-color .15s;}
.hl-img-add-btn:hover{background:var(--hl-bg);color:var(--t2);border-color:var(--border);} 
.hl-img-thumb-wrap{display:flex;align-items:center;min-height:44px;}
.hl-img-thumb{position:relative;width:44px;height:44px;border-radius:8px;overflow:hidden;flex-shrink:0;border:1px solid var(--border);background:var(--bg2);}
.hl-img-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.hl-img-thumb-del{position:absolute;top:2px;right:2px;background:rgba(0,0,0,.62);border:none;border-radius:50%;width:16px;height:16px;color:#fff;font-size:10px;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;padding:0;}
.hl-img-thumb-del:hover{background:rgba(0,0,0,.78);}
.resume-hl-item{background:var(--hl-bg);border-radius:var(--radius-sm);padding:7px 9px;cursor:pointer;transition:opacity .15s;}
.resume-hl-item:active{opacity:.75;}

.hl-react-badge{display:inline-flex;align-items:center;gap:3px;padding:3px 8px;border-radius:99px;background:var(--hl-bg);border:1px solid var(--border);font-size:12px;font-weight:700;color:var(--t2);}
.hl-react-badge.mine{border-color:var(--accent);background:rgba(var(--accent-rgb),.08);}
.hl-react-item{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:9px;cursor:pointer;font-size:14px;transition:background .12s;}
.hl-react-item:hover{background:var(--hl-bg);}
.hl-react-item.selected{background:var(--hl-bg);font-weight:700;}

.hl-picker-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:9100;display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s;}
.hl-picker-overlay.open{opacity:1;pointer-events:auto;}
.hl-picker-sheet{background:var(--bg2);border-radius:20px 20px 0 0;width:100%;max-width:480px;padding-bottom:24px;transform:translateY(24px);transition:transform .22s;box-shadow:0 -16px 40px rgba(0,0,0,.18);}
.hl-picker-overlay.open .hl-picker-sheet{transform:translateY(0);}
.hl-picker-hd{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px;border-bottom:1px solid var(--border);}
.hl-picker-heading{display:flex;flex-direction:column;gap:3px;}
.hl-picker-title{font-size:14px;font-weight:700;color:var(--t1);}
.hl-picker-sub{font-size:11px;color:var(--t4);}
.hl-picker-close{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;background:var(--bg3);border:1px solid var(--border);border-radius:999px;font-size:15px;color:var(--t3);cursor:pointer;padding:0;line-height:1;}
.hl-preset-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;}
.hl-preset-item{appearance:none;width:100%;display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--bg2);cursor:pointer;transition:background .12s,border-color .12s,transform .12s;text-align:left;font-family:var(--font);}
.hl-preset-item:hover{background:var(--hl-bg);border-color:var(--border2);}
.hl-preset-item:active{transform:scale(.98);}
.hl-preset-icon{font-size:15px;width:22px;text-align:center;flex-shrink:0;}
.hl-preset-text{font-size:13px;color:var(--t1);font-weight:700;line-height:1.4;}
.hl-preset-custom{grid-column:1 / -1;margin-top:2px;border-color:var(--border2);background:var(--hl-bg);}
.hl-preset-custom .hl-preset-text{color:var(--accent);font-weight:700;}
.hl-custom-input-row{grid-column:1 / -1;display:flex;align-items:center;gap:8px;padding:2px 0 0;}
.hl-custom-input{flex:1;min-width:0;background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:10px 12px;font-size:13px;font-family:var(--font);color:var(--t1);outline:none;}
.hl-custom-input:focus{border-color:var(--accent);}
.hl-custom-ok{padding:10px 16px;background:var(--accent);color:var(--on-accent,#fff);border:none;border-radius:12px;font-size:13px;font-weight:700;cursor:pointer;font-family:var(--font);white-space:nowrap;}

.save-btn{flex:1.18;border-radius:14px;padding:12px 14px;text-align:center;font-size:15px;font-weight:800;background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 56%,var(--surface) 44%),color-mix(in srgb,var(--accent2) 42%,var(--surface2) 58%));color:var(--on-accent,#fff);border:1px solid color-mix(in srgb,var(--accent) 36%,var(--border2));cursor:pointer;font-family:var(--font);opacity:.72;pointer-events:none;transition:opacity .2s,transform .2s,filter .2s,box-shadow .2s,border-color .2s;background-color:var(--accent);min-height:48px;display:flex;align-items:center;justify-content:center;line-height:1.2;box-shadow:inset 0 0 0 1px color-mix(in srgb,#fff 16%,transparent);}
.save-btn.active{opacity:1;pointer-events:auto;background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent2) 72%,var(--accent) 28%));border-color:color-mix(in srgb,var(--accent) 68%,#fff 18%);box-shadow:inset 0 0 0 1px color-mix(in srgb,#fff 18%,transparent),0 10px 24px color-mix(in srgb,var(--accent) 22%,transparent);}
.save-btn.active:active{transform:translateY(1px);filter:brightness(.98);}
.draft-btn{flex:.82;border-radius:14px;padding:9px 12px;text-align:center;font-size:13px;font-weight:700;background:var(--bg2);color:var(--accent);border:1px solid var(--border2);cursor:pointer;font-family:var(--font);transition:background .2s,border-color .2s,transform .2s;line-height:1.25;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;}
.draft-btn:hover{background:var(--bg3);}
.draft-btn:active{transform:translateY(1px);}


.create-footer{position:sticky;bottom:0;background:var(--card);backdrop-filter:none;-webkit-backdrop-filter:none;padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--border2);display:flex;gap:8px;align-items:stretch;z-index:10;box-shadow:0 -10px 22px rgba(15,23,42,.08),inset 0 1px 0 color-mix(in srgb,#fff 8%,transparent);}
.create-footer-main{display:block;white-space:nowrap;}
.create-footer-note{display:block;font-size:10px;font-weight:600;color:var(--t4);text-align:center;line-height:1.15;}
.create-footer .draft-btn:focus-visible,.create-footer .save-btn:focus-visible{outline:2px solid var(--accent3);outline-offset:2px;}



.history-empty{text-align:center;padding:20px 16px;color:var(--t3);font-size:13px;line-height:1.8;}
.history-empty svg{display:block;margin:0 auto 10px;opacity:.3;}



.settings-save-btn{
  background:none;
  border:none;
  color:var(--accent);
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  padding:10px 0 10px 12px;
  min-height:44px;
  border-radius:12px;
  font-family:var(--font);
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.settings-save-btn:active{background:var(--bg3);}
.profile-edit-body{
  padding:16px 16px 80px;
  overflow-y:auto;
  height:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.profile-edit-save-pill{
  align-self:center;
  min-width:160px;min-height:46px;
  margin:6px 0 4px;
  padding:13px 30px;border-radius:999px;
  background:var(--bg2);color:var(--accent);
  border:1px solid var(--border);
  font-size:14px;font-weight:800;cursor:pointer;font-family:var(--font);
  transition:background .15s;
}
@media(hover:hover){.profile-edit-save-pill:hover{background:var(--bg3);}}
.profile-edit-save-pill:active{background:var(--bg3);}
.profile-edit-note{
  padding:14px 15px;
  border:1px solid var(--border);
  border-radius:16px;
  background:color-mix(in srgb, var(--surface) 92%, var(--accent) 4%);
}
.profile-edit-note-title{
  color:var(--t1);
  font-size:14px;
  font-weight:800;
  line-height:1.45;
}
.profile-edit-note-text{
  margin-top:5px;
  color:var(--t3);
  font-size:12px;
  line-height:1.65;
}
.profile-edit-body .edit-field{
  margin-bottom:0;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface);
}
.profile-edit-body .edit-field label{
  display:flex;
  align-items:center;
  gap:6px;
  justify-content:space-between;
  margin-bottom:9px;
}
.profile-edit-body .edit-field label .help-btn{
  margin-left:auto;
}
.profile-edit-body .edit-field input,
.profile-edit-body .edit-field textarea,
.profile-edit-body .link-select,
.profile-edit-body .link-url{
  min-height:44px;
}
.profile-edit-body .edit-field textarea{
  line-height:1.65;
}
.profile-edit-body .edit-counter{
  margin-top:7px;
}


.profile-edit-body .edit-field.profile-field-flash{
  border-color:var(--accent) !important;
  background:color-mix(in srgb, var(--accent) 12%, var(--surface));
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), 0 10px 28px rgba(74,85,104,.14);
  transition:border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.profile-edit-body .edit-field.profile-field-flash textarea{
  border-color:var(--accent) !important;
  box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent);
}
.profile-edit-body .edit-field.profile-field-flash-out{
  border-color:var(--border);
  background:var(--surface);
  box-shadow:none;
  transition:border-color .75s ease, background-color .75s ease, box-shadow .75s ease;
}
.profile-edit-body .link-row{
  gap:8px;
  margin-bottom:10px;
}
.profile-edit-body .link-row:last-child{margin-bottom:0;}
.profile-edit-body .link-select{
  width:112px;
}
.profile-edit-body .link-url{
  min-width:0;
}
@media(max-width:380px){
  .profile-edit-body{padding-left:14px;padding-right:14px;}
  .profile-edit-body .link-row{
    align-items:stretch;
    flex-direction:column;
    gap:7px;
  }
  .profile-edit-body .link-select{width:100%;}
}


.create-section-highlight .hl-card{
  border-color:color-mix(in srgb, var(--accent) 24%, var(--border2));
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 7%, transparent);
}
.create-section-highlight .hl-card:focus-within{
  border-color:color-mix(in srgb, var(--accent) 48%, var(--border2));
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.create-section-highlight .hl-input::placeholder{
  color:var(--t4);
}



#helpModal .tl-modal-box{
  width:100%;
  max-width:380px;
}
#helpModalBody{
  display:flex;
  flex-direction:column;
  gap:12px;
}
#helpModalBody .help-modal-block{
  display:flex;
  flex-direction:column;
  gap:4px;
}
#helpModalBody .help-modal-block strong{
  display:block;
  font-size:13px;
  font-weight:900;
  color:var(--t1);
  line-height:1.45;
}
#helpModalBody .help-modal-block span{
  display:block;
  font-size:14px;
  color:var(--t3);
  line-height:1.65;
  white-space:pre-line;
}
.create-section-profile .icon-picker{
  box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}
.create-section-profile .icon-picker:hover,
.create-section-profile .icon-picker:focus-within{
  box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 34%, transparent);
}
.create-section-profile .form-input{
  border-color:color-mix(in srgb, var(--accent) 24%, var(--border2));
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 7%, transparent);
}
.create-section-profile .form-input:focus{
  border-color:color-mix(in srgb, var(--accent) 48%, var(--border2));
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.create-section-history .add-btn{
  border-color:color-mix(in srgb, var(--accent) 24%, var(--border2));
}
.create-section-history .add-btn:hover,
.create-section-history .add-btn:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 48%, var(--border2));
}


.create-focus-flash{
  position:relative;
  z-index:2;
  animation:createGuideFlash 1.35s ease-in-out both;
  box-shadow:0 0 0 0 rgba(17,24,39,0), 0 0 0 8px color-mix(in srgb,var(--accent) 18%,transparent)!important;
}
.create-focus-flash-out{
  animation:createGuideFlashOut .9s ease-out both;
}
.create-focus-flash input,
.create-focus-flash textarea,
.create-focus-flash button{
  border-color:var(--accent)!important;
}
@keyframes createGuideFlash{
  0%{ transform:translateY(0) scale(1); box-shadow:0 0 0 0 rgba(17,24,39,0); }
  18%{ transform:translateY(-1px) scale(1.018); box-shadow:0 0 0 8px color-mix(in srgb,var(--accent) 18%,transparent), 0 10px 26px rgba(17,24,39,.12); }
  44%{ transform:translateY(0) scale(1.006); box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 14%,transparent), 0 8px 20px rgba(17,24,39,.09); }
  72%{ transform:translateY(-1px) scale(1.014); box-shadow:0 0 0 10px color-mix(in srgb,var(--accent) 13%,transparent), 0 10px 24px rgba(17,24,39,.10); }
  100%{ transform:translateY(0) scale(1); box-shadow:0 0 0 0 rgba(17,24,39,0); }
}
@keyframes createGuideFlashOut{
  0%{ box-shadow:0 0 0 8px color-mix(in srgb,var(--accent) 12%,transparent); }
  100%{ box-shadow:0 0 0 0 rgba(17,24,39,0); }
}


.create-section-highlight .highlight-grid{
  grid-template-columns:1fr 1fr;
  gap:12px;
  align-items:stretch;
}
.create-section-highlight .hl-card{
  min-height:112px;
}
.create-section-highlight .hl-card.is-hidden{
  display:none;
}
.create-section-highlight .hl-card-lbl.is-placeholder{
  color:var(--t1);
  font-size:12px;
  letter-spacing:0;
  text-transform:none;
}
.hl-add-card{
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed color-mix(in srgb, var(--border) 78%, transparent);
  border-radius:var(--radius);
  background:color-mix(in srgb, var(--surface) 72%, transparent);
  color:color-mix(in srgb, var(--t3) 78%, transparent);
  cursor:pointer;
  transition:border-color .15s, background .15s, transform .15s, box-shadow .15s, color .15s;
  box-shadow:none;
}
.hl-add-card:hover,
.hl-add-card:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 26%, var(--border));
  background:color-mix(in srgb, var(--surface) 88%, var(--accent) 4%);
  color:color-mix(in srgb, var(--accent) 58%, var(--t3));
  outline:none;
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 7%, transparent);
}
.hl-add-card:active{
  transform:translateY(1px);
}
.hl-add-card-plus{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid color-mix(in srgb, currentColor 58%, transparent);
  border-radius:50%;
  font-size:22px;
  font-weight:300;
  line-height:1;
  opacity:.86;
}
@media (max-width: 360px){
  .create-section-highlight .highlight-grid{
    gap:10px;
  }
  .create-section-highlight .hl-card,
  .hl-add-card{
    min-height:104px;
  }
  .hl-add-card-plus{
    width:38px;
    height:38px;
    font-size:20px;
  }
}


.create-section-highlight .hl-card-labelrow{
  gap:4px;
}
.create-section-highlight .hl-card-lbl{
  margin-right:auto;
  min-width:0;
}
.hl-delete-btn{
  appearance:none;
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border:1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius:6px;
  background:color-mix(in srgb, var(--surface) 86%, transparent);
  color:color-mix(in srgb, var(--t4) 86%, transparent);
  font-family:var(--font);
  font-size:13px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:background .15s, border-color .15s, color .15s, transform .15s;
}
.hl-delete-btn:hover,
.hl-delete-btn:focus-visible{
  border-color:color-mix(in srgb, var(--danger, #ef4444) 38%, var(--border));
  background:color-mix(in srgb, var(--danger, #ef4444) 8%, var(--surface));
  color:color-mix(in srgb, var(--danger, #ef4444) 72%, var(--t2));
  outline:none;
}
.hl-delete-btn:active{
  transform:translateY(1px);
}


.create-section-highlight .highlight-grid{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
}
.create-section-highlight .hl-card,
.create-section-highlight .hl-add-card{
  width:100%;
  box-sizing:border-box;
}
.create-section-highlight .hl-card{
  min-height:0;
  display:block;
  padding:11px 12px;
  border:1px solid color-mix(in srgb, var(--accent) 20%, var(--border2));
  border-radius:var(--radius);
  background:color-mix(in srgb, var(--surface) 88%, var(--bg2));
  box-shadow:none;
}
.create-section-highlight .hl-card:focus-within{
  border-color:color-mix(in srgb, var(--accent) 42%, var(--border2));
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}
.create-section-highlight .hl-card.is-hidden{
  display:none;
}
.create-section-highlight .hl-card-labelrow{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:9px;
}
.hl-label-btn{
  appearance:none;
  min-width:0;
  min-height:38px;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:8px 10px;
  border:1px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius:10px;
  background:color-mix(in srgb, var(--bg3) 82%, var(--surface));
  color:var(--t2);
  font-family:var(--font);
  cursor:pointer;
  text-align:left;
  transition:background .15s, border-color .15s, color .15s, transform .15s;
}
.hl-label-btn:hover,
.hl-label-btn:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 38%, var(--border2));
  background:color-mix(in srgb, var(--surface) 88%, var(--accent) 5%);
  color:var(--t1);
  outline:none;
}
.hl-label-btn:active{
  transform:translateY(1px);
}
.create-section-highlight .hl-card-lbl{
  overflow:hidden;
  max-width:100%;
  color:inherit;
  font-size:12px;
  font-weight:850;
  letter-spacing:0;
  line-height:1.25;
  text-overflow:ellipsis;
  text-transform:none;
  white-space:nowrap;
}
.create-section-highlight .hl-card-lbl.is-placeholder{
  color:var(--t3);
  font-size:12px;
}
.create-section-highlight .hl-delete-btn{
  width:34px;
  height:34px;
  border-radius:10px;
  font-size:15px;
  background:color-mix(in srgb, var(--surface) 90%, transparent);
}
.create-section-highlight .hl-card-body{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:10px;
}
.create-section-highlight .hl-input{
  min-width:0;
  min-height:40px;
  padding:8px 0;
  border:none;
  border-bottom:1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius:0;
  background:transparent;
  font-size:14px;
  line-height:1.45;
}
.create-section-highlight .hl-input:focus{
  border-color:var(--accent);
}
.create-section-highlight .hl-input::placeholder{
  color:var(--t4);
  font-size:13px;
}
.create-section-highlight .hl-img-row{
  min-height:44px;
  margin-top:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}
.create-section-highlight .hl-img-add-btn{
  min-height:34px;
  padding:6px 8px;
  border-color:color-mix(in srgb, var(--border2) 74%, transparent);
  border-radius:10px;
  background:color-mix(in srgb, var(--surface) 82%, transparent);
  color:var(--t4);
  font-size:11px;
  white-space:nowrap;
}
.create-section-highlight .hl-img-add-btn:hover,
.create-section-highlight .hl-img-add-btn:focus-within{
  border-color:color-mix(in srgb, var(--accent) 34%, var(--border2));
  background:color-mix(in srgb, var(--accent) 5%, var(--surface));
  color:var(--t2);
}
.create-section-highlight .hl-img-thumb-wrap{
  min-height:44px;
}
.create-section-highlight .hl-img-thumb{
  width:48px;
  height:48px;
  border-radius:10px;
}
.create-section-highlight .hl-add-card{
  min-height:44px;
  flex-direction:row;
  gap:8px;
  padding:10px 12px;
  border:1px dashed color-mix(in srgb, var(--border2) 72%, transparent);
  border-radius:var(--radius);
  background:color-mix(in srgb, var(--surface) 72%, transparent);
  color:var(--t3);
}
.create-section-highlight .hl-add-card:hover,
.create-section-highlight .hl-add-card:focus-visible{
  border-color:color-mix(in srgb, var(--accent) 30%, var(--border2));
  background:color-mix(in srgb, var(--surface) 88%, var(--accent) 4%);
  color:color-mix(in srgb, var(--accent) 62%, var(--t2));
}
.create-section-highlight .hl-add-card-plus{
  width:22px;
  height:22px;
  border-radius:999px;
  font-size:15px;
  font-weight:600;
}
.hl-add-card-text{
  font-size:12px;
  font-weight:850;
  line-height:1;
}
@media (max-width:360px){
  .create-section-highlight .highlight-grid{
    gap:9px;
  }
  .create-section-highlight .hl-card{
    padding:10px 11px;
  }
  .create-section-highlight .hl-card-labelrow{
    gap:7px;
  }
  .create-section-highlight .hl-label-btn{
    min-height:36px;
  }
  .create-section-highlight .hl-delete-btn{
    width:32px;
    height:32px;
  }
}


.create-section-highlight .hl-input-wrap{
  min-width:0;
  display:grid;
  gap:3px;
}
.create-section-highlight .hl-char-count{
  justify-self:end;
  color:var(--t4);
  font-size:10px;
  font-weight:800;
  line-height:1;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
  user-select:none;
}
.create-section-highlight .hl-char-count.is-near-limit{
  color:color-mix(in srgb, var(--accent) 72%, var(--t2));
}




.profile-api-candidate-card{
  padding:14px 15px;
  border:1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius:16px;
  background:color-mix(in srgb, var(--surface) 88%, var(--accent) 5%);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.profile-api-candidate-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.profile-api-candidate-kicker{
  color:var(--accent);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  line-height:1.2;
}
.profile-api-candidate-title{
  margin-top:4px;
  color:var(--t1);
  font-size:14px;
  font-weight:850;
  line-height:1.35;
}
.profile-api-candidate-status{
  flex:0 0 auto;
  max-width:42%;
  padding:5px 8px;
  border-radius:999px;
  background:var(--bg3);
  color:var(--t3);
  font-size:10px;
  font-weight:800;
  line-height:1.2;
  text-align:center;
}
.profile-api-candidate-card[data-state="ready"] .profile-api-candidate-status{
  background:color-mix(in srgb, var(--accent) 14%, var(--bg3));
  color:var(--accent);
}
.profile-api-candidate-card[data-state="error"] .profile-api-candidate-status,
.profile-api-candidate-card[data-state="warn"] .profile-api-candidate-status{
  background:color-mix(in srgb, var(--danger) 10%, var(--bg3));
  color:var(--danger);
}
.profile-api-candidate-body{
  margin-top:12px;
}
.profile-api-candidate-grid{
  display:grid;
  gap:8px;
}
.profile-api-candidate-row{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding:8px 9px;
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius:12px;
  background:color-mix(in srgb, var(--bg3) 70%, transparent);
}
.profile-api-candidate-row span{
  color:var(--t4);
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
}
.profile-api-candidate-row b{
  min-width:0;
  color:var(--t2);
  font-size:12px;
  font-weight:750;
  line-height:1.55;
  overflow-wrap:anywhere;
}
.profile-api-candidate-note{
  margin-top:10px;
  color:var(--t4);
  font-size:11px;
  line-height:1.65;
}


.profile-api-phase-box{
  margin-top:10px;
  padding:10px;
  border:1px dashed color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius:13px;
  background:color-mix(in srgb, var(--accent) 5%, var(--bg2));
}
.profile-api-phase-title{
  color:var(--t2);
  font-size:11px;
  font-weight:900;
  line-height:1.35;
  margin-bottom:8px;
}
.profile-api-phase-grid{
  display:grid;
  gap:6px;
}
.profile-api-phase-row{
  display:grid;
  grid-template-columns:82px minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:7px 8px;
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius:11px;
  background:color-mix(in srgb, var(--surface) 82%, transparent);
}
.profile-api-phase-row span{
  color:var(--t4);
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}
.profile-api-phase-row b{
  min-width:0;
  color:var(--t2);
  font-size:12px;
  font-weight:850;
  overflow-wrap:anywhere;
}
.profile-api-phase-row em{
  font-style:normal;
  justify-self:end;
  max-width:120px;
  padding:2px 7px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--bg3);
  color:var(--t4);
  font-size:9px;
  font-weight:850;
  line-height:1.25;
  text-align:center;
}
@media (max-width: 420px){
  .profile-api-phase-row{
    grid-template-columns:76px minmax(0,1fr);
  }
  .profile-api-phase-row em{
    grid-column:2;
    justify-self:start;
    max-width:100%;
  }
}



.profile-icon-clear-card{
  margin-top:12px;
  margin-bottom:14px;
  padding:14px 15px;
  border:1px solid color-mix(in srgb, var(--border) 82%, var(--accent) 10%);
  border-radius:16px;
  background:color-mix(in srgb, var(--surface) 92%, var(--bg3) 8%);
  box-shadow:0 8px 20px rgba(15,23,42,.05);
}
.profile-icon-clear-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}
.profile-icon-clear-kicker{
  color:var(--t4);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  line-height:1.2;
}
.profile-icon-clear-title{
  margin-top:4px;
  color:var(--t1);
  font-size:14px;
  font-weight:850;
  line-height:1.35;
}
.profile-icon-clear-status{
  flex:0 0 auto;
  max-width:42%;
  padding:5px 8px;
  border-radius:999px;
  background:var(--bg3);
  color:var(--t4);
  font-size:10px;
  font-weight:850;
  line-height:1.2;
  text-align:center;
}
.profile-icon-clear-card[data-state="ready"] .profile-icon-clear-status{
  background:color-mix(in srgb, var(--accent) 12%, var(--bg3));
  color:var(--accent);
}
.profile-icon-clear-body{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:12px;
  align-items:center;
}
.profile-icon-clear-preview{
  width:48px;
  height:48px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--bg3);
  display:grid;
  place-items:center;
  overflow:hidden;
  color:var(--t3);
  font-size:22px;
}
.profile-icon-clear-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.profile-icon-clear-text{
  min-width:0;
  color:var(--t2);
  font-size:12px;
  font-weight:750;
  line-height:1.55;
}
.profile-icon-clear-note{
  margin-top:3px;
  color:var(--t4);
  font-size:11px;
  font-weight:650;
  line-height:1.55;
}
.profile-icon-clear-btn{
  width:100%;
  margin-top:12px;
  padding:10px 12px;
  border:1px solid color-mix(in srgb, var(--danger) 34%, var(--border));
  border-radius:12px;
  background:color-mix(in srgb, var(--danger) 7%, var(--surface));
  color:var(--danger);
  font-family:var(--font);
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}
.profile-icon-clear-btn:disabled{
  cursor:not-allowed;
  opacity:.48;
  color:var(--t4);
  border-color:var(--border);
  background:var(--bg3);
}


.resume-theme-picker{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;-webkit-overflow-scrolling:touch;}
.rtp-option{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:1.5px solid var(--border);border-radius:12px;padding:8px 10px;min-width:64px;cursor:pointer;font-family:var(--font);color:var(--t2);transition:border-color .15s, background-color .15s;}
.rtp-option:hover{border-color:var(--border2);}
.rtp-option.is-active{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 10%, transparent);}
.rtp-swatch{width:34px;height:34px;border-radius:9px;border:1px solid var(--border2);display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--surface);}
.rtp-swatch i{width:16px;height:16px;border-radius:50%;display:block;background:var(--accent);}
.rtp-name{font-size:11px;font-weight:700;white-space:nowrap;max-width:82px;overflow:hidden;text-overflow:ellipsis;}


body.hl-sheet-ui:not(.pc-layout) .create-section-highlight .hl-card{position:relative;cursor:pointer;}
body.hl-sheet-ui:not(.pc-layout) .create-section-highlight .hl-card .hl-input{pointer-events:none;border-bottom-color:transparent;padding-right:18px;}
body.hl-sheet-ui:not(.pc-layout) .create-section-highlight .hl-card .hl-char-count{display:none;}
body.hl-sheet-ui:not(.pc-layout) .create-section-highlight .hl-card .hl-img-add-btn{display:none;}
body.hl-sheet-ui:not(.pc-layout) .create-section-highlight .hl-card .hl-delete-btn{display:none;}
body.hl-sheet-ui:not(.pc-layout) .create-section-highlight .hl-card .hl-label-plus{display:none;}
body.hl-sheet-ui:not(.pc-layout) .create-section-highlight .hl-card .hl-label-btn{pointer-events:none;}
body.hl-sheet-ui:not(.pc-layout) .create-section-highlight .hl-card .hl-img-row{margin-top:4px;min-height:0;}
body.hl-sheet-ui:not(.pc-layout) .create-section-highlight .hl-card::after{content:'\203A';position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--t4);font-size:18px;pointer-events:none;}

body.hl-sheet-ui:not(.pc-layout) .create-section-highlight .hl-input::placeholder{color:var(--t5);}

.hl-sheet-scrim{position:fixed;inset:0;background:rgba(15,18,30,.44);z-index:8600;opacity:0;visibility:hidden;transition:opacity .2s;}
.hl-sheet-scrim.open{opacity:1;visibility:visible;}
.hl-edit-sheet{position:fixed;left:0;right:0;bottom:0;background:var(--surface);border-radius:20px 20px 0 0;z-index:8601;transform:translateY(100%);transition:transform .26s cubic-bezier(.22,.61,.36,1);max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;box-shadow:0 -10px 30px rgba(20,20,40,.18);}
.hl-edit-sheet.open{transform:translateY(0);}
.hl-edit-hd{position:sticky;top:0;background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:16px 16px 10px;border-bottom:1px solid var(--border);border-radius:20px 20px 0 0;z-index:1;}
.hl-edit-title{font-size:16px;font-weight:900;color:var(--t1);}
.hl-edit-close{width:34px;height:34px;border-radius:999px;border:1px solid var(--border2);background:var(--bg2);color:var(--t2);font-size:15px;font-weight:900;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.hl-edit-body{padding:16px;}
.hl-edit-flbl{font-size:11px;font-weight:800;color:var(--t3);letter-spacing:.04em;margin:0 0 6px;}
.hl-edit-labelbtn{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border:1px solid var(--border2);border-radius:12px;background:var(--bg2);color:var(--t1);font-size:14px;font-weight:700;font-family:var(--font);cursor:pointer;}
.hl-edit-labelbtn .hl-card-lbl{text-transform:none;font-size:14px;font-weight:700;color:var(--t1);letter-spacing:0;}
.hl-edit-labelbtn .hl-card-lbl.is-placeholder{color:var(--t4);}
.hl-edit-labelbtn .hl-label-plus{color:var(--accent);font-size:17px;font-weight:800;line-height:1;}
.hl-edit-txtwrap{position:relative;margin-top:16px;}
.hl-edit-input{width:100%;padding:13px 14px;border:1px solid var(--accent);border-radius:12px;background:var(--surface);font-size:15px;font-family:var(--font);color:var(--t1);outline:none;}
.hl-edit-cnt{position:absolute;right:12px;bottom:-18px;font-size:11px;color:var(--t5);}
.hl-edit-imgrow{margin-top:28px;display:flex;align-items:center;gap:10px;min-height:44px;}
.hl-edit-imgrow .hl-img-add-btn{display:inline-flex;}
.hl-edit-foot{display:flex;gap:10px;padding:14px 16px calc(18px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--border);position:sticky;bottom:0;background:var(--surface);}
.hl-edit-del{flex:0 0 30%;padding:10px 14px;border-radius:999px;border:1px solid var(--border2);background:var(--bg2);color:var(--danger, #d33);font-size:14px;font-weight:800;font-family:var(--font);cursor:pointer;}
.hl-edit-done{flex:1;padding:10px 14px;border-radius:999px;border:0;background:var(--accent);color:#fff;font-size:14px;font-weight:800;font-family:var(--font);cursor:pointer;}


body:not(.pc-layout) .create-back{
  justify-content:center;
  min-width:64px;
  height:32px;
  min-height:32px;
  padding:6px 12px;
  font-size:13px;
  color:var(--t3);
  border:1px solid var(--border);
  border-radius:99px;
  background:transparent;
  flex-shrink:0;
}
body:not(.pc-layout) .create-back:hover{ border-color:var(--accent2); color:var(--accent2); background:transparent; }
body:not(.pc-layout) .create-back svg{ width:14px; height:14px; }


body:not(.pc-layout) .create-body{ padding-top:0; }
body:not(.pc-layout) #saveIndicator{ height:14px !important; line-height:14px !important; padding:0 !important; }


#saveIndicator{ height:0 !important; padding:0 !important; margin:0 !important; overflow:visible !important; font-size:0 !important; line-height:0 !important; z-index:60; pointer-events:none; }
body:not(.pc-layout) #saveIndicator{ position:sticky !important; top:60px !important; height:0 !important; line-height:0 !important; }
#saveIndicator::before{
  content:"✓ 自動保存しました"; position:absolute; left:50%; top:0; transform:translate(-50%,-4px);
  white-space:nowrap; font-size:13px; line-height:1.3; font-weight:700; letter-spacing:.02em;
  color:#fff; background:#2F855A; padding:8px 18px; border-radius:999px;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}
