/*=================================================================================
	메모 웹 애플리케이션 스타일시트.
	색·크기 값은 이 파일의 변수로만 관리합니다. 화면 코드에 리터럴을 쓰지 않습니다.
=================================================================================*/

:root {
	--colorApplicationBackground: #ffffff;
	--colorSidebarBackground: #f2f0eb;
	--colorSidebarRowSelection: rgba(0, 0, 0, 0.08);
	--colorSeparator: rgba(0, 0, 0, 0.1);
	--colorTextPrimary: #1c1c1e;
	--colorTextSecondary: #86868b;
	--colorToolbarIcon: #6e6e73;
	--colorFolderIconTint: #d7a100;
	--colorNoteSelection: #f7d968;
	--colorChecklistChecked: #e8a021;
	--colorControlHover: rgba(0, 0, 0, 0.05);
	--colorControlActive: rgba(0, 0, 0, 0.11);
	--colorSegmentedBackground: rgba(0, 0, 0, 0.06);
	--colorSegmentedActive: #ffffff;
	--colorMenuBackground: #ffffff;
	--colorMenuHoverBackground: #0a60ff;
	--colorMenuHoverText: #ffffff;
	--colorSearchFieldBackground: rgba(0, 0, 0, 0.05);
	--colorTableBorder: rgba(0, 0, 0, 0.18);
	--colorGalleryCardBackground: #fbfbf9;
	--colorFocusRing: rgba(0, 122, 255, 0.4);
	--colorLinkText: #0a60ff;
	--colorTagBackground: rgba(215, 161, 0, 0.16);
	--applicationZoomFactor: 1.5;
	--sidebarColumnWidth: 210px;
	--noteListColumnWidth: 300px;
	--toolbarHeight: 52px;
	--fontFamilyDefault: -apple-system, BlinkMacSystemFont, "SF Pro KR", "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", sans-serif;
	--fontFamilyMonospaced: "SF Mono", "Consolas", "Menlo", monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		--colorApplicationBackground: #1e1e1e;
		--colorSidebarBackground: #282826;
		--colorSidebarRowSelection: rgba(255, 255, 255, 0.1);
		--colorSeparator: rgba(255, 255, 255, 0.12);
		--colorTextPrimary: #f2f2f2;
		--colorTextSecondary: #98989d;
		--colorToolbarIcon: #b0b0b5;
		--colorFolderIconTint: #e0af26;
		--colorNoteSelection: rgba(240, 190, 50, 0.34);
		--colorChecklistChecked: #e8a021;
		--colorControlHover: rgba(255, 255, 255, 0.08);
		--colorControlActive: rgba(255, 255, 255, 0.15);
		--colorSegmentedBackground: rgba(255, 255, 255, 0.09);
		--colorSegmentedActive: #6a6a6e;
		--colorMenuBackground: #2c2c2e;
		--colorMenuHoverBackground: #0a60ff;
		--colorMenuHoverText: #ffffff;
		--colorSearchFieldBackground: rgba(255, 255, 255, 0.09);
		--colorTableBorder: rgba(255, 255, 255, 0.25);
		--colorGalleryCardBackground: #2a2a28;
		--colorFocusRing: rgba(10, 132, 255, 0.5);
		--colorLinkText: #4c9bff;
		--colorTagBackground: rgba(224, 175, 38, 0.22);
	}
}

/*=================================================================================
	기본.
=================================================================================*/

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow: hidden;
}

body {
	font-family: var(--fontFamilyDefault);
	color: var(--colorTextPrimary);
	background-color: var(--colorApplicationBackground);
	-webkit-font-smoothing: antialiased;
	zoom: var(--applicationZoomFactor);
}

button {
	font-family: inherit;
	color: inherit;
	background: none;
	border: none;
	padding: 0;
	cursor: default;
}

/*=================================================================================
	전체 골격. 툴바와 본문이 같은 3단 열 폭을 공유합니다.
=================================================================================*/

