.o4y-dto-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px;
	background: #f8f9fb;
	border: 1px solid #d7dce3;
	border-radius: 12px;
}

.o4y-dto-card,
.o4y-dto-panel,
.o4y-dto-main {
	background: #ffffff;
	border: 1px solid #d7dce3;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
}

.o4y-dto-btn {
	cursor: pointer;
	border: 1px solid #1f2937;
	background: #ffffff;
	padding: 8px 14px;
	border-radius: 6px;
	font-weight: 600;
}

.o4y-dto-btn-primary {
	background: #1f2937;
	color: #ffffff;
}

.o4y-dto-wrap {
	max-width: 980px;
	margin: 0 auto;
	padding: 28px 32px;
	background: #ffffff;
	border: 1px solid #cfd5df;
	border-radius: 8px;
}

.o4y-dto-header {
	text-align: center;
	margin-bottom: 20px;
}

.o4y-dto-header h1 {
	margin-bottom: 8px;
}

.o4y-dto-header p {
	margin: 0;
	font-size: 14px;
}

.o4y-dto-card {
	background: #ffffff;
	border: none;
	border-radius: 0;
	padding: 0;
	margin-bottom: 18px;
}

.o4y-dto-card h2 {
	display: none;
}

.o4y-dto-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.o4y-dto-grid label {
	display: grid;
	grid-template-columns: 125px 1fr;
	gap: 8px;
	align-items: center;
	font-weight: 700;
}

.o4y-dto-grid label span {
	white-space: nowrap;
}

.o4y-dto-grid input,
.o4y-dto-grid select {
	width: 100%;
	min-height: 30px;
	border: none;
	border-bottom: 1px solid #222;
	border-radius: 0;
	background: #ffffff;
	padding: 4px 6px;
}

.o4y-dto-layout {
	display: block;
}

.o4y-dto-main {
	background: #ffffff;
	border: none;
	border-radius: 0;
	padding: 0;
	margin-bottom: 18px;
}

.o4y-dto-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 14px 0 10px;
}

.o4y-dto-toolbar h2 {
	margin: 0;
	font-size: 22px;
}

.o4y-dto-day {
	border: none;
	border-radius: 0;
	padding: 0;
	margin-top: 16px;
	background: #ffffff;
}

.o4y-dto-day-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.o4y-dto-day-head h3 {
	margin: 0;
	font-size: 18px;
}

.o4y-dto-outline-table {
	border: 1px solid #111;
	width: 100%;
	background: #ffffff;
}

.o4y-dto-outline-head,
.o4y-dto-row {
	display: grid;
	grid-template-columns: 140px 170px 95px minmax(260px, 1fr) minmax(190px, 0.8fr) 34px;
}

.o4y-dto-outline-head > div {
	border-right: 1px solid #111;
	border-bottom: 1px solid #111;
	padding: 8px 8px;
	font-weight: 700;
	font-size: 16px;
	background: #ffffff;
}

.o4y-dto-outline-head > div:last-child {
	border-right: none;
}

.o4y-dto-cell {
	min-height: 42px;
	border-right: 1px solid #111;
	border-bottom: 1px solid #111;
	padding: 4px;
	display: flex;
	align-items: center;
	gap: 4px;
	background: #ffffff;
}

.o4y-dto-row:last-child .o4y-dto-cell {
	border-bottom: none;
}

.o4y-dto-cell:last-child {
	border-right: none;
}

.o4y-dto-date-cell input,
.o4y-dto-time-cell input,
.o4y-dto-topic-cell select,
.o4y-dto-notes-cell input {
	width: 100%;
	min-height: 28px;
	border: none;
	background: transparent;
	padding: 2px 4px;
	font-size: 13px;
}

.o4y-dto-time-cell {
	white-space: nowrap;
}

.o4y-dto-time-cell input {
	min-width: 70px;
}

.o4y-dto-time-dash {
	font-weight: 700;
}

.o4y-dto-topic-cell {
	display: grid;
	grid-template-columns: 145px 1fr;
	gap: 4px;
}

.o4y-dto-remove-row {
	width: 24px;
	height: 24px;
	min-height: 24px;
	border: 1px solid #991b1b;
	background: #ffffff;
	color: #991b1b;
	border-radius: 3px;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.o4y-dto-btn {
	cursor: pointer;
	border: 1px solid #111;
	background: #ffffff;
	padding: 7px 12px;
	border-radius: 4px;
	font-weight: 700;
}

.o4y-dto-btn-primary {
	background: #1f2937;
	color: #ffffff;
}

.o4y-dto-panel {
	background: #ffffff;
	border: 1px solid #cfd5df;
	border-radius: 8px;
	padding: 18px;
	margin-top: 22px;
}

.o4y-dto-panel h2 {
	margin-top: 0;
}

.o4y-dto-summary {
	display: grid;
	gap: 14px;
}

.o4y-dto-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
	font-size: 14px;
}

.o4y-dto-warning {
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: 8px;
	padding: 12px;
	color: #7c2d12;
}

.o4y-dto-warning ul {
	margin: 8px 0 0 20px;
	padding: 0;
}

.o4y-dto-ok {
	background: #ecfdf5;
	border: 1px solid #86efac;
	border-radius: 8px;
	padding: 12px;
	color: #14532d;
}

.o4y-dto-row-warning .o4y-dto-cell {
	background: #fff7ed;
}

