* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 24px 16px 60px;
	background: #f7f8fa;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2937;
}

.page {
	max-width: 720px;
	margin: 0 auto;
}

.page-header {
	text-align: center;
	margin-bottom: 20px;
}

.page-header h1 {
	font-size: 22px;
	margin: 0 0 4px 0;
	color: #1f2937;
}

.page-subtitle {
	margin: 0;
	color: #64748b;
	font-size: 14px;
}

.slt-app {
	max-width: 720px;
	margin: 0 auto;
}

.slt-namebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 14px;
	background: #eef2f9;
	border-radius: 8px;
	margin-bottom: 16px;
}

.slt-namebar-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
}

.slt-namebar-input {
	padding: 6px 8px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 14px;
	width: 160px;
}

.slt-namebar-hint {
	font-size: 12px;
	color: #64748b;
}

.slt-summary {
	margin-bottom: 12px;
}

.slt-summary-count {
	font-weight: 700;
	font-size: 15px;
	color: #1f3864;
}

.slt-category {
	margin-bottom: 22px;
}

.slt-category-title {
	font-size: 16px;
	font-weight: 700;
	color: #1f3864;
	border-bottom: 2px solid #1f3864;
	padding-bottom: 4px;
	margin: 0 0 8px 0;
}

.slt-item {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 8px;
	background: #fff;
}

.slt-item-checked {
	background: #f4faf4;
	border-color: #cfe8cf;
}

.slt-item-checked .slt-item-name {
	text-decoration: line-through;
	color: #6b7280;
}

.slt-item-main {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.slt-item-checkbox {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.slt-item-text {
	flex: 1;
}

.slt-item-title-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.slt-item-name {
	font-weight: 600;
	font-size: 14.5px;
}

.slt-item-qty {
	font-size: 13px;
	font-weight: 700;
	color: #1f3864;
	white-space: nowrap;
}

.slt-item-notes {
	font-size: 13px;
	color: #475569;
	margin-top: 2px;
}

.slt-item-checkedby {
	font-size: 12px;
	color: #16803c;
	margin-top: 4px;
}

.slt-comments {
	margin-top: 8px;
	margin-left: 28px;
}

.slt-comments-toggle {
	background: none;
	border: none;
	color: #1f3864;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	padding: 2px 0;
}

.slt-comments-toggle:hover {
	text-decoration: underline;
}

.slt-comments-body {
	margin-top: 6px;
}

.slt-comment {
	background: #f8fafc;
	border-radius: 6px;
	padding: 6px 8px;
	margin-bottom: 6px;
}

.slt-comment-head {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
	color: #64748b;
	margin-bottom: 2px;
}

.slt-comment-author {
	font-weight: 700;
}

.slt-comment-text {
	font-size: 13px;
	white-space: pre-wrap;
}

.slt-comment-form {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	margin-top: 4px;
}

.slt-comment-input {
	flex: 1;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 6px 8px;
	font-size: 13px;
	font-family: inherit;
	resize: vertical;
}

.slt-comment-submit {
	background: #1f3864;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.slt-comment-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.slt-loading,
.slt-error {
	font-size: 14px;
	color: #64748b;
}

.slt-error {
	color: #b91c1c;
}

.slt-setup {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px;
}

.slt-setup-title {
	margin: 0 0 8px 0;
	font-size: 17px;
	color: #1f3864;
}

.slt-setup-text {
	font-size: 14px;
	color: #475569;
	margin: 0 0 12px 0;
}

.slt-setup-button,
.slt-setup-copy {
	background: #1f3864;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.slt-setup-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.slt-setup-result {
	margin-top: 16px;
}

.slt-setup-url {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 10px 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	word-break: break-all;
	margin-bottom: 10px;
}