#applicationRoot {
	display: grid;
	grid-template-rows: var(--toolbarHeight) 1fr;
	height: calc(100vh / var(--applicationZoomFactor));
}

#toolbarArea,
#contentArea {
	display: grid;
	grid-template-columns: var(--sidebarColumnWidth) var(--noteListColumnWidth) minmax(0, 1fr);
	transition: grid-template-columns 0.22s ease;
	min-height: 0;
}

/* 열 폭을 끄는 동안에는 폭 전환 움직임을 끕니다. */
#applicationRoot.is-resizing #toolbarArea,
#applicationRoot.is-resizing #contentArea {
	transition: none;
}

/* 접힌 상태에서도 툴바의 첫 칸은 남겨 사이드바를 다시 펼 수 있게 합니다. */
#applicationRoot.sidebar-collapsed #toolbarArea {
	grid-template-columns: 54px var(--noteListColumnWidth) minmax(0, 1fr);
}

#applicationRoot.sidebar-collapsed #contentArea {
	grid-template-columns: 0px var(--noteListColumnWidth) minmax(0, 1fr);
}

#applicationRoot.sidebar-collapsed #toolbarSidebarSection {
	background-color: transparent;
	border-bottom-color: var(--colorSeparator);
}

/*=================================================================================
	툴바.
=================================================================================*/

.toolbar-section {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 0 10px;
	min-width: 0;
	overflow: hidden;
	border-bottom: 1px solid var(--colorSeparator);
}

#toolbarSidebarSection {
	background-color: var(--colorSidebarBackground);
	border-bottom-color: transparent;
}

#toolbarNoteListSection {
	border-right: 1px solid var(--colorSeparator);
}

.toolbar-spacer {
	flex: 1 1 auto;
}

.toolbar-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 27px;
	border-radius: 6px;
	color: var(--colorToolbarIcon);
	flex: 0 0 auto;
}

.toolbar-button:hover:not(:disabled) {
	background-color: var(--colorControlHover);
}

.toolbar-button:active:not(:disabled) {
	background-color: var(--colorControlActive);
}

.toolbar-button:disabled {
	opacity: 0.35;
}

.toolbar-button svg {
	width: 19px;
	height: 19px;
	display: block;
}

.segmented-control {
	display: flex;
	align-items: center;
	background-color: var(--colorSegmentedBackground);
	border-radius: 7px;
	padding: 1px;
	flex: 0 0 auto;
}

.segmented-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 33px;
	height: 23px;
	border-radius: 6px;
	color: var(--colorToolbarIcon);
}

.segmented-button.is-active {
	background-color: var(--colorSegmentedActive);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.segmented-button svg {
	width: 16px;
	height: 16px;
	display: block;
}

#searchFieldArea {
	position: relative;
	flex: 0 1 190px;
	min-width: 90px;
	margin-left: 6px;
}

#searchFieldIcon {
	position: absolute;
	left: 7px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--colorTextSecondary);
	pointer-events: none;
	display: flex;
}

#searchFieldIcon svg {
	width: 13px;
	height: 13px;
}

#searchField {
	width: 100%;
	height: 26px;
	border: none;
	border-radius: 7px;
	background-color: var(--colorSearchFieldBackground);
	color: var(--colorTextPrimary);
	font-family: inherit;
	font-size: 13px;
	padding: 0 8px 0 25px;
	outline: none;
}

#searchField:focus {
	box-shadow: 0 0 0 3px var(--colorFocusRing);
}

#searchField::placeholder {
	color: var(--colorTextSecondary);
}

/*=================================================================================
	사이드바.
=================================================================================*/

#sidebarArea {
	background-color: var(--colorSidebarBackground);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

#sidebarScrollArea {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 8px 0;
	min-width: 210px;
}

.sidebar-section-header {
	font-size: 11px;
	font-weight: 700;
	color: var(--colorTextSecondary);
	padding: 12px 20px 4px 20px;
}

