/* «셀프 연하장» 첫 화면(card/newyear_self.php · 2026-10-25 대표님 14601 → 카드 946 «㉯ 같은 모습, 가볍게»)
   (10-25 23시 대표님 «인위적으로 하지 말고 · 그냥 에디터 똑같이 하되 패널만 위로 올라타게 · 카드는 100%로 키워 다 채워지게 ·
   뒤에 뿌옇게 보일 필요 없어 · 왼쪽 메뉴가 왜 하얀색으로 따로 나눠져»)
   윗줄·왼쪽 메뉴·작업대 = 진짜 편집기의 같은 마크업 + 같은 CSS(이 앞에 싣는 editor/css/editor.css · editor-panel-balance.css).
   여기에는 따로 흉내 낸 윗줄·메뉴 모양이 없다 — «누르지 않음»과 패널(편집기 옆 패널 .ed-side-panel 과 같은 흰 카드)이 작업 영역을 가득 채우는 것만.
   폰(767px 이하): 편집기 CSS 가 윗줄 52px · 왼쪽 메뉴 = 아래 줄로 바꾼다 — 패널은 그 사이를 가득 채운 시트(2열). */
:root {
	--nys-surface: #ffffff;
	--nys-ink: #181817;
	--nys-text: #333333;
	--nys-soft: #777777;
	--nys-tile: #f2f2f2;
	--nys-focus: #3e6fef;
}

/* 디자인을 고르기 전 — 윗줄 단추·왼쪽 메뉴(«디자인» 밖)는 누르지 않는 그림. 돌아가기 링크만 산다. */
body.nys .ed-topbar [aria-hidden="true"] { pointer-events: none; }
body.nys .ed-topbar a.ed-back { text-decoration: none; color: inherit; }   /* 편집기는 <button> — 첫 화면만 진짜 링크 */
body.nys .ed-sidebar .ed-side-tab { position: relative; cursor: default; }
body.nys .ed-sidebar .ed-side-tab:not(.is-active) { pointer-events: none; }

/* 패널 — 편집기 옆 패널(.ed-side-panel: 흰 카드 · 위아래 10px 여백 · 둥근 모서리)이 작업 영역을 가득 채운다 */
body.nys .ed-main > .nys-panel.ed-side-panel {
	flex: 1 1 auto; width: auto; min-width: 0; display: block;
	margin: 10px 10px 10px 0; overflow-y: auto; overscroll-behavior: contain;
	padding: var(--fb-gap_xl); color: var(--nys-text);   /* (10-27 대표님 «한 번에 제대로») 위·아래·좌우 여백 = 한 단계(--fb-gap_xl · PC 24 / 폰 16) */
}
.nys-panel__grab { display: none; }
/* (10-26 대표님 «X로 해서 닫기») 편집 중 연 첫 화면 — 오른쪽 위 «×» 하나(윗줄 돌아가기는 감춤 · 처음 들어온 손님에게는 «×» 없음) */
body.nys .nys-panel { position: relative; }
/* 글꼴 = 편집기 글꼴 토큰(--ed-type-font · editor-panel-balance.css 맨 앞 :root · 대표님 10-26 21:32 카드 1066 «편집기 글꼴 Pretendard 통일») */
body.nys .nys-panel { font-family: var(--ed-type-font); font-synthesis: none; }
.nys-panel__close[hidden] { display: none !important; }   /* 편집기 폰 규칙(.ed-side-panel .ed-side-panel-close display:inline-flex!important)이 hidden 을 덮는다 */
/* 머리 = 편집기 패널 머리(.ed-side-panel .ed-side-panel-header — 높이·선·제목 h3 글씨 그대로) · 패널 안쪽 여백만큼 넓혀 위에 붙인다 */
body.nys .nys-panel__head { margin: calc(var(--fb-gap_xl) * -1) calc(var(--fb-gap_xl) * -1) var(--fb-gap_xl); padding-left: var(--fb-gap_xl); }   /* 제목 글 시작 = 패널 안쪽 여백(--fb-gap_xl) — 아래 글·카드와 같은 왼쪽 선 */
body.nys.nys--from-editor #btnBack { visibility: hidden; }
.nys-panel__title { flex: 1 1 auto; }
/* (10-26 22시 대표님 «제목이 썸네일 밑 글씨만 하다 · 설명은 코딱지») 이 화면은 페이지 첫 화면 — 글씨 층 = 제목 > 구역 제목 > 카드 이름 > 설명·값.
   제목 = 디자인 센터 h1 단계(24 · 폰 20) · 구역 = xl 단계(16 — 제목과 확실히 갈리게 · 김 부장 «20·18 이 제목과 비슷해 보임») · 카드 이름 = 목록 카드(16) · 설명 = lg 단계(15 = 카드 값과 같음).
   편집기 패널 머리 h3(17) 규칙보다 앞서게 body.nys 를 붙인다 · 층은 design_grain 시험 «layers» 가 지킨다. */