@media (max-width: 850px) {
	.o4y-dto-wrap {
		padding: 18px;
	}

	.o4y-dto-outline-table {
		overflow-x: auto;
		display: block;
	}

	.o4y-dto-outline-head,
	.o4y-dto-row {
		min-width: 920px;
	}

	.o4y-dto-grid label {
		grid-template-columns: 1fr;
	}
}

@media print {
	body * {
		visibility: hidden;
	}

	#o4y-dto-app,
	#o4y-dto-app * {
		visibility: visible;
	}

	#o4y-dto-app {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		max-width: none;
		background: #ffffff;
		border: none;
		padding: 20px;
	}

	.o4y-dto-btn,
	.o4y-dto-remove-row,
	.o4y-dto-remove-day,
	.o4y-dto-add-row,
	.o4y-dto-copy-date,
	#o4y-dto-add-day,
	#o4y-dto-print,
	.o4y-dto-delete-cell {
		display: none !important;
	}

	#o4y-dto-app .o4y-dto-outline-head,
	#o4y-dto-app .o4y-dto-row {
		grid-template-columns: 125px 190px 85px minmax(240px, 1fr) minmax(170px, 0.8fr) !important;
	}

	#o4y-dto-app .o4y-dto-outline-head > div:last-child {
		display: none !important;
	}

	.o4y-dto-panel {
		page-break-before: always;
	}
}

.o4y-dto-topic-cell {
	display: flex;
}

.o4y-dto-topic-cell select {
	width: 100%;
	min-height: 30px;
	border: none;
	background: transparent;
	padding: 2px 4px;
	font-size: 13px;
}

#o4y-dto-app .o4y-dto-topic-cell {
	display: block !important;
}

#o4y-dto-app .o4y-dto-topic-cell select.o4y-dto-topic {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 100% !important;
	box-sizing: border-box !important;
	border: none !important;
	background-color: transparent !important;
	background-image: none !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 13px !important;
	color: #111827 !important;
	appearance: auto;
	-webkit-appearance: menulist;
	-moz-appearance: menulist;
}

#o4y-dto-app .o4y-dto-minutes-cell {
	justify-content: center;
	text-align: center;
	font-weight: 700;
	color: #111827;
}

#o4y-dto-app .o4y-dto-minutes {
	display: inline-block;
	min-width: 32px;
}

#o4y-dto-app .o4y-dto-outline-head,
#o4y-dto-app .o4y-dto-row {
	grid-template-columns: 140px 220px 95px minmax(260px, 1fr) minmax(190px, 0.8fr) 34px !important;
}

#o4y-dto-app .o4y-dto-time-cell select {
	width: 92px !important;
	min-width: 92px !important;
	border: none !important;
	background: transparent !important;
	font-size: 13px;
	color: #111827;
	padding: 2px 3px;
	appearance: auto;
	-webkit-appearance: menulist;
	-moz-appearance: menulist;
}

#o4y-dto-app .o4y-dto-time-cell {
	gap: 8px !important;
	justify-content: center;
}

#o4y-dto-app .o4y-dto-date-cell {
	gap: 4px;
}

#o4y-dto-app .o4y-dto-date-cell input.o4y-dto-date {
	width: calc(100% - 28px);
	min-width: 0;
}

#o4y-dto-app .o4y-dto-copy-date {
	width: 24px;
	height: 24px;
	min-width: 24px;
	border: 1px solid #9ca3af;
	background: #ffffff;
	color: #374151;
	border-radius: 3px;
	font-size: 14px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

#o4y-dto-app .o4y-dto-copy-date:hover {
	background: #f3f4f6;
}

.o4y-tools-hub {
	max-width: 1080px;
	margin: 0 auto;
	padding: 36px 28px;
	background: #ffffff;
	border: 1px solid #d7dce3;
	border-radius: 12px;
}

.o4y-tools-hub-header {
	text-align: center;
	margin-bottom: 28px;
}

.o4y-tools-hub-header h1 {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.15;
}

.o4y-tools-hub-header p {
	max-width: 760px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
	color: #374151;
}

.o4y-tools-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.o4y-tool-tab {
	display: grid;
	grid-template-rows: auto auto 1fr;
	gap: 10px;
	padding: 22px;
	min-height: 220px;
	border: 1px solid #cfd5df;
	border-radius: 12px;
	background: #f8f9fb;
	color: #111827;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.o4y-tool-tab:hover,
.o4y-tool-tab:focus {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
	border-color: #1f2937;
	color: #111827;
	text-decoration: none;
}

.o4y-tool-tab-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #1f2937;
	color: #ffffff;
	font-weight: 700;
	font-size: 16px;
}

.o4y-tool-tab-title {
	display: block;
	font-weight: 800;
	font-size: 20px;
	line-height: 1.25;
}

.o4y-tool-tab-desc {
	display: block;
	font-size: 14px;
	line-height: 1.45;
	color: #4b5563;
}

.o4y-tools-note {
	margin-top: 24px;
	padding: 14px 16px;
	border: 1px solid #fde68a;
	background: #fffbeb;
	border-radius: 8px;
	color: #78350f;
	font-size: 14px;
}

@media (max-width: 900px) {
	.o4y-tools-tabs {
		grid-template-columns: 1fr;
	}

	.o4y-tool-tab {
		min-height: auto;
	}
}