.folder-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 7px;
	height: 30px;
	margin: 0 10px;
	padding: 0 10px;
	padding-left: calc(10px + var(--folderDepth, 0) * 16px);
	border-radius: 7px;
	font-size: 13px;
	white-space: nowrap;
}

.folder-row.is-selected {
	background-color: var(--colorSidebarRowSelection);
}

.folder-row.drop-into {
	box-shadow: inset 0 0 0 2px var(--colorFolderIconTint);
}

.folder-row.drop-before::after,
.folder-row.drop-after::after {
	content: "";
	position: absolute;
	left: 6px;
	right: 6px;
	height: 2px;
	border-radius: 1px;
	background-color: var(--colorFolderIconTint);
	pointer-events: none;
}

.folder-row.drop-before::after {
	top: -1px;
}

.folder-row.drop-after::after {
	bottom: -1px;
}

.folder-row-chevron {
	display: flex;
	color: var(--colorTextSecondary);
	flex: 0 0 auto;
	width: 13px;
	transition: transform 0.15s ease;
}

.folder-row-chevron.is-expanded {
	transform: rotate(90deg);
}

.folder-row-chevron.is-empty {
	visibility: hidden;
}

.folder-row-chevron svg {
	width: 11px;
	height: 11px;
}

.folder-row-icon {
	display: flex;
	color: var(--colorFolderIconTint);
	flex: 0 0 auto;
}

.folder-row-icon svg {
	width: 16px;
	height: 16px;
}

.folder-row-name {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
}

.folder-row-count {
	font-size: 12px;
	color: var(--colorTextSecondary);
	flex: 0 0 auto;
}

.folder-row-name-input {
	flex: 1 1 auto;
	min-width: 0;
	font-family: inherit;
	font-size: 13px;
	border: 1px solid var(--colorFocusRing);
	border-radius: 4px;
	padding: 1px 4px;
	outline: none;
	background-color: var(--colorApplicationBackground);
	color: var(--colorTextPrimary);
}

#sidebarFooterArea {
	flex: 0 0 auto;
	padding: 8px 10px 10px 10px;
	min-width: 210px;
}

#newFolderButton {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--colorTextSecondary);
	padding: 5px 10px;
	border-radius: 7px;
	white-space: nowrap;
}

#newFolderButton:hover {
	background-color: var(--colorControlHover);
}

#newFolderButton:active {
	background-color: var(--colorControlActive);
}

#newFolderButtonIcon {
	display: flex;
}

#newFolderButtonIcon svg {
	width: 14px;
	height: 14px;
}

/*=================================================================================
	메모 목록.
=================================================================================*/

#noteListArea {
	border-right: 1px solid var(--colorSeparator);
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
}

#noteListScrollArea {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 4px 0 12px 0;
}

.note-list-notice {
	font-size: 12px;
	color: var(--colorTextSecondary);
	text-align: center;
	padding: 10px 16px 4px 16px;
}

.note-group-header {
	font-size: 13px;
	font-weight: 700;
	padding: 14px 20px 5px 20px;
}

.note-group-header.is-foldable {
	display: flex;
	align-items: center;
	gap: 5px;
	user-select: none;
}

.note-group-chevron {
	display: flex;
	color: var(--colorTextSecondary);
	transition: transform 0.15s ease;
}

.note-group-chevron.is-expanded {
	transform: rotate(90deg);
}

.note-group-chevron svg {
	width: 11px;
	height: 11px;
}

.note-row {
	margin: 0 8px;
	padding: 8px 12px;
	border-radius: 8px;
	position: relative;
}

.note-row.is-selected {
	background-color: var(--colorNoteSelection);
}

.note-row:not(.is-selected):not(:first-child)::before {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	top: 0;
	height: 1px;
	background-color: var(--colorSeparator);
}

.note-row-title {
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 5px;
}


.note-row-subline {
	display: flex;
	gap: 8px;
	font-size: 12px;
	color: var(--colorTextSecondary);
	margin-top: 2px;
	overflow: hidden;
	white-space: nowrap;
}