body.nys .nys-panel .nys-panel__title { font-size: var(--fb-font_size_h1); font-weight: var(--fb-font_weight_semibold); line-height: 1.3; letter-spacing: normal; }
/* (10-27 대표님 «제목과 설명 사이 구분선이 왜 있나») 첫 화면 머리는 편집기 패널 머리의 아래 선을 쓰지 않는다 — 제목 바로 밑에 설명 */
body.nys .nys-panel .nys-panel__head { border-bottom: 0; }
/* (10-27 대표님 «제목이 위에 딱 붙었다 · 제목과 설명 사이가 너무 벌었다») 머리 = 편집기 패널 머리 높이(56)에 가운데 맞춤을 쓰지 않는다 —
   제목 위 = 패널 여백 단계(--fb-gap_xl · PC 24 / 폰 16) · 제목 → 설명 = 작은 단계(--fb-gap_sm 8)로 붙은 한 덩어리 · 돌아가기·닫기 단추는 줄 높이를 늘리지 않게 위아래를 sm 만큼 겹친다 */
body.nys .nys-panel .nys-panel__head { height: auto; min-height: 0; padding-top: var(--fb-gap_xl); margin-bottom: var(--fb-gap_sm); }
body.nys .nys-panel .nys-panel__head .nys-panel__back, body.nys .nys-panel .nys-panel__head .nys-panel__close { margin-block: calc(var(--fb-gap_sm) * -1); }
/* 안내 글 = 편집기 요소 패널 머리 안내(.ed-upload-entry-head small) — 그 규칙은 #sidePanel[data-panel=elements] 에 묶여 클래스를 못 붙여 같은 값을 적고 design_grain 시험이 짝으로 지킨다 */
.nys-panel__sub { margin: 0 0 var(--fb-gap_xl); color: var(--ed-inspector-muted); font-size: var(--fb-font_size_lg); font-weight: var(--fb-font_weight_regular); line-height: 1.5; }
.nys-price__set::before { content: ' · '; }
.nys-price__set a { color: var(--nys-ink); font-weight: var(--ed-type-weight-semibold); text-decoration: underline; text-underline-offset: 3px; }
.nys-panel__back { display: none; }