.note-row-date {
	flex: 0 0 auto;
}

.note-row-preview {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
}

.note-row-folder {
	font-size: 12px;
	color: var(--colorTextSecondary);
	margin-top: 2px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.note-row-folder svg {
	width: 12px;
	height: 12px;
	color: var(--colorTextSecondary);
}

.note-list-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	color: var(--colorTextSecondary);
	pointer-events: none;
}

/*=================================================================================
	메모 목록 - 갤러리 보기.
=================================================================================*/

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
	padding: 8px 14px;
}

.gallery-card-preview {
	background-color: var(--colorGalleryCardBackground);
	border: 1px solid var(--colorSeparator);
	border-radius: 8px;
	height: 120px;
	padding: 6px;
	overflow: hidden;
	position: relative;
}

.gallery-card-preview-content {
	width: 300px;
	transform: scale(0.42);
	transform-origin: top left;
	pointer-events: none;
	user-select: none;
}


.gallery-card.is-selected .gallery-card-preview {
	box-shadow: 0 0 0 3px var(--colorNoteSelection);
}

.gallery-card-title {
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	margin-top: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gallery-card-date {
	font-size: 11px;
	color: var(--colorTextSecondary);
	text-align: center;
	margin-top: 1px;
}

/*=================================================================================
	편집기.
=================================================================================*/

#editorArea {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

#editorDateLabel {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--colorTextSecondary);
	text-align: center;
	padding: 14px 20px 0 20px;
}

#editorContentArea {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 12px 24px 40vh 24px;
	outline: none;
	font-size: 15px;
	line-height: 1.45;
}

/*=================================================================================
	편집기 - 블록 스타일.
=================================================================================*/

.block {
	min-height: 1.2em;
	margin: 0;
}

.block-title {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 4px;
}

.block-heading {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin-top: 6px;
}

.block-subheading {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	margin-top: 4px;
}

.block-body {
	font-size: 15px;
}

.block-monospaced {
	font-family: var(--fontFamilyMonospaced);
	font-size: 13px;
}

/*=================================================================================
	편집기 - 목록 스타일.
=================================================================================*/

#editorContentArea ul,
#editorContentArea ol,
.gallery-card-preview-content ul,
.gallery-card-preview-content ol {
	list-style: none;
	margin: 2px 0;
	padding: 0;
}

#editorContentArea li,
.gallery-card-preview-content li {
	position: relative;
	padding: 1px 0 1px 30px;
	min-height: 1.2em;
}

#editorContentArea li[data-indent="1"] {
	margin-left: 30px;
}

#editorContentArea li[data-indent="2"] {
	margin-left: 60px;
}

#editorContentArea li[data-indent="3"] {
	margin-left: 90px;
}

ul.list-bulleted > li::before {
	content: "\2022";
	position: absolute;
	left: 10px;
	top: 1px;
}

ul.list-dashed > li::before {
	content: "\2013";
	position: absolute;
	left: 8px;
	top: 1px;
}

ol.list-numbered {
	counter-reset: numberedListCounter;
}

ol.list-numbered > li {
	counter-increment: numberedListCounter;
}

ol.list-numbered > li::before {
	content: counter(numberedListCounter) ".";
	position: absolute;
	left: 6px;
	top: 1px;
	font-variant-numeric: tabular-nums;
}

ul.list-checklist > li {
	padding-left: 30px;
}

ul.list-checklist > li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	border: 1.5px solid var(--colorTextSecondary);
	cursor: pointer;
}

ul.list-checklist > li[data-checked="true"]::before {
	border-color: var(--colorChecklistChecked);
	background-color: var(--colorChecklistChecked);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 L5 8.7 L9.5 3.5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-size: 11px;
	background-position: center;
	background-repeat: no-repeat;
}

ul.list-checklist > li[data-checked="true"] {
	color: var(--colorTextSecondary);
}