/* [이어서 편집] · «편집하던 작업» — 칸 맨 앞 큰 줄 하나 */
.nys-resume {
	display: flex; align-items: center; gap: 14px; margin: 0 0 var(--fb-gap_xl); padding: 12px 14px;
	border: 1px solid #ece9e6; border-radius: 12px; background: #f5f5f3;
}
.nys-resume[hidden] { display: none; }
.nys-resume__thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--nys-tile); }
.nys-resume__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nys-resume__thumb img:not([src]) { visibility: hidden; }
.nys-resume__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nys-resume__text strong { font-size: var(--ed-type-md-size); color: var(--nys-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nys-resume__text small { font-size: var(--fb-font_size_md); color: var(--nys-soft); }
.nys-resume__go {
	flex: 0 0 auto; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px;
	background: var(--nys-surface); color: var(--nys-ink); border: 1px solid var(--nys-ink); text-decoration: none; font-size: var(--ed-type-md-size); font-weight: var(--ed-type-weight-semibold); white-space: nowrap;
}

/* 디자인 칸 — 넓어진 폭만큼 열을 늘린다(1440 = 7열) */
.nys-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--fb-gap_xl) var(--fb-gap_form); }   /* (10-27) 카드 줄 사이 = 덩어리 간격 · 카드 옆 = 갈래 단추 사이와 같은 값 */
.nys-card { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; position: relative; outline: none; }
.nys-card__media {
	display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--nys-tile); margin-bottom: 8px;
	box-shadow: 0 0 0 0 transparent; transition: box-shadow .12s;
}
.nys-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* (10-27 대표님 «카드 이름과 값이 같은 층») 카드 이름 xl 16/600 진하게 > 값 md 14/400 흐리게(크기·색 둘 다 차이) */
.nys-card__name { font-size: var(--fb-font_size_xl); font-weight: var(--fb-font_weight_semibold); color: var(--ed-inspector-ink); line-height: 1.5; }
.nys-card__shape { font-size: var(--fb-font_size_md); color: var(--nys-soft); }
.nys-card__cta {
	position: absolute; left: 50%; top: calc((100% - 52px) / 2); transform: translate(-50%, -50%);
	padding: 8px 14px; border-radius: 999px; background: rgba(24, 24, 23, .86); color: #fff; font-size: var(--fb-font_size_md); font-weight: var(--ed-type-weight-semibold); white-space: nowrap;
	opacity: 0; pointer-events: none; transition: opacity .12s;
}
@media (hover: hover) {
	.nys-card:hover .nys-card__media { box-shadow: 0 0 0 2px var(--nys-ink); }
	.nys-card:hover .nys-card__cta { opacity: 1; }
}
.nys-card:focus-visible .nys-card__media { box-shadow: 0 0 0 3px var(--nys-focus); }
.nys-card.is-opening .nys-card__media { box-shadow: 0 0 0 2px var(--nys-ink); }
.nys-card.is-opening .nys-card__cta { opacity: 1; }
.nys-app.is-opening .nys-card:not(.is-opening) { opacity: .45; pointer-events: none; }
.nys-empty { color: var(--nys-soft); padding: 24px 0; }

/* 폰 — 편집기 CSS 가 윗줄 52px · 왼쪽 메뉴를 아래 줄로 바꾼다. 패널 = 그 사이를 가득 채운 시트(2열) */
@media (max-width: 767px) {
	/* 편집기 CSS 의 폰 옆 패널(아래 시트 · 화면 절반 높이) 규칙을 이긴다 — 윗줄 바로 아래부터 아래 메뉴 줄까지 가득 */
	html body.nys .ed-main > .nys-panel.ed-side-panel {
		position: fixed !important; left: 0 !important; right: 0 !important; width: auto !important;
		top: 0 !important; bottom: 0 !important;
		height: auto !important; max-height: none !important; transform: none !important;
		margin: 0 !important; border-radius: 0; border-right: 0;
		padding: env(safe-area-inset-top, 0px) var(--fb-gap_xl) calc(var(--fb-gap_xl) + env(safe-area-inset-bottom, 0px)); overflow-y: auto;
	}
	/* (10-26 대표님 «모바일은 에디터 환경(위 헤더·아래 풋터)을 굳이 다 보여 주지 않아도 돼 · 가뜩이나 좁은데») 편집기 위 줄·아래 메뉴 줄을 감춘다 —
	   디자인을 고르면 그때 편집기로 들어간다. 왼쪽 위 «뒤로»(목록) · 편집 중 연 화면은 오른쪽 위 «×»만. */
	body.nys .ed-topbar, body.nys .ed-sidebar { display: none !important; }
	/* 편집기 CSS 의 폰 아래 메뉴 줄 규칙(body.ed-role-client.ed-cta-toggle-on:not(…)… display:flex !important)이 더 세다 — 보이지도 눌리지도 않게 */
	body.nys .ed-sidebar { visibility: hidden !important; pointer-events: none !important; }
	.nys-panel__grab { display: none; }
	.nys-panel__back { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; margin-left: -12px; color: var(--ed-inspector-ink, #181817); }
	body.nys.nys--from-editor .nys-panel__back { display: none; }
	body.nys .nys-panel__head { margin: 0 calc(var(--fb-gap_xl) * -1) var(--fb-gap_xl); padding-left: var(--fb-gap_xl); }
	.nys-price__set { display: block; margin-top: 2px; }
	.nys-price__set::before { content: none; }
	.nys-resume { padding: 10px 12px; gap: 10px; }
	.nys-resume__thumb { flex-basis: 52px; width: 52px; height: 52px; }
	.nys-resume__go { height: 38px; padding: 0 12px; }
	.nys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nys-card__cta { display: none; }
}

/* (2026-10-26 대표님 카드 1039 «추천대로 만들자» · 김 부장 A안) 머리 값 한 줄 · 만드는 길(흰 칸 · 얇은 테두리 · 주 단추 하나만 검정) ·
   최근 작업 카드(목록 앞 · «N분 전» · 이어서 편집 · 새로 시작) · «디자이너에게 맡기기» 디자인 고르기 창.
   색은 사이트·편집기 것만(검정 --nys-ink · 회색 글 · 테두리 #ece9e6 · 옅은 바탕 #f5f5f3) — 빨강·초록·파랑 없음. */
.nys-ways { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--fb-gap_form); margin: 0 0 var(--fb-gap_xl); }   /* (10-27) 칸 사이 = 카드 칸과 같은 가로 간격 · 아래 = 덩어리 간격 */
.nys-way {
	display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px; box-sizing: border-box;
	border: 1px solid #ece9e6; border-radius: 12px; background: var(--nys-surface); color: var(--nys-ink);
	font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .12s, background-color .12s;
}
.nys-way__ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #f5f5f3; display: flex; align-items: center; justify-content: center; }
.nys-way__ico svg { width: 22px; height: 22px; }
.nys-way__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* 고르는 단추 이름·설명 = 편집기 요소 패널 «서명 넣기» 단추(.ed-sig-entry-btn b / small · editor.css) 와 같은 값 — 그 클래스는 단추 겉모양까지 바꿔 글에만 같은 값 · design_grain 짝 */
/* (10-27 대표님 «10종 · 고르면 바로 편집 글씨가 코딱지») 갈래 이름 xl 16/600 · 밑줄 md 14/400 흐림 — 손님 글씨 최소 14 */
.nys-way__text b { font-size: var(--fb-font_size_xl); font-weight: var(--fb-font_weight_semibold); line-height: 1.4; word-break: keep-all; }   /* (11-05 김 부장 · 320 사진) «디자인 고르 / 기»처럼 낱말 가운데서 꺾이지 않게 — 띄어쓰기에서만 */
.nys-way__text small { font-size: var(--fb-font_size_md); font-weight: var(--fb-font_weight_regular); color: var(--ed-inspector-muted); line-height: 1.5; word-break: keep-all; }   /* (10-27 대표님) «35,000원부터» 같은 값 덩어리가 숫자와 «원부터» 사이에서 꺾이지 않게 — 띄어쓰기에서만 줄을 바꾼다 */
/* (10-26 17시대 대표님 «까만색이 너무 강하게 보인다») 세 단추는 같은 무게 — 흰 칸 · 얇은 테두리. 주된 길(바로 편집)은 테두리만 한 단계 진하게. */
.nys-way.is-main { border-color: #c9c5bf; }
@media (hover: hover) { .nys-way:hover { border-color: #938d86; } }
.nys-way:focus-visible { outline: 3px solid var(--nys-focus); outline-offset: 2px; }
/* (10-27 대표님 «지금 들어와 있는 곳이 어디인지 표시» → 16901 «세 가지로 강조했냐 · 하나만, 테두리만») 지금 길(첫 화면 = 디자인에서 바로 편집) =
   진한 테두리 하나(두 겹 · .ed-content-add-option.is-selected) — 체크·꼬리 화살표·옅은 바탕 없음.
   파란 초점 테두리는 키보드로 올 때만(:focus-visible) — 손가락 누름 빛(tap highlight)도 끈다. */
.nys-way { -webkit-tap-highlight-color: transparent; }
.nys-way:focus:not(:focus-visible) { outline: none; }
.nys-way[aria-current="true"], .nys-way[aria-current="true"]:hover { border-color: var(--nys-ink); box-shadow: inset 0 0 0 1px var(--nys-ink); }
.nys-short { display: none; }
/* 구역 제목 = 편집기 요소 패널 구역 제목(.ed-panel-section-title — #sidePanel 에 묶임) 과 같은 값 · design_grain 짝 */
.nys-grid-title { margin: 0 0 var(--fb-gap_sm); font-size: var(--fb-font_size_h2); font-weight: var(--fb-font_weight_semibold); color: var(--ed-inspector-ink); line-height: 1.4; scroll-margin-top: 12px; }

/* 최근 작업 카드 */
.nys-grid > li { position: relative; }
.nys-card.is-work .nys-card__media { position: relative; }
.nys-card.is-work .nys-card__media::after { content: ''; position: absolute; inset: 0; border: 1px solid #c9c5bf; border-radius: inherit; pointer-events: none; }
.nys-card.is-work .nys-card__cta { display: none; }
.nys-card__ago {
	position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; border: 1px solid #ece9e6;
	background: rgba(255, 255, 255, .94); color: #66635e; font-size: var(--ed-type-2xs-size); font-weight: var(--ed-type-weight-semibold); line-height: 1.4;   /* 배지 «1시간 전» — 최소 14 예외(김 부장 10-27) */
}
.nys-card__resume {
	position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 0; border: 1px solid #d2d0cb; border-radius: 8px;
	background: rgba(255, 255, 255, .96); color: var(--nys-ink); text-align: center; font-size: var(--fb-font_size_md); font-weight: var(--ed-type-weight-semibold);
}
.nys-card__price-part { white-space: nowrap; }
.nys-card__price { word-break: keep-all; font-size: var(--fb-font_size_md); font-weight: var(--fb-font_weight_regular); color: var(--ed-inspector-muted); line-height: 1.5; }   /* 목록 값 색 = :root --bj-text(이름과 같은 값) — 이 화면 body 는 편집기 테마가 --bj-text 를 덮어 :root 값을 든 토큰을 쓴다 */
.nys-card__fresh {
	margin-top: 2px; padding: 0; border: 0; background: none; color: var(--nys-soft); font: inherit; font-size: var(--fb-font_size_md);
	text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.nys-card__fresh:hover { color: var(--nys-ink); }
/* (2026-10-29 고르기 1268) «새로 시작» 옆 작은 ⋯ · 안에 [휴지통으로] */
.nys-card__acts { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nys-card__acts .nys-card__fresh { margin-top: 0; }
.nys-card__more {
	min-width: 32px; min-height: 32px; padding: 0 6px; border: 0; border-radius: 8px; background: none;
	color: var(--nys-soft); font: inherit; font-size: 18px; line-height: 1; letter-spacing: 1px; cursor: pointer;
}
.nys-card__more:hover, .nys-card__more[aria-expanded="true"] { background: #f1efec; color: var(--nys-ink); }
.nys-card__menu {
	position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 128px; padding: 4px;
	border: 1px solid #e4e1dc; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(24, 24, 23, .12);
}
.nys-card__menu[hidden] { display: none; }
.nys-card__menu button {
	display: block; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: none;
	color: var(--nys-ink); font: inherit; font-size: var(--fb-font_size_md); text-align: left; cursor: pointer;
}
.nys-card__menu button:hover { background: #f6f4f1; }
.nys-card__menu button:disabled { color: var(--nys-soft); cursor: default; }

/* «디자이너에게 맡기기» — 디자인 고르기 창 */
.nys-sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(24, 24, 23, .42); display: flex; align-items: center; justify-content: center; padding: 24px; }
.nys-sheet[hidden] { display: none; }
.nys-sheet__card {
	position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; box-sizing: border-box;
	background: var(--nys-surface); border-radius: 16px; padding: 24px 24px 26px; color: var(--nys-text);
}
/* 창 머리 = 편집기 모달 머리(.ed-modal-header — 높이·선·안쪽 여백·제목 h3 글씨 그대로) · 카드 안쪽 여백만큼 넓혀 위에 붙이고 제목 왼쪽 = 카드 글 왼쪽 */
body.nys .nys-sheet .nys-sheet__head { margin: -24px -24px var(--fb-gap_form); padding-left: 24px !important; }   /* 편집기 모달 머리 왼쪽 여백(order-option-modal.css !important)을 이 카드 안쪽 여백에 맞춤 */
.nys-sheet__title { flex: 1 1 auto; color: var(--ed-inspector-ink); }   /* 편집기 모달 제목 색(폰은 편집기 폰 모달 규칙이 덮음) */
.nys-sheet__sub { margin: 0 0 16px; font-size: var(--fb-font_size_md); color: #66635e; }
.nys-sheet__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; }
.nys-sheet__pick { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--nys-ink); }
.nys-sheet__media { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--nys-tile); }
.nys-sheet__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nys-sheet__name { font-size: var(--fb-font_size_md); font-weight: var(--ed-type-weight-semibold); line-height: 1.35; }
@media (hover: hover) { .nys-sheet__pick:hover .nys-sheet__media { box-shadow: 0 0 0 2px var(--nys-ink) inset; } }
.nys-sheet__pick:focus-visible { outline: 3px solid var(--nys-focus); outline-offset: 2px; border-radius: 10px; }

@media (max-width: 767px) {
	.nys-price__sep { display: none; }
	.nys-price__note { display: block; }
	/* 글씨 — 폰 한 단계 작게(기본 규칙이 이 파일 위쪽 폰 묶음보다 뒤에 있어 여기서 덮는다) */
	.nys-way { flex-direction: column; justify-content: center; text-align: center; gap: 6px; min-height: 0; padding: 12px 4px; }
	.nys-way__ico { width: 34px; height: 34px; }
	.nys-way__text { align-items: center; }
	.nys-long { display: none; }
	.nys-short { display: inline; }
	.nys-sheet { align-items: flex-end; padding: 0; }
	.nys-sheet__card { width: 100%; max-height: 86vh; border-radius: 16px 16px 0 0; padding: 18px 16px 24px; }
	body.nys .nys-sheet .nys-sheet__head { margin: -18px -16px var(--fb-gap_form); padding-left: 16px !important; }
	.nys-sheet__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}

/* «내 파일 올리기» 창(10-26 카드 1039) — 맡기기 창과 같은 판(.nys-sheet) · 파일 고르기 칸 → 크기 판정·방향 한 번 확인 */
.nys-sheet__card.nys-upload { width: min(520px, 100%); }
.nys-drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 168px; padding: 20px;
	border: 1.5px dashed #d2d0cb; border-radius: 12px; background: #f5f5f3; color: var(--nys-ink); text-align: center; cursor: pointer;
}
.nys-drop[hidden] { display: none; }
.nys-drop.is-over, .nys-drop:hover { border-color: var(--nys-ink); }
.nys-drop:focus-within { outline: 3px solid var(--nys-focus); outline-offset: 2px; }
.nys-drop__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--nys-surface); display: flex; align-items: center; justify-content: center; }
.nys-drop__ico svg { width: 24px; height: 24px; }
.nys-drop b { font-size: var(--ed-type-lg-size); font-weight: var(--ed-type-weight-semibold); }
.nys-drop small { font-size: var(--fb-font_size_md); color: #66635e; }
.nys-check[hidden] { display: none; }
.nys-check__file { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #f5f5f3; display: flex; flex-direction: column; gap: 2px; }
.nys-check__file b { font-size: var(--ed-type-md-size); color: var(--nys-ink); word-break: break-all; }
.nys-check__file span { font-size: var(--fb-font_size_md); color: #66635e; }
.nys-check__verdict { margin: 0 0 var(--fb-gap_sm); font-size: var(--ed-type-md-size); line-height: 1.5; color: var(--nys-ink); font-weight: var(--ed-type-weight-semibold); }
.nys-check__seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.nys-check__seg button {
	min-height: 44px; border: 1px solid #ece9e6; border-radius: 10px; background: var(--nys-surface); color: #66635e;
	font: inherit; font-size: var(--ed-type-md-size); font-weight: var(--ed-type-weight-semibold); cursor: pointer;
}
.nys-check__seg button[aria-checked="true"] { border: 1.5px solid var(--nys-ink); color: var(--nys-ink); background: #f5f5f3; }
.nys-check__how { margin: 10px 0 14px; min-height: 1.4em; font-size: var(--fb-font_size_md); color: #66635e; line-height: 1.5; }
.nys-check__go {
	display: block; width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--nys-ink); color: #fff;
	font: inherit; font-size: var(--ed-type-lg-size); font-weight: var(--ed-type-weight-semibold); cursor: pointer;
}
.nys-check__go:disabled { background: #d2d0cb; cursor: default; }
.nys-check__again { display: block; margin: 10px auto 0; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: var(--fb-font_size_md); color: #66635e; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.nys-check__status { margin: 12px 0 0; font-size: var(--fb-font_size_md); color: #66635e; }
.nys-check__status[hidden] { display: none; }
/* «내 파일 연하장»(백지 작업) 칸 — 디자인 그림이 없어 옅은 바탕에 파일 표시 */
.nys-grid > li[hidden] { display: none; }
.nys-card--blank .nys-card__media { display: flex; align-items: center; justify-content: center; }
.nys-card__blank-ico { width: 56px; height: 56px; color: #938d86; }
.nys-card__blank-ico svg { width: 100%; height: 100%; }
.nys-card__blank-ico[hidden] { display: none; }
/* (10-29 전수 조사 2차) 내 파일 연하장 — 작업 저장 그림 */
.nys-card--blank .nys-card__work-img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }

/* «내 파일 올리기» 두 칸(10-26 대표님 «앞면·뒷면 두 개의 파일») — 바깥면(필수) · 안쪽면(선택) */
.nys-check__label { margin: 0 0 var(--fb-gap_sm); font-size: var(--ed-type-md-size); font-weight: var(--ed-type-weight-semibold); color: var(--nys-ink); }
.nys-check__label small { font-weight: var(--ed-type-weight-medium); color: var(--nys-soft); margin-left: 4px; }
.nys-inner { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #ece9e6; }
.nys-inner__picked { display: flex; align-items: center; gap: 8px; }
.nys-inner__picked[hidden], .nys-inner__add[hidden], .nys-inner__hint[hidden] { display: none; }
.nys-inner__picked .nys-check__file { flex: 1 1 auto; margin: 0; min-width: 0; }
.nys-inner__remove { flex: none; padding: 8px 12px; border: 1px solid #d2d0cb; border-radius: 8px; background: var(--nys-surface); color: var(--nys-ink); font: inherit; font-size: var(--fb-font_size_md); cursor: pointer; }
.nys-inner__add { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px dashed #d2d0cb; border-radius: 10px; background: var(--nys-surface); color: var(--nys-ink); font-size: var(--ed-type-md-size); font-weight: var(--ed-type-weight-semibold); cursor: pointer; }
.nys-inner__add:hover { border-color: #938d86; }
.nys-inner__hint { margin: 6px 0 0; font-size: var(--fb-font_size_md); color: var(--nys-soft); }

/* (10-26 대표님 «1·2페이지 구분을 어떻게 해?») 칸마다 들어갈 쪽 그림 · 쪽 고르기 · 바꾸기 — 맨 위 한 줄 안내 */
.nys-upload__how { margin: 0 0 var(--fb-gap_xl); padding: 10px 12px; border-radius: 10px; background: #f5f5f3; color: var(--nys-ink); font-size: var(--ed-type-md-size); font-weight: var(--ed-type-weight-regular); line-height: 1.5; }
.nys-slot { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 12px; }
.nys-slot__thumb { position: relative; flex: 0 0 72px; width: 72px; height: 72px; border: 1px solid #e3e0dc; border-radius: 8px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nys-slot__thumb img { max-width: 100%; max-height: 100%; display: block; }
.nys-slot__thumb img:not([src]) { visibility: hidden; }
.nys-slot__thumb em { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(28, 28, 30, .78); color: #fff; font-style: normal; font-size: var(--ed-type-2xs-size); font-weight: var(--ed-type-weight-semibold); }
.nys-slot__thumb em:empty { display: none; }
.nys-slot__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nys-slot__body .nys-check__file { margin: 0; }
.nys-slot__page { display: flex; align-items: center; gap: 8px; font-size: var(--fb-font_size_md); color: var(--nys-ink); }
.nys-slot__page[hidden] { display: none; }
.nys-slot__page select { padding: 6px 10px; border: 1px solid #d2d0cb; border-radius: 8px; background: #fff; font: inherit; font-size: var(--fb-font_size_md); }
.nys-slot__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.nys-inner__picked.nys-slot { align-items: flex-start; }
.nys-inner__swap { padding: 8px 12px; border: 1px solid #d2d0cb; border-radius: 8px; background: var(--nys-surface); color: var(--nys-ink); font: inherit; font-size: var(--fb-font_size_md); cursor: pointer; }
.nys-inner__swap[hidden] { display: none; }

/* (10-26 대표님 «셀프 연하장 파일 올리기는 간단해야 돼 · 복잡하면 안 돼») 기본 화면 = 파일 → 판정 한 줄 → [이대로 열고 넣기].
   방향이 정해지면 방향 단추 대신 작은 «방향 바꾸기» · 안쪽면은 비었으면 작은 글 링크 하나(2쪽 PDF·둘째 파일일 때만 칸이 펼쳐짐) */
.nys-check__seg[hidden] { display: none; }
.nys-check__change { margin: -4px 0 12px; padding: 0; border: 0; background: none; color: #66635e; font: inherit; font-size: var(--fb-font_size_md); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.nys-check__change[hidden] { display: none; }
.nys-inner.is-empty { margin-top: 4px; padding-top: 0; border-top: 0; }
.nys-inner.is-empty > .nys-check__label { display: none; }
.nys-inner.is-empty .nys-inner__add { display: inline-flex; min-height: 0; padding: 4px 0; border: 0; background: none; color: #66635e; font-size: var(--fb-font_size_md); font-weight: var(--ed-type-weight-medium); text-decoration: underline; text-underline-offset: 2px; }
.nys-inner.is-empty .nys-inner__add[hidden] { display: none; }
.nys-inner.is-empty .nys-inner__hint { display: none; }

/* (2026-11-03 김미주 님) 셀프 연하장 «종이» 줄 — 기본 종이 + 관리자가 연 종이(card/newyear_self.php · lib/newyear_self_paper.inc).
   만드는 길 단추(.nys-way)와 같은 결: 흰 칸 · 얇은 테두리 · 고른 것만 진한 테두리. 폰은 가로로 넘겨 본다. */
.nys-paper { margin: 14px 0 14px; }
.nys-paper__label { margin: 0 0 6px; font-size: var(--fb-font_size_md, 14px); font-weight: var(--ed-type-weight-medium, 600); color: #222; }
.nys-paper__list { display: flex; flex-wrap: wrap; gap: 8px; }
.nys-paper__opt { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 120px; padding: 8px 12px; border: 1px solid #d9d6d0; border-radius: 8px; background: #fff; color: #222; text-align: left; cursor: pointer; font: inherit; }
.nys-paper__opt b { font-size: 13px; font-weight: 600; }
.nys-paper__opt small { font-size: 12px; color: #77736c; }
.nys-paper__opt[aria-checked="true"] { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.nys-paper__opt:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.nys--m .nys-paper__list, .nys-paper__list.is-scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.nys--m .nys-paper__opt { flex: none; }