/*=================================================================================
	편집기 - 링크·태그·그림·잠금.
=================================================================================*/

#editorContentArea a {
	color: var(--colorLinkText);
	text-decoration: underline;
	cursor: text;
}

.note-tag {
	color: var(--colorFolderIconTint);
	background-color: var(--colorTagBackground);
	border-radius: 5px;
	padding: 0 3px;
}

.block-image {
	margin: 8px 0;
}

.block-attachment {
	display: flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--colorSeparator);
	border-radius: 8px;
	padding: 8px 12px;
	margin: 6px 0;
	max-width: 340px;
	user-select: none;
}

.block-attachment:hover {
	background-color: var(--colorControlHover);
}

.attachment-icon {
	display: flex;
	color: var(--colorTextSecondary);
	flex: 0 0 auto;
}

.attachment-icon svg {
	width: 18px;
	height: 18px;
}

.attachment-name {
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#findBarArea {
	position: absolute;
	top: 8px;
	right: 20px;
	z-index: 20;
	background-color: var(--colorMenuBackground);
	border: 1px solid var(--colorSeparator);
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	padding: 5px;
}

#findBarField {
	width: 190px;
	height: 26px;
	border: none;
	border-radius: 6px;
	background-color: var(--colorSearchFieldBackground);
	color: var(--colorTextPrimary);
	font-family: inherit;
	font-size: 13px;
	padding: 0 8px;
	outline: none;
}

#findBarField:focus {
	box-shadow: 0 0 0 3px var(--colorFocusRing);
}

#findBarField::placeholder {
	color: var(--colorTextSecondary);
}

.note-image {
	max-width: 100%;
	border-radius: 5px;
	display: block;
}

/*=================================================================================
	편집기 - 체크리스트 드래그 표시.
=================================================================================*/

ul.list-checklist > li.checklist-drop-before::after,
ul.list-checklist > li.checklist-drop-after::after {
	content: "";
	position: absolute;
	left: 30px;
	right: 0;
	height: 2px;
	border-radius: 1px;
	background-color: var(--colorChecklistChecked);
	pointer-events: none;
}

ul.list-checklist > li.checklist-drop-before::after {
	top: -1px;
}

ul.list-checklist > li.checklist-drop-after::after {
	bottom: -1px;
}

/*=================================================================================
	열 폭 끌기 손잡이.
=================================================================================*/

.column-resize-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 7px;
	cursor: col-resize;
	z-index: 10;
}

#sidebarResizeHandle {
	left: -4px;
}

#noteListResizeHandle {
	right: -4px;
}

#applicationRoot.sidebar-collapsed #sidebarResizeHandle {
	display: none;
}

/*=================================================================================
	편집기 - 표.
=================================================================================*/

table.note-table {
	border-collapse: collapse;
	margin: 8px 0;
	width: calc(100% - 2px);
}

table.note-table td {
	border: 1px solid var(--colorTableBorder);
	padding: 5px 8px;
	min-width: 60px;
	font-size: 14px;
	vertical-align: top;
}

/*=================================================================================
	컨텍스트 메뉴.
=================================================================================*/

.context-menu {
	position: fixed;
	z-index: 100;
	min-width: 180px;
	background-color: var(--colorMenuBackground);
	border: 1px solid var(--colorSeparator);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	padding: 5px;
	font-size: 13px;
	user-select: none;
}

.context-menu-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 10px;
	border-radius: 5px;
	white-space: nowrap;
}

.context-menu-item:hover {
	background-color: var(--colorMenuHoverBackground);
	color: var(--colorMenuHoverText);
}

.context-menu-item-arrow {
	font-size: 10px;
	color: var(--colorTextSecondary);
}

.context-menu-item:hover .context-menu-item-arrow {
	color: var(--colorMenuHoverText);
}

.context-menu-separator {
	height: 1px;
	background-color: var(--colorSeparator);
	margin: 5px 8px;
}

/*=================================================================================
	서식 팝오버.
=================================================================================*/

.format-popover {
	position: fixed;
	z-index: 100;
	width: 250px;
	background-color: var(--colorMenuBackground);
	border: 1px solid var(--colorSeparator);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	padding: 8px;
	user-select: none;
	transform-origin: top center;
	animation: formatPopoverAppear 0.14s ease-out;
}

@keyframes formatPopoverAppear {
	from {
		transform: scale(0.9);
	}
	to {
		transform: scale(1);
	}
}

.format-style-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 10px;
	border-radius: 6px;
}

.format-style-row:hover {
	background-color: var(--colorControlHover);
}

.format-style-row:active {
	background-color: var(--colorControlActive);
}

.format-style-check {
	font-size: 12px;
	visibility: hidden;
}

.format-style-row.is-current .format-style-check {
	visibility: visible;
}

.format-style-name-title {
	font-size: 19px;
	font-weight: 700;
}

.format-style-name-heading {
	font-size: 16px;
	font-weight: 700;
}

.format-style-name-subheading {
	font-size: 14px;
	font-weight: 600;
}

.format-style-name-body {
	font-size: 13px;
}

.format-style-name-monospaced {
	font-family: var(--fontFamilyMonospaced);
	font-size: 12px;
}

.format-popover-separator {
	height: 1px;
	background-color: var(--colorSeparator);
	margin: 7px 4px;
}

.format-button-row {
	display: flex;
	gap: 4px;
}

.format-segment-button {
	flex: 1 1 0;
	height: 28px;
	border-radius: 6px;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.format-segment-button:hover {
	background-color: var(--colorControlHover);
}

.format-segment-button.is-active {
	background-color: var(--colorControlActive);
}

/*=================================================================================
	모바일. 좁은 화면에서는 아이폰 메모앱처럼 한 화면씩 오갑니다.
	화면은 뿌리의 data-mobile-screen (folders · list · editor) 이 정합니다.
=================================================================================*/

.mobile-back-button {
	display: none;
	align-items: center;
	font-size: 15px;
	color: var(--colorLinkText);
	padding: 0 8px 0 2px;
	white-space: nowrap;
	flex: 0 0 auto;
}

@media (max-width: 640px) {
	:root {
		--applicationZoomFactor: 1;
	}

	#applicationRoot #toolbarArea,
	#applicationRoot #contentArea,
	#applicationRoot.sidebar-collapsed #toolbarArea,
	#applicationRoot.sidebar-collapsed #contentArea {
		grid-template-columns: 1fr;
	}

	.mobile-back-button {
		display: flex;
	}

	#sidebarToggleButton,
	.column-resize-handle {
		display: none;
	}

	#toolbarSidebarSection,
	#toolbarNoteListSection,
	#toolbarEditorSection,
	#sidebarArea,
	#noteListArea,
	#editorArea {
		display: none;
	}

	#applicationRoot[data-mobile-screen="folders"] #toolbarSidebarSection {
		display: flex;
		border-bottom-color: var(--colorSeparator);
	}

	#applicationRoot[data-mobile-screen="folders"] #sidebarArea {
		display: flex;
	}

	#applicationRoot[data-mobile-screen="list"] #toolbarNoteListSection {
		display: flex;
		border-right: none;
	}

	#applicationRoot[data-mobile-screen="list"] #noteListArea {
		display: flex;
		border-right: none;
	}

	#applicationRoot[data-mobile-screen="editor"] #toolbarEditorSection {
		display: flex;
	}

	#applicationRoot[data-mobile-screen="editor"] #editorArea {
		display: flex;
	}
}

/*=================================================================================
	스크롤바.
=================================================================================*/

::-webkit-scrollbar {
	width: 9px;
}

::-webkit-scrollbar-thumb {
	background-color: rgba(128, 128, 128, 0.4);
	border-radius: 5px;
	border: 2px solid transparent;
	background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
	background-color: rgba(128, 128, 128, 0.6);
	background-clip: content-box;
}